1 1.1 christos #! /bin/sh 2 1.1 christos # From configure.in Id: configure.in,v 1.142 2006/04/01 06:36:40 psmith Exp . 3 1.1 christos # Guess values for system-dependent variables and create Makefiles. 4 1.1 christos # Generated by GNU Autoconf 2.59 for GNU make 3.81. 5 1.1 christos # 6 1.1 christos # Report bugs to <bug-make (at] gnu.org>. 7 1.1 christos # 8 1.1 christos # Copyright (C) 2003 Free Software Foundation, Inc. 9 1.1 christos # This configure script is free software; the Free Software Foundation 10 1.1 christos # gives unlimited permission to copy, distribute and modify it. 11 1.1 christos ## --------------------- ## 12 1.1 christos ## M4sh Initialization. ## 13 1.1 christos ## --------------------- ## 14 1.1 christos 15 1.1 christos # Be Bourne compatible 16 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17 1.1 christos emulate sh 18 1.1 christos NULLCMD=: 19 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 1.1 christos # is contrary to our usage. Disable this feature. 21 1.1 christos alias -g '${1+"$@"}'='"$@"' 22 1.1 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 1.1 christos set -o posix 24 1.1 christos fi 25 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh 26 1.1 christos 27 1.1 christos # Support unset when possible. 28 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 29 1.1 christos as_unset=unset 30 1.1 christos else 31 1.1 christos as_unset=false 32 1.1 christos fi 33 1.1 christos 34 1.1 christos 35 1.1 christos # Work around bugs in pre-3.0 UWIN ksh. 36 1.1 christos $as_unset ENV MAIL MAILPATH 37 1.1 christos PS1='$ ' 38 1.1 christos PS2='> ' 39 1.1 christos PS4='+ ' 40 1.1 christos 41 1.1 christos # NLS nuisances. 42 1.1 christos for as_var in \ 43 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 44 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 45 1.1 christos LC_TELEPHONE LC_TIME 46 1.1 christos do 47 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 48 1.1 christos eval $as_var=C; export $as_var 49 1.1 christos else 50 1.1 christos $as_unset $as_var 51 1.1 christos fi 52 1.1 christos done 53 1.1 christos 54 1.1 christos # Required to use basename. 55 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 56 1.1 christos as_expr=expr 57 1.1 christos else 58 1.1 christos as_expr=false 59 1.1 christos fi 60 1.1 christos 61 1.1 christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 62 1.1 christos as_basename=basename 63 1.1 christos else 64 1.1 christos as_basename=false 65 1.1 christos fi 66 1.1 christos 67 1.1 christos 68 1.1 christos # Name of the executable. 69 1.1 christos as_me=`$as_basename "$0" || 70 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 71 1.1 christos X"$0" : 'X\(//\)$' \| \ 72 1.1 christos X"$0" : 'X\(/\)$' \| \ 73 1.1 christos . : '\(.\)' 2>/dev/null || 74 1.1 christos echo X/"$0" | 75 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 76 1.1 christos /^X\/\(\/\/\)$/{ s//\1/; q; } 77 1.1 christos /^X\/\(\/\).*/{ s//\1/; q; } 78 1.1 christos s/.*/./; q'` 79 1.1 christos 80 1.1 christos 81 1.1 christos # PATH needs CR, and LINENO needs CR and PATH. 82 1.1 christos # Avoid depending upon Character Ranges. 83 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz' 84 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 85 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS 86 1.1 christos as_cr_digits='0123456789' 87 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits 88 1.1 christos 89 1.1 christos # The user is always right. 90 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 91 1.1 christos echo "#! /bin/sh" >conf$$.sh 92 1.1 christos echo "exit 0" >>conf$$.sh 93 1.1 christos chmod +x conf$$.sh 94 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 95 1.1 christos PATH_SEPARATOR=';' 96 1.1 christos else 97 1.1 christos PATH_SEPARATOR=: 98 1.1 christos fi 99 1.1 christos rm -f conf$$.sh 100 1.1 christos fi 101 1.1 christos 102 1.1 christos 103 1.1 christos as_lineno_1=$LINENO 104 1.1 christos as_lineno_2=$LINENO 105 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 106 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 107 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" || { 108 1.1 christos # Find who we are. Look in the path if we contain no path at all 109 1.1 christos # relative or not. 110 1.1 christos case $0 in 111 1.1 christos *[\\/]* ) as_myself=$0 ;; 112 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 113 1.1 christos for as_dir in $PATH 114 1.1 christos do 115 1.1 christos IFS=$as_save_IFS 116 1.1 christos test -z "$as_dir" && as_dir=. 117 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 118 1.1 christos done 119 1.1 christos 120 1.1 christos ;; 121 1.1 christos esac 122 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND' 123 1.1 christos # in which case we are not to be found in the path. 124 1.1 christos if test "x$as_myself" = x; then 125 1.1 christos as_myself=$0 126 1.1 christos fi 127 1.1 christos if test ! -f "$as_myself"; then 128 1.1 christos { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 129 1.1 christos { (exit 1); exit 1; }; } 130 1.1 christos fi 131 1.1 christos case $CONFIG_SHELL in 132 1.1 christos '') 133 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 134 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 135 1.1 christos do 136 1.1 christos IFS=$as_save_IFS 137 1.1 christos test -z "$as_dir" && as_dir=. 138 1.1 christos for as_base in sh bash ksh sh5; do 139 1.1 christos case $as_dir in 140 1.1 christos /*) 141 1.1 christos if ("$as_dir/$as_base" -c ' 142 1.1 christos as_lineno_1=$LINENO 143 1.1 christos as_lineno_2=$LINENO 144 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 145 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 146 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 147 1.1 christos $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 148 1.1 christos $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 149 1.1 christos CONFIG_SHELL=$as_dir/$as_base 150 1.1 christos export CONFIG_SHELL 151 1.1 christos exec "$CONFIG_SHELL" "$0" ${1+"$@"} 152 1.1 christos fi;; 153 1.1 christos esac 154 1.1 christos done 155 1.1 christos done 156 1.1 christos ;; 157 1.1 christos esac 158 1.1 christos 159 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 160 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a 161 1.1 christos # line-number line before each line; the second 'sed' does the real 162 1.1 christos # work. The second script uses 'N' to pair each line-number line 163 1.1 christos # with the numbered line, and appends trailing '-' during 164 1.1 christos # substitution so that $LINENO is not a special case at line end. 165 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 166 1.1 christos # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 167 1.1 christos sed '=' <$as_myself | 168 1.1 christos sed ' 169 1.1 christos N 170 1.1 christos s,$,-, 171 1.1 christos : loop 172 1.1 christos s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 173 1.1 christos t loop 174 1.1 christos s,-$,, 175 1.1 christos s,^['$as_cr_digits']*\n,, 176 1.1 christos ' >$as_me.lineno && 177 1.1 christos chmod +x $as_me.lineno || 178 1.1 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 179 1.1 christos { (exit 1); exit 1; }; } 180 1.1 christos 181 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems 182 1.1 christos # (the dirname of $[0] is not the place where we might find the 183 1.1 christos # original and so on. Autoconf is especially sensible to this). 184 1.1 christos . ./$as_me.lineno 185 1.1 christos # Exit status is that of the last command. 186 1.1 christos exit 187 1.1 christos } 188 1.1 christos 189 1.1 christos 190 1.1 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 191 1.1 christos *c*,-n*) ECHO_N= ECHO_C=' 192 1.1 christos ' ECHO_T=' ' ;; 193 1.1 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 194 1.1 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 195 1.1 christos esac 196 1.1 christos 197 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 198 1.1 christos as_expr=expr 199 1.1 christos else 200 1.1 christos as_expr=false 201 1.1 christos fi 202 1.1 christos 203 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 204 1.1 christos echo >conf$$.file 205 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then 206 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic 207 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 208 1.1 christos if test -f conf$$.exe; then 209 1.1 christos # Don't use ln at all; we don't have any links 210 1.1 christos as_ln_s='cp -p' 211 1.1 christos else 212 1.1 christos as_ln_s='ln -s' 213 1.1 christos fi 214 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then 215 1.1 christos as_ln_s=ln 216 1.1 christos else 217 1.1 christos as_ln_s='cp -p' 218 1.1 christos fi 219 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 220 1.1 christos 221 1.1 christos if mkdir -p . 2>/dev/null; then 222 1.1 christos as_mkdir_p=: 223 1.1 christos else 224 1.1 christos test -d ./-p && rmdir ./-p 225 1.1 christos as_mkdir_p=false 226 1.1 christos fi 227 1.1 christos 228 1.1 christos as_executable_p="test -f" 229 1.1 christos 230 1.1 christos # Sed expression to map a string onto a valid CPP name. 231 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 232 1.1 christos 233 1.1 christos # Sed expression to map a string onto a valid variable name. 234 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 235 1.1 christos 236 1.1 christos 237 1.1 christos # IFS 238 1.1 christos # We need space, tab and new line, in precisely that order. 239 1.1 christos as_nl=' 240 1.1 christos ' 241 1.1 christos IFS=" $as_nl" 242 1.1 christos 243 1.1 christos # CDPATH. 244 1.1 christos $as_unset CDPATH 245 1.1 christos 246 1.1 christos 247 1.1 christos # Name of the host. 248 1.1 christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 249 1.1 christos # so uname gets run too. 250 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 251 1.1 christos 252 1.1 christos exec 6>&1 253 1.1 christos 254 1.1 christos # 255 1.1 christos # Initializations. 256 1.1 christos # 257 1.1 christos ac_default_prefix=/usr/local 258 1.1 christos ac_config_libobj_dir=. 259 1.1 christos cross_compiling=no 260 1.1 christos subdirs= 261 1.1 christos MFLAGS= 262 1.1 christos MAKEFLAGS= 263 1.1 christos SHELL=${CONFIG_SHELL-/bin/sh} 264 1.1 christos 265 1.1 christos # Maximum number of lines to put in a shell here document. 266 1.1 christos # This variable seems obsolete. It should probably be removed, and 267 1.1 christos # only ac_max_sed_lines should be used. 268 1.1 christos : ${ac_max_here_lines=38} 269 1.1 christos 270 1.1 christos # Identity of this package. 271 1.1 christos PACKAGE_NAME='GNU make' 272 1.1 christos PACKAGE_TARNAME='make' 273 1.1 christos PACKAGE_VERSION='3.81' 274 1.1 christos PACKAGE_STRING='GNU make 3.81' 275 1.1 christos PACKAGE_BUGREPORT='bug-make (at] gnu.org' 276 1.1 christos 277 1.1 christos ac_unique_file="vpath.c" 278 1.1 christos # Factoring default headers for most tests. 279 1.1 christos ac_includes_default="\ 280 1.1 christos #include <stdio.h> 281 1.1 christos #if HAVE_SYS_TYPES_H 282 1.1 christos # include <sys/types.h> 283 1.1 christos #endif 284 1.1 christos #if HAVE_SYS_STAT_H 285 1.1 christos # include <sys/stat.h> 286 1.1 christos #endif 287 1.1 christos #if STDC_HEADERS 288 1.1 christos # include <stdlib.h> 289 1.1 christos # include <stddef.h> 290 1.1 christos #else 291 1.1 christos # if HAVE_STDLIB_H 292 1.1 christos # include <stdlib.h> 293 1.1 christos # endif 294 1.1 christos #endif 295 1.1 christos #if HAVE_STRING_H 296 1.1 christos # if !STDC_HEADERS && HAVE_MEMORY_H 297 1.1 christos # include <memory.h> 298 1.1 christos # endif 299 1.1 christos # include <string.h> 300 1.1 christos #endif 301 1.1 christos #if HAVE_STRINGS_H 302 1.1 christos # include <strings.h> 303 1.1 christos #endif 304 1.1 christos #if HAVE_INTTYPES_H 305 1.1 christos # include <inttypes.h> 306 1.1 christos #else 307 1.1 christos # if HAVE_STDINT_H 308 1.1 christos # include <stdint.h> 309 1.1 christos # endif 310 1.1 christos #endif 311 1.1 christos #if HAVE_UNISTD_H 312 1.1 christos # include <unistd.h> 313 1.1 christos #endif" 314 1.1 christos 315 1.1 christos ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP AR PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB ALLOCA LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS REMOTE USE_CUSTOMS_TRUE USE_CUSTOMS_FALSE GLOBINC GLOBLIB USE_LOCAL_GLOB_TRUE USE_LOCAL_GLOB_FALSE MAKE_HOST WINDOWSENV_TRUE WINDOWSENV_FALSE LTLIBOBJS' 316 1.1 christos ac_subst_files='MAINT_MAKEFILE' 317 1.1 christos 318 1.1 christos # Initialize some variables set by options. 319 1.1 christos ac_init_help= 320 1.1 christos ac_init_version=false 321 1.1 christos # The variables have the same names as the options, with 322 1.1 christos # dashes changed to underlines. 323 1.1 christos cache_file=/dev/null 324 1.1 christos exec_prefix=NONE 325 1.1 christos no_create= 326 1.1 christos no_recursion= 327 1.1 christos prefix=NONE 328 1.1 christos program_prefix=NONE 329 1.1 christos program_suffix=NONE 330 1.1 christos program_transform_name=s,x,x, 331 1.1 christos silent= 332 1.1 christos site= 333 1.1 christos srcdir= 334 1.1 christos verbose= 335 1.1 christos x_includes=NONE 336 1.1 christos x_libraries=NONE 337 1.1 christos 338 1.1 christos # Installation directory options. 339 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo" 340 1.1 christos # and all the variables that are supposed to be based on exec_prefix 341 1.1 christos # by default will actually change. 342 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them. 343 1.1 christos bindir='${exec_prefix}/bin' 344 1.1 christos sbindir='${exec_prefix}/sbin' 345 1.1 christos libexecdir='${exec_prefix}/libexec' 346 1.1 christos datadir='${prefix}/share' 347 1.1 christos sysconfdir='${prefix}/etc' 348 1.1 christos sharedstatedir='${prefix}/com' 349 1.1 christos localstatedir='${prefix}/var' 350 1.1 christos libdir='${exec_prefix}/lib' 351 1.1 christos includedir='${prefix}/include' 352 1.1 christos oldincludedir='/usr/include' 353 1.1 christos infodir='${prefix}/info' 354 1.1 christos mandir='${prefix}/man' 355 1.1 christos 356 1.1 christos ac_prev= 357 1.1 christos for ac_option 358 1.1 christos do 359 1.1 christos # If the previous option needs an argument, assign it. 360 1.1 christos if test -n "$ac_prev"; then 361 1.1 christos eval "$ac_prev=\$ac_option" 362 1.1 christos ac_prev= 363 1.1 christos continue 364 1.1 christos fi 365 1.1 christos 366 1.1 christos ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 367 1.1 christos 368 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos. 369 1.1 christos 370 1.1 christos case $ac_option in 371 1.1 christos 372 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi) 373 1.1 christos ac_prev=bindir ;; 374 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 375 1.1 christos bindir=$ac_optarg ;; 376 1.1 christos 377 1.1 christos -build | --build | --buil | --bui | --bu) 378 1.1 christos ac_prev=build_alias ;; 379 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*) 380 1.1 christos build_alias=$ac_optarg ;; 381 1.1 christos 382 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \ 383 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 384 1.1 christos ac_prev=cache_file ;; 385 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 386 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 387 1.1 christos cache_file=$ac_optarg ;; 388 1.1 christos 389 1.1 christos --config-cache | -C) 390 1.1 christos cache_file=config.cache ;; 391 1.1 christos 392 1.1 christos -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 393 1.1 christos ac_prev=datadir ;; 394 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 395 1.1 christos | --da=*) 396 1.1 christos datadir=$ac_optarg ;; 397 1.1 christos 398 1.1 christos -disable-* | --disable-*) 399 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 400 1.1 christos # Reject names that are not valid shell variable names. 401 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 402 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2 403 1.1 christos { (exit 1); exit 1; }; } 404 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'` 405 1.1 christos eval "enable_$ac_feature=no" ;; 406 1.1 christos 407 1.1 christos -enable-* | --enable-*) 408 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 409 1.1 christos # Reject names that are not valid shell variable names. 410 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 411 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2 412 1.1 christos { (exit 1); exit 1; }; } 413 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'` 414 1.1 christos case $ac_option in 415 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 416 1.1 christos *) ac_optarg=yes ;; 417 1.1 christos esac 418 1.1 christos eval "enable_$ac_feature='$ac_optarg'" ;; 419 1.1 christos 420 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 421 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 422 1.1 christos | --exec | --exe | --ex) 423 1.1 christos ac_prev=exec_prefix ;; 424 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 425 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 426 1.1 christos | --exec=* | --exe=* | --ex=*) 427 1.1 christos exec_prefix=$ac_optarg ;; 428 1.1 christos 429 1.1 christos -gas | --gas | --ga | --g) 430 1.1 christos # Obsolete; use --with-gas. 431 1.1 christos with_gas=yes ;; 432 1.1 christos 433 1.1 christos -help | --help | --hel | --he | -h) 434 1.1 christos ac_init_help=long ;; 435 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 436 1.1 christos ac_init_help=recursive ;; 437 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 438 1.1 christos ac_init_help=short ;; 439 1.1 christos 440 1.1 christos -host | --host | --hos | --ho) 441 1.1 christos ac_prev=host_alias ;; 442 1.1 christos -host=* | --host=* | --hos=* | --ho=*) 443 1.1 christos host_alias=$ac_optarg ;; 444 1.1 christos 445 1.1 christos -includedir | --includedir | --includedi | --included | --include \ 446 1.1 christos | --includ | --inclu | --incl | --inc) 447 1.1 christos ac_prev=includedir ;; 448 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 449 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*) 450 1.1 christos includedir=$ac_optarg ;; 451 1.1 christos 452 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf) 453 1.1 christos ac_prev=infodir ;; 454 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 455 1.1 christos infodir=$ac_optarg ;; 456 1.1 christos 457 1.1 christos -libdir | --libdir | --libdi | --libd) 458 1.1 christos ac_prev=libdir ;; 459 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*) 460 1.1 christos libdir=$ac_optarg ;; 461 1.1 christos 462 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 463 1.1 christos | --libexe | --libex | --libe) 464 1.1 christos ac_prev=libexecdir ;; 465 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 466 1.1 christos | --libexe=* | --libex=* | --libe=*) 467 1.1 christos libexecdir=$ac_optarg ;; 468 1.1 christos 469 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \ 470 1.1 christos | --localstate | --localstat | --localsta | --localst \ 471 1.1 christos | --locals | --local | --loca | --loc | --lo) 472 1.1 christos ac_prev=localstatedir ;; 473 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 474 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 475 1.1 christos | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 476 1.1 christos localstatedir=$ac_optarg ;; 477 1.1 christos 478 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 479 1.1 christos ac_prev=mandir ;; 480 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 481 1.1 christos mandir=$ac_optarg ;; 482 1.1 christos 483 1.1 christos -nfp | --nfp | --nf) 484 1.1 christos # Obsolete; use --without-fp. 485 1.1 christos with_fp=no ;; 486 1.1 christos 487 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 488 1.1 christos | --no-cr | --no-c | -n) 489 1.1 christos no_create=yes ;; 490 1.1 christos 491 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 492 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 493 1.1 christos no_recursion=yes ;; 494 1.1 christos 495 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 496 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 497 1.1 christos | --oldin | --oldi | --old | --ol | --o) 498 1.1 christos ac_prev=oldincludedir ;; 499 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 500 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 501 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 502 1.1 christos oldincludedir=$ac_optarg ;; 503 1.1 christos 504 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 505 1.1 christos ac_prev=prefix ;; 506 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 507 1.1 christos prefix=$ac_optarg ;; 508 1.1 christos 509 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \ 510 1.1 christos | --program-pre | --program-pr | --program-p) 511 1.1 christos ac_prev=program_prefix ;; 512 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \ 513 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 514 1.1 christos program_prefix=$ac_optarg ;; 515 1.1 christos 516 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \ 517 1.1 christos | --program-suf | --program-su | --program-s) 518 1.1 christos ac_prev=program_suffix ;; 519 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \ 520 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 521 1.1 christos program_suffix=$ac_optarg ;; 522 1.1 christos 523 1.1 christos -program-transform-name | --program-transform-name \ 524 1.1 christos | --program-transform-nam | --program-transform-na \ 525 1.1 christos | --program-transform-n | --program-transform- \ 526 1.1 christos | --program-transform | --program-transfor \ 527 1.1 christos | --program-transfo | --program-transf \ 528 1.1 christos | --program-trans | --program-tran \ 529 1.1 christos | --progr-tra | --program-tr | --program-t) 530 1.1 christos ac_prev=program_transform_name ;; 531 1.1 christos -program-transform-name=* | --program-transform-name=* \ 532 1.1 christos | --program-transform-nam=* | --program-transform-na=* \ 533 1.1 christos | --program-transform-n=* | --program-transform-=* \ 534 1.1 christos | --program-transform=* | --program-transfor=* \ 535 1.1 christos | --program-transfo=* | --program-transf=* \ 536 1.1 christos | --program-trans=* | --program-tran=* \ 537 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*) 538 1.1 christos program_transform_name=$ac_optarg ;; 539 1.1 christos 540 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 541 1.1 christos | -silent | --silent | --silen | --sile | --sil) 542 1.1 christos silent=yes ;; 543 1.1 christos 544 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 545 1.1 christos ac_prev=sbindir ;; 546 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 547 1.1 christos | --sbi=* | --sb=*) 548 1.1 christos sbindir=$ac_optarg ;; 549 1.1 christos 550 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \ 551 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 552 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \ 553 1.1 christos | --sha | --sh) 554 1.1 christos ac_prev=sharedstatedir ;; 555 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 556 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 557 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 558 1.1 christos | --sha=* | --sh=*) 559 1.1 christos sharedstatedir=$ac_optarg ;; 560 1.1 christos 561 1.1 christos -site | --site | --sit) 562 1.1 christos ac_prev=site ;; 563 1.1 christos -site=* | --site=* | --sit=*) 564 1.1 christos site=$ac_optarg ;; 565 1.1 christos 566 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 567 1.1 christos ac_prev=srcdir ;; 568 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 569 1.1 christos srcdir=$ac_optarg ;; 570 1.1 christos 571 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 572 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy) 573 1.1 christos ac_prev=sysconfdir ;; 574 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 575 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 576 1.1 christos sysconfdir=$ac_optarg ;; 577 1.1 christos 578 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t) 579 1.1 christos ac_prev=target_alias ;; 580 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 581 1.1 christos target_alias=$ac_optarg ;; 582 1.1 christos 583 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb) 584 1.1 christos verbose=yes ;; 585 1.1 christos 586 1.1 christos -version | --version | --versio | --versi | --vers | -V) 587 1.1 christos ac_init_version=: ;; 588 1.1 christos 589 1.1 christos -with-* | --with-*) 590 1.1 christos ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 591 1.1 christos # Reject names that are not valid shell variable names. 592 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 593 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2 594 1.1 christos { (exit 1); exit 1; }; } 595 1.1 christos ac_package=`echo $ac_package| sed 's/-/_/g'` 596 1.1 christos case $ac_option in 597 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 598 1.1 christos *) ac_optarg=yes ;; 599 1.1 christos esac 600 1.1 christos eval "with_$ac_package='$ac_optarg'" ;; 601 1.1 christos 602 1.1 christos -without-* | --without-*) 603 1.1 christos ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 604 1.1 christos # Reject names that are not valid shell variable names. 605 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 606 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2 607 1.1 christos { (exit 1); exit 1; }; } 608 1.1 christos ac_package=`echo $ac_package | sed 's/-/_/g'` 609 1.1 christos eval "with_$ac_package=no" ;; 610 1.1 christos 611 1.1 christos --x) 612 1.1 christos # Obsolete; use --with-x. 613 1.1 christos with_x=yes ;; 614 1.1 christos 615 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 616 1.1 christos | --x-incl | --x-inc | --x-in | --x-i) 617 1.1 christos ac_prev=x_includes ;; 618 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 619 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 620 1.1 christos x_includes=$ac_optarg ;; 621 1.1 christos 622 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \ 623 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 624 1.1 christos ac_prev=x_libraries ;; 625 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 626 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 627 1.1 christos x_libraries=$ac_optarg ;; 628 1.1 christos 629 1.1 christos -*) { echo "$as_me: error: unrecognized option: $ac_option 630 1.1 christos Try \`$0 --help' for more information." >&2 631 1.1 christos { (exit 1); exit 1; }; } 632 1.1 christos ;; 633 1.1 christos 634 1.1 christos *=*) 635 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 636 1.1 christos # Reject names that are not valid shell variable names. 637 1.1 christos expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 638 1.1 christos { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 639 1.1 christos { (exit 1); exit 1; }; } 640 1.1 christos ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 641 1.1 christos eval "$ac_envvar='$ac_optarg'" 642 1.1 christos export $ac_envvar ;; 643 1.1 christos 644 1.1 christos *) 645 1.1 christos # FIXME: should be removed in autoconf 3.0. 646 1.1 christos echo "$as_me: WARNING: you should use --build, --host, --target" >&2 647 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 648 1.1 christos echo "$as_me: WARNING: invalid host type: $ac_option" >&2 649 1.1 christos : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 650 1.1 christos ;; 651 1.1 christos 652 1.1 christos esac 653 1.1 christos done 654 1.1 christos 655 1.1 christos if test -n "$ac_prev"; then 656 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'` 657 1.1 christos { echo "$as_me: error: missing argument to $ac_option" >&2 658 1.1 christos { (exit 1); exit 1; }; } 659 1.1 christos fi 660 1.1 christos 661 1.1 christos # Be sure to have absolute paths. 662 1.1 christos for ac_var in exec_prefix prefix 663 1.1 christos do 664 1.1 christos eval ac_val=$`echo $ac_var` 665 1.1 christos case $ac_val in 666 1.1 christos [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 667 1.1 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 668 1.1 christos { (exit 1); exit 1; }; };; 669 1.1 christos esac 670 1.1 christos done 671 1.1 christos 672 1.1 christos # Be sure to have absolute paths. 673 1.1 christos for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 674 1.1 christos localstatedir libdir includedir oldincludedir infodir mandir 675 1.1 christos do 676 1.1 christos eval ac_val=$`echo $ac_var` 677 1.1 christos case $ac_val in 678 1.1 christos [\\/$]* | ?:[\\/]* ) ;; 679 1.1 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 680 1.1 christos { (exit 1); exit 1; }; };; 681 1.1 christos esac 682 1.1 christos done 683 1.1 christos 684 1.1 christos # There might be people who depend on the old broken behavior: `$host' 685 1.1 christos # used to hold the argument of --host etc. 686 1.1 christos # FIXME: To remove some day. 687 1.1 christos build=$build_alias 688 1.1 christos host=$host_alias 689 1.1 christos target=$target_alias 690 1.1 christos 691 1.1 christos # FIXME: To remove some day. 692 1.1 christos if test "x$host_alias" != x; then 693 1.1 christos if test "x$build_alias" = x; then 694 1.1 christos cross_compiling=maybe 695 1.1 christos echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 696 1.1 christos If a cross compiler is detected then cross compile mode will be used." >&2 697 1.1 christos elif test "x$build_alias" != "x$host_alias"; then 698 1.1 christos cross_compiling=yes 699 1.1 christos fi 700 1.1 christos fi 701 1.1 christos 702 1.1 christos ac_tool_prefix= 703 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias- 704 1.1 christos 705 1.1 christos test "$silent" = yes && exec 6>/dev/null 706 1.1 christos 707 1.1 christos 708 1.1 christos # Find the source files, if location was not specified. 709 1.1 christos if test -z "$srcdir"; then 710 1.1 christos ac_srcdir_defaulted=yes 711 1.1 christos # Try the directory containing this script, then its parent. 712 1.1 christos ac_confdir=`(dirname "$0") 2>/dev/null || 713 1.1 christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 714 1.1 christos X"$0" : 'X\(//\)[^/]' \| \ 715 1.1 christos X"$0" : 'X\(//\)$' \| \ 716 1.1 christos X"$0" : 'X\(/\)' \| \ 717 1.1 christos . : '\(.\)' 2>/dev/null || 718 1.1 christos echo X"$0" | 719 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 720 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 721 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 722 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 723 1.1 christos s/.*/./; q'` 724 1.1 christos srcdir=$ac_confdir 725 1.1 christos if test ! -r $srcdir/$ac_unique_file; then 726 1.1 christos srcdir=.. 727 1.1 christos fi 728 1.1 christos else 729 1.1 christos ac_srcdir_defaulted=no 730 1.1 christos fi 731 1.1 christos if test ! -r $srcdir/$ac_unique_file; then 732 1.1 christos if test "$ac_srcdir_defaulted" = yes; then 733 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 734 1.1 christos { (exit 1); exit 1; }; } 735 1.1 christos else 736 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 737 1.1 christos { (exit 1); exit 1; }; } 738 1.1 christos fi 739 1.1 christos fi 740 1.1 christos (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 741 1.1 christos { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 742 1.1 christos { (exit 1); exit 1; }; } 743 1.1 christos srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 744 1.1 christos ac_env_build_alias_set=${build_alias+set} 745 1.1 christos ac_env_build_alias_value=$build_alias 746 1.1 christos ac_cv_env_build_alias_set=${build_alias+set} 747 1.1 christos ac_cv_env_build_alias_value=$build_alias 748 1.1 christos ac_env_host_alias_set=${host_alias+set} 749 1.1 christos ac_env_host_alias_value=$host_alias 750 1.1 christos ac_cv_env_host_alias_set=${host_alias+set} 751 1.1 christos ac_cv_env_host_alias_value=$host_alias 752 1.1 christos ac_env_target_alias_set=${target_alias+set} 753 1.1 christos ac_env_target_alias_value=$target_alias 754 1.1 christos ac_cv_env_target_alias_set=${target_alias+set} 755 1.1 christos ac_cv_env_target_alias_value=$target_alias 756 1.1 christos ac_env_CC_set=${CC+set} 757 1.1 christos ac_env_CC_value=$CC 758 1.1 christos ac_cv_env_CC_set=${CC+set} 759 1.1 christos ac_cv_env_CC_value=$CC 760 1.1 christos ac_env_CFLAGS_set=${CFLAGS+set} 761 1.1 christos ac_env_CFLAGS_value=$CFLAGS 762 1.1 christos ac_cv_env_CFLAGS_set=${CFLAGS+set} 763 1.1 christos ac_cv_env_CFLAGS_value=$CFLAGS 764 1.1 christos ac_env_LDFLAGS_set=${LDFLAGS+set} 765 1.1 christos ac_env_LDFLAGS_value=$LDFLAGS 766 1.1 christos ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 767 1.1 christos ac_cv_env_LDFLAGS_value=$LDFLAGS 768 1.1 christos ac_env_CPPFLAGS_set=${CPPFLAGS+set} 769 1.1 christos ac_env_CPPFLAGS_value=$CPPFLAGS 770 1.1 christos ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 771 1.1 christos ac_cv_env_CPPFLAGS_value=$CPPFLAGS 772 1.1 christos ac_env_CPP_set=${CPP+set} 773 1.1 christos ac_env_CPP_value=$CPP 774 1.1 christos ac_cv_env_CPP_set=${CPP+set} 775 1.1 christos ac_cv_env_CPP_value=$CPP 776 1.1 christos 777 1.1 christos # 778 1.1 christos # Report the --help message. 779 1.1 christos # 780 1.1 christos if test "$ac_init_help" = "long"; then 781 1.1 christos # Omit some internal or obsolete options to make the list less imposing. 782 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh. 783 1.1 christos cat <<_ACEOF 784 1.1 christos \`configure' configures GNU make 3.81 to adapt to many kinds of systems. 785 1.1 christos 786 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]... 787 1.1 christos 788 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as 789 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables. 790 1.1 christos 791 1.1 christos Defaults for the options are specified in brackets. 792 1.1 christos 793 1.1 christos Configuration: 794 1.1 christos -h, --help display this help and exit 795 1.1 christos --help=short display options specific to this package 796 1.1 christos --help=recursive display the short help of all the included packages 797 1.1 christos -V, --version display version information and exit 798 1.1 christos -q, --quiet, --silent do not print \`checking...' messages 799 1.1 christos --cache-file=FILE cache test results in FILE [disabled] 800 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache' 801 1.1 christos -n, --no-create do not create output files 802 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..'] 803 1.1 christos 804 1.1 christos _ACEOF 805 1.1 christos 806 1.1 christos cat <<_ACEOF 807 1.1 christos Installation directories: 808 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX 809 1.1 christos [$ac_default_prefix] 810 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 811 1.1 christos [PREFIX] 812 1.1 christos 813 1.1 christos By default, \`make install' will install all the files in 814 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 815 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix', 816 1.1 christos for instance \`--prefix=\$HOME'. 817 1.1 christos 818 1.1 christos For better control, use the options below. 819 1.1 christos 820 1.1 christos Fine tuning of the installation directories: 821 1.1 christos --bindir=DIR user executables [EPREFIX/bin] 822 1.1 christos --sbindir=DIR system admin executables [EPREFIX/sbin] 823 1.1 christos --libexecdir=DIR program executables [EPREFIX/libexec] 824 1.1 christos --datadir=DIR read-only architecture-independent data [PREFIX/share] 825 1.1 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 826 1.1 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 827 1.1 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var] 828 1.1 christos --libdir=DIR object code libraries [EPREFIX/lib] 829 1.1 christos --includedir=DIR C header files [PREFIX/include] 830 1.1 christos --oldincludedir=DIR C header files for non-gcc [/usr/include] 831 1.1 christos --infodir=DIR info documentation [PREFIX/info] 832 1.1 christos --mandir=DIR man documentation [PREFIX/man] 833 1.1 christos _ACEOF 834 1.1 christos 835 1.1 christos cat <<\_ACEOF 836 1.1 christos 837 1.1 christos Program names: 838 1.1 christos --program-prefix=PREFIX prepend PREFIX to installed program names 839 1.1 christos --program-suffix=SUFFIX append SUFFIX to installed program names 840 1.1 christos --program-transform-name=PROGRAM run sed PROGRAM on installed program names 841 1.1 christos 842 1.1 christos System types: 843 1.1 christos --build=BUILD configure for building on BUILD [guessed] 844 1.1 christos --host=HOST cross-compile to build programs to run on HOST [BUILD] 845 1.1 christos _ACEOF 846 1.1 christos fi 847 1.1 christos 848 1.1 christos if test -n "$ac_init_help"; then 849 1.1 christos case $ac_init_help in 850 1.1 christos short | recursive ) echo "Configuration of GNU make 3.81:";; 851 1.1 christos esac 852 1.1 christos cat <<\_ACEOF 853 1.1 christos 854 1.1 christos Optional Features: 855 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 856 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 857 1.1 christos --disable-dependency-tracking speeds up one-time build 858 1.1 christos --enable-dependency-tracking do not reject slow dependency extractors 859 1.1 christos --disable-nls do not use Native Language Support 860 1.1 christos --disable-rpath do not hardcode runtime library paths 861 1.1 christos --disable-largefile omit support for large files 862 1.1 christos --enable-case-insensitive-file-system 863 1.1 christos enable case insensitive file system support 864 1.1 christos --disable-job-server disallow recursive make communication during -jN 865 1.1 christos 866 1.1 christos Optional Packages: 867 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 868 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 869 1.1 christos --with-gnu-ld assume the C compiler uses GNU ld default=no 870 1.1 christos --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 871 1.1 christos --without-libiconv-prefix don't search for libiconv in includedir and libdir 872 1.1 christos --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 873 1.1 christos --without-libintl-prefix don't search for libintl in includedir and libdir 874 1.1 christos --with-customs=DIR enable remote jobs via Customs--see README.customs 875 1.1 christos --with-dmalloc use dmalloc, as in 876 1.1 christos http://www.dmalloc.com/dmalloc.tar.gz 877 1.1 christos 878 1.1 christos Some influential environment variables: 879 1.1 christos CC C compiler command 880 1.1 christos CFLAGS C compiler flags 881 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 882 1.1 christos nonstandard directory <lib dir> 883 1.1 christos CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 884 1.1 christos headers in a nonstandard directory <include dir> 885 1.1 christos CPP C preprocessor 886 1.1 christos 887 1.1 christos Use these variables to override the choices made by `configure' or to help 888 1.1 christos it to find libraries and programs with nonstandard names/locations. 889 1.1 christos 890 1.1 christos Report bugs to <bug-make@gnu.org>. 891 1.1 christos _ACEOF 892 1.1 christos fi 893 1.1 christos 894 1.1 christos if test "$ac_init_help" = "recursive"; then 895 1.1 christos # If there are subdirs, report their specific --help. 896 1.1 christos ac_popdir=`pwd` 897 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 898 1.1 christos test -d $ac_dir || continue 899 1.1 christos ac_builddir=. 900 1.1 christos 901 1.1 christos if test "$ac_dir" != .; then 902 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 903 1.1 christos # A "../" for each directory in $ac_dir_suffix. 904 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 905 1.1 christos else 906 1.1 christos ac_dir_suffix= ac_top_builddir= 907 1.1 christos fi 908 1.1 christos 909 1.1 christos case $srcdir in 910 1.1 christos .) # No --srcdir option. We are building in place. 911 1.1 christos ac_srcdir=. 912 1.1 christos if test -z "$ac_top_builddir"; then 913 1.1 christos ac_top_srcdir=. 914 1.1 christos else 915 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 916 1.1 christos fi ;; 917 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path. 918 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 919 1.1 christos ac_top_srcdir=$srcdir ;; 920 1.1 christos *) # Relative path. 921 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 922 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;; 923 1.1 christos esac 924 1.1 christos 925 1.1 christos # Do not use `cd foo && pwd` to compute absolute paths, because 926 1.1 christos # the directories may not exist. 927 1.1 christos case `pwd` in 928 1.1 christos .) ac_abs_builddir="$ac_dir";; 929 1.1 christos *) 930 1.1 christos case "$ac_dir" in 931 1.1 christos .) ac_abs_builddir=`pwd`;; 932 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 933 1.1 christos *) ac_abs_builddir=`pwd`/"$ac_dir";; 934 1.1 christos esac;; 935 1.1 christos esac 936 1.1 christos case $ac_abs_builddir in 937 1.1 christos .) ac_abs_top_builddir=${ac_top_builddir}.;; 938 1.1 christos *) 939 1.1 christos case ${ac_top_builddir}. in 940 1.1 christos .) ac_abs_top_builddir=$ac_abs_builddir;; 941 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 942 1.1 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 943 1.1 christos esac;; 944 1.1 christos esac 945 1.1 christos case $ac_abs_builddir in 946 1.1 christos .) ac_abs_srcdir=$ac_srcdir;; 947 1.1 christos *) 948 1.1 christos case $ac_srcdir in 949 1.1 christos .) ac_abs_srcdir=$ac_abs_builddir;; 950 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 951 1.1 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 952 1.1 christos esac;; 953 1.1 christos esac 954 1.1 christos case $ac_abs_builddir in 955 1.1 christos .) ac_abs_top_srcdir=$ac_top_srcdir;; 956 1.1 christos *) 957 1.1 christos case $ac_top_srcdir in 958 1.1 christos .) ac_abs_top_srcdir=$ac_abs_builddir;; 959 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 960 1.1 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 961 1.1 christos esac;; 962 1.1 christos esac 963 1.1 christos 964 1.1 christos cd $ac_dir 965 1.1 christos # Check for guested configure; otherwise get Cygnus style configure. 966 1.1 christos if test -f $ac_srcdir/configure.gnu; then 967 1.1 christos echo 968 1.1 christos $SHELL $ac_srcdir/configure.gnu --help=recursive 969 1.1 christos elif test -f $ac_srcdir/configure; then 970 1.1 christos echo 971 1.1 christos $SHELL $ac_srcdir/configure --help=recursive 972 1.1 christos elif test -f $ac_srcdir/configure.ac || 973 1.1 christos test -f $ac_srcdir/configure.in; then 974 1.1 christos echo 975 1.1 christos $ac_configure --help 976 1.1 christos else 977 1.1 christos echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 978 1.1 christos fi 979 1.1 christos cd "$ac_popdir" 980 1.1 christos done 981 1.1 christos fi 982 1.1 christos 983 1.1 christos test -n "$ac_init_help" && exit 0 984 1.1 christos if $ac_init_version; then 985 1.1 christos cat <<\_ACEOF 986 1.1 christos GNU make configure 3.81 987 1.1 christos generated by GNU Autoconf 2.59 988 1.1 christos 989 1.1 christos Copyright (C) 2003 Free Software Foundation, Inc. 990 1.1 christos This configure script is free software; the Free Software Foundation 991 1.1 christos gives unlimited permission to copy, distribute and modify it. 992 1.1 christos _ACEOF 993 1.1 christos exit 0 994 1.1 christos fi 995 1.1 christos exec 5>config.log 996 1.1 christos cat >&5 <<_ACEOF 997 1.1 christos This file contains any messages produced by compilers while 998 1.1 christos running configure, to aid debugging if configure makes a mistake. 999 1.1 christos 1000 1.1 christos It was created by GNU make $as_me 3.81, which was 1001 1.1 christos generated by GNU Autoconf 2.59. Invocation command line was 1002 1.1 christos 1003 1.1 christos $ $0 $@ 1004 1.1 christos 1005 1.1 christos _ACEOF 1006 1.1 christos { 1007 1.1 christos cat <<_ASUNAME 1008 1.1 christos ## --------- ## 1009 1.1 christos ## Platform. ## 1010 1.1 christos ## --------- ## 1011 1.1 christos 1012 1.1 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1013 1.1 christos uname -m = `(uname -m) 2>/dev/null || echo unknown` 1014 1.1 christos uname -r = `(uname -r) 2>/dev/null || echo unknown` 1015 1.1 christos uname -s = `(uname -s) 2>/dev/null || echo unknown` 1016 1.1 christos uname -v = `(uname -v) 2>/dev/null || echo unknown` 1017 1.1 christos 1018 1.1 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1019 1.1 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1020 1.1 christos 1021 1.1 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1022 1.1 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1023 1.1 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1024 1.1 christos hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1025 1.1 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1026 1.1 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1027 1.1 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1028 1.1 christos 1029 1.1 christos _ASUNAME 1030 1.1 christos 1031 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1032 1.1 christos for as_dir in $PATH 1033 1.1 christos do 1034 1.1 christos IFS=$as_save_IFS 1035 1.1 christos test -z "$as_dir" && as_dir=. 1036 1.1 christos echo "PATH: $as_dir" 1037 1.1 christos done 1038 1.1 christos 1039 1.1 christos } >&5 1040 1.1 christos 1041 1.1 christos cat >&5 <<_ACEOF 1042 1.1 christos 1043 1.1 christos 1044 1.1 christos ## ----------- ## 1045 1.1 christos ## Core tests. ## 1046 1.1 christos ## ----------- ## 1047 1.1 christos 1048 1.1 christos _ACEOF 1049 1.1 christos 1050 1.1 christos 1051 1.1 christos # Keep a trace of the command line. 1052 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up. 1053 1.1 christos # Strip out --silent because we don't want to record it for future runs. 1054 1.1 christos # Also quote any args containing shell meta-characters. 1055 1.1 christos # Make two passes to allow for proper duplicate-argument suppression. 1056 1.1 christos ac_configure_args= 1057 1.1 christos ac_configure_args0= 1058 1.1 christos ac_configure_args1= 1059 1.1 christos ac_sep= 1060 1.1 christos ac_must_keep_next=false 1061 1.1 christos for ac_pass in 1 2 1062 1.1 christos do 1063 1.1 christos for ac_arg 1064 1.1 christos do 1065 1.1 christos case $ac_arg in 1066 1.1 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1067 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1068 1.1 christos | -silent | --silent | --silen | --sile | --sil) 1069 1.1 christos continue ;; 1070 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1071 1.1 christos ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1072 1.1 christos esac 1073 1.1 christos case $ac_pass in 1074 1.1 christos 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1075 1.1 christos 2) 1076 1.1 christos ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1077 1.1 christos if test $ac_must_keep_next = true; then 1078 1.1 christos ac_must_keep_next=false # Got value, back to normal. 1079 1.1 christos else 1080 1.1 christos case $ac_arg in 1081 1.1 christos *=* | --config-cache | -C | -disable-* | --disable-* \ 1082 1.1 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1083 1.1 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1084 1.1 christos | -with-* | --with-* | -without-* | --without-* | --x) 1085 1.1 christos case "$ac_configure_args0 " in 1086 1.1 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1087 1.1 christos esac 1088 1.1 christos ;; 1089 1.1 christos -* ) ac_must_keep_next=true ;; 1090 1.1 christos esac 1091 1.1 christos fi 1092 1.1 christos ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1093 1.1 christos # Get rid of the leading space. 1094 1.1 christos ac_sep=" " 1095 1.1 christos ;; 1096 1.1 christos esac 1097 1.1 christos done 1098 1.1 christos done 1099 1.1 christos $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1100 1.1 christos $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1101 1.1 christos 1102 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete 1103 1.1 christos # config.log. We remove comments because anyway the quotes in there 1104 1.1 christos # would cause problems or look ugly. 1105 1.1 christos # WARNING: Be sure not to use single quotes in there, as some shells, 1106 1.1 christos # such as our DU 5.0 friend, will then `close' the trap. 1107 1.1 christos trap 'exit_status=$? 1108 1.1 christos # Save into config.log some information that might help in debugging. 1109 1.1 christos { 1110 1.1 christos echo 1111 1.1 christos 1112 1.1 christos cat <<\_ASBOX 1113 1.1 christos ## ---------------- ## 1114 1.1 christos ## Cache variables. ## 1115 1.1 christos ## ---------------- ## 1116 1.1 christos _ASBOX 1117 1.1 christos echo 1118 1.1 christos # The following way of writing the cache mishandles newlines in values, 1119 1.1 christos { 1120 1.1 christos (set) 2>&1 | 1121 1.1 christos case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1122 1.1 christos *ac_space=\ *) 1123 1.1 christos sed -n \ 1124 1.1 christos "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1125 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1126 1.1 christos ;; 1127 1.1 christos *) 1128 1.1 christos sed -n \ 1129 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1130 1.1 christos ;; 1131 1.1 christos esac; 1132 1.1 christos } 1133 1.1 christos echo 1134 1.1 christos 1135 1.1 christos cat <<\_ASBOX 1136 1.1 christos ## ----------------- ## 1137 1.1 christos ## Output variables. ## 1138 1.1 christos ## ----------------- ## 1139 1.1 christos _ASBOX 1140 1.1 christos echo 1141 1.1 christos for ac_var in $ac_subst_vars 1142 1.1 christos do 1143 1.1 christos eval ac_val=$`echo $ac_var` 1144 1.1 christos echo "$ac_var='"'"'$ac_val'"'"'" 1145 1.1 christos done | sort 1146 1.1 christos echo 1147 1.1 christos 1148 1.1 christos if test -n "$ac_subst_files"; then 1149 1.1 christos cat <<\_ASBOX 1150 1.1 christos ## ------------- ## 1151 1.1 christos ## Output files. ## 1152 1.1 christos ## ------------- ## 1153 1.1 christos _ASBOX 1154 1.1 christos echo 1155 1.1 christos for ac_var in $ac_subst_files 1156 1.1 christos do 1157 1.1 christos eval ac_val=$`echo $ac_var` 1158 1.1 christos echo "$ac_var='"'"'$ac_val'"'"'" 1159 1.1 christos done | sort 1160 1.1 christos echo 1161 1.1 christos fi 1162 1.1 christos 1163 1.1 christos if test -s confdefs.h; then 1164 1.1 christos cat <<\_ASBOX 1165 1.1 christos ## ----------- ## 1166 1.1 christos ## confdefs.h. ## 1167 1.1 christos ## ----------- ## 1168 1.1 christos _ASBOX 1169 1.1 christos echo 1170 1.1 christos sed "/^$/d" confdefs.h | sort 1171 1.1 christos echo 1172 1.1 christos fi 1173 1.1 christos test "$ac_signal" != 0 && 1174 1.1 christos echo "$as_me: caught signal $ac_signal" 1175 1.1 christos echo "$as_me: exit $exit_status" 1176 1.1 christos } >&5 1177 1.1 christos rm -f core *.core && 1178 1.1 christos rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1179 1.1 christos exit $exit_status 1180 1.1 christos ' 0 1181 1.1 christos for ac_signal in 1 2 13 15; do 1182 1.1 christos trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1183 1.1 christos done 1184 1.1 christos ac_signal=0 1185 1.1 christos 1186 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed. 1187 1.1 christos rm -rf conftest* confdefs.h 1188 1.1 christos # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1189 1.1 christos echo >confdefs.h 1190 1.1 christos 1191 1.1 christos # Predefined preprocessor variables. 1192 1.1 christos 1193 1.1 christos cat >>confdefs.h <<_ACEOF 1194 1.1 christos #define PACKAGE_NAME "$PACKAGE_NAME" 1195 1.1 christos _ACEOF 1196 1.1 christos 1197 1.1 christos 1198 1.1 christos cat >>confdefs.h <<_ACEOF 1199 1.1 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1200 1.1 christos _ACEOF 1201 1.1 christos 1202 1.1 christos 1203 1.1 christos cat >>confdefs.h <<_ACEOF 1204 1.1 christos #define PACKAGE_VERSION "$PACKAGE_VERSION" 1205 1.1 christos _ACEOF 1206 1.1 christos 1207 1.1 christos 1208 1.1 christos cat >>confdefs.h <<_ACEOF 1209 1.1 christos #define PACKAGE_STRING "$PACKAGE_STRING" 1210 1.1 christos _ACEOF 1211 1.1 christos 1212 1.1 christos 1213 1.1 christos cat >>confdefs.h <<_ACEOF 1214 1.1 christos #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1215 1.1 christos _ACEOF 1216 1.1 christos 1217 1.1 christos 1218 1.1 christos # Let the site file select an alternate cache file if it wants to. 1219 1.1 christos # Prefer explicitly selected file to automatically selected ones. 1220 1.1 christos if test -z "$CONFIG_SITE"; then 1221 1.1 christos if test "x$prefix" != xNONE; then 1222 1.1 christos CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1223 1.1 christos else 1224 1.1 christos CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1225 1.1 christos fi 1226 1.1 christos fi 1227 1.1 christos for ac_site_file in $CONFIG_SITE; do 1228 1.1 christos if test -r "$ac_site_file"; then 1229 1.1 christos { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1230 1.1 christos echo "$as_me: loading site script $ac_site_file" >&6;} 1231 1.1 christos sed 's/^/| /' "$ac_site_file" >&5 1232 1.1 christos . "$ac_site_file" 1233 1.1 christos fi 1234 1.1 christos done 1235 1.1 christos 1236 1.1 christos if test -r "$cache_file"; then 1237 1.1 christos # Some versions of bash will fail to source /dev/null (special 1238 1.1 christos # files actually), so we avoid doing that. 1239 1.1 christos if test -f "$cache_file"; then 1240 1.1 christos { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1241 1.1 christos echo "$as_me: loading cache $cache_file" >&6;} 1242 1.1 christos case $cache_file in 1243 1.1 christos [\\/]* | ?:[\\/]* ) . $cache_file;; 1244 1.1 christos *) . ./$cache_file;; 1245 1.1 christos esac 1246 1.1 christos fi 1247 1.1 christos else 1248 1.1 christos { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1249 1.1 christos echo "$as_me: creating cache $cache_file" >&6;} 1250 1.1 christos >$cache_file 1251 1.1 christos fi 1252 1.1 christos 1253 1.1 christos # Check that the precious variables saved in the cache have kept the same 1254 1.1 christos # value. 1255 1.1 christos ac_cache_corrupted=false 1256 1.1 christos for ac_var in `(set) 2>&1 | 1257 1.1 christos sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1258 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set 1259 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set 1260 1.1 christos eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1261 1.1 christos eval ac_new_val="\$ac_env_${ac_var}_value" 1262 1.1 christos case $ac_old_set,$ac_new_set in 1263 1.1 christos set,) 1264 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1265 1.1 christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1266 1.1 christos ac_cache_corrupted=: ;; 1267 1.1 christos ,set) 1268 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1269 1.1 christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1270 1.1 christos ac_cache_corrupted=: ;; 1271 1.1 christos ,);; 1272 1.1 christos *) 1273 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then 1274 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1275 1.1 christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1276 1.1 christos { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1277 1.1 christos echo "$as_me: former value: $ac_old_val" >&2;} 1278 1.1 christos { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1279 1.1 christos echo "$as_me: current value: $ac_new_val" >&2;} 1280 1.1 christos ac_cache_corrupted=: 1281 1.1 christos fi;; 1282 1.1 christos esac 1283 1.1 christos # Pass precious variables to config.status. 1284 1.1 christos if test "$ac_new_set" = set; then 1285 1.1 christos case $ac_new_val in 1286 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1287 1.1 christos ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1288 1.1 christos *) ac_arg=$ac_var=$ac_new_val ;; 1289 1.1 christos esac 1290 1.1 christos case " $ac_configure_args " in 1291 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1292 1.1 christos *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1293 1.1 christos esac 1294 1.1 christos fi 1295 1.1 christos done 1296 1.1 christos if $ac_cache_corrupted; then 1297 1.1 christos { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1298 1.1 christos echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1299 1.1 christos { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1300 1.1 christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1301 1.1 christos { (exit 1); exit 1; }; } 1302 1.1 christos fi 1303 1.1 christos 1304 1.1 christos ac_ext=c 1305 1.1 christos ac_cpp='$CPP $CPPFLAGS' 1306 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1307 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1308 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 1309 1.1 christos 1310 1.1 christos 1311 1.1 christos 1312 1.1 christos 1313 1.1 christos 1314 1.1 christos 1315 1.1 christos 1316 1.1 christos 1317 1.1 christos 1318 1.1 christos 1319 1.1 christos 1320 1.1 christos 1321 1.1 christos 1322 1.1 christos 1323 1.1 christos 1324 1.1 christos 1325 1.1 christos 1326 1.1 christos 1327 1.1 christos 1328 1.1 christos 1329 1.1 christos 1330 1.1 christos 1331 1.1 christos 1332 1.1 christos 1333 1.1 christos 1334 1.1 christos 1335 1.1 christos 1336 1.1 christos 1337 1.1 christos 1338 1.1 christos 1339 1.1 christos 1340 1.1 christos # Autoconf setup 1341 1.1 christos ac_aux_dir= 1342 1.1 christos for ac_dir in config $srcdir/config; do 1343 1.1 christos if test -f $ac_dir/install-sh; then 1344 1.1 christos ac_aux_dir=$ac_dir 1345 1.1 christos ac_install_sh="$ac_aux_dir/install-sh -c" 1346 1.1 christos break 1347 1.1 christos elif test -f $ac_dir/install.sh; then 1348 1.1 christos ac_aux_dir=$ac_dir 1349 1.1 christos ac_install_sh="$ac_aux_dir/install.sh -c" 1350 1.1 christos break 1351 1.1 christos elif test -f $ac_dir/shtool; then 1352 1.1 christos ac_aux_dir=$ac_dir 1353 1.1 christos ac_install_sh="$ac_aux_dir/shtool install -c" 1354 1.1 christos break 1355 1.1 christos fi 1356 1.1 christos done 1357 1.1 christos if test -z "$ac_aux_dir"; then 1358 1.1 christos { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 1359 1.1 christos echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} 1360 1.1 christos { (exit 1); exit 1; }; } 1361 1.1 christos fi 1362 1.1 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1363 1.1 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1364 1.1 christos ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1365 1.1 christos 1366 1.1 christos 1367 1.1 christos ac_config_headers="$ac_config_headers config.h" 1368 1.1 christos 1369 1.1 christos 1370 1.1 christos # Automake setup 1371 1.1 christos am__api_version="1.9" 1372 1.1 christos # Find a good install program. We prefer a C program (faster), 1373 1.1 christos # so one script is as good as another. But avoid the broken or 1374 1.1 christos # incompatible versions: 1375 1.1 christos # SysV /etc/install, /usr/sbin/install 1376 1.1 christos # SunOS /usr/etc/install 1377 1.1 christos # IRIX /sbin/install 1378 1.1 christos # AIX /bin/install 1379 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs 1380 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1381 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1382 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1383 1.1 christos # OS/2's system install, which has a completely different semantic 1384 1.1 christos # ./install, which can be erroneously created by make from ./install.sh. 1385 1.1 christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1386 1.1 christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1387 1.1 christos if test -z "$INSTALL"; then 1388 1.1 christos if test "${ac_cv_path_install+set}" = set; then 1389 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1390 1.1 christos else 1391 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1392 1.1 christos for as_dir in $PATH 1393 1.1 christos do 1394 1.1 christos IFS=$as_save_IFS 1395 1.1 christos test -z "$as_dir" && as_dir=. 1396 1.1 christos # Account for people who put trailing slashes in PATH elements. 1397 1.1 christos case $as_dir/ in 1398 1.1 christos ./ | .// | /cC/* | \ 1399 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1400 1.1 christos ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1401 1.1 christos /usr/ucb/* ) ;; 1402 1.1 christos *) 1403 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install. 1404 1.1 christos # Don't use installbsd from OSF since it installs stuff as root 1405 1.1 christos # by default. 1406 1.1 christos for ac_prog in ginstall scoinst install; do 1407 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1408 1.1 christos if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1409 1.1 christos if test $ac_prog = install && 1410 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1411 1.1 christos # AIX install. It has an incompatible calling convention. 1412 1.1 christos : 1413 1.1 christos elif test $ac_prog = install && 1414 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1415 1.1 christos # program-specific install script used by HP pwplus--don't use. 1416 1.1 christos : 1417 1.1 christos else 1418 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1419 1.1 christos break 3 1420 1.1 christos fi 1421 1.1 christos fi 1422 1.1 christos done 1423 1.1 christos done 1424 1.1 christos ;; 1425 1.1 christos esac 1426 1.1 christos done 1427 1.1 christos 1428 1.1 christos 1429 1.1 christos fi 1430 1.1 christos if test "${ac_cv_path_install+set}" = set; then 1431 1.1 christos INSTALL=$ac_cv_path_install 1432 1.1 christos else 1433 1.1 christos # As a last resort, use the slow shell script. We don't cache a 1434 1.1 christos # path for INSTALL within a source directory, because that will 1435 1.1 christos # break other packages using the cache if that directory is 1436 1.1 christos # removed, or if the path is relative. 1437 1.1 christos INSTALL=$ac_install_sh 1438 1.1 christos fi 1439 1.1 christos fi 1440 1.1 christos echo "$as_me:$LINENO: result: $INSTALL" >&5 1441 1.1 christos echo "${ECHO_T}$INSTALL" >&6 1442 1.1 christos 1443 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1444 1.1 christos # It thinks the first close brace ends the variable substitution. 1445 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1446 1.1 christos 1447 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1448 1.1 christos 1449 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1450 1.1 christos 1451 1.1 christos echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1452 1.1 christos echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1453 1.1 christos # Just in case 1454 1.1 christos sleep 1 1455 1.1 christos echo timestamp > conftest.file 1456 1.1 christos # Do `set' in a subshell so we don't clobber the current shell's 1457 1.1 christos # arguments. Must try -L first in case configure is actually a 1458 1.1 christos # symlink; some systems play weird games with the mod time of symlinks 1459 1.1 christos # (eg FreeBSD returns the mod time of the symlink's containing 1460 1.1 christos # directory). 1461 1.1 christos if ( 1462 1.1 christos set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1463 1.1 christos if test "$*" = "X"; then 1464 1.1 christos # -L didn't work. 1465 1.1 christos set X `ls -t $srcdir/configure conftest.file` 1466 1.1 christos fi 1467 1.1 christos rm -f conftest.file 1468 1.1 christos if test "$*" != "X $srcdir/configure conftest.file" \ 1469 1.1 christos && test "$*" != "X conftest.file $srcdir/configure"; then 1470 1.1 christos 1471 1.1 christos # If neither matched, then we have a broken ls. This can happen 1472 1.1 christos # if, for instance, CONFIG_SHELL is bash and it inherits a 1473 1.1 christos # broken ls alias from the environment. This has actually 1474 1.1 christos # happened. Such a system could not be considered "sane". 1475 1.1 christos { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1476 1.1 christos alias in your environment" >&5 1477 1.1 christos echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1478 1.1 christos alias in your environment" >&2;} 1479 1.1 christos { (exit 1); exit 1; }; } 1480 1.1 christos fi 1481 1.1 christos 1482 1.1 christos test "$2" = conftest.file 1483 1.1 christos ) 1484 1.1 christos then 1485 1.1 christos # Ok. 1486 1.1 christos : 1487 1.1 christos else 1488 1.1 christos { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1489 1.1 christos Check your system clock" >&5 1490 1.1 christos echo "$as_me: error: newly created file is older than distributed files! 1491 1.1 christos Check your system clock" >&2;} 1492 1.1 christos { (exit 1); exit 1; }; } 1493 1.1 christos fi 1494 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 1495 1.1 christos echo "${ECHO_T}yes" >&6 1496 1.1 christos test "$program_prefix" != NONE && 1497 1.1 christos program_transform_name="s,^,$program_prefix,;$program_transform_name" 1498 1.1 christos # Use a double $ so make ignores it. 1499 1.1 christos test "$program_suffix" != NONE && 1500 1.1 christos program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1501 1.1 christos # Double any \ or $. echo might interpret backslashes. 1502 1.1 christos # By default was `s,x,x', remove it if useless. 1503 1.1 christos cat <<\_ACEOF >conftest.sed 1504 1.1 christos s/[\\$]/&&/g;s/;s,x,x,$// 1505 1.1 christos _ACEOF 1506 1.1 christos program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1507 1.1 christos rm conftest.sed 1508 1.1 christos 1509 1.1 christos # expand $ac_aux_dir to an absolute path 1510 1.1 christos am_aux_dir=`cd $ac_aux_dir && pwd` 1511 1.1 christos 1512 1.1 christos test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1513 1.1 christos # Use eval to expand $SHELL 1514 1.1 christos if eval "$MISSING --run true"; then 1515 1.1 christos am_missing_run="$MISSING --run " 1516 1.1 christos else 1517 1.1 christos am_missing_run= 1518 1.1 christos { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1519 1.1 christos echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1520 1.1 christos fi 1521 1.1 christos 1522 1.1 christos if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1523 1.1 christos # We used to keeping the `.' as first argument, in order to 1524 1.1 christos # allow $(mkdir_p) to be used without argument. As in 1525 1.1 christos # $(mkdir_p) $(somedir) 1526 1.1 christos # where $(somedir) is conditionally defined. However this is wrong 1527 1.1 christos # for two reasons: 1528 1.1 christos # 1. if the package is installed by a user who cannot write `.' 1529 1.1 christos # make install will fail, 1530 1.1 christos # 2. the above comment should most certainly read 1531 1.1 christos # $(mkdir_p) $(DESTDIR)$(somedir) 1532 1.1 christos # so it does not work when $(somedir) is undefined and 1533 1.1 christos # $(DESTDIR) is not. 1534 1.1 christos # To support the latter case, we have to write 1535 1.1 christos # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1536 1.1 christos # so the `.' trick is pointless. 1537 1.1 christos mkdir_p='mkdir -p --' 1538 1.1 christos else 1539 1.1 christos # On NextStep and OpenStep, the `mkdir' command does not 1540 1.1 christos # recognize any option. It will interpret all options as 1541 1.1 christos # directories to create, and then abort because `.' already 1542 1.1 christos # exists. 1543 1.1 christos for d in ./-p ./--version; 1544 1.1 christos do 1545 1.1 christos test -d $d && rmdir $d 1546 1.1 christos done 1547 1.1 christos # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1548 1.1 christos if test -f "$ac_aux_dir/mkinstalldirs"; then 1549 1.1 christos mkdir_p='$(mkinstalldirs)' 1550 1.1 christos else 1551 1.1 christos mkdir_p='$(install_sh) -d' 1552 1.1 christos fi 1553 1.1 christos fi 1554 1.1 christos 1555 1.1 christos for ac_prog in gawk mawk nawk awk 1556 1.1 christos do 1557 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 1558 1.1 christos set dummy $ac_prog; ac_word=$2 1559 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1560 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1561 1.1 christos if test "${ac_cv_prog_AWK+set}" = set; then 1562 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1563 1.1 christos else 1564 1.1 christos if test -n "$AWK"; then 1565 1.1 christos ac_cv_prog_AWK="$AWK" # Let the user override the test. 1566 1.1 christos else 1567 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1568 1.1 christos for as_dir in $PATH 1569 1.1 christos do 1570 1.1 christos IFS=$as_save_IFS 1571 1.1 christos test -z "$as_dir" && as_dir=. 1572 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1573 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1574 1.1 christos ac_cv_prog_AWK="$ac_prog" 1575 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1576 1.1 christos break 2 1577 1.1 christos fi 1578 1.1 christos done 1579 1.1 christos done 1580 1.1 christos 1581 1.1 christos fi 1582 1.1 christos fi 1583 1.1 christos AWK=$ac_cv_prog_AWK 1584 1.1 christos if test -n "$AWK"; then 1585 1.1 christos echo "$as_me:$LINENO: result: $AWK" >&5 1586 1.1 christos echo "${ECHO_T}$AWK" >&6 1587 1.1 christos else 1588 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1589 1.1 christos echo "${ECHO_T}no" >&6 1590 1.1 christos fi 1591 1.1 christos 1592 1.1 christos test -n "$AWK" && break 1593 1.1 christos done 1594 1.1 christos 1595 1.1 christos echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1596 1.1 christos echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1597 1.1 christos set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1598 1.1 christos if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1599 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1600 1.1 christos else 1601 1.1 christos cat >conftest.make <<\_ACEOF 1602 1.1 christos all: 1603 1.1 christos @echo 'ac_maketemp="$(MAKE)"' 1604 1.1 christos _ACEOF 1605 1.1 christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1606 1.1 christos eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1607 1.1 christos if test -n "$ac_maketemp"; then 1608 1.1 christos eval ac_cv_prog_make_${ac_make}_set=yes 1609 1.1 christos else 1610 1.1 christos eval ac_cv_prog_make_${ac_make}_set=no 1611 1.1 christos fi 1612 1.1 christos rm -f conftest.make 1613 1.1 christos fi 1614 1.1 christos if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1615 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 1616 1.1 christos echo "${ECHO_T}yes" >&6 1617 1.1 christos SET_MAKE= 1618 1.1 christos else 1619 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1620 1.1 christos echo "${ECHO_T}no" >&6 1621 1.1 christos SET_MAKE="MAKE=${MAKE-make}" 1622 1.1 christos fi 1623 1.1 christos 1624 1.1 christos rm -rf .tst 2>/dev/null 1625 1.1 christos mkdir .tst 2>/dev/null 1626 1.1 christos if test -d .tst; then 1627 1.1 christos am__leading_dot=. 1628 1.1 christos else 1629 1.1 christos am__leading_dot=_ 1630 1.1 christos fi 1631 1.1 christos rmdir .tst 2>/dev/null 1632 1.1 christos 1633 1.1 christos # test to see if srcdir already configured 1634 1.1 christos if test "`cd $srcdir && pwd`" != "`pwd`" && 1635 1.1 christos test -f $srcdir/config.status; then 1636 1.1 christos { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1637 1.1 christos echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1638 1.1 christos { (exit 1); exit 1; }; } 1639 1.1 christos fi 1640 1.1 christos 1641 1.1 christos # test whether we have cygpath 1642 1.1 christos if test -z "$CYGPATH_W"; then 1643 1.1 christos if (cygpath --version) >/dev/null 2>/dev/null; then 1644 1.1 christos CYGPATH_W='cygpath -w' 1645 1.1 christos else 1646 1.1 christos CYGPATH_W=echo 1647 1.1 christos fi 1648 1.1 christos fi 1649 1.1 christos 1650 1.1 christos 1651 1.1 christos # Define the identity of the package. 1652 1.1 christos PACKAGE='make' 1653 1.1 christos VERSION='3.81' 1654 1.1 christos 1655 1.1 christos 1656 1.1 christos cat >>confdefs.h <<_ACEOF 1657 1.1 christos #define PACKAGE "$PACKAGE" 1658 1.1 christos _ACEOF 1659 1.1 christos 1660 1.1 christos 1661 1.1 christos cat >>confdefs.h <<_ACEOF 1662 1.1 christos #define VERSION "$VERSION" 1663 1.1 christos _ACEOF 1664 1.1 christos 1665 1.1 christos # Some tools Automake needs. 1666 1.1 christos 1667 1.1 christos ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1668 1.1 christos 1669 1.1 christos 1670 1.1 christos AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1671 1.1 christos 1672 1.1 christos 1673 1.1 christos AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1674 1.1 christos 1675 1.1 christos 1676 1.1 christos AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1677 1.1 christos 1678 1.1 christos 1679 1.1 christos MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1680 1.1 christos 1681 1.1 christos install_sh=${install_sh-"$am_aux_dir/install-sh"} 1682 1.1 christos 1683 1.1 christos # Installed binaries are usually stripped using `strip' when the user 1684 1.1 christos # run `make install-strip'. However `strip' might not be the right 1685 1.1 christos # tool to use in cross-compilation environments, therefore Automake 1686 1.1 christos # will honor the `STRIP' environment variable to overrule this program. 1687 1.1 christos if test "$cross_compiling" != no; then 1688 1.1 christos if test -n "$ac_tool_prefix"; then 1689 1.1 christos # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1690 1.1 christos set dummy ${ac_tool_prefix}strip; ac_word=$2 1691 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1692 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1693 1.1 christos if test "${ac_cv_prog_STRIP+set}" = set; then 1694 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1695 1.1 christos else 1696 1.1 christos if test -n "$STRIP"; then 1697 1.1 christos ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1698 1.1 christos else 1699 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1700 1.1 christos for as_dir in $PATH 1701 1.1 christos do 1702 1.1 christos IFS=$as_save_IFS 1703 1.1 christos test -z "$as_dir" && as_dir=. 1704 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1705 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1706 1.1 christos ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1707 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1708 1.1 christos break 2 1709 1.1 christos fi 1710 1.1 christos done 1711 1.1 christos done 1712 1.1 christos 1713 1.1 christos fi 1714 1.1 christos fi 1715 1.1 christos STRIP=$ac_cv_prog_STRIP 1716 1.1 christos if test -n "$STRIP"; then 1717 1.1 christos echo "$as_me:$LINENO: result: $STRIP" >&5 1718 1.1 christos echo "${ECHO_T}$STRIP" >&6 1719 1.1 christos else 1720 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1721 1.1 christos echo "${ECHO_T}no" >&6 1722 1.1 christos fi 1723 1.1 christos 1724 1.1 christos fi 1725 1.1 christos if test -z "$ac_cv_prog_STRIP"; then 1726 1.1 christos ac_ct_STRIP=$STRIP 1727 1.1 christos # Extract the first word of "strip", so it can be a program name with args. 1728 1.1 christos set dummy strip; ac_word=$2 1729 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1730 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1731 1.1 christos if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1732 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1733 1.1 christos else 1734 1.1 christos if test -n "$ac_ct_STRIP"; then 1735 1.1 christos ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1736 1.1 christos else 1737 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1738 1.1 christos for as_dir in $PATH 1739 1.1 christos do 1740 1.1 christos IFS=$as_save_IFS 1741 1.1 christos test -z "$as_dir" && as_dir=. 1742 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1743 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1744 1.1 christos ac_cv_prog_ac_ct_STRIP="strip" 1745 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1746 1.1 christos break 2 1747 1.1 christos fi 1748 1.1 christos done 1749 1.1 christos done 1750 1.1 christos 1751 1.1 christos test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1752 1.1 christos fi 1753 1.1 christos fi 1754 1.1 christos ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1755 1.1 christos if test -n "$ac_ct_STRIP"; then 1756 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1757 1.1 christos echo "${ECHO_T}$ac_ct_STRIP" >&6 1758 1.1 christos else 1759 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1760 1.1 christos echo "${ECHO_T}no" >&6 1761 1.1 christos fi 1762 1.1 christos 1763 1.1 christos STRIP=$ac_ct_STRIP 1764 1.1 christos else 1765 1.1 christos STRIP="$ac_cv_prog_STRIP" 1766 1.1 christos fi 1767 1.1 christos 1768 1.1 christos fi 1769 1.1 christos INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1770 1.1 christos 1771 1.1 christos # We need awk for the "check" target. The system "awk" is bad on 1772 1.1 christos # some platforms. 1773 1.1 christos # Always define AMTAR for backward compatibility. 1774 1.1 christos 1775 1.1 christos AMTAR=${AMTAR-"${am_missing_run}tar"} 1776 1.1 christos 1777 1.1 christos am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1778 1.1 christos 1779 1.1 christos 1780 1.1 christos 1781 1.1 christos 1782 1.1 christos 1783 1.1 christos 1784 1.1 christos # Checks for programs. 1785 1.1 christos ac_ext=c 1786 1.1 christos ac_cpp='$CPP $CPPFLAGS' 1787 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1788 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1789 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 1790 1.1 christos if test -n "$ac_tool_prefix"; then 1791 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1792 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2 1793 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1794 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1795 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1796 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1797 1.1 christos else 1798 1.1 christos if test -n "$CC"; then 1799 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 1800 1.1 christos else 1801 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1802 1.1 christos for as_dir in $PATH 1803 1.1 christos do 1804 1.1 christos IFS=$as_save_IFS 1805 1.1 christos test -z "$as_dir" && as_dir=. 1806 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1807 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1808 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc" 1809 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1810 1.1 christos break 2 1811 1.1 christos fi 1812 1.1 christos done 1813 1.1 christos done 1814 1.1 christos 1815 1.1 christos fi 1816 1.1 christos fi 1817 1.1 christos CC=$ac_cv_prog_CC 1818 1.1 christos if test -n "$CC"; then 1819 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 1820 1.1 christos echo "${ECHO_T}$CC" >&6 1821 1.1 christos else 1822 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1823 1.1 christos echo "${ECHO_T}no" >&6 1824 1.1 christos fi 1825 1.1 christos 1826 1.1 christos fi 1827 1.1 christos if test -z "$ac_cv_prog_CC"; then 1828 1.1 christos ac_ct_CC=$CC 1829 1.1 christos # Extract the first word of "gcc", so it can be a program name with args. 1830 1.1 christos set dummy gcc; ac_word=$2 1831 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1832 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1833 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1834 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1835 1.1 christos else 1836 1.1 christos if test -n "$ac_ct_CC"; then 1837 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1838 1.1 christos else 1839 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1840 1.1 christos for as_dir in $PATH 1841 1.1 christos do 1842 1.1 christos IFS=$as_save_IFS 1843 1.1 christos test -z "$as_dir" && as_dir=. 1844 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1845 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1846 1.1 christos ac_cv_prog_ac_ct_CC="gcc" 1847 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1848 1.1 christos break 2 1849 1.1 christos fi 1850 1.1 christos done 1851 1.1 christos done 1852 1.1 christos 1853 1.1 christos fi 1854 1.1 christos fi 1855 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 1856 1.1 christos if test -n "$ac_ct_CC"; then 1857 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1858 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6 1859 1.1 christos else 1860 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1861 1.1 christos echo "${ECHO_T}no" >&6 1862 1.1 christos fi 1863 1.1 christos 1864 1.1 christos CC=$ac_ct_CC 1865 1.1 christos else 1866 1.1 christos CC="$ac_cv_prog_CC" 1867 1.1 christos fi 1868 1.1 christos 1869 1.1 christos if test -z "$CC"; then 1870 1.1 christos if test -n "$ac_tool_prefix"; then 1871 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1872 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2 1873 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1874 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1875 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1876 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1877 1.1 christos else 1878 1.1 christos if test -n "$CC"; then 1879 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 1880 1.1 christos else 1881 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1882 1.1 christos for as_dir in $PATH 1883 1.1 christos do 1884 1.1 christos IFS=$as_save_IFS 1885 1.1 christos test -z "$as_dir" && as_dir=. 1886 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1887 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1888 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc" 1889 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1890 1.1 christos break 2 1891 1.1 christos fi 1892 1.1 christos done 1893 1.1 christos done 1894 1.1 christos 1895 1.1 christos fi 1896 1.1 christos fi 1897 1.1 christos CC=$ac_cv_prog_CC 1898 1.1 christos if test -n "$CC"; then 1899 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 1900 1.1 christos echo "${ECHO_T}$CC" >&6 1901 1.1 christos else 1902 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1903 1.1 christos echo "${ECHO_T}no" >&6 1904 1.1 christos fi 1905 1.1 christos 1906 1.1 christos fi 1907 1.1 christos if test -z "$ac_cv_prog_CC"; then 1908 1.1 christos ac_ct_CC=$CC 1909 1.1 christos # Extract the first word of "cc", so it can be a program name with args. 1910 1.1 christos set dummy cc; ac_word=$2 1911 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1912 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1913 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1914 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1915 1.1 christos else 1916 1.1 christos if test -n "$ac_ct_CC"; then 1917 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1918 1.1 christos else 1919 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1920 1.1 christos for as_dir in $PATH 1921 1.1 christos do 1922 1.1 christos IFS=$as_save_IFS 1923 1.1 christos test -z "$as_dir" && as_dir=. 1924 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1925 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1926 1.1 christos ac_cv_prog_ac_ct_CC="cc" 1927 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1928 1.1 christos break 2 1929 1.1 christos fi 1930 1.1 christos done 1931 1.1 christos done 1932 1.1 christos 1933 1.1 christos fi 1934 1.1 christos fi 1935 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 1936 1.1 christos if test -n "$ac_ct_CC"; then 1937 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1938 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6 1939 1.1 christos else 1940 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1941 1.1 christos echo "${ECHO_T}no" >&6 1942 1.1 christos fi 1943 1.1 christos 1944 1.1 christos CC=$ac_ct_CC 1945 1.1 christos else 1946 1.1 christos CC="$ac_cv_prog_CC" 1947 1.1 christos fi 1948 1.1 christos 1949 1.1 christos fi 1950 1.1 christos if test -z "$CC"; then 1951 1.1 christos # Extract the first word of "cc", so it can be a program name with args. 1952 1.1 christos set dummy cc; ac_word=$2 1953 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1954 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1955 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1956 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1957 1.1 christos else 1958 1.1 christos if test -n "$CC"; then 1959 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 1960 1.1 christos else 1961 1.1 christos ac_prog_rejected=no 1962 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1963 1.1 christos for as_dir in $PATH 1964 1.1 christos do 1965 1.1 christos IFS=$as_save_IFS 1966 1.1 christos test -z "$as_dir" && as_dir=. 1967 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1968 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1969 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1970 1.1 christos ac_prog_rejected=yes 1971 1.1 christos continue 1972 1.1 christos fi 1973 1.1 christos ac_cv_prog_CC="cc" 1974 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1975 1.1 christos break 2 1976 1.1 christos fi 1977 1.1 christos done 1978 1.1 christos done 1979 1.1 christos 1980 1.1 christos if test $ac_prog_rejected = yes; then 1981 1.1 christos # We found a bogon in the path, so make sure we never use it. 1982 1.1 christos set dummy $ac_cv_prog_CC 1983 1.1 christos shift 1984 1.1 christos if test $# != 0; then 1985 1.1 christos # We chose a different compiler from the bogus one. 1986 1.1 christos # However, it has the same basename, so the bogon will be chosen 1987 1.1 christos # first if we set CC to just the basename; use the full file name. 1988 1.1 christos shift 1989 1.1 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1990 1.1 christos fi 1991 1.1 christos fi 1992 1.1 christos fi 1993 1.1 christos fi 1994 1.1 christos CC=$ac_cv_prog_CC 1995 1.1 christos if test -n "$CC"; then 1996 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 1997 1.1 christos echo "${ECHO_T}$CC" >&6 1998 1.1 christos else 1999 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2000 1.1 christos echo "${ECHO_T}no" >&6 2001 1.1 christos fi 2002 1.1 christos 2003 1.1 christos fi 2004 1.1 christos if test -z "$CC"; then 2005 1.1 christos if test -n "$ac_tool_prefix"; then 2006 1.1 christos for ac_prog in cl 2007 1.1 christos do 2008 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2009 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2010 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 2011 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2012 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 2013 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2014 1.1 christos else 2015 1.1 christos if test -n "$CC"; then 2016 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 2017 1.1 christos else 2018 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2019 1.1 christos for as_dir in $PATH 2020 1.1 christos do 2021 1.1 christos IFS=$as_save_IFS 2022 1.1 christos test -z "$as_dir" && as_dir=. 2023 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2024 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2025 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2026 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2027 1.1 christos break 2 2028 1.1 christos fi 2029 1.1 christos done 2030 1.1 christos done 2031 1.1 christos 2032 1.1 christos fi 2033 1.1 christos fi 2034 1.1 christos CC=$ac_cv_prog_CC 2035 1.1 christos if test -n "$CC"; then 2036 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 2037 1.1 christos echo "${ECHO_T}$CC" >&6 2038 1.1 christos else 2039 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2040 1.1 christos echo "${ECHO_T}no" >&6 2041 1.1 christos fi 2042 1.1 christos 2043 1.1 christos test -n "$CC" && break 2044 1.1 christos done 2045 1.1 christos fi 2046 1.1 christos if test -z "$CC"; then 2047 1.1 christos ac_ct_CC=$CC 2048 1.1 christos for ac_prog in cl 2049 1.1 christos do 2050 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 2051 1.1 christos set dummy $ac_prog; ac_word=$2 2052 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 2053 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2054 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2055 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2056 1.1 christos else 2057 1.1 christos if test -n "$ac_ct_CC"; then 2058 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2059 1.1 christos else 2060 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2061 1.1 christos for as_dir in $PATH 2062 1.1 christos do 2063 1.1 christos IFS=$as_save_IFS 2064 1.1 christos test -z "$as_dir" && as_dir=. 2065 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2066 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2067 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog" 2068 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2069 1.1 christos break 2 2070 1.1 christos fi 2071 1.1 christos done 2072 1.1 christos done 2073 1.1 christos 2074 1.1 christos fi 2075 1.1 christos fi 2076 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 2077 1.1 christos if test -n "$ac_ct_CC"; then 2078 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2079 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6 2080 1.1 christos else 2081 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2082 1.1 christos echo "${ECHO_T}no" >&6 2083 1.1 christos fi 2084 1.1 christos 2085 1.1 christos test -n "$ac_ct_CC" && break 2086 1.1 christos done 2087 1.1 christos 2088 1.1 christos CC=$ac_ct_CC 2089 1.1 christos fi 2090 1.1 christos 2091 1.1 christos fi 2092 1.1 christos 2093 1.1 christos 2094 1.1 christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2095 1.1 christos See \`config.log' for more details." >&5 2096 1.1 christos echo "$as_me: error: no acceptable C compiler found in \$PATH 2097 1.1 christos See \`config.log' for more details." >&2;} 2098 1.1 christos { (exit 1); exit 1; }; } 2099 1.1 christos 2100 1.1 christos # Provide some information about the compiler. 2101 1.1 christos echo "$as_me:$LINENO:" \ 2102 1.1 christos "checking for C compiler version" >&5 2103 1.1 christos ac_compiler=`set X $ac_compile; echo $2` 2104 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2105 1.1 christos (eval $ac_compiler --version </dev/null >&5) 2>&5 2106 1.1 christos ac_status=$? 2107 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2108 1.1 christos (exit $ac_status); } 2109 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2110 1.1 christos (eval $ac_compiler -v </dev/null >&5) 2>&5 2111 1.1 christos ac_status=$? 2112 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2113 1.1 christos (exit $ac_status); } 2114 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2115 1.1 christos (eval $ac_compiler -V </dev/null >&5) 2>&5 2116 1.1 christos ac_status=$? 2117 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2118 1.1 christos (exit $ac_status); } 2119 1.1 christos 2120 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2121 1.1 christos /* confdefs.h. */ 2122 1.1 christos _ACEOF 2123 1.1 christos cat confdefs.h >>conftest.$ac_ext 2124 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2125 1.1 christos /* end confdefs.h. */ 2126 1.1 christos 2127 1.1 christos int 2128 1.1 christos main () 2129 1.1 christos { 2130 1.1 christos 2131 1.1 christos ; 2132 1.1 christos return 0; 2133 1.1 christos } 2134 1.1 christos _ACEOF 2135 1.1 christos ac_clean_files_save=$ac_clean_files 2136 1.1 christos ac_clean_files="$ac_clean_files a.out a.exe b.out" 2137 1.1 christos # Try to create an executable without -o first, disregard a.out. 2138 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition 2139 1.1 christos # of exeext. 2140 1.1 christos echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2141 1.1 christos echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2142 1.1 christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2143 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2144 1.1 christos (eval $ac_link_default) 2>&5 2145 1.1 christos ac_status=$? 2146 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2147 1.1 christos (exit $ac_status); }; then 2148 1.1 christos # Find the output, starting from the most likely. This scheme is 2149 1.1 christos # not robust to junk in `.', hence go to wildcards (a.*) only as a last 2150 1.1 christos # resort. 2151 1.1 christos 2152 1.1 christos # Be careful to initialize this variable, since it used to be cached. 2153 1.1 christos # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2154 1.1 christos ac_cv_exeext= 2155 1.1 christos # b.out is created by i960 compilers. 2156 1.1 christos for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2157 1.1 christos do 2158 1.1 christos test -f "$ac_file" || continue 2159 1.1 christos case $ac_file in 2160 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2161 1.1 christos ;; 2162 1.1 christos conftest.$ac_ext ) 2163 1.1 christos # This is the source file. 2164 1.1 christos ;; 2165 1.1 christos [ab].out ) 2166 1.1 christos # We found the default executable, but exeext='' is most 2167 1.1 christos # certainly right. 2168 1.1 christos break;; 2169 1.1 christos *.* ) 2170 1.1 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2171 1.1 christos # FIXME: I believe we export ac_cv_exeext for Libtool, 2172 1.1 christos # but it would be cool to find out if it's true. Does anybody 2173 1.1 christos # maintain Libtool? --akim. 2174 1.1 christos export ac_cv_exeext 2175 1.1 christos break;; 2176 1.1 christos * ) 2177 1.1 christos break;; 2178 1.1 christos esac 2179 1.1 christos done 2180 1.1 christos else 2181 1.1 christos echo "$as_me: failed program was:" >&5 2182 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2183 1.1 christos 2184 1.1 christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2185 1.1 christos See \`config.log' for more details." >&5 2186 1.1 christos echo "$as_me: error: C compiler cannot create executables 2187 1.1 christos See \`config.log' for more details." >&2;} 2188 1.1 christos { (exit 77); exit 77; }; } 2189 1.1 christos fi 2190 1.1 christos 2191 1.1 christos ac_exeext=$ac_cv_exeext 2192 1.1 christos echo "$as_me:$LINENO: result: $ac_file" >&5 2193 1.1 christos echo "${ECHO_T}$ac_file" >&6 2194 1.1 christos 2195 1.1 christos # Check the compiler produces executables we can run. If not, either 2196 1.1 christos # the compiler is broken, or we cross compile. 2197 1.1 christos echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2198 1.1 christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2199 1.1 christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2200 1.1 christos # If not cross compiling, check that we can run a simple program. 2201 1.1 christos if test "$cross_compiling" != yes; then 2202 1.1 christos if { ac_try='./$ac_file' 2203 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2204 1.1 christos (eval $ac_try) 2>&5 2205 1.1 christos ac_status=$? 2206 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 1.1 christos (exit $ac_status); }; }; then 2208 1.1 christos cross_compiling=no 2209 1.1 christos else 2210 1.1 christos if test "$cross_compiling" = maybe; then 2211 1.1 christos cross_compiling=yes 2212 1.1 christos else 2213 1.1 christos { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2214 1.1 christos If you meant to cross compile, use \`--host'. 2215 1.1 christos See \`config.log' for more details." >&5 2216 1.1 christos echo "$as_me: error: cannot run C compiled programs. 2217 1.1 christos If you meant to cross compile, use \`--host'. 2218 1.1 christos See \`config.log' for more details." >&2;} 2219 1.1 christos { (exit 1); exit 1; }; } 2220 1.1 christos fi 2221 1.1 christos fi 2222 1.1 christos fi 2223 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 2224 1.1 christos echo "${ECHO_T}yes" >&6 2225 1.1 christos 2226 1.1 christos rm -f a.out a.exe conftest$ac_cv_exeext b.out 2227 1.1 christos ac_clean_files=$ac_clean_files_save 2228 1.1 christos # Check the compiler produces executables we can run. If not, either 2229 1.1 christos # the compiler is broken, or we cross compile. 2230 1.1 christos echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2231 1.1 christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2232 1.1 christos echo "$as_me:$LINENO: result: $cross_compiling" >&5 2233 1.1 christos echo "${ECHO_T}$cross_compiling" >&6 2234 1.1 christos 2235 1.1 christos echo "$as_me:$LINENO: checking for suffix of executables" >&5 2236 1.1 christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2237 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2238 1.1 christos (eval $ac_link) 2>&5 2239 1.1 christos ac_status=$? 2240 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2241 1.1 christos (exit $ac_status); }; then 2242 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable) 2243 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2244 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with 2245 1.1 christos # `rm'. 2246 1.1 christos for ac_file in conftest.exe conftest conftest.*; do 2247 1.1 christos test -f "$ac_file" || continue 2248 1.1 christos case $ac_file in 2249 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2250 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2251 1.1 christos export ac_cv_exeext 2252 1.1 christos break;; 2253 1.1 christos * ) break;; 2254 1.1 christos esac 2255 1.1 christos done 2256 1.1 christos else 2257 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2258 1.1 christos See \`config.log' for more details." >&5 2259 1.1 christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2260 1.1 christos See \`config.log' for more details." >&2;} 2261 1.1 christos { (exit 1); exit 1; }; } 2262 1.1 christos fi 2263 1.1 christos 2264 1.1 christos rm -f conftest$ac_cv_exeext 2265 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2266 1.1 christos echo "${ECHO_T}$ac_cv_exeext" >&6 2267 1.1 christos 2268 1.1 christos rm -f conftest.$ac_ext 2269 1.1 christos EXEEXT=$ac_cv_exeext 2270 1.1 christos ac_exeext=$EXEEXT 2271 1.1 christos echo "$as_me:$LINENO: checking for suffix of object files" >&5 2272 1.1 christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2273 1.1 christos if test "${ac_cv_objext+set}" = set; then 2274 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2275 1.1 christos else 2276 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2277 1.1 christos /* confdefs.h. */ 2278 1.1 christos _ACEOF 2279 1.1 christos cat confdefs.h >>conftest.$ac_ext 2280 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2281 1.1 christos /* end confdefs.h. */ 2282 1.1 christos 2283 1.1 christos int 2284 1.1 christos main () 2285 1.1 christos { 2286 1.1 christos 2287 1.1 christos ; 2288 1.1 christos return 0; 2289 1.1 christos } 2290 1.1 christos _ACEOF 2291 1.1 christos rm -f conftest.o conftest.obj 2292 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2293 1.1 christos (eval $ac_compile) 2>&5 2294 1.1 christos ac_status=$? 2295 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2296 1.1 christos (exit $ac_status); }; then 2297 1.1 christos for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2298 1.1 christos case $ac_file in 2299 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2300 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2301 1.1 christos break;; 2302 1.1 christos esac 2303 1.1 christos done 2304 1.1 christos else 2305 1.1 christos echo "$as_me: failed program was:" >&5 2306 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2307 1.1 christos 2308 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2309 1.1 christos See \`config.log' for more details." >&5 2310 1.1 christos echo "$as_me: error: cannot compute suffix of object files: cannot compile 2311 1.1 christos See \`config.log' for more details." >&2;} 2312 1.1 christos { (exit 1); exit 1; }; } 2313 1.1 christos fi 2314 1.1 christos 2315 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext 2316 1.1 christos fi 2317 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2318 1.1 christos echo "${ECHO_T}$ac_cv_objext" >&6 2319 1.1 christos OBJEXT=$ac_cv_objext 2320 1.1 christos ac_objext=$OBJEXT 2321 1.1 christos echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2322 1.1 christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2323 1.1 christos if test "${ac_cv_c_compiler_gnu+set}" = set; then 2324 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2325 1.1 christos else 2326 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2327 1.1 christos /* confdefs.h. */ 2328 1.1 christos _ACEOF 2329 1.1 christos cat confdefs.h >>conftest.$ac_ext 2330 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2331 1.1 christos /* end confdefs.h. */ 2332 1.1 christos 2333 1.1 christos int 2334 1.1 christos main () 2335 1.1 christos { 2336 1.1 christos #ifndef __GNUC__ 2337 1.1 christos choke me 2338 1.1 christos #endif 2339 1.1 christos 2340 1.1 christos ; 2341 1.1 christos return 0; 2342 1.1 christos } 2343 1.1 christos _ACEOF 2344 1.1 christos rm -f conftest.$ac_objext 2345 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2346 1.1 christos (eval $ac_compile) 2>conftest.er1 2347 1.1 christos ac_status=$? 2348 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2349 1.1 christos rm -f conftest.er1 2350 1.1 christos cat conftest.err >&5 2351 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2352 1.1 christos (exit $ac_status); } && 2353 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2354 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2355 1.1 christos (eval $ac_try) 2>&5 2356 1.1 christos ac_status=$? 2357 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2358 1.1 christos (exit $ac_status); }; } && 2359 1.1 christos { ac_try='test -s conftest.$ac_objext' 2360 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2361 1.1 christos (eval $ac_try) 2>&5 2362 1.1 christos ac_status=$? 2363 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2364 1.1 christos (exit $ac_status); }; }; then 2365 1.1 christos ac_compiler_gnu=yes 2366 1.1 christos else 2367 1.1 christos echo "$as_me: failed program was:" >&5 2368 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2369 1.1 christos 2370 1.1 christos ac_compiler_gnu=no 2371 1.1 christos fi 2372 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2373 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu 2374 1.1 christos 2375 1.1 christos fi 2376 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2377 1.1 christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2378 1.1 christos GCC=`test $ac_compiler_gnu = yes && echo yes` 2379 1.1 christos ac_test_CFLAGS=${CFLAGS+set} 2380 1.1 christos ac_save_CFLAGS=$CFLAGS 2381 1.1 christos CFLAGS="-g" 2382 1.1 christos echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2383 1.1 christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2384 1.1 christos if test "${ac_cv_prog_cc_g+set}" = set; then 2385 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2386 1.1 christos else 2387 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2388 1.1 christos /* confdefs.h. */ 2389 1.1 christos _ACEOF 2390 1.1 christos cat confdefs.h >>conftest.$ac_ext 2391 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2392 1.1 christos /* end confdefs.h. */ 2393 1.1 christos 2394 1.1 christos int 2395 1.1 christos main () 2396 1.1 christos { 2397 1.1 christos 2398 1.1 christos ; 2399 1.1 christos return 0; 2400 1.1 christos } 2401 1.1 christos _ACEOF 2402 1.1 christos rm -f conftest.$ac_objext 2403 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2404 1.1 christos (eval $ac_compile) 2>conftest.er1 2405 1.1 christos ac_status=$? 2406 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2407 1.1 christos rm -f conftest.er1 2408 1.1 christos cat conftest.err >&5 2409 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2410 1.1 christos (exit $ac_status); } && 2411 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2412 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2413 1.1 christos (eval $ac_try) 2>&5 2414 1.1 christos ac_status=$? 2415 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2416 1.1 christos (exit $ac_status); }; } && 2417 1.1 christos { ac_try='test -s conftest.$ac_objext' 2418 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2419 1.1 christos (eval $ac_try) 2>&5 2420 1.1 christos ac_status=$? 2421 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2422 1.1 christos (exit $ac_status); }; }; then 2423 1.1 christos ac_cv_prog_cc_g=yes 2424 1.1 christos else 2425 1.1 christos echo "$as_me: failed program was:" >&5 2426 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2427 1.1 christos 2428 1.1 christos ac_cv_prog_cc_g=no 2429 1.1 christos fi 2430 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2431 1.1 christos fi 2432 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2433 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2434 1.1 christos if test "$ac_test_CFLAGS" = set; then 2435 1.1 christos CFLAGS=$ac_save_CFLAGS 2436 1.1 christos elif test $ac_cv_prog_cc_g = yes; then 2437 1.1 christos if test "$GCC" = yes; then 2438 1.1 christos CFLAGS="-g -O2" 2439 1.1 christos else 2440 1.1 christos CFLAGS="-g" 2441 1.1 christos fi 2442 1.1 christos else 2443 1.1 christos if test "$GCC" = yes; then 2444 1.1 christos CFLAGS="-O2" 2445 1.1 christos else 2446 1.1 christos CFLAGS= 2447 1.1 christos fi 2448 1.1 christos fi 2449 1.1 christos echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2450 1.1 christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2451 1.1 christos if test "${ac_cv_prog_cc_stdc+set}" = set; then 2452 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2453 1.1 christos else 2454 1.1 christos ac_cv_prog_cc_stdc=no 2455 1.1 christos ac_save_CC=$CC 2456 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2457 1.1 christos /* confdefs.h. */ 2458 1.1 christos _ACEOF 2459 1.1 christos cat confdefs.h >>conftest.$ac_ext 2460 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2461 1.1 christos /* end confdefs.h. */ 2462 1.1 christos #include <stdarg.h> 2463 1.1 christos #include <stdio.h> 2464 1.1 christos #include <sys/types.h> 2465 1.1 christos #include <sys/stat.h> 2466 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2467 1.1 christos struct buf { int x; }; 2468 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int); 2469 1.1 christos static char *e (p, i) 2470 1.1 christos char **p; 2471 1.1 christos int i; 2472 1.1 christos { 2473 1.1 christos return p[i]; 2474 1.1 christos } 2475 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...) 2476 1.1 christos { 2477 1.1 christos char *s; 2478 1.1 christos va_list v; 2479 1.1 christos va_start (v,p); 2480 1.1 christos s = g (p, va_arg (v,int)); 2481 1.1 christos va_end (v); 2482 1.1 christos return s; 2483 1.1 christos } 2484 1.1 christos 2485 1.1 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2486 1.1 christos function prototypes and stuff, but not '\xHH' hex character constants. 2487 1.1 christos These don't provoke an error unfortunately, instead are silently treated 2488 1.1 christos as 'x'. The following induces an error, until -std1 is added to get 2489 1.1 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2490 1.1 christos array size at least. It's necessary to write '\x00'==0 to get something 2491 1.1 christos that's true only with -std1. */ 2492 1.1 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2493 1.1 christos 2494 1.1 christos int test (int i, double x); 2495 1.1 christos struct s1 {int (*f) (int a);}; 2496 1.1 christos struct s2 {int (*f) (double a);}; 2497 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2498 1.1 christos int argc; 2499 1.1 christos char **argv; 2500 1.1 christos int 2501 1.1 christos main () 2502 1.1 christos { 2503 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2504 1.1 christos ; 2505 1.1 christos return 0; 2506 1.1 christos } 2507 1.1 christos _ACEOF 2508 1.1 christos # Don't try gcc -ansi; that turns off useful extensions and 2509 1.1 christos # breaks some systems' header files. 2510 1.1 christos # AIX -qlanglvl=ansi 2511 1.1 christos # Ultrix and OSF/1 -std1 2512 1.1 christos # HP-UX 10.20 and later -Ae 2513 1.1 christos # HP-UX older versions -Aa -D_HPUX_SOURCE 2514 1.1 christos # SVR4 -Xc -D__EXTENSIONS__ 2515 1.1 christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2516 1.1 christos do 2517 1.1 christos CC="$ac_save_CC $ac_arg" 2518 1.1 christos rm -f conftest.$ac_objext 2519 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2520 1.1 christos (eval $ac_compile) 2>conftest.er1 2521 1.1 christos ac_status=$? 2522 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2523 1.1 christos rm -f conftest.er1 2524 1.1 christos cat conftest.err >&5 2525 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2526 1.1 christos (exit $ac_status); } && 2527 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2528 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2529 1.1 christos (eval $ac_try) 2>&5 2530 1.1 christos ac_status=$? 2531 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2532 1.1 christos (exit $ac_status); }; } && 2533 1.1 christos { ac_try='test -s conftest.$ac_objext' 2534 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2535 1.1 christos (eval $ac_try) 2>&5 2536 1.1 christos ac_status=$? 2537 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 1.1 christos (exit $ac_status); }; }; then 2539 1.1 christos ac_cv_prog_cc_stdc=$ac_arg 2540 1.1 christos break 2541 1.1 christos else 2542 1.1 christos echo "$as_me: failed program was:" >&5 2543 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2544 1.1 christos 2545 1.1 christos fi 2546 1.1 christos rm -f conftest.err conftest.$ac_objext 2547 1.1 christos done 2548 1.1 christos rm -f conftest.$ac_ext conftest.$ac_objext 2549 1.1 christos CC=$ac_save_CC 2550 1.1 christos 2551 1.1 christos fi 2552 1.1 christos 2553 1.1 christos case "x$ac_cv_prog_cc_stdc" in 2554 1.1 christos x|xno) 2555 1.1 christos echo "$as_me:$LINENO: result: none needed" >&5 2556 1.1 christos echo "${ECHO_T}none needed" >&6 ;; 2557 1.1 christos *) 2558 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2559 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2560 1.1 christos CC="$CC $ac_cv_prog_cc_stdc" ;; 2561 1.1 christos esac 2562 1.1 christos 2563 1.1 christos # Some people use a C++ compiler to compile C. Since we use `exit', 2564 1.1 christos # in C++ we need to declare it. In case someone uses the same compiler 2565 1.1 christos # for both compiling C and C++ we need to have the C++ compiler decide 2566 1.1 christos # the declaration of exit, since it's the most demanding environment. 2567 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2568 1.1 christos #ifndef __cplusplus 2569 1.1 christos choke me 2570 1.1 christos #endif 2571 1.1 christos _ACEOF 2572 1.1 christos rm -f conftest.$ac_objext 2573 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2574 1.1 christos (eval $ac_compile) 2>conftest.er1 2575 1.1 christos ac_status=$? 2576 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2577 1.1 christos rm -f conftest.er1 2578 1.1 christos cat conftest.err >&5 2579 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2580 1.1 christos (exit $ac_status); } && 2581 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2582 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2583 1.1 christos (eval $ac_try) 2>&5 2584 1.1 christos ac_status=$? 2585 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2586 1.1 christos (exit $ac_status); }; } && 2587 1.1 christos { ac_try='test -s conftest.$ac_objext' 2588 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2589 1.1 christos (eval $ac_try) 2>&5 2590 1.1 christos ac_status=$? 2591 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2592 1.1 christos (exit $ac_status); }; }; then 2593 1.1 christos for ac_declaration in \ 2594 1.1 christos '' \ 2595 1.1 christos 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2596 1.1 christos 'extern "C" void std::exit (int); using std::exit;' \ 2597 1.1 christos 'extern "C" void exit (int) throw ();' \ 2598 1.1 christos 'extern "C" void exit (int);' \ 2599 1.1 christos 'void exit (int);' 2600 1.1 christos do 2601 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2602 1.1 christos /* confdefs.h. */ 2603 1.1 christos _ACEOF 2604 1.1 christos cat confdefs.h >>conftest.$ac_ext 2605 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2606 1.1 christos /* end confdefs.h. */ 2607 1.1 christos $ac_declaration 2608 1.1 christos #include <stdlib.h> 2609 1.1 christos int 2610 1.1 christos main () 2611 1.1 christos { 2612 1.1 christos exit (42); 2613 1.1 christos ; 2614 1.1 christos return 0; 2615 1.1 christos } 2616 1.1 christos _ACEOF 2617 1.1 christos rm -f conftest.$ac_objext 2618 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2619 1.1 christos (eval $ac_compile) 2>conftest.er1 2620 1.1 christos ac_status=$? 2621 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2622 1.1 christos rm -f conftest.er1 2623 1.1 christos cat conftest.err >&5 2624 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2625 1.1 christos (exit $ac_status); } && 2626 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2627 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2628 1.1 christos (eval $ac_try) 2>&5 2629 1.1 christos ac_status=$? 2630 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 1.1 christos (exit $ac_status); }; } && 2632 1.1 christos { ac_try='test -s conftest.$ac_objext' 2633 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2634 1.1 christos (eval $ac_try) 2>&5 2635 1.1 christos ac_status=$? 2636 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2637 1.1 christos (exit $ac_status); }; }; then 2638 1.1 christos : 2639 1.1 christos else 2640 1.1 christos echo "$as_me: failed program was:" >&5 2641 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2642 1.1 christos 2643 1.1 christos continue 2644 1.1 christos fi 2645 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2646 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2647 1.1 christos /* confdefs.h. */ 2648 1.1 christos _ACEOF 2649 1.1 christos cat confdefs.h >>conftest.$ac_ext 2650 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2651 1.1 christos /* end confdefs.h. */ 2652 1.1 christos $ac_declaration 2653 1.1 christos int 2654 1.1 christos main () 2655 1.1 christos { 2656 1.1 christos exit (42); 2657 1.1 christos ; 2658 1.1 christos return 0; 2659 1.1 christos } 2660 1.1 christos _ACEOF 2661 1.1 christos rm -f conftest.$ac_objext 2662 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2663 1.1 christos (eval $ac_compile) 2>conftest.er1 2664 1.1 christos ac_status=$? 2665 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2666 1.1 christos rm -f conftest.er1 2667 1.1 christos cat conftest.err >&5 2668 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2669 1.1 christos (exit $ac_status); } && 2670 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 2671 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2672 1.1 christos (eval $ac_try) 2>&5 2673 1.1 christos ac_status=$? 2674 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2675 1.1 christos (exit $ac_status); }; } && 2676 1.1 christos { ac_try='test -s conftest.$ac_objext' 2677 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2678 1.1 christos (eval $ac_try) 2>&5 2679 1.1 christos ac_status=$? 2680 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2681 1.1 christos (exit $ac_status); }; }; then 2682 1.1 christos break 2683 1.1 christos else 2684 1.1 christos echo "$as_me: failed program was:" >&5 2685 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2686 1.1 christos 2687 1.1 christos fi 2688 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2689 1.1 christos done 2690 1.1 christos rm -f conftest* 2691 1.1 christos if test -n "$ac_declaration"; then 2692 1.1 christos echo '#ifdef __cplusplus' >>confdefs.h 2693 1.1 christos echo $ac_declaration >>confdefs.h 2694 1.1 christos echo '#endif' >>confdefs.h 2695 1.1 christos fi 2696 1.1 christos 2697 1.1 christos else 2698 1.1 christos echo "$as_me: failed program was:" >&5 2699 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2700 1.1 christos 2701 1.1 christos fi 2702 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2703 1.1 christos ac_ext=c 2704 1.1 christos ac_cpp='$CPP $CPPFLAGS' 2705 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2706 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2707 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 2708 1.1 christos DEPDIR="${am__leading_dot}deps" 2709 1.1 christos 2710 1.1 christos ac_config_commands="$ac_config_commands depfiles" 2711 1.1 christos 2712 1.1 christos 2713 1.1 christos am_make=${MAKE-make} 2714 1.1 christos cat > confinc << 'END' 2715 1.1 christos am__doit: 2716 1.1 christos @echo done 2717 1.1 christos .PHONY: am__doit 2718 1.1 christos END 2719 1.1 christos # If we don't find an include directive, just comment out the code. 2720 1.1 christos echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2721 1.1 christos echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2722 1.1 christos am__include="#" 2723 1.1 christos am__quote= 2724 1.1 christos _am_result=none 2725 1.1 christos # First try GNU make style include. 2726 1.1 christos echo "include confinc" > confmf 2727 1.1 christos # We grep out `Entering directory' and `Leaving directory' 2728 1.1 christos # messages which can occur if `w' ends up in MAKEFLAGS. 2729 1.1 christos # In particular we don't look at `^make:' because GNU make might 2730 1.1 christos # be invoked under some other name (usually "gmake"), in which 2731 1.1 christos # case it prints its new name instead of `make'. 2732 1.1 christos if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2733 1.1 christos am__include=include 2734 1.1 christos am__quote= 2735 1.1 christos _am_result=GNU 2736 1.1 christos fi 2737 1.1 christos # Now try BSD make style include. 2738 1.1 christos if test "$am__include" = "#"; then 2739 1.1 christos echo '.include "confinc"' > confmf 2740 1.1 christos if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2741 1.1 christos am__include=.include 2742 1.1 christos am__quote="\"" 2743 1.1 christos _am_result=BSD 2744 1.1 christos fi 2745 1.1 christos fi 2746 1.1 christos 2747 1.1 christos 2748 1.1 christos echo "$as_me:$LINENO: result: $_am_result" >&5 2749 1.1 christos echo "${ECHO_T}$_am_result" >&6 2750 1.1 christos rm -f confinc confmf 2751 1.1 christos 2752 1.1 christos # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2753 1.1 christos if test "${enable_dependency_tracking+set}" = set; then 2754 1.1 christos enableval="$enable_dependency_tracking" 2755 1.1 christos 2756 1.1 christos fi; 2757 1.1 christos if test "x$enable_dependency_tracking" != xno; then 2758 1.1 christos am_depcomp="$ac_aux_dir/depcomp" 2759 1.1 christos AMDEPBACKSLASH='\' 2760 1.1 christos fi 2761 1.1 christos 2762 1.1 christos 2763 1.1 christos if test "x$enable_dependency_tracking" != xno; then 2764 1.1 christos AMDEP_TRUE= 2765 1.1 christos AMDEP_FALSE='#' 2766 1.1 christos else 2767 1.1 christos AMDEP_TRUE='#' 2768 1.1 christos AMDEP_FALSE= 2769 1.1 christos fi 2770 1.1 christos 2771 1.1 christos 2772 1.1 christos 2773 1.1 christos 2774 1.1 christos depcc="$CC" am_compiler_list= 2775 1.1 christos 2776 1.1 christos echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2777 1.1 christos echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2778 1.1 christos if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2779 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2780 1.1 christos else 2781 1.1 christos if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2782 1.1 christos # We make a subdir and do the tests there. Otherwise we can end up 2783 1.1 christos # making bogus files that we don't know about and never remove. For 2784 1.1 christos # instance it was reported that on HP-UX the gcc test will end up 2785 1.1 christos # making a dummy file named `D' -- because `-MD' means `put the output 2786 1.1 christos # in D'. 2787 1.1 christos mkdir conftest.dir 2788 1.1 christos # Copy depcomp to subdir because otherwise we won't find it if we're 2789 1.1 christos # using a relative directory. 2790 1.1 christos cp "$am_depcomp" conftest.dir 2791 1.1 christos cd conftest.dir 2792 1.1 christos # We will build objects and dependencies in a subdirectory because 2793 1.1 christos # it helps to detect inapplicable dependency modes. For instance 2794 1.1 christos # both Tru64's cc and ICC support -MD to output dependencies as a 2795 1.1 christos # side effect of compilation, but ICC will put the dependencies in 2796 1.1 christos # the current directory while Tru64 will put them in the object 2797 1.1 christos # directory. 2798 1.1 christos mkdir sub 2799 1.1 christos 2800 1.1 christos am_cv_CC_dependencies_compiler_type=none 2801 1.1 christos if test "$am_compiler_list" = ""; then 2802 1.1 christos am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2803 1.1 christos fi 2804 1.1 christos for depmode in $am_compiler_list; do 2805 1.1 christos # Setup a source with many dependencies, because some compilers 2806 1.1 christos # like to wrap large dependency lists on column 80 (with \), and 2807 1.1 christos # we should not choose a depcomp mode which is confused by this. 2808 1.1 christos # 2809 1.1 christos # We need to recreate these files for each test, as the compiler may 2810 1.1 christos # overwrite some of them when testing with obscure command lines. 2811 1.1 christos # This happens at least with the AIX C compiler. 2812 1.1 christos : > sub/conftest.c 2813 1.1 christos for i in 1 2 3 4 5 6; do 2814 1.1 christos echo '#include "conftst'$i'.h"' >> sub/conftest.c 2815 1.1 christos # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2816 1.1 christos # Solaris 8's {/usr,}/bin/sh. 2817 1.1 christos touch sub/conftst$i.h 2818 1.1 christos done 2819 1.1 christos echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2820 1.1 christos 2821 1.1 christos case $depmode in 2822 1.1 christos nosideeffect) 2823 1.1 christos # after this tag, mechanisms are not by side-effect, so they'll 2824 1.1 christos # only be used when explicitly requested 2825 1.1 christos if test "x$enable_dependency_tracking" = xyes; then 2826 1.1 christos continue 2827 1.1 christos else 2828 1.1 christos break 2829 1.1 christos fi 2830 1.1 christos ;; 2831 1.1 christos none) break ;; 2832 1.1 christos esac 2833 1.1 christos # We check with `-c' and `-o' for the sake of the "dashmstdout" 2834 1.1 christos # mode. It turns out that the SunPro C++ compiler does not properly 2835 1.1 christos # handle `-M -o', and we need to detect this. 2836 1.1 christos if depmode=$depmode \ 2837 1.1 christos source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2838 1.1 christos depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2839 1.1 christos $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2840 1.1 christos >/dev/null 2>conftest.err && 2841 1.1 christos grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2842 1.1 christos grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2843 1.1 christos ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2844 1.1 christos # icc doesn't choke on unknown options, it will just issue warnings 2845 1.1 christos # or remarks (even with -Werror). So we grep stderr for any message 2846 1.1 christos # that says an option was ignored or not supported. 2847 1.1 christos # When given -MP, icc 7.0 and 7.1 complain thusly: 2848 1.1 christos # icc: Command line warning: ignoring option '-M'; no argument required 2849 1.1 christos # The diagnosis changed in icc 8.0: 2850 1.1 christos # icc: Command line remark: option '-MP' not supported 2851 1.1 christos if (grep 'ignoring option' conftest.err || 2852 1.1 christos grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2853 1.1 christos am_cv_CC_dependencies_compiler_type=$depmode 2854 1.1 christos break 2855 1.1 christos fi 2856 1.1 christos fi 2857 1.1 christos done 2858 1.1 christos 2859 1.1 christos cd .. 2860 1.1 christos rm -rf conftest.dir 2861 1.1 christos else 2862 1.1 christos am_cv_CC_dependencies_compiler_type=none 2863 1.1 christos fi 2864 1.1 christos 2865 1.1 christos fi 2866 1.1 christos echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2867 1.1 christos echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2868 1.1 christos CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2869 1.1 christos 2870 1.1 christos 2871 1.1 christos 2872 1.1 christos if 2873 1.1 christos test "x$enable_dependency_tracking" != xno \ 2874 1.1 christos && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2875 1.1 christos am__fastdepCC_TRUE= 2876 1.1 christos am__fastdepCC_FALSE='#' 2877 1.1 christos else 2878 1.1 christos am__fastdepCC_TRUE='#' 2879 1.1 christos am__fastdepCC_FALSE= 2880 1.1 christos fi 2881 1.1 christos 2882 1.1 christos 2883 1.1 christos # Find a good install program. We prefer a C program (faster), 2884 1.1 christos # so one script is as good as another. But avoid the broken or 2885 1.1 christos # incompatible versions: 2886 1.1 christos # SysV /etc/install, /usr/sbin/install 2887 1.1 christos # SunOS /usr/etc/install 2888 1.1 christos # IRIX /sbin/install 2889 1.1 christos # AIX /bin/install 2890 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs 2891 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2892 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2893 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2894 1.1 christos # OS/2's system install, which has a completely different semantic 2895 1.1 christos # ./install, which can be erroneously created by make from ./install.sh. 2896 1.1 christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2897 1.1 christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2898 1.1 christos if test -z "$INSTALL"; then 2899 1.1 christos if test "${ac_cv_path_install+set}" = set; then 2900 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2901 1.1 christos else 2902 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903 1.1 christos for as_dir in $PATH 2904 1.1 christos do 2905 1.1 christos IFS=$as_save_IFS 2906 1.1 christos test -z "$as_dir" && as_dir=. 2907 1.1 christos # Account for people who put trailing slashes in PATH elements. 2908 1.1 christos case $as_dir/ in 2909 1.1 christos ./ | .// | /cC/* | \ 2910 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2911 1.1 christos ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2912 1.1 christos /usr/ucb/* ) ;; 2913 1.1 christos *) 2914 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install. 2915 1.1 christos # Don't use installbsd from OSF since it installs stuff as root 2916 1.1 christos # by default. 2917 1.1 christos for ac_prog in ginstall scoinst install; do 2918 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2919 1.1 christos if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2920 1.1 christos if test $ac_prog = install && 2921 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2922 1.1 christos # AIX install. It has an incompatible calling convention. 2923 1.1 christos : 2924 1.1 christos elif test $ac_prog = install && 2925 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2926 1.1 christos # program-specific install script used by HP pwplus--don't use. 2927 1.1 christos : 2928 1.1 christos else 2929 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2930 1.1 christos break 3 2931 1.1 christos fi 2932 1.1 christos fi 2933 1.1 christos done 2934 1.1 christos done 2935 1.1 christos ;; 2936 1.1 christos esac 2937 1.1 christos done 2938 1.1 christos 2939 1.1 christos 2940 1.1 christos fi 2941 1.1 christos if test "${ac_cv_path_install+set}" = set; then 2942 1.1 christos INSTALL=$ac_cv_path_install 2943 1.1 christos else 2944 1.1 christos # As a last resort, use the slow shell script. We don't cache a 2945 1.1 christos # path for INSTALL within a source directory, because that will 2946 1.1 christos # break other packages using the cache if that directory is 2947 1.1 christos # removed, or if the path is relative. 2948 1.1 christos INSTALL=$ac_install_sh 2949 1.1 christos fi 2950 1.1 christos fi 2951 1.1 christos echo "$as_me:$LINENO: result: $INSTALL" >&5 2952 1.1 christos echo "${ECHO_T}$INSTALL" >&6 2953 1.1 christos 2954 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2955 1.1 christos # It thinks the first close brace ends the variable substitution. 2956 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2957 1.1 christos 2958 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2959 1.1 christos 2960 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2961 1.1 christos 2962 1.1 christos if test -n "$ac_tool_prefix"; then 2963 1.1 christos # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2964 1.1 christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2965 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 2966 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2967 1.1 christos if test "${ac_cv_prog_RANLIB+set}" = set; then 2968 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2969 1.1 christos else 2970 1.1 christos if test -n "$RANLIB"; then 2971 1.1 christos ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2972 1.1 christos else 2973 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2974 1.1 christos for as_dir in $PATH 2975 1.1 christos do 2976 1.1 christos IFS=$as_save_IFS 2977 1.1 christos test -z "$as_dir" && as_dir=. 2978 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2979 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2980 1.1 christos ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2981 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2982 1.1 christos break 2 2983 1.1 christos fi 2984 1.1 christos done 2985 1.1 christos done 2986 1.1 christos 2987 1.1 christos fi 2988 1.1 christos fi 2989 1.1 christos RANLIB=$ac_cv_prog_RANLIB 2990 1.1 christos if test -n "$RANLIB"; then 2991 1.1 christos echo "$as_me:$LINENO: result: $RANLIB" >&5 2992 1.1 christos echo "${ECHO_T}$RANLIB" >&6 2993 1.1 christos else 2994 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2995 1.1 christos echo "${ECHO_T}no" >&6 2996 1.1 christos fi 2997 1.1 christos 2998 1.1 christos fi 2999 1.1 christos if test -z "$ac_cv_prog_RANLIB"; then 3000 1.1 christos ac_ct_RANLIB=$RANLIB 3001 1.1 christos # Extract the first word of "ranlib", so it can be a program name with args. 3002 1.1 christos set dummy ranlib; ac_word=$2 3003 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 3004 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3005 1.1 christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3006 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3007 1.1 christos else 3008 1.1 christos if test -n "$ac_ct_RANLIB"; then 3009 1.1 christos ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3010 1.1 christos else 3011 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012 1.1 christos for as_dir in $PATH 3013 1.1 christos do 3014 1.1 christos IFS=$as_save_IFS 3015 1.1 christos test -z "$as_dir" && as_dir=. 3016 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3017 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3018 1.1 christos ac_cv_prog_ac_ct_RANLIB="ranlib" 3019 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 1.1 christos break 2 3021 1.1 christos fi 3022 1.1 christos done 3023 1.1 christos done 3024 1.1 christos 3025 1.1 christos test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3026 1.1 christos fi 3027 1.1 christos fi 3028 1.1 christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3029 1.1 christos if test -n "$ac_ct_RANLIB"; then 3030 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3031 1.1 christos echo "${ECHO_T}$ac_ct_RANLIB" >&6 3032 1.1 christos else 3033 1.1 christos echo "$as_me:$LINENO: result: no" >&5 3034 1.1 christos echo "${ECHO_T}no" >&6 3035 1.1 christos fi 3036 1.1 christos 3037 1.1 christos RANLIB=$ac_ct_RANLIB 3038 1.1 christos else 3039 1.1 christos RANLIB="$ac_cv_prog_RANLIB" 3040 1.1 christos fi 3041 1.1 christos 3042 1.1 christos ac_ext=c 3043 1.1 christos ac_cpp='$CPP $CPPFLAGS' 3044 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3045 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3046 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 3047 1.1 christos echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3048 1.1 christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3049 1.1 christos # On Suns, sometimes $CPP names a directory. 3050 1.1 christos if test -n "$CPP" && test -d "$CPP"; then 3051 1.1 christos CPP= 3052 1.1 christos fi 3053 1.1 christos if test -z "$CPP"; then 3054 1.1 christos if test "${ac_cv_prog_CPP+set}" = set; then 3055 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3056 1.1 christos else 3057 1.1 christos # Double quotes because CPP needs to be expanded 3058 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3059 1.1 christos do 3060 1.1 christos ac_preproc_ok=false 3061 1.1 christos for ac_c_preproc_warn_flag in '' yes 3062 1.1 christos do 3063 1.1 christos # Use a header file that comes with gcc, so configuring glibc 3064 1.1 christos # with a fresh cross-compiler works. 3065 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3066 1.1 christos # <limits.h> exists even on freestanding compilers. 3067 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser, 3068 1.1 christos # not just through cpp. "Syntax error" is here to catch this case. 3069 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3070 1.1 christos /* confdefs.h. */ 3071 1.1 christos _ACEOF 3072 1.1 christos cat confdefs.h >>conftest.$ac_ext 3073 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3074 1.1 christos /* end confdefs.h. */ 3075 1.1 christos #ifdef __STDC__ 3076 1.1 christos # include <limits.h> 3077 1.1 christos #else 3078 1.1 christos # include <assert.h> 3079 1.1 christos #endif 3080 1.1 christos Syntax error 3081 1.1 christos _ACEOF 3082 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3083 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3084 1.1 christos ac_status=$? 3085 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3086 1.1 christos rm -f conftest.er1 3087 1.1 christos cat conftest.err >&5 3088 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 1.1 christos (exit $ac_status); } >/dev/null; then 3090 1.1 christos if test -s conftest.err; then 3091 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3092 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3093 1.1 christos else 3094 1.1 christos ac_cpp_err= 3095 1.1 christos fi 3096 1.1 christos else 3097 1.1 christos ac_cpp_err=yes 3098 1.1 christos fi 3099 1.1 christos if test -z "$ac_cpp_err"; then 3100 1.1 christos : 3101 1.1 christos else 3102 1.1 christos echo "$as_me: failed program was:" >&5 3103 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3104 1.1 christos 3105 1.1 christos # Broken: fails on valid input. 3106 1.1 christos continue 3107 1.1 christos fi 3108 1.1 christos rm -f conftest.err conftest.$ac_ext 3109 1.1 christos 3110 1.1 christos # OK, works on sane cases. Now check whether non-existent headers 3111 1.1 christos # can be detected and how. 3112 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3113 1.1 christos /* confdefs.h. */ 3114 1.1 christos _ACEOF 3115 1.1 christos cat confdefs.h >>conftest.$ac_ext 3116 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3117 1.1 christos /* end confdefs.h. */ 3118 1.1 christos #include <ac_nonexistent.h> 3119 1.1 christos _ACEOF 3120 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3121 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3122 1.1 christos ac_status=$? 3123 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3124 1.1 christos rm -f conftest.er1 3125 1.1 christos cat conftest.err >&5 3126 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 1.1 christos (exit $ac_status); } >/dev/null; then 3128 1.1 christos if test -s conftest.err; then 3129 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3130 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3131 1.1 christos else 3132 1.1 christos ac_cpp_err= 3133 1.1 christos fi 3134 1.1 christos else 3135 1.1 christos ac_cpp_err=yes 3136 1.1 christos fi 3137 1.1 christos if test -z "$ac_cpp_err"; then 3138 1.1 christos # Broken: success on invalid input. 3139 1.1 christos continue 3140 1.1 christos else 3141 1.1 christos echo "$as_me: failed program was:" >&5 3142 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3143 1.1 christos 3144 1.1 christos # Passes both tests. 3145 1.1 christos ac_preproc_ok=: 3146 1.1 christos break 3147 1.1 christos fi 3148 1.1 christos rm -f conftest.err conftest.$ac_ext 3149 1.1 christos 3150 1.1 christos done 3151 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3152 1.1 christos rm -f conftest.err conftest.$ac_ext 3153 1.1 christos if $ac_preproc_ok; then 3154 1.1 christos break 3155 1.1 christos fi 3156 1.1 christos 3157 1.1 christos done 3158 1.1 christos ac_cv_prog_CPP=$CPP 3159 1.1 christos 3160 1.1 christos fi 3161 1.1 christos CPP=$ac_cv_prog_CPP 3162 1.1 christos else 3163 1.1 christos ac_cv_prog_CPP=$CPP 3164 1.1 christos fi 3165 1.1 christos echo "$as_me:$LINENO: result: $CPP" >&5 3166 1.1 christos echo "${ECHO_T}$CPP" >&6 3167 1.1 christos ac_preproc_ok=false 3168 1.1 christos for ac_c_preproc_warn_flag in '' yes 3169 1.1 christos do 3170 1.1 christos # Use a header file that comes with gcc, so configuring glibc 3171 1.1 christos # with a fresh cross-compiler works. 3172 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3173 1.1 christos # <limits.h> exists even on freestanding compilers. 3174 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser, 3175 1.1 christos # not just through cpp. "Syntax error" is here to catch this case. 3176 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3177 1.1 christos /* confdefs.h. */ 3178 1.1 christos _ACEOF 3179 1.1 christos cat confdefs.h >>conftest.$ac_ext 3180 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3181 1.1 christos /* end confdefs.h. */ 3182 1.1 christos #ifdef __STDC__ 3183 1.1 christos # include <limits.h> 3184 1.1 christos #else 3185 1.1 christos # include <assert.h> 3186 1.1 christos #endif 3187 1.1 christos Syntax error 3188 1.1 christos _ACEOF 3189 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3190 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3191 1.1 christos ac_status=$? 3192 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3193 1.1 christos rm -f conftest.er1 3194 1.1 christos cat conftest.err >&5 3195 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 1.1 christos (exit $ac_status); } >/dev/null; then 3197 1.1 christos if test -s conftest.err; then 3198 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3199 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3200 1.1 christos else 3201 1.1 christos ac_cpp_err= 3202 1.1 christos fi 3203 1.1 christos else 3204 1.1 christos ac_cpp_err=yes 3205 1.1 christos fi 3206 1.1 christos if test -z "$ac_cpp_err"; then 3207 1.1 christos : 3208 1.1 christos else 3209 1.1 christos echo "$as_me: failed program was:" >&5 3210 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3211 1.1 christos 3212 1.1 christos # Broken: fails on valid input. 3213 1.1 christos continue 3214 1.1 christos fi 3215 1.1 christos rm -f conftest.err conftest.$ac_ext 3216 1.1 christos 3217 1.1 christos # OK, works on sane cases. Now check whether non-existent headers 3218 1.1 christos # can be detected and how. 3219 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3220 1.1 christos /* confdefs.h. */ 3221 1.1 christos _ACEOF 3222 1.1 christos cat confdefs.h >>conftest.$ac_ext 3223 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3224 1.1 christos /* end confdefs.h. */ 3225 1.1 christos #include <ac_nonexistent.h> 3226 1.1 christos _ACEOF 3227 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3228 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3229 1.1 christos ac_status=$? 3230 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3231 1.1 christos rm -f conftest.er1 3232 1.1 christos cat conftest.err >&5 3233 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 1.1 christos (exit $ac_status); } >/dev/null; then 3235 1.1 christos if test -s conftest.err; then 3236 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3237 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3238 1.1 christos else 3239 1.1 christos ac_cpp_err= 3240 1.1 christos fi 3241 1.1 christos else 3242 1.1 christos ac_cpp_err=yes 3243 1.1 christos fi 3244 1.1 christos if test -z "$ac_cpp_err"; then 3245 1.1 christos # Broken: success on invalid input. 3246 1.1 christos continue 3247 1.1 christos else 3248 1.1 christos echo "$as_me: failed program was:" >&5 3249 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3250 1.1 christos 3251 1.1 christos # Passes both tests. 3252 1.1 christos ac_preproc_ok=: 3253 1.1 christos break 3254 1.1 christos fi 3255 1.1 christos rm -f conftest.err conftest.$ac_ext 3256 1.1 christos 3257 1.1 christos done 3258 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3259 1.1 christos rm -f conftest.err conftest.$ac_ext 3260 1.1 christos if $ac_preproc_ok; then 3261 1.1 christos : 3262 1.1 christos else 3263 1.1 christos { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3264 1.1 christos See \`config.log' for more details." >&5 3265 1.1 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3266 1.1 christos See \`config.log' for more details." >&2;} 3267 1.1 christos { (exit 1); exit 1; }; } 3268 1.1 christos fi 3269 1.1 christos 3270 1.1 christos ac_ext=c 3271 1.1 christos ac_cpp='$CPP $CPPFLAGS' 3272 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3273 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3274 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 3275 1.1 christos 3276 1.1 christos # Extract the first word of "ar", so it can be a program name with args. 3277 1.1 christos set dummy ar; ac_word=$2 3278 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 3279 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3280 1.1 christos if test "${ac_cv_prog_AR+set}" = set; then 3281 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3282 1.1 christos else 3283 1.1 christos if test -n "$AR"; then 3284 1.1 christos ac_cv_prog_AR="$AR" # Let the user override the test. 3285 1.1 christos else 3286 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3287 1.1 christos for as_dir in $PATH 3288 1.1 christos do 3289 1.1 christos IFS=$as_save_IFS 3290 1.1 christos test -z "$as_dir" && as_dir=. 3291 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3292 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3293 1.1 christos ac_cv_prog_AR="ar" 3294 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3295 1.1 christos break 2 3296 1.1 christos fi 3297 1.1 christos done 3298 1.1 christos done 3299 1.1 christos 3300 1.1 christos test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" 3301 1.1 christos fi 3302 1.1 christos fi 3303 1.1 christos AR=$ac_cv_prog_AR 3304 1.1 christos if test -n "$AR"; then 3305 1.1 christos echo "$as_me:$LINENO: result: $AR" >&5 3306 1.1 christos echo "${ECHO_T}$AR" >&6 3307 1.1 christos else 3308 1.1 christos echo "$as_me:$LINENO: result: no" >&5 3309 1.1 christos echo "${ECHO_T}no" >&6 3310 1.1 christos fi 3311 1.1 christos 3312 1.1 christos # Perl is needed for the test suite (only) 3313 1.1 christos # Extract the first word of "perl", so it can be a program name with args. 3314 1.1 christos set dummy perl; ac_word=$2 3315 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 3316 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3317 1.1 christos if test "${ac_cv_prog_PERL+set}" = set; then 3318 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3319 1.1 christos else 3320 1.1 christos if test -n "$PERL"; then 3321 1.1 christos ac_cv_prog_PERL="$PERL" # Let the user override the test. 3322 1.1 christos else 3323 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324 1.1 christos for as_dir in $PATH 3325 1.1 christos do 3326 1.1 christos IFS=$as_save_IFS 3327 1.1 christos test -z "$as_dir" && as_dir=. 3328 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3329 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3330 1.1 christos ac_cv_prog_PERL="perl" 3331 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3332 1.1 christos break 2 3333 1.1 christos fi 3334 1.1 christos done 3335 1.1 christos done 3336 1.1 christos 3337 1.1 christos test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl" 3338 1.1 christos fi 3339 1.1 christos fi 3340 1.1 christos PERL=$ac_cv_prog_PERL 3341 1.1 christos if test -n "$PERL"; then 3342 1.1 christos echo "$as_me:$LINENO: result: $PERL" >&5 3343 1.1 christos echo "${ECHO_T}$PERL" >&6 3344 1.1 christos else 3345 1.1 christos echo "$as_me:$LINENO: result: no" >&5 3346 1.1 christos echo "${ECHO_T}no" >&6 3347 1.1 christos fi 3348 1.1 christos 3349 1.1 christos 3350 1.1 christos # Specialized system macros 3351 1.1 christos # Make sure we can run config.sub. 3352 1.1 christos $ac_config_sub sun4 >/dev/null 2>&1 || 3353 1.1 christos { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3354 1.1 christos echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3355 1.1 christos { (exit 1); exit 1; }; } 3356 1.1 christos 3357 1.1 christos echo "$as_me:$LINENO: checking build system type" >&5 3358 1.1 christos echo $ECHO_N "checking build system type... $ECHO_C" >&6 3359 1.1 christos if test "${ac_cv_build+set}" = set; then 3360 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3361 1.1 christos else 3362 1.1 christos ac_cv_build_alias=$build_alias 3363 1.1 christos test -z "$ac_cv_build_alias" && 3364 1.1 christos ac_cv_build_alias=`$ac_config_guess` 3365 1.1 christos test -z "$ac_cv_build_alias" && 3366 1.1 christos { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3367 1.1 christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3368 1.1 christos { (exit 1); exit 1; }; } 3369 1.1 christos ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3370 1.1 christos { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3371 1.1 christos echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3372 1.1 christos { (exit 1); exit 1; }; } 3373 1.1 christos 3374 1.1 christos fi 3375 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3376 1.1 christos echo "${ECHO_T}$ac_cv_build" >&6 3377 1.1 christos build=$ac_cv_build 3378 1.1 christos build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3379 1.1 christos build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3380 1.1 christos build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3381 1.1 christos 3382 1.1 christos 3383 1.1 christos echo "$as_me:$LINENO: checking host system type" >&5 3384 1.1 christos echo $ECHO_N "checking host system type... $ECHO_C" >&6 3385 1.1 christos if test "${ac_cv_host+set}" = set; then 3386 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3387 1.1 christos else 3388 1.1 christos ac_cv_host_alias=$host_alias 3389 1.1 christos test -z "$ac_cv_host_alias" && 3390 1.1 christos ac_cv_host_alias=$ac_cv_build_alias 3391 1.1 christos ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3392 1.1 christos { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3393 1.1 christos echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3394 1.1 christos { (exit 1); exit 1; }; } 3395 1.1 christos 3396 1.1 christos fi 3397 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3398 1.1 christos echo "${ECHO_T}$ac_cv_host" >&6 3399 1.1 christos host=$ac_cv_host 3400 1.1 christos host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3401 1.1 christos host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3402 1.1 christos host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3403 1.1 christos 3404 1.1 christos 3405 1.1 christos 3406 1.1 christos 3407 1.1 christos echo "$as_me:$LINENO: checking for egrep" >&5 3408 1.1 christos echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3409 1.1 christos if test "${ac_cv_prog_egrep+set}" = set; then 3410 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3411 1.1 christos else 3412 1.1 christos if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3413 1.1 christos then ac_cv_prog_egrep='grep -E' 3414 1.1 christos else ac_cv_prog_egrep='egrep' 3415 1.1 christos fi 3416 1.1 christos fi 3417 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3418 1.1 christos echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3419 1.1 christos EGREP=$ac_cv_prog_egrep 3420 1.1 christos 3421 1.1 christos 3422 1.1 christos 3423 1.1 christos echo "$as_me:$LINENO: checking for AIX" >&5 3424 1.1 christos echo $ECHO_N "checking for AIX... $ECHO_C" >&6 3425 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3426 1.1 christos /* confdefs.h. */ 3427 1.1 christos _ACEOF 3428 1.1 christos cat confdefs.h >>conftest.$ac_ext 3429 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3430 1.1 christos /* end confdefs.h. */ 3431 1.1 christos #ifdef _AIX 3432 1.1 christos yes 3433 1.1 christos #endif 3434 1.1 christos 3435 1.1 christos _ACEOF 3436 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3437 1.1 christos $EGREP "yes" >/dev/null 2>&1; then 3438 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 3439 1.1 christos echo "${ECHO_T}yes" >&6 3440 1.1 christos cat >>confdefs.h <<\_ACEOF 3441 1.1 christos #define _ALL_SOURCE 1 3442 1.1 christos _ACEOF 3443 1.1 christos 3444 1.1 christos else 3445 1.1 christos echo "$as_me:$LINENO: result: no" >&5 3446 1.1 christos echo "${ECHO_T}no" >&6 3447 1.1 christos fi 3448 1.1 christos rm -f conftest* 3449 1.1 christos 3450 1.1 christos 3451 1.1 christos echo "$as_me:$LINENO: checking for library containing strerror" >&5 3452 1.1 christos echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3453 1.1 christos if test "${ac_cv_search_strerror+set}" = set; then 3454 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3455 1.1 christos else 3456 1.1 christos ac_func_search_save_LIBS=$LIBS 3457 1.1 christos ac_cv_search_strerror=no 3458 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3459 1.1 christos /* confdefs.h. */ 3460 1.1 christos _ACEOF 3461 1.1 christos cat confdefs.h >>conftest.$ac_ext 3462 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3463 1.1 christos /* end confdefs.h. */ 3464 1.1 christos 3465 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 3466 1.1 christos #ifdef __cplusplus 3467 1.1 christos extern "C" 3468 1.1 christos #endif 3469 1.1 christos /* We use char because int might match the return type of a gcc2 3470 1.1 christos builtin and then its argument prototype would still apply. */ 3471 1.1 christos char strerror (); 3472 1.1 christos int 3473 1.1 christos main () 3474 1.1 christos { 3475 1.1 christos strerror (); 3476 1.1 christos ; 3477 1.1 christos return 0; 3478 1.1 christos } 3479 1.1 christos _ACEOF 3480 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 3481 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3482 1.1 christos (eval $ac_link) 2>conftest.er1 3483 1.1 christos ac_status=$? 3484 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3485 1.1 christos rm -f conftest.er1 3486 1.1 christos cat conftest.err >&5 3487 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3488 1.1 christos (exit $ac_status); } && 3489 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3490 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3491 1.1 christos (eval $ac_try) 2>&5 3492 1.1 christos ac_status=$? 3493 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3494 1.1 christos (exit $ac_status); }; } && 3495 1.1 christos { ac_try='test -s conftest$ac_exeext' 3496 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3497 1.1 christos (eval $ac_try) 2>&5 3498 1.1 christos ac_status=$? 3499 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3500 1.1 christos (exit $ac_status); }; }; then 3501 1.1 christos ac_cv_search_strerror="none required" 3502 1.1 christos else 3503 1.1 christos echo "$as_me: failed program was:" >&5 3504 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3505 1.1 christos 3506 1.1 christos fi 3507 1.1 christos rm -f conftest.err conftest.$ac_objext \ 3508 1.1 christos conftest$ac_exeext conftest.$ac_ext 3509 1.1 christos if test "$ac_cv_search_strerror" = no; then 3510 1.1 christos for ac_lib in cposix; do 3511 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3512 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3513 1.1 christos /* confdefs.h. */ 3514 1.1 christos _ACEOF 3515 1.1 christos cat confdefs.h >>conftest.$ac_ext 3516 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3517 1.1 christos /* end confdefs.h. */ 3518 1.1 christos 3519 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 3520 1.1 christos #ifdef __cplusplus 3521 1.1 christos extern "C" 3522 1.1 christos #endif 3523 1.1 christos /* We use char because int might match the return type of a gcc2 3524 1.1 christos builtin and then its argument prototype would still apply. */ 3525 1.1 christos char strerror (); 3526 1.1 christos int 3527 1.1 christos main () 3528 1.1 christos { 3529 1.1 christos strerror (); 3530 1.1 christos ; 3531 1.1 christos return 0; 3532 1.1 christos } 3533 1.1 christos _ACEOF 3534 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 3535 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3536 1.1 christos (eval $ac_link) 2>conftest.er1 3537 1.1 christos ac_status=$? 3538 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3539 1.1 christos rm -f conftest.er1 3540 1.1 christos cat conftest.err >&5 3541 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3542 1.1 christos (exit $ac_status); } && 3543 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3544 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3545 1.1 christos (eval $ac_try) 2>&5 3546 1.1 christos ac_status=$? 3547 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3548 1.1 christos (exit $ac_status); }; } && 3549 1.1 christos { ac_try='test -s conftest$ac_exeext' 3550 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3551 1.1 christos (eval $ac_try) 2>&5 3552 1.1 christos ac_status=$? 3553 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3554 1.1 christos (exit $ac_status); }; }; then 3555 1.1 christos ac_cv_search_strerror="-l$ac_lib" 3556 1.1 christos break 3557 1.1 christos else 3558 1.1 christos echo "$as_me: failed program was:" >&5 3559 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3560 1.1 christos 3561 1.1 christos fi 3562 1.1 christos rm -f conftest.err conftest.$ac_objext \ 3563 1.1 christos conftest$ac_exeext conftest.$ac_ext 3564 1.1 christos done 3565 1.1 christos fi 3566 1.1 christos LIBS=$ac_func_search_save_LIBS 3567 1.1 christos fi 3568 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3569 1.1 christos echo "${ECHO_T}$ac_cv_search_strerror" >&6 3570 1.1 christos if test "$ac_cv_search_strerror" != no; then 3571 1.1 christos test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3572 1.1 christos 3573 1.1 christos fi 3574 1.1 christos 3575 1.1 christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3576 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3577 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then 3578 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3579 1.1 christos else 3580 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3581 1.1 christos /* confdefs.h. */ 3582 1.1 christos _ACEOF 3583 1.1 christos cat confdefs.h >>conftest.$ac_ext 3584 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3585 1.1 christos /* end confdefs.h. */ 3586 1.1 christos #include <stdlib.h> 3587 1.1 christos #include <stdarg.h> 3588 1.1 christos #include <string.h> 3589 1.1 christos #include <float.h> 3590 1.1 christos 3591 1.1 christos int 3592 1.1 christos main () 3593 1.1 christos { 3594 1.1 christos 3595 1.1 christos ; 3596 1.1 christos return 0; 3597 1.1 christos } 3598 1.1 christos _ACEOF 3599 1.1 christos rm -f conftest.$ac_objext 3600 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3601 1.1 christos (eval $ac_compile) 2>conftest.er1 3602 1.1 christos ac_status=$? 3603 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3604 1.1 christos rm -f conftest.er1 3605 1.1 christos cat conftest.err >&5 3606 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3607 1.1 christos (exit $ac_status); } && 3608 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3609 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3610 1.1 christos (eval $ac_try) 2>&5 3611 1.1 christos ac_status=$? 3612 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3613 1.1 christos (exit $ac_status); }; } && 3614 1.1 christos { ac_try='test -s conftest.$ac_objext' 3615 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3616 1.1 christos (eval $ac_try) 2>&5 3617 1.1 christos ac_status=$? 3618 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3619 1.1 christos (exit $ac_status); }; }; then 3620 1.1 christos ac_cv_header_stdc=yes 3621 1.1 christos else 3622 1.1 christos echo "$as_me: failed program was:" >&5 3623 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3624 1.1 christos 3625 1.1 christos ac_cv_header_stdc=no 3626 1.1 christos fi 3627 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3628 1.1 christos 3629 1.1 christos if test $ac_cv_header_stdc = yes; then 3630 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3631 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3632 1.1 christos /* confdefs.h. */ 3633 1.1 christos _ACEOF 3634 1.1 christos cat confdefs.h >>conftest.$ac_ext 3635 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3636 1.1 christos /* end confdefs.h. */ 3637 1.1 christos #include <string.h> 3638 1.1 christos 3639 1.1 christos _ACEOF 3640 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3641 1.1 christos $EGREP "memchr" >/dev/null 2>&1; then 3642 1.1 christos : 3643 1.1 christos else 3644 1.1 christos ac_cv_header_stdc=no 3645 1.1 christos fi 3646 1.1 christos rm -f conftest* 3647 1.1 christos 3648 1.1 christos fi 3649 1.1 christos 3650 1.1 christos if test $ac_cv_header_stdc = yes; then 3651 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3652 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3653 1.1 christos /* confdefs.h. */ 3654 1.1 christos _ACEOF 3655 1.1 christos cat confdefs.h >>conftest.$ac_ext 3656 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3657 1.1 christos /* end confdefs.h. */ 3658 1.1 christos #include <stdlib.h> 3659 1.1 christos 3660 1.1 christos _ACEOF 3661 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3662 1.1 christos $EGREP "free" >/dev/null 2>&1; then 3663 1.1 christos : 3664 1.1 christos else 3665 1.1 christos ac_cv_header_stdc=no 3666 1.1 christos fi 3667 1.1 christos rm -f conftest* 3668 1.1 christos 3669 1.1 christos fi 3670 1.1 christos 3671 1.1 christos if test $ac_cv_header_stdc = yes; then 3672 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3673 1.1 christos if test "$cross_compiling" = yes; then 3674 1.1 christos : 3675 1.1 christos else 3676 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3677 1.1 christos /* confdefs.h. */ 3678 1.1 christos _ACEOF 3679 1.1 christos cat confdefs.h >>conftest.$ac_ext 3680 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3681 1.1 christos /* end confdefs.h. */ 3682 1.1 christos #include <ctype.h> 3683 1.1 christos #if ((' ' & 0x0FF) == 0x020) 3684 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3685 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3686 1.1 christos #else 3687 1.1 christos # define ISLOWER(c) \ 3688 1.1 christos (('a' <= (c) && (c) <= 'i') \ 3689 1.1 christos || ('j' <= (c) && (c) <= 'r') \ 3690 1.1 christos || ('s' <= (c) && (c) <= 'z')) 3691 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3692 1.1 christos #endif 3693 1.1 christos 3694 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3695 1.1 christos int 3696 1.1 christos main () 3697 1.1 christos { 3698 1.1 christos int i; 3699 1.1 christos for (i = 0; i < 256; i++) 3700 1.1 christos if (XOR (islower (i), ISLOWER (i)) 3701 1.1 christos || toupper (i) != TOUPPER (i)) 3702 1.4 mrg return (2); 3703 1.4 mrg return (0); 3704 1.1 christos } 3705 1.1 christos _ACEOF 3706 1.1 christos rm -f conftest$ac_exeext 3707 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3708 1.1 christos (eval $ac_link) 2>&5 3709 1.1 christos ac_status=$? 3710 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3711 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3712 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3713 1.1 christos (eval $ac_try) 2>&5 3714 1.1 christos ac_status=$? 3715 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3716 1.1 christos (exit $ac_status); }; }; then 3717 1.1 christos : 3718 1.1 christos else 3719 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 3720 1.1 christos echo "$as_me: failed program was:" >&5 3721 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3722 1.1 christos 3723 1.1 christos ( exit $ac_status ) 3724 1.1 christos ac_cv_header_stdc=no 3725 1.1 christos fi 3726 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3727 1.1 christos fi 3728 1.1 christos fi 3729 1.1 christos fi 3730 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3731 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6 3732 1.1 christos if test $ac_cv_header_stdc = yes; then 3733 1.1 christos 3734 1.1 christos cat >>confdefs.h <<\_ACEOF 3735 1.1 christos #define STDC_HEADERS 1 3736 1.1 christos _ACEOF 3737 1.1 christos 3738 1.1 christos fi 3739 1.1 christos 3740 1.1 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3741 1.1 christos 3742 1.1 christos 3743 1.1 christos 3744 1.1 christos 3745 1.1 christos 3746 1.1 christos 3747 1.1 christos 3748 1.1 christos 3749 1.1 christos 3750 1.1 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3751 1.1 christos inttypes.h stdint.h unistd.h 3752 1.1 christos do 3753 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3754 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 3755 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3756 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 3757 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3758 1.1 christos else 3759 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3760 1.1 christos /* confdefs.h. */ 3761 1.1 christos _ACEOF 3762 1.1 christos cat confdefs.h >>conftest.$ac_ext 3763 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3764 1.1 christos /* end confdefs.h. */ 3765 1.1 christos $ac_includes_default 3766 1.1 christos 3767 1.1 christos #include <$ac_header> 3768 1.1 christos _ACEOF 3769 1.1 christos rm -f conftest.$ac_objext 3770 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3771 1.1 christos (eval $ac_compile) 2>conftest.er1 3772 1.1 christos ac_status=$? 3773 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3774 1.1 christos rm -f conftest.er1 3775 1.1 christos cat conftest.err >&5 3776 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3777 1.1 christos (exit $ac_status); } && 3778 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3779 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3780 1.1 christos (eval $ac_try) 2>&5 3781 1.1 christos ac_status=$? 3782 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 1.1 christos (exit $ac_status); }; } && 3784 1.1 christos { ac_try='test -s conftest.$ac_objext' 3785 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3786 1.1 christos (eval $ac_try) 2>&5 3787 1.1 christos ac_status=$? 3788 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 1.1 christos (exit $ac_status); }; }; then 3790 1.1 christos eval "$as_ac_Header=yes" 3791 1.1 christos else 3792 1.1 christos echo "$as_me: failed program was:" >&5 3793 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3794 1.1 christos 3795 1.1 christos eval "$as_ac_Header=no" 3796 1.1 christos fi 3797 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3798 1.1 christos fi 3799 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3800 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3801 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 3802 1.1 christos cat >>confdefs.h <<_ACEOF 3803 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3804 1.1 christos _ACEOF 3805 1.1 christos 3806 1.1 christos fi 3807 1.1 christos 3808 1.1 christos done 3809 1.1 christos 3810 1.1 christos 3811 1.1 christos if test "${ac_cv_header_minix_config_h+set}" = set; then 3812 1.1 christos echo "$as_me:$LINENO: checking for minix/config.h" >&5 3813 1.1 christos echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3814 1.1 christos if test "${ac_cv_header_minix_config_h+set}" = set; then 3815 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3816 1.1 christos fi 3817 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3818 1.1 christos echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3819 1.1 christos else 3820 1.1 christos # Is the header compilable? 3821 1.1 christos echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3822 1.1 christos echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3823 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3824 1.1 christos /* confdefs.h. */ 3825 1.1 christos _ACEOF 3826 1.1 christos cat confdefs.h >>conftest.$ac_ext 3827 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3828 1.1 christos /* end confdefs.h. */ 3829 1.1 christos $ac_includes_default 3830 1.1 christos #include <minix/config.h> 3831 1.1 christos _ACEOF 3832 1.1 christos rm -f conftest.$ac_objext 3833 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3834 1.1 christos (eval $ac_compile) 2>conftest.er1 3835 1.1 christos ac_status=$? 3836 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3837 1.1 christos rm -f conftest.er1 3838 1.1 christos cat conftest.err >&5 3839 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3840 1.1 christos (exit $ac_status); } && 3841 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 3842 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3843 1.1 christos (eval $ac_try) 2>&5 3844 1.1 christos ac_status=$? 3845 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 1.1 christos (exit $ac_status); }; } && 3847 1.1 christos { ac_try='test -s conftest.$ac_objext' 3848 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3849 1.1 christos (eval $ac_try) 2>&5 3850 1.1 christos ac_status=$? 3851 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3852 1.1 christos (exit $ac_status); }; }; then 3853 1.1 christos ac_header_compiler=yes 3854 1.1 christos else 3855 1.1 christos echo "$as_me: failed program was:" >&5 3856 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3857 1.1 christos 3858 1.1 christos ac_header_compiler=no 3859 1.1 christos fi 3860 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3861 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3862 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 3863 1.1 christos 3864 1.1 christos # Is the header present? 3865 1.1 christos echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3866 1.1 christos echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3867 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3868 1.1 christos /* confdefs.h. */ 3869 1.1 christos _ACEOF 3870 1.1 christos cat confdefs.h >>conftest.$ac_ext 3871 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3872 1.1 christos /* end confdefs.h. */ 3873 1.1 christos #include <minix/config.h> 3874 1.1 christos _ACEOF 3875 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3876 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3877 1.1 christos ac_status=$? 3878 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3879 1.1 christos rm -f conftest.er1 3880 1.1 christos cat conftest.err >&5 3881 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3882 1.1 christos (exit $ac_status); } >/dev/null; then 3883 1.1 christos if test -s conftest.err; then 3884 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3885 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3886 1.1 christos else 3887 1.1 christos ac_cpp_err= 3888 1.1 christos fi 3889 1.1 christos else 3890 1.1 christos ac_cpp_err=yes 3891 1.1 christos fi 3892 1.1 christos if test -z "$ac_cpp_err"; then 3893 1.1 christos ac_header_preproc=yes 3894 1.1 christos else 3895 1.1 christos echo "$as_me: failed program was:" >&5 3896 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3897 1.1 christos 3898 1.1 christos ac_header_preproc=no 3899 1.1 christos fi 3900 1.1 christos rm -f conftest.err conftest.$ac_ext 3901 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3902 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 3903 1.1 christos 3904 1.1 christos # So? What about this header? 3905 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3906 1.1 christos yes:no: ) 3907 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3908 1.1 christos echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3909 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3910 1.1 christos echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3911 1.1 christos ac_header_preproc=yes 3912 1.1 christos ;; 3913 1.1 christos no:yes:* ) 3914 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3915 1.1 christos echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3916 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3917 1.1 christos echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3918 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3919 1.1 christos echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3920 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3921 1.1 christos echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3922 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3923 1.1 christos echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3924 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3925 1.1 christos echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3926 1.1 christos ( 3927 1.1 christos cat <<\_ASBOX 3928 1.1 christos ## ------------------------------- ## 3929 1.1 christos ## Report this to bug-make (at] gnu.org ## 3930 1.1 christos ## ------------------------------- ## 3931 1.1 christos _ASBOX 3932 1.1 christos ) | 3933 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 3934 1.1 christos ;; 3935 1.1 christos esac 3936 1.1 christos echo "$as_me:$LINENO: checking for minix/config.h" >&5 3937 1.1 christos echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3938 1.1 christos if test "${ac_cv_header_minix_config_h+set}" = set; then 3939 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3940 1.1 christos else 3941 1.1 christos ac_cv_header_minix_config_h=$ac_header_preproc 3942 1.1 christos fi 3943 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3944 1.1 christos echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3945 1.1 christos 3946 1.1 christos fi 3947 1.1 christos if test $ac_cv_header_minix_config_h = yes; then 3948 1.1 christos MINIX=yes 3949 1.1 christos else 3950 1.1 christos MINIX= 3951 1.1 christos fi 3952 1.1 christos 3953 1.1 christos 3954 1.1 christos if test "$MINIX" = yes; then 3955 1.1 christos 3956 1.1 christos cat >>confdefs.h <<\_ACEOF 3957 1.1 christos #define _POSIX_SOURCE 1 3958 1.1 christos _ACEOF 3959 1.1 christos 3960 1.1 christos 3961 1.1 christos cat >>confdefs.h <<\_ACEOF 3962 1.1 christos #define _POSIX_1_SOURCE 2 3963 1.1 christos _ACEOF 3964 1.1 christos 3965 1.1 christos 3966 1.1 christos cat >>confdefs.h <<\_ACEOF 3967 1.1 christos #define _MINIX 1 3968 1.1 christos _ACEOF 3969 1.1 christos 3970 1.1 christos fi 3971 1.1 christos 3972 1.1 christos 3973 1.1 christos # Needed for ansi2knr 3974 1.1 christos echo "$as_me:$LINENO: checking for function prototypes" >&5 3975 1.1 christos echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 3976 1.1 christos if test "$ac_cv_prog_cc_stdc" != no; then 3977 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 3978 1.1 christos echo "${ECHO_T}yes" >&6 3979 1.1 christos 3980 1.1 christos cat >>confdefs.h <<\_ACEOF 3981 1.1 christos #define PROTOTYPES 1 3982 1.1 christos _ACEOF 3983 1.1 christos 3984 1.1 christos 3985 1.1 christos cat >>confdefs.h <<\_ACEOF 3986 1.1 christos #define __PROTOTYPES 1 3987 1.1 christos _ACEOF 3988 1.1 christos 3989 1.1 christos else 3990 1.1 christos echo "$as_me:$LINENO: result: no" >&5 3991 1.1 christos echo "${ECHO_T}no" >&6 3992 1.1 christos fi 3993 1.1 christos 3994 1.1 christos 3995 1.1 christos if test "$ac_cv_prog_cc_stdc" != no; then 3996 1.1 christos U= ANSI2KNR= 3997 1.1 christos else 3998 1.1 christos U=_ ANSI2KNR=./ansi2knr 3999 1.1 christos fi 4000 1.1 christos # Ensure some checks needed by ansi2knr itself. 4001 1.1 christos 4002 1.1 christos 4003 1.1 christos for ac_header in string.h 4004 1.1 christos do 4005 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4006 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4007 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4008 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4009 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4010 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4011 1.1 christos fi 4012 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4013 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4014 1.1 christos else 4015 1.1 christos # Is the header compilable? 4016 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 4017 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4018 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4019 1.1 christos /* confdefs.h. */ 4020 1.1 christos _ACEOF 4021 1.1 christos cat confdefs.h >>conftest.$ac_ext 4022 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4023 1.1 christos /* end confdefs.h. */ 4024 1.1 christos $ac_includes_default 4025 1.1 christos #include <$ac_header> 4026 1.1 christos _ACEOF 4027 1.1 christos rm -f conftest.$ac_objext 4028 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4029 1.1 christos (eval $ac_compile) 2>conftest.er1 4030 1.1 christos ac_status=$? 4031 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4032 1.1 christos rm -f conftest.er1 4033 1.1 christos cat conftest.err >&5 4034 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4035 1.1 christos (exit $ac_status); } && 4036 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4037 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4038 1.1 christos (eval $ac_try) 2>&5 4039 1.1 christos ac_status=$? 4040 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4041 1.1 christos (exit $ac_status); }; } && 4042 1.1 christos { ac_try='test -s conftest.$ac_objext' 4043 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4044 1.1 christos (eval $ac_try) 2>&5 4045 1.1 christos ac_status=$? 4046 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4047 1.1 christos (exit $ac_status); }; }; then 4048 1.1 christos ac_header_compiler=yes 4049 1.1 christos else 4050 1.1 christos echo "$as_me: failed program was:" >&5 4051 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4052 1.1 christos 4053 1.1 christos ac_header_compiler=no 4054 1.1 christos fi 4055 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4056 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4057 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 4058 1.1 christos 4059 1.1 christos # Is the header present? 4060 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 4061 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4062 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4063 1.1 christos /* confdefs.h. */ 4064 1.1 christos _ACEOF 4065 1.1 christos cat confdefs.h >>conftest.$ac_ext 4066 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4067 1.1 christos /* end confdefs.h. */ 4068 1.1 christos #include <$ac_header> 4069 1.1 christos _ACEOF 4070 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4071 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4072 1.1 christos ac_status=$? 4073 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4074 1.1 christos rm -f conftest.er1 4075 1.1 christos cat conftest.err >&5 4076 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 1.1 christos (exit $ac_status); } >/dev/null; then 4078 1.1 christos if test -s conftest.err; then 4079 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 4080 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4081 1.1 christos else 4082 1.1 christos ac_cpp_err= 4083 1.1 christos fi 4084 1.1 christos else 4085 1.1 christos ac_cpp_err=yes 4086 1.1 christos fi 4087 1.1 christos if test -z "$ac_cpp_err"; then 4088 1.1 christos ac_header_preproc=yes 4089 1.1 christos else 4090 1.1 christos echo "$as_me: failed program was:" >&5 4091 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4092 1.1 christos 4093 1.1 christos ac_header_preproc=no 4094 1.1 christos fi 4095 1.1 christos rm -f conftest.err conftest.$ac_ext 4096 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4097 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 4098 1.1 christos 4099 1.1 christos # So? What about this header? 4100 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4101 1.1 christos yes:no: ) 4102 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4103 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4104 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4105 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4106 1.1 christos ac_header_preproc=yes 4107 1.1 christos ;; 4108 1.1 christos no:yes:* ) 4109 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4110 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4111 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4112 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4113 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4114 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4115 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4116 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4117 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4118 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4119 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4120 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4121 1.1 christos ( 4122 1.1 christos cat <<\_ASBOX 4123 1.1 christos ## ------------------------------- ## 4124 1.1 christos ## Report this to bug-make (at] gnu.org ## 4125 1.1 christos ## ------------------------------- ## 4126 1.1 christos _ASBOX 4127 1.1 christos ) | 4128 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 4129 1.1 christos ;; 4130 1.1 christos esac 4131 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4132 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4133 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4134 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4135 1.1 christos else 4136 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 4137 1.1 christos fi 4138 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4139 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4140 1.1 christos 4141 1.1 christos fi 4142 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 4143 1.1 christos cat >>confdefs.h <<_ACEOF 4144 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4145 1.1 christos _ACEOF 4146 1.1 christos 4147 1.1 christos fi 4148 1.1 christos 4149 1.1 christos done 4150 1.1 christos 4151 1.1 christos 4152 1.1 christos 4153 1.1 christos # Enable gettext, in "external" mode. 4154 1.1 christos 4155 1.1 christos 4156 1.1 christos 4157 1.1 christos MKINSTALLDIRS= 4158 1.1 christos if test -n "$ac_aux_dir"; then 4159 1.1 christos case "$ac_aux_dir" in 4160 1.1 christos /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 4161 1.1 christos *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 4162 1.1 christos esac 4163 1.1 christos fi 4164 1.1 christos if test -z "$MKINSTALLDIRS"; then 4165 1.1 christos MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 4166 1.1 christos fi 4167 1.1 christos 4168 1.1 christos 4169 1.1 christos 4170 1.1 christos echo "$as_me:$LINENO: checking whether NLS is requested" >&5 4171 1.1 christos echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 4172 1.1 christos # Check whether --enable-nls or --disable-nls was given. 4173 1.1 christos if test "${enable_nls+set}" = set; then 4174 1.1 christos enableval="$enable_nls" 4175 1.1 christos USE_NLS=$enableval 4176 1.1 christos else 4177 1.1 christos USE_NLS=yes 4178 1.1 christos fi; 4179 1.1 christos echo "$as_me:$LINENO: result: $USE_NLS" >&5 4180 1.1 christos echo "${ECHO_T}$USE_NLS" >&6 4181 1.1 christos 4182 1.1 christos 4183 1.1 christos 4184 1.1 christos 4185 1.1 christos 4186 1.1 christos 4187 1.1 christos # Prepare PATH_SEPARATOR. 4188 1.1 christos # The user is always right. 4189 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 4190 1.1 christos echo "#! /bin/sh" >conf$$.sh 4191 1.1 christos echo "exit 0" >>conf$$.sh 4192 1.1 christos chmod +x conf$$.sh 4193 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4194 1.1 christos PATH_SEPARATOR=';' 4195 1.1 christos else 4196 1.1 christos PATH_SEPARATOR=: 4197 1.1 christos fi 4198 1.1 christos rm -f conf$$.sh 4199 1.1 christos fi 4200 1.1 christos 4201 1.1 christos # Find out how to test for executable files. Don't use a zero-byte file, 4202 1.1 christos # as systems may use methods other than mode bits to determine executability. 4203 1.1 christos cat >conf$$.file <<_ASEOF 4204 1.1 christos #! /bin/sh 4205 1.1 christos exit 0 4206 1.1 christos _ASEOF 4207 1.1 christos chmod +x conf$$.file 4208 1.1 christos if test -x conf$$.file >/dev/null 2>&1; then 4209 1.1 christos ac_executable_p="test -x" 4210 1.1 christos else 4211 1.1 christos ac_executable_p="test -f" 4212 1.1 christos fi 4213 1.1 christos rm -f conf$$.file 4214 1.1 christos 4215 1.1 christos # Extract the first word of "msgfmt", so it can be a program name with args. 4216 1.1 christos set dummy msgfmt; ac_word=$2 4217 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 4218 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4219 1.1 christos if test "${ac_cv_path_MSGFMT+set}" = set; then 4220 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4221 1.1 christos else 4222 1.1 christos case "$MSGFMT" in 4223 1.1 christos [\\/]* | ?:[\\/]*) 4224 1.1 christos ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4225 1.1 christos ;; 4226 1.1 christos *) 4227 1.1 christos ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4228 1.1 christos for ac_dir in $PATH; do 4229 1.1 christos IFS="$ac_save_IFS" 4230 1.1 christos test -z "$ac_dir" && ac_dir=. 4231 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 4232 1.1 christos if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4233 1.1 christos if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 4234 1.1 christos (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4235 1.1 christos ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 4236 1.1 christos break 2 4237 1.1 christos fi 4238 1.1 christos fi 4239 1.1 christos done 4240 1.1 christos done 4241 1.1 christos IFS="$ac_save_IFS" 4242 1.1 christos test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 4243 1.1 christos ;; 4244 1.1 christos esac 4245 1.1 christos fi 4246 1.1 christos MSGFMT="$ac_cv_path_MSGFMT" 4247 1.1 christos if test "$MSGFMT" != ":"; then 4248 1.1 christos echo "$as_me:$LINENO: result: $MSGFMT" >&5 4249 1.1 christos echo "${ECHO_T}$MSGFMT" >&6 4250 1.1 christos else 4251 1.1 christos echo "$as_me:$LINENO: result: no" >&5 4252 1.1 christos echo "${ECHO_T}no" >&6 4253 1.1 christos fi 4254 1.1 christos 4255 1.1 christos # Extract the first word of "gmsgfmt", so it can be a program name with args. 4256 1.1 christos set dummy gmsgfmt; ac_word=$2 4257 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 4258 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4259 1.1 christos if test "${ac_cv_path_GMSGFMT+set}" = set; then 4260 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4261 1.1 christos else 4262 1.1 christos case $GMSGFMT in 4263 1.1 christos [\\/]* | ?:[\\/]*) 4264 1.1 christos ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4265 1.1 christos ;; 4266 1.1 christos *) 4267 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4268 1.1 christos for as_dir in $PATH 4269 1.1 christos do 4270 1.1 christos IFS=$as_save_IFS 4271 1.1 christos test -z "$as_dir" && as_dir=. 4272 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 4273 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4274 1.1 christos ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4275 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4276 1.1 christos break 2 4277 1.1 christos fi 4278 1.1 christos done 4279 1.1 christos done 4280 1.1 christos 4281 1.1 christos test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4282 1.1 christos ;; 4283 1.1 christos esac 4284 1.1 christos fi 4285 1.1 christos GMSGFMT=$ac_cv_path_GMSGFMT 4286 1.1 christos 4287 1.1 christos if test -n "$GMSGFMT"; then 4288 1.1 christos echo "$as_me:$LINENO: result: $GMSGFMT" >&5 4289 1.1 christos echo "${ECHO_T}$GMSGFMT" >&6 4290 1.1 christos else 4291 1.1 christos echo "$as_me:$LINENO: result: no" >&5 4292 1.1 christos echo "${ECHO_T}no" >&6 4293 1.1 christos fi 4294 1.1 christos 4295 1.1 christos 4296 1.1 christos 4297 1.1 christos # Prepare PATH_SEPARATOR. 4298 1.1 christos # The user is always right. 4299 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 4300 1.1 christos echo "#! /bin/sh" >conf$$.sh 4301 1.1 christos echo "exit 0" >>conf$$.sh 4302 1.1 christos chmod +x conf$$.sh 4303 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4304 1.1 christos PATH_SEPARATOR=';' 4305 1.1 christos else 4306 1.1 christos PATH_SEPARATOR=: 4307 1.1 christos fi 4308 1.1 christos rm -f conf$$.sh 4309 1.1 christos fi 4310 1.1 christos 4311 1.1 christos # Find out how to test for executable files. Don't use a zero-byte file, 4312 1.1 christos # as systems may use methods other than mode bits to determine executability. 4313 1.1 christos cat >conf$$.file <<_ASEOF 4314 1.1 christos #! /bin/sh 4315 1.1 christos exit 0 4316 1.1 christos _ASEOF 4317 1.1 christos chmod +x conf$$.file 4318 1.1 christos if test -x conf$$.file >/dev/null 2>&1; then 4319 1.1 christos ac_executable_p="test -x" 4320 1.1 christos else 4321 1.1 christos ac_executable_p="test -f" 4322 1.1 christos fi 4323 1.1 christos rm -f conf$$.file 4324 1.1 christos 4325 1.1 christos # Extract the first word of "xgettext", so it can be a program name with args. 4326 1.1 christos set dummy xgettext; ac_word=$2 4327 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 4328 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4329 1.1 christos if test "${ac_cv_path_XGETTEXT+set}" = set; then 4330 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4331 1.1 christos else 4332 1.1 christos case "$XGETTEXT" in 4333 1.1 christos [\\/]* | ?:[\\/]*) 4334 1.1 christos ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4335 1.1 christos ;; 4336 1.1 christos *) 4337 1.1 christos ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4338 1.1 christos for ac_dir in $PATH; do 4339 1.1 christos IFS="$ac_save_IFS" 4340 1.1 christos test -z "$ac_dir" && ac_dir=. 4341 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 4342 1.1 christos if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4343 1.1 christos if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4344 1.1 christos (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4345 1.1 christos ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 4346 1.1 christos break 2 4347 1.1 christos fi 4348 1.1 christos fi 4349 1.1 christos done 4350 1.1 christos done 4351 1.1 christos IFS="$ac_save_IFS" 4352 1.1 christos test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4353 1.1 christos ;; 4354 1.1 christos esac 4355 1.1 christos fi 4356 1.1 christos XGETTEXT="$ac_cv_path_XGETTEXT" 4357 1.1 christos if test "$XGETTEXT" != ":"; then 4358 1.1 christos echo "$as_me:$LINENO: result: $XGETTEXT" >&5 4359 1.1 christos echo "${ECHO_T}$XGETTEXT" >&6 4360 1.1 christos else 4361 1.1 christos echo "$as_me:$LINENO: result: no" >&5 4362 1.1 christos echo "${ECHO_T}no" >&6 4363 1.1 christos fi 4364 1.1 christos 4365 1.1 christos rm -f messages.po 4366 1.1 christos 4367 1.1 christos 4368 1.1 christos # Prepare PATH_SEPARATOR. 4369 1.1 christos # The user is always right. 4370 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 4371 1.1 christos echo "#! /bin/sh" >conf$$.sh 4372 1.1 christos echo "exit 0" >>conf$$.sh 4373 1.1 christos chmod +x conf$$.sh 4374 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4375 1.1 christos PATH_SEPARATOR=';' 4376 1.1 christos else 4377 1.1 christos PATH_SEPARATOR=: 4378 1.1 christos fi 4379 1.1 christos rm -f conf$$.sh 4380 1.1 christos fi 4381 1.1 christos 4382 1.1 christos # Find out how to test for executable files. Don't use a zero-byte file, 4383 1.1 christos # as systems may use methods other than mode bits to determine executability. 4384 1.1 christos cat >conf$$.file <<_ASEOF 4385 1.1 christos #! /bin/sh 4386 1.1 christos exit 0 4387 1.1 christos _ASEOF 4388 1.1 christos chmod +x conf$$.file 4389 1.1 christos if test -x conf$$.file >/dev/null 2>&1; then 4390 1.1 christos ac_executable_p="test -x" 4391 1.1 christos else 4392 1.1 christos ac_executable_p="test -f" 4393 1.1 christos fi 4394 1.1 christos rm -f conf$$.file 4395 1.1 christos 4396 1.1 christos # Extract the first word of "msgmerge", so it can be a program name with args. 4397 1.1 christos set dummy msgmerge; ac_word=$2 4398 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 4399 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4400 1.1 christos if test "${ac_cv_path_MSGMERGE+set}" = set; then 4401 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4402 1.1 christos else 4403 1.1 christos case "$MSGMERGE" in 4404 1.1 christos [\\/]* | ?:[\\/]*) 4405 1.1 christos ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4406 1.1 christos ;; 4407 1.1 christos *) 4408 1.1 christos ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 4409 1.1 christos for ac_dir in $PATH; do 4410 1.1 christos IFS="$ac_save_IFS" 4411 1.1 christos test -z "$ac_dir" && ac_dir=. 4412 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 4413 1.1 christos if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 4414 1.1 christos if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 4415 1.1 christos ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 4416 1.1 christos break 2 4417 1.1 christos fi 4418 1.1 christos fi 4419 1.1 christos done 4420 1.1 christos done 4421 1.1 christos IFS="$ac_save_IFS" 4422 1.1 christos test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 4423 1.1 christos ;; 4424 1.1 christos esac 4425 1.1 christos fi 4426 1.1 christos MSGMERGE="$ac_cv_path_MSGMERGE" 4427 1.1 christos if test "$MSGMERGE" != ":"; then 4428 1.1 christos echo "$as_me:$LINENO: result: $MSGMERGE" >&5 4429 1.1 christos echo "${ECHO_T}$MSGMERGE" >&6 4430 1.1 christos else 4431 1.1 christos echo "$as_me:$LINENO: result: no" >&5 4432 1.1 christos echo "${ECHO_T}no" >&6 4433 1.1 christos fi 4434 1.1 christos 4435 1.1 christos 4436 1.1 christos if test "$GMSGFMT" != ":"; then 4437 1.1 christos if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4438 1.1 christos (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4439 1.1 christos : ; 4440 1.1 christos else 4441 1.1 christos GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4442 1.1 christos echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 4443 1.1 christos echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 4444 1.1 christos GMSGFMT=":" 4445 1.1 christos fi 4446 1.1 christos fi 4447 1.1 christos 4448 1.1 christos if test "$XGETTEXT" != ":"; then 4449 1.1 christos if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 4450 1.1 christos (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4451 1.1 christos : ; 4452 1.1 christos else 4453 1.1 christos echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 4454 1.1 christos echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 4455 1.1 christos XGETTEXT=":" 4456 1.1 christos fi 4457 1.1 christos rm -f messages.po 4458 1.1 christos fi 4459 1.1 christos 4460 1.1 christos ac_config_commands="$ac_config_commands default-1" 4461 1.1 christos 4462 1.1 christos 4463 1.1 christos 4464 1.1 christos if test "X$prefix" = "XNONE"; then 4465 1.1 christos acl_final_prefix="$ac_default_prefix" 4466 1.1 christos else 4467 1.1 christos acl_final_prefix="$prefix" 4468 1.1 christos fi 4469 1.1 christos if test "X$exec_prefix" = "XNONE"; then 4470 1.1 christos acl_final_exec_prefix='${prefix}' 4471 1.1 christos else 4472 1.1 christos acl_final_exec_prefix="$exec_prefix" 4473 1.1 christos fi 4474 1.1 christos acl_save_prefix="$prefix" 4475 1.1 christos prefix="$acl_final_prefix" 4476 1.1 christos eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 4477 1.1 christos prefix="$acl_save_prefix" 4478 1.1 christos 4479 1.1 christos 4480 1.1 christos # Check whether --with-gnu-ld or --without-gnu-ld was given. 4481 1.1 christos if test "${with_gnu_ld+set}" = set; then 4482 1.1 christos withval="$with_gnu_ld" 4483 1.1 christos test "$withval" = no || with_gnu_ld=yes 4484 1.1 christos else 4485 1.1 christos with_gnu_ld=no 4486 1.1 christos fi; 4487 1.1 christos # Prepare PATH_SEPARATOR. 4488 1.1 christos # The user is always right. 4489 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 4490 1.1 christos echo "#! /bin/sh" >conf$$.sh 4491 1.1 christos echo "exit 0" >>conf$$.sh 4492 1.1 christos chmod +x conf$$.sh 4493 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 4494 1.1 christos PATH_SEPARATOR=';' 4495 1.1 christos else 4496 1.1 christos PATH_SEPARATOR=: 4497 1.1 christos fi 4498 1.1 christos rm -f conf$$.sh 4499 1.1 christos fi 4500 1.1 christos ac_prog=ld 4501 1.1 christos if test "$GCC" = yes; then 4502 1.1 christos # Check if gcc -print-prog-name=ld gives a path. 4503 1.1 christos echo "$as_me:$LINENO: checking for ld used by GCC" >&5 4504 1.1 christos echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 4505 1.1 christos case $host in 4506 1.1 christos *-*-mingw*) 4507 1.1 christos # gcc leaves a trailing carriage return which upsets mingw 4508 1.1 christos ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4509 1.1 christos *) 4510 1.1 christos ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4511 1.1 christos esac 4512 1.1 christos case $ac_prog in 4513 1.1 christos # Accept absolute paths. 4514 1.1 christos [\\/]* | [A-Za-z]:[\\/]*) 4515 1.1 christos re_direlt='/[^/][^/]*/\.\./' 4516 1.1 christos # Canonicalize the path of ld 4517 1.1 christos ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4518 1.1 christos while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4519 1.1 christos ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4520 1.1 christos done 4521 1.1 christos test -z "$LD" && LD="$ac_prog" 4522 1.1 christos ;; 4523 1.1 christos "") 4524 1.1 christos # If it fails, then pretend we aren't using GCC. 4525 1.1 christos ac_prog=ld 4526 1.1 christos ;; 4527 1.1 christos *) 4528 1.1 christos # If it is relative, then search for the first ld in PATH. 4529 1.1 christos with_gnu_ld=unknown 4530 1.1 christos ;; 4531 1.1 christos esac 4532 1.1 christos elif test "$with_gnu_ld" = yes; then 4533 1.1 christos echo "$as_me:$LINENO: checking for GNU ld" >&5 4534 1.1 christos echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4535 1.1 christos else 4536 1.1 christos echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4537 1.1 christos echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4538 1.1 christos fi 4539 1.1 christos if test "${acl_cv_path_LD+set}" = set; then 4540 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4541 1.1 christos else 4542 1.1 christos if test -z "$LD"; then 4543 1.1 christos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 4544 1.1 christos for ac_dir in $PATH; do 4545 1.1 christos test -z "$ac_dir" && ac_dir=. 4546 1.1 christos if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4547 1.1 christos acl_cv_path_LD="$ac_dir/$ac_prog" 4548 1.1 christos # Check to see if the program is GNU ld. I'd rather use --version, 4549 1.1 christos # but apparently some GNU ld's only accept -v. 4550 1.1 christos # Break only if it was the GNU/non-GNU ld that we prefer. 4551 1.1 christos case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 4552 1.1 christos *GNU* | *'with BFD'*) 4553 1.1 christos test "$with_gnu_ld" != no && break ;; 4554 1.1 christos *) 4555 1.1 christos test "$with_gnu_ld" != yes && break ;; 4556 1.1 christos esac 4557 1.1 christos fi 4558 1.1 christos done 4559 1.1 christos IFS="$ac_save_ifs" 4560 1.1 christos else 4561 1.1 christos acl_cv_path_LD="$LD" # Let the user override the test with a path. 4562 1.1 christos fi 4563 1.1 christos fi 4564 1.1 christos 4565 1.1 christos LD="$acl_cv_path_LD" 4566 1.1 christos if test -n "$LD"; then 4567 1.1 christos echo "$as_me:$LINENO: result: $LD" >&5 4568 1.1 christos echo "${ECHO_T}$LD" >&6 4569 1.1 christos else 4570 1.1 christos echo "$as_me:$LINENO: result: no" >&5 4571 1.1 christos echo "${ECHO_T}no" >&6 4572 1.1 christos fi 4573 1.1 christos test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4574 1.1 christos echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4575 1.1 christos { (exit 1); exit 1; }; } 4576 1.1 christos echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4577 1.1 christos echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4578 1.1 christos if test "${acl_cv_prog_gnu_ld+set}" = set; then 4579 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4580 1.1 christos else 4581 1.1 christos # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4582 1.1 christos case `$LD -v 2>&1 </dev/null` in 4583 1.1 christos *GNU* | *'with BFD'*) 4584 1.1 christos acl_cv_prog_gnu_ld=yes ;; 4585 1.1 christos *) 4586 1.1 christos acl_cv_prog_gnu_ld=no ;; 4587 1.1 christos esac 4588 1.1 christos fi 4589 1.1 christos echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 4590 1.1 christos echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 4591 1.1 christos with_gnu_ld=$acl_cv_prog_gnu_ld 4592 1.1 christos 4593 1.1 christos 4594 1.1 christos 4595 1.1 christos echo "$as_me:$LINENO: checking for shared library run path origin" >&5 4596 1.1 christos echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 4597 1.1 christos if test "${acl_cv_rpath+set}" = set; then 4598 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4599 1.1 christos else 4600 1.1 christos 4601 1.1 christos CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 4602 1.1 christos ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 4603 1.1 christos . ./conftest.sh 4604 1.1 christos rm -f ./conftest.sh 4605 1.1 christos acl_cv_rpath=done 4606 1.1 christos 4607 1.1 christos fi 4608 1.1 christos echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 4609 1.1 christos echo "${ECHO_T}$acl_cv_rpath" >&6 4610 1.1 christos wl="$acl_cv_wl" 4611 1.1 christos libext="$acl_cv_libext" 4612 1.1 christos shlibext="$acl_cv_shlibext" 4613 1.1 christos hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 4614 1.1 christos hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 4615 1.1 christos hardcode_direct="$acl_cv_hardcode_direct" 4616 1.1 christos hardcode_minus_L="$acl_cv_hardcode_minus_L" 4617 1.1 christos # Check whether --enable-rpath or --disable-rpath was given. 4618 1.1 christos if test "${enable_rpath+set}" = set; then 4619 1.1 christos enableval="$enable_rpath" 4620 1.1 christos : 4621 1.1 christos else 4622 1.1 christos enable_rpath=yes 4623 1.1 christos fi; 4624 1.1 christos 4625 1.1 christos 4626 1.1 christos 4627 1.1 christos 4628 1.1 christos 4629 1.1 christos 4630 1.1 christos 4631 1.1 christos use_additional=yes 4632 1.1 christos 4633 1.1 christos acl_save_prefix="$prefix" 4634 1.1 christos prefix="$acl_final_prefix" 4635 1.1 christos acl_save_exec_prefix="$exec_prefix" 4636 1.1 christos exec_prefix="$acl_final_exec_prefix" 4637 1.1 christos 4638 1.1 christos eval additional_includedir=\"$includedir\" 4639 1.1 christos eval additional_libdir=\"$libdir\" 4640 1.1 christos 4641 1.1 christos exec_prefix="$acl_save_exec_prefix" 4642 1.1 christos prefix="$acl_save_prefix" 4643 1.1 christos 4644 1.1 christos 4645 1.1 christos # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 4646 1.1 christos if test "${with_libiconv_prefix+set}" = set; then 4647 1.1 christos withval="$with_libiconv_prefix" 4648 1.1 christos 4649 1.1 christos if test "X$withval" = "Xno"; then 4650 1.1 christos use_additional=no 4651 1.1 christos else 4652 1.1 christos if test "X$withval" = "X"; then 4653 1.1 christos 4654 1.1 christos acl_save_prefix="$prefix" 4655 1.1 christos prefix="$acl_final_prefix" 4656 1.1 christos acl_save_exec_prefix="$exec_prefix" 4657 1.1 christos exec_prefix="$acl_final_exec_prefix" 4658 1.1 christos 4659 1.1 christos eval additional_includedir=\"$includedir\" 4660 1.1 christos eval additional_libdir=\"$libdir\" 4661 1.1 christos 4662 1.1 christos exec_prefix="$acl_save_exec_prefix" 4663 1.1 christos prefix="$acl_save_prefix" 4664 1.1 christos 4665 1.1 christos else 4666 1.1 christos additional_includedir="$withval/include" 4667 1.1 christos additional_libdir="$withval/lib" 4668 1.1 christos fi 4669 1.1 christos fi 4670 1.1 christos 4671 1.1 christos fi; 4672 1.1 christos LIBICONV= 4673 1.1 christos LTLIBICONV= 4674 1.1 christos INCICONV= 4675 1.1 christos rpathdirs= 4676 1.1 christos ltrpathdirs= 4677 1.1 christos names_already_handled= 4678 1.1 christos names_next_round='iconv ' 4679 1.1 christos while test -n "$names_next_round"; do 4680 1.1 christos names_this_round="$names_next_round" 4681 1.1 christos names_next_round= 4682 1.1 christos for name in $names_this_round; do 4683 1.1 christos already_handled= 4684 1.1 christos for n in $names_already_handled; do 4685 1.1 christos if test "$n" = "$name"; then 4686 1.1 christos already_handled=yes 4687 1.1 christos break 4688 1.1 christos fi 4689 1.1 christos done 4690 1.1 christos if test -z "$already_handled"; then 4691 1.1 christos names_already_handled="$names_already_handled $name" 4692 1.1 christos uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 4693 1.1 christos eval value=\"\$HAVE_LIB$uppername\" 4694 1.1 christos if test -n "$value"; then 4695 1.1 christos if test "$value" = yes; then 4696 1.1 christos eval value=\"\$LIB$uppername\" 4697 1.1 christos test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 4698 1.1 christos eval value=\"\$LTLIB$uppername\" 4699 1.1 christos test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 4700 1.1 christos else 4701 1.1 christos : 4702 1.1 christos fi 4703 1.1 christos else 4704 1.1 christos found_dir= 4705 1.1 christos found_la= 4706 1.1 christos found_so= 4707 1.1 christos found_a= 4708 1.1 christos if test $use_additional = yes; then 4709 1.1 christos if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 4710 1.1 christos found_dir="$additional_libdir" 4711 1.1 christos found_so="$additional_libdir/lib$name.$shlibext" 4712 1.1 christos if test -f "$additional_libdir/lib$name.la"; then 4713 1.1 christos found_la="$additional_libdir/lib$name.la" 4714 1.1 christos fi 4715 1.1 christos else 4716 1.1 christos if test -f "$additional_libdir/lib$name.$libext"; then 4717 1.1 christos found_dir="$additional_libdir" 4718 1.1 christos found_a="$additional_libdir/lib$name.$libext" 4719 1.1 christos if test -f "$additional_libdir/lib$name.la"; then 4720 1.1 christos found_la="$additional_libdir/lib$name.la" 4721 1.1 christos fi 4722 1.1 christos fi 4723 1.1 christos fi 4724 1.1 christos fi 4725 1.1 christos if test "X$found_dir" = "X"; then 4726 1.1 christos for x in $LDFLAGS $LTLIBICONV; do 4727 1.1 christos 4728 1.1 christos acl_save_prefix="$prefix" 4729 1.1 christos prefix="$acl_final_prefix" 4730 1.1 christos acl_save_exec_prefix="$exec_prefix" 4731 1.1 christos exec_prefix="$acl_final_exec_prefix" 4732 1.1 christos eval x=\"$x\" 4733 1.1 christos exec_prefix="$acl_save_exec_prefix" 4734 1.1 christos prefix="$acl_save_prefix" 4735 1.1 christos 4736 1.1 christos case "$x" in 4737 1.1 christos -L*) 4738 1.1 christos dir=`echo "X$x" | sed -e 's/^X-L//'` 4739 1.1 christos if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 4740 1.1 christos found_dir="$dir" 4741 1.1 christos found_so="$dir/lib$name.$shlibext" 4742 1.1 christos if test -f "$dir/lib$name.la"; then 4743 1.1 christos found_la="$dir/lib$name.la" 4744 1.1 christos fi 4745 1.1 christos else 4746 1.1 christos if test -f "$dir/lib$name.$libext"; then 4747 1.1 christos found_dir="$dir" 4748 1.1 christos found_a="$dir/lib$name.$libext" 4749 1.1 christos if test -f "$dir/lib$name.la"; then 4750 1.1 christos found_la="$dir/lib$name.la" 4751 1.1 christos fi 4752 1.1 christos fi 4753 1.1 christos fi 4754 1.1 christos ;; 4755 1.1 christos esac 4756 1.1 christos if test "X$found_dir" != "X"; then 4757 1.1 christos break 4758 1.1 christos fi 4759 1.1 christos done 4760 1.1 christos fi 4761 1.1 christos if test "X$found_dir" != "X"; then 4762 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 4763 1.1 christos if test "X$found_so" != "X"; then 4764 1.1 christos if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 4765 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4766 1.1 christos else 4767 1.1 christos haveit= 4768 1.1 christos for x in $ltrpathdirs; do 4769 1.1 christos if test "X$x" = "X$found_dir"; then 4770 1.1 christos haveit=yes 4771 1.1 christos break 4772 1.1 christos fi 4773 1.1 christos done 4774 1.1 christos if test -z "$haveit"; then 4775 1.1 christos ltrpathdirs="$ltrpathdirs $found_dir" 4776 1.1 christos fi 4777 1.1 christos if test "$hardcode_direct" = yes; then 4778 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4779 1.1 christos else 4780 1.1 christos if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 4781 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4782 1.1 christos haveit= 4783 1.1 christos for x in $rpathdirs; do 4784 1.1 christos if test "X$x" = "X$found_dir"; then 4785 1.1 christos haveit=yes 4786 1.1 christos break 4787 1.1 christos fi 4788 1.1 christos done 4789 1.1 christos if test -z "$haveit"; then 4790 1.1 christos rpathdirs="$rpathdirs $found_dir" 4791 1.1 christos fi 4792 1.1 christos else 4793 1.1 christos haveit= 4794 1.1 christos for x in $LDFLAGS $LIBICONV; do 4795 1.1 christos 4796 1.1 christos acl_save_prefix="$prefix" 4797 1.1 christos prefix="$acl_final_prefix" 4798 1.1 christos acl_save_exec_prefix="$exec_prefix" 4799 1.1 christos exec_prefix="$acl_final_exec_prefix" 4800 1.1 christos eval x=\"$x\" 4801 1.1 christos exec_prefix="$acl_save_exec_prefix" 4802 1.1 christos prefix="$acl_save_prefix" 4803 1.1 christos 4804 1.1 christos if test "X$x" = "X-L$found_dir"; then 4805 1.1 christos haveit=yes 4806 1.1 christos break 4807 1.1 christos fi 4808 1.1 christos done 4809 1.1 christos if test -z "$haveit"; then 4810 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 4811 1.1 christos fi 4812 1.1 christos if test "$hardcode_minus_L" != no; then 4813 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 4814 1.1 christos else 4815 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 4816 1.1 christos fi 4817 1.1 christos fi 4818 1.1 christos fi 4819 1.1 christos fi 4820 1.1 christos else 4821 1.1 christos if test "X$found_a" != "X"; then 4822 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 4823 1.1 christos else 4824 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 4825 1.1 christos fi 4826 1.1 christos fi 4827 1.1 christos additional_includedir= 4828 1.1 christos case "$found_dir" in 4829 1.1 christos */lib | */lib/) 4830 1.1 christos basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 4831 1.1 christos additional_includedir="$basedir/include" 4832 1.1 christos ;; 4833 1.1 christos esac 4834 1.1 christos if test "X$additional_includedir" != "X"; then 4835 1.1 christos if test "X$additional_includedir" != "X/usr/include"; then 4836 1.1 christos haveit= 4837 1.1 christos if test "X$additional_includedir" = "X/usr/local/include"; then 4838 1.1 christos if test -n "$GCC"; then 4839 1.1 christos case $host_os in 4840 1.1 christos linux*) haveit=yes;; 4841 1.1 christos esac 4842 1.1 christos fi 4843 1.1 christos fi 4844 1.1 christos if test -z "$haveit"; then 4845 1.1 christos for x in $CPPFLAGS $INCICONV; do 4846 1.1 christos 4847 1.1 christos acl_save_prefix="$prefix" 4848 1.1 christos prefix="$acl_final_prefix" 4849 1.1 christos acl_save_exec_prefix="$exec_prefix" 4850 1.1 christos exec_prefix="$acl_final_exec_prefix" 4851 1.1 christos eval x=\"$x\" 4852 1.1 christos exec_prefix="$acl_save_exec_prefix" 4853 1.1 christos prefix="$acl_save_prefix" 4854 1.1 christos 4855 1.1 christos if test "X$x" = "X-I$additional_includedir"; then 4856 1.1 christos haveit=yes 4857 1.1 christos break 4858 1.1 christos fi 4859 1.1 christos done 4860 1.1 christos if test -z "$haveit"; then 4861 1.1 christos if test -d "$additional_includedir"; then 4862 1.1 christos INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 4863 1.1 christos fi 4864 1.1 christos fi 4865 1.1 christos fi 4866 1.1 christos fi 4867 1.1 christos fi 4868 1.1 christos if test -n "$found_la"; then 4869 1.1 christos save_libdir="$libdir" 4870 1.1 christos case "$found_la" in 4871 1.1 christos */* | *\\*) . "$found_la" ;; 4872 1.1 christos *) . "./$found_la" ;; 4873 1.1 christos esac 4874 1.1 christos libdir="$save_libdir" 4875 1.1 christos for dep in $dependency_libs; do 4876 1.1 christos case "$dep" in 4877 1.1 christos -L*) 4878 1.1 christos additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 4879 1.1 christos if test "X$additional_libdir" != "X/usr/lib"; then 4880 1.1 christos haveit= 4881 1.1 christos if test "X$additional_libdir" = "X/usr/local/lib"; then 4882 1.1 christos if test -n "$GCC"; then 4883 1.1 christos case $host_os in 4884 1.1 christos linux*) haveit=yes;; 4885 1.1 christos esac 4886 1.1 christos fi 4887 1.1 christos fi 4888 1.1 christos if test -z "$haveit"; then 4889 1.1 christos haveit= 4890 1.1 christos for x in $LDFLAGS $LIBICONV; do 4891 1.1 christos 4892 1.1 christos acl_save_prefix="$prefix" 4893 1.1 christos prefix="$acl_final_prefix" 4894 1.1 christos acl_save_exec_prefix="$exec_prefix" 4895 1.1 christos exec_prefix="$acl_final_exec_prefix" 4896 1.1 christos eval x=\"$x\" 4897 1.1 christos exec_prefix="$acl_save_exec_prefix" 4898 1.1 christos prefix="$acl_save_prefix" 4899 1.1 christos 4900 1.1 christos if test "X$x" = "X-L$additional_libdir"; then 4901 1.1 christos haveit=yes 4902 1.1 christos break 4903 1.1 christos fi 4904 1.1 christos done 4905 1.1 christos if test -z "$haveit"; then 4906 1.1 christos if test -d "$additional_libdir"; then 4907 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 4908 1.1 christos fi 4909 1.1 christos fi 4910 1.1 christos haveit= 4911 1.1 christos for x in $LDFLAGS $LTLIBICONV; do 4912 1.1 christos 4913 1.1 christos acl_save_prefix="$prefix" 4914 1.1 christos prefix="$acl_final_prefix" 4915 1.1 christos acl_save_exec_prefix="$exec_prefix" 4916 1.1 christos exec_prefix="$acl_final_exec_prefix" 4917 1.1 christos eval x=\"$x\" 4918 1.1 christos exec_prefix="$acl_save_exec_prefix" 4919 1.1 christos prefix="$acl_save_prefix" 4920 1.1 christos 4921 1.1 christos if test "X$x" = "X-L$additional_libdir"; then 4922 1.1 christos haveit=yes 4923 1.1 christos break 4924 1.1 christos fi 4925 1.1 christos done 4926 1.1 christos if test -z "$haveit"; then 4927 1.1 christos if test -d "$additional_libdir"; then 4928 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 4929 1.1 christos fi 4930 1.1 christos fi 4931 1.1 christos fi 4932 1.1 christos fi 4933 1.1 christos ;; 4934 1.1 christos -R*) 4935 1.1 christos dir=`echo "X$dep" | sed -e 's/^X-R//'` 4936 1.1 christos if test "$enable_rpath" != no; then 4937 1.1 christos haveit= 4938 1.1 christos for x in $rpathdirs; do 4939 1.1 christos if test "X$x" = "X$dir"; then 4940 1.1 christos haveit=yes 4941 1.1 christos break 4942 1.1 christos fi 4943 1.1 christos done 4944 1.1 christos if test -z "$haveit"; then 4945 1.1 christos rpathdirs="$rpathdirs $dir" 4946 1.1 christos fi 4947 1.1 christos haveit= 4948 1.1 christos for x in $ltrpathdirs; do 4949 1.1 christos if test "X$x" = "X$dir"; then 4950 1.1 christos haveit=yes 4951 1.1 christos break 4952 1.1 christos fi 4953 1.1 christos done 4954 1.1 christos if test -z "$haveit"; then 4955 1.1 christos ltrpathdirs="$ltrpathdirs $dir" 4956 1.1 christos fi 4957 1.1 christos fi 4958 1.1 christos ;; 4959 1.1 christos -l*) 4960 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 4961 1.1 christos ;; 4962 1.1 christos *.la) 4963 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 4964 1.1 christos ;; 4965 1.1 christos *) 4966 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 4967 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 4968 1.1 christos ;; 4969 1.1 christos esac 4970 1.1 christos done 4971 1.1 christos fi 4972 1.1 christos else 4973 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 4974 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 4975 1.1 christos fi 4976 1.1 christos fi 4977 1.1 christos fi 4978 1.1 christos done 4979 1.1 christos done 4980 1.1 christos if test "X$rpathdirs" != "X"; then 4981 1.1 christos if test -n "$hardcode_libdir_separator"; then 4982 1.1 christos alldirs= 4983 1.1 christos for found_dir in $rpathdirs; do 4984 1.1 christos alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 4985 1.1 christos done 4986 1.1 christos acl_save_libdir="$libdir" 4987 1.1 christos libdir="$alldirs" 4988 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\" 4989 1.1 christos libdir="$acl_save_libdir" 4990 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 4991 1.1 christos else 4992 1.1 christos for found_dir in $rpathdirs; do 4993 1.1 christos acl_save_libdir="$libdir" 4994 1.1 christos libdir="$found_dir" 4995 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\" 4996 1.1 christos libdir="$acl_save_libdir" 4997 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 4998 1.1 christos done 4999 1.1 christos fi 5000 1.1 christos fi 5001 1.1 christos if test "X$ltrpathdirs" != "X"; then 5002 1.1 christos for found_dir in $ltrpathdirs; do 5003 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 5004 1.1 christos done 5005 1.1 christos fi 5006 1.1 christos 5007 1.1 christos 5008 1.1 christos 5009 1.1 christos 5010 1.1 christos 5011 1.1 christos 5012 1.1 christos 5013 1.1 christos 5014 1.1 christos 5015 1.1 christos 5016 1.1 christos 5017 1.1 christos 5018 1.1 christos 5019 1.1 christos 5020 1.1 christos 5021 1.1 christos 5022 1.1 christos 5023 1.1 christos 5024 1.1 christos echo "$as_me:$LINENO: checking whether NLS is requested" >&5 5025 1.1 christos echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 5026 1.1 christos # Check whether --enable-nls or --disable-nls was given. 5027 1.1 christos if test "${enable_nls+set}" = set; then 5028 1.1 christos enableval="$enable_nls" 5029 1.1 christos USE_NLS=$enableval 5030 1.1 christos else 5031 1.1 christos USE_NLS=yes 5032 1.1 christos fi; 5033 1.1 christos echo "$as_me:$LINENO: result: $USE_NLS" >&5 5034 1.1 christos echo "${ECHO_T}$USE_NLS" >&6 5035 1.1 christos 5036 1.1 christos 5037 1.1 christos 5038 1.1 christos 5039 1.1 christos LIBINTL= 5040 1.1 christos LTLIBINTL= 5041 1.1 christos POSUB= 5042 1.1 christos 5043 1.1 christos if test "$USE_NLS" = "yes"; then 5044 1.1 christos gt_use_preinstalled_gnugettext=no 5045 1.1 christos 5046 1.1 christos 5047 1.1 christos 5048 1.1 christos 5049 1.1 christos 5050 1.1 christos 5051 1.1 christos echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 5052 1.1 christos echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 5053 1.1 christos if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 5054 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5055 1.1 christos else 5056 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5057 1.1 christos /* confdefs.h. */ 5058 1.1 christos _ACEOF 5059 1.1 christos cat confdefs.h >>conftest.$ac_ext 5060 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5061 1.1 christos /* end confdefs.h. */ 5062 1.1 christos #include <libintl.h> 5063 1.1 christos extern int _nl_msg_cat_cntr; 5064 1.1 christos extern int *_nl_domain_bindings; 5065 1.1 christos int 5066 1.1 christos main () 5067 1.1 christos { 5068 1.1 christos bindtextdomain ("", ""); 5069 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 5070 1.1 christos ; 5071 1.1 christos return 0; 5072 1.1 christos } 5073 1.1 christos _ACEOF 5074 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5075 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5076 1.1 christos (eval $ac_link) 2>conftest.er1 5077 1.1 christos ac_status=$? 5078 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5079 1.1 christos rm -f conftest.er1 5080 1.1 christos cat conftest.err >&5 5081 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5082 1.1 christos (exit $ac_status); } && 5083 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5084 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5085 1.1 christos (eval $ac_try) 2>&5 5086 1.1 christos ac_status=$? 5087 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5088 1.1 christos (exit $ac_status); }; } && 5089 1.1 christos { ac_try='test -s conftest$ac_exeext' 5090 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5091 1.1 christos (eval $ac_try) 2>&5 5092 1.1 christos ac_status=$? 5093 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5094 1.1 christos (exit $ac_status); }; }; then 5095 1.1 christos gt_cv_func_gnugettext1_libc=yes 5096 1.1 christos else 5097 1.1 christos echo "$as_me: failed program was:" >&5 5098 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5099 1.1 christos 5100 1.1 christos gt_cv_func_gnugettext1_libc=no 5101 1.1 christos fi 5102 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5103 1.1 christos conftest$ac_exeext conftest.$ac_ext 5104 1.1 christos fi 5105 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 5106 1.1 christos echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 5107 1.1 christos 5108 1.1 christos if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 5109 1.1 christos 5110 1.1 christos 5111 1.1 christos 5112 1.1 christos 5113 1.1 christos 5114 1.1 christos am_save_CPPFLAGS="$CPPFLAGS" 5115 1.1 christos 5116 1.1 christos for element in $INCICONV; do 5117 1.1 christos haveit= 5118 1.1 christos for x in $CPPFLAGS; do 5119 1.1 christos 5120 1.1 christos acl_save_prefix="$prefix" 5121 1.1 christos prefix="$acl_final_prefix" 5122 1.1 christos acl_save_exec_prefix="$exec_prefix" 5123 1.1 christos exec_prefix="$acl_final_exec_prefix" 5124 1.1 christos eval x=\"$x\" 5125 1.1 christos exec_prefix="$acl_save_exec_prefix" 5126 1.1 christos prefix="$acl_save_prefix" 5127 1.1 christos 5128 1.1 christos if test "X$x" = "X$element"; then 5129 1.1 christos haveit=yes 5130 1.1 christos break 5131 1.1 christos fi 5132 1.1 christos done 5133 1.1 christos if test -z "$haveit"; then 5134 1.1 christos CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5135 1.1 christos fi 5136 1.1 christos done 5137 1.1 christos 5138 1.1 christos 5139 1.1 christos echo "$as_me:$LINENO: checking for iconv" >&5 5140 1.1 christos echo $ECHO_N "checking for iconv... $ECHO_C" >&6 5141 1.1 christos if test "${am_cv_func_iconv+set}" = set; then 5142 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5143 1.1 christos else 5144 1.1 christos 5145 1.1 christos am_cv_func_iconv="no, consider installing GNU libiconv" 5146 1.1 christos am_cv_lib_iconv=no 5147 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5148 1.1 christos /* confdefs.h. */ 5149 1.1 christos _ACEOF 5150 1.1 christos cat confdefs.h >>conftest.$ac_ext 5151 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5152 1.1 christos /* end confdefs.h. */ 5153 1.1 christos #include <stdlib.h> 5154 1.1 christos #include <iconv.h> 5155 1.1 christos int 5156 1.1 christos main () 5157 1.1 christos { 5158 1.1 christos iconv_t cd = iconv_open("",""); 5159 1.1 christos iconv(cd,NULL,NULL,NULL,NULL); 5160 1.1 christos iconv_close(cd); 5161 1.1 christos ; 5162 1.1 christos return 0; 5163 1.1 christos } 5164 1.1 christos _ACEOF 5165 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5166 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5167 1.1 christos (eval $ac_link) 2>conftest.er1 5168 1.1 christos ac_status=$? 5169 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5170 1.1 christos rm -f conftest.er1 5171 1.1 christos cat conftest.err >&5 5172 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5173 1.1 christos (exit $ac_status); } && 5174 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5175 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5176 1.1 christos (eval $ac_try) 2>&5 5177 1.1 christos ac_status=$? 5178 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5179 1.1 christos (exit $ac_status); }; } && 5180 1.1 christos { ac_try='test -s conftest$ac_exeext' 5181 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5182 1.1 christos (eval $ac_try) 2>&5 5183 1.1 christos ac_status=$? 5184 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 1.1 christos (exit $ac_status); }; }; then 5186 1.1 christos am_cv_func_iconv=yes 5187 1.1 christos else 5188 1.1 christos echo "$as_me: failed program was:" >&5 5189 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5190 1.1 christos 5191 1.1 christos fi 5192 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5193 1.1 christos conftest$ac_exeext conftest.$ac_ext 5194 1.1 christos if test "$am_cv_func_iconv" != yes; then 5195 1.1 christos am_save_LIBS="$LIBS" 5196 1.1 christos LIBS="$LIBS $LIBICONV" 5197 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5198 1.1 christos /* confdefs.h. */ 5199 1.1 christos _ACEOF 5200 1.1 christos cat confdefs.h >>conftest.$ac_ext 5201 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5202 1.1 christos /* end confdefs.h. */ 5203 1.1 christos #include <stdlib.h> 5204 1.1 christos #include <iconv.h> 5205 1.1 christos int 5206 1.1 christos main () 5207 1.1 christos { 5208 1.1 christos iconv_t cd = iconv_open("",""); 5209 1.1 christos iconv(cd,NULL,NULL,NULL,NULL); 5210 1.1 christos iconv_close(cd); 5211 1.1 christos ; 5212 1.1 christos return 0; 5213 1.1 christos } 5214 1.1 christos _ACEOF 5215 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5216 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5217 1.1 christos (eval $ac_link) 2>conftest.er1 5218 1.1 christos ac_status=$? 5219 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5220 1.1 christos rm -f conftest.er1 5221 1.1 christos cat conftest.err >&5 5222 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5223 1.1 christos (exit $ac_status); } && 5224 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5225 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5226 1.1 christos (eval $ac_try) 2>&5 5227 1.1 christos ac_status=$? 5228 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5229 1.1 christos (exit $ac_status); }; } && 5230 1.1 christos { ac_try='test -s conftest$ac_exeext' 5231 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5232 1.1 christos (eval $ac_try) 2>&5 5233 1.1 christos ac_status=$? 5234 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5235 1.1 christos (exit $ac_status); }; }; then 5236 1.1 christos am_cv_lib_iconv=yes 5237 1.1 christos am_cv_func_iconv=yes 5238 1.1 christos else 5239 1.1 christos echo "$as_me: failed program was:" >&5 5240 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5241 1.1 christos 5242 1.1 christos fi 5243 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5244 1.1 christos conftest$ac_exeext conftest.$ac_ext 5245 1.1 christos LIBS="$am_save_LIBS" 5246 1.1 christos fi 5247 1.1 christos 5248 1.1 christos fi 5249 1.1 christos echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 5250 1.1 christos echo "${ECHO_T}$am_cv_func_iconv" >&6 5251 1.1 christos if test "$am_cv_func_iconv" = yes; then 5252 1.1 christos 5253 1.1 christos cat >>confdefs.h <<\_ACEOF 5254 1.1 christos #define HAVE_ICONV 1 5255 1.1 christos _ACEOF 5256 1.1 christos 5257 1.1 christos fi 5258 1.1 christos if test "$am_cv_lib_iconv" = yes; then 5259 1.1 christos echo "$as_me:$LINENO: checking how to link with libiconv" >&5 5260 1.1 christos echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 5261 1.1 christos echo "$as_me:$LINENO: result: $LIBICONV" >&5 5262 1.1 christos echo "${ECHO_T}$LIBICONV" >&6 5263 1.1 christos else 5264 1.1 christos CPPFLAGS="$am_save_CPPFLAGS" 5265 1.1 christos LIBICONV= 5266 1.1 christos LTLIBICONV= 5267 1.1 christos fi 5268 1.1 christos 5269 1.1 christos 5270 1.1 christos 5271 1.1 christos 5272 1.1 christos 5273 1.1 christos 5274 1.1 christos use_additional=yes 5275 1.1 christos 5276 1.1 christos acl_save_prefix="$prefix" 5277 1.1 christos prefix="$acl_final_prefix" 5278 1.1 christos acl_save_exec_prefix="$exec_prefix" 5279 1.1 christos exec_prefix="$acl_final_exec_prefix" 5280 1.1 christos 5281 1.1 christos eval additional_includedir=\"$includedir\" 5282 1.1 christos eval additional_libdir=\"$libdir\" 5283 1.1 christos 5284 1.1 christos exec_prefix="$acl_save_exec_prefix" 5285 1.1 christos prefix="$acl_save_prefix" 5286 1.1 christos 5287 1.1 christos 5288 1.1 christos # Check whether --with-libintl-prefix or --without-libintl-prefix was given. 5289 1.1 christos if test "${with_libintl_prefix+set}" = set; then 5290 1.1 christos withval="$with_libintl_prefix" 5291 1.1 christos 5292 1.1 christos if test "X$withval" = "Xno"; then 5293 1.1 christos use_additional=no 5294 1.1 christos else 5295 1.1 christos if test "X$withval" = "X"; then 5296 1.1 christos 5297 1.1 christos acl_save_prefix="$prefix" 5298 1.1 christos prefix="$acl_final_prefix" 5299 1.1 christos acl_save_exec_prefix="$exec_prefix" 5300 1.1 christos exec_prefix="$acl_final_exec_prefix" 5301 1.1 christos 5302 1.1 christos eval additional_includedir=\"$includedir\" 5303 1.1 christos eval additional_libdir=\"$libdir\" 5304 1.1 christos 5305 1.1 christos exec_prefix="$acl_save_exec_prefix" 5306 1.1 christos prefix="$acl_save_prefix" 5307 1.1 christos 5308 1.1 christos else 5309 1.1 christos additional_includedir="$withval/include" 5310 1.1 christos additional_libdir="$withval/lib" 5311 1.1 christos fi 5312 1.1 christos fi 5313 1.1 christos 5314 1.1 christos fi; 5315 1.1 christos LIBINTL= 5316 1.1 christos LTLIBINTL= 5317 1.1 christos INCINTL= 5318 1.1 christos rpathdirs= 5319 1.1 christos ltrpathdirs= 5320 1.1 christos names_already_handled= 5321 1.1 christos names_next_round='intl ' 5322 1.1 christos while test -n "$names_next_round"; do 5323 1.1 christos names_this_round="$names_next_round" 5324 1.1 christos names_next_round= 5325 1.1 christos for name in $names_this_round; do 5326 1.1 christos already_handled= 5327 1.1 christos for n in $names_already_handled; do 5328 1.1 christos if test "$n" = "$name"; then 5329 1.1 christos already_handled=yes 5330 1.1 christos break 5331 1.1 christos fi 5332 1.1 christos done 5333 1.1 christos if test -z "$already_handled"; then 5334 1.1 christos names_already_handled="$names_already_handled $name" 5335 1.1 christos uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 5336 1.1 christos eval value=\"\$HAVE_LIB$uppername\" 5337 1.1 christos if test -n "$value"; then 5338 1.1 christos if test "$value" = yes; then 5339 1.1 christos eval value=\"\$LIB$uppername\" 5340 1.1 christos test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 5341 1.1 christos eval value=\"\$LTLIB$uppername\" 5342 1.1 christos test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 5343 1.1 christos else 5344 1.1 christos : 5345 1.1 christos fi 5346 1.1 christos else 5347 1.1 christos found_dir= 5348 1.1 christos found_la= 5349 1.1 christos found_so= 5350 1.1 christos found_a= 5351 1.1 christos if test $use_additional = yes; then 5352 1.1 christos if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 5353 1.1 christos found_dir="$additional_libdir" 5354 1.1 christos found_so="$additional_libdir/lib$name.$shlibext" 5355 1.1 christos if test -f "$additional_libdir/lib$name.la"; then 5356 1.1 christos found_la="$additional_libdir/lib$name.la" 5357 1.1 christos fi 5358 1.1 christos else 5359 1.1 christos if test -f "$additional_libdir/lib$name.$libext"; then 5360 1.1 christos found_dir="$additional_libdir" 5361 1.1 christos found_a="$additional_libdir/lib$name.$libext" 5362 1.1 christos if test -f "$additional_libdir/lib$name.la"; then 5363 1.1 christos found_la="$additional_libdir/lib$name.la" 5364 1.1 christos fi 5365 1.1 christos fi 5366 1.1 christos fi 5367 1.1 christos fi 5368 1.1 christos if test "X$found_dir" = "X"; then 5369 1.1 christos for x in $LDFLAGS $LTLIBINTL; do 5370 1.1 christos 5371 1.1 christos acl_save_prefix="$prefix" 5372 1.1 christos prefix="$acl_final_prefix" 5373 1.1 christos acl_save_exec_prefix="$exec_prefix" 5374 1.1 christos exec_prefix="$acl_final_exec_prefix" 5375 1.1 christos eval x=\"$x\" 5376 1.1 christos exec_prefix="$acl_save_exec_prefix" 5377 1.1 christos prefix="$acl_save_prefix" 5378 1.1 christos 5379 1.1 christos case "$x" in 5380 1.1 christos -L*) 5381 1.1 christos dir=`echo "X$x" | sed -e 's/^X-L//'` 5382 1.1 christos if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 5383 1.1 christos found_dir="$dir" 5384 1.1 christos found_so="$dir/lib$name.$shlibext" 5385 1.1 christos if test -f "$dir/lib$name.la"; then 5386 1.1 christos found_la="$dir/lib$name.la" 5387 1.1 christos fi 5388 1.1 christos else 5389 1.1 christos if test -f "$dir/lib$name.$libext"; then 5390 1.1 christos found_dir="$dir" 5391 1.1 christos found_a="$dir/lib$name.$libext" 5392 1.1 christos if test -f "$dir/lib$name.la"; then 5393 1.1 christos found_la="$dir/lib$name.la" 5394 1.1 christos fi 5395 1.1 christos fi 5396 1.1 christos fi 5397 1.1 christos ;; 5398 1.1 christos esac 5399 1.1 christos if test "X$found_dir" != "X"; then 5400 1.1 christos break 5401 1.1 christos fi 5402 1.1 christos done 5403 1.1 christos fi 5404 1.1 christos if test "X$found_dir" != "X"; then 5405 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 5406 1.1 christos if test "X$found_so" != "X"; then 5407 1.1 christos if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 5408 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5409 1.1 christos else 5410 1.1 christos haveit= 5411 1.1 christos for x in $ltrpathdirs; do 5412 1.1 christos if test "X$x" = "X$found_dir"; then 5413 1.1 christos haveit=yes 5414 1.1 christos break 5415 1.1 christos fi 5416 1.1 christos done 5417 1.1 christos if test -z "$haveit"; then 5418 1.1 christos ltrpathdirs="$ltrpathdirs $found_dir" 5419 1.1 christos fi 5420 1.1 christos if test "$hardcode_direct" = yes; then 5421 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5422 1.1 christos else 5423 1.1 christos if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 5424 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5425 1.1 christos haveit= 5426 1.1 christos for x in $rpathdirs; do 5427 1.1 christos if test "X$x" = "X$found_dir"; then 5428 1.1 christos haveit=yes 5429 1.1 christos break 5430 1.1 christos fi 5431 1.1 christos done 5432 1.1 christos if test -z "$haveit"; then 5433 1.1 christos rpathdirs="$rpathdirs $found_dir" 5434 1.1 christos fi 5435 1.1 christos else 5436 1.1 christos haveit= 5437 1.1 christos for x in $LDFLAGS $LIBINTL; do 5438 1.1 christos 5439 1.1 christos acl_save_prefix="$prefix" 5440 1.1 christos prefix="$acl_final_prefix" 5441 1.1 christos acl_save_exec_prefix="$exec_prefix" 5442 1.1 christos exec_prefix="$acl_final_exec_prefix" 5443 1.1 christos eval x=\"$x\" 5444 1.1 christos exec_prefix="$acl_save_exec_prefix" 5445 1.1 christos prefix="$acl_save_prefix" 5446 1.1 christos 5447 1.1 christos if test "X$x" = "X-L$found_dir"; then 5448 1.1 christos haveit=yes 5449 1.1 christos break 5450 1.1 christos fi 5451 1.1 christos done 5452 1.1 christos if test -z "$haveit"; then 5453 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 5454 1.1 christos fi 5455 1.1 christos if test "$hardcode_minus_L" != no; then 5456 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 5457 1.1 christos else 5458 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5459 1.1 christos fi 5460 1.1 christos fi 5461 1.1 christos fi 5462 1.1 christos fi 5463 1.1 christos else 5464 1.1 christos if test "X$found_a" != "X"; then 5465 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 5466 1.1 christos else 5467 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 5468 1.1 christos fi 5469 1.1 christos fi 5470 1.1 christos additional_includedir= 5471 1.1 christos case "$found_dir" in 5472 1.1 christos */lib | */lib/) 5473 1.1 christos basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 5474 1.1 christos additional_includedir="$basedir/include" 5475 1.1 christos ;; 5476 1.1 christos esac 5477 1.1 christos if test "X$additional_includedir" != "X"; then 5478 1.1 christos if test "X$additional_includedir" != "X/usr/include"; then 5479 1.1 christos haveit= 5480 1.1 christos if test "X$additional_includedir" = "X/usr/local/include"; then 5481 1.1 christos if test -n "$GCC"; then 5482 1.1 christos case $host_os in 5483 1.1 christos linux*) haveit=yes;; 5484 1.1 christos esac 5485 1.1 christos fi 5486 1.1 christos fi 5487 1.1 christos if test -z "$haveit"; then 5488 1.1 christos for x in $CPPFLAGS $INCINTL; do 5489 1.1 christos 5490 1.1 christos acl_save_prefix="$prefix" 5491 1.1 christos prefix="$acl_final_prefix" 5492 1.1 christos acl_save_exec_prefix="$exec_prefix" 5493 1.1 christos exec_prefix="$acl_final_exec_prefix" 5494 1.1 christos eval x=\"$x\" 5495 1.1 christos exec_prefix="$acl_save_exec_prefix" 5496 1.1 christos prefix="$acl_save_prefix" 5497 1.1 christos 5498 1.1 christos if test "X$x" = "X-I$additional_includedir"; then 5499 1.1 christos haveit=yes 5500 1.1 christos break 5501 1.1 christos fi 5502 1.1 christos done 5503 1.1 christos if test -z "$haveit"; then 5504 1.1 christos if test -d "$additional_includedir"; then 5505 1.1 christos INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 5506 1.1 christos fi 5507 1.1 christos fi 5508 1.1 christos fi 5509 1.1 christos fi 5510 1.1 christos fi 5511 1.1 christos if test -n "$found_la"; then 5512 1.1 christos save_libdir="$libdir" 5513 1.1 christos case "$found_la" in 5514 1.1 christos */* | *\\*) . "$found_la" ;; 5515 1.1 christos *) . "./$found_la" ;; 5516 1.1 christos esac 5517 1.1 christos libdir="$save_libdir" 5518 1.1 christos for dep in $dependency_libs; do 5519 1.1 christos case "$dep" in 5520 1.1 christos -L*) 5521 1.1 christos additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 5522 1.1 christos if test "X$additional_libdir" != "X/usr/lib"; then 5523 1.1 christos haveit= 5524 1.1 christos if test "X$additional_libdir" = "X/usr/local/lib"; then 5525 1.1 christos if test -n "$GCC"; then 5526 1.1 christos case $host_os in 5527 1.1 christos linux*) haveit=yes;; 5528 1.1 christos esac 5529 1.1 christos fi 5530 1.1 christos fi 5531 1.1 christos if test -z "$haveit"; then 5532 1.1 christos haveit= 5533 1.1 christos for x in $LDFLAGS $LIBINTL; do 5534 1.1 christos 5535 1.1 christos acl_save_prefix="$prefix" 5536 1.1 christos prefix="$acl_final_prefix" 5537 1.1 christos acl_save_exec_prefix="$exec_prefix" 5538 1.1 christos exec_prefix="$acl_final_exec_prefix" 5539 1.1 christos eval x=\"$x\" 5540 1.1 christos exec_prefix="$acl_save_exec_prefix" 5541 1.1 christos prefix="$acl_save_prefix" 5542 1.1 christos 5543 1.1 christos if test "X$x" = "X-L$additional_libdir"; then 5544 1.1 christos haveit=yes 5545 1.1 christos break 5546 1.1 christos fi 5547 1.1 christos done 5548 1.1 christos if test -z "$haveit"; then 5549 1.1 christos if test -d "$additional_libdir"; then 5550 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 5551 1.1 christos fi 5552 1.1 christos fi 5553 1.1 christos haveit= 5554 1.1 christos for x in $LDFLAGS $LTLIBINTL; do 5555 1.1 christos 5556 1.1 christos acl_save_prefix="$prefix" 5557 1.1 christos prefix="$acl_final_prefix" 5558 1.1 christos acl_save_exec_prefix="$exec_prefix" 5559 1.1 christos exec_prefix="$acl_final_exec_prefix" 5560 1.1 christos eval x=\"$x\" 5561 1.1 christos exec_prefix="$acl_save_exec_prefix" 5562 1.1 christos prefix="$acl_save_prefix" 5563 1.1 christos 5564 1.1 christos if test "X$x" = "X-L$additional_libdir"; then 5565 1.1 christos haveit=yes 5566 1.1 christos break 5567 1.1 christos fi 5568 1.1 christos done 5569 1.1 christos if test -z "$haveit"; then 5570 1.1 christos if test -d "$additional_libdir"; then 5571 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 5572 1.1 christos fi 5573 1.1 christos fi 5574 1.1 christos fi 5575 1.1 christos fi 5576 1.1 christos ;; 5577 1.1 christos -R*) 5578 1.1 christos dir=`echo "X$dep" | sed -e 's/^X-R//'` 5579 1.1 christos if test "$enable_rpath" != no; then 5580 1.1 christos haveit= 5581 1.1 christos for x in $rpathdirs; do 5582 1.1 christos if test "X$x" = "X$dir"; then 5583 1.1 christos haveit=yes 5584 1.1 christos break 5585 1.1 christos fi 5586 1.1 christos done 5587 1.1 christos if test -z "$haveit"; then 5588 1.1 christos rpathdirs="$rpathdirs $dir" 5589 1.1 christos fi 5590 1.1 christos haveit= 5591 1.1 christos for x in $ltrpathdirs; do 5592 1.1 christos if test "X$x" = "X$dir"; then 5593 1.1 christos haveit=yes 5594 1.1 christos break 5595 1.1 christos fi 5596 1.1 christos done 5597 1.1 christos if test -z "$haveit"; then 5598 1.1 christos ltrpathdirs="$ltrpathdirs $dir" 5599 1.1 christos fi 5600 1.1 christos fi 5601 1.1 christos ;; 5602 1.1 christos -l*) 5603 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 5604 1.1 christos ;; 5605 1.1 christos *.la) 5606 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 5607 1.1 christos ;; 5608 1.1 christos *) 5609 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 5610 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 5611 1.1 christos ;; 5612 1.1 christos esac 5613 1.1 christos done 5614 1.1 christos fi 5615 1.1 christos else 5616 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 5617 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 5618 1.1 christos fi 5619 1.1 christos fi 5620 1.1 christos fi 5621 1.1 christos done 5622 1.1 christos done 5623 1.1 christos if test "X$rpathdirs" != "X"; then 5624 1.1 christos if test -n "$hardcode_libdir_separator"; then 5625 1.1 christos alldirs= 5626 1.1 christos for found_dir in $rpathdirs; do 5627 1.1 christos alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 5628 1.1 christos done 5629 1.1 christos acl_save_libdir="$libdir" 5630 1.1 christos libdir="$alldirs" 5631 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\" 5632 1.1 christos libdir="$acl_save_libdir" 5633 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 5634 1.1 christos else 5635 1.1 christos for found_dir in $rpathdirs; do 5636 1.1 christos acl_save_libdir="$libdir" 5637 1.1 christos libdir="$found_dir" 5638 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\" 5639 1.1 christos libdir="$acl_save_libdir" 5640 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 5641 1.1 christos done 5642 1.1 christos fi 5643 1.1 christos fi 5644 1.1 christos if test "X$ltrpathdirs" != "X"; then 5645 1.1 christos for found_dir in $ltrpathdirs; do 5646 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 5647 1.1 christos done 5648 1.1 christos fi 5649 1.1 christos 5650 1.1 christos echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 5651 1.1 christos echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 5652 1.1 christos if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 5653 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5654 1.1 christos else 5655 1.1 christos gt_save_CPPFLAGS="$CPPFLAGS" 5656 1.1 christos CPPFLAGS="$CPPFLAGS $INCINTL" 5657 1.1 christos gt_save_LIBS="$LIBS" 5658 1.1 christos LIBS="$LIBS $LIBINTL" 5659 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5660 1.1 christos /* confdefs.h. */ 5661 1.1 christos _ACEOF 5662 1.1 christos cat confdefs.h >>conftest.$ac_ext 5663 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5664 1.1 christos /* end confdefs.h. */ 5665 1.1 christos #include <libintl.h> 5666 1.1 christos extern int _nl_msg_cat_cntr; 5667 1.1 christos extern 5668 1.1 christos #ifdef __cplusplus 5669 1.1 christos "C" 5670 1.1 christos #endif 5671 1.1 christos const char *_nl_expand_alias (); 5672 1.1 christos int 5673 1.1 christos main () 5674 1.1 christos { 5675 1.1 christos bindtextdomain ("", ""); 5676 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 5677 1.1 christos ; 5678 1.1 christos return 0; 5679 1.1 christos } 5680 1.1 christos _ACEOF 5681 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5682 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5683 1.1 christos (eval $ac_link) 2>conftest.er1 5684 1.1 christos ac_status=$? 5685 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5686 1.1 christos rm -f conftest.er1 5687 1.1 christos cat conftest.err >&5 5688 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5689 1.1 christos (exit $ac_status); } && 5690 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5691 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5692 1.1 christos (eval $ac_try) 2>&5 5693 1.1 christos ac_status=$? 5694 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5695 1.1 christos (exit $ac_status); }; } && 5696 1.1 christos { ac_try='test -s conftest$ac_exeext' 5697 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5698 1.1 christos (eval $ac_try) 2>&5 5699 1.1 christos ac_status=$? 5700 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5701 1.1 christos (exit $ac_status); }; }; then 5702 1.1 christos gt_cv_func_gnugettext1_libintl=yes 5703 1.1 christos else 5704 1.1 christos echo "$as_me: failed program was:" >&5 5705 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5706 1.1 christos 5707 1.1 christos gt_cv_func_gnugettext1_libintl=no 5708 1.1 christos fi 5709 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5710 1.1 christos conftest$ac_exeext conftest.$ac_ext 5711 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 5712 1.1 christos LIBS="$LIBS $LIBICONV" 5713 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5714 1.1 christos /* confdefs.h. */ 5715 1.1 christos _ACEOF 5716 1.1 christos cat confdefs.h >>conftest.$ac_ext 5717 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5718 1.1 christos /* end confdefs.h. */ 5719 1.1 christos #include <libintl.h> 5720 1.1 christos extern int _nl_msg_cat_cntr; 5721 1.1 christos extern 5722 1.1 christos #ifdef __cplusplus 5723 1.1 christos "C" 5724 1.1 christos #endif 5725 1.1 christos const char *_nl_expand_alias (); 5726 1.1 christos int 5727 1.1 christos main () 5728 1.1 christos { 5729 1.1 christos bindtextdomain ("", ""); 5730 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 5731 1.1 christos ; 5732 1.1 christos return 0; 5733 1.1 christos } 5734 1.1 christos _ACEOF 5735 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5736 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5737 1.1 christos (eval $ac_link) 2>conftest.er1 5738 1.1 christos ac_status=$? 5739 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5740 1.1 christos rm -f conftest.er1 5741 1.1 christos cat conftest.err >&5 5742 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5743 1.1 christos (exit $ac_status); } && 5744 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5745 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5746 1.1 christos (eval $ac_try) 2>&5 5747 1.1 christos ac_status=$? 5748 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5749 1.1 christos (exit $ac_status); }; } && 5750 1.1 christos { ac_try='test -s conftest$ac_exeext' 5751 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5752 1.1 christos (eval $ac_try) 2>&5 5753 1.1 christos ac_status=$? 5754 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5755 1.1 christos (exit $ac_status); }; }; then 5756 1.1 christos LIBINTL="$LIBINTL $LIBICONV" 5757 1.1 christos LTLIBINTL="$LTLIBINTL $LTLIBICONV" 5758 1.1 christos gt_cv_func_gnugettext1_libintl=yes 5759 1.1 christos 5760 1.1 christos else 5761 1.1 christos echo "$as_me: failed program was:" >&5 5762 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5763 1.1 christos 5764 1.1 christos fi 5765 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5766 1.1 christos conftest$ac_exeext conftest.$ac_ext 5767 1.1 christos fi 5768 1.1 christos CPPFLAGS="$gt_save_CPPFLAGS" 5769 1.1 christos LIBS="$gt_save_LIBS" 5770 1.1 christos fi 5771 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 5772 1.1 christos echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 5773 1.1 christos fi 5774 1.1 christos 5775 1.1 christos if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 5776 1.1 christos || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 5777 1.1 christos && test "$PACKAGE" != gettext-runtime \ 5778 1.1 christos && test "$PACKAGE" != gettext-tools; }; then 5779 1.1 christos gt_use_preinstalled_gnugettext=yes 5780 1.1 christos else 5781 1.1 christos LIBINTL= 5782 1.1 christos LTLIBINTL= 5783 1.1 christos INCINTL= 5784 1.1 christos fi 5785 1.1 christos 5786 1.1 christos 5787 1.1 christos 5788 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes" \ 5789 1.1 christos || test "$nls_cv_use_gnu_gettext" = "yes"; then 5790 1.1 christos 5791 1.1 christos cat >>confdefs.h <<\_ACEOF 5792 1.1 christos #define ENABLE_NLS 1 5793 1.1 christos _ACEOF 5794 1.1 christos 5795 1.1 christos else 5796 1.1 christos USE_NLS=no 5797 1.1 christos fi 5798 1.1 christos fi 5799 1.1 christos 5800 1.1 christos echo "$as_me:$LINENO: checking whether to use NLS" >&5 5801 1.1 christos echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 5802 1.1 christos echo "$as_me:$LINENO: result: $USE_NLS" >&5 5803 1.1 christos echo "${ECHO_T}$USE_NLS" >&6 5804 1.1 christos if test "$USE_NLS" = "yes"; then 5805 1.1 christos echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 5806 1.1 christos echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 5807 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes"; then 5808 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 5809 1.1 christos gt_source="external libintl" 5810 1.1 christos else 5811 1.1 christos gt_source="libc" 5812 1.1 christos fi 5813 1.1 christos else 5814 1.1 christos gt_source="included intl directory" 5815 1.1 christos fi 5816 1.1 christos echo "$as_me:$LINENO: result: $gt_source" >&5 5817 1.1 christos echo "${ECHO_T}$gt_source" >&6 5818 1.1 christos fi 5819 1.1 christos 5820 1.1 christos if test "$USE_NLS" = "yes"; then 5821 1.1 christos 5822 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes"; then 5823 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 5824 1.1 christos echo "$as_me:$LINENO: checking how to link with libintl" >&5 5825 1.1 christos echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 5826 1.1 christos echo "$as_me:$LINENO: result: $LIBINTL" >&5 5827 1.1 christos echo "${ECHO_T}$LIBINTL" >&6 5828 1.1 christos 5829 1.1 christos for element in $INCINTL; do 5830 1.1 christos haveit= 5831 1.1 christos for x in $CPPFLAGS; do 5832 1.1 christos 5833 1.1 christos acl_save_prefix="$prefix" 5834 1.1 christos prefix="$acl_final_prefix" 5835 1.1 christos acl_save_exec_prefix="$exec_prefix" 5836 1.1 christos exec_prefix="$acl_final_exec_prefix" 5837 1.1 christos eval x=\"$x\" 5838 1.1 christos exec_prefix="$acl_save_exec_prefix" 5839 1.1 christos prefix="$acl_save_prefix" 5840 1.1 christos 5841 1.1 christos if test "X$x" = "X$element"; then 5842 1.1 christos haveit=yes 5843 1.1 christos break 5844 1.1 christos fi 5845 1.1 christos done 5846 1.1 christos if test -z "$haveit"; then 5847 1.1 christos CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 5848 1.1 christos fi 5849 1.1 christos done 5850 1.1 christos 5851 1.1 christos fi 5852 1.1 christos 5853 1.1 christos 5854 1.1 christos cat >>confdefs.h <<\_ACEOF 5855 1.1 christos #define HAVE_GETTEXT 1 5856 1.1 christos _ACEOF 5857 1.1 christos 5858 1.1 christos 5859 1.1 christos cat >>confdefs.h <<\_ACEOF 5860 1.1 christos #define HAVE_DCGETTEXT 1 5861 1.1 christos _ACEOF 5862 1.1 christos 5863 1.1 christos fi 5864 1.1 christos 5865 1.1 christos POSUB=po 5866 1.1 christos fi 5867 1.1 christos 5868 1.1 christos 5869 1.1 christos 5870 1.1 christos INTLLIBS="$LIBINTL" 5871 1.1 christos 5872 1.1 christos 5873 1.1 christos 5874 1.1 christos 5875 1.1 christos 5876 1.1 christos 5877 1.1 christos 5878 1.1 christos # This test must come as early as possible after the compiler configuration 5879 1.1 christos # tests, because the choice of the file model can (in principle) affect 5880 1.1 christos # whether functions and headers are available, whether they work, etc. 5881 1.1 christos # Check whether --enable-largefile or --disable-largefile was given. 5882 1.1 christos if test "${enable_largefile+set}" = set; then 5883 1.1 christos enableval="$enable_largefile" 5884 1.1 christos 5885 1.1 christos fi; 5886 1.1 christos if test "$enable_largefile" != no; then 5887 1.1 christos 5888 1.1 christos echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 5889 1.1 christos echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 5890 1.1 christos if test "${ac_cv_sys_largefile_CC+set}" = set; then 5891 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5892 1.1 christos else 5893 1.1 christos ac_cv_sys_largefile_CC=no 5894 1.1 christos if test "$GCC" != yes; then 5895 1.1 christos ac_save_CC=$CC 5896 1.1 christos while :; do 5897 1.1 christos # IRIX 6.2 and later do not support large files by default, 5898 1.1 christos # so use the C compiler's -n32 option if that helps. 5899 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5900 1.1 christos /* confdefs.h. */ 5901 1.1 christos _ACEOF 5902 1.1 christos cat confdefs.h >>conftest.$ac_ext 5903 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5904 1.1 christos /* end confdefs.h. */ 5905 1.1 christos #include <sys/types.h> 5906 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly. 5907 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807, 5908 1.1 christos since some C++ compilers masquerading as C compilers 5909 1.1 christos incorrectly reject 9223372036854775807. */ 5910 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5911 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5912 1.1 christos && LARGE_OFF_T % 2147483647 == 1) 5913 1.1 christos ? 1 : -1]; 5914 1.1 christos int 5915 1.1 christos main () 5916 1.1 christos { 5917 1.1 christos 5918 1.1 christos ; 5919 1.1 christos return 0; 5920 1.1 christos } 5921 1.1 christos _ACEOF 5922 1.1 christos rm -f conftest.$ac_objext 5923 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5924 1.1 christos (eval $ac_compile) 2>conftest.er1 5925 1.1 christos ac_status=$? 5926 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5927 1.1 christos rm -f conftest.er1 5928 1.1 christos cat conftest.err >&5 5929 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5930 1.1 christos (exit $ac_status); } && 5931 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5932 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5933 1.1 christos (eval $ac_try) 2>&5 5934 1.1 christos ac_status=$? 5935 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5936 1.1 christos (exit $ac_status); }; } && 5937 1.1 christos { ac_try='test -s conftest.$ac_objext' 5938 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5939 1.1 christos (eval $ac_try) 2>&5 5940 1.1 christos ac_status=$? 5941 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5942 1.1 christos (exit $ac_status); }; }; then 5943 1.1 christos break 5944 1.1 christos else 5945 1.1 christos echo "$as_me: failed program was:" >&5 5946 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5947 1.1 christos 5948 1.1 christos fi 5949 1.1 christos rm -f conftest.err conftest.$ac_objext 5950 1.1 christos CC="$CC -n32" 5951 1.1 christos rm -f conftest.$ac_objext 5952 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5953 1.1 christos (eval $ac_compile) 2>conftest.er1 5954 1.1 christos ac_status=$? 5955 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5956 1.1 christos rm -f conftest.er1 5957 1.1 christos cat conftest.err >&5 5958 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5959 1.1 christos (exit $ac_status); } && 5960 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 5961 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5962 1.1 christos (eval $ac_try) 2>&5 5963 1.1 christos ac_status=$? 5964 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5965 1.1 christos (exit $ac_status); }; } && 5966 1.1 christos { ac_try='test -s conftest.$ac_objext' 5967 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5968 1.1 christos (eval $ac_try) 2>&5 5969 1.1 christos ac_status=$? 5970 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5971 1.1 christos (exit $ac_status); }; }; then 5972 1.1 christos ac_cv_sys_largefile_CC=' -n32'; break 5973 1.1 christos else 5974 1.1 christos echo "$as_me: failed program was:" >&5 5975 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5976 1.1 christos 5977 1.1 christos fi 5978 1.1 christos rm -f conftest.err conftest.$ac_objext 5979 1.1 christos break 5980 1.1 christos done 5981 1.1 christos CC=$ac_save_CC 5982 1.1 christos rm -f conftest.$ac_ext 5983 1.1 christos fi 5984 1.1 christos fi 5985 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 5986 1.1 christos echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 5987 1.1 christos if test "$ac_cv_sys_largefile_CC" != no; then 5988 1.1 christos CC=$CC$ac_cv_sys_largefile_CC 5989 1.1 christos fi 5990 1.1 christos 5991 1.1 christos echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5992 1.1 christos echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 5993 1.1 christos if test "${ac_cv_sys_file_offset_bits+set}" = set; then 5994 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5995 1.1 christos else 5996 1.1 christos while :; do 5997 1.1 christos ac_cv_sys_file_offset_bits=no 5998 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5999 1.1 christos /* confdefs.h. */ 6000 1.1 christos _ACEOF 6001 1.1 christos cat confdefs.h >>conftest.$ac_ext 6002 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6003 1.1 christos /* end confdefs.h. */ 6004 1.1 christos #include <sys/types.h> 6005 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly. 6006 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807, 6007 1.1 christos since some C++ compilers masquerading as C compilers 6008 1.1 christos incorrectly reject 9223372036854775807. */ 6009 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6010 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6011 1.1 christos && LARGE_OFF_T % 2147483647 == 1) 6012 1.1 christos ? 1 : -1]; 6013 1.1 christos int 6014 1.1 christos main () 6015 1.1 christos { 6016 1.1 christos 6017 1.1 christos ; 6018 1.1 christos return 0; 6019 1.1 christos } 6020 1.1 christos _ACEOF 6021 1.1 christos rm -f conftest.$ac_objext 6022 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6023 1.1 christos (eval $ac_compile) 2>conftest.er1 6024 1.1 christos ac_status=$? 6025 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6026 1.1 christos rm -f conftest.er1 6027 1.1 christos cat conftest.err >&5 6028 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6029 1.1 christos (exit $ac_status); } && 6030 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6031 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6032 1.1 christos (eval $ac_try) 2>&5 6033 1.1 christos ac_status=$? 6034 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6035 1.1 christos (exit $ac_status); }; } && 6036 1.1 christos { ac_try='test -s conftest.$ac_objext' 6037 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6038 1.1 christos (eval $ac_try) 2>&5 6039 1.1 christos ac_status=$? 6040 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6041 1.1 christos (exit $ac_status); }; }; then 6042 1.1 christos break 6043 1.1 christos else 6044 1.1 christos echo "$as_me: failed program was:" >&5 6045 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6046 1.1 christos 6047 1.1 christos fi 6048 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6049 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6050 1.1 christos /* confdefs.h. */ 6051 1.1 christos _ACEOF 6052 1.1 christos cat confdefs.h >>conftest.$ac_ext 6053 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6054 1.1 christos /* end confdefs.h. */ 6055 1.1 christos #define _FILE_OFFSET_BITS 64 6056 1.1 christos #include <sys/types.h> 6057 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly. 6058 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807, 6059 1.1 christos since some C++ compilers masquerading as C compilers 6060 1.1 christos incorrectly reject 9223372036854775807. */ 6061 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6062 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6063 1.1 christos && LARGE_OFF_T % 2147483647 == 1) 6064 1.1 christos ? 1 : -1]; 6065 1.1 christos int 6066 1.1 christos main () 6067 1.1 christos { 6068 1.1 christos 6069 1.1 christos ; 6070 1.1 christos return 0; 6071 1.1 christos } 6072 1.1 christos _ACEOF 6073 1.1 christos rm -f conftest.$ac_objext 6074 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6075 1.1 christos (eval $ac_compile) 2>conftest.er1 6076 1.1 christos ac_status=$? 6077 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6078 1.1 christos rm -f conftest.er1 6079 1.1 christos cat conftest.err >&5 6080 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6081 1.1 christos (exit $ac_status); } && 6082 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6083 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6084 1.1 christos (eval $ac_try) 2>&5 6085 1.1 christos ac_status=$? 6086 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6087 1.1 christos (exit $ac_status); }; } && 6088 1.1 christos { ac_try='test -s conftest.$ac_objext' 6089 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6090 1.1 christos (eval $ac_try) 2>&5 6091 1.1 christos ac_status=$? 6092 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6093 1.1 christos (exit $ac_status); }; }; then 6094 1.1 christos ac_cv_sys_file_offset_bits=64; break 6095 1.1 christos else 6096 1.1 christos echo "$as_me: failed program was:" >&5 6097 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6098 1.1 christos 6099 1.1 christos fi 6100 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6101 1.1 christos break 6102 1.1 christos done 6103 1.1 christos fi 6104 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 6105 1.1 christos echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 6106 1.1 christos if test "$ac_cv_sys_file_offset_bits" != no; then 6107 1.1 christos 6108 1.1 christos cat >>confdefs.h <<_ACEOF 6109 1.1 christos #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 6110 1.1 christos _ACEOF 6111 1.1 christos 6112 1.1 christos fi 6113 1.1 christos rm -f conftest* 6114 1.1 christos echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 6115 1.1 christos echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 6116 1.1 christos if test "${ac_cv_sys_large_files+set}" = set; then 6117 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6118 1.1 christos else 6119 1.1 christos while :; do 6120 1.1 christos ac_cv_sys_large_files=no 6121 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6122 1.1 christos /* confdefs.h. */ 6123 1.1 christos _ACEOF 6124 1.1 christos cat confdefs.h >>conftest.$ac_ext 6125 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6126 1.1 christos /* end confdefs.h. */ 6127 1.1 christos #include <sys/types.h> 6128 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly. 6129 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807, 6130 1.1 christos since some C++ compilers masquerading as C compilers 6131 1.1 christos incorrectly reject 9223372036854775807. */ 6132 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6133 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6134 1.1 christos && LARGE_OFF_T % 2147483647 == 1) 6135 1.1 christos ? 1 : -1]; 6136 1.1 christos int 6137 1.1 christos main () 6138 1.1 christos { 6139 1.1 christos 6140 1.1 christos ; 6141 1.1 christos return 0; 6142 1.1 christos } 6143 1.1 christos _ACEOF 6144 1.1 christos rm -f conftest.$ac_objext 6145 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6146 1.1 christos (eval $ac_compile) 2>conftest.er1 6147 1.1 christos ac_status=$? 6148 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6149 1.1 christos rm -f conftest.er1 6150 1.1 christos cat conftest.err >&5 6151 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6152 1.1 christos (exit $ac_status); } && 6153 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6154 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6155 1.1 christos (eval $ac_try) 2>&5 6156 1.1 christos ac_status=$? 6157 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6158 1.1 christos (exit $ac_status); }; } && 6159 1.1 christos { ac_try='test -s conftest.$ac_objext' 6160 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6161 1.1 christos (eval $ac_try) 2>&5 6162 1.1 christos ac_status=$? 6163 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6164 1.1 christos (exit $ac_status); }; }; then 6165 1.1 christos break 6166 1.1 christos else 6167 1.1 christos echo "$as_me: failed program was:" >&5 6168 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6169 1.1 christos 6170 1.1 christos fi 6171 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6172 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6173 1.1 christos /* confdefs.h. */ 6174 1.1 christos _ACEOF 6175 1.1 christos cat confdefs.h >>conftest.$ac_ext 6176 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6177 1.1 christos /* end confdefs.h. */ 6178 1.1 christos #define _LARGE_FILES 1 6179 1.1 christos #include <sys/types.h> 6180 1.1 christos /* Check that off_t can represent 2**63 - 1 correctly. 6181 1.1 christos We can't simply define LARGE_OFF_T to be 9223372036854775807, 6182 1.1 christos since some C++ compilers masquerading as C compilers 6183 1.1 christos incorrectly reject 9223372036854775807. */ 6184 1.1 christos #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 6185 1.1 christos int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 6186 1.1 christos && LARGE_OFF_T % 2147483647 == 1) 6187 1.1 christos ? 1 : -1]; 6188 1.1 christos int 6189 1.1 christos main () 6190 1.1 christos { 6191 1.1 christos 6192 1.1 christos ; 6193 1.1 christos return 0; 6194 1.1 christos } 6195 1.1 christos _ACEOF 6196 1.1 christos rm -f conftest.$ac_objext 6197 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6198 1.1 christos (eval $ac_compile) 2>conftest.er1 6199 1.1 christos ac_status=$? 6200 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6201 1.1 christos rm -f conftest.er1 6202 1.1 christos cat conftest.err >&5 6203 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6204 1.1 christos (exit $ac_status); } && 6205 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6206 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6207 1.1 christos (eval $ac_try) 2>&5 6208 1.1 christos ac_status=$? 6209 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6210 1.1 christos (exit $ac_status); }; } && 6211 1.1 christos { ac_try='test -s conftest.$ac_objext' 6212 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6213 1.1 christos (eval $ac_try) 2>&5 6214 1.1 christos ac_status=$? 6215 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6216 1.1 christos (exit $ac_status); }; }; then 6217 1.1 christos ac_cv_sys_large_files=1; break 6218 1.1 christos else 6219 1.1 christos echo "$as_me: failed program was:" >&5 6220 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6221 1.1 christos 6222 1.1 christos fi 6223 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6224 1.1 christos break 6225 1.1 christos done 6226 1.1 christos fi 6227 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 6228 1.1 christos echo "${ECHO_T}$ac_cv_sys_large_files" >&6 6229 1.1 christos if test "$ac_cv_sys_large_files" != no; then 6230 1.1 christos 6231 1.1 christos cat >>confdefs.h <<_ACEOF 6232 1.1 christos #define _LARGE_FILES $ac_cv_sys_large_files 6233 1.1 christos _ACEOF 6234 1.1 christos 6235 1.1 christos fi 6236 1.1 christos rm -f conftest* 6237 1.1 christos fi 6238 1.1 christos 6239 1.1 christos 6240 1.1 christos # Checks for libraries. 6241 1.1 christos echo "$as_me:$LINENO: checking for library containing getpwnam" >&5 6242 1.1 christos echo $ECHO_N "checking for library containing getpwnam... $ECHO_C" >&6 6243 1.1 christos if test "${ac_cv_search_getpwnam+set}" = set; then 6244 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6245 1.1 christos else 6246 1.1 christos ac_func_search_save_LIBS=$LIBS 6247 1.1 christos ac_cv_search_getpwnam=no 6248 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6249 1.1 christos /* confdefs.h. */ 6250 1.1 christos _ACEOF 6251 1.1 christos cat confdefs.h >>conftest.$ac_ext 6252 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6253 1.1 christos /* end confdefs.h. */ 6254 1.1 christos 6255 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6256 1.1 christos #ifdef __cplusplus 6257 1.1 christos extern "C" 6258 1.1 christos #endif 6259 1.1 christos /* We use char because int might match the return type of a gcc2 6260 1.1 christos builtin and then its argument prototype would still apply. */ 6261 1.1 christos char getpwnam (); 6262 1.1 christos int 6263 1.1 christos main () 6264 1.1 christos { 6265 1.1 christos getpwnam (); 6266 1.1 christos ; 6267 1.1 christos return 0; 6268 1.1 christos } 6269 1.1 christos _ACEOF 6270 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6271 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6272 1.1 christos (eval $ac_link) 2>conftest.er1 6273 1.1 christos ac_status=$? 6274 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6275 1.1 christos rm -f conftest.er1 6276 1.1 christos cat conftest.err >&5 6277 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6278 1.1 christos (exit $ac_status); } && 6279 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6280 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6281 1.1 christos (eval $ac_try) 2>&5 6282 1.1 christos ac_status=$? 6283 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6284 1.1 christos (exit $ac_status); }; } && 6285 1.1 christos { ac_try='test -s conftest$ac_exeext' 6286 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6287 1.1 christos (eval $ac_try) 2>&5 6288 1.1 christos ac_status=$? 6289 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6290 1.1 christos (exit $ac_status); }; }; then 6291 1.1 christos ac_cv_search_getpwnam="none required" 6292 1.1 christos else 6293 1.1 christos echo "$as_me: failed program was:" >&5 6294 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6295 1.1 christos 6296 1.1 christos fi 6297 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6298 1.1 christos conftest$ac_exeext conftest.$ac_ext 6299 1.1 christos if test "$ac_cv_search_getpwnam" = no; then 6300 1.1 christos for ac_lib in sun; do 6301 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6302 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6303 1.1 christos /* confdefs.h. */ 6304 1.1 christos _ACEOF 6305 1.1 christos cat confdefs.h >>conftest.$ac_ext 6306 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6307 1.1 christos /* end confdefs.h. */ 6308 1.1 christos 6309 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6310 1.1 christos #ifdef __cplusplus 6311 1.1 christos extern "C" 6312 1.1 christos #endif 6313 1.1 christos /* We use char because int might match the return type of a gcc2 6314 1.1 christos builtin and then its argument prototype would still apply. */ 6315 1.1 christos char getpwnam (); 6316 1.1 christos int 6317 1.1 christos main () 6318 1.1 christos { 6319 1.1 christos getpwnam (); 6320 1.1 christos ; 6321 1.1 christos return 0; 6322 1.1 christos } 6323 1.1 christos _ACEOF 6324 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6325 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6326 1.1 christos (eval $ac_link) 2>conftest.er1 6327 1.1 christos ac_status=$? 6328 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6329 1.1 christos rm -f conftest.er1 6330 1.1 christos cat conftest.err >&5 6331 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6332 1.1 christos (exit $ac_status); } && 6333 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6334 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6335 1.1 christos (eval $ac_try) 2>&5 6336 1.1 christos ac_status=$? 6337 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6338 1.1 christos (exit $ac_status); }; } && 6339 1.1 christos { ac_try='test -s conftest$ac_exeext' 6340 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6341 1.1 christos (eval $ac_try) 2>&5 6342 1.1 christos ac_status=$? 6343 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6344 1.1 christos (exit $ac_status); }; }; then 6345 1.1 christos ac_cv_search_getpwnam="-l$ac_lib" 6346 1.1 christos break 6347 1.1 christos else 6348 1.1 christos echo "$as_me: failed program was:" >&5 6349 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6350 1.1 christos 6351 1.1 christos fi 6352 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6353 1.1 christos conftest$ac_exeext conftest.$ac_ext 6354 1.1 christos done 6355 1.1 christos fi 6356 1.1 christos LIBS=$ac_func_search_save_LIBS 6357 1.1 christos fi 6358 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_search_getpwnam" >&5 6359 1.1 christos echo "${ECHO_T}$ac_cv_search_getpwnam" >&6 6360 1.1 christos if test "$ac_cv_search_getpwnam" != no; then 6361 1.1 christos test "$ac_cv_search_getpwnam" = "none required" || LIBS="$ac_cv_search_getpwnam $LIBS" 6362 1.1 christos 6363 1.1 christos fi 6364 1.1 christos 6365 1.1 christos 6366 1.1 christos # Checks for header files. 6367 1.1 christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5 6368 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 6369 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then 6370 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6371 1.1 christos else 6372 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6373 1.1 christos /* confdefs.h. */ 6374 1.1 christos _ACEOF 6375 1.1 christos cat confdefs.h >>conftest.$ac_ext 6376 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6377 1.1 christos /* end confdefs.h. */ 6378 1.1 christos #include <stdlib.h> 6379 1.1 christos #include <stdarg.h> 6380 1.1 christos #include <string.h> 6381 1.1 christos #include <float.h> 6382 1.1 christos 6383 1.1 christos int 6384 1.1 christos main () 6385 1.1 christos { 6386 1.1 christos 6387 1.1 christos ; 6388 1.1 christos return 0; 6389 1.1 christos } 6390 1.1 christos _ACEOF 6391 1.1 christos rm -f conftest.$ac_objext 6392 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6393 1.1 christos (eval $ac_compile) 2>conftest.er1 6394 1.1 christos ac_status=$? 6395 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6396 1.1 christos rm -f conftest.er1 6397 1.1 christos cat conftest.err >&5 6398 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6399 1.1 christos (exit $ac_status); } && 6400 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6401 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6402 1.1 christos (eval $ac_try) 2>&5 6403 1.1 christos ac_status=$? 6404 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6405 1.1 christos (exit $ac_status); }; } && 6406 1.1 christos { ac_try='test -s conftest.$ac_objext' 6407 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6408 1.1 christos (eval $ac_try) 2>&5 6409 1.1 christos ac_status=$? 6410 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6411 1.1 christos (exit $ac_status); }; }; then 6412 1.1 christos ac_cv_header_stdc=yes 6413 1.1 christos else 6414 1.1 christos echo "$as_me: failed program was:" >&5 6415 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6416 1.1 christos 6417 1.1 christos ac_cv_header_stdc=no 6418 1.1 christos fi 6419 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6420 1.1 christos 6421 1.1 christos if test $ac_cv_header_stdc = yes; then 6422 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6423 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6424 1.1 christos /* confdefs.h. */ 6425 1.1 christos _ACEOF 6426 1.1 christos cat confdefs.h >>conftest.$ac_ext 6427 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6428 1.1 christos /* end confdefs.h. */ 6429 1.1 christos #include <string.h> 6430 1.1 christos 6431 1.1 christos _ACEOF 6432 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6433 1.1 christos $EGREP "memchr" >/dev/null 2>&1; then 6434 1.1 christos : 6435 1.1 christos else 6436 1.1 christos ac_cv_header_stdc=no 6437 1.1 christos fi 6438 1.1 christos rm -f conftest* 6439 1.1 christos 6440 1.1 christos fi 6441 1.1 christos 6442 1.1 christos if test $ac_cv_header_stdc = yes; then 6443 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6444 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6445 1.1 christos /* confdefs.h. */ 6446 1.1 christos _ACEOF 6447 1.1 christos cat confdefs.h >>conftest.$ac_ext 6448 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6449 1.1 christos /* end confdefs.h. */ 6450 1.1 christos #include <stdlib.h> 6451 1.1 christos 6452 1.1 christos _ACEOF 6453 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6454 1.1 christos $EGREP "free" >/dev/null 2>&1; then 6455 1.1 christos : 6456 1.1 christos else 6457 1.1 christos ac_cv_header_stdc=no 6458 1.1 christos fi 6459 1.1 christos rm -f conftest* 6460 1.1 christos 6461 1.1 christos fi 6462 1.1 christos 6463 1.1 christos if test $ac_cv_header_stdc = yes; then 6464 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6465 1.1 christos if test "$cross_compiling" = yes; then 6466 1.1 christos : 6467 1.1 christos else 6468 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6469 1.1 christos /* confdefs.h. */ 6470 1.1 christos _ACEOF 6471 1.1 christos cat confdefs.h >>conftest.$ac_ext 6472 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6473 1.1 christos /* end confdefs.h. */ 6474 1.1 christos #include <ctype.h> 6475 1.1 christos #if ((' ' & 0x0FF) == 0x020) 6476 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6477 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6478 1.1 christos #else 6479 1.1 christos # define ISLOWER(c) \ 6480 1.1 christos (('a' <= (c) && (c) <= 'i') \ 6481 1.1 christos || ('j' <= (c) && (c) <= 'r') \ 6482 1.1 christos || ('s' <= (c) && (c) <= 'z')) 6483 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6484 1.1 christos #endif 6485 1.1 christos 6486 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6487 1.1 christos int 6488 1.1 christos main () 6489 1.1 christos { 6490 1.1 christos int i; 6491 1.1 christos for (i = 0; i < 256; i++) 6492 1.1 christos if (XOR (islower (i), ISLOWER (i)) 6493 1.1 christos || toupper (i) != TOUPPER (i)) 6494 1.1 christos exit(2); 6495 1.1 christos exit (0); 6496 1.1 christos } 6497 1.1 christos _ACEOF 6498 1.1 christos rm -f conftest$ac_exeext 6499 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6500 1.1 christos (eval $ac_link) 2>&5 6501 1.1 christos ac_status=$? 6502 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6503 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6504 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6505 1.1 christos (eval $ac_try) 2>&5 6506 1.1 christos ac_status=$? 6507 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6508 1.1 christos (exit $ac_status); }; }; then 6509 1.1 christos : 6510 1.1 christos else 6511 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 6512 1.1 christos echo "$as_me: failed program was:" >&5 6513 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6514 1.1 christos 6515 1.1 christos ( exit $ac_status ) 6516 1.1 christos ac_cv_header_stdc=no 6517 1.1 christos fi 6518 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6519 1.1 christos fi 6520 1.1 christos fi 6521 1.1 christos fi 6522 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 6523 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6 6524 1.1 christos if test $ac_cv_header_stdc = yes; then 6525 1.1 christos 6526 1.1 christos cat >>confdefs.h <<\_ACEOF 6527 1.1 christos #define STDC_HEADERS 1 6528 1.1 christos _ACEOF 6529 1.1 christos 6530 1.1 christos fi 6531 1.1 christos 6532 1.1 christos 6533 1.1 christos 6534 1.1 christos 6535 1.1 christos 6536 1.1 christos 6537 1.1 christos ac_header_dirent=no 6538 1.1 christos for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 6539 1.1 christos as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 6540 1.1 christos echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 6541 1.1 christos echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 6542 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6543 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6544 1.1 christos else 6545 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6546 1.1 christos /* confdefs.h. */ 6547 1.1 christos _ACEOF 6548 1.1 christos cat confdefs.h >>conftest.$ac_ext 6549 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6550 1.1 christos /* end confdefs.h. */ 6551 1.1 christos #include <sys/types.h> 6552 1.1 christos #include <$ac_hdr> 6553 1.1 christos 6554 1.1 christos int 6555 1.1 christos main () 6556 1.1 christos { 6557 1.1 christos if ((DIR *) 0) 6558 1.1 christos return 0; 6559 1.1 christos ; 6560 1.1 christos return 0; 6561 1.1 christos } 6562 1.1 christos _ACEOF 6563 1.1 christos rm -f conftest.$ac_objext 6564 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6565 1.1 christos (eval $ac_compile) 2>conftest.er1 6566 1.1 christos ac_status=$? 6567 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6568 1.1 christos rm -f conftest.er1 6569 1.1 christos cat conftest.err >&5 6570 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6571 1.1 christos (exit $ac_status); } && 6572 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6573 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6574 1.1 christos (eval $ac_try) 2>&5 6575 1.1 christos ac_status=$? 6576 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6577 1.1 christos (exit $ac_status); }; } && 6578 1.1 christos { ac_try='test -s conftest.$ac_objext' 6579 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6580 1.1 christos (eval $ac_try) 2>&5 6581 1.1 christos ac_status=$? 6582 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6583 1.1 christos (exit $ac_status); }; }; then 6584 1.1 christos eval "$as_ac_Header=yes" 6585 1.1 christos else 6586 1.1 christos echo "$as_me: failed program was:" >&5 6587 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6588 1.1 christos 6589 1.1 christos eval "$as_ac_Header=no" 6590 1.1 christos fi 6591 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6592 1.1 christos fi 6593 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6594 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6595 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 6596 1.1 christos cat >>confdefs.h <<_ACEOF 6597 1.1 christos #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 6598 1.1 christos _ACEOF 6599 1.1 christos 6600 1.1 christos ac_header_dirent=$ac_hdr; break 6601 1.1 christos fi 6602 1.1 christos 6603 1.1 christos done 6604 1.1 christos # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 6605 1.1 christos if test $ac_header_dirent = dirent.h; then 6606 1.1 christos echo "$as_me:$LINENO: checking for library containing opendir" >&5 6607 1.1 christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 6608 1.1 christos if test "${ac_cv_search_opendir+set}" = set; then 6609 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6610 1.1 christos else 6611 1.1 christos ac_func_search_save_LIBS=$LIBS 6612 1.1 christos ac_cv_search_opendir=no 6613 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6614 1.1 christos /* confdefs.h. */ 6615 1.1 christos _ACEOF 6616 1.1 christos cat confdefs.h >>conftest.$ac_ext 6617 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6618 1.1 christos /* end confdefs.h. */ 6619 1.1 christos 6620 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6621 1.1 christos #ifdef __cplusplus 6622 1.1 christos extern "C" 6623 1.1 christos #endif 6624 1.1 christos /* We use char because int might match the return type of a gcc2 6625 1.1 christos builtin and then its argument prototype would still apply. */ 6626 1.1 christos char opendir (); 6627 1.1 christos int 6628 1.1 christos main () 6629 1.1 christos { 6630 1.1 christos opendir (); 6631 1.1 christos ; 6632 1.1 christos return 0; 6633 1.1 christos } 6634 1.1 christos _ACEOF 6635 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6636 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6637 1.1 christos (eval $ac_link) 2>conftest.er1 6638 1.1 christos ac_status=$? 6639 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6640 1.1 christos rm -f conftest.er1 6641 1.1 christos cat conftest.err >&5 6642 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6643 1.1 christos (exit $ac_status); } && 6644 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6645 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6646 1.1 christos (eval $ac_try) 2>&5 6647 1.1 christos ac_status=$? 6648 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6649 1.1 christos (exit $ac_status); }; } && 6650 1.1 christos { ac_try='test -s conftest$ac_exeext' 6651 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6652 1.1 christos (eval $ac_try) 2>&5 6653 1.1 christos ac_status=$? 6654 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6655 1.1 christos (exit $ac_status); }; }; then 6656 1.1 christos ac_cv_search_opendir="none required" 6657 1.1 christos else 6658 1.1 christos echo "$as_me: failed program was:" >&5 6659 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6660 1.1 christos 6661 1.1 christos fi 6662 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6663 1.1 christos conftest$ac_exeext conftest.$ac_ext 6664 1.1 christos if test "$ac_cv_search_opendir" = no; then 6665 1.1 christos for ac_lib in dir; do 6666 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6667 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6668 1.1 christos /* confdefs.h. */ 6669 1.1 christos _ACEOF 6670 1.1 christos cat confdefs.h >>conftest.$ac_ext 6671 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6672 1.1 christos /* end confdefs.h. */ 6673 1.1 christos 6674 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6675 1.1 christos #ifdef __cplusplus 6676 1.1 christos extern "C" 6677 1.1 christos #endif 6678 1.1 christos /* We use char because int might match the return type of a gcc2 6679 1.1 christos builtin and then its argument prototype would still apply. */ 6680 1.1 christos char opendir (); 6681 1.1 christos int 6682 1.1 christos main () 6683 1.1 christos { 6684 1.1 christos opendir (); 6685 1.1 christos ; 6686 1.1 christos return 0; 6687 1.1 christos } 6688 1.1 christos _ACEOF 6689 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6690 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6691 1.1 christos (eval $ac_link) 2>conftest.er1 6692 1.1 christos ac_status=$? 6693 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6694 1.1 christos rm -f conftest.er1 6695 1.1 christos cat conftest.err >&5 6696 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6697 1.1 christos (exit $ac_status); } && 6698 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6699 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6700 1.1 christos (eval $ac_try) 2>&5 6701 1.1 christos ac_status=$? 6702 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6703 1.1 christos (exit $ac_status); }; } && 6704 1.1 christos { ac_try='test -s conftest$ac_exeext' 6705 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6706 1.1 christos (eval $ac_try) 2>&5 6707 1.1 christos ac_status=$? 6708 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6709 1.1 christos (exit $ac_status); }; }; then 6710 1.1 christos ac_cv_search_opendir="-l$ac_lib" 6711 1.1 christos break 6712 1.1 christos else 6713 1.1 christos echo "$as_me: failed program was:" >&5 6714 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6715 1.1 christos 6716 1.1 christos fi 6717 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6718 1.1 christos conftest$ac_exeext conftest.$ac_ext 6719 1.1 christos done 6720 1.1 christos fi 6721 1.1 christos LIBS=$ac_func_search_save_LIBS 6722 1.1 christos fi 6723 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 6724 1.1 christos echo "${ECHO_T}$ac_cv_search_opendir" >&6 6725 1.1 christos if test "$ac_cv_search_opendir" != no; then 6726 1.1 christos test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 6727 1.1 christos 6728 1.1 christos fi 6729 1.1 christos 6730 1.1 christos else 6731 1.1 christos echo "$as_me:$LINENO: checking for library containing opendir" >&5 6732 1.1 christos echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 6733 1.1 christos if test "${ac_cv_search_opendir+set}" = set; then 6734 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6735 1.1 christos else 6736 1.1 christos ac_func_search_save_LIBS=$LIBS 6737 1.1 christos ac_cv_search_opendir=no 6738 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6739 1.1 christos /* confdefs.h. */ 6740 1.1 christos _ACEOF 6741 1.1 christos cat confdefs.h >>conftest.$ac_ext 6742 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6743 1.1 christos /* end confdefs.h. */ 6744 1.1 christos 6745 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6746 1.1 christos #ifdef __cplusplus 6747 1.1 christos extern "C" 6748 1.1 christos #endif 6749 1.1 christos /* We use char because int might match the return type of a gcc2 6750 1.1 christos builtin and then its argument prototype would still apply. */ 6751 1.1 christos char opendir (); 6752 1.1 christos int 6753 1.1 christos main () 6754 1.1 christos { 6755 1.1 christos opendir (); 6756 1.1 christos ; 6757 1.1 christos return 0; 6758 1.1 christos } 6759 1.1 christos _ACEOF 6760 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6761 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6762 1.1 christos (eval $ac_link) 2>conftest.er1 6763 1.1 christos ac_status=$? 6764 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6765 1.1 christos rm -f conftest.er1 6766 1.1 christos cat conftest.err >&5 6767 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6768 1.1 christos (exit $ac_status); } && 6769 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6770 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6771 1.1 christos (eval $ac_try) 2>&5 6772 1.1 christos ac_status=$? 6773 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6774 1.1 christos (exit $ac_status); }; } && 6775 1.1 christos { ac_try='test -s conftest$ac_exeext' 6776 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6777 1.1 christos (eval $ac_try) 2>&5 6778 1.1 christos ac_status=$? 6779 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6780 1.1 christos (exit $ac_status); }; }; then 6781 1.1 christos ac_cv_search_opendir="none required" 6782 1.1 christos else 6783 1.1 christos echo "$as_me: failed program was:" >&5 6784 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6785 1.1 christos 6786 1.1 christos fi 6787 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6788 1.1 christos conftest$ac_exeext conftest.$ac_ext 6789 1.1 christos if test "$ac_cv_search_opendir" = no; then 6790 1.1 christos for ac_lib in x; do 6791 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6792 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6793 1.1 christos /* confdefs.h. */ 6794 1.1 christos _ACEOF 6795 1.1 christos cat confdefs.h >>conftest.$ac_ext 6796 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6797 1.1 christos /* end confdefs.h. */ 6798 1.1 christos 6799 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6800 1.1 christos #ifdef __cplusplus 6801 1.1 christos extern "C" 6802 1.1 christos #endif 6803 1.1 christos /* We use char because int might match the return type of a gcc2 6804 1.1 christos builtin and then its argument prototype would still apply. */ 6805 1.1 christos char opendir (); 6806 1.1 christos int 6807 1.1 christos main () 6808 1.1 christos { 6809 1.1 christos opendir (); 6810 1.1 christos ; 6811 1.1 christos return 0; 6812 1.1 christos } 6813 1.1 christos _ACEOF 6814 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6815 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6816 1.1 christos (eval $ac_link) 2>conftest.er1 6817 1.1 christos ac_status=$? 6818 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6819 1.1 christos rm -f conftest.er1 6820 1.1 christos cat conftest.err >&5 6821 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 1.1 christos (exit $ac_status); } && 6823 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6824 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6825 1.1 christos (eval $ac_try) 2>&5 6826 1.1 christos ac_status=$? 6827 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6828 1.1 christos (exit $ac_status); }; } && 6829 1.1 christos { ac_try='test -s conftest$ac_exeext' 6830 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6831 1.1 christos (eval $ac_try) 2>&5 6832 1.1 christos ac_status=$? 6833 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6834 1.1 christos (exit $ac_status); }; }; then 6835 1.1 christos ac_cv_search_opendir="-l$ac_lib" 6836 1.1 christos break 6837 1.1 christos else 6838 1.1 christos echo "$as_me: failed program was:" >&5 6839 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6840 1.1 christos 6841 1.1 christos fi 6842 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6843 1.1 christos conftest$ac_exeext conftest.$ac_ext 6844 1.1 christos done 6845 1.1 christos fi 6846 1.1 christos LIBS=$ac_func_search_save_LIBS 6847 1.1 christos fi 6848 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 6849 1.1 christos echo "${ECHO_T}$ac_cv_search_opendir" >&6 6850 1.1 christos if test "$ac_cv_search_opendir" != no; then 6851 1.1 christos test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 6852 1.1 christos 6853 1.1 christos fi 6854 1.1 christos 6855 1.1 christos fi 6856 1.1 christos 6857 1.1 christos echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 6858 1.1 christos echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 6859 1.1 christos if test "${ac_cv_header_stat_broken+set}" = set; then 6860 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6861 1.1 christos else 6862 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6863 1.1 christos /* confdefs.h. */ 6864 1.1 christos _ACEOF 6865 1.1 christos cat confdefs.h >>conftest.$ac_ext 6866 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6867 1.1 christos /* end confdefs.h. */ 6868 1.1 christos #include <sys/types.h> 6869 1.1 christos #include <sys/stat.h> 6870 1.1 christos 6871 1.1 christos #if defined(S_ISBLK) && defined(S_IFDIR) 6872 1.1 christos # if S_ISBLK (S_IFDIR) 6873 1.1 christos You lose. 6874 1.1 christos # endif 6875 1.1 christos #endif 6876 1.1 christos 6877 1.1 christos #if defined(S_ISBLK) && defined(S_IFCHR) 6878 1.1 christos # if S_ISBLK (S_IFCHR) 6879 1.1 christos You lose. 6880 1.1 christos # endif 6881 1.1 christos #endif 6882 1.1 christos 6883 1.1 christos #if defined(S_ISLNK) && defined(S_IFREG) 6884 1.1 christos # if S_ISLNK (S_IFREG) 6885 1.1 christos You lose. 6886 1.1 christos # endif 6887 1.1 christos #endif 6888 1.1 christos 6889 1.1 christos #if defined(S_ISSOCK) && defined(S_IFREG) 6890 1.1 christos # if S_ISSOCK (S_IFREG) 6891 1.1 christos You lose. 6892 1.1 christos # endif 6893 1.1 christos #endif 6894 1.1 christos 6895 1.1 christos _ACEOF 6896 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6897 1.1 christos $EGREP "You lose" >/dev/null 2>&1; then 6898 1.1 christos ac_cv_header_stat_broken=yes 6899 1.1 christos else 6900 1.1 christos ac_cv_header_stat_broken=no 6901 1.1 christos fi 6902 1.1 christos rm -f conftest* 6903 1.1 christos 6904 1.1 christos fi 6905 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 6906 1.1 christos echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 6907 1.1 christos if test $ac_cv_header_stat_broken = yes; then 6908 1.1 christos 6909 1.1 christos cat >>confdefs.h <<\_ACEOF 6910 1.1 christos #define STAT_MACROS_BROKEN 1 6911 1.1 christos _ACEOF 6912 1.1 christos 6913 1.1 christos fi 6914 1.1 christos 6915 1.1 christos echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 6916 1.1 christos echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 6917 1.1 christos if test "${ac_cv_header_time+set}" = set; then 6918 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6919 1.1 christos else 6920 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6921 1.1 christos /* confdefs.h. */ 6922 1.1 christos _ACEOF 6923 1.1 christos cat confdefs.h >>conftest.$ac_ext 6924 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6925 1.1 christos /* end confdefs.h. */ 6926 1.1 christos #include <sys/types.h> 6927 1.1 christos #include <sys/time.h> 6928 1.1 christos #include <time.h> 6929 1.1 christos 6930 1.1 christos int 6931 1.1 christos main () 6932 1.1 christos { 6933 1.1 christos if ((struct tm *) 0) 6934 1.1 christos return 0; 6935 1.1 christos ; 6936 1.1 christos return 0; 6937 1.1 christos } 6938 1.1 christos _ACEOF 6939 1.1 christos rm -f conftest.$ac_objext 6940 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6941 1.1 christos (eval $ac_compile) 2>conftest.er1 6942 1.1 christos ac_status=$? 6943 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6944 1.1 christos rm -f conftest.er1 6945 1.1 christos cat conftest.err >&5 6946 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6947 1.1 christos (exit $ac_status); } && 6948 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 6949 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6950 1.1 christos (eval $ac_try) 2>&5 6951 1.1 christos ac_status=$? 6952 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6953 1.1 christos (exit $ac_status); }; } && 6954 1.1 christos { ac_try='test -s conftest.$ac_objext' 6955 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6956 1.1 christos (eval $ac_try) 2>&5 6957 1.1 christos ac_status=$? 6958 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6959 1.1 christos (exit $ac_status); }; }; then 6960 1.1 christos ac_cv_header_time=yes 6961 1.1 christos else 6962 1.1 christos echo "$as_me: failed program was:" >&5 6963 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6964 1.1 christos 6965 1.1 christos ac_cv_header_time=no 6966 1.1 christos fi 6967 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6968 1.1 christos fi 6969 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 6970 1.1 christos echo "${ECHO_T}$ac_cv_header_time" >&6 6971 1.1 christos if test $ac_cv_header_time = yes; then 6972 1.1 christos 6973 1.1 christos cat >>confdefs.h <<\_ACEOF 6974 1.1 christos #define TIME_WITH_SYS_TIME 1 6975 1.1 christos _ACEOF 6976 1.1 christos 6977 1.1 christos fi 6978 1.1 christos 6979 1.1 christos 6980 1.1 christos 6981 1.1 christos 6982 1.1 christos 6983 1.1 christos 6984 1.1 christos 6985 1.1 christos 6986 1.1 christos 6987 1.1 christos 6988 1.1 christos 6989 1.1 christos 6990 1.1 christos for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \ 6991 1.1 christos memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h 6992 1.1 christos do 6993 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6994 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6995 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 6996 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6997 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6998 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6999 1.1 christos fi 7000 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7001 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7002 1.1 christos else 7003 1.1 christos # Is the header compilable? 7004 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 7005 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7006 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7007 1.1 christos /* confdefs.h. */ 7008 1.1 christos _ACEOF 7009 1.1 christos cat confdefs.h >>conftest.$ac_ext 7010 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7011 1.1 christos /* end confdefs.h. */ 7012 1.1 christos $ac_includes_default 7013 1.1 christos #include <$ac_header> 7014 1.1 christos _ACEOF 7015 1.1 christos rm -f conftest.$ac_objext 7016 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7017 1.1 christos (eval $ac_compile) 2>conftest.er1 7018 1.1 christos ac_status=$? 7019 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7020 1.1 christos rm -f conftest.er1 7021 1.1 christos cat conftest.err >&5 7022 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7023 1.1 christos (exit $ac_status); } && 7024 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7025 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7026 1.1 christos (eval $ac_try) 2>&5 7027 1.1 christos ac_status=$? 7028 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7029 1.1 christos (exit $ac_status); }; } && 7030 1.1 christos { ac_try='test -s conftest.$ac_objext' 7031 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7032 1.1 christos (eval $ac_try) 2>&5 7033 1.1 christos ac_status=$? 7034 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7035 1.1 christos (exit $ac_status); }; }; then 7036 1.1 christos ac_header_compiler=yes 7037 1.1 christos else 7038 1.1 christos echo "$as_me: failed program was:" >&5 7039 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7040 1.1 christos 7041 1.1 christos ac_header_compiler=no 7042 1.1 christos fi 7043 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7044 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7045 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 7046 1.1 christos 7047 1.1 christos # Is the header present? 7048 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 7049 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7050 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7051 1.1 christos /* confdefs.h. */ 7052 1.1 christos _ACEOF 7053 1.1 christos cat confdefs.h >>conftest.$ac_ext 7054 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7055 1.1 christos /* end confdefs.h. */ 7056 1.1 christos #include <$ac_header> 7057 1.1 christos _ACEOF 7058 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7059 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7060 1.1 christos ac_status=$? 7061 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7062 1.1 christos rm -f conftest.er1 7063 1.1 christos cat conftest.err >&5 7064 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7065 1.1 christos (exit $ac_status); } >/dev/null; then 7066 1.1 christos if test -s conftest.err; then 7067 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 7068 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7069 1.1 christos else 7070 1.1 christos ac_cpp_err= 7071 1.1 christos fi 7072 1.1 christos else 7073 1.1 christos ac_cpp_err=yes 7074 1.1 christos fi 7075 1.1 christos if test -z "$ac_cpp_err"; then 7076 1.1 christos ac_header_preproc=yes 7077 1.1 christos else 7078 1.1 christos echo "$as_me: failed program was:" >&5 7079 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7080 1.1 christos 7081 1.1 christos ac_header_preproc=no 7082 1.1 christos fi 7083 1.1 christos rm -f conftest.err conftest.$ac_ext 7084 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7085 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 7086 1.1 christos 7087 1.1 christos # So? What about this header? 7088 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7089 1.1 christos yes:no: ) 7090 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7091 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7092 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7093 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7094 1.1 christos ac_header_preproc=yes 7095 1.1 christos ;; 7096 1.1 christos no:yes:* ) 7097 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7098 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7099 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7100 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7101 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7102 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7103 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7104 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7105 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7106 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7107 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7108 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7109 1.1 christos ( 7110 1.1 christos cat <<\_ASBOX 7111 1.1 christos ## ------------------------------- ## 7112 1.1 christos ## Report this to bug-make (at] gnu.org ## 7113 1.1 christos ## ------------------------------- ## 7114 1.1 christos _ASBOX 7115 1.1 christos ) | 7116 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 7117 1.1 christos ;; 7118 1.1 christos esac 7119 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 7120 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7121 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 7122 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7123 1.1 christos else 7124 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 7125 1.1 christos fi 7126 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7127 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7128 1.1 christos 7129 1.1 christos fi 7130 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 7131 1.1 christos cat >>confdefs.h <<_ACEOF 7132 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7133 1.1 christos _ACEOF 7134 1.1 christos 7135 1.1 christos fi 7136 1.1 christos 7137 1.1 christos done 7138 1.1 christos 7139 1.1 christos 7140 1.1 christos # Set a flag if we have an ANSI C compiler 7141 1.1 christos if test "$ac_cv_prog_cc_stdc" != no; then 7142 1.1 christos 7143 1.1 christos cat >>confdefs.h <<\_ACEOF 7144 1.1 christos #define HAVE_ANSI_COMPILER 1 7145 1.1 christos _ACEOF 7146 1.1 christos 7147 1.1 christos fi 7148 1.1 christos 7149 1.1 christos 7150 1.1 christos # Determine what kind of variadic function calls we support 7151 1.1 christos 7152 1.1 christos 7153 1.1 christos for ac_header in stdarg.h varargs.h 7154 1.1 christos do 7155 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7156 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 7157 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 7158 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7159 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 7160 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7161 1.1 christos fi 7162 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7163 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7164 1.1 christos else 7165 1.1 christos # Is the header compilable? 7166 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 7167 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7168 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7169 1.1 christos /* confdefs.h. */ 7170 1.1 christos _ACEOF 7171 1.1 christos cat confdefs.h >>conftest.$ac_ext 7172 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7173 1.1 christos /* end confdefs.h. */ 7174 1.1 christos $ac_includes_default 7175 1.1 christos #include <$ac_header> 7176 1.1 christos _ACEOF 7177 1.1 christos rm -f conftest.$ac_objext 7178 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7179 1.1 christos (eval $ac_compile) 2>conftest.er1 7180 1.1 christos ac_status=$? 7181 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7182 1.1 christos rm -f conftest.er1 7183 1.1 christos cat conftest.err >&5 7184 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7185 1.1 christos (exit $ac_status); } && 7186 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7187 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7188 1.1 christos (eval $ac_try) 2>&5 7189 1.1 christos ac_status=$? 7190 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7191 1.1 christos (exit $ac_status); }; } && 7192 1.1 christos { ac_try='test -s conftest.$ac_objext' 7193 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7194 1.1 christos (eval $ac_try) 2>&5 7195 1.1 christos ac_status=$? 7196 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7197 1.1 christos (exit $ac_status); }; }; then 7198 1.1 christos ac_header_compiler=yes 7199 1.1 christos else 7200 1.1 christos echo "$as_me: failed program was:" >&5 7201 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7202 1.1 christos 7203 1.1 christos ac_header_compiler=no 7204 1.1 christos fi 7205 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7206 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7207 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 7208 1.1 christos 7209 1.1 christos # Is the header present? 7210 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 7211 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7212 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7213 1.1 christos /* confdefs.h. */ 7214 1.1 christos _ACEOF 7215 1.1 christos cat confdefs.h >>conftest.$ac_ext 7216 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7217 1.1 christos /* end confdefs.h. */ 7218 1.1 christos #include <$ac_header> 7219 1.1 christos _ACEOF 7220 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7221 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7222 1.1 christos ac_status=$? 7223 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7224 1.1 christos rm -f conftest.er1 7225 1.1 christos cat conftest.err >&5 7226 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7227 1.1 christos (exit $ac_status); } >/dev/null; then 7228 1.1 christos if test -s conftest.err; then 7229 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 7230 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7231 1.1 christos else 7232 1.1 christos ac_cpp_err= 7233 1.1 christos fi 7234 1.1 christos else 7235 1.1 christos ac_cpp_err=yes 7236 1.1 christos fi 7237 1.1 christos if test -z "$ac_cpp_err"; then 7238 1.1 christos ac_header_preproc=yes 7239 1.1 christos else 7240 1.1 christos echo "$as_me: failed program was:" >&5 7241 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7242 1.1 christos 7243 1.1 christos ac_header_preproc=no 7244 1.1 christos fi 7245 1.1 christos rm -f conftest.err conftest.$ac_ext 7246 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7247 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 7248 1.1 christos 7249 1.1 christos # So? What about this header? 7250 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7251 1.1 christos yes:no: ) 7252 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7253 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7254 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7255 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7256 1.1 christos ac_header_preproc=yes 7257 1.1 christos ;; 7258 1.1 christos no:yes:* ) 7259 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7260 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7261 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7262 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7263 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7264 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7265 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7266 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7267 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7268 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7269 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7270 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7271 1.1 christos ( 7272 1.1 christos cat <<\_ASBOX 7273 1.1 christos ## ------------------------------- ## 7274 1.1 christos ## Report this to bug-make (at] gnu.org ## 7275 1.1 christos ## ------------------------------- ## 7276 1.1 christos _ASBOX 7277 1.1 christos ) | 7278 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 7279 1.1 christos ;; 7280 1.1 christos esac 7281 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 7282 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7283 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 7284 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7285 1.1 christos else 7286 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 7287 1.1 christos fi 7288 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7289 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7290 1.1 christos 7291 1.1 christos fi 7292 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 7293 1.1 christos cat >>confdefs.h <<_ACEOF 7294 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7295 1.1 christos _ACEOF 7296 1.1 christos break 7297 1.1 christos fi 7298 1.1 christos 7299 1.1 christos done 7300 1.1 christos 7301 1.1 christos 7302 1.1 christos if test "x$CC" != xcc; then 7303 1.1 christos echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 7304 1.1 christos echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 7305 1.1 christos else 7306 1.1 christos echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 7307 1.1 christos echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 7308 1.1 christos fi 7309 1.1 christos set dummy $CC; ac_cc=`echo $2 | 7310 1.1 christos sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7311 1.1 christos if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then 7312 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7313 1.1 christos else 7314 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7315 1.1 christos /* confdefs.h. */ 7316 1.1 christos _ACEOF 7317 1.1 christos cat confdefs.h >>conftest.$ac_ext 7318 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7319 1.1 christos /* end confdefs.h. */ 7320 1.1 christos 7321 1.1 christos int 7322 1.1 christos main () 7323 1.1 christos { 7324 1.1 christos 7325 1.1 christos ; 7326 1.1 christos return 0; 7327 1.1 christos } 7328 1.1 christos _ACEOF 7329 1.1 christos # Make sure it works both with $CC and with simple cc. 7330 1.1 christos # We do the test twice because some compilers refuse to overwrite an 7331 1.1 christos # existing .o file with -o, though they will create one. 7332 1.1 christos ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' 7333 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7334 1.1 christos (eval $ac_try) 2>&5 7335 1.1 christos ac_status=$? 7336 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7337 1.1 christos (exit $ac_status); } && 7338 1.1 christos test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7339 1.1 christos (eval $ac_try) 2>&5 7340 1.1 christos ac_status=$? 7341 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7342 1.1 christos (exit $ac_status); }; 7343 1.1 christos then 7344 1.1 christos eval ac_cv_prog_cc_${ac_cc}_c_o=yes 7345 1.1 christos if test "x$CC" != xcc; then 7346 1.1 christos # Test first that cc exists at all. 7347 1.1 christos if { ac_try='cc -c conftest.$ac_ext >&5' 7348 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7349 1.1 christos (eval $ac_try) 2>&5 7350 1.1 christos ac_status=$? 7351 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7352 1.1 christos (exit $ac_status); }; }; then 7353 1.1 christos ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' 7354 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7355 1.1 christos (eval $ac_try) 2>&5 7356 1.1 christos ac_status=$? 7357 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7358 1.1 christos (exit $ac_status); } && 7359 1.1 christos test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7360 1.1 christos (eval $ac_try) 2>&5 7361 1.1 christos ac_status=$? 7362 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7363 1.1 christos (exit $ac_status); }; 7364 1.1 christos then 7365 1.1 christos # cc works too. 7366 1.1 christos : 7367 1.1 christos else 7368 1.1 christos # cc exists but doesn't like -o. 7369 1.1 christos eval ac_cv_prog_cc_${ac_cc}_c_o=no 7370 1.1 christos fi 7371 1.1 christos fi 7372 1.1 christos fi 7373 1.1 christos else 7374 1.1 christos eval ac_cv_prog_cc_${ac_cc}_c_o=no 7375 1.1 christos fi 7376 1.1 christos rm -f conftest* 7377 1.1 christos 7378 1.1 christos fi 7379 1.1 christos if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 7380 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 7381 1.1 christos echo "${ECHO_T}yes" >&6 7382 1.1 christos else 7383 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7384 1.1 christos echo "${ECHO_T}no" >&6 7385 1.1 christos 7386 1.1 christos cat >>confdefs.h <<\_ACEOF 7387 1.1 christos #define NO_MINUS_C_MINUS_O 1 7388 1.1 christos _ACEOF 7389 1.1 christos 7390 1.1 christos fi 7391 1.1 christos 7392 1.1 christos # FIXME: we rely on the cache variable name because 7393 1.1 christos # there is no other way. 7394 1.1 christos set dummy $CC 7395 1.1 christos ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 7396 1.1 christos if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then 7397 1.1 christos # Losing compiler, so override with the script. 7398 1.1 christos # FIXME: It is wrong to rewrite CC. 7399 1.1 christos # But if we don't then we get into trouble of one sort or another. 7400 1.1 christos # A longer-term fix would be to have automake use am__CC in this case, 7401 1.1 christos # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 7402 1.1 christos CC="$am_aux_dir/compile $CC" 7403 1.1 christos fi 7404 1.1 christos 7405 1.1 christos echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 7406 1.1 christos echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 7407 1.1 christos if test "${ac_cv_c_const+set}" = set; then 7408 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7409 1.1 christos else 7410 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7411 1.1 christos /* confdefs.h. */ 7412 1.1 christos _ACEOF 7413 1.1 christos cat confdefs.h >>conftest.$ac_ext 7414 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7415 1.1 christos /* end confdefs.h. */ 7416 1.1 christos 7417 1.1 christos int 7418 1.1 christos main () 7419 1.1 christos { 7420 1.1 christos /* FIXME: Include the comments suggested by Paul. */ 7421 1.1 christos #ifndef __cplusplus 7422 1.1 christos /* Ultrix mips cc rejects this. */ 7423 1.1 christos typedef int charset[2]; 7424 1.1 christos const charset x; 7425 1.1 christos /* SunOS 4.1.1 cc rejects this. */ 7426 1.1 christos char const *const *ccp; 7427 1.1 christos char **p; 7428 1.1 christos /* NEC SVR4.0.2 mips cc rejects this. */ 7429 1.1 christos struct point {int x, y;}; 7430 1.1 christos static struct point const zero = {0,0}; 7431 1.1 christos /* AIX XL C 1.02.0.0 rejects this. 7432 1.1 christos It does not let you subtract one const X* pointer from another in 7433 1.1 christos an arm of an if-expression whose if-part is not a constant 7434 1.1 christos expression */ 7435 1.1 christos const char *g = "string"; 7436 1.1 christos ccp = &g + (g ? g-g : 0); 7437 1.1 christos /* HPUX 7.0 cc rejects these. */ 7438 1.1 christos ++ccp; 7439 1.1 christos p = (char**) ccp; 7440 1.1 christos ccp = (char const *const *) p; 7441 1.1 christos { /* SCO 3.2v4 cc rejects this. */ 7442 1.1 christos char *t; 7443 1.1 christos char const *s = 0 ? (char *) 0 : (char const *) 0; 7444 1.1 christos 7445 1.1 christos *t++ = 0; 7446 1.1 christos } 7447 1.1 christos { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7448 1.1 christos int x[] = {25, 17}; 7449 1.1 christos const int *foo = &x[0]; 7450 1.1 christos ++foo; 7451 1.1 christos } 7452 1.1 christos { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7453 1.1 christos typedef const int *iptr; 7454 1.1 christos iptr p = 0; 7455 1.1 christos ++p; 7456 1.1 christos } 7457 1.1 christos { /* AIX XL C 1.02.0.0 rejects this saying 7458 1.1 christos "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7459 1.1 christos struct s { int j; const int *ap[3]; }; 7460 1.1 christos struct s *b; b->j = 5; 7461 1.1 christos } 7462 1.1 christos { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7463 1.1 christos const int foo = 10; 7464 1.1 christos } 7465 1.1 christos #endif 7466 1.1 christos 7467 1.1 christos ; 7468 1.1 christos return 0; 7469 1.1 christos } 7470 1.1 christos _ACEOF 7471 1.1 christos rm -f conftest.$ac_objext 7472 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7473 1.1 christos (eval $ac_compile) 2>conftest.er1 7474 1.1 christos ac_status=$? 7475 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7476 1.1 christos rm -f conftest.er1 7477 1.1 christos cat conftest.err >&5 7478 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7479 1.1 christos (exit $ac_status); } && 7480 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7481 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7482 1.1 christos (eval $ac_try) 2>&5 7483 1.1 christos ac_status=$? 7484 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7485 1.1 christos (exit $ac_status); }; } && 7486 1.1 christos { ac_try='test -s conftest.$ac_objext' 7487 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7488 1.1 christos (eval $ac_try) 2>&5 7489 1.1 christos ac_status=$? 7490 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7491 1.1 christos (exit $ac_status); }; }; then 7492 1.1 christos ac_cv_c_const=yes 7493 1.1 christos else 7494 1.1 christos echo "$as_me: failed program was:" >&5 7495 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7496 1.1 christos 7497 1.1 christos ac_cv_c_const=no 7498 1.1 christos fi 7499 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7500 1.1 christos fi 7501 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 7502 1.1 christos echo "${ECHO_T}$ac_cv_c_const" >&6 7503 1.1 christos if test $ac_cv_c_const = no; then 7504 1.1 christos 7505 1.1 christos cat >>confdefs.h <<\_ACEOF 7506 1.1 christos #define const 7507 1.1 christos _ACEOF 7508 1.1 christos 7509 1.1 christos fi 7510 1.1 christos 7511 1.1 christos echo "$as_me:$LINENO: checking return type of signal handlers" >&5 7512 1.1 christos echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 7513 1.1 christos if test "${ac_cv_type_signal+set}" = set; then 7514 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7515 1.1 christos else 7516 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7517 1.1 christos /* confdefs.h. */ 7518 1.1 christos _ACEOF 7519 1.1 christos cat confdefs.h >>conftest.$ac_ext 7520 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7521 1.1 christos /* end confdefs.h. */ 7522 1.1 christos #include <sys/types.h> 7523 1.1 christos #include <signal.h> 7524 1.1 christos #ifdef signal 7525 1.1 christos # undef signal 7526 1.1 christos #endif 7527 1.1 christos #ifdef __cplusplus 7528 1.1 christos extern "C" void (*signal (int, void (*)(int)))(int); 7529 1.1 christos #else 7530 1.4 mrg void (*signal (int, void (*)(int)))(int); 7531 1.1 christos #endif 7532 1.1 christos 7533 1.1 christos int 7534 1.1 christos main () 7535 1.1 christos { 7536 1.1 christos int i; 7537 1.1 christos ; 7538 1.1 christos return 0; 7539 1.1 christos } 7540 1.1 christos _ACEOF 7541 1.1 christos rm -f conftest.$ac_objext 7542 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7543 1.1 christos (eval $ac_compile) 2>conftest.er1 7544 1.1 christos ac_status=$? 7545 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7546 1.1 christos rm -f conftest.er1 7547 1.1 christos cat conftest.err >&5 7548 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7549 1.1 christos (exit $ac_status); } && 7550 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7551 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7552 1.1 christos (eval $ac_try) 2>&5 7553 1.1 christos ac_status=$? 7554 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7555 1.1 christos (exit $ac_status); }; } && 7556 1.1 christos { ac_try='test -s conftest.$ac_objext' 7557 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7558 1.1 christos (eval $ac_try) 2>&5 7559 1.1 christos ac_status=$? 7560 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7561 1.1 christos (exit $ac_status); }; }; then 7562 1.1 christos ac_cv_type_signal=void 7563 1.1 christos else 7564 1.1 christos echo "$as_me: failed program was:" >&5 7565 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7566 1.1 christos 7567 1.1 christos ac_cv_type_signal=int 7568 1.1 christos fi 7569 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7570 1.1 christos fi 7571 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 7572 1.1 christos echo "${ECHO_T}$ac_cv_type_signal" >&6 7573 1.1 christos 7574 1.1 christos cat >>confdefs.h <<_ACEOF 7575 1.1 christos #define RETSIGTYPE $ac_cv_type_signal 7576 1.1 christos _ACEOF 7577 1.1 christos 7578 1.1 christos 7579 1.1 christos echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 7580 1.1 christos echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 7581 1.1 christos if test "${ac_cv_type_uid_t+set}" = set; then 7582 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7583 1.1 christos else 7584 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7585 1.1 christos /* confdefs.h. */ 7586 1.1 christos _ACEOF 7587 1.1 christos cat confdefs.h >>conftest.$ac_ext 7588 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7589 1.1 christos /* end confdefs.h. */ 7590 1.1 christos #include <sys/types.h> 7591 1.1 christos 7592 1.1 christos _ACEOF 7593 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7594 1.1 christos $EGREP "uid_t" >/dev/null 2>&1; then 7595 1.1 christos ac_cv_type_uid_t=yes 7596 1.1 christos else 7597 1.1 christos ac_cv_type_uid_t=no 7598 1.1 christos fi 7599 1.1 christos rm -f conftest* 7600 1.1 christos 7601 1.1 christos fi 7602 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 7603 1.1 christos echo "${ECHO_T}$ac_cv_type_uid_t" >&6 7604 1.1 christos if test $ac_cv_type_uid_t = no; then 7605 1.1 christos 7606 1.1 christos cat >>confdefs.h <<\_ACEOF 7607 1.1 christos #define uid_t int 7608 1.1 christos _ACEOF 7609 1.1 christos 7610 1.1 christos 7611 1.1 christos cat >>confdefs.h <<\_ACEOF 7612 1.1 christos #define gid_t int 7613 1.1 christos _ACEOF 7614 1.1 christos 7615 1.1 christos fi 7616 1.1 christos 7617 1.1 christos echo "$as_me:$LINENO: checking for pid_t" >&5 7618 1.1 christos echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 7619 1.1 christos if test "${ac_cv_type_pid_t+set}" = set; then 7620 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7621 1.1 christos else 7622 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7623 1.1 christos /* confdefs.h. */ 7624 1.1 christos _ACEOF 7625 1.1 christos cat confdefs.h >>conftest.$ac_ext 7626 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7627 1.1 christos /* end confdefs.h. */ 7628 1.1 christos $ac_includes_default 7629 1.1 christos int 7630 1.1 christos main () 7631 1.1 christos { 7632 1.1 christos if ((pid_t *) 0) 7633 1.1 christos return 0; 7634 1.1 christos if (sizeof (pid_t)) 7635 1.1 christos return 0; 7636 1.1 christos ; 7637 1.1 christos return 0; 7638 1.1 christos } 7639 1.1 christos _ACEOF 7640 1.1 christos rm -f conftest.$ac_objext 7641 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7642 1.1 christos (eval $ac_compile) 2>conftest.er1 7643 1.1 christos ac_status=$? 7644 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7645 1.1 christos rm -f conftest.er1 7646 1.1 christos cat conftest.err >&5 7647 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7648 1.1 christos (exit $ac_status); } && 7649 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7650 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7651 1.1 christos (eval $ac_try) 2>&5 7652 1.1 christos ac_status=$? 7653 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7654 1.1 christos (exit $ac_status); }; } && 7655 1.1 christos { ac_try='test -s conftest.$ac_objext' 7656 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7657 1.1 christos (eval $ac_try) 2>&5 7658 1.1 christos ac_status=$? 7659 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7660 1.1 christos (exit $ac_status); }; }; then 7661 1.1 christos ac_cv_type_pid_t=yes 7662 1.1 christos else 7663 1.1 christos echo "$as_me: failed program was:" >&5 7664 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7665 1.1 christos 7666 1.1 christos ac_cv_type_pid_t=no 7667 1.1 christos fi 7668 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7669 1.1 christos fi 7670 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 7671 1.1 christos echo "${ECHO_T}$ac_cv_type_pid_t" >&6 7672 1.1 christos if test $ac_cv_type_pid_t = yes; then 7673 1.1 christos : 7674 1.1 christos else 7675 1.1 christos 7676 1.1 christos cat >>confdefs.h <<_ACEOF 7677 1.1 christos #define pid_t int 7678 1.1 christos _ACEOF 7679 1.1 christos 7680 1.1 christos fi 7681 1.1 christos 7682 1.1 christos 7683 1.1 christos # Find some definition for uintmax_t 7684 1.1 christos 7685 1.1 christos echo "$as_me:$LINENO: checking for uintmax_t" >&5 7686 1.1 christos echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 7687 1.1 christos if test "${ac_cv_type_uintmax_t+set}" = set; then 7688 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7689 1.1 christos else 7690 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7691 1.1 christos /* confdefs.h. */ 7692 1.1 christos _ACEOF 7693 1.1 christos cat confdefs.h >>conftest.$ac_ext 7694 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7695 1.1 christos /* end confdefs.h. */ 7696 1.1 christos $ac_includes_default 7697 1.1 christos int 7698 1.1 christos main () 7699 1.1 christos { 7700 1.1 christos if ((uintmax_t *) 0) 7701 1.1 christos return 0; 7702 1.1 christos if (sizeof (uintmax_t)) 7703 1.1 christos return 0; 7704 1.1 christos ; 7705 1.1 christos return 0; 7706 1.1 christos } 7707 1.1 christos _ACEOF 7708 1.1 christos rm -f conftest.$ac_objext 7709 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7710 1.1 christos (eval $ac_compile) 2>conftest.er1 7711 1.1 christos ac_status=$? 7712 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7713 1.1 christos rm -f conftest.er1 7714 1.1 christos cat conftest.err >&5 7715 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7716 1.1 christos (exit $ac_status); } && 7717 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7718 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7719 1.1 christos (eval $ac_try) 2>&5 7720 1.1 christos ac_status=$? 7721 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7722 1.1 christos (exit $ac_status); }; } && 7723 1.1 christos { ac_try='test -s conftest.$ac_objext' 7724 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7725 1.1 christos (eval $ac_try) 2>&5 7726 1.1 christos ac_status=$? 7727 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7728 1.1 christos (exit $ac_status); }; }; then 7729 1.1 christos ac_cv_type_uintmax_t=yes 7730 1.1 christos else 7731 1.1 christos echo "$as_me: failed program was:" >&5 7732 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7733 1.1 christos 7734 1.1 christos ac_cv_type_uintmax_t=no 7735 1.1 christos fi 7736 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7737 1.1 christos fi 7738 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 7739 1.1 christos echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 7740 1.1 christos if test $ac_cv_type_uintmax_t = yes; then 7741 1.1 christos : 7742 1.1 christos else 7743 1.1 christos 7744 1.1 christos uintmax_t="unsigned long" 7745 1.1 christos echo "$as_me:$LINENO: checking for unsigned long long" >&5 7746 1.1 christos echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 7747 1.1 christos if test "${ac_cv_type_unsigned_long_long+set}" = set; then 7748 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7749 1.1 christos else 7750 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7751 1.1 christos /* confdefs.h. */ 7752 1.1 christos _ACEOF 7753 1.1 christos cat confdefs.h >>conftest.$ac_ext 7754 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7755 1.1 christos /* end confdefs.h. */ 7756 1.1 christos $ac_includes_default 7757 1.1 christos int 7758 1.1 christos main () 7759 1.1 christos { 7760 1.1 christos if ((unsigned long long *) 0) 7761 1.1 christos return 0; 7762 1.1 christos if (sizeof (unsigned long long)) 7763 1.1 christos return 0; 7764 1.1 christos ; 7765 1.1 christos return 0; 7766 1.1 christos } 7767 1.1 christos _ACEOF 7768 1.1 christos rm -f conftest.$ac_objext 7769 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7770 1.1 christos (eval $ac_compile) 2>conftest.er1 7771 1.1 christos ac_status=$? 7772 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7773 1.1 christos rm -f conftest.er1 7774 1.1 christos cat conftest.err >&5 7775 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7776 1.1 christos (exit $ac_status); } && 7777 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7778 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7779 1.1 christos (eval $ac_try) 2>&5 7780 1.1 christos ac_status=$? 7781 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 1.1 christos (exit $ac_status); }; } && 7783 1.1 christos { ac_try='test -s conftest.$ac_objext' 7784 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7785 1.1 christos (eval $ac_try) 2>&5 7786 1.1 christos ac_status=$? 7787 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7788 1.1 christos (exit $ac_status); }; }; then 7789 1.1 christos ac_cv_type_unsigned_long_long=yes 7790 1.1 christos else 7791 1.1 christos echo "$as_me: failed program was:" >&5 7792 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7793 1.1 christos 7794 1.1 christos ac_cv_type_unsigned_long_long=no 7795 1.1 christos fi 7796 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7797 1.1 christos fi 7798 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 7799 1.1 christos echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 7800 1.1 christos if test $ac_cv_type_unsigned_long_long = yes; then 7801 1.1 christos uintmax_t="unsigned long long" 7802 1.1 christos fi 7803 1.1 christos 7804 1.1 christos 7805 1.1 christos cat >>confdefs.h <<_ACEOF 7806 1.1 christos #define uintmax_t $uintmax_t 7807 1.1 christos _ACEOF 7808 1.1 christos 7809 1.1 christos fi 7810 1.1 christos 7811 1.1 christos 7812 1.1 christos # Find out whether our struct stat returns nanosecond resolution timestamps. 7813 1.1 christos 7814 1.1 christos echo "$as_me:$LINENO: checking for nanoseconds field of struct stat.st_mtim" >&5 7815 1.1 christos echo $ECHO_N "checking for nanoseconds field of struct stat.st_mtim... $ECHO_C" >&6 7816 1.1 christos if test "${ac_cv_struct_st_mtim_nsec+set}" = set; then 7817 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7818 1.1 christos else 7819 1.1 christos ac_save_CPPFLAGS="$CPPFLAGS" 7820 1.1 christos ac_cv_struct_st_mtim_nsec=no 7821 1.1 christos # tv_nsec -- the usual case 7822 1.1 christos # _tv_nsec -- Solaris 2.6, if 7823 1.1 christos # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1 7824 1.1 christos # && !defined __EXTENSIONS__) 7825 1.1 christos # st__tim.tv_nsec -- UnixWare 2.1.2 7826 1.1 christos for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do 7827 1.1 christos CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val" 7828 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7829 1.1 christos /* confdefs.h. */ 7830 1.1 christos _ACEOF 7831 1.1 christos cat confdefs.h >>conftest.$ac_ext 7832 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7833 1.1 christos /* end confdefs.h. */ 7834 1.1 christos #include <sys/types.h> 7835 1.1 christos #include <sys/stat.h> 7836 1.1 christos 7837 1.1 christos int 7838 1.1 christos main () 7839 1.1 christos { 7840 1.1 christos struct stat s; s.st_mtim.ST_MTIM_NSEC; 7841 1.1 christos ; 7842 1.1 christos return 0; 7843 1.1 christos } 7844 1.1 christos _ACEOF 7845 1.1 christos rm -f conftest.$ac_objext 7846 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7847 1.1 christos (eval $ac_compile) 2>conftest.er1 7848 1.1 christos ac_status=$? 7849 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7850 1.1 christos rm -f conftest.er1 7851 1.1 christos cat conftest.err >&5 7852 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853 1.1 christos (exit $ac_status); } && 7854 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7855 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7856 1.1 christos (eval $ac_try) 2>&5 7857 1.1 christos ac_status=$? 7858 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7859 1.1 christos (exit $ac_status); }; } && 7860 1.1 christos { ac_try='test -s conftest.$ac_objext' 7861 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7862 1.1 christos (eval $ac_try) 2>&5 7863 1.1 christos ac_status=$? 7864 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7865 1.1 christos (exit $ac_status); }; }; then 7866 1.1 christos ac_cv_struct_st_mtim_nsec=$ac_val; break 7867 1.1 christos else 7868 1.1 christos echo "$as_me: failed program was:" >&5 7869 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7870 1.1 christos 7871 1.1 christos fi 7872 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7873 1.1 christos done 7874 1.1 christos CPPFLAGS="$ac_save_CPPFLAGS" 7875 1.1 christos 7876 1.1 christos fi 7877 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_struct_st_mtim_nsec" >&5 7878 1.1 christos echo "${ECHO_T}$ac_cv_struct_st_mtim_nsec" >&6 7879 1.1 christos 7880 1.1 christos if test $ac_cv_struct_st_mtim_nsec != no; then 7881 1.1 christos 7882 1.1 christos cat >>confdefs.h <<_ACEOF 7883 1.1 christos #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec 7884 1.1 christos _ACEOF 7885 1.1 christos 7886 1.1 christos fi 7887 1.1 christos 7888 1.1 christos 7889 1.1 christos echo "$as_me:$LINENO: checking whether to use high resolution file timestamps" >&5 7890 1.1 christos echo $ECHO_N "checking whether to use high resolution file timestamps... $ECHO_C" >&6 7891 1.1 christos if test "${make_cv_file_timestamp_hi_res+set}" = set; then 7892 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7893 1.1 christos else 7894 1.1 christos 7895 1.1 christos make_cv_file_timestamp_hi_res=no 7896 1.1 christos if test "$ac_cv_struct_st_mtim_nsec" != no; then 7897 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7898 1.1 christos /* confdefs.h. */ 7899 1.1 christos _ACEOF 7900 1.1 christos cat confdefs.h >>conftest.$ac_ext 7901 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7902 1.1 christos /* end confdefs.h. */ 7903 1.1 christos 7904 1.1 christos # if HAVE_INTTYPES_H 7905 1.1 christos # include <inttypes.h> 7906 1.1 christos # endif 7907 1.1 christos int 7908 1.1 christos main () 7909 1.1 christos { 7910 1.1 christos char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1]; 7911 1.1 christos ; 7912 1.1 christos return 0; 7913 1.1 christos } 7914 1.1 christos _ACEOF 7915 1.1 christos rm -f conftest.$ac_objext 7916 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7917 1.1 christos (eval $ac_compile) 2>conftest.er1 7918 1.1 christos ac_status=$? 7919 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7920 1.1 christos rm -f conftest.er1 7921 1.1 christos cat conftest.err >&5 7922 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7923 1.1 christos (exit $ac_status); } && 7924 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 7925 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7926 1.1 christos (eval $ac_try) 2>&5 7927 1.1 christos ac_status=$? 7928 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7929 1.1 christos (exit $ac_status); }; } && 7930 1.1 christos { ac_try='test -s conftest.$ac_objext' 7931 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7932 1.1 christos (eval $ac_try) 2>&5 7933 1.1 christos ac_status=$? 7934 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7935 1.1 christos (exit $ac_status); }; }; then 7936 1.1 christos make_cv_file_timestamp_hi_res=yes 7937 1.1 christos else 7938 1.1 christos echo "$as_me: failed program was:" >&5 7939 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7940 1.1 christos 7941 1.1 christos fi 7942 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7943 1.1 christos fi 7944 1.1 christos fi 7945 1.1 christos 7946 1.1 christos echo "$as_me:$LINENO: result: $make_cv_file_timestamp_hi_res" >&5 7947 1.1 christos echo "${ECHO_T}$make_cv_file_timestamp_hi_res" >&6 7948 1.1 christos if test "$make_cv_file_timestamp_hi_res" = yes; then 7949 1.1 christos val=1 7950 1.1 christos else 7951 1.1 christos val=0 7952 1.1 christos fi 7953 1.1 christos 7954 1.1 christos cat >>confdefs.h <<_ACEOF 7955 1.1 christos #define FILE_TIMESTAMP_HI_RES $val 7956 1.1 christos _ACEOF 7957 1.1 christos 7958 1.1 christos 7959 1.1 christos if test "$make_cv_file_timestamp_hi_res" = yes; then 7960 1.1 christos # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. 7961 1.1 christos # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. 7962 1.1 christos echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5 7963 1.1 christos echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6 7964 1.1 christos if test "${ac_cv_search_clock_gettime+set}" = set; then 7965 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7966 1.1 christos else 7967 1.1 christos ac_func_search_save_LIBS=$LIBS 7968 1.1 christos ac_cv_search_clock_gettime=no 7969 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7970 1.1 christos /* confdefs.h. */ 7971 1.1 christos _ACEOF 7972 1.1 christos cat confdefs.h >>conftest.$ac_ext 7973 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7974 1.1 christos /* end confdefs.h. */ 7975 1.1 christos 7976 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 7977 1.1 christos #ifdef __cplusplus 7978 1.1 christos extern "C" 7979 1.1 christos #endif 7980 1.1 christos /* We use char because int might match the return type of a gcc2 7981 1.1 christos builtin and then its argument prototype would still apply. */ 7982 1.1 christos char clock_gettime (); 7983 1.1 christos int 7984 1.1 christos main () 7985 1.1 christos { 7986 1.1 christos clock_gettime (); 7987 1.1 christos ; 7988 1.1 christos return 0; 7989 1.1 christos } 7990 1.1 christos _ACEOF 7991 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 7992 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7993 1.1 christos (eval $ac_link) 2>conftest.er1 7994 1.1 christos ac_status=$? 7995 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7996 1.1 christos rm -f conftest.er1 7997 1.1 christos cat conftest.err >&5 7998 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7999 1.1 christos (exit $ac_status); } && 8000 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8001 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8002 1.1 christos (eval $ac_try) 2>&5 8003 1.1 christos ac_status=$? 8004 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8005 1.1 christos (exit $ac_status); }; } && 8006 1.1 christos { ac_try='test -s conftest$ac_exeext' 8007 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8008 1.1 christos (eval $ac_try) 2>&5 8009 1.1 christos ac_status=$? 8010 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011 1.1 christos (exit $ac_status); }; }; then 8012 1.1 christos ac_cv_search_clock_gettime="none required" 8013 1.1 christos else 8014 1.1 christos echo "$as_me: failed program was:" >&5 8015 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8016 1.1 christos 8017 1.1 christos fi 8018 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8019 1.1 christos conftest$ac_exeext conftest.$ac_ext 8020 1.1 christos if test "$ac_cv_search_clock_gettime" = no; then 8021 1.1 christos for ac_lib in rt posix4; do 8022 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8023 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8024 1.1 christos /* confdefs.h. */ 8025 1.1 christos _ACEOF 8026 1.1 christos cat confdefs.h >>conftest.$ac_ext 8027 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8028 1.1 christos /* end confdefs.h. */ 8029 1.1 christos 8030 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 8031 1.1 christos #ifdef __cplusplus 8032 1.1 christos extern "C" 8033 1.1 christos #endif 8034 1.1 christos /* We use char because int might match the return type of a gcc2 8035 1.1 christos builtin and then its argument prototype would still apply. */ 8036 1.1 christos char clock_gettime (); 8037 1.1 christos int 8038 1.1 christos main () 8039 1.1 christos { 8040 1.1 christos clock_gettime (); 8041 1.1 christos ; 8042 1.1 christos return 0; 8043 1.1 christos } 8044 1.1 christos _ACEOF 8045 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8046 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8047 1.1 christos (eval $ac_link) 2>conftest.er1 8048 1.1 christos ac_status=$? 8049 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8050 1.1 christos rm -f conftest.er1 8051 1.1 christos cat conftest.err >&5 8052 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8053 1.1 christos (exit $ac_status); } && 8054 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8055 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8056 1.1 christos (eval $ac_try) 2>&5 8057 1.1 christos ac_status=$? 8058 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 1.1 christos (exit $ac_status); }; } && 8060 1.1 christos { ac_try='test -s conftest$ac_exeext' 8061 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8062 1.1 christos (eval $ac_try) 2>&5 8063 1.1 christos ac_status=$? 8064 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8065 1.1 christos (exit $ac_status); }; }; then 8066 1.1 christos ac_cv_search_clock_gettime="-l$ac_lib" 8067 1.1 christos break 8068 1.1 christos else 8069 1.1 christos echo "$as_me: failed program was:" >&5 8070 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8071 1.1 christos 8072 1.1 christos fi 8073 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8074 1.1 christos conftest$ac_exeext conftest.$ac_ext 8075 1.1 christos done 8076 1.1 christos fi 8077 1.1 christos LIBS=$ac_func_search_save_LIBS 8078 1.1 christos fi 8079 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5 8080 1.1 christos echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6 8081 1.1 christos if test "$ac_cv_search_clock_gettime" != no; then 8082 1.1 christos test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS" 8083 1.1 christos 8084 1.1 christos fi 8085 1.1 christos 8086 1.1 christos if test "$ac_cv_search_clock_gettime" != no; then 8087 1.1 christos 8088 1.1 christos cat >>confdefs.h <<\_ACEOF 8089 1.1 christos #define HAVE_CLOCK_GETTIME 1 8090 1.1 christos _ACEOF 8091 1.1 christos 8092 1.1 christos fi 8093 1.1 christos fi 8094 1.1 christos 8095 1.1 christos # Check for DOS-style pathnames. 8096 1.1 christos 8097 1.1 christos echo "$as_me:$LINENO: checking whether system uses MSDOS-style paths" >&5 8098 1.1 christos echo $ECHO_N "checking whether system uses MSDOS-style paths... $ECHO_C" >&6 8099 1.1 christos if test "${ac_cv_dos_paths+set}" = set; then 8100 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8101 1.1 christos else 8102 1.1 christos 8103 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8104 1.1 christos 8105 1.1 christos #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ 8106 1.1 christos neither MSDOS nor Windows nor OS2 8107 1.1 christos #endif 8108 1.1 christos 8109 1.1 christos _ACEOF 8110 1.1 christos rm -f conftest.$ac_objext 8111 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8112 1.1 christos (eval $ac_compile) 2>conftest.er1 8113 1.1 christos ac_status=$? 8114 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8115 1.1 christos rm -f conftest.er1 8116 1.1 christos cat conftest.err >&5 8117 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8118 1.1 christos (exit $ac_status); } && 8119 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8120 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8121 1.1 christos (eval $ac_try) 2>&5 8122 1.1 christos ac_status=$? 8123 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8124 1.1 christos (exit $ac_status); }; } && 8125 1.1 christos { ac_try='test -s conftest.$ac_objext' 8126 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8127 1.1 christos (eval $ac_try) 2>&5 8128 1.1 christos ac_status=$? 8129 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8130 1.1 christos (exit $ac_status); }; }; then 8131 1.1 christos ac_cv_dos_paths=yes 8132 1.1 christos else 8133 1.1 christos echo "$as_me: failed program was:" >&5 8134 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8135 1.1 christos 8136 1.1 christos ac_cv_dos_paths=no 8137 1.1 christos fi 8138 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8139 1.1 christos 8140 1.1 christos fi 8141 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_dos_paths" >&5 8142 1.1 christos echo "${ECHO_T}$ac_cv_dos_paths" >&6 8143 1.1 christos 8144 1.1 christos if test x"$ac_cv_dos_paths" = xyes; then 8145 1.1 christos 8146 1.1 christos cat >>confdefs.h <<_ACEOF 8147 1.1 christos #define HAVE_DOS_PATHS 1 8148 1.1 christos _ACEOF 8149 1.1 christos 8150 1.1 christos fi 8151 1.1 christos 8152 1.1 christos 8153 1.1 christos # See if we have a standard version of gettimeofday(). Since actual 8154 1.1 christos # implementations can differ, just make sure we have the most common 8155 1.1 christos # one. 8156 1.1 christos echo "$as_me:$LINENO: checking for standard gettimeofday" >&5 8157 1.1 christos echo $ECHO_N "checking for standard gettimeofday... $ECHO_C" >&6 8158 1.1 christos if test "${ac_cv_func_gettimeofday+set}" = set; then 8159 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8160 1.1 christos else 8161 1.1 christos ac_cv_func_gettimeofday=no 8162 1.1 christos if test "$cross_compiling" = yes; then 8163 1.1 christos ac_cv_func_gettimeofday="no (cross-compiling)" 8164 1.1 christos else 8165 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8166 1.1 christos /* confdefs.h. */ 8167 1.1 christos _ACEOF 8168 1.1 christos cat confdefs.h >>conftest.$ac_ext 8169 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8170 1.1 christos /* end confdefs.h. */ 8171 1.1 christos #include <sys/time.h> 8172 1.1 christos int main () 8173 1.1 christos { 8174 1.1 christos struct timeval t; t.tv_sec = -1; t.tv_usec = -1; 8175 1.1 christos exit (gettimeofday (&t, 0) != 0 8176 1.1 christos || t.tv_sec < 0 || t.tv_usec < 0); 8177 1.1 christos } 8178 1.1 christos _ACEOF 8179 1.1 christos rm -f conftest$ac_exeext 8180 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8181 1.1 christos (eval $ac_link) 2>&5 8182 1.1 christos ac_status=$? 8183 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8184 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8185 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8186 1.1 christos (eval $ac_try) 2>&5 8187 1.1 christos ac_status=$? 8188 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8189 1.1 christos (exit $ac_status); }; }; then 8190 1.1 christos ac_cv_func_gettimeofday=yes 8191 1.1 christos else 8192 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 8193 1.1 christos echo "$as_me: failed program was:" >&5 8194 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8195 1.1 christos 8196 1.1 christos ( exit $ac_status ) 8197 1.1 christos ac_cv_func_gettimeofday=no 8198 1.1 christos fi 8199 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8200 1.1 christos fi 8201 1.1 christos fi 8202 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 8203 1.1 christos echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 8204 1.1 christos if test "$ac_cv_func_gettimeofday" = yes; then 8205 1.1 christos 8206 1.1 christos cat >>confdefs.h <<\_ACEOF 8207 1.1 christos #define HAVE_GETTIMEOFDAY 1 8208 1.1 christos _ACEOF 8209 1.1 christos 8210 1.1 christos fi 8211 1.1 christos 8212 1.1 christos 8213 1.1 christos 8214 1.1 christos 8215 1.1 christos 8216 1.1 christos 8217 1.1 christos 8218 1.1 christos 8219 1.1 christos 8220 1.1 christos 8221 1.1 christos 8222 1.1 christos 8223 1.1 christos 8224 1.1 christos 8225 1.1 christos 8226 1.1 christos 8227 1.1 christos 8228 1.1 christos 8229 1.1 christos 8230 1.1 christos 8231 1.1 christos 8232 1.1 christos 8233 1.1 christos 8234 1.1 christos 8235 1.1 christos 8236 1.1 christos 8237 1.1 christos 8238 1.1 christos 8239 1.1 christos 8240 1.1 christos for ac_func in memcpy memmove strchr strdup mkstemp mktemp fdopen \ 8241 1.1 christos bsd_signal dup2 getcwd realpath sigsetmask sigaction \ 8242 1.1 christos getgroups seteuid setegid setlinebuf setreuid setregid \ 8243 1.1 christos getrlimit setrlimit setvbuf pipe strerror strsignal \ 8244 1.1 christos lstat readlink atexit 8245 1.1 christos do 8246 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8247 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 8248 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8249 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 8250 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8251 1.1 christos else 8252 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8253 1.1 christos /* confdefs.h. */ 8254 1.1 christos _ACEOF 8255 1.1 christos cat confdefs.h >>conftest.$ac_ext 8256 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8257 1.1 christos /* end confdefs.h. */ 8258 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8259 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8260 1.1 christos #define $ac_func innocuous_$ac_func 8261 1.1 christos 8262 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 8263 1.1 christos which can conflict with char $ac_func (); below. 8264 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8265 1.1 christos <limits.h> exists even on freestanding compilers. */ 8266 1.1 christos 8267 1.1 christos #ifdef __STDC__ 8268 1.1 christos # include <limits.h> 8269 1.1 christos #else 8270 1.1 christos # include <assert.h> 8271 1.1 christos #endif 8272 1.1 christos 8273 1.1 christos #undef $ac_func 8274 1.1 christos 8275 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 8276 1.1 christos #ifdef __cplusplus 8277 1.1 christos extern "C" 8278 1.1 christos { 8279 1.1 christos #endif 8280 1.1 christos /* We use char because int might match the return type of a gcc2 8281 1.1 christos builtin and then its argument prototype would still apply. */ 8282 1.1 christos char $ac_func (); 8283 1.1 christos /* The GNU C library defines this for functions which it implements 8284 1.1 christos to always fail with ENOSYS. Some functions are actually named 8285 1.1 christos something starting with __ and the normal name is an alias. */ 8286 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8287 1.1 christos choke me 8288 1.1 christos #else 8289 1.1 christos char (*f) () = $ac_func; 8290 1.1 christos #endif 8291 1.1 christos #ifdef __cplusplus 8292 1.1 christos } 8293 1.1 christos #endif 8294 1.1 christos 8295 1.1 christos int 8296 1.1 christos main () 8297 1.1 christos { 8298 1.1 christos return f != $ac_func; 8299 1.1 christos ; 8300 1.1 christos return 0; 8301 1.1 christos } 8302 1.1 christos _ACEOF 8303 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8304 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8305 1.1 christos (eval $ac_link) 2>conftest.er1 8306 1.1 christos ac_status=$? 8307 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8308 1.1 christos rm -f conftest.er1 8309 1.1 christos cat conftest.err >&5 8310 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8311 1.1 christos (exit $ac_status); } && 8312 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8313 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8314 1.1 christos (eval $ac_try) 2>&5 8315 1.1 christos ac_status=$? 8316 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8317 1.1 christos (exit $ac_status); }; } && 8318 1.1 christos { ac_try='test -s conftest$ac_exeext' 8319 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8320 1.1 christos (eval $ac_try) 2>&5 8321 1.1 christos ac_status=$? 8322 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8323 1.1 christos (exit $ac_status); }; }; then 8324 1.1 christos eval "$as_ac_var=yes" 8325 1.1 christos else 8326 1.1 christos echo "$as_me: failed program was:" >&5 8327 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8328 1.1 christos 8329 1.1 christos eval "$as_ac_var=no" 8330 1.1 christos fi 8331 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8332 1.1 christos conftest$ac_exeext conftest.$ac_ext 8333 1.1 christos fi 8334 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8335 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8336 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 8337 1.1 christos cat >>confdefs.h <<_ACEOF 8338 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8339 1.1 christos _ACEOF 8340 1.1 christos 8341 1.1 christos fi 8342 1.1 christos done 8343 1.1 christos 8344 1.1 christos 8345 1.1 christos echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5 8346 1.1 christos echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6 8347 1.1 christos if test "${ac_cv_func_setvbuf_reversed+set}" = set; then 8348 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8349 1.1 christos else 8350 1.1 christos ac_cv_func_setvbuf_reversed=no 8351 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8352 1.1 christos /* confdefs.h. */ 8353 1.1 christos _ACEOF 8354 1.1 christos cat confdefs.h >>conftest.$ac_ext 8355 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8356 1.1 christos /* end confdefs.h. */ 8357 1.1 christos #include <stdio.h> 8358 1.1 christos # if PROTOTYPES 8359 1.1 christos int (setvbuf) (FILE *, int, char *, size_t); 8360 1.1 christos # endif 8361 1.1 christos int 8362 1.1 christos main () 8363 1.1 christos { 8364 1.1 christos char buf; return setvbuf (stdout, _IOLBF, &buf, 1); 8365 1.1 christos ; 8366 1.1 christos return 0; 8367 1.1 christos } 8368 1.1 christos _ACEOF 8369 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8370 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8371 1.1 christos (eval $ac_link) 2>conftest.er1 8372 1.1 christos ac_status=$? 8373 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8374 1.1 christos rm -f conftest.er1 8375 1.1 christos cat conftest.err >&5 8376 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8377 1.1 christos (exit $ac_status); } && 8378 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8379 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8380 1.1 christos (eval $ac_try) 2>&5 8381 1.1 christos ac_status=$? 8382 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8383 1.1 christos (exit $ac_status); }; } && 8384 1.1 christos { ac_try='test -s conftest$ac_exeext' 8385 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8386 1.1 christos (eval $ac_try) 2>&5 8387 1.1 christos ac_status=$? 8388 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8389 1.1 christos (exit $ac_status); }; }; then 8390 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8391 1.1 christos /* confdefs.h. */ 8392 1.1 christos _ACEOF 8393 1.1 christos cat confdefs.h >>conftest.$ac_ext 8394 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8395 1.1 christos /* end confdefs.h. */ 8396 1.1 christos #include <stdio.h> 8397 1.1 christos # if PROTOTYPES 8398 1.1 christos int (setvbuf) (FILE *, int, char *, size_t); 8399 1.1 christos # endif 8400 1.1 christos int 8401 1.1 christos main () 8402 1.1 christos { 8403 1.1 christos char buf; return setvbuf (stdout, &buf, _IOLBF, 1); 8404 1.1 christos ; 8405 1.1 christos return 0; 8406 1.1 christos } 8407 1.1 christos _ACEOF 8408 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8409 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8410 1.1 christos (eval $ac_link) 2>conftest.er1 8411 1.1 christos ac_status=$? 8412 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8413 1.1 christos rm -f conftest.er1 8414 1.1 christos cat conftest.err >&5 8415 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8416 1.1 christos (exit $ac_status); } && 8417 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8418 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8419 1.1 christos (eval $ac_try) 2>&5 8420 1.1 christos ac_status=$? 8421 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8422 1.1 christos (exit $ac_status); }; } && 8423 1.1 christos { ac_try='test -s conftest$ac_exeext' 8424 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8425 1.1 christos (eval $ac_try) 2>&5 8426 1.1 christos ac_status=$? 8427 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8428 1.1 christos (exit $ac_status); }; }; then 8429 1.1 christos # It compiles and links either way, so it must not be declared 8430 1.1 christos # with a prototype and most likely this is a K&R C compiler. 8431 1.1 christos # Try running it. 8432 1.1 christos if test "$cross_compiling" = yes; then 8433 1.1 christos : # Assume setvbuf is not reversed when cross-compiling. 8434 1.1 christos else 8435 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8436 1.1 christos /* confdefs.h. */ 8437 1.1 christos _ACEOF 8438 1.1 christos cat confdefs.h >>conftest.$ac_ext 8439 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8440 1.1 christos /* end confdefs.h. */ 8441 1.1 christos #include <stdio.h> 8442 1.1 christos int 8443 1.1 christos main () 8444 1.1 christos { 8445 1.1 christos /* This call has the arguments reversed. 8446 1.1 christos A reversed system may check and see that the address of buf 8447 1.1 christos is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */ 8448 1.1 christos char buf; 8449 1.1 christos if (setvbuf (stdout, _IOLBF, &buf, 1) != 0) 8450 1.1 christos exit (1); 8451 1.1 christos putchar ('\r'); 8452 1.1 christos exit (0); /* Non-reversed systems SEGV here. */ 8453 1.1 christos ; 8454 1.1 christos return 0; 8455 1.1 christos } 8456 1.1 christos _ACEOF 8457 1.1 christos rm -f conftest$ac_exeext 8458 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8459 1.1 christos (eval $ac_link) 2>&5 8460 1.1 christos ac_status=$? 8461 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8462 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8463 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8464 1.1 christos (eval $ac_try) 2>&5 8465 1.1 christos ac_status=$? 8466 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8467 1.1 christos (exit $ac_status); }; }; then 8468 1.1 christos ac_cv_func_setvbuf_reversed=yes 8469 1.1 christos else 8470 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 8471 1.1 christos echo "$as_me: failed program was:" >&5 8472 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8473 1.1 christos 8474 1.1 christos ( exit $ac_status ) 8475 1.1 christos rm -f core *.core 8476 1.1 christos fi 8477 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8478 1.1 christos fi 8479 1.1 christos ac_cv_func_setvbuf_reversed=yes 8480 1.1 christos else 8481 1.1 christos echo "$as_me: failed program was:" >&5 8482 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8483 1.1 christos 8484 1.1 christos fi 8485 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8486 1.1 christos conftest$ac_exeext conftest.$ac_ext 8487 1.1 christos else 8488 1.1 christos echo "$as_me: failed program was:" >&5 8489 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8490 1.1 christos 8491 1.1 christos fi 8492 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8493 1.1 christos conftest$ac_exeext conftest.$ac_ext 8494 1.1 christos fi 8495 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5 8496 1.1 christos echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6 8497 1.1 christos if test $ac_cv_func_setvbuf_reversed = yes; then 8498 1.1 christos 8499 1.1 christos cat >>confdefs.h <<\_ACEOF 8500 1.1 christos #define SETVBUF_REVERSED 1 8501 1.1 christos _ACEOF 8502 1.1 christos 8503 1.1 christos fi 8504 1.1 christos 8505 1.1 christos 8506 1.1 christos # strcoll() is used by the GNU glob library 8507 1.1 christos echo "$as_me:$LINENO: checking for working strcoll" >&5 8508 1.1 christos echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 8509 1.1 christos if test "${ac_cv_func_strcoll_works+set}" = set; then 8510 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8511 1.1 christos else 8512 1.1 christos if test "$cross_compiling" = yes; then 8513 1.1 christos ac_cv_func_strcoll_works=no 8514 1.1 christos else 8515 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8516 1.1 christos /* confdefs.h. */ 8517 1.1 christos _ACEOF 8518 1.1 christos cat confdefs.h >>conftest.$ac_ext 8519 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8520 1.1 christos /* end confdefs.h. */ 8521 1.1 christos $ac_includes_default 8522 1.1 christos int 8523 1.1 christos main () 8524 1.1 christos { 8525 1.1 christos exit (strcoll ("abc", "def") >= 0 || 8526 1.1 christos strcoll ("ABC", "DEF") >= 0 || 8527 1.1 christos strcoll ("123", "456") >= 0) 8528 1.1 christos ; 8529 1.1 christos return 0; 8530 1.1 christos } 8531 1.1 christos _ACEOF 8532 1.1 christos rm -f conftest$ac_exeext 8533 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8534 1.1 christos (eval $ac_link) 2>&5 8535 1.1 christos ac_status=$? 8536 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8537 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8538 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8539 1.1 christos (eval $ac_try) 2>&5 8540 1.1 christos ac_status=$? 8541 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8542 1.1 christos (exit $ac_status); }; }; then 8543 1.1 christos ac_cv_func_strcoll_works=yes 8544 1.1 christos else 8545 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 8546 1.1 christos echo "$as_me: failed program was:" >&5 8547 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8548 1.1 christos 8549 1.1 christos ( exit $ac_status ) 8550 1.1 christos ac_cv_func_strcoll_works=no 8551 1.1 christos fi 8552 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8553 1.1 christos fi 8554 1.1 christos fi 8555 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 8556 1.1 christos echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 8557 1.1 christos if test $ac_cv_func_strcoll_works = yes; then 8558 1.1 christos 8559 1.1 christos cat >>confdefs.h <<\_ACEOF 8560 1.1 christos #define HAVE_STRCOLL 1 8561 1.1 christos _ACEOF 8562 1.1 christos 8563 1.1 christos fi 8564 1.1 christos 8565 1.1 christos 8566 1.1 christos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8567 1.1 christos # for constant arguments. Useless! 8568 1.1 christos echo "$as_me:$LINENO: checking for working alloca.h" >&5 8569 1.1 christos echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 8570 1.1 christos if test "${ac_cv_working_alloca_h+set}" = set; then 8571 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8572 1.1 christos else 8573 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8574 1.1 christos /* confdefs.h. */ 8575 1.1 christos _ACEOF 8576 1.1 christos cat confdefs.h >>conftest.$ac_ext 8577 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8578 1.1 christos /* end confdefs.h. */ 8579 1.1 christos #include <alloca.h> 8580 1.1 christos int 8581 1.1 christos main () 8582 1.1 christos { 8583 1.1 christos char *p = (char *) alloca (2 * sizeof (int)); 8584 1.1 christos ; 8585 1.1 christos return 0; 8586 1.1 christos } 8587 1.1 christos _ACEOF 8588 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8589 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8590 1.1 christos (eval $ac_link) 2>conftest.er1 8591 1.1 christos ac_status=$? 8592 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8593 1.1 christos rm -f conftest.er1 8594 1.1 christos cat conftest.err >&5 8595 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8596 1.1 christos (exit $ac_status); } && 8597 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8598 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8599 1.1 christos (eval $ac_try) 2>&5 8600 1.1 christos ac_status=$? 8601 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8602 1.1 christos (exit $ac_status); }; } && 8603 1.1 christos { ac_try='test -s conftest$ac_exeext' 8604 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8605 1.1 christos (eval $ac_try) 2>&5 8606 1.1 christos ac_status=$? 8607 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8608 1.1 christos (exit $ac_status); }; }; then 8609 1.1 christos ac_cv_working_alloca_h=yes 8610 1.1 christos else 8611 1.1 christos echo "$as_me: failed program was:" >&5 8612 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8613 1.1 christos 8614 1.1 christos ac_cv_working_alloca_h=no 8615 1.1 christos fi 8616 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8617 1.1 christos conftest$ac_exeext conftest.$ac_ext 8618 1.1 christos fi 8619 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 8620 1.1 christos echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 8621 1.1 christos if test $ac_cv_working_alloca_h = yes; then 8622 1.1 christos 8623 1.1 christos cat >>confdefs.h <<\_ACEOF 8624 1.1 christos #define HAVE_ALLOCA_H 1 8625 1.1 christos _ACEOF 8626 1.1 christos 8627 1.1 christos fi 8628 1.1 christos 8629 1.1 christos echo "$as_me:$LINENO: checking for alloca" >&5 8630 1.1 christos echo $ECHO_N "checking for alloca... $ECHO_C" >&6 8631 1.1 christos if test "${ac_cv_func_alloca_works+set}" = set; then 8632 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8633 1.1 christos else 8634 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8635 1.1 christos /* confdefs.h. */ 8636 1.1 christos _ACEOF 8637 1.1 christos cat confdefs.h >>conftest.$ac_ext 8638 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8639 1.1 christos /* end confdefs.h. */ 8640 1.1 christos #ifdef __GNUC__ 8641 1.1 christos # define alloca __builtin_alloca 8642 1.1 christos #else 8643 1.1 christos # ifdef _MSC_VER 8644 1.1 christos # include <malloc.h> 8645 1.1 christos # define alloca _alloca 8646 1.1 christos # else 8647 1.1 christos # if HAVE_ALLOCA_H 8648 1.1 christos # include <alloca.h> 8649 1.1 christos # else 8650 1.1 christos # ifdef _AIX 8651 1.1 christos #pragma alloca 8652 1.1 christos # else 8653 1.1 christos # ifndef alloca /* predefined by HP cc +Olibcalls */ 8654 1.1 christos char *alloca (); 8655 1.1 christos # endif 8656 1.1 christos # endif 8657 1.1 christos # endif 8658 1.1 christos # endif 8659 1.1 christos #endif 8660 1.1 christos 8661 1.1 christos int 8662 1.1 christos main () 8663 1.1 christos { 8664 1.1 christos char *p = (char *) alloca (1); 8665 1.1 christos ; 8666 1.1 christos return 0; 8667 1.1 christos } 8668 1.1 christos _ACEOF 8669 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8670 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8671 1.1 christos (eval $ac_link) 2>conftest.er1 8672 1.1 christos ac_status=$? 8673 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8674 1.1 christos rm -f conftest.er1 8675 1.1 christos cat conftest.err >&5 8676 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8677 1.1 christos (exit $ac_status); } && 8678 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8679 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8680 1.1 christos (eval $ac_try) 2>&5 8681 1.1 christos ac_status=$? 8682 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8683 1.1 christos (exit $ac_status); }; } && 8684 1.1 christos { ac_try='test -s conftest$ac_exeext' 8685 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8686 1.1 christos (eval $ac_try) 2>&5 8687 1.1 christos ac_status=$? 8688 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8689 1.1 christos (exit $ac_status); }; }; then 8690 1.1 christos ac_cv_func_alloca_works=yes 8691 1.1 christos else 8692 1.1 christos echo "$as_me: failed program was:" >&5 8693 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8694 1.1 christos 8695 1.1 christos ac_cv_func_alloca_works=no 8696 1.1 christos fi 8697 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8698 1.1 christos conftest$ac_exeext conftest.$ac_ext 8699 1.1 christos fi 8700 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 8701 1.1 christos echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 8702 1.1 christos 8703 1.1 christos if test $ac_cv_func_alloca_works = yes; then 8704 1.1 christos 8705 1.1 christos cat >>confdefs.h <<\_ACEOF 8706 1.1 christos #define HAVE_ALLOCA 1 8707 1.1 christos _ACEOF 8708 1.1 christos 8709 1.1 christos else 8710 1.1 christos # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8711 1.1 christos # that cause trouble. Some versions do not even contain alloca or 8712 1.1 christos # contain a buggy version. If you still want to use their alloca, 8713 1.1 christos # use ar to extract alloca.o from them instead of compiling alloca.c. 8714 1.1 christos 8715 1.1 christos ALLOCA=alloca.$ac_objext 8716 1.1 christos 8717 1.1 christos cat >>confdefs.h <<\_ACEOF 8718 1.1 christos #define C_ALLOCA 1 8719 1.1 christos _ACEOF 8720 1.1 christos 8721 1.1 christos 8722 1.1 christos echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 8723 1.1 christos echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 8724 1.1 christos if test "${ac_cv_os_cray+set}" = set; then 8725 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8726 1.1 christos else 8727 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8728 1.1 christos /* confdefs.h. */ 8729 1.1 christos _ACEOF 8730 1.1 christos cat confdefs.h >>conftest.$ac_ext 8731 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8732 1.1 christos /* end confdefs.h. */ 8733 1.1 christos #if defined(CRAY) && ! defined(CRAY2) 8734 1.1 christos webecray 8735 1.1 christos #else 8736 1.1 christos wenotbecray 8737 1.1 christos #endif 8738 1.1 christos 8739 1.1 christos _ACEOF 8740 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8741 1.1 christos $EGREP "webecray" >/dev/null 2>&1; then 8742 1.1 christos ac_cv_os_cray=yes 8743 1.1 christos else 8744 1.1 christos ac_cv_os_cray=no 8745 1.1 christos fi 8746 1.1 christos rm -f conftest* 8747 1.1 christos 8748 1.1 christos fi 8749 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 8750 1.1 christos echo "${ECHO_T}$ac_cv_os_cray" >&6 8751 1.1 christos if test $ac_cv_os_cray = yes; then 8752 1.1 christos for ac_func in _getb67 GETB67 getb67; do 8753 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8754 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 8755 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8756 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 8757 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8758 1.1 christos else 8759 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8760 1.1 christos /* confdefs.h. */ 8761 1.1 christos _ACEOF 8762 1.1 christos cat confdefs.h >>conftest.$ac_ext 8763 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8764 1.1 christos /* end confdefs.h. */ 8765 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8766 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8767 1.1 christos #define $ac_func innocuous_$ac_func 8768 1.1 christos 8769 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 8770 1.1 christos which can conflict with char $ac_func (); below. 8771 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8772 1.1 christos <limits.h> exists even on freestanding compilers. */ 8773 1.1 christos 8774 1.1 christos #ifdef __STDC__ 8775 1.1 christos # include <limits.h> 8776 1.1 christos #else 8777 1.1 christos # include <assert.h> 8778 1.1 christos #endif 8779 1.1 christos 8780 1.1 christos #undef $ac_func 8781 1.1 christos 8782 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 8783 1.1 christos #ifdef __cplusplus 8784 1.1 christos extern "C" 8785 1.1 christos { 8786 1.1 christos #endif 8787 1.1 christos /* We use char because int might match the return type of a gcc2 8788 1.1 christos builtin and then its argument prototype would still apply. */ 8789 1.1 christos char $ac_func (); 8790 1.1 christos /* The GNU C library defines this for functions which it implements 8791 1.1 christos to always fail with ENOSYS. Some functions are actually named 8792 1.1 christos something starting with __ and the normal name is an alias. */ 8793 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8794 1.1 christos choke me 8795 1.1 christos #else 8796 1.1 christos char (*f) () = $ac_func; 8797 1.1 christos #endif 8798 1.1 christos #ifdef __cplusplus 8799 1.1 christos } 8800 1.1 christos #endif 8801 1.1 christos 8802 1.1 christos int 8803 1.1 christos main () 8804 1.1 christos { 8805 1.1 christos return f != $ac_func; 8806 1.1 christos ; 8807 1.1 christos return 0; 8808 1.1 christos } 8809 1.1 christos _ACEOF 8810 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8811 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8812 1.1 christos (eval $ac_link) 2>conftest.er1 8813 1.1 christos ac_status=$? 8814 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8815 1.1 christos rm -f conftest.er1 8816 1.1 christos cat conftest.err >&5 8817 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8818 1.1 christos (exit $ac_status); } && 8819 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8820 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8821 1.1 christos (eval $ac_try) 2>&5 8822 1.1 christos ac_status=$? 8823 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8824 1.1 christos (exit $ac_status); }; } && 8825 1.1 christos { ac_try='test -s conftest$ac_exeext' 8826 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8827 1.1 christos (eval $ac_try) 2>&5 8828 1.1 christos ac_status=$? 8829 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8830 1.1 christos (exit $ac_status); }; }; then 8831 1.1 christos eval "$as_ac_var=yes" 8832 1.1 christos else 8833 1.1 christos echo "$as_me: failed program was:" >&5 8834 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8835 1.1 christos 8836 1.1 christos eval "$as_ac_var=no" 8837 1.1 christos fi 8838 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8839 1.1 christos conftest$ac_exeext conftest.$ac_ext 8840 1.1 christos fi 8841 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8842 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8843 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 8844 1.1 christos 8845 1.1 christos cat >>confdefs.h <<_ACEOF 8846 1.1 christos #define CRAY_STACKSEG_END $ac_func 8847 1.1 christos _ACEOF 8848 1.1 christos 8849 1.1 christos break 8850 1.1 christos fi 8851 1.1 christos 8852 1.1 christos done 8853 1.1 christos fi 8854 1.1 christos 8855 1.1 christos echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 8856 1.1 christos echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 8857 1.1 christos if test "${ac_cv_c_stack_direction+set}" = set; then 8858 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8859 1.1 christos else 8860 1.1 christos if test "$cross_compiling" = yes; then 8861 1.1 christos ac_cv_c_stack_direction=0 8862 1.1 christos else 8863 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8864 1.1 christos /* confdefs.h. */ 8865 1.1 christos _ACEOF 8866 1.1 christos cat confdefs.h >>conftest.$ac_ext 8867 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8868 1.1 christos /* end confdefs.h. */ 8869 1.1 christos int 8870 1.1 christos find_stack_direction () 8871 1.1 christos { 8872 1.1 christos static char *addr = 0; 8873 1.1 christos auto char dummy; 8874 1.1 christos if (addr == 0) 8875 1.1 christos { 8876 1.1 christos addr = &dummy; 8877 1.1 christos return find_stack_direction (); 8878 1.1 christos } 8879 1.1 christos else 8880 1.1 christos return (&dummy > addr) ? 1 : -1; 8881 1.1 christos } 8882 1.1 christos 8883 1.1 christos int 8884 1.1 christos main () 8885 1.1 christos { 8886 1.1 christos exit (find_stack_direction () < 0); 8887 1.1 christos } 8888 1.1 christos _ACEOF 8889 1.1 christos rm -f conftest$ac_exeext 8890 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8891 1.1 christos (eval $ac_link) 2>&5 8892 1.1 christos ac_status=$? 8893 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8894 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8895 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8896 1.1 christos (eval $ac_try) 2>&5 8897 1.1 christos ac_status=$? 8898 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 1.1 christos (exit $ac_status); }; }; then 8900 1.1 christos ac_cv_c_stack_direction=1 8901 1.1 christos else 8902 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 8903 1.1 christos echo "$as_me: failed program was:" >&5 8904 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8905 1.1 christos 8906 1.1 christos ( exit $ac_status ) 8907 1.1 christos ac_cv_c_stack_direction=-1 8908 1.1 christos fi 8909 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8910 1.1 christos fi 8911 1.1 christos fi 8912 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 8913 1.1 christos echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 8914 1.1 christos 8915 1.1 christos cat >>confdefs.h <<_ACEOF 8916 1.1 christos #define STACK_DIRECTION $ac_cv_c_stack_direction 8917 1.1 christos _ACEOF 8918 1.1 christos 8919 1.1 christos 8920 1.1 christos fi 8921 1.1 christos 8922 1.1 christos 8923 1.1 christos 8924 1.1 christos for ac_header in unistd.h vfork.h 8925 1.1 christos do 8926 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8927 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 8928 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 8929 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8930 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 8931 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8932 1.1 christos fi 8933 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8934 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8935 1.1 christos else 8936 1.1 christos # Is the header compilable? 8937 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 8938 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8939 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8940 1.1 christos /* confdefs.h. */ 8941 1.1 christos _ACEOF 8942 1.1 christos cat confdefs.h >>conftest.$ac_ext 8943 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8944 1.1 christos /* end confdefs.h. */ 8945 1.1 christos $ac_includes_default 8946 1.1 christos #include <$ac_header> 8947 1.1 christos _ACEOF 8948 1.1 christos rm -f conftest.$ac_objext 8949 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8950 1.1 christos (eval $ac_compile) 2>conftest.er1 8951 1.1 christos ac_status=$? 8952 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8953 1.1 christos rm -f conftest.er1 8954 1.1 christos cat conftest.err >&5 8955 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8956 1.1 christos (exit $ac_status); } && 8957 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 8958 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8959 1.1 christos (eval $ac_try) 2>&5 8960 1.1 christos ac_status=$? 8961 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8962 1.1 christos (exit $ac_status); }; } && 8963 1.1 christos { ac_try='test -s conftest.$ac_objext' 8964 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8965 1.1 christos (eval $ac_try) 2>&5 8966 1.1 christos ac_status=$? 8967 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8968 1.1 christos (exit $ac_status); }; }; then 8969 1.1 christos ac_header_compiler=yes 8970 1.1 christos else 8971 1.1 christos echo "$as_me: failed program was:" >&5 8972 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8973 1.1 christos 8974 1.1 christos ac_header_compiler=no 8975 1.1 christos fi 8976 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8977 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8978 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 8979 1.1 christos 8980 1.1 christos # Is the header present? 8981 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 8982 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8983 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8984 1.1 christos /* confdefs.h. */ 8985 1.1 christos _ACEOF 8986 1.1 christos cat confdefs.h >>conftest.$ac_ext 8987 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8988 1.1 christos /* end confdefs.h. */ 8989 1.1 christos #include <$ac_header> 8990 1.1 christos _ACEOF 8991 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8992 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8993 1.1 christos ac_status=$? 8994 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8995 1.1 christos rm -f conftest.er1 8996 1.1 christos cat conftest.err >&5 8997 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8998 1.1 christos (exit $ac_status); } >/dev/null; then 8999 1.1 christos if test -s conftest.err; then 9000 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 9001 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9002 1.1 christos else 9003 1.1 christos ac_cpp_err= 9004 1.1 christos fi 9005 1.1 christos else 9006 1.1 christos ac_cpp_err=yes 9007 1.1 christos fi 9008 1.1 christos if test -z "$ac_cpp_err"; then 9009 1.1 christos ac_header_preproc=yes 9010 1.1 christos else 9011 1.1 christos echo "$as_me: failed program was:" >&5 9012 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9013 1.1 christos 9014 1.1 christos ac_header_preproc=no 9015 1.1 christos fi 9016 1.1 christos rm -f conftest.err conftest.$ac_ext 9017 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9018 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 9019 1.1 christos 9020 1.1 christos # So? What about this header? 9021 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9022 1.1 christos yes:no: ) 9023 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9024 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9025 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9026 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9027 1.1 christos ac_header_preproc=yes 9028 1.1 christos ;; 9029 1.1 christos no:yes:* ) 9030 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9031 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9032 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9033 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9034 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9035 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9036 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9037 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9038 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9039 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9040 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9041 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9042 1.1 christos ( 9043 1.1 christos cat <<\_ASBOX 9044 1.1 christos ## ------------------------------- ## 9045 1.1 christos ## Report this to bug-make (at] gnu.org ## 9046 1.1 christos ## ------------------------------- ## 9047 1.1 christos _ASBOX 9048 1.1 christos ) | 9049 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 9050 1.1 christos ;; 9051 1.1 christos esac 9052 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 9053 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9054 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 9055 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9056 1.1 christos else 9057 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 9058 1.1 christos fi 9059 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9060 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9061 1.1 christos 9062 1.1 christos fi 9063 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 9064 1.1 christos cat >>confdefs.h <<_ACEOF 9065 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9066 1.1 christos _ACEOF 9067 1.1 christos 9068 1.1 christos fi 9069 1.1 christos 9070 1.1 christos done 9071 1.1 christos 9072 1.1 christos 9073 1.1 christos 9074 1.1 christos for ac_func in fork vfork 9075 1.1 christos do 9076 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9077 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 9078 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9079 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 9080 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9081 1.1 christos else 9082 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9083 1.1 christos /* confdefs.h. */ 9084 1.1 christos _ACEOF 9085 1.1 christos cat confdefs.h >>conftest.$ac_ext 9086 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9087 1.1 christos /* end confdefs.h. */ 9088 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9089 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9090 1.1 christos #define $ac_func innocuous_$ac_func 9091 1.1 christos 9092 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 9093 1.1 christos which can conflict with char $ac_func (); below. 9094 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9095 1.1 christos <limits.h> exists even on freestanding compilers. */ 9096 1.1 christos 9097 1.1 christos #ifdef __STDC__ 9098 1.1 christos # include <limits.h> 9099 1.1 christos #else 9100 1.1 christos # include <assert.h> 9101 1.1 christos #endif 9102 1.1 christos 9103 1.1 christos #undef $ac_func 9104 1.1 christos 9105 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 9106 1.1 christos #ifdef __cplusplus 9107 1.1 christos extern "C" 9108 1.1 christos { 9109 1.1 christos #endif 9110 1.1 christos /* We use char because int might match the return type of a gcc2 9111 1.1 christos builtin and then its argument prototype would still apply. */ 9112 1.1 christos char $ac_func (); 9113 1.1 christos /* The GNU C library defines this for functions which it implements 9114 1.1 christos to always fail with ENOSYS. Some functions are actually named 9115 1.1 christos something starting with __ and the normal name is an alias. */ 9116 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9117 1.1 christos choke me 9118 1.1 christos #else 9119 1.1 christos char (*f) () = $ac_func; 9120 1.1 christos #endif 9121 1.1 christos #ifdef __cplusplus 9122 1.1 christos } 9123 1.1 christos #endif 9124 1.1 christos 9125 1.1 christos int 9126 1.1 christos main () 9127 1.1 christos { 9128 1.1 christos return f != $ac_func; 9129 1.1 christos ; 9130 1.1 christos return 0; 9131 1.1 christos } 9132 1.1 christos _ACEOF 9133 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 9134 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9135 1.1 christos (eval $ac_link) 2>conftest.er1 9136 1.1 christos ac_status=$? 9137 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9138 1.1 christos rm -f conftest.er1 9139 1.1 christos cat conftest.err >&5 9140 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9141 1.1 christos (exit $ac_status); } && 9142 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9143 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9144 1.1 christos (eval $ac_try) 2>&5 9145 1.1 christos ac_status=$? 9146 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9147 1.1 christos (exit $ac_status); }; } && 9148 1.1 christos { ac_try='test -s conftest$ac_exeext' 9149 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9150 1.1 christos (eval $ac_try) 2>&5 9151 1.1 christos ac_status=$? 9152 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9153 1.1 christos (exit $ac_status); }; }; then 9154 1.1 christos eval "$as_ac_var=yes" 9155 1.1 christos else 9156 1.1 christos echo "$as_me: failed program was:" >&5 9157 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9158 1.1 christos 9159 1.1 christos eval "$as_ac_var=no" 9160 1.1 christos fi 9161 1.1 christos rm -f conftest.err conftest.$ac_objext \ 9162 1.1 christos conftest$ac_exeext conftest.$ac_ext 9163 1.1 christos fi 9164 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9165 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9166 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 9167 1.1 christos cat >>confdefs.h <<_ACEOF 9168 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9169 1.1 christos _ACEOF 9170 1.1 christos 9171 1.1 christos fi 9172 1.1 christos done 9173 1.1 christos 9174 1.1 christos if test "x$ac_cv_func_fork" = xyes; then 9175 1.1 christos echo "$as_me:$LINENO: checking for working fork" >&5 9176 1.1 christos echo $ECHO_N "checking for working fork... $ECHO_C" >&6 9177 1.1 christos if test "${ac_cv_func_fork_works+set}" = set; then 9178 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9179 1.1 christos else 9180 1.1 christos if test "$cross_compiling" = yes; then 9181 1.1 christos ac_cv_func_fork_works=cross 9182 1.1 christos else 9183 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9184 1.1 christos /* confdefs.h. */ 9185 1.1 christos _ACEOF 9186 1.1 christos cat confdefs.h >>conftest.$ac_ext 9187 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9188 1.1 christos /* end confdefs.h. */ 9189 1.1 christos $ac_includes_default 9190 1.1 christos int 9191 1.1 christos main () 9192 1.1 christos { 9193 1.1 christos 9194 1.1 christos /* By Ruediger Kuhlmann. */ 9195 1.1 christos if (fork() < 0) 9196 1.1 christos exit (1); 9197 1.1 christos exit (0); 9198 1.1 christos 9199 1.1 christos ; 9200 1.1 christos return 0; 9201 1.1 christos } 9202 1.1 christos _ACEOF 9203 1.1 christos rm -f conftest$ac_exeext 9204 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9205 1.1 christos (eval $ac_link) 2>&5 9206 1.1 christos ac_status=$? 9207 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9208 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9209 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9210 1.1 christos (eval $ac_try) 2>&5 9211 1.1 christos ac_status=$? 9212 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9213 1.1 christos (exit $ac_status); }; }; then 9214 1.1 christos ac_cv_func_fork_works=yes 9215 1.1 christos else 9216 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 9217 1.1 christos echo "$as_me: failed program was:" >&5 9218 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9219 1.1 christos 9220 1.1 christos ( exit $ac_status ) 9221 1.1 christos ac_cv_func_fork_works=no 9222 1.1 christos fi 9223 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9224 1.1 christos fi 9225 1.1 christos fi 9226 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 9227 1.1 christos echo "${ECHO_T}$ac_cv_func_fork_works" >&6 9228 1.1 christos 9229 1.1 christos else 9230 1.1 christos ac_cv_func_fork_works=$ac_cv_func_fork 9231 1.1 christos fi 9232 1.1 christos if test "x$ac_cv_func_fork_works" = xcross; then 9233 1.1 christos case $host in 9234 1.1 christos *-*-amigaos* | *-*-msdosdjgpp*) 9235 1.1 christos # Override, as these systems have only a dummy fork() stub 9236 1.1 christos ac_cv_func_fork_works=no 9237 1.1 christos ;; 9238 1.1 christos *) 9239 1.1 christos ac_cv_func_fork_works=yes 9240 1.1 christos ;; 9241 1.1 christos esac 9242 1.1 christos { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 9243 1.1 christos echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 9244 1.1 christos fi 9245 1.1 christos ac_cv_func_vfork_works=$ac_cv_func_vfork 9246 1.1 christos if test "x$ac_cv_func_vfork" = xyes; then 9247 1.1 christos echo "$as_me:$LINENO: checking for working vfork" >&5 9248 1.1 christos echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 9249 1.1 christos if test "${ac_cv_func_vfork_works+set}" = set; then 9250 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9251 1.1 christos else 9252 1.1 christos if test "$cross_compiling" = yes; then 9253 1.1 christos ac_cv_func_vfork_works=cross 9254 1.1 christos else 9255 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9256 1.1 christos /* confdefs.h. */ 9257 1.1 christos _ACEOF 9258 1.1 christos cat confdefs.h >>conftest.$ac_ext 9259 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9260 1.1 christos /* end confdefs.h. */ 9261 1.1 christos /* Thanks to Paul Eggert for this test. */ 9262 1.1 christos #include <stdio.h> 9263 1.1 christos #include <stdlib.h> 9264 1.1 christos #include <sys/types.h> 9265 1.1 christos #include <sys/stat.h> 9266 1.1 christos #include <sys/wait.h> 9267 1.1 christos #if HAVE_UNISTD_H 9268 1.1 christos # include <unistd.h> 9269 1.1 christos #endif 9270 1.1 christos #if HAVE_VFORK_H 9271 1.1 christos # include <vfork.h> 9272 1.1 christos #endif 9273 1.1 christos /* On some sparc systems, changes by the child to local and incoming 9274 1.1 christos argument registers are propagated back to the parent. The compiler 9275 1.1 christos is told about this with #include <vfork.h>, but some compilers 9276 1.1 christos (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 9277 1.1 christos static variable whose address is put into a register that is 9278 1.1 christos clobbered by the vfork. */ 9279 1.1 christos static void 9280 1.1 christos #ifdef __cplusplus 9281 1.1 christos sparc_address_test (int arg) 9282 1.1 christos # else 9283 1.1 christos sparc_address_test (arg) int arg; 9284 1.1 christos #endif 9285 1.1 christos { 9286 1.1 christos static pid_t child; 9287 1.1 christos if (!child) { 9288 1.1 christos child = vfork (); 9289 1.1 christos if (child < 0) { 9290 1.1 christos perror ("vfork"); 9291 1.1 christos _exit(2); 9292 1.1 christos } 9293 1.1 christos if (!child) { 9294 1.1 christos arg = getpid(); 9295 1.1 christos write(-1, "", 0); 9296 1.1 christos _exit (arg); 9297 1.1 christos } 9298 1.1 christos } 9299 1.1 christos } 9300 1.1 christos 9301 1.1 christos int 9302 1.1 christos main () 9303 1.1 christos { 9304 1.1 christos pid_t parent = getpid (); 9305 1.1 christos pid_t child; 9306 1.1 christos 9307 1.1 christos sparc_address_test (0); 9308 1.1 christos 9309 1.1 christos child = vfork (); 9310 1.1 christos 9311 1.1 christos if (child == 0) { 9312 1.1 christos /* Here is another test for sparc vfork register problems. This 9313 1.1 christos test uses lots of local variables, at least as many local 9314 1.1 christos variables as main has allocated so far including compiler 9315 1.1 christos temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 9316 1.1 christos 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 9317 1.1 christos reuse the register of parent for one of the local variables, 9318 1.1 christos since it will think that parent can't possibly be used any more 9319 1.1 christos in this routine. Assigning to the local variable will thus 9320 1.1 christos munge parent in the parent process. */ 9321 1.1 christos pid_t 9322 1.1 christos p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 9323 1.1 christos p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 9324 1.1 christos /* Convince the compiler that p..p7 are live; otherwise, it might 9325 1.1 christos use the same hardware register for all 8 local variables. */ 9326 1.1 christos if (p != p1 || p != p2 || p != p3 || p != p4 9327 1.1 christos || p != p5 || p != p6 || p != p7) 9328 1.1 christos _exit(1); 9329 1.1 christos 9330 1.1 christos /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 9331 1.1 christos from child file descriptors. If the child closes a descriptor 9332 1.1 christos before it execs or exits, this munges the parent's descriptor 9333 1.1 christos as well. Test for this by closing stdout in the child. */ 9334 1.1 christos _exit(close(fileno(stdout)) != 0); 9335 1.1 christos } else { 9336 1.1 christos int status; 9337 1.1 christos struct stat st; 9338 1.1 christos 9339 1.1 christos while (wait(&status) != child) 9340 1.1 christos ; 9341 1.1 christos exit( 9342 1.1 christos /* Was there some problem with vforking? */ 9343 1.1 christos child < 0 9344 1.1 christos 9345 1.1 christos /* Did the child fail? (This shouldn't happen.) */ 9346 1.1 christos || status 9347 1.1 christos 9348 1.1 christos /* Did the vfork/compiler bug occur? */ 9349 1.1 christos || parent != getpid() 9350 1.1 christos 9351 1.1 christos /* Did the file descriptor bug occur? */ 9352 1.1 christos || fstat(fileno(stdout), &st) != 0 9353 1.1 christos ); 9354 1.1 christos } 9355 1.1 christos } 9356 1.1 christos _ACEOF 9357 1.1 christos rm -f conftest$ac_exeext 9358 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9359 1.1 christos (eval $ac_link) 2>&5 9360 1.1 christos ac_status=$? 9361 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9362 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9363 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9364 1.1 christos (eval $ac_try) 2>&5 9365 1.1 christos ac_status=$? 9366 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9367 1.1 christos (exit $ac_status); }; }; then 9368 1.1 christos ac_cv_func_vfork_works=yes 9369 1.1 christos else 9370 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 9371 1.1 christos echo "$as_me: failed program was:" >&5 9372 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9373 1.1 christos 9374 1.1 christos ( exit $ac_status ) 9375 1.1 christos ac_cv_func_vfork_works=no 9376 1.1 christos fi 9377 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9378 1.1 christos fi 9379 1.1 christos fi 9380 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 9381 1.1 christos echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 9382 1.1 christos 9383 1.1 christos fi; 9384 1.1 christos if test "x$ac_cv_func_fork_works" = xcross; then 9385 1.1 christos ac_cv_func_vfork_works=$ac_cv_func_vfork 9386 1.1 christos { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 9387 1.1 christos echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 9388 1.1 christos fi 9389 1.1 christos 9390 1.1 christos if test "x$ac_cv_func_vfork_works" = xyes; then 9391 1.1 christos 9392 1.1 christos cat >>confdefs.h <<\_ACEOF 9393 1.1 christos #define HAVE_WORKING_VFORK 1 9394 1.1 christos _ACEOF 9395 1.1 christos 9396 1.1 christos else 9397 1.1 christos 9398 1.1 christos cat >>confdefs.h <<\_ACEOF 9399 1.1 christos #define vfork fork 9400 1.1 christos _ACEOF 9401 1.1 christos 9402 1.1 christos fi 9403 1.1 christos if test "x$ac_cv_func_fork_works" = xyes; then 9404 1.1 christos 9405 1.1 christos cat >>confdefs.h <<\_ACEOF 9406 1.1 christos #define HAVE_WORKING_FORK 1 9407 1.1 christos _ACEOF 9408 1.1 christos 9409 1.1 christos fi 9410 1.1 christos 9411 1.1 christos 9412 1.1 christos for ac_func in vprintf 9413 1.1 christos do 9414 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9415 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 9416 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9417 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 9418 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9419 1.1 christos else 9420 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9421 1.1 christos /* confdefs.h. */ 9422 1.1 christos _ACEOF 9423 1.1 christos cat confdefs.h >>conftest.$ac_ext 9424 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9425 1.1 christos /* end confdefs.h. */ 9426 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9427 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9428 1.1 christos #define $ac_func innocuous_$ac_func 9429 1.1 christos 9430 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 9431 1.1 christos which can conflict with char $ac_func (); below. 9432 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9433 1.1 christos <limits.h> exists even on freestanding compilers. */ 9434 1.1 christos 9435 1.1 christos #ifdef __STDC__ 9436 1.1 christos # include <limits.h> 9437 1.1 christos #else 9438 1.1 christos # include <assert.h> 9439 1.1 christos #endif 9440 1.1 christos 9441 1.1 christos #undef $ac_func 9442 1.1 christos 9443 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 9444 1.1 christos #ifdef __cplusplus 9445 1.1 christos extern "C" 9446 1.1 christos { 9447 1.1 christos #endif 9448 1.1 christos /* We use char because int might match the return type of a gcc2 9449 1.1 christos builtin and then its argument prototype would still apply. */ 9450 1.1 christos char $ac_func (); 9451 1.1 christos /* The GNU C library defines this for functions which it implements 9452 1.1 christos to always fail with ENOSYS. Some functions are actually named 9453 1.1 christos something starting with __ and the normal name is an alias. */ 9454 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9455 1.1 christos choke me 9456 1.1 christos #else 9457 1.1 christos char (*f) () = $ac_func; 9458 1.1 christos #endif 9459 1.1 christos #ifdef __cplusplus 9460 1.1 christos } 9461 1.1 christos #endif 9462 1.1 christos 9463 1.1 christos int 9464 1.1 christos main () 9465 1.1 christos { 9466 1.1 christos return f != $ac_func; 9467 1.1 christos ; 9468 1.1 christos return 0; 9469 1.1 christos } 9470 1.1 christos _ACEOF 9471 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 9472 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9473 1.1 christos (eval $ac_link) 2>conftest.er1 9474 1.1 christos ac_status=$? 9475 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9476 1.1 christos rm -f conftest.er1 9477 1.1 christos cat conftest.err >&5 9478 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9479 1.1 christos (exit $ac_status); } && 9480 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9481 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9482 1.1 christos (eval $ac_try) 2>&5 9483 1.1 christos ac_status=$? 9484 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9485 1.1 christos (exit $ac_status); }; } && 9486 1.1 christos { ac_try='test -s conftest$ac_exeext' 9487 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9488 1.1 christos (eval $ac_try) 2>&5 9489 1.1 christos ac_status=$? 9490 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9491 1.1 christos (exit $ac_status); }; }; then 9492 1.1 christos eval "$as_ac_var=yes" 9493 1.1 christos else 9494 1.1 christos echo "$as_me: failed program was:" >&5 9495 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9496 1.1 christos 9497 1.1 christos eval "$as_ac_var=no" 9498 1.1 christos fi 9499 1.1 christos rm -f conftest.err conftest.$ac_objext \ 9500 1.1 christos conftest$ac_exeext conftest.$ac_ext 9501 1.1 christos fi 9502 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9503 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9504 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 9505 1.1 christos cat >>confdefs.h <<_ACEOF 9506 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9507 1.1 christos _ACEOF 9508 1.1 christos 9509 1.1 christos echo "$as_me:$LINENO: checking for _doprnt" >&5 9510 1.1 christos echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 9511 1.1 christos if test "${ac_cv_func__doprnt+set}" = set; then 9512 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9513 1.1 christos else 9514 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9515 1.1 christos /* confdefs.h. */ 9516 1.1 christos _ACEOF 9517 1.1 christos cat confdefs.h >>conftest.$ac_ext 9518 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9519 1.1 christos /* end confdefs.h. */ 9520 1.1 christos /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 9521 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9522 1.1 christos #define _doprnt innocuous__doprnt 9523 1.1 christos 9524 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 9525 1.1 christos which can conflict with char _doprnt (); below. 9526 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9527 1.1 christos <limits.h> exists even on freestanding compilers. */ 9528 1.1 christos 9529 1.1 christos #ifdef __STDC__ 9530 1.1 christos # include <limits.h> 9531 1.1 christos #else 9532 1.1 christos # include <assert.h> 9533 1.1 christos #endif 9534 1.1 christos 9535 1.1 christos #undef _doprnt 9536 1.1 christos 9537 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 9538 1.1 christos #ifdef __cplusplus 9539 1.1 christos extern "C" 9540 1.1 christos { 9541 1.1 christos #endif 9542 1.1 christos /* We use char because int might match the return type of a gcc2 9543 1.1 christos builtin and then its argument prototype would still apply. */ 9544 1.1 christos char _doprnt (); 9545 1.1 christos /* The GNU C library defines this for functions which it implements 9546 1.1 christos to always fail with ENOSYS. Some functions are actually named 9547 1.1 christos something starting with __ and the normal name is an alias. */ 9548 1.1 christos #if defined (__stub__doprnt) || defined (__stub____doprnt) 9549 1.1 christos choke me 9550 1.1 christos #else 9551 1.1 christos char (*f) () = _doprnt; 9552 1.1 christos #endif 9553 1.1 christos #ifdef __cplusplus 9554 1.1 christos } 9555 1.1 christos #endif 9556 1.1 christos 9557 1.1 christos int 9558 1.1 christos main () 9559 1.1 christos { 9560 1.1 christos return f != _doprnt; 9561 1.1 christos ; 9562 1.1 christos return 0; 9563 1.1 christos } 9564 1.1 christos _ACEOF 9565 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 9566 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9567 1.1 christos (eval $ac_link) 2>conftest.er1 9568 1.1 christos ac_status=$? 9569 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9570 1.1 christos rm -f conftest.er1 9571 1.1 christos cat conftest.err >&5 9572 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9573 1.1 christos (exit $ac_status); } && 9574 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9575 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9576 1.1 christos (eval $ac_try) 2>&5 9577 1.1 christos ac_status=$? 9578 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9579 1.1 christos (exit $ac_status); }; } && 9580 1.1 christos { ac_try='test -s conftest$ac_exeext' 9581 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9582 1.1 christos (eval $ac_try) 2>&5 9583 1.1 christos ac_status=$? 9584 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9585 1.1 christos (exit $ac_status); }; }; then 9586 1.1 christos ac_cv_func__doprnt=yes 9587 1.1 christos else 9588 1.1 christos echo "$as_me: failed program was:" >&5 9589 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9590 1.1 christos 9591 1.1 christos ac_cv_func__doprnt=no 9592 1.1 christos fi 9593 1.1 christos rm -f conftest.err conftest.$ac_objext \ 9594 1.1 christos conftest$ac_exeext conftest.$ac_ext 9595 1.1 christos fi 9596 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 9597 1.1 christos echo "${ECHO_T}$ac_cv_func__doprnt" >&6 9598 1.1 christos if test $ac_cv_func__doprnt = yes; then 9599 1.1 christos 9600 1.1 christos cat >>confdefs.h <<\_ACEOF 9601 1.1 christos #define HAVE_DOPRNT 1 9602 1.1 christos _ACEOF 9603 1.1 christos 9604 1.1 christos fi 9605 1.1 christos 9606 1.1 christos fi 9607 1.1 christos done 9608 1.1 christos 9609 1.1 christos 9610 1.1 christos echo "$as_me:$LINENO: checking whether closedir returns void" >&5 9611 1.1 christos echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6 9612 1.1 christos if test "${ac_cv_func_closedir_void+set}" = set; then 9613 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9614 1.1 christos else 9615 1.1 christos if test "$cross_compiling" = yes; then 9616 1.1 christos ac_cv_func_closedir_void=yes 9617 1.1 christos else 9618 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9619 1.1 christos /* confdefs.h. */ 9620 1.1 christos _ACEOF 9621 1.1 christos cat confdefs.h >>conftest.$ac_ext 9622 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9623 1.1 christos /* end confdefs.h. */ 9624 1.1 christos $ac_includes_default 9625 1.1 christos #include <$ac_header_dirent> 9626 1.1 christos #ifndef __cplusplus 9627 1.1 christos int closedir (); 9628 1.1 christos #endif 9629 1.1 christos 9630 1.1 christos int 9631 1.1 christos main () 9632 1.1 christos { 9633 1.1 christos exit (closedir (opendir (".")) != 0); 9634 1.1 christos ; 9635 1.1 christos return 0; 9636 1.1 christos } 9637 1.1 christos _ACEOF 9638 1.1 christos rm -f conftest$ac_exeext 9639 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9640 1.1 christos (eval $ac_link) 2>&5 9641 1.1 christos ac_status=$? 9642 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9643 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9644 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9645 1.1 christos (eval $ac_try) 2>&5 9646 1.1 christos ac_status=$? 9647 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9648 1.1 christos (exit $ac_status); }; }; then 9649 1.1 christos ac_cv_func_closedir_void=no 9650 1.1 christos else 9651 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 9652 1.1 christos echo "$as_me: failed program was:" >&5 9653 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9654 1.1 christos 9655 1.1 christos ( exit $ac_status ) 9656 1.1 christos ac_cv_func_closedir_void=yes 9657 1.1 christos fi 9658 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9659 1.1 christos fi 9660 1.1 christos fi 9661 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 9662 1.1 christos echo "${ECHO_T}$ac_cv_func_closedir_void" >&6 9663 1.1 christos if test $ac_cv_func_closedir_void = yes; then 9664 1.1 christos 9665 1.1 christos cat >>confdefs.h <<\_ACEOF 9666 1.1 christos #define CLOSEDIR_VOID 1 9667 1.1 christos _ACEOF 9668 1.1 christos 9669 1.1 christos fi 9670 1.1 christos 9671 1.1 christos 9672 1.1 christos ac_have_func=no # yes means we've found a way to get the load average. 9673 1.1 christos 9674 1.1 christos # Make sure getloadavg.c is where it belongs, at configure-time. 9675 1.1 christos test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 9676 1.1 christos { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 9677 1.1 christos echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} 9678 1.1 christos { (exit 1); exit 1; }; } 9679 1.1 christos 9680 1.1 christos ac_save_LIBS=$LIBS 9681 1.1 christos 9682 1.1 christos # Check for getloadavg, but be sure not to touch the cache variable. 9683 1.1 christos (echo "$as_me:$LINENO: checking for getloadavg" >&5 9684 1.1 christos echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 9685 1.1 christos if test "${ac_cv_func_getloadavg+set}" = set; then 9686 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9687 1.1 christos else 9688 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9689 1.1 christos /* confdefs.h. */ 9690 1.1 christos _ACEOF 9691 1.1 christos cat confdefs.h >>conftest.$ac_ext 9692 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9693 1.1 christos /* end confdefs.h. */ 9694 1.1 christos /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. 9695 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9696 1.1 christos #define getloadavg innocuous_getloadavg 9697 1.1 christos 9698 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 9699 1.1 christos which can conflict with char getloadavg (); below. 9700 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9701 1.1 christos <limits.h> exists even on freestanding compilers. */ 9702 1.1 christos 9703 1.1 christos #ifdef __STDC__ 9704 1.1 christos # include <limits.h> 9705 1.1 christos #else 9706 1.1 christos # include <assert.h> 9707 1.1 christos #endif 9708 1.1 christos 9709 1.1 christos #undef getloadavg 9710 1.1 christos 9711 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 9712 1.1 christos #ifdef __cplusplus 9713 1.1 christos extern "C" 9714 1.1 christos { 9715 1.1 christos #endif 9716 1.1 christos /* We use char because int might match the return type of a gcc2 9717 1.1 christos builtin and then its argument prototype would still apply. */ 9718 1.1 christos char getloadavg (); 9719 1.1 christos /* The GNU C library defines this for functions which it implements 9720 1.1 christos to always fail with ENOSYS. Some functions are actually named 9721 1.1 christos something starting with __ and the normal name is an alias. */ 9722 1.1 christos #if defined (__stub_getloadavg) || defined (__stub___getloadavg) 9723 1.1 christos choke me 9724 1.1 christos #else 9725 1.1 christos char (*f) () = getloadavg; 9726 1.1 christos #endif 9727 1.1 christos #ifdef __cplusplus 9728 1.1 christos } 9729 1.1 christos #endif 9730 1.1 christos 9731 1.1 christos int 9732 1.1 christos main () 9733 1.1 christos { 9734 1.1 christos return f != getloadavg; 9735 1.1 christos ; 9736 1.1 christos return 0; 9737 1.1 christos } 9738 1.1 christos _ACEOF 9739 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 9740 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9741 1.1 christos (eval $ac_link) 2>conftest.er1 9742 1.1 christos ac_status=$? 9743 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9744 1.1 christos rm -f conftest.er1 9745 1.1 christos cat conftest.err >&5 9746 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9747 1.1 christos (exit $ac_status); } && 9748 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9749 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9750 1.1 christos (eval $ac_try) 2>&5 9751 1.1 christos ac_status=$? 9752 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9753 1.1 christos (exit $ac_status); }; } && 9754 1.1 christos { ac_try='test -s conftest$ac_exeext' 9755 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9756 1.1 christos (eval $ac_try) 2>&5 9757 1.1 christos ac_status=$? 9758 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 1.1 christos (exit $ac_status); }; }; then 9760 1.1 christos ac_cv_func_getloadavg=yes 9761 1.1 christos else 9762 1.1 christos echo "$as_me: failed program was:" >&5 9763 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9764 1.1 christos 9765 1.1 christos ac_cv_func_getloadavg=no 9766 1.1 christos fi 9767 1.1 christos rm -f conftest.err conftest.$ac_objext \ 9768 1.1 christos conftest$ac_exeext conftest.$ac_ext 9769 1.1 christos fi 9770 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 9771 1.1 christos echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 9772 1.1 christos if test $ac_cv_func_getloadavg = yes; then 9773 1.1 christos exit 0 9774 1.1 christos else 9775 1.1 christos exit 1 9776 1.1 christos fi 9777 1.1 christos ) && ac_have_func=yes 9778 1.1 christos 9779 1.1 christos # On HPUX9, an unprivileged user can get load averages through this function. 9780 1.1 christos 9781 1.1 christos for ac_func in pstat_getdynamic 9782 1.1 christos do 9783 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9784 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 9785 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9786 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 9787 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9788 1.1 christos else 9789 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9790 1.1 christos /* confdefs.h. */ 9791 1.1 christos _ACEOF 9792 1.1 christos cat confdefs.h >>conftest.$ac_ext 9793 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9794 1.1 christos /* end confdefs.h. */ 9795 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 9796 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9797 1.1 christos #define $ac_func innocuous_$ac_func 9798 1.1 christos 9799 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 9800 1.1 christos which can conflict with char $ac_func (); below. 9801 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9802 1.1 christos <limits.h> exists even on freestanding compilers. */ 9803 1.1 christos 9804 1.1 christos #ifdef __STDC__ 9805 1.1 christos # include <limits.h> 9806 1.1 christos #else 9807 1.1 christos # include <assert.h> 9808 1.1 christos #endif 9809 1.1 christos 9810 1.1 christos #undef $ac_func 9811 1.1 christos 9812 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 9813 1.1 christos #ifdef __cplusplus 9814 1.1 christos extern "C" 9815 1.1 christos { 9816 1.1 christos #endif 9817 1.1 christos /* We use char because int might match the return type of a gcc2 9818 1.1 christos builtin and then its argument prototype would still apply. */ 9819 1.1 christos char $ac_func (); 9820 1.1 christos /* The GNU C library defines this for functions which it implements 9821 1.1 christos to always fail with ENOSYS. Some functions are actually named 9822 1.1 christos something starting with __ and the normal name is an alias. */ 9823 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9824 1.1 christos choke me 9825 1.1 christos #else 9826 1.1 christos char (*f) () = $ac_func; 9827 1.1 christos #endif 9828 1.1 christos #ifdef __cplusplus 9829 1.1 christos } 9830 1.1 christos #endif 9831 1.1 christos 9832 1.1 christos int 9833 1.1 christos main () 9834 1.1 christos { 9835 1.1 christos return f != $ac_func; 9836 1.1 christos ; 9837 1.1 christos return 0; 9838 1.1 christos } 9839 1.1 christos _ACEOF 9840 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 9841 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9842 1.1 christos (eval $ac_link) 2>conftest.er1 9843 1.1 christos ac_status=$? 9844 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9845 1.1 christos rm -f conftest.er1 9846 1.1 christos cat conftest.err >&5 9847 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9848 1.1 christos (exit $ac_status); } && 9849 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9850 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9851 1.1 christos (eval $ac_try) 2>&5 9852 1.1 christos ac_status=$? 9853 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9854 1.1 christos (exit $ac_status); }; } && 9855 1.1 christos { ac_try='test -s conftest$ac_exeext' 9856 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9857 1.1 christos (eval $ac_try) 2>&5 9858 1.1 christos ac_status=$? 9859 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9860 1.1 christos (exit $ac_status); }; }; then 9861 1.1 christos eval "$as_ac_var=yes" 9862 1.1 christos else 9863 1.1 christos echo "$as_me: failed program was:" >&5 9864 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9865 1.1 christos 9866 1.1 christos eval "$as_ac_var=no" 9867 1.1 christos fi 9868 1.1 christos rm -f conftest.err conftest.$ac_objext \ 9869 1.1 christos conftest$ac_exeext conftest.$ac_ext 9870 1.1 christos fi 9871 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9872 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9873 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 9874 1.1 christos cat >>confdefs.h <<_ACEOF 9875 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9876 1.1 christos _ACEOF 9877 1.1 christos 9878 1.1 christos fi 9879 1.1 christos done 9880 1.1 christos 9881 1.1 christos 9882 1.1 christos # Solaris has libkstat which does not require root. 9883 1.1 christos 9884 1.1 christos echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 9885 1.1 christos echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 9886 1.1 christos if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then 9887 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9888 1.1 christos else 9889 1.1 christos ac_check_lib_save_LIBS=$LIBS 9890 1.1 christos LIBS="-lkstat $LIBS" 9891 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9892 1.1 christos /* confdefs.h. */ 9893 1.1 christos _ACEOF 9894 1.1 christos cat confdefs.h >>conftest.$ac_ext 9895 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9896 1.1 christos /* end confdefs.h. */ 9897 1.1 christos 9898 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 9899 1.1 christos #ifdef __cplusplus 9900 1.1 christos extern "C" 9901 1.1 christos #endif 9902 1.1 christos /* We use char because int might match the return type of a gcc2 9903 1.1 christos builtin and then its argument prototype would still apply. */ 9904 1.1 christos char kstat_open (); 9905 1.1 christos int 9906 1.1 christos main () 9907 1.1 christos { 9908 1.1 christos kstat_open (); 9909 1.1 christos ; 9910 1.1 christos return 0; 9911 1.1 christos } 9912 1.1 christos _ACEOF 9913 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 9914 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9915 1.1 christos (eval $ac_link) 2>conftest.er1 9916 1.1 christos ac_status=$? 9917 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9918 1.1 christos rm -f conftest.er1 9919 1.1 christos cat conftest.err >&5 9920 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9921 1.1 christos (exit $ac_status); } && 9922 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 9923 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9924 1.1 christos (eval $ac_try) 2>&5 9925 1.1 christos ac_status=$? 9926 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9927 1.1 christos (exit $ac_status); }; } && 9928 1.1 christos { ac_try='test -s conftest$ac_exeext' 9929 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9930 1.1 christos (eval $ac_try) 2>&5 9931 1.1 christos ac_status=$? 9932 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9933 1.1 christos (exit $ac_status); }; }; then 9934 1.1 christos ac_cv_lib_kstat_kstat_open=yes 9935 1.1 christos else 9936 1.1 christos echo "$as_me: failed program was:" >&5 9937 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9938 1.1 christos 9939 1.1 christos ac_cv_lib_kstat_kstat_open=no 9940 1.1 christos fi 9941 1.1 christos rm -f conftest.err conftest.$ac_objext \ 9942 1.1 christos conftest$ac_exeext conftest.$ac_ext 9943 1.1 christos LIBS=$ac_check_lib_save_LIBS 9944 1.1 christos fi 9945 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 9946 1.1 christos echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 9947 1.1 christos if test $ac_cv_lib_kstat_kstat_open = yes; then 9948 1.1 christos cat >>confdefs.h <<_ACEOF 9949 1.1 christos #define HAVE_LIBKSTAT 1 9950 1.1 christos _ACEOF 9951 1.1 christos 9952 1.1 christos LIBS="-lkstat $LIBS" 9953 1.1 christos 9954 1.1 christos fi 9955 1.1 christos 9956 1.1 christos test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes 9957 1.1 christos 9958 1.1 christos # Some systems with -lutil have (and need) -lkvm as well, some do not. 9959 1.1 christos # On Solaris, -lkvm requires nlist from -lelf, so check that first 9960 1.1 christos # to get the right answer into the cache. 9961 1.1 christos # For kstat on solaris, we need libelf to force the definition of SVR4 below. 9962 1.1 christos if test $ac_have_func = no; then 9963 1.1 christos echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 9964 1.1 christos echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 9965 1.1 christos if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 9966 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9967 1.1 christos else 9968 1.1 christos ac_check_lib_save_LIBS=$LIBS 9969 1.1 christos LIBS="-lelf $LIBS" 9970 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9971 1.1 christos /* confdefs.h. */ 9972 1.1 christos _ACEOF 9973 1.1 christos cat confdefs.h >>conftest.$ac_ext 9974 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9975 1.1 christos /* end confdefs.h. */ 9976 1.1 christos 9977 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 9978 1.1 christos #ifdef __cplusplus 9979 1.1 christos extern "C" 9980 1.1 christos #endif 9981 1.1 christos /* We use char because int might match the return type of a gcc2 9982 1.1 christos builtin and then its argument prototype would still apply. */ 9983 1.1 christos char elf_begin (); 9984 1.1 christos int 9985 1.1 christos main () 9986 1.1 christos { 9987 1.1 christos elf_begin (); 9988 1.1 christos ; 9989 1.1 christos return 0; 9990 1.1 christos } 9991 1.1 christos _ACEOF 9992 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 9993 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9994 1.1 christos (eval $ac_link) 2>conftest.er1 9995 1.1 christos ac_status=$? 9996 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9997 1.1 christos rm -f conftest.er1 9998 1.1 christos cat conftest.err >&5 9999 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10000 1.1 christos (exit $ac_status); } && 10001 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10002 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10003 1.1 christos (eval $ac_try) 2>&5 10004 1.1 christos ac_status=$? 10005 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10006 1.1 christos (exit $ac_status); }; } && 10007 1.1 christos { ac_try='test -s conftest$ac_exeext' 10008 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10009 1.1 christos (eval $ac_try) 2>&5 10010 1.1 christos ac_status=$? 10011 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10012 1.1 christos (exit $ac_status); }; }; then 10013 1.1 christos ac_cv_lib_elf_elf_begin=yes 10014 1.1 christos else 10015 1.1 christos echo "$as_me: failed program was:" >&5 10016 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10017 1.1 christos 10018 1.1 christos ac_cv_lib_elf_elf_begin=no 10019 1.1 christos fi 10020 1.1 christos rm -f conftest.err conftest.$ac_objext \ 10021 1.1 christos conftest$ac_exeext conftest.$ac_ext 10022 1.1 christos LIBS=$ac_check_lib_save_LIBS 10023 1.1 christos fi 10024 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 10025 1.1 christos echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 10026 1.1 christos if test $ac_cv_lib_elf_elf_begin = yes; then 10027 1.1 christos LIBS="-lelf $LIBS" 10028 1.1 christos fi 10029 1.1 christos 10030 1.1 christos fi 10031 1.1 christos if test $ac_have_func = no; then 10032 1.1 christos echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 10033 1.1 christos echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 10034 1.1 christos if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then 10035 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10036 1.1 christos else 10037 1.1 christos ac_check_lib_save_LIBS=$LIBS 10038 1.1 christos LIBS="-lkvm $LIBS" 10039 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10040 1.1 christos /* confdefs.h. */ 10041 1.1 christos _ACEOF 10042 1.1 christos cat confdefs.h >>conftest.$ac_ext 10043 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10044 1.1 christos /* end confdefs.h. */ 10045 1.1 christos 10046 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 10047 1.1 christos #ifdef __cplusplus 10048 1.1 christos extern "C" 10049 1.1 christos #endif 10050 1.1 christos /* We use char because int might match the return type of a gcc2 10051 1.1 christos builtin and then its argument prototype would still apply. */ 10052 1.1 christos char kvm_open (); 10053 1.1 christos int 10054 1.1 christos main () 10055 1.1 christos { 10056 1.1 christos kvm_open (); 10057 1.1 christos ; 10058 1.1 christos return 0; 10059 1.1 christos } 10060 1.1 christos _ACEOF 10061 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 10062 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10063 1.1 christos (eval $ac_link) 2>conftest.er1 10064 1.1 christos ac_status=$? 10065 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10066 1.1 christos rm -f conftest.er1 10067 1.1 christos cat conftest.err >&5 10068 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10069 1.1 christos (exit $ac_status); } && 10070 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10071 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10072 1.1 christos (eval $ac_try) 2>&5 10073 1.1 christos ac_status=$? 10074 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10075 1.1 christos (exit $ac_status); }; } && 10076 1.1 christos { ac_try='test -s conftest$ac_exeext' 10077 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10078 1.1 christos (eval $ac_try) 2>&5 10079 1.1 christos ac_status=$? 10080 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10081 1.1 christos (exit $ac_status); }; }; then 10082 1.1 christos ac_cv_lib_kvm_kvm_open=yes 10083 1.1 christos else 10084 1.1 christos echo "$as_me: failed program was:" >&5 10085 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10086 1.1 christos 10087 1.1 christos ac_cv_lib_kvm_kvm_open=no 10088 1.1 christos fi 10089 1.1 christos rm -f conftest.err conftest.$ac_objext \ 10090 1.1 christos conftest$ac_exeext conftest.$ac_ext 10091 1.1 christos LIBS=$ac_check_lib_save_LIBS 10092 1.1 christos fi 10093 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 10094 1.1 christos echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 10095 1.1 christos if test $ac_cv_lib_kvm_kvm_open = yes; then 10096 1.1 christos LIBS="-lkvm $LIBS" 10097 1.1 christos fi 10098 1.1 christos 10099 1.1 christos # Check for the 4.4BSD definition of getloadavg. 10100 1.1 christos echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 10101 1.1 christos echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 10102 1.1 christos if test "${ac_cv_lib_util_getloadavg+set}" = set; then 10103 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10104 1.1 christos else 10105 1.1 christos ac_check_lib_save_LIBS=$LIBS 10106 1.1 christos LIBS="-lutil $LIBS" 10107 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10108 1.1 christos /* confdefs.h. */ 10109 1.1 christos _ACEOF 10110 1.1 christos cat confdefs.h >>conftest.$ac_ext 10111 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10112 1.1 christos /* end confdefs.h. */ 10113 1.1 christos 10114 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 10115 1.1 christos #ifdef __cplusplus 10116 1.1 christos extern "C" 10117 1.1 christos #endif 10118 1.1 christos /* We use char because int might match the return type of a gcc2 10119 1.1 christos builtin and then its argument prototype would still apply. */ 10120 1.1 christos char getloadavg (); 10121 1.1 christos int 10122 1.1 christos main () 10123 1.1 christos { 10124 1.1 christos getloadavg (); 10125 1.1 christos ; 10126 1.1 christos return 0; 10127 1.1 christos } 10128 1.1 christos _ACEOF 10129 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 10130 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10131 1.1 christos (eval $ac_link) 2>conftest.er1 10132 1.1 christos ac_status=$? 10133 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10134 1.1 christos rm -f conftest.er1 10135 1.1 christos cat conftest.err >&5 10136 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10137 1.1 christos (exit $ac_status); } && 10138 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10139 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10140 1.1 christos (eval $ac_try) 2>&5 10141 1.1 christos ac_status=$? 10142 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10143 1.1 christos (exit $ac_status); }; } && 10144 1.1 christos { ac_try='test -s conftest$ac_exeext' 10145 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10146 1.1 christos (eval $ac_try) 2>&5 10147 1.1 christos ac_status=$? 10148 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10149 1.1 christos (exit $ac_status); }; }; then 10150 1.1 christos ac_cv_lib_util_getloadavg=yes 10151 1.1 christos else 10152 1.1 christos echo "$as_me: failed program was:" >&5 10153 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10154 1.1 christos 10155 1.1 christos ac_cv_lib_util_getloadavg=no 10156 1.1 christos fi 10157 1.1 christos rm -f conftest.err conftest.$ac_objext \ 10158 1.1 christos conftest$ac_exeext conftest.$ac_ext 10159 1.1 christos LIBS=$ac_check_lib_save_LIBS 10160 1.1 christos fi 10161 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 10162 1.1 christos echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 10163 1.1 christos if test $ac_cv_lib_util_getloadavg = yes; then 10164 1.1 christos LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 10165 1.1 christos fi 10166 1.1 christos 10167 1.1 christos fi 10168 1.1 christos 10169 1.1 christos if test $ac_have_func = no; then 10170 1.1 christos # There is a commonly available library for RS/6000 AIX. 10171 1.1 christos # Since it is not a standard part of AIX, it might be installed locally. 10172 1.1 christos ac_getloadavg_LIBS=$LIBS 10173 1.1 christos LIBS="-L/usr/local/lib $LIBS" 10174 1.1 christos echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 10175 1.1 christos echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 10176 1.1 christos if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then 10177 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10178 1.1 christos else 10179 1.1 christos ac_check_lib_save_LIBS=$LIBS 10180 1.1 christos LIBS="-lgetloadavg $LIBS" 10181 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10182 1.1 christos /* confdefs.h. */ 10183 1.1 christos _ACEOF 10184 1.1 christos cat confdefs.h >>conftest.$ac_ext 10185 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10186 1.1 christos /* end confdefs.h. */ 10187 1.1 christos 10188 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 10189 1.1 christos #ifdef __cplusplus 10190 1.1 christos extern "C" 10191 1.1 christos #endif 10192 1.1 christos /* We use char because int might match the return type of a gcc2 10193 1.1 christos builtin and then its argument prototype would still apply. */ 10194 1.1 christos char getloadavg (); 10195 1.1 christos int 10196 1.1 christos main () 10197 1.1 christos { 10198 1.1 christos getloadavg (); 10199 1.1 christos ; 10200 1.1 christos return 0; 10201 1.1 christos } 10202 1.1 christos _ACEOF 10203 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 10204 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10205 1.1 christos (eval $ac_link) 2>conftest.er1 10206 1.1 christos ac_status=$? 10207 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10208 1.1 christos rm -f conftest.er1 10209 1.1 christos cat conftest.err >&5 10210 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10211 1.1 christos (exit $ac_status); } && 10212 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10213 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10214 1.1 christos (eval $ac_try) 2>&5 10215 1.1 christos ac_status=$? 10216 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 1.1 christos (exit $ac_status); }; } && 10218 1.1 christos { ac_try='test -s conftest$ac_exeext' 10219 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10220 1.1 christos (eval $ac_try) 2>&5 10221 1.1 christos ac_status=$? 10222 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10223 1.1 christos (exit $ac_status); }; }; then 10224 1.1 christos ac_cv_lib_getloadavg_getloadavg=yes 10225 1.1 christos else 10226 1.1 christos echo "$as_me: failed program was:" >&5 10227 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10228 1.1 christos 10229 1.1 christos ac_cv_lib_getloadavg_getloadavg=no 10230 1.1 christos fi 10231 1.1 christos rm -f conftest.err conftest.$ac_objext \ 10232 1.1 christos conftest$ac_exeext conftest.$ac_ext 10233 1.1 christos LIBS=$ac_check_lib_save_LIBS 10234 1.1 christos fi 10235 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 10236 1.1 christos echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 10237 1.1 christos if test $ac_cv_lib_getloadavg_getloadavg = yes; then 10238 1.1 christos LIBS="-lgetloadavg $LIBS" 10239 1.1 christos else 10240 1.1 christos LIBS=$ac_getloadavg_LIBS 10241 1.1 christos fi 10242 1.1 christos 10243 1.1 christos fi 10244 1.1 christos 10245 1.1 christos # Make sure it is really in the library, if we think we found it, 10246 1.1 christos # otherwise set up the replacement function. 10247 1.1 christos 10248 1.1 christos for ac_func in getloadavg 10249 1.1 christos do 10250 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10251 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 10252 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10253 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 10254 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10255 1.1 christos else 10256 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10257 1.1 christos /* confdefs.h. */ 10258 1.1 christos _ACEOF 10259 1.1 christos cat confdefs.h >>conftest.$ac_ext 10260 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10261 1.1 christos /* end confdefs.h. */ 10262 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10263 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10264 1.1 christos #define $ac_func innocuous_$ac_func 10265 1.1 christos 10266 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 10267 1.1 christos which can conflict with char $ac_func (); below. 10268 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10269 1.1 christos <limits.h> exists even on freestanding compilers. */ 10270 1.1 christos 10271 1.1 christos #ifdef __STDC__ 10272 1.1 christos # include <limits.h> 10273 1.1 christos #else 10274 1.1 christos # include <assert.h> 10275 1.1 christos #endif 10276 1.1 christos 10277 1.1 christos #undef $ac_func 10278 1.1 christos 10279 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 10280 1.1 christos #ifdef __cplusplus 10281 1.1 christos extern "C" 10282 1.1 christos { 10283 1.1 christos #endif 10284 1.1 christos /* We use char because int might match the return type of a gcc2 10285 1.1 christos builtin and then its argument prototype would still apply. */ 10286 1.1 christos char $ac_func (); 10287 1.1 christos /* The GNU C library defines this for functions which it implements 10288 1.1 christos to always fail with ENOSYS. Some functions are actually named 10289 1.1 christos something starting with __ and the normal name is an alias. */ 10290 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10291 1.1 christos choke me 10292 1.1 christos #else 10293 1.1 christos char (*f) () = $ac_func; 10294 1.1 christos #endif 10295 1.1 christos #ifdef __cplusplus 10296 1.1 christos } 10297 1.1 christos #endif 10298 1.1 christos 10299 1.1 christos int 10300 1.1 christos main () 10301 1.1 christos { 10302 1.1 christos return f != $ac_func; 10303 1.1 christos ; 10304 1.1 christos return 0; 10305 1.1 christos } 10306 1.1 christos _ACEOF 10307 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 10308 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10309 1.1 christos (eval $ac_link) 2>conftest.er1 10310 1.1 christos ac_status=$? 10311 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10312 1.1 christos rm -f conftest.er1 10313 1.1 christos cat conftest.err >&5 10314 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10315 1.1 christos (exit $ac_status); } && 10316 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10317 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10318 1.1 christos (eval $ac_try) 2>&5 10319 1.1 christos ac_status=$? 10320 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10321 1.1 christos (exit $ac_status); }; } && 10322 1.1 christos { ac_try='test -s conftest$ac_exeext' 10323 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10324 1.1 christos (eval $ac_try) 2>&5 10325 1.1 christos ac_status=$? 10326 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10327 1.1 christos (exit $ac_status); }; }; then 10328 1.1 christos eval "$as_ac_var=yes" 10329 1.1 christos else 10330 1.1 christos echo "$as_me: failed program was:" >&5 10331 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10332 1.1 christos 10333 1.1 christos eval "$as_ac_var=no" 10334 1.1 christos fi 10335 1.1 christos rm -f conftest.err conftest.$ac_objext \ 10336 1.1 christos conftest$ac_exeext conftest.$ac_ext 10337 1.1 christos fi 10338 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10339 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10340 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 10341 1.1 christos cat >>confdefs.h <<_ACEOF 10342 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10343 1.1 christos _ACEOF 10344 1.1 christos 10345 1.1 christos else 10346 1.1 christos case $LIBOBJS in 10347 1.1 christos "getloadavg.$ac_objext" | \ 10348 1.1 christos *" getloadavg.$ac_objext" | \ 10349 1.1 christos "getloadavg.$ac_objext "* | \ 10350 1.1 christos *" getloadavg.$ac_objext "* ) ;; 10351 1.1 christos *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" ;; 10352 1.1 christos esac 10353 1.1 christos 10354 1.1 christos 10355 1.1 christos cat >>confdefs.h <<\_ACEOF 10356 1.1 christos #define C_GETLOADAVG 1 10357 1.1 christos _ACEOF 10358 1.1 christos 10359 1.1 christos # Figure out what our getloadavg.c needs. 10360 1.1 christos ac_have_func=no 10361 1.1 christos if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 10362 1.1 christos echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 10363 1.1 christos echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 10364 1.1 christos if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 10365 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10366 1.1 christos fi 10367 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 10368 1.1 christos echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 10369 1.1 christos else 10370 1.1 christos # Is the header compilable? 10371 1.1 christos echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 10372 1.1 christos echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6 10373 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10374 1.1 christos /* confdefs.h. */ 10375 1.1 christos _ACEOF 10376 1.1 christos cat confdefs.h >>conftest.$ac_ext 10377 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10378 1.1 christos /* end confdefs.h. */ 10379 1.1 christos $ac_includes_default 10380 1.1 christos #include <sys/dg_sys_info.h> 10381 1.1 christos _ACEOF 10382 1.1 christos rm -f conftest.$ac_objext 10383 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10384 1.1 christos (eval $ac_compile) 2>conftest.er1 10385 1.1 christos ac_status=$? 10386 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10387 1.1 christos rm -f conftest.er1 10388 1.1 christos cat conftest.err >&5 10389 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10390 1.1 christos (exit $ac_status); } && 10391 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10392 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10393 1.1 christos (eval $ac_try) 2>&5 10394 1.1 christos ac_status=$? 10395 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10396 1.1 christos (exit $ac_status); }; } && 10397 1.1 christos { ac_try='test -s conftest.$ac_objext' 10398 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10399 1.1 christos (eval $ac_try) 2>&5 10400 1.1 christos ac_status=$? 10401 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 1.1 christos (exit $ac_status); }; }; then 10403 1.1 christos ac_header_compiler=yes 10404 1.1 christos else 10405 1.1 christos echo "$as_me: failed program was:" >&5 10406 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10407 1.1 christos 10408 1.1 christos ac_header_compiler=no 10409 1.1 christos fi 10410 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10411 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10412 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 10413 1.1 christos 10414 1.1 christos # Is the header present? 10415 1.1 christos echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 10416 1.1 christos echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6 10417 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10418 1.1 christos /* confdefs.h. */ 10419 1.1 christos _ACEOF 10420 1.1 christos cat confdefs.h >>conftest.$ac_ext 10421 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10422 1.1 christos /* end confdefs.h. */ 10423 1.1 christos #include <sys/dg_sys_info.h> 10424 1.1 christos _ACEOF 10425 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10426 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10427 1.1 christos ac_status=$? 10428 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10429 1.1 christos rm -f conftest.er1 10430 1.1 christos cat conftest.err >&5 10431 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10432 1.1 christos (exit $ac_status); } >/dev/null; then 10433 1.1 christos if test -s conftest.err; then 10434 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 10435 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10436 1.1 christos else 10437 1.1 christos ac_cpp_err= 10438 1.1 christos fi 10439 1.1 christos else 10440 1.1 christos ac_cpp_err=yes 10441 1.1 christos fi 10442 1.1 christos if test -z "$ac_cpp_err"; then 10443 1.1 christos ac_header_preproc=yes 10444 1.1 christos else 10445 1.1 christos echo "$as_me: failed program was:" >&5 10446 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10447 1.1 christos 10448 1.1 christos ac_header_preproc=no 10449 1.1 christos fi 10450 1.1 christos rm -f conftest.err conftest.$ac_ext 10451 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10452 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 10453 1.1 christos 10454 1.1 christos # So? What about this header? 10455 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10456 1.1 christos yes:no: ) 10457 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 10458 1.1 christos echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10459 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 10460 1.1 christos echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} 10461 1.1 christos ac_header_preproc=yes 10462 1.1 christos ;; 10463 1.1 christos no:yes:* ) 10464 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 10465 1.1 christos echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} 10466 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 10467 1.1 christos echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} 10468 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 10469 1.1 christos echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} 10470 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 10471 1.1 christos echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} 10472 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 10473 1.1 christos echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} 10474 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 10475 1.1 christos echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} 10476 1.1 christos ( 10477 1.1 christos cat <<\_ASBOX 10478 1.1 christos ## ------------------------------- ## 10479 1.1 christos ## Report this to bug-make (at] gnu.org ## 10480 1.1 christos ## ------------------------------- ## 10481 1.1 christos _ASBOX 10482 1.1 christos ) | 10483 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 10484 1.1 christos ;; 10485 1.1 christos esac 10486 1.1 christos echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 10487 1.1 christos echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 10488 1.1 christos if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 10489 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10490 1.1 christos else 10491 1.1 christos ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc 10492 1.1 christos fi 10493 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 10494 1.1 christos echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 10495 1.1 christos 10496 1.1 christos fi 10497 1.1 christos if test $ac_cv_header_sys_dg_sys_info_h = yes; then 10498 1.1 christos ac_have_func=yes 10499 1.1 christos 10500 1.1 christos cat >>confdefs.h <<\_ACEOF 10501 1.1 christos #define DGUX 1 10502 1.1 christos _ACEOF 10503 1.1 christos 10504 1.1 christos 10505 1.1 christos echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 10506 1.1 christos echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 10507 1.1 christos if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then 10508 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10509 1.1 christos else 10510 1.1 christos ac_check_lib_save_LIBS=$LIBS 10511 1.1 christos LIBS="-ldgc $LIBS" 10512 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10513 1.1 christos /* confdefs.h. */ 10514 1.1 christos _ACEOF 10515 1.1 christos cat confdefs.h >>conftest.$ac_ext 10516 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10517 1.1 christos /* end confdefs.h. */ 10518 1.1 christos 10519 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 10520 1.1 christos #ifdef __cplusplus 10521 1.1 christos extern "C" 10522 1.1 christos #endif 10523 1.1 christos /* We use char because int might match the return type of a gcc2 10524 1.1 christos builtin and then its argument prototype would still apply. */ 10525 1.1 christos char dg_sys_info (); 10526 1.1 christos int 10527 1.1 christos main () 10528 1.1 christos { 10529 1.1 christos dg_sys_info (); 10530 1.1 christos ; 10531 1.1 christos return 0; 10532 1.1 christos } 10533 1.1 christos _ACEOF 10534 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 10535 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10536 1.1 christos (eval $ac_link) 2>conftest.er1 10537 1.1 christos ac_status=$? 10538 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10539 1.1 christos rm -f conftest.er1 10540 1.1 christos cat conftest.err >&5 10541 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10542 1.1 christos (exit $ac_status); } && 10543 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10544 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10545 1.1 christos (eval $ac_try) 2>&5 10546 1.1 christos ac_status=$? 10547 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10548 1.1 christos (exit $ac_status); }; } && 10549 1.1 christos { ac_try='test -s conftest$ac_exeext' 10550 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10551 1.1 christos (eval $ac_try) 2>&5 10552 1.1 christos ac_status=$? 10553 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10554 1.1 christos (exit $ac_status); }; }; then 10555 1.1 christos ac_cv_lib_dgc_dg_sys_info=yes 10556 1.1 christos else 10557 1.1 christos echo "$as_me: failed program was:" >&5 10558 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10559 1.1 christos 10560 1.1 christos ac_cv_lib_dgc_dg_sys_info=no 10561 1.1 christos fi 10562 1.1 christos rm -f conftest.err conftest.$ac_objext \ 10563 1.1 christos conftest$ac_exeext conftest.$ac_ext 10564 1.1 christos LIBS=$ac_check_lib_save_LIBS 10565 1.1 christos fi 10566 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 10567 1.1 christos echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 10568 1.1 christos if test $ac_cv_lib_dgc_dg_sys_info = yes; then 10569 1.1 christos cat >>confdefs.h <<_ACEOF 10570 1.1 christos #define HAVE_LIBDGC 1 10571 1.1 christos _ACEOF 10572 1.1 christos 10573 1.1 christos LIBS="-ldgc $LIBS" 10574 1.1 christos 10575 1.1 christos fi 10576 1.1 christos 10577 1.1 christos fi 10578 1.1 christos 10579 1.1 christos 10580 1.1 christos 10581 1.1 christos if test "${ac_cv_header_locale_h+set}" = set; then 10582 1.1 christos echo "$as_me:$LINENO: checking for locale.h" >&5 10583 1.1 christos echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 10584 1.1 christos if test "${ac_cv_header_locale_h+set}" = set; then 10585 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10586 1.1 christos fi 10587 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 10588 1.1 christos echo "${ECHO_T}$ac_cv_header_locale_h" >&6 10589 1.1 christos else 10590 1.1 christos # Is the header compilable? 10591 1.1 christos echo "$as_me:$LINENO: checking locale.h usability" >&5 10592 1.1 christos echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6 10593 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10594 1.1 christos /* confdefs.h. */ 10595 1.1 christos _ACEOF 10596 1.1 christos cat confdefs.h >>conftest.$ac_ext 10597 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10598 1.1 christos /* end confdefs.h. */ 10599 1.1 christos $ac_includes_default 10600 1.1 christos #include <locale.h> 10601 1.1 christos _ACEOF 10602 1.1 christos rm -f conftest.$ac_objext 10603 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10604 1.1 christos (eval $ac_compile) 2>conftest.er1 10605 1.1 christos ac_status=$? 10606 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10607 1.1 christos rm -f conftest.er1 10608 1.1 christos cat conftest.err >&5 10609 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10610 1.1 christos (exit $ac_status); } && 10611 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10612 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10613 1.1 christos (eval $ac_try) 2>&5 10614 1.1 christos ac_status=$? 10615 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10616 1.1 christos (exit $ac_status); }; } && 10617 1.1 christos { ac_try='test -s conftest.$ac_objext' 10618 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10619 1.1 christos (eval $ac_try) 2>&5 10620 1.1 christos ac_status=$? 10621 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10622 1.1 christos (exit $ac_status); }; }; then 10623 1.1 christos ac_header_compiler=yes 10624 1.1 christos else 10625 1.1 christos echo "$as_me: failed program was:" >&5 10626 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10627 1.1 christos 10628 1.1 christos ac_header_compiler=no 10629 1.1 christos fi 10630 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10631 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10632 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 10633 1.1 christos 10634 1.1 christos # Is the header present? 10635 1.1 christos echo "$as_me:$LINENO: checking locale.h presence" >&5 10636 1.1 christos echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6 10637 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10638 1.1 christos /* confdefs.h. */ 10639 1.1 christos _ACEOF 10640 1.1 christos cat confdefs.h >>conftest.$ac_ext 10641 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10642 1.1 christos /* end confdefs.h. */ 10643 1.1 christos #include <locale.h> 10644 1.1 christos _ACEOF 10645 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10646 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10647 1.1 christos ac_status=$? 10648 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10649 1.1 christos rm -f conftest.er1 10650 1.1 christos cat conftest.err >&5 10651 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10652 1.1 christos (exit $ac_status); } >/dev/null; then 10653 1.1 christos if test -s conftest.err; then 10654 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 10655 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10656 1.1 christos else 10657 1.1 christos ac_cpp_err= 10658 1.1 christos fi 10659 1.1 christos else 10660 1.1 christos ac_cpp_err=yes 10661 1.1 christos fi 10662 1.1 christos if test -z "$ac_cpp_err"; then 10663 1.1 christos ac_header_preproc=yes 10664 1.1 christos else 10665 1.1 christos echo "$as_me: failed program was:" >&5 10666 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10667 1.1 christos 10668 1.1 christos ac_header_preproc=no 10669 1.1 christos fi 10670 1.1 christos rm -f conftest.err conftest.$ac_ext 10671 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10672 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 10673 1.1 christos 10674 1.1 christos # So? What about this header? 10675 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10676 1.1 christos yes:no: ) 10677 1.1 christos { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 10678 1.1 christos echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10679 1.1 christos { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 10680 1.1 christos echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} 10681 1.1 christos ac_header_preproc=yes 10682 1.1 christos ;; 10683 1.1 christos no:yes:* ) 10684 1.1 christos { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 10685 1.1 christos echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} 10686 1.1 christos { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 10687 1.1 christos echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} 10688 1.1 christos { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 10689 1.1 christos echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} 10690 1.1 christos { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 10691 1.1 christos echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} 10692 1.1 christos { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 10693 1.1 christos echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} 10694 1.1 christos { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 10695 1.1 christos echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} 10696 1.1 christos ( 10697 1.1 christos cat <<\_ASBOX 10698 1.1 christos ## ------------------------------- ## 10699 1.1 christos ## Report this to bug-make (at] gnu.org ## 10700 1.1 christos ## ------------------------------- ## 10701 1.1 christos _ASBOX 10702 1.1 christos ) | 10703 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 10704 1.1 christos ;; 10705 1.1 christos esac 10706 1.1 christos echo "$as_me:$LINENO: checking for locale.h" >&5 10707 1.1 christos echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 10708 1.1 christos if test "${ac_cv_header_locale_h+set}" = set; then 10709 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10710 1.1 christos else 10711 1.1 christos ac_cv_header_locale_h=$ac_header_preproc 10712 1.1 christos fi 10713 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 10714 1.1 christos echo "${ECHO_T}$ac_cv_header_locale_h" >&6 10715 1.1 christos 10716 1.1 christos fi 10717 1.1 christos 10718 1.1 christos 10719 1.1 christos 10720 1.1 christos for ac_func in setlocale 10721 1.1 christos do 10722 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10723 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 10724 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10725 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 10726 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10727 1.1 christos else 10728 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10729 1.1 christos /* confdefs.h. */ 10730 1.1 christos _ACEOF 10731 1.1 christos cat confdefs.h >>conftest.$ac_ext 10732 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10733 1.1 christos /* end confdefs.h. */ 10734 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 10735 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10736 1.1 christos #define $ac_func innocuous_$ac_func 10737 1.1 christos 10738 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 10739 1.1 christos which can conflict with char $ac_func (); below. 10740 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10741 1.1 christos <limits.h> exists even on freestanding compilers. */ 10742 1.1 christos 10743 1.1 christos #ifdef __STDC__ 10744 1.1 christos # include <limits.h> 10745 1.1 christos #else 10746 1.1 christos # include <assert.h> 10747 1.1 christos #endif 10748 1.1 christos 10749 1.1 christos #undef $ac_func 10750 1.1 christos 10751 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 10752 1.1 christos #ifdef __cplusplus 10753 1.1 christos extern "C" 10754 1.1 christos { 10755 1.1 christos #endif 10756 1.1 christos /* We use char because int might match the return type of a gcc2 10757 1.1 christos builtin and then its argument prototype would still apply. */ 10758 1.1 christos char $ac_func (); 10759 1.1 christos /* The GNU C library defines this for functions which it implements 10760 1.1 christos to always fail with ENOSYS. Some functions are actually named 10761 1.1 christos something starting with __ and the normal name is an alias. */ 10762 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 10763 1.1 christos choke me 10764 1.1 christos #else 10765 1.1 christos char (*f) () = $ac_func; 10766 1.1 christos #endif 10767 1.1 christos #ifdef __cplusplus 10768 1.1 christos } 10769 1.1 christos #endif 10770 1.1 christos 10771 1.1 christos int 10772 1.1 christos main () 10773 1.1 christos { 10774 1.1 christos return f != $ac_func; 10775 1.1 christos ; 10776 1.1 christos return 0; 10777 1.1 christos } 10778 1.1 christos _ACEOF 10779 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 10780 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10781 1.1 christos (eval $ac_link) 2>conftest.er1 10782 1.1 christos ac_status=$? 10783 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10784 1.1 christos rm -f conftest.er1 10785 1.1 christos cat conftest.err >&5 10786 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10787 1.1 christos (exit $ac_status); } && 10788 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10789 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10790 1.1 christos (eval $ac_try) 2>&5 10791 1.1 christos ac_status=$? 10792 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10793 1.1 christos (exit $ac_status); }; } && 10794 1.1 christos { ac_try='test -s conftest$ac_exeext' 10795 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10796 1.1 christos (eval $ac_try) 2>&5 10797 1.1 christos ac_status=$? 10798 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10799 1.1 christos (exit $ac_status); }; }; then 10800 1.1 christos eval "$as_ac_var=yes" 10801 1.1 christos else 10802 1.1 christos echo "$as_me: failed program was:" >&5 10803 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10804 1.1 christos 10805 1.1 christos eval "$as_ac_var=no" 10806 1.1 christos fi 10807 1.1 christos rm -f conftest.err conftest.$ac_objext \ 10808 1.1 christos conftest$ac_exeext conftest.$ac_ext 10809 1.1 christos fi 10810 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10811 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10812 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 10813 1.1 christos cat >>confdefs.h <<_ACEOF 10814 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10815 1.1 christos _ACEOF 10816 1.1 christos 10817 1.1 christos fi 10818 1.1 christos done 10819 1.1 christos 10820 1.1 christos 10821 1.1 christos # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it 10822 1.1 christos # uses stabs), but it is still SVR4. We cannot check for <elf.h> because 10823 1.1 christos # Irix 4.0.5F has the header but not the library. 10824 1.1 christos if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 10825 1.1 christos ac_have_func=yes 10826 1.1 christos 10827 1.1 christos cat >>confdefs.h <<\_ACEOF 10828 1.1 christos #define SVR4 1 10829 1.1 christos _ACEOF 10830 1.1 christos 10831 1.1 christos fi 10832 1.1 christos 10833 1.1 christos if test $ac_have_func = no; then 10834 1.1 christos if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 10835 1.1 christos echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 10836 1.1 christos echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 10837 1.1 christos if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 10838 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10839 1.1 christos fi 10840 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 10841 1.1 christos echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 10842 1.1 christos else 10843 1.1 christos # Is the header compilable? 10844 1.1 christos echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 10845 1.1 christos echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6 10846 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10847 1.1 christos /* confdefs.h. */ 10848 1.1 christos _ACEOF 10849 1.1 christos cat confdefs.h >>conftest.$ac_ext 10850 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10851 1.1 christos /* end confdefs.h. */ 10852 1.1 christos $ac_includes_default 10853 1.1 christos #include <inq_stats/cpustats.h> 10854 1.1 christos _ACEOF 10855 1.1 christos rm -f conftest.$ac_objext 10856 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10857 1.1 christos (eval $ac_compile) 2>conftest.er1 10858 1.1 christos ac_status=$? 10859 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10860 1.1 christos rm -f conftest.er1 10861 1.1 christos cat conftest.err >&5 10862 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10863 1.1 christos (exit $ac_status); } && 10864 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 10865 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10866 1.1 christos (eval $ac_try) 2>&5 10867 1.1 christos ac_status=$? 10868 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10869 1.1 christos (exit $ac_status); }; } && 10870 1.1 christos { ac_try='test -s conftest.$ac_objext' 10871 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10872 1.1 christos (eval $ac_try) 2>&5 10873 1.1 christos ac_status=$? 10874 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10875 1.1 christos (exit $ac_status); }; }; then 10876 1.1 christos ac_header_compiler=yes 10877 1.1 christos else 10878 1.1 christos echo "$as_me: failed program was:" >&5 10879 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10880 1.1 christos 10881 1.1 christos ac_header_compiler=no 10882 1.1 christos fi 10883 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10884 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10885 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 10886 1.1 christos 10887 1.1 christos # Is the header present? 10888 1.1 christos echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 10889 1.1 christos echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6 10890 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10891 1.1 christos /* confdefs.h. */ 10892 1.1 christos _ACEOF 10893 1.1 christos cat confdefs.h >>conftest.$ac_ext 10894 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10895 1.1 christos /* end confdefs.h. */ 10896 1.1 christos #include <inq_stats/cpustats.h> 10897 1.1 christos _ACEOF 10898 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10899 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10900 1.1 christos ac_status=$? 10901 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10902 1.1 christos rm -f conftest.er1 10903 1.1 christos cat conftest.err >&5 10904 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10905 1.1 christos (exit $ac_status); } >/dev/null; then 10906 1.1 christos if test -s conftest.err; then 10907 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 10908 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10909 1.1 christos else 10910 1.1 christos ac_cpp_err= 10911 1.1 christos fi 10912 1.1 christos else 10913 1.1 christos ac_cpp_err=yes 10914 1.1 christos fi 10915 1.1 christos if test -z "$ac_cpp_err"; then 10916 1.1 christos ac_header_preproc=yes 10917 1.1 christos else 10918 1.1 christos echo "$as_me: failed program was:" >&5 10919 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10920 1.1 christos 10921 1.1 christos ac_header_preproc=no 10922 1.1 christos fi 10923 1.1 christos rm -f conftest.err conftest.$ac_ext 10924 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10925 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 10926 1.1 christos 10927 1.1 christos # So? What about this header? 10928 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10929 1.1 christos yes:no: ) 10930 1.1 christos { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 10931 1.1 christos echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10932 1.1 christos { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 10933 1.1 christos echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} 10934 1.1 christos ac_header_preproc=yes 10935 1.1 christos ;; 10936 1.1 christos no:yes:* ) 10937 1.1 christos { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 10938 1.1 christos echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} 10939 1.1 christos { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 10940 1.1 christos echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} 10941 1.1 christos { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 10942 1.1 christos echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} 10943 1.1 christos { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 10944 1.1 christos echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} 10945 1.1 christos { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 10946 1.1 christos echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} 10947 1.1 christos { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 10948 1.1 christos echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} 10949 1.1 christos ( 10950 1.1 christos cat <<\_ASBOX 10951 1.1 christos ## ------------------------------- ## 10952 1.1 christos ## Report this to bug-make (at] gnu.org ## 10953 1.1 christos ## ------------------------------- ## 10954 1.1 christos _ASBOX 10955 1.1 christos ) | 10956 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 10957 1.1 christos ;; 10958 1.1 christos esac 10959 1.1 christos echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 10960 1.1 christos echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 10961 1.1 christos if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 10962 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10963 1.1 christos else 10964 1.1 christos ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc 10965 1.1 christos fi 10966 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 10967 1.1 christos echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 10968 1.1 christos 10969 1.1 christos fi 10970 1.1 christos if test $ac_cv_header_inq_stats_cpustats_h = yes; then 10971 1.1 christos ac_have_func=yes 10972 1.1 christos 10973 1.1 christos cat >>confdefs.h <<\_ACEOF 10974 1.1 christos #define UMAX 1 10975 1.1 christos _ACEOF 10976 1.1 christos 10977 1.1 christos 10978 1.1 christos cat >>confdefs.h <<\_ACEOF 10979 1.1 christos #define UMAX4_3 1 10980 1.1 christos _ACEOF 10981 1.1 christos 10982 1.1 christos fi 10983 1.1 christos 10984 1.1 christos 10985 1.1 christos fi 10986 1.1 christos 10987 1.1 christos if test $ac_have_func = no; then 10988 1.1 christos if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 10989 1.1 christos echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 10990 1.1 christos echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 10991 1.1 christos if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 10992 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10993 1.1 christos fi 10994 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 10995 1.1 christos echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 10996 1.1 christos else 10997 1.1 christos # Is the header compilable? 10998 1.1 christos echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 10999 1.1 christos echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6 11000 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11001 1.1 christos /* confdefs.h. */ 11002 1.1 christos _ACEOF 11003 1.1 christos cat confdefs.h >>conftest.$ac_ext 11004 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11005 1.1 christos /* end confdefs.h. */ 11006 1.1 christos $ac_includes_default 11007 1.1 christos #include <sys/cpustats.h> 11008 1.1 christos _ACEOF 11009 1.1 christos rm -f conftest.$ac_objext 11010 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11011 1.1 christos (eval $ac_compile) 2>conftest.er1 11012 1.1 christos ac_status=$? 11013 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11014 1.1 christos rm -f conftest.er1 11015 1.1 christos cat conftest.err >&5 11016 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11017 1.1 christos (exit $ac_status); } && 11018 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11019 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11020 1.1 christos (eval $ac_try) 2>&5 11021 1.1 christos ac_status=$? 11022 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11023 1.1 christos (exit $ac_status); }; } && 11024 1.1 christos { ac_try='test -s conftest.$ac_objext' 11025 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11026 1.1 christos (eval $ac_try) 2>&5 11027 1.1 christos ac_status=$? 11028 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11029 1.1 christos (exit $ac_status); }; }; then 11030 1.1 christos ac_header_compiler=yes 11031 1.1 christos else 11032 1.1 christos echo "$as_me: failed program was:" >&5 11033 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11034 1.1 christos 11035 1.1 christos ac_header_compiler=no 11036 1.1 christos fi 11037 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11038 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11039 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 11040 1.1 christos 11041 1.1 christos # Is the header present? 11042 1.1 christos echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 11043 1.1 christos echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6 11044 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11045 1.1 christos /* confdefs.h. */ 11046 1.1 christos _ACEOF 11047 1.1 christos cat confdefs.h >>conftest.$ac_ext 11048 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11049 1.1 christos /* end confdefs.h. */ 11050 1.1 christos #include <sys/cpustats.h> 11051 1.1 christos _ACEOF 11052 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11053 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11054 1.1 christos ac_status=$? 11055 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11056 1.1 christos rm -f conftest.er1 11057 1.1 christos cat conftest.err >&5 11058 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11059 1.1 christos (exit $ac_status); } >/dev/null; then 11060 1.1 christos if test -s conftest.err; then 11061 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 11062 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11063 1.1 christos else 11064 1.1 christos ac_cpp_err= 11065 1.1 christos fi 11066 1.1 christos else 11067 1.1 christos ac_cpp_err=yes 11068 1.1 christos fi 11069 1.1 christos if test -z "$ac_cpp_err"; then 11070 1.1 christos ac_header_preproc=yes 11071 1.1 christos else 11072 1.1 christos echo "$as_me: failed program was:" >&5 11073 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11074 1.1 christos 11075 1.1 christos ac_header_preproc=no 11076 1.1 christos fi 11077 1.1 christos rm -f conftest.err conftest.$ac_ext 11078 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11079 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 11080 1.1 christos 11081 1.1 christos # So? What about this header? 11082 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11083 1.1 christos yes:no: ) 11084 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 11085 1.1 christos echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 11086 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 11087 1.1 christos echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} 11088 1.1 christos ac_header_preproc=yes 11089 1.1 christos ;; 11090 1.1 christos no:yes:* ) 11091 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 11092 1.1 christos echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} 11093 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 11094 1.1 christos echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} 11095 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 11096 1.1 christos echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} 11097 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 11098 1.1 christos echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} 11099 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 11100 1.1 christos echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} 11101 1.1 christos { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 11102 1.1 christos echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} 11103 1.1 christos ( 11104 1.1 christos cat <<\_ASBOX 11105 1.1 christos ## ------------------------------- ## 11106 1.1 christos ## Report this to bug-make (at] gnu.org ## 11107 1.1 christos ## ------------------------------- ## 11108 1.1 christos _ASBOX 11109 1.1 christos ) | 11110 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 11111 1.1 christos ;; 11112 1.1 christos esac 11113 1.1 christos echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 11114 1.1 christos echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 11115 1.1 christos if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 11116 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11117 1.1 christos else 11118 1.1 christos ac_cv_header_sys_cpustats_h=$ac_header_preproc 11119 1.1 christos fi 11120 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 11121 1.1 christos echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 11122 1.1 christos 11123 1.1 christos fi 11124 1.1 christos if test $ac_cv_header_sys_cpustats_h = yes; then 11125 1.1 christos ac_have_func=yes; cat >>confdefs.h <<\_ACEOF 11126 1.1 christos #define UMAX 1 11127 1.1 christos _ACEOF 11128 1.1 christos 11129 1.1 christos fi 11130 1.1 christos 11131 1.1 christos 11132 1.1 christos fi 11133 1.1 christos 11134 1.1 christos if test $ac_have_func = no; then 11135 1.1 christos 11136 1.1 christos for ac_header in mach/mach.h 11137 1.1 christos do 11138 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11139 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11140 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 11141 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11142 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11143 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11144 1.1 christos fi 11145 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11146 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11147 1.1 christos else 11148 1.1 christos # Is the header compilable? 11149 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 11150 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11151 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11152 1.1 christos /* confdefs.h. */ 11153 1.1 christos _ACEOF 11154 1.1 christos cat confdefs.h >>conftest.$ac_ext 11155 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11156 1.1 christos /* end confdefs.h. */ 11157 1.1 christos $ac_includes_default 11158 1.1 christos #include <$ac_header> 11159 1.1 christos _ACEOF 11160 1.1 christos rm -f conftest.$ac_objext 11161 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11162 1.1 christos (eval $ac_compile) 2>conftest.er1 11163 1.1 christos ac_status=$? 11164 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11165 1.1 christos rm -f conftest.er1 11166 1.1 christos cat conftest.err >&5 11167 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11168 1.1 christos (exit $ac_status); } && 11169 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11170 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11171 1.1 christos (eval $ac_try) 2>&5 11172 1.1 christos ac_status=$? 11173 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11174 1.1 christos (exit $ac_status); }; } && 11175 1.1 christos { ac_try='test -s conftest.$ac_objext' 11176 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11177 1.1 christos (eval $ac_try) 2>&5 11178 1.1 christos ac_status=$? 11179 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11180 1.1 christos (exit $ac_status); }; }; then 11181 1.1 christos ac_header_compiler=yes 11182 1.1 christos else 11183 1.1 christos echo "$as_me: failed program was:" >&5 11184 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11185 1.1 christos 11186 1.1 christos ac_header_compiler=no 11187 1.1 christos fi 11188 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11189 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11190 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 11191 1.1 christos 11192 1.1 christos # Is the header present? 11193 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 11194 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11195 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11196 1.1 christos /* confdefs.h. */ 11197 1.1 christos _ACEOF 11198 1.1 christos cat confdefs.h >>conftest.$ac_ext 11199 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11200 1.1 christos /* end confdefs.h. */ 11201 1.1 christos #include <$ac_header> 11202 1.1 christos _ACEOF 11203 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11204 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11205 1.1 christos ac_status=$? 11206 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11207 1.1 christos rm -f conftest.er1 11208 1.1 christos cat conftest.err >&5 11209 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11210 1.1 christos (exit $ac_status); } >/dev/null; then 11211 1.1 christos if test -s conftest.err; then 11212 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 11213 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11214 1.1 christos else 11215 1.1 christos ac_cpp_err= 11216 1.1 christos fi 11217 1.1 christos else 11218 1.1 christos ac_cpp_err=yes 11219 1.1 christos fi 11220 1.1 christos if test -z "$ac_cpp_err"; then 11221 1.1 christos ac_header_preproc=yes 11222 1.1 christos else 11223 1.1 christos echo "$as_me: failed program was:" >&5 11224 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11225 1.1 christos 11226 1.1 christos ac_header_preproc=no 11227 1.1 christos fi 11228 1.1 christos rm -f conftest.err conftest.$ac_ext 11229 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11230 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 11231 1.1 christos 11232 1.1 christos # So? What about this header? 11233 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11234 1.1 christos yes:no: ) 11235 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11236 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11237 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11238 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11239 1.1 christos ac_header_preproc=yes 11240 1.1 christos ;; 11241 1.1 christos no:yes:* ) 11242 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11243 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11244 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11245 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11246 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11247 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11248 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11249 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11250 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11251 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11252 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11253 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11254 1.1 christos ( 11255 1.1 christos cat <<\_ASBOX 11256 1.1 christos ## ------------------------------- ## 11257 1.1 christos ## Report this to bug-make (at] gnu.org ## 11258 1.1 christos ## ------------------------------- ## 11259 1.1 christos _ASBOX 11260 1.1 christos ) | 11261 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 11262 1.1 christos ;; 11263 1.1 christos esac 11264 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 11265 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11266 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11267 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11268 1.1 christos else 11269 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 11270 1.1 christos fi 11271 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11272 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11273 1.1 christos 11274 1.1 christos fi 11275 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 11276 1.1 christos cat >>confdefs.h <<_ACEOF 11277 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11278 1.1 christos _ACEOF 11279 1.1 christos 11280 1.1 christos fi 11281 1.1 christos 11282 1.1 christos done 11283 1.1 christos 11284 1.1 christos fi 11285 1.1 christos 11286 1.1 christos 11287 1.1 christos for ac_header in nlist.h 11288 1.1 christos do 11289 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11290 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11291 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 11292 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11293 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11294 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11295 1.1 christos fi 11296 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11297 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11298 1.1 christos else 11299 1.1 christos # Is the header compilable? 11300 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 11301 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11302 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11303 1.1 christos /* confdefs.h. */ 11304 1.1 christos _ACEOF 11305 1.1 christos cat confdefs.h >>conftest.$ac_ext 11306 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11307 1.1 christos /* end confdefs.h. */ 11308 1.1 christos $ac_includes_default 11309 1.1 christos #include <$ac_header> 11310 1.1 christos _ACEOF 11311 1.1 christos rm -f conftest.$ac_objext 11312 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11313 1.1 christos (eval $ac_compile) 2>conftest.er1 11314 1.1 christos ac_status=$? 11315 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11316 1.1 christos rm -f conftest.er1 11317 1.1 christos cat conftest.err >&5 11318 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11319 1.1 christos (exit $ac_status); } && 11320 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11321 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11322 1.1 christos (eval $ac_try) 2>&5 11323 1.1 christos ac_status=$? 11324 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11325 1.1 christos (exit $ac_status); }; } && 11326 1.1 christos { ac_try='test -s conftest.$ac_objext' 11327 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11328 1.1 christos (eval $ac_try) 2>&5 11329 1.1 christos ac_status=$? 11330 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11331 1.1 christos (exit $ac_status); }; }; then 11332 1.1 christos ac_header_compiler=yes 11333 1.1 christos else 11334 1.1 christos echo "$as_me: failed program was:" >&5 11335 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11336 1.1 christos 11337 1.1 christos ac_header_compiler=no 11338 1.1 christos fi 11339 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11340 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11341 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 11342 1.1 christos 11343 1.1 christos # Is the header present? 11344 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 11345 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11346 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11347 1.1 christos /* confdefs.h. */ 11348 1.1 christos _ACEOF 11349 1.1 christos cat confdefs.h >>conftest.$ac_ext 11350 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11351 1.1 christos /* end confdefs.h. */ 11352 1.1 christos #include <$ac_header> 11353 1.1 christos _ACEOF 11354 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11355 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11356 1.1 christos ac_status=$? 11357 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11358 1.1 christos rm -f conftest.er1 11359 1.1 christos cat conftest.err >&5 11360 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11361 1.1 christos (exit $ac_status); } >/dev/null; then 11362 1.1 christos if test -s conftest.err; then 11363 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 11364 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11365 1.1 christos else 11366 1.1 christos ac_cpp_err= 11367 1.1 christos fi 11368 1.1 christos else 11369 1.1 christos ac_cpp_err=yes 11370 1.1 christos fi 11371 1.1 christos if test -z "$ac_cpp_err"; then 11372 1.1 christos ac_header_preproc=yes 11373 1.1 christos else 11374 1.1 christos echo "$as_me: failed program was:" >&5 11375 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11376 1.1 christos 11377 1.1 christos ac_header_preproc=no 11378 1.1 christos fi 11379 1.1 christos rm -f conftest.err conftest.$ac_ext 11380 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11381 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 11382 1.1 christos 11383 1.1 christos # So? What about this header? 11384 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11385 1.1 christos yes:no: ) 11386 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11387 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11388 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11389 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11390 1.1 christos ac_header_preproc=yes 11391 1.1 christos ;; 11392 1.1 christos no:yes:* ) 11393 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11394 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11395 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11396 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11397 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11398 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11399 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11400 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11401 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11402 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11403 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11404 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11405 1.1 christos ( 11406 1.1 christos cat <<\_ASBOX 11407 1.1 christos ## ------------------------------- ## 11408 1.1 christos ## Report this to bug-make (at] gnu.org ## 11409 1.1 christos ## ------------------------------- ## 11410 1.1 christos _ASBOX 11411 1.1 christos ) | 11412 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 11413 1.1 christos ;; 11414 1.1 christos esac 11415 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 11416 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11417 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11418 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11419 1.1 christos else 11420 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 11421 1.1 christos fi 11422 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11423 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11424 1.1 christos 11425 1.1 christos fi 11426 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 11427 1.1 christos cat >>confdefs.h <<_ACEOF 11428 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11429 1.1 christos _ACEOF 11430 1.1 christos echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 11431 1.1 christos echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 11432 1.1 christos if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then 11433 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11434 1.1 christos else 11435 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11436 1.1 christos /* confdefs.h. */ 11437 1.1 christos _ACEOF 11438 1.1 christos cat confdefs.h >>conftest.$ac_ext 11439 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11440 1.1 christos /* end confdefs.h. */ 11441 1.1 christos #include <nlist.h> 11442 1.1 christos 11443 1.1 christos int 11444 1.1 christos main () 11445 1.1 christos { 11446 1.1 christos static struct nlist ac_aggr; 11447 1.1 christos if (ac_aggr.n_un.n_name) 11448 1.1 christos return 0; 11449 1.1 christos ; 11450 1.1 christos return 0; 11451 1.1 christos } 11452 1.1 christos _ACEOF 11453 1.1 christos rm -f conftest.$ac_objext 11454 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11455 1.1 christos (eval $ac_compile) 2>conftest.er1 11456 1.1 christos ac_status=$? 11457 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11458 1.1 christos rm -f conftest.er1 11459 1.1 christos cat conftest.err >&5 11460 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11461 1.1 christos (exit $ac_status); } && 11462 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11463 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11464 1.1 christos (eval $ac_try) 2>&5 11465 1.1 christos ac_status=$? 11466 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11467 1.1 christos (exit $ac_status); }; } && 11468 1.1 christos { ac_try='test -s conftest.$ac_objext' 11469 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11470 1.1 christos (eval $ac_try) 2>&5 11471 1.1 christos ac_status=$? 11472 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11473 1.1 christos (exit $ac_status); }; }; then 11474 1.1 christos ac_cv_member_struct_nlist_n_un_n_name=yes 11475 1.1 christos else 11476 1.1 christos echo "$as_me: failed program was:" >&5 11477 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11478 1.1 christos 11479 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11480 1.1 christos /* confdefs.h. */ 11481 1.1 christos _ACEOF 11482 1.1 christos cat confdefs.h >>conftest.$ac_ext 11483 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11484 1.1 christos /* end confdefs.h. */ 11485 1.1 christos #include <nlist.h> 11486 1.1 christos 11487 1.1 christos int 11488 1.1 christos main () 11489 1.1 christos { 11490 1.1 christos static struct nlist ac_aggr; 11491 1.1 christos if (sizeof ac_aggr.n_un.n_name) 11492 1.1 christos return 0; 11493 1.1 christos ; 11494 1.1 christos return 0; 11495 1.1 christos } 11496 1.1 christos _ACEOF 11497 1.1 christos rm -f conftest.$ac_objext 11498 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11499 1.1 christos (eval $ac_compile) 2>conftest.er1 11500 1.1 christos ac_status=$? 11501 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11502 1.1 christos rm -f conftest.er1 11503 1.1 christos cat conftest.err >&5 11504 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11505 1.1 christos (exit $ac_status); } && 11506 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11507 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11508 1.1 christos (eval $ac_try) 2>&5 11509 1.1 christos ac_status=$? 11510 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11511 1.1 christos (exit $ac_status); }; } && 11512 1.1 christos { ac_try='test -s conftest.$ac_objext' 11513 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11514 1.1 christos (eval $ac_try) 2>&5 11515 1.1 christos ac_status=$? 11516 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11517 1.1 christos (exit $ac_status); }; }; then 11518 1.1 christos ac_cv_member_struct_nlist_n_un_n_name=yes 11519 1.1 christos else 11520 1.1 christos echo "$as_me: failed program was:" >&5 11521 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11522 1.1 christos 11523 1.1 christos ac_cv_member_struct_nlist_n_un_n_name=no 11524 1.1 christos fi 11525 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11526 1.1 christos fi 11527 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11528 1.1 christos fi 11529 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 11530 1.1 christos echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 11531 1.1 christos if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then 11532 1.1 christos 11533 1.1 christos cat >>confdefs.h <<_ACEOF 11534 1.1 christos #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 11535 1.1 christos _ACEOF 11536 1.1 christos 11537 1.1 christos 11538 1.1 christos cat >>confdefs.h <<\_ACEOF 11539 1.1 christos #define NLIST_NAME_UNION 1 11540 1.1 christos _ACEOF 11541 1.1 christos 11542 1.1 christos fi 11543 1.1 christos 11544 1.1 christos 11545 1.1 christos fi 11546 1.1 christos 11547 1.1 christos done 11548 1.1 christos 11549 1.1 christos fi 11550 1.1 christos done 11551 1.1 christos 11552 1.1 christos 11553 1.1 christos # Some definitions of getloadavg require that the program be installed setgid. 11554 1.1 christos echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 11555 1.1 christos echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 11556 1.1 christos if test "${ac_cv_func_getloadavg_setgid+set}" = set; then 11557 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11558 1.1 christos else 11559 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11560 1.1 christos /* confdefs.h. */ 11561 1.1 christos _ACEOF 11562 1.1 christos cat confdefs.h >>conftest.$ac_ext 11563 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11564 1.1 christos /* end confdefs.h. */ 11565 1.1 christos #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 11566 1.1 christos #ifdef LDAV_PRIVILEGED 11567 1.1 christos Yowza Am I SETGID yet 11568 1.1 christos #endif 11569 1.1 christos _ACEOF 11570 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11571 1.1 christos $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then 11572 1.1 christos ac_cv_func_getloadavg_setgid=yes 11573 1.1 christos else 11574 1.1 christos ac_cv_func_getloadavg_setgid=no 11575 1.1 christos fi 11576 1.1 christos rm -f conftest* 11577 1.1 christos 11578 1.1 christos fi 11579 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 11580 1.1 christos echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 11581 1.1 christos if test $ac_cv_func_getloadavg_setgid = yes; then 11582 1.1 christos NEED_SETGID=true 11583 1.1 christos 11584 1.1 christos cat >>confdefs.h <<\_ACEOF 11585 1.1 christos #define GETLOADAVG_PRIVILEGED 1 11586 1.1 christos _ACEOF 11587 1.1 christos 11588 1.1 christos else 11589 1.1 christos NEED_SETGID=false 11590 1.1 christos fi 11591 1.1 christos 11592 1.1 christos if test $ac_cv_func_getloadavg_setgid = yes; then 11593 1.1 christos echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 11594 1.1 christos echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 11595 1.1 christos if test "${ac_cv_group_kmem+set}" = set; then 11596 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11597 1.1 christos else 11598 1.1 christos # On Solaris, /dev/kmem is a symlink. Get info on the real file. 11599 1.1 christos ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 11600 1.1 christos # If we got an error (system does not support symlinks), try without -L. 11601 1.1 christos test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` 11602 1.1 christos ac_cv_group_kmem=`echo $ac_ls_output \ 11603 1.1 christos | sed -ne 's/[ ][ ]*/ /g; 11604 1.1 christos s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 11605 1.1 christos / /s/.* //;p;'` 11606 1.1 christos 11607 1.1 christos fi 11608 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 11609 1.1 christos echo "${ECHO_T}$ac_cv_group_kmem" >&6 11610 1.1 christos KMEM_GROUP=$ac_cv_group_kmem 11611 1.1 christos fi 11612 1.1 christos if test "x$ac_save_LIBS" = x; then 11613 1.1 christos GETLOADAVG_LIBS=$LIBS 11614 1.1 christos else 11615 1.1 christos GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` 11616 1.1 christos fi 11617 1.1 christos LIBS=$ac_save_LIBS 11618 1.1 christos 11619 1.1 christos 11620 1.1 christos 11621 1.1 christos # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it 11622 1.1 christos # doesn't. So, we will. 11623 1.1 christos 11624 1.1 christos if test "$ac_cv_header_nlist_h" = yes; then 11625 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11626 1.1 christos /* confdefs.h. */ 11627 1.1 christos _ACEOF 11628 1.1 christos cat confdefs.h >>conftest.$ac_ext 11629 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11630 1.1 christos /* end confdefs.h. */ 11631 1.1 christos #include <nlist.h> 11632 1.1 christos int 11633 1.1 christos main () 11634 1.1 christos { 11635 1.1 christos struct nlist nl; 11636 1.1 christos nl.n_name = "string"; 11637 1.1 christos return 0; 11638 1.1 christos ; 11639 1.1 christos return 0; 11640 1.1 christos } 11641 1.1 christos _ACEOF 11642 1.1 christos rm -f conftest.$ac_objext 11643 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11644 1.1 christos (eval $ac_compile) 2>conftest.er1 11645 1.1 christos ac_status=$? 11646 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11647 1.1 christos rm -f conftest.er1 11648 1.1 christos cat conftest.err >&5 11649 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11650 1.1 christos (exit $ac_status); } && 11651 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11652 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11653 1.1 christos (eval $ac_try) 2>&5 11654 1.1 christos ac_status=$? 11655 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11656 1.1 christos (exit $ac_status); }; } && 11657 1.1 christos { ac_try='test -s conftest.$ac_objext' 11658 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11659 1.1 christos (eval $ac_try) 2>&5 11660 1.1 christos ac_status=$? 11661 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11662 1.1 christos (exit $ac_status); }; }; then 11663 1.1 christos make_cv_nlist_struct=yes 11664 1.1 christos else 11665 1.1 christos echo "$as_me: failed program was:" >&5 11666 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11667 1.1 christos 11668 1.1 christos make_cv_nlist_struct=no 11669 1.1 christos fi 11670 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11671 1.1 christos if test "$make_cv_nlist_struct" = yes; then 11672 1.1 christos 11673 1.1 christos cat >>confdefs.h <<\_ACEOF 11674 1.1 christos #define NLIST_STRUCT 1 11675 1.1 christos _ACEOF 11676 1.1 christos 11677 1.1 christos fi 11678 1.1 christos fi 11679 1.1 christos 11680 1.1 christos echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 11681 1.1 christos echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6 11682 1.1 christos if test "${ac_cv_have_decl_sys_siglist+set}" = set; then 11683 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11684 1.1 christos else 11685 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11686 1.1 christos /* confdefs.h. */ 11687 1.1 christos _ACEOF 11688 1.1 christos cat confdefs.h >>conftest.$ac_ext 11689 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11690 1.1 christos /* end confdefs.h. */ 11691 1.1 christos $ac_includes_default 11692 1.1 christos #include <signal.h> 11693 1.1 christos /* NetBSD declares sys_siglist in unistd.h. */ 11694 1.1 christos #if HAVE_UNISTD_H 11695 1.1 christos # include <unistd.h> 11696 1.1 christos #endif 11697 1.1 christos 11698 1.1 christos 11699 1.1 christos int 11700 1.1 christos main () 11701 1.1 christos { 11702 1.1 christos #ifndef sys_siglist 11703 1.1 christos char *p = (char *) sys_siglist; 11704 1.1 christos #endif 11705 1.1 christos 11706 1.1 christos ; 11707 1.1 christos return 0; 11708 1.1 christos } 11709 1.1 christos _ACEOF 11710 1.1 christos rm -f conftest.$ac_objext 11711 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11712 1.1 christos (eval $ac_compile) 2>conftest.er1 11713 1.1 christos ac_status=$? 11714 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11715 1.1 christos rm -f conftest.er1 11716 1.1 christos cat conftest.err >&5 11717 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11718 1.1 christos (exit $ac_status); } && 11719 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11720 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11721 1.1 christos (eval $ac_try) 2>&5 11722 1.1 christos ac_status=$? 11723 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11724 1.1 christos (exit $ac_status); }; } && 11725 1.1 christos { ac_try='test -s conftest.$ac_objext' 11726 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11727 1.1 christos (eval $ac_try) 2>&5 11728 1.1 christos ac_status=$? 11729 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11730 1.1 christos (exit $ac_status); }; }; then 11731 1.1 christos ac_cv_have_decl_sys_siglist=yes 11732 1.1 christos else 11733 1.1 christos echo "$as_me: failed program was:" >&5 11734 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11735 1.1 christos 11736 1.1 christos ac_cv_have_decl_sys_siglist=no 11737 1.1 christos fi 11738 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11739 1.1 christos fi 11740 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 11741 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6 11742 1.1 christos if test $ac_cv_have_decl_sys_siglist = yes; then 11743 1.1 christos 11744 1.1 christos cat >>confdefs.h <<_ACEOF 11745 1.1 christos #define HAVE_DECL_SYS_SIGLIST 1 11746 1.1 christos _ACEOF 11747 1.1 christos 11748 1.1 christos 11749 1.1 christos else 11750 1.1 christos cat >>confdefs.h <<_ACEOF 11751 1.1 christos #define HAVE_DECL_SYS_SIGLIST 0 11752 1.1 christos _ACEOF 11753 1.1 christos 11754 1.1 christos 11755 1.1 christos fi 11756 1.1 christos echo "$as_me:$LINENO: checking whether _sys_siglist is declared" >&5 11757 1.1 christos echo $ECHO_N "checking whether _sys_siglist is declared... $ECHO_C" >&6 11758 1.1 christos if test "${ac_cv_have_decl__sys_siglist+set}" = set; then 11759 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11760 1.1 christos else 11761 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11762 1.1 christos /* confdefs.h. */ 11763 1.1 christos _ACEOF 11764 1.1 christos cat confdefs.h >>conftest.$ac_ext 11765 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11766 1.1 christos /* end confdefs.h. */ 11767 1.1 christos $ac_includes_default 11768 1.1 christos #include <signal.h> 11769 1.1 christos /* NetBSD declares sys_siglist in unistd.h. */ 11770 1.1 christos #if HAVE_UNISTD_H 11771 1.1 christos # include <unistd.h> 11772 1.1 christos #endif 11773 1.1 christos 11774 1.1 christos 11775 1.1 christos int 11776 1.1 christos main () 11777 1.1 christos { 11778 1.1 christos #ifndef _sys_siglist 11779 1.1 christos char *p = (char *) _sys_siglist; 11780 1.1 christos #endif 11781 1.1 christos 11782 1.1 christos ; 11783 1.1 christos return 0; 11784 1.1 christos } 11785 1.1 christos _ACEOF 11786 1.1 christos rm -f conftest.$ac_objext 11787 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11788 1.1 christos (eval $ac_compile) 2>conftest.er1 11789 1.1 christos ac_status=$? 11790 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11791 1.1 christos rm -f conftest.er1 11792 1.1 christos cat conftest.err >&5 11793 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11794 1.1 christos (exit $ac_status); } && 11795 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11796 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11797 1.1 christos (eval $ac_try) 2>&5 11798 1.1 christos ac_status=$? 11799 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11800 1.1 christos (exit $ac_status); }; } && 11801 1.1 christos { ac_try='test -s conftest.$ac_objext' 11802 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11803 1.1 christos (eval $ac_try) 2>&5 11804 1.1 christos ac_status=$? 11805 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11806 1.1 christos (exit $ac_status); }; }; then 11807 1.1 christos ac_cv_have_decl__sys_siglist=yes 11808 1.1 christos else 11809 1.1 christos echo "$as_me: failed program was:" >&5 11810 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11811 1.1 christos 11812 1.1 christos ac_cv_have_decl__sys_siglist=no 11813 1.1 christos fi 11814 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11815 1.1 christos fi 11816 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl__sys_siglist" >&5 11817 1.1 christos echo "${ECHO_T}$ac_cv_have_decl__sys_siglist" >&6 11818 1.1 christos if test $ac_cv_have_decl__sys_siglist = yes; then 11819 1.1 christos 11820 1.1 christos cat >>confdefs.h <<_ACEOF 11821 1.1 christos #define HAVE_DECL__SYS_SIGLIST 1 11822 1.1 christos _ACEOF 11823 1.1 christos 11824 1.1 christos 11825 1.1 christos else 11826 1.1 christos cat >>confdefs.h <<_ACEOF 11827 1.1 christos #define HAVE_DECL__SYS_SIGLIST 0 11828 1.1 christos _ACEOF 11829 1.1 christos 11830 1.1 christos 11831 1.1 christos fi 11832 1.1 christos echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 11833 1.1 christos echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6 11834 1.1 christos if test "${ac_cv_have_decl___sys_siglist+set}" = set; then 11835 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11836 1.1 christos else 11837 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11838 1.1 christos /* confdefs.h. */ 11839 1.1 christos _ACEOF 11840 1.1 christos cat confdefs.h >>conftest.$ac_ext 11841 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11842 1.1 christos /* end confdefs.h. */ 11843 1.1 christos $ac_includes_default 11844 1.1 christos #include <signal.h> 11845 1.1 christos /* NetBSD declares sys_siglist in unistd.h. */ 11846 1.1 christos #if HAVE_UNISTD_H 11847 1.1 christos # include <unistd.h> 11848 1.1 christos #endif 11849 1.1 christos 11850 1.1 christos 11851 1.1 christos int 11852 1.1 christos main () 11853 1.1 christos { 11854 1.1 christos #ifndef __sys_siglist 11855 1.1 christos char *p = (char *) __sys_siglist; 11856 1.1 christos #endif 11857 1.1 christos 11858 1.1 christos ; 11859 1.1 christos return 0; 11860 1.1 christos } 11861 1.1 christos _ACEOF 11862 1.1 christos rm -f conftest.$ac_objext 11863 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11864 1.1 christos (eval $ac_compile) 2>conftest.er1 11865 1.1 christos ac_status=$? 11866 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11867 1.1 christos rm -f conftest.er1 11868 1.1 christos cat conftest.err >&5 11869 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11870 1.1 christos (exit $ac_status); } && 11871 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11872 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11873 1.1 christos (eval $ac_try) 2>&5 11874 1.1 christos ac_status=$? 11875 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11876 1.1 christos (exit $ac_status); }; } && 11877 1.1 christos { ac_try='test -s conftest.$ac_objext' 11878 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11879 1.1 christos (eval $ac_try) 2>&5 11880 1.1 christos ac_status=$? 11881 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11882 1.1 christos (exit $ac_status); }; }; then 11883 1.1 christos ac_cv_have_decl___sys_siglist=yes 11884 1.1 christos else 11885 1.1 christos echo "$as_me: failed program was:" >&5 11886 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11887 1.1 christos 11888 1.1 christos ac_cv_have_decl___sys_siglist=no 11889 1.1 christos fi 11890 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11891 1.1 christos fi 11892 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 11893 1.1 christos echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6 11894 1.1 christos if test $ac_cv_have_decl___sys_siglist = yes; then 11895 1.1 christos 11896 1.1 christos cat >>confdefs.h <<_ACEOF 11897 1.1 christos #define HAVE_DECL___SYS_SIGLIST 1 11898 1.1 christos _ACEOF 11899 1.1 christos 11900 1.1 christos 11901 1.1 christos else 11902 1.1 christos cat >>confdefs.h <<_ACEOF 11903 1.1 christos #define HAVE_DECL___SYS_SIGLIST 0 11904 1.1 christos _ACEOF 11905 1.1 christos 11906 1.1 christos 11907 1.1 christos fi 11908 1.1 christos 11909 1.1 christos 11910 1.1 christos 11911 1.1 christos 11912 1.1 christos # Check out the wait reality. 11913 1.1 christos 11914 1.1 christos for ac_header in sys/wait.h 11915 1.1 christos do 11916 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11917 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11918 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 11919 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11920 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11921 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11922 1.1 christos fi 11923 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11924 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11925 1.1 christos else 11926 1.1 christos # Is the header compilable? 11927 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 11928 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11929 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11930 1.1 christos /* confdefs.h. */ 11931 1.1 christos _ACEOF 11932 1.1 christos cat confdefs.h >>conftest.$ac_ext 11933 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11934 1.1 christos /* end confdefs.h. */ 11935 1.1 christos $ac_includes_default 11936 1.1 christos #include <$ac_header> 11937 1.1 christos _ACEOF 11938 1.1 christos rm -f conftest.$ac_objext 11939 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11940 1.1 christos (eval $ac_compile) 2>conftest.er1 11941 1.1 christos ac_status=$? 11942 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11943 1.1 christos rm -f conftest.er1 11944 1.1 christos cat conftest.err >&5 11945 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11946 1.1 christos (exit $ac_status); } && 11947 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 11948 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11949 1.1 christos (eval $ac_try) 2>&5 11950 1.1 christos ac_status=$? 11951 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11952 1.1 christos (exit $ac_status); }; } && 11953 1.1 christos { ac_try='test -s conftest.$ac_objext' 11954 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11955 1.1 christos (eval $ac_try) 2>&5 11956 1.1 christos ac_status=$? 11957 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11958 1.1 christos (exit $ac_status); }; }; then 11959 1.1 christos ac_header_compiler=yes 11960 1.1 christos else 11961 1.1 christos echo "$as_me: failed program was:" >&5 11962 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11963 1.1 christos 11964 1.1 christos ac_header_compiler=no 11965 1.1 christos fi 11966 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11967 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11968 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 11969 1.1 christos 11970 1.1 christos # Is the header present? 11971 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 11972 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11973 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11974 1.1 christos /* confdefs.h. */ 11975 1.1 christos _ACEOF 11976 1.1 christos cat confdefs.h >>conftest.$ac_ext 11977 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11978 1.1 christos /* end confdefs.h. */ 11979 1.1 christos #include <$ac_header> 11980 1.1 christos _ACEOF 11981 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11982 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11983 1.1 christos ac_status=$? 11984 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11985 1.1 christos rm -f conftest.er1 11986 1.1 christos cat conftest.err >&5 11987 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11988 1.1 christos (exit $ac_status); } >/dev/null; then 11989 1.1 christos if test -s conftest.err; then 11990 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 11991 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11992 1.1 christos else 11993 1.1 christos ac_cpp_err= 11994 1.1 christos fi 11995 1.1 christos else 11996 1.1 christos ac_cpp_err=yes 11997 1.1 christos fi 11998 1.1 christos if test -z "$ac_cpp_err"; then 11999 1.1 christos ac_header_preproc=yes 12000 1.1 christos else 12001 1.1 christos echo "$as_me: failed program was:" >&5 12002 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12003 1.1 christos 12004 1.1 christos ac_header_preproc=no 12005 1.1 christos fi 12006 1.1 christos rm -f conftest.err conftest.$ac_ext 12007 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12008 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 12009 1.1 christos 12010 1.1 christos # So? What about this header? 12011 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 12012 1.1 christos yes:no: ) 12013 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12014 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12015 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 12016 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 12017 1.1 christos ac_header_preproc=yes 12018 1.1 christos ;; 12019 1.1 christos no:yes:* ) 12020 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12021 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12022 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12023 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12024 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 12025 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 12026 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 12027 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 12028 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12029 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 12030 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 12031 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 12032 1.1 christos ( 12033 1.1 christos cat <<\_ASBOX 12034 1.1 christos ## ------------------------------- ## 12035 1.1 christos ## Report this to bug-make (at] gnu.org ## 12036 1.1 christos ## ------------------------------- ## 12037 1.1 christos _ASBOX 12038 1.1 christos ) | 12039 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 12040 1.1 christos ;; 12041 1.1 christos esac 12042 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 12043 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12044 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 12045 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12046 1.1 christos else 12047 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 12048 1.1 christos fi 12049 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12050 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12051 1.1 christos 12052 1.1 christos fi 12053 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 12054 1.1 christos cat >>confdefs.h <<_ACEOF 12055 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12056 1.1 christos _ACEOF 12057 1.1 christos 12058 1.1 christos fi 12059 1.1 christos 12060 1.1 christos done 12061 1.1 christos 12062 1.1 christos 12063 1.1 christos 12064 1.1 christos for ac_func in waitpid wait3 12065 1.1 christos do 12066 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12067 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 12068 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12069 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 12070 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12071 1.1 christos else 12072 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12073 1.1 christos /* confdefs.h. */ 12074 1.1 christos _ACEOF 12075 1.1 christos cat confdefs.h >>conftest.$ac_ext 12076 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12077 1.1 christos /* end confdefs.h. */ 12078 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12079 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12080 1.1 christos #define $ac_func innocuous_$ac_func 12081 1.1 christos 12082 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 12083 1.1 christos which can conflict with char $ac_func (); below. 12084 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12085 1.1 christos <limits.h> exists even on freestanding compilers. */ 12086 1.1 christos 12087 1.1 christos #ifdef __STDC__ 12088 1.1 christos # include <limits.h> 12089 1.1 christos #else 12090 1.1 christos # include <assert.h> 12091 1.1 christos #endif 12092 1.1 christos 12093 1.1 christos #undef $ac_func 12094 1.1 christos 12095 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 12096 1.1 christos #ifdef __cplusplus 12097 1.1 christos extern "C" 12098 1.1 christos { 12099 1.1 christos #endif 12100 1.1 christos /* We use char because int might match the return type of a gcc2 12101 1.1 christos builtin and then its argument prototype would still apply. */ 12102 1.1 christos char $ac_func (); 12103 1.1 christos /* The GNU C library defines this for functions which it implements 12104 1.1 christos to always fail with ENOSYS. Some functions are actually named 12105 1.1 christos something starting with __ and the normal name is an alias. */ 12106 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12107 1.1 christos choke me 12108 1.1 christos #else 12109 1.1 christos char (*f) () = $ac_func; 12110 1.1 christos #endif 12111 1.1 christos #ifdef __cplusplus 12112 1.1 christos } 12113 1.1 christos #endif 12114 1.1 christos 12115 1.1 christos int 12116 1.1 christos main () 12117 1.1 christos { 12118 1.1 christos return f != $ac_func; 12119 1.1 christos ; 12120 1.1 christos return 0; 12121 1.1 christos } 12122 1.1 christos _ACEOF 12123 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12124 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12125 1.1 christos (eval $ac_link) 2>conftest.er1 12126 1.1 christos ac_status=$? 12127 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12128 1.1 christos rm -f conftest.er1 12129 1.1 christos cat conftest.err >&5 12130 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12131 1.1 christos (exit $ac_status); } && 12132 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12133 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12134 1.1 christos (eval $ac_try) 2>&5 12135 1.1 christos ac_status=$? 12136 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12137 1.1 christos (exit $ac_status); }; } && 12138 1.1 christos { ac_try='test -s conftest$ac_exeext' 12139 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12140 1.1 christos (eval $ac_try) 2>&5 12141 1.1 christos ac_status=$? 12142 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12143 1.1 christos (exit $ac_status); }; }; then 12144 1.1 christos eval "$as_ac_var=yes" 12145 1.1 christos else 12146 1.1 christos echo "$as_me: failed program was:" >&5 12147 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12148 1.1 christos 12149 1.1 christos eval "$as_ac_var=no" 12150 1.1 christos fi 12151 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12152 1.1 christos conftest$ac_exeext conftest.$ac_ext 12153 1.1 christos fi 12154 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12155 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12156 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 12157 1.1 christos cat >>confdefs.h <<_ACEOF 12158 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12159 1.1 christos _ACEOF 12160 1.1 christos 12161 1.1 christos fi 12162 1.1 christos done 12163 1.1 christos 12164 1.1 christos echo "$as_me:$LINENO: checking for union wait" >&5 12165 1.1 christos echo $ECHO_N "checking for union wait... $ECHO_C" >&6 12166 1.1 christos if test "${make_cv_union_wait+set}" = set; then 12167 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12168 1.1 christos else 12169 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12170 1.1 christos /* confdefs.h. */ 12171 1.1 christos _ACEOF 12172 1.1 christos cat confdefs.h >>conftest.$ac_ext 12173 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12174 1.1 christos /* end confdefs.h. */ 12175 1.1 christos #include <sys/types.h> 12176 1.1 christos #include <sys/wait.h> 12177 1.1 christos int 12178 1.1 christos main () 12179 1.1 christos { 12180 1.1 christos union wait status; int pid; pid = wait (&status); 12181 1.1 christos #ifdef WEXITSTATUS 12182 1.1 christos /* Some POSIXoid systems have both the new-style macros and the old 12183 1.1 christos union wait type, and they do not work together. If union wait 12184 1.1 christos conflicts with WEXITSTATUS et al, we don't want to use it at all. */ 12185 1.1 christos if (WEXITSTATUS (status) != 0) pid = -1; 12186 1.1 christos #ifdef WTERMSIG 12187 1.1 christos /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */ 12188 1.1 christos -- blow chunks here -- 12189 1.1 christos #endif 12190 1.1 christos #endif 12191 1.1 christos #ifdef HAVE_WAITPID 12192 1.1 christos /* Make sure union wait works with waitpid. */ 12193 1.1 christos pid = waitpid (-1, &status, 0); 12194 1.1 christos #endif 12195 1.1 christos 12196 1.1 christos ; 12197 1.1 christos return 0; 12198 1.1 christos } 12199 1.1 christos _ACEOF 12200 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12201 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12202 1.1 christos (eval $ac_link) 2>conftest.er1 12203 1.1 christos ac_status=$? 12204 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12205 1.1 christos rm -f conftest.er1 12206 1.1 christos cat conftest.err >&5 12207 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12208 1.1 christos (exit $ac_status); } && 12209 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12210 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12211 1.1 christos (eval $ac_try) 2>&5 12212 1.1 christos ac_status=$? 12213 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12214 1.1 christos (exit $ac_status); }; } && 12215 1.1 christos { ac_try='test -s conftest$ac_exeext' 12216 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12217 1.1 christos (eval $ac_try) 2>&5 12218 1.1 christos ac_status=$? 12219 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12220 1.1 christos (exit $ac_status); }; }; then 12221 1.1 christos make_cv_union_wait=yes 12222 1.1 christos else 12223 1.1 christos echo "$as_me: failed program was:" >&5 12224 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12225 1.1 christos 12226 1.1 christos make_cv_union_wait=no 12227 1.1 christos fi 12228 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12229 1.1 christos conftest$ac_exeext conftest.$ac_ext 12230 1.1 christos fi 12231 1.1 christos 12232 1.1 christos if test "$make_cv_union_wait" = yes; then 12233 1.1 christos 12234 1.1 christos cat >>confdefs.h <<\_ACEOF 12235 1.1 christos #define HAVE_UNION_WAIT 1 12236 1.1 christos _ACEOF 12237 1.1 christos 12238 1.1 christos fi 12239 1.1 christos echo "$as_me:$LINENO: result: $make_cv_union_wait" >&5 12240 1.1 christos echo "${ECHO_T}$make_cv_union_wait" >&6 12241 1.1 christos 12242 1.1 christos 12243 1.1 christos # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs. 12244 1.1 christos if test "$PATH_SEPARATOR" = ';'; then 12245 1.1 christos 12246 1.1 christos cat >>confdefs.h <<\_ACEOF 12247 1.1 christos #define HAVE_DOS_PATHS 1 12248 1.1 christos _ACEOF 12249 1.1 christos 12250 1.1 christos fi 12251 1.1 christos 12252 1.1 christos 12253 1.1 christos # See if the user wants to use pmake's "customs" distributed build capability 12254 1.1 christos 12255 1.1 christos REMOTE=stub 12256 1.1 christos use_customs=false 12257 1.1 christos 12258 1.1 christos # Check whether --with-customs or --without-customs was given. 12259 1.1 christos if test "${with_customs+set}" = set; then 12260 1.1 christos withval="$with_customs" 12261 1.1 christos case $withval in 12262 1.1 christos n|no) : ;; 12263 1.1 christos *) make_cppflags="$CPPFLAGS" 12264 1.1 christos case $withval in 12265 1.1 christos y|ye|yes) : ;; 12266 1.1 christos *) CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs" 12267 1.1 christos make_ldflags="$LDFLAGS -L$with_customs/lib" ;; 12268 1.1 christos esac 12269 1.1 christos 12270 1.1 christos cf_test_netlibs=no 12271 1.1 christos echo "$as_me:$LINENO: checking for network libraries" >&5 12272 1.1 christos echo $ECHO_N "checking for network libraries... $ECHO_C" >&6 12273 1.1 christos if test "${cf_cv_netlibs+set}" = set; then 12274 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12275 1.1 christos else 12276 1.1 christos 12277 1.1 christos echo "$as_me:$LINENO: result: working..." >&5 12278 1.1 christos echo "${ECHO_T}working..." >&6 12279 1.1 christos cf_cv_netlibs="" 12280 1.1 christos cf_test_netlibs=yes 12281 1.1 christos 12282 1.1 christos for ac_func in gethostname 12283 1.1 christos do 12284 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12285 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 12286 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12287 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 12288 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12289 1.1 christos else 12290 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12291 1.1 christos /* confdefs.h. */ 12292 1.1 christos _ACEOF 12293 1.1 christos cat confdefs.h >>conftest.$ac_ext 12294 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12295 1.1 christos /* end confdefs.h. */ 12296 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12297 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12298 1.1 christos #define $ac_func innocuous_$ac_func 12299 1.1 christos 12300 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 12301 1.1 christos which can conflict with char $ac_func (); below. 12302 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12303 1.1 christos <limits.h> exists even on freestanding compilers. */ 12304 1.1 christos 12305 1.1 christos #ifdef __STDC__ 12306 1.1 christos # include <limits.h> 12307 1.1 christos #else 12308 1.1 christos # include <assert.h> 12309 1.1 christos #endif 12310 1.1 christos 12311 1.1 christos #undef $ac_func 12312 1.1 christos 12313 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 12314 1.1 christos #ifdef __cplusplus 12315 1.1 christos extern "C" 12316 1.1 christos { 12317 1.1 christos #endif 12318 1.1 christos /* We use char because int might match the return type of a gcc2 12319 1.1 christos builtin and then its argument prototype would still apply. */ 12320 1.1 christos char $ac_func (); 12321 1.1 christos /* The GNU C library defines this for functions which it implements 12322 1.1 christos to always fail with ENOSYS. Some functions are actually named 12323 1.1 christos something starting with __ and the normal name is an alias. */ 12324 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12325 1.1 christos choke me 12326 1.1 christos #else 12327 1.1 christos char (*f) () = $ac_func; 12328 1.1 christos #endif 12329 1.1 christos #ifdef __cplusplus 12330 1.1 christos } 12331 1.1 christos #endif 12332 1.1 christos 12333 1.1 christos int 12334 1.1 christos main () 12335 1.1 christos { 12336 1.1 christos return f != $ac_func; 12337 1.1 christos ; 12338 1.1 christos return 0; 12339 1.1 christos } 12340 1.1 christos _ACEOF 12341 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12342 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12343 1.1 christos (eval $ac_link) 2>conftest.er1 12344 1.1 christos ac_status=$? 12345 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12346 1.1 christos rm -f conftest.er1 12347 1.1 christos cat conftest.err >&5 12348 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12349 1.1 christos (exit $ac_status); } && 12350 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12351 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12352 1.1 christos (eval $ac_try) 2>&5 12353 1.1 christos ac_status=$? 12354 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12355 1.1 christos (exit $ac_status); }; } && 12356 1.1 christos { ac_try='test -s conftest$ac_exeext' 12357 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12358 1.1 christos (eval $ac_try) 2>&5 12359 1.1 christos ac_status=$? 12360 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12361 1.1 christos (exit $ac_status); }; }; then 12362 1.1 christos eval "$as_ac_var=yes" 12363 1.1 christos else 12364 1.1 christos echo "$as_me: failed program was:" >&5 12365 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12366 1.1 christos 12367 1.1 christos eval "$as_ac_var=no" 12368 1.1 christos fi 12369 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12370 1.1 christos conftest$ac_exeext conftest.$ac_ext 12371 1.1 christos fi 12372 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12373 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12374 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 12375 1.1 christos cat >>confdefs.h <<_ACEOF 12376 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12377 1.1 christos _ACEOF 12378 1.1 christos 12379 1.1 christos else 12380 1.1 christos 12381 1.1 christos 12382 1.1 christos echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5 12383 1.1 christos echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6 12384 1.1 christos if test "${ac_cv_lib_nsl_gethostname+set}" = set; then 12385 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12386 1.1 christos else 12387 1.1 christos ac_check_lib_save_LIBS=$LIBS 12388 1.1 christos LIBS="-lnsl $cf_cv_netlibs $LIBS" 12389 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12390 1.1 christos /* confdefs.h. */ 12391 1.1 christos _ACEOF 12392 1.1 christos cat confdefs.h >>conftest.$ac_ext 12393 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12394 1.1 christos /* end confdefs.h. */ 12395 1.1 christos 12396 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 12397 1.1 christos #ifdef __cplusplus 12398 1.1 christos extern "C" 12399 1.1 christos #endif 12400 1.1 christos /* We use char because int might match the return type of a gcc2 12401 1.1 christos builtin and then its argument prototype would still apply. */ 12402 1.1 christos char gethostname (); 12403 1.1 christos int 12404 1.1 christos main () 12405 1.1 christos { 12406 1.1 christos gethostname (); 12407 1.1 christos ; 12408 1.1 christos return 0; 12409 1.1 christos } 12410 1.1 christos _ACEOF 12411 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12412 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12413 1.1 christos (eval $ac_link) 2>conftest.er1 12414 1.1 christos ac_status=$? 12415 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12416 1.1 christos rm -f conftest.er1 12417 1.1 christos cat conftest.err >&5 12418 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12419 1.1 christos (exit $ac_status); } && 12420 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12421 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12422 1.1 christos (eval $ac_try) 2>&5 12423 1.1 christos ac_status=$? 12424 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12425 1.1 christos (exit $ac_status); }; } && 12426 1.1 christos { ac_try='test -s conftest$ac_exeext' 12427 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12428 1.1 christos (eval $ac_try) 2>&5 12429 1.1 christos ac_status=$? 12430 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12431 1.1 christos (exit $ac_status); }; }; then 12432 1.1 christos ac_cv_lib_nsl_gethostname=yes 12433 1.1 christos else 12434 1.1 christos echo "$as_me: failed program was:" >&5 12435 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12436 1.1 christos 12437 1.1 christos ac_cv_lib_nsl_gethostname=no 12438 1.1 christos fi 12439 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12440 1.1 christos conftest$ac_exeext conftest.$ac_ext 12441 1.1 christos LIBS=$ac_check_lib_save_LIBS 12442 1.1 christos fi 12443 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5 12444 1.1 christos echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6 12445 1.1 christos if test $ac_cv_lib_nsl_gethostname = yes; then 12446 1.1 christos 12447 1.1 christos 12448 1.1 christos cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'` 12449 1.1 christos 12450 1.1 christos 12451 1.1 christos cat >>confdefs.h <<_ACEOF 12452 1.1 christos #define HAVE_$cf_tr_func 1 12453 1.1 christos _ACEOF 12454 1.1 christos 12455 1.1 christos ac_cv_func_gethostname=yes 12456 1.1 christos cf_cv_netlibs="-lnsl $cf_cv_netlibs" 12457 1.1 christos else 12458 1.1 christos 12459 1.1 christos ac_cv_func_gethostname=unknown 12460 1.1 christos unset ac_cv_func_gethostname 2>/dev/null 12461 1.1 christos 12462 1.1 christos 12463 1.1 christos echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5 12464 1.1 christos echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6 12465 1.1 christos if test "${ac_cv_lib_socket_gethostname+set}" = set; then 12466 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12467 1.1 christos else 12468 1.1 christos ac_check_lib_save_LIBS=$LIBS 12469 1.1 christos LIBS="-lsocket $cf_cv_netlibs $LIBS" 12470 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12471 1.1 christos /* confdefs.h. */ 12472 1.1 christos _ACEOF 12473 1.1 christos cat confdefs.h >>conftest.$ac_ext 12474 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12475 1.1 christos /* end confdefs.h. */ 12476 1.1 christos 12477 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 12478 1.1 christos #ifdef __cplusplus 12479 1.1 christos extern "C" 12480 1.1 christos #endif 12481 1.1 christos /* We use char because int might match the return type of a gcc2 12482 1.1 christos builtin and then its argument prototype would still apply. */ 12483 1.1 christos char gethostname (); 12484 1.1 christos int 12485 1.1 christos main () 12486 1.1 christos { 12487 1.1 christos gethostname (); 12488 1.1 christos ; 12489 1.1 christos return 0; 12490 1.1 christos } 12491 1.1 christos _ACEOF 12492 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12493 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12494 1.1 christos (eval $ac_link) 2>conftest.er1 12495 1.1 christos ac_status=$? 12496 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12497 1.1 christos rm -f conftest.er1 12498 1.1 christos cat conftest.err >&5 12499 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12500 1.1 christos (exit $ac_status); } && 12501 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12502 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12503 1.1 christos (eval $ac_try) 2>&5 12504 1.1 christos ac_status=$? 12505 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12506 1.1 christos (exit $ac_status); }; } && 12507 1.1 christos { ac_try='test -s conftest$ac_exeext' 12508 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12509 1.1 christos (eval $ac_try) 2>&5 12510 1.1 christos ac_status=$? 12511 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12512 1.1 christos (exit $ac_status); }; }; then 12513 1.1 christos ac_cv_lib_socket_gethostname=yes 12514 1.1 christos else 12515 1.1 christos echo "$as_me: failed program was:" >&5 12516 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12517 1.1 christos 12518 1.1 christos ac_cv_lib_socket_gethostname=no 12519 1.1 christos fi 12520 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12521 1.1 christos conftest$ac_exeext conftest.$ac_ext 12522 1.1 christos LIBS=$ac_check_lib_save_LIBS 12523 1.1 christos fi 12524 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5 12525 1.1 christos echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6 12526 1.1 christos if test $ac_cv_lib_socket_gethostname = yes; then 12527 1.1 christos 12528 1.1 christos 12529 1.1 christos cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'` 12530 1.1 christos 12531 1.1 christos 12532 1.1 christos cat >>confdefs.h <<_ACEOF 12533 1.1 christos #define HAVE_$cf_tr_func 1 12534 1.1 christos _ACEOF 12535 1.1 christos 12536 1.1 christos ac_cv_func_gethostname=yes 12537 1.1 christos cf_cv_netlibs="-lsocket $cf_cv_netlibs" 12538 1.1 christos else 12539 1.1 christos 12540 1.1 christos ac_cv_func_gethostname=unknown 12541 1.1 christos unset ac_cv_func_gethostname 2>/dev/null 12542 1.1 christos 12543 1.1 christos fi 12544 1.1 christos 12545 1.1 christos 12546 1.1 christos fi 12547 1.1 christos 12548 1.1 christos 12549 1.1 christos fi 12550 1.1 christos done 12551 1.1 christos 12552 1.1 christos # 12553 1.1 christos # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but 12554 1.1 christos # I don't know the entrypoints - 97/7/22 TD 12555 1.1 christos echo "$as_me:$LINENO: checking for main in -linet" >&5 12556 1.1 christos echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6 12557 1.1 christos if test "${ac_cv_lib_inet_main+set}" = set; then 12558 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12559 1.1 christos else 12560 1.1 christos ac_check_lib_save_LIBS=$LIBS 12561 1.1 christos LIBS="-linet $LIBS" 12562 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12563 1.1 christos /* confdefs.h. */ 12564 1.1 christos _ACEOF 12565 1.1 christos cat confdefs.h >>conftest.$ac_ext 12566 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12567 1.1 christos /* end confdefs.h. */ 12568 1.1 christos 12569 1.1 christos 12570 1.1 christos int 12571 1.1 christos main () 12572 1.1 christos { 12573 1.1 christos main (); 12574 1.1 christos ; 12575 1.1 christos return 0; 12576 1.1 christos } 12577 1.1 christos _ACEOF 12578 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12579 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12580 1.1 christos (eval $ac_link) 2>conftest.er1 12581 1.1 christos ac_status=$? 12582 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12583 1.1 christos rm -f conftest.er1 12584 1.1 christos cat conftest.err >&5 12585 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12586 1.1 christos (exit $ac_status); } && 12587 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12588 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12589 1.1 christos (eval $ac_try) 2>&5 12590 1.1 christos ac_status=$? 12591 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12592 1.1 christos (exit $ac_status); }; } && 12593 1.1 christos { ac_try='test -s conftest$ac_exeext' 12594 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12595 1.1 christos (eval $ac_try) 2>&5 12596 1.1 christos ac_status=$? 12597 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12598 1.1 christos (exit $ac_status); }; }; then 12599 1.1 christos ac_cv_lib_inet_main=yes 12600 1.1 christos else 12601 1.1 christos echo "$as_me: failed program was:" >&5 12602 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12603 1.1 christos 12604 1.1 christos ac_cv_lib_inet_main=no 12605 1.1 christos fi 12606 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12607 1.1 christos conftest$ac_exeext conftest.$ac_ext 12608 1.1 christos LIBS=$ac_check_lib_save_LIBS 12609 1.1 christos fi 12610 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 12611 1.1 christos echo "${ECHO_T}$ac_cv_lib_inet_main" >&6 12612 1.1 christos if test $ac_cv_lib_inet_main = yes; then 12613 1.1 christos cf_cv_netlibs="-linet $cf_cv_netlibs" 12614 1.1 christos fi 12615 1.1 christos 12616 1.1 christos # 12617 1.1 christos if test "$ac_cv_func_lsocket" != no ; then 12618 1.1 christos 12619 1.1 christos for ac_func in socket 12620 1.1 christos do 12621 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12622 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 12623 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12624 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 12625 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12626 1.1 christos else 12627 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12628 1.1 christos /* confdefs.h. */ 12629 1.1 christos _ACEOF 12630 1.1 christos cat confdefs.h >>conftest.$ac_ext 12631 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12632 1.1 christos /* end confdefs.h. */ 12633 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12634 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12635 1.1 christos #define $ac_func innocuous_$ac_func 12636 1.1 christos 12637 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 12638 1.1 christos which can conflict with char $ac_func (); below. 12639 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12640 1.1 christos <limits.h> exists even on freestanding compilers. */ 12641 1.1 christos 12642 1.1 christos #ifdef __STDC__ 12643 1.1 christos # include <limits.h> 12644 1.1 christos #else 12645 1.1 christos # include <assert.h> 12646 1.1 christos #endif 12647 1.1 christos 12648 1.1 christos #undef $ac_func 12649 1.1 christos 12650 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 12651 1.1 christos #ifdef __cplusplus 12652 1.1 christos extern "C" 12653 1.1 christos { 12654 1.1 christos #endif 12655 1.1 christos /* We use char because int might match the return type of a gcc2 12656 1.1 christos builtin and then its argument prototype would still apply. */ 12657 1.1 christos char $ac_func (); 12658 1.1 christos /* The GNU C library defines this for functions which it implements 12659 1.1 christos to always fail with ENOSYS. Some functions are actually named 12660 1.1 christos something starting with __ and the normal name is an alias. */ 12661 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12662 1.1 christos choke me 12663 1.1 christos #else 12664 1.1 christos char (*f) () = $ac_func; 12665 1.1 christos #endif 12666 1.1 christos #ifdef __cplusplus 12667 1.1 christos } 12668 1.1 christos #endif 12669 1.1 christos 12670 1.1 christos int 12671 1.1 christos main () 12672 1.1 christos { 12673 1.1 christos return f != $ac_func; 12674 1.1 christos ; 12675 1.1 christos return 0; 12676 1.1 christos } 12677 1.1 christos _ACEOF 12678 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12679 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12680 1.1 christos (eval $ac_link) 2>conftest.er1 12681 1.1 christos ac_status=$? 12682 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12683 1.1 christos rm -f conftest.er1 12684 1.1 christos cat conftest.err >&5 12685 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12686 1.1 christos (exit $ac_status); } && 12687 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12688 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12689 1.1 christos (eval $ac_try) 2>&5 12690 1.1 christos ac_status=$? 12691 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12692 1.1 christos (exit $ac_status); }; } && 12693 1.1 christos { ac_try='test -s conftest$ac_exeext' 12694 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12695 1.1 christos (eval $ac_try) 2>&5 12696 1.1 christos ac_status=$? 12697 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12698 1.1 christos (exit $ac_status); }; }; then 12699 1.1 christos eval "$as_ac_var=yes" 12700 1.1 christos else 12701 1.1 christos echo "$as_me: failed program was:" >&5 12702 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12703 1.1 christos 12704 1.1 christos eval "$as_ac_var=no" 12705 1.1 christos fi 12706 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12707 1.1 christos conftest$ac_exeext conftest.$ac_ext 12708 1.1 christos fi 12709 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12710 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12711 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 12712 1.1 christos cat >>confdefs.h <<_ACEOF 12713 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12714 1.1 christos _ACEOF 12715 1.1 christos 12716 1.1 christos else 12717 1.1 christos 12718 1.1 christos 12719 1.1 christos echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 12720 1.1 christos echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 12721 1.1 christos if test "${ac_cv_lib_socket_socket+set}" = set; then 12722 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12723 1.1 christos else 12724 1.1 christos ac_check_lib_save_LIBS=$LIBS 12725 1.1 christos LIBS="-lsocket $cf_cv_netlibs $LIBS" 12726 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12727 1.1 christos /* confdefs.h. */ 12728 1.1 christos _ACEOF 12729 1.1 christos cat confdefs.h >>conftest.$ac_ext 12730 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12731 1.1 christos /* end confdefs.h. */ 12732 1.1 christos 12733 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 12734 1.1 christos #ifdef __cplusplus 12735 1.1 christos extern "C" 12736 1.1 christos #endif 12737 1.1 christos /* We use char because int might match the return type of a gcc2 12738 1.1 christos builtin and then its argument prototype would still apply. */ 12739 1.1 christos char socket (); 12740 1.1 christos int 12741 1.1 christos main () 12742 1.1 christos { 12743 1.1 christos socket (); 12744 1.1 christos ; 12745 1.1 christos return 0; 12746 1.1 christos } 12747 1.1 christos _ACEOF 12748 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12749 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12750 1.1 christos (eval $ac_link) 2>conftest.er1 12751 1.1 christos ac_status=$? 12752 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12753 1.1 christos rm -f conftest.er1 12754 1.1 christos cat conftest.err >&5 12755 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12756 1.1 christos (exit $ac_status); } && 12757 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12758 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12759 1.1 christos (eval $ac_try) 2>&5 12760 1.1 christos ac_status=$? 12761 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12762 1.1 christos (exit $ac_status); }; } && 12763 1.1 christos { ac_try='test -s conftest$ac_exeext' 12764 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12765 1.1 christos (eval $ac_try) 2>&5 12766 1.1 christos ac_status=$? 12767 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12768 1.1 christos (exit $ac_status); }; }; then 12769 1.1 christos ac_cv_lib_socket_socket=yes 12770 1.1 christos else 12771 1.1 christos echo "$as_me: failed program was:" >&5 12772 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12773 1.1 christos 12774 1.1 christos ac_cv_lib_socket_socket=no 12775 1.1 christos fi 12776 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12777 1.1 christos conftest$ac_exeext conftest.$ac_ext 12778 1.1 christos LIBS=$ac_check_lib_save_LIBS 12779 1.1 christos fi 12780 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 12781 1.1 christos echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 12782 1.1 christos if test $ac_cv_lib_socket_socket = yes; then 12783 1.1 christos 12784 1.1 christos 12785 1.1 christos cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'` 12786 1.1 christos 12787 1.1 christos 12788 1.1 christos cat >>confdefs.h <<_ACEOF 12789 1.1 christos #define HAVE_$cf_tr_func 1 12790 1.1 christos _ACEOF 12791 1.1 christos 12792 1.1 christos ac_cv_func_socket=yes 12793 1.1 christos cf_cv_netlibs="-lsocket $cf_cv_netlibs" 12794 1.1 christos else 12795 1.1 christos 12796 1.1 christos ac_cv_func_socket=unknown 12797 1.1 christos unset ac_cv_func_socket 2>/dev/null 12798 1.1 christos 12799 1.1 christos 12800 1.1 christos echo "$as_me:$LINENO: checking for socket in -lbsd" >&5 12801 1.1 christos echo $ECHO_N "checking for socket in -lbsd... $ECHO_C" >&6 12802 1.1 christos if test "${ac_cv_lib_bsd_socket+set}" = set; then 12803 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12804 1.1 christos else 12805 1.1 christos ac_check_lib_save_LIBS=$LIBS 12806 1.1 christos LIBS="-lbsd $cf_cv_netlibs $LIBS" 12807 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12808 1.1 christos /* confdefs.h. */ 12809 1.1 christos _ACEOF 12810 1.1 christos cat confdefs.h >>conftest.$ac_ext 12811 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12812 1.1 christos /* end confdefs.h. */ 12813 1.1 christos 12814 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 12815 1.1 christos #ifdef __cplusplus 12816 1.1 christos extern "C" 12817 1.1 christos #endif 12818 1.1 christos /* We use char because int might match the return type of a gcc2 12819 1.1 christos builtin and then its argument prototype would still apply. */ 12820 1.1 christos char socket (); 12821 1.1 christos int 12822 1.1 christos main () 12823 1.1 christos { 12824 1.1 christos socket (); 12825 1.1 christos ; 12826 1.1 christos return 0; 12827 1.1 christos } 12828 1.1 christos _ACEOF 12829 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12830 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12831 1.1 christos (eval $ac_link) 2>conftest.er1 12832 1.1 christos ac_status=$? 12833 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12834 1.1 christos rm -f conftest.er1 12835 1.1 christos cat conftest.err >&5 12836 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12837 1.1 christos (exit $ac_status); } && 12838 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12839 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12840 1.1 christos (eval $ac_try) 2>&5 12841 1.1 christos ac_status=$? 12842 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12843 1.1 christos (exit $ac_status); }; } && 12844 1.1 christos { ac_try='test -s conftest$ac_exeext' 12845 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12846 1.1 christos (eval $ac_try) 2>&5 12847 1.1 christos ac_status=$? 12848 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12849 1.1 christos (exit $ac_status); }; }; then 12850 1.1 christos ac_cv_lib_bsd_socket=yes 12851 1.1 christos else 12852 1.1 christos echo "$as_me: failed program was:" >&5 12853 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12854 1.1 christos 12855 1.1 christos ac_cv_lib_bsd_socket=no 12856 1.1 christos fi 12857 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12858 1.1 christos conftest$ac_exeext conftest.$ac_ext 12859 1.1 christos LIBS=$ac_check_lib_save_LIBS 12860 1.1 christos fi 12861 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_socket" >&5 12862 1.1 christos echo "${ECHO_T}$ac_cv_lib_bsd_socket" >&6 12863 1.1 christos if test $ac_cv_lib_bsd_socket = yes; then 12864 1.1 christos 12865 1.1 christos 12866 1.1 christos cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'` 12867 1.1 christos 12868 1.1 christos 12869 1.1 christos cat >>confdefs.h <<_ACEOF 12870 1.1 christos #define HAVE_$cf_tr_func 1 12871 1.1 christos _ACEOF 12872 1.1 christos 12873 1.1 christos ac_cv_func_socket=yes 12874 1.1 christos cf_cv_netlibs="-lbsd $cf_cv_netlibs" 12875 1.1 christos else 12876 1.1 christos 12877 1.1 christos ac_cv_func_socket=unknown 12878 1.1 christos unset ac_cv_func_socket 2>/dev/null 12879 1.1 christos 12880 1.1 christos fi 12881 1.1 christos 12882 1.1 christos 12883 1.1 christos fi 12884 1.1 christos 12885 1.1 christos 12886 1.1 christos fi 12887 1.1 christos done 12888 1.1 christos 12889 1.1 christos fi 12890 1.1 christos # 12891 1.1 christos 12892 1.1 christos for ac_func in gethostbyname 12893 1.1 christos do 12894 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12895 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 12896 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12897 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 12898 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12899 1.1 christos else 12900 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12901 1.1 christos /* confdefs.h. */ 12902 1.1 christos _ACEOF 12903 1.1 christos cat confdefs.h >>conftest.$ac_ext 12904 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12905 1.1 christos /* end confdefs.h. */ 12906 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 12907 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12908 1.1 christos #define $ac_func innocuous_$ac_func 12909 1.1 christos 12910 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 12911 1.1 christos which can conflict with char $ac_func (); below. 12912 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12913 1.1 christos <limits.h> exists even on freestanding compilers. */ 12914 1.1 christos 12915 1.1 christos #ifdef __STDC__ 12916 1.1 christos # include <limits.h> 12917 1.1 christos #else 12918 1.1 christos # include <assert.h> 12919 1.1 christos #endif 12920 1.1 christos 12921 1.1 christos #undef $ac_func 12922 1.1 christos 12923 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 12924 1.1 christos #ifdef __cplusplus 12925 1.1 christos extern "C" 12926 1.1 christos { 12927 1.1 christos #endif 12928 1.1 christos /* We use char because int might match the return type of a gcc2 12929 1.1 christos builtin and then its argument prototype would still apply. */ 12930 1.1 christos char $ac_func (); 12931 1.1 christos /* The GNU C library defines this for functions which it implements 12932 1.1 christos to always fail with ENOSYS. Some functions are actually named 12933 1.1 christos something starting with __ and the normal name is an alias. */ 12934 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12935 1.1 christos choke me 12936 1.1 christos #else 12937 1.1 christos char (*f) () = $ac_func; 12938 1.1 christos #endif 12939 1.1 christos #ifdef __cplusplus 12940 1.1 christos } 12941 1.1 christos #endif 12942 1.1 christos 12943 1.1 christos int 12944 1.1 christos main () 12945 1.1 christos { 12946 1.1 christos return f != $ac_func; 12947 1.1 christos ; 12948 1.1 christos return 0; 12949 1.1 christos } 12950 1.1 christos _ACEOF 12951 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12952 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12953 1.1 christos (eval $ac_link) 2>conftest.er1 12954 1.1 christos ac_status=$? 12955 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12956 1.1 christos rm -f conftest.er1 12957 1.1 christos cat conftest.err >&5 12958 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12959 1.1 christos (exit $ac_status); } && 12960 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 12961 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12962 1.1 christos (eval $ac_try) 2>&5 12963 1.1 christos ac_status=$? 12964 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12965 1.1 christos (exit $ac_status); }; } && 12966 1.1 christos { ac_try='test -s conftest$ac_exeext' 12967 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12968 1.1 christos (eval $ac_try) 2>&5 12969 1.1 christos ac_status=$? 12970 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12971 1.1 christos (exit $ac_status); }; }; then 12972 1.1 christos eval "$as_ac_var=yes" 12973 1.1 christos else 12974 1.1 christos echo "$as_me: failed program was:" >&5 12975 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12976 1.1 christos 12977 1.1 christos eval "$as_ac_var=no" 12978 1.1 christos fi 12979 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12980 1.1 christos conftest$ac_exeext conftest.$ac_ext 12981 1.1 christos fi 12982 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12983 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12984 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 12985 1.1 christos cat >>confdefs.h <<_ACEOF 12986 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12987 1.1 christos _ACEOF 12988 1.1 christos 12989 1.1 christos else 12990 1.1 christos 12991 1.1 christos 12992 1.1 christos echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 12993 1.1 christos echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 12994 1.1 christos if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 12995 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12996 1.1 christos else 12997 1.1 christos ac_check_lib_save_LIBS=$LIBS 12998 1.1 christos LIBS="-lnsl $cf_cv_netlibs $LIBS" 12999 1.1 christos cat >conftest.$ac_ext <<_ACEOF 13000 1.1 christos /* confdefs.h. */ 13001 1.1 christos _ACEOF 13002 1.1 christos cat confdefs.h >>conftest.$ac_ext 13003 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 13004 1.1 christos /* end confdefs.h. */ 13005 1.1 christos 13006 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 13007 1.1 christos #ifdef __cplusplus 13008 1.1 christos extern "C" 13009 1.1 christos #endif 13010 1.1 christos /* We use char because int might match the return type of a gcc2 13011 1.1 christos builtin and then its argument prototype would still apply. */ 13012 1.1 christos char gethostbyname (); 13013 1.1 christos int 13014 1.1 christos main () 13015 1.1 christos { 13016 1.1 christos gethostbyname (); 13017 1.1 christos ; 13018 1.1 christos return 0; 13019 1.1 christos } 13020 1.1 christos _ACEOF 13021 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 13022 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13023 1.1 christos (eval $ac_link) 2>conftest.er1 13024 1.1 christos ac_status=$? 13025 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 13026 1.1 christos rm -f conftest.er1 13027 1.1 christos cat conftest.err >&5 13028 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13029 1.1 christos (exit $ac_status); } && 13030 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13031 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13032 1.1 christos (eval $ac_try) 2>&5 13033 1.1 christos ac_status=$? 13034 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13035 1.1 christos (exit $ac_status); }; } && 13036 1.1 christos { ac_try='test -s conftest$ac_exeext' 13037 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13038 1.1 christos (eval $ac_try) 2>&5 13039 1.1 christos ac_status=$? 13040 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13041 1.1 christos (exit $ac_status); }; }; then 13042 1.1 christos ac_cv_lib_nsl_gethostbyname=yes 13043 1.1 christos else 13044 1.1 christos echo "$as_me: failed program was:" >&5 13045 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 13046 1.1 christos 13047 1.1 christos ac_cv_lib_nsl_gethostbyname=no 13048 1.1 christos fi 13049 1.1 christos rm -f conftest.err conftest.$ac_objext \ 13050 1.1 christos conftest$ac_exeext conftest.$ac_ext 13051 1.1 christos LIBS=$ac_check_lib_save_LIBS 13052 1.1 christos fi 13053 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 13054 1.1 christos echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 13055 1.1 christos if test $ac_cv_lib_nsl_gethostbyname = yes; then 13056 1.1 christos 13057 1.1 christos 13058 1.1 christos cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'` 13059 1.1 christos 13060 1.1 christos 13061 1.1 christos cat >>confdefs.h <<_ACEOF 13062 1.1 christos #define HAVE_$cf_tr_func 1 13063 1.1 christos _ACEOF 13064 1.1 christos 13065 1.1 christos ac_cv_func_gethostbyname=yes 13066 1.1 christos cf_cv_netlibs="-lnsl $cf_cv_netlibs" 13067 1.1 christos else 13068 1.1 christos 13069 1.1 christos ac_cv_func_gethostbyname=unknown 13070 1.1 christos unset ac_cv_func_gethostbyname 2>/dev/null 13071 1.1 christos 13072 1.1 christos fi 13073 1.1 christos 13074 1.1 christos 13075 1.1 christos fi 13076 1.1 christos done 13077 1.1 christos 13078 1.1 christos # 13079 1.1 christos 13080 1.1 christos for ac_func in strcasecmp 13081 1.1 christos do 13082 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13083 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 13084 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13085 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 13086 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 13087 1.1 christos else 13088 1.1 christos cat >conftest.$ac_ext <<_ACEOF 13089 1.1 christos /* confdefs.h. */ 13090 1.1 christos _ACEOF 13091 1.1 christos cat confdefs.h >>conftest.$ac_ext 13092 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 13093 1.1 christos /* end confdefs.h. */ 13094 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13095 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13096 1.1 christos #define $ac_func innocuous_$ac_func 13097 1.1 christos 13098 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 13099 1.1 christos which can conflict with char $ac_func (); below. 13100 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13101 1.1 christos <limits.h> exists even on freestanding compilers. */ 13102 1.1 christos 13103 1.1 christos #ifdef __STDC__ 13104 1.1 christos # include <limits.h> 13105 1.1 christos #else 13106 1.1 christos # include <assert.h> 13107 1.1 christos #endif 13108 1.1 christos 13109 1.1 christos #undef $ac_func 13110 1.1 christos 13111 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 13112 1.1 christos #ifdef __cplusplus 13113 1.1 christos extern "C" 13114 1.1 christos { 13115 1.1 christos #endif 13116 1.1 christos /* We use char because int might match the return type of a gcc2 13117 1.1 christos builtin and then its argument prototype would still apply. */ 13118 1.1 christos char $ac_func (); 13119 1.1 christos /* The GNU C library defines this for functions which it implements 13120 1.1 christos to always fail with ENOSYS. Some functions are actually named 13121 1.1 christos something starting with __ and the normal name is an alias. */ 13122 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13123 1.1 christos choke me 13124 1.1 christos #else 13125 1.1 christos char (*f) () = $ac_func; 13126 1.1 christos #endif 13127 1.1 christos #ifdef __cplusplus 13128 1.1 christos } 13129 1.1 christos #endif 13130 1.1 christos 13131 1.1 christos int 13132 1.1 christos main () 13133 1.1 christos { 13134 1.1 christos return f != $ac_func; 13135 1.1 christos ; 13136 1.1 christos return 0; 13137 1.1 christos } 13138 1.1 christos _ACEOF 13139 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 13140 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13141 1.1 christos (eval $ac_link) 2>conftest.er1 13142 1.1 christos ac_status=$? 13143 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 13144 1.1 christos rm -f conftest.er1 13145 1.1 christos cat conftest.err >&5 13146 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13147 1.1 christos (exit $ac_status); } && 13148 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13149 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13150 1.1 christos (eval $ac_try) 2>&5 13151 1.1 christos ac_status=$? 13152 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13153 1.1 christos (exit $ac_status); }; } && 13154 1.1 christos { ac_try='test -s conftest$ac_exeext' 13155 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13156 1.1 christos (eval $ac_try) 2>&5 13157 1.1 christos ac_status=$? 13158 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13159 1.1 christos (exit $ac_status); }; }; then 13160 1.1 christos eval "$as_ac_var=yes" 13161 1.1 christos else 13162 1.1 christos echo "$as_me: failed program was:" >&5 13163 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 13164 1.1 christos 13165 1.1 christos eval "$as_ac_var=no" 13166 1.1 christos fi 13167 1.1 christos rm -f conftest.err conftest.$ac_objext \ 13168 1.1 christos conftest$ac_exeext conftest.$ac_ext 13169 1.1 christos fi 13170 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13171 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13172 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 13173 1.1 christos cat >>confdefs.h <<_ACEOF 13174 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13175 1.1 christos _ACEOF 13176 1.1 christos 13177 1.1 christos else 13178 1.1 christos 13179 1.1 christos 13180 1.1 christos echo "$as_me:$LINENO: checking for strcasecmp in -lresolv" >&5 13181 1.1 christos echo $ECHO_N "checking for strcasecmp in -lresolv... $ECHO_C" >&6 13182 1.1 christos if test "${ac_cv_lib_resolv_strcasecmp+set}" = set; then 13183 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 13184 1.1 christos else 13185 1.1 christos ac_check_lib_save_LIBS=$LIBS 13186 1.1 christos LIBS="-lresolv $cf_cv_netlibs $LIBS" 13187 1.1 christos cat >conftest.$ac_ext <<_ACEOF 13188 1.1 christos /* confdefs.h. */ 13189 1.1 christos _ACEOF 13190 1.1 christos cat confdefs.h >>conftest.$ac_ext 13191 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 13192 1.1 christos /* end confdefs.h. */ 13193 1.1 christos 13194 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 13195 1.1 christos #ifdef __cplusplus 13196 1.1 christos extern "C" 13197 1.1 christos #endif 13198 1.1 christos /* We use char because int might match the return type of a gcc2 13199 1.1 christos builtin and then its argument prototype would still apply. */ 13200 1.1 christos char strcasecmp (); 13201 1.1 christos int 13202 1.1 christos main () 13203 1.1 christos { 13204 1.1 christos strcasecmp (); 13205 1.1 christos ; 13206 1.1 christos return 0; 13207 1.1 christos } 13208 1.1 christos _ACEOF 13209 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 13210 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13211 1.1 christos (eval $ac_link) 2>conftest.er1 13212 1.1 christos ac_status=$? 13213 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 13214 1.1 christos rm -f conftest.er1 13215 1.1 christos cat conftest.err >&5 13216 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13217 1.1 christos (exit $ac_status); } && 13218 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13219 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13220 1.1 christos (eval $ac_try) 2>&5 13221 1.1 christos ac_status=$? 13222 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13223 1.1 christos (exit $ac_status); }; } && 13224 1.1 christos { ac_try='test -s conftest$ac_exeext' 13225 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13226 1.1 christos (eval $ac_try) 2>&5 13227 1.1 christos ac_status=$? 13228 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13229 1.1 christos (exit $ac_status); }; }; then 13230 1.1 christos ac_cv_lib_resolv_strcasecmp=yes 13231 1.1 christos else 13232 1.1 christos echo "$as_me: failed program was:" >&5 13233 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 13234 1.1 christos 13235 1.1 christos ac_cv_lib_resolv_strcasecmp=no 13236 1.1 christos fi 13237 1.1 christos rm -f conftest.err conftest.$ac_objext \ 13238 1.1 christos conftest$ac_exeext conftest.$ac_ext 13239 1.1 christos LIBS=$ac_check_lib_save_LIBS 13240 1.1 christos fi 13241 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_strcasecmp" >&5 13242 1.1 christos echo "${ECHO_T}$ac_cv_lib_resolv_strcasecmp" >&6 13243 1.1 christos if test $ac_cv_lib_resolv_strcasecmp = yes; then 13244 1.1 christos 13245 1.1 christos 13246 1.1 christos cf_tr_func=`echo strcasecmp | tr '[a-z]' '[A-Z]'` 13247 1.1 christos 13248 1.1 christos 13249 1.1 christos cat >>confdefs.h <<_ACEOF 13250 1.1 christos #define HAVE_$cf_tr_func 1 13251 1.1 christos _ACEOF 13252 1.1 christos 13253 1.1 christos ac_cv_func_strcasecmp=yes 13254 1.1 christos cf_cv_netlibs="-lresolv $cf_cv_netlibs" 13255 1.1 christos else 13256 1.1 christos 13257 1.1 christos ac_cv_func_strcasecmp=unknown 13258 1.1 christos unset ac_cv_func_strcasecmp 2>/dev/null 13259 1.1 christos 13260 1.1 christos fi 13261 1.1 christos 13262 1.1 christos 13263 1.1 christos fi 13264 1.1 christos done 13265 1.1 christos 13266 1.1 christos 13267 1.1 christos fi 13268 1.1 christos 13269 1.1 christos LIBS="$LIBS $cf_cv_netlibs" 13270 1.1 christos test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6 13271 1.1 christos 13272 1.1 christos if test "${ac_cv_header_customs_h+set}" = set; then 13273 1.1 christos echo "$as_me:$LINENO: checking for customs.h" >&5 13274 1.1 christos echo $ECHO_N "checking for customs.h... $ECHO_C" >&6 13275 1.1 christos if test "${ac_cv_header_customs_h+set}" = set; then 13276 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 13277 1.1 christos fi 13278 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5 13279 1.1 christos echo "${ECHO_T}$ac_cv_header_customs_h" >&6 13280 1.1 christos else 13281 1.1 christos # Is the header compilable? 13282 1.1 christos echo "$as_me:$LINENO: checking customs.h usability" >&5 13283 1.1 christos echo $ECHO_N "checking customs.h usability... $ECHO_C" >&6 13284 1.1 christos cat >conftest.$ac_ext <<_ACEOF 13285 1.1 christos /* confdefs.h. */ 13286 1.1 christos _ACEOF 13287 1.1 christos cat confdefs.h >>conftest.$ac_ext 13288 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 13289 1.1 christos /* end confdefs.h. */ 13290 1.1 christos $ac_includes_default 13291 1.1 christos #include <customs.h> 13292 1.1 christos _ACEOF 13293 1.1 christos rm -f conftest.$ac_objext 13294 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13295 1.1 christos (eval $ac_compile) 2>conftest.er1 13296 1.1 christos ac_status=$? 13297 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 13298 1.1 christos rm -f conftest.er1 13299 1.1 christos cat conftest.err >&5 13300 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13301 1.1 christos (exit $ac_status); } && 13302 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13303 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13304 1.1 christos (eval $ac_try) 2>&5 13305 1.1 christos ac_status=$? 13306 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13307 1.1 christos (exit $ac_status); }; } && 13308 1.1 christos { ac_try='test -s conftest.$ac_objext' 13309 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13310 1.1 christos (eval $ac_try) 2>&5 13311 1.1 christos ac_status=$? 13312 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13313 1.1 christos (exit $ac_status); }; }; then 13314 1.1 christos ac_header_compiler=yes 13315 1.1 christos else 13316 1.1 christos echo "$as_me: failed program was:" >&5 13317 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 13318 1.1 christos 13319 1.1 christos ac_header_compiler=no 13320 1.1 christos fi 13321 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13322 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13323 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 13324 1.1 christos 13325 1.1 christos # Is the header present? 13326 1.1 christos echo "$as_me:$LINENO: checking customs.h presence" >&5 13327 1.1 christos echo $ECHO_N "checking customs.h presence... $ECHO_C" >&6 13328 1.1 christos cat >conftest.$ac_ext <<_ACEOF 13329 1.1 christos /* confdefs.h. */ 13330 1.1 christos _ACEOF 13331 1.1 christos cat confdefs.h >>conftest.$ac_ext 13332 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 13333 1.1 christos /* end confdefs.h. */ 13334 1.1 christos #include <customs.h> 13335 1.1 christos _ACEOF 13336 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13337 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13338 1.1 christos ac_status=$? 13339 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 13340 1.1 christos rm -f conftest.er1 13341 1.1 christos cat conftest.err >&5 13342 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13343 1.1 christos (exit $ac_status); } >/dev/null; then 13344 1.1 christos if test -s conftest.err; then 13345 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 13346 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13347 1.1 christos else 13348 1.1 christos ac_cpp_err= 13349 1.1 christos fi 13350 1.1 christos else 13351 1.1 christos ac_cpp_err=yes 13352 1.1 christos fi 13353 1.1 christos if test -z "$ac_cpp_err"; then 13354 1.1 christos ac_header_preproc=yes 13355 1.1 christos else 13356 1.1 christos echo "$as_me: failed program was:" >&5 13357 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 13358 1.1 christos 13359 1.1 christos ac_header_preproc=no 13360 1.1 christos fi 13361 1.1 christos rm -f conftest.err conftest.$ac_ext 13362 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13363 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 13364 1.1 christos 13365 1.1 christos # So? What about this header? 13366 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13367 1.1 christos yes:no: ) 13368 1.1 christos { echo "$as_me:$LINENO: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&5 13369 1.1 christos echo "$as_me: WARNING: customs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 13370 1.1 christos { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the compiler's result" >&5 13371 1.1 christos echo "$as_me: WARNING: customs.h: proceeding with the compiler's result" >&2;} 13372 1.1 christos ac_header_preproc=yes 13373 1.1 christos ;; 13374 1.1 christos no:yes:* ) 13375 1.1 christos { echo "$as_me:$LINENO: WARNING: customs.h: present but cannot be compiled" >&5 13376 1.1 christos echo "$as_me: WARNING: customs.h: present but cannot be compiled" >&2;} 13377 1.1 christos { echo "$as_me:$LINENO: WARNING: customs.h: check for missing prerequisite headers?" >&5 13378 1.1 christos echo "$as_me: WARNING: customs.h: check for missing prerequisite headers?" >&2;} 13379 1.1 christos { echo "$as_me:$LINENO: WARNING: customs.h: see the Autoconf documentation" >&5 13380 1.1 christos echo "$as_me: WARNING: customs.h: see the Autoconf documentation" >&2;} 13381 1.1 christos { echo "$as_me:$LINENO: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&5 13382 1.1 christos echo "$as_me: WARNING: customs.h: section \"Present But Cannot Be Compiled\"" >&2;} 13383 1.1 christos { echo "$as_me:$LINENO: WARNING: customs.h: proceeding with the preprocessor's result" >&5 13384 1.1 christos echo "$as_me: WARNING: customs.h: proceeding with the preprocessor's result" >&2;} 13385 1.1 christos { echo "$as_me:$LINENO: WARNING: customs.h: in the future, the compiler will take precedence" >&5 13386 1.1 christos echo "$as_me: WARNING: customs.h: in the future, the compiler will take precedence" >&2;} 13387 1.1 christos ( 13388 1.1 christos cat <<\_ASBOX 13389 1.1 christos ## ------------------------------- ## 13390 1.1 christos ## Report this to bug-make (at] gnu.org ## 13391 1.1 christos ## ------------------------------- ## 13392 1.1 christos _ASBOX 13393 1.1 christos ) | 13394 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 13395 1.1 christos ;; 13396 1.1 christos esac 13397 1.1 christos echo "$as_me:$LINENO: checking for customs.h" >&5 13398 1.1 christos echo $ECHO_N "checking for customs.h... $ECHO_C" >&6 13399 1.1 christos if test "${ac_cv_header_customs_h+set}" = set; then 13400 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 13401 1.1 christos else 13402 1.1 christos ac_cv_header_customs_h=$ac_header_preproc 13403 1.1 christos fi 13404 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_customs_h" >&5 13405 1.1 christos echo "${ECHO_T}$ac_cv_header_customs_h" >&6 13406 1.1 christos 13407 1.1 christos fi 13408 1.1 christos if test $ac_cv_header_customs_h = yes; then 13409 1.1 christos use_customs=true 13410 1.1 christos REMOTE=cstms 13411 1.1 christos LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags" 13412 1.1 christos else 13413 1.1 christos with_customs=no 13414 1.1 christos CPPFLAGS="$make_cppflags" make_badcust=yes 13415 1.1 christos fi 13416 1.1 christos 13417 1.1 christos 13418 1.1 christos ;; 13419 1.1 christos esac 13420 1.1 christos fi; 13421 1.1 christos # Tell automake about this, so it can include the right .c files. 13422 1.1 christos 13423 1.1 christos 13424 1.1 christos if test "$use_customs" = true; then 13425 1.1 christos USE_CUSTOMS_TRUE= 13426 1.1 christos USE_CUSTOMS_FALSE='#' 13427 1.1 christos else 13428 1.1 christos USE_CUSTOMS_TRUE='#' 13429 1.1 christos USE_CUSTOMS_FALSE= 13430 1.1 christos fi 13431 1.1 christos 13432 1.1 christos 13433 1.1 christos # See if the user asked to handle case insensitive file systems. 13434 1.1 christos 13435 1.1 christos 13436 1.1 christos 13437 1.1 christos # Check whether --enable-case-insensitive-file-system or --disable-case-insensitive-file-system was given. 13438 1.1 christos if test "${enable_case_insensitive_file_system+set}" = set; then 13439 1.1 christos enableval="$enable_case_insensitive_file_system" 13440 1.1 christos case_insensitive_fs="yes" cat >>confdefs.h <<\_ACEOF 13441 1.1 christos #define HAVE_CASE_INSENSITIVE_FS 1 13442 1.1 christos _ACEOF 13443 1.1 christos 13444 1.1 christos else 13445 1.1 christos case_insensitive_fs="no" 13446 1.1 christos fi; 13447 1.1 christos 13448 1.1 christos # See if we can handle the job server feature, and if the user wants it. 13449 1.1 christos 13450 1.1 christos # Check whether --enable-job-server or --disable-job-server was given. 13451 1.1 christos if test "${enable_job_server+set}" = set; then 13452 1.1 christos enableval="$enable_job_server" 13453 1.1 christos make_cv_job_server="$enableval" user_job_server="$enableval" 13454 1.1 christos else 13455 1.1 christos make_cv_job_server="yes" 13456 1.1 christos fi; 13457 1.1 christos 13458 1.1 christos has_wait_nohang=yes 13459 1.1 christos case "$ac_cv_func_waitpid/$ac_cv_func_wait3" in 13460 1.1 christos no/no) has_wait_nohang=no ;; 13461 1.1 christos esac 13462 1.1 christos 13463 1.1 christos echo "$as_me:$LINENO: checking for SA_RESTART" >&5 13464 1.1 christos echo $ECHO_N "checking for SA_RESTART... $ECHO_C" >&6 13465 1.1 christos if test "${make_cv_sa_restart+set}" = set; then 13466 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 13467 1.1 christos else 13468 1.1 christos 13469 1.1 christos cat >conftest.$ac_ext <<_ACEOF 13470 1.1 christos /* confdefs.h. */ 13471 1.1 christos _ACEOF 13472 1.1 christos cat confdefs.h >>conftest.$ac_ext 13473 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 13474 1.1 christos /* end confdefs.h. */ 13475 1.1 christos #include <signal.h> 13476 1.1 christos int 13477 1.1 christos main () 13478 1.1 christos { 13479 1.1 christos return SA_RESTART; 13480 1.1 christos ; 13481 1.1 christos return 0; 13482 1.1 christos } 13483 1.1 christos _ACEOF 13484 1.1 christos rm -f conftest.$ac_objext 13485 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13486 1.1 christos (eval $ac_compile) 2>conftest.er1 13487 1.1 christos ac_status=$? 13488 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 13489 1.1 christos rm -f conftest.er1 13490 1.1 christos cat conftest.err >&5 13491 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13492 1.1 christos (exit $ac_status); } && 13493 1.1 christos { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 13494 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13495 1.1 christos (eval $ac_try) 2>&5 13496 1.1 christos ac_status=$? 13497 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13498 1.1 christos (exit $ac_status); }; } && 13499 1.1 christos { ac_try='test -s conftest.$ac_objext' 13500 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13501 1.1 christos (eval $ac_try) 2>&5 13502 1.1 christos ac_status=$? 13503 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13504 1.1 christos (exit $ac_status); }; }; then 13505 1.1 christos make_cv_sa_restart=yes 13506 1.1 christos else 13507 1.1 christos echo "$as_me: failed program was:" >&5 13508 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 13509 1.1 christos 13510 1.1 christos make_cv_sa_restart=no 13511 1.1 christos fi 13512 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13513 1.1 christos fi 13514 1.1 christos echo "$as_me:$LINENO: result: $make_cv_sa_restart" >&5 13515 1.1 christos echo "${ECHO_T}$make_cv_sa_restart" >&6 13516 1.1 christos 13517 1.1 christos if test "$make_cv_sa_restart" != no; then 13518 1.1 christos 13519 1.1 christos cat >>confdefs.h <<\_ACEOF 13520 1.1 christos #define HAVE_SA_RESTART 1 13521 1.1 christos _ACEOF 13522 1.1 christos 13523 1.1 christos fi 13524 1.1 christos 13525 1.1 christos # enable make_cv_sa_restart for OS/2 so that the jobserver will be enabled, 13526 1.1 christos # but do it after HAVE_SA_RESTART has been defined. 13527 1.1 christos case "$host_os" in 13528 1.1 christos os2*) make_cv_sa_restart=yes ;; 13529 1.1 christos esac 13530 1.1 christos 13531 1.1 christos case "$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/$make_cv_job_server" in 13532 1.1 christos yes/yes/yes/yes/yes) 13533 1.1 christos 13534 1.1 christos cat >>confdefs.h <<\_ACEOF 13535 1.1 christos #define MAKE_JOBSERVER 1 13536 1.1 christos _ACEOF 13537 1.1 christos ;; 13538 1.1 christos esac 13539 1.1 christos 13540 1.1 christos # if we have both lstat() and readlink() then we can support symlink 13541 1.1 christos # timechecks. 13542 1.1 christos case "$ac_cv_func_lstat/$ac_cv_func_readlink" in 13543 1.1 christos yes/yes) 13544 1.1 christos 13545 1.1 christos cat >>confdefs.h <<\_ACEOF 13546 1.1 christos #define MAKE_SYMLINKS 1 13547 1.1 christos _ACEOF 13548 1.1 christos ;; 13549 1.1 christos esac 13550 1.1 christos 13551 1.1 christos # Find the SCCS commands, so we can include them in our default rules. 13552 1.1 christos 13553 1.1 christos echo "$as_me:$LINENO: checking for location of SCCS get command" >&5 13554 1.1 christos echo $ECHO_N "checking for location of SCCS get command... $ECHO_C" >&6 13555 1.1 christos if test "${make_cv_path_sccs_get+set}" = set; then 13556 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 13557 1.1 christos else 13558 1.1 christos 13559 1.1 christos if test -f /usr/sccs/get; then 13560 1.1 christos make_cv_path_sccs_get=/usr/sccs/get 13561 1.1 christos else 13562 1.1 christos make_cv_path_sccs_get=get 13563 1.1 christos fi 13564 1.1 christos fi 13565 1.1 christos echo "$as_me:$LINENO: result: $make_cv_path_sccs_get" >&5 13566 1.1 christos echo "${ECHO_T}$make_cv_path_sccs_get" >&6 13567 1.1 christos 13568 1.1 christos cat >>confdefs.h <<_ACEOF 13569 1.1 christos #define SCCS_GET "$make_cv_path_sccs_get" 13570 1.1 christos _ACEOF 13571 1.1 christos 13572 1.1 christos 13573 1.1 christos ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later. 13574 1.1 christos if ( /usr/sccs/admin -n s.conftest || admin -n s.conftest ) >/dev/null 2>&1 && 13575 1.1 christos test -f s.conftest; then 13576 1.1 christos # We successfully created an SCCS file. 13577 1.1 christos echo "$as_me:$LINENO: checking if SCCS get command understands -G" >&5 13578 1.1 christos echo $ECHO_N "checking if SCCS get command understands -G... $ECHO_C" >&6 13579 1.1 christos if test "${make_cv_sys_get_minus_G+set}" = set; then 13580 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 13581 1.1 christos else 13582 1.1 christos 13583 1.1 christos if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 && 13584 1.1 christos test -f conftoast; then 13585 1.1 christos make_cv_sys_get_minus_G=yes 13586 1.1 christos else 13587 1.1 christos make_cv_sys_get_minus_G=no 13588 1.1 christos fi 13589 1.1 christos fi 13590 1.1 christos echo "$as_me:$LINENO: result: $make_cv_sys_get_minus_G" >&5 13591 1.1 christos echo "${ECHO_T}$make_cv_sys_get_minus_G" >&6 13592 1.1 christos case "$make_cv_sys_get_minus_G" in 13593 1.1 christos yes) 13594 1.1 christos cat >>confdefs.h <<\_ACEOF 13595 1.1 christos #define SCCS_GET_MINUS_G 1 13596 1.1 christos _ACEOF 13597 1.1 christos ;; 13598 1.1 christos esac 13599 1.1 christos fi 13600 1.1 christos rm -f s.conftest conftoast 13601 1.1 christos 13602 1.1 christos # Check the system to see if it provides GNU glob. If not, use our 13603 1.1 christos # local version. 13604 1.1 christos 13605 1.1 christos echo "$as_me:$LINENO: checking if system libc has GNU glob" >&5 13606 1.1 christos echo $ECHO_N "checking if system libc has GNU glob... $ECHO_C" >&6 13607 1.1 christos if test "${make_cv_sys_gnu_glob+set}" = set; then 13608 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 13609 1.1 christos else 13610 1.1 christos 13611 1.1 christos cat >conftest.$ac_ext <<_ACEOF 13612 1.1 christos /* confdefs.h. */ 13613 1.1 christos _ACEOF 13614 1.1 christos cat confdefs.h >>conftest.$ac_ext 13615 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 13616 1.1 christos /* end confdefs.h. */ 13617 1.1 christos 13618 1.1 christos #include <features.h> 13619 1.1 christos #include <glob.h> 13620 1.1 christos #include <fnmatch.h> 13621 1.1 christos 13622 1.3 nonaka #define GLOB_INTERFACE_VERSION 1 13623 1.1 christos #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1 13624 1.1 christos # include <gnu-versions.h> 13625 1.3 nonaka # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION 13626 1.1 christos gnu glob 13627 1.1 christos # endif 13628 1.1 christos #endif 13629 1.1 christos 13630 1.1 christos _ACEOF 13631 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13632 1.1 christos $EGREP "gnu glob" >/dev/null 2>&1; then 13633 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 13634 1.1 christos echo "${ECHO_T}yes" >&6 13635 1.1 christos make_cv_sys_gnu_glob=yes 13636 1.1 christos else 13637 1.1 christos echo "$as_me:$LINENO: result: no; using local copy" >&5 13638 1.1 christos echo "${ECHO_T}no; using local copy" >&6 13639 1.1 christos GLOBINC='-I$(srcdir)/glob' 13640 1.1 christos GLOBLIB=glob/libglob.a 13641 1.1 christos make_cv_sys_gnu_glob=no 13642 1.1 christos fi 13643 1.1 christos rm -f conftest* 13644 1.1 christos 13645 1.1 christos fi 13646 1.1 christos 13647 1.1 christos # Tell automake about this, so it can build the right .c files. 13648 1.1 christos 13649 1.1 christos 13650 1.1 christos if test "$make_cv_sys_gnu_glob" = no; then 13651 1.1 christos USE_LOCAL_GLOB_TRUE= 13652 1.1 christos USE_LOCAL_GLOB_FALSE='#' 13653 1.1 christos else 13654 1.1 christos USE_LOCAL_GLOB_TRUE='#' 13655 1.1 christos USE_LOCAL_GLOB_FALSE= 13656 1.1 christos fi 13657 1.1 christos 13658 1.1 christos 13659 1.1 christos # Let the makefile know what our build host is 13660 1.1 christos 13661 1.1 christos 13662 1.1 christos cat >>confdefs.h <<_ACEOF 13663 1.1 christos #define MAKE_HOST "$host" 13664 1.1 christos _ACEOF 13665 1.1 christos 13666 1.1 christos MAKE_HOST="$host" 13667 1.1 christos 13668 1.1 christos 13669 1.1 christos w32_target_env=no 13670 1.1 christos 13671 1.1 christos 13672 1.1 christos if false; then 13673 1.1 christos WINDOWSENV_TRUE= 13674 1.1 christos WINDOWSENV_FALSE='#' 13675 1.1 christos else 13676 1.1 christos WINDOWSENV_TRUE='#' 13677 1.1 christos WINDOWSENV_FALSE= 13678 1.1 christos fi 13679 1.1 christos 13680 1.1 christos 13681 1.1 christos case "$host" in 13682 1.1 christos *-*-mingw32) 13683 1.1 christos 13684 1.1 christos 13685 1.1 christos if true; then 13686 1.1 christos WINDOWSENV_TRUE= 13687 1.1 christos WINDOWSENV_FALSE='#' 13688 1.1 christos else 13689 1.1 christos WINDOWSENV_TRUE='#' 13690 1.1 christos WINDOWSENV_FALSE= 13691 1.1 christos fi 13692 1.1 christos 13693 1.1 christos w32_target_env=yes 13694 1.1 christos 13695 1.1 christos cat >>confdefs.h <<\_ACEOF 13696 1.1 christos #define WINDOWS32 1 13697 1.1 christos _ACEOF 13698 1.1 christos 13699 1.1 christos 13700 1.1 christos cat >>confdefs.h <<\_ACEOF 13701 1.1 christos #define HAVE_DOS_PATHS 1 13702 1.1 christos _ACEOF 13703 1.1 christos 13704 1.1 christos ;; 13705 1.1 christos esac 13706 1.1 christos 13707 1.1 christos # Include the Maintainer's Makefile section, if it's here. 13708 1.1 christos 13709 1.1 christos MAINT_MAKEFILE=/dev/null 13710 1.1 christos if test -r "$srcdir/maintMakefile"; then 13711 1.1 christos MAINT_MAKEFILE="$srcdir/maintMakefile" 13712 1.1 christos fi 13713 1.1 christos 13714 1.1 christos 13715 1.1 christos # Allow building with dmalloc 13716 1.1 christos echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5 13717 1.1 christos echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6 13718 1.1 christos 13719 1.1 christos # Check whether --with-dmalloc or --without-dmalloc was given. 13720 1.1 christos if test "${with_dmalloc+set}" = set; then 13721 1.1 christos withval="$with_dmalloc" 13722 1.1 christos if test "$withval" = yes; then 13723 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 13724 1.1 christos echo "${ECHO_T}yes" >&6 13725 1.1 christos 13726 1.1 christos cat >>confdefs.h <<\_ACEOF 13727 1.1 christos #define WITH_DMALLOC 1 13728 1.1 christos _ACEOF 13729 1.1 christos 13730 1.1 christos LIBS="$LIBS -ldmalloc" 13731 1.1 christos LDFLAGS="$LDFLAGS -g" 13732 1.1 christos else 13733 1.1 christos echo "$as_me:$LINENO: result: no" >&5 13734 1.1 christos echo "${ECHO_T}no" >&6 13735 1.1 christos fi 13736 1.1 christos else 13737 1.1 christos echo "$as_me:$LINENO: result: no" >&5 13738 1.1 christos echo "${ECHO_T}no" >&6 13739 1.1 christos fi; 13740 1.1 christos 13741 1.1 christos 13742 1.1 christos # Forcibly disable SET_MAKE. If it's set it breaks things like the test 13743 1.1 christos # scripts, etc. 13744 1.1 christos SET_MAKE= 13745 1.1 christos 13746 1.1 christos # Sanity check and inform the user of what we found 13747 1.1 christos 13748 1.1 christos case "$make_badcust" in 13749 1.1 christos yes) echo 13750 1.1 christos echo "WARNING: --with-customs specified but no customs.h could be found;" 13751 1.1 christos echo " disabling Customs support." 13752 1.1 christos echo ;; 13753 1.1 christos esac 13754 1.1 christos 13755 1.1 christos case "$with_customs" in 13756 1.1 christos ""|n|no|y|ye|yes) ;; 13757 1.1 christos *) if test -f "$with_customs/lib/libcustoms.a"; then 13758 1.1 christos : 13759 1.1 christos else 13760 1.1 christos echo 13761 1.1 christos echo "WARNING: '$with_customs/lib' does not appear to contain the" 13762 1.1 christos echo " Customs library. You must build and install Customs" 13763 1.1 christos echo " before compiling GNU make." 13764 1.1 christos echo 13765 1.1 christos fi ;; 13766 1.1 christos esac 13767 1.1 christos 13768 1.1 christos case "$has_wait_nohang" in 13769 1.1 christos no) echo 13770 1.1 christos echo "WARNING: Your system has neither waitpid() nor wait3()." 13771 1.1 christos echo " Without one of these, signal handling is unreliable." 13772 1.1 christos echo " You should be aware that running GNU make with -j" 13773 1.1 christos echo " could result in erratic behavior." 13774 1.1 christos echo ;; 13775 1.1 christos esac 13776 1.1 christos 13777 1.1 christos case "$make_cv_job_server/$user_job_server" in 13778 1.1 christos no/yes) echo 13779 1.1 christos echo "WARNING: Make job server requires a POSIX-ish system that" 13780 1.1 christos echo " supports the pipe(), sigaction(), and either" 13781 1.1 christos echo " waitpid() or wait3() functions. Your system doesn't" 13782 1.1 christos echo " appear to provide one or more of those." 13783 1.1 christos echo " Disabling job server support." 13784 1.1 christos echo ;; 13785 1.1 christos esac 13786 1.1 christos 13787 1.1 christos 13788 1.1 christos # Specify what files are to be created. 13789 1.1 christos ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile" 13790 1.1 christos 13791 1.1 christos 13792 1.1 christos # OK, do it! 13793 1.1 christos 13794 1.1 christos cat >confcache <<\_ACEOF 13795 1.1 christos # This file is a shell script that caches the results of configure 13796 1.1 christos # tests run on this system so they can be shared between configure 13797 1.1 christos # scripts and configure runs, see configure's option --config-cache. 13798 1.1 christos # It is not useful on other systems. If it contains results you don't 13799 1.1 christos # want to keep, you may remove or edit it. 13800 1.1 christos # 13801 1.1 christos # config.status only pays attention to the cache file if you give it 13802 1.1 christos # the --recheck option to rerun configure. 13803 1.1 christos # 13804 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when 13805 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the 13806 1.1 christos # following values. 13807 1.1 christos 13808 1.1 christos _ACEOF 13809 1.1 christos 13810 1.1 christos # The following way of writing the cache mishandles newlines in values, 13811 1.1 christos # but we know of no workaround that is simple, portable, and efficient. 13812 1.1 christos # So, don't put newlines in cache variables' values. 13813 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly, 13814 1.1 christos # and sets the high bit in the cache file unless we assign to the vars. 13815 1.1 christos { 13816 1.1 christos (set) 2>&1 | 13817 1.1 christos case `(ac_space=' '; set | grep ac_space) 2>&1` in 13818 1.1 christos *ac_space=\ *) 13819 1.1 christos # `set' does not quote correctly, so add quotes (double-quote 13820 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \). 13821 1.1 christos sed -n \ 13822 1.1 christos "s/'/'\\\\''/g; 13823 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13824 1.1 christos ;; 13825 1.1 christos *) 13826 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes. 13827 1.1 christos sed -n \ 13828 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 13829 1.1 christos ;; 13830 1.1 christos esac; 13831 1.1 christos } | 13832 1.1 christos sed ' 13833 1.1 christos t clear 13834 1.1 christos : clear 13835 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13836 1.1 christos t end 13837 1.1 christos /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13838 1.1 christos : end' >>confcache 13839 1.1 christos if diff $cache_file confcache >/dev/null 2>&1; then :; else 13840 1.1 christos if test -w $cache_file; then 13841 1.1 christos test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 13842 1.1 christos cat confcache >$cache_file 13843 1.1 christos else 13844 1.1 christos echo "not updating unwritable cache $cache_file" 13845 1.1 christos fi 13846 1.1 christos fi 13847 1.1 christos rm -f confcache 13848 1.1 christos 13849 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix 13850 1.1 christos # Let make expand exec_prefix. 13851 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13852 1.1 christos 13853 1.1 christos # VPATH may cause trouble with some makes, so we remove $(srcdir), 13854 1.1 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13855 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty 13856 1.1 christos # (actually we leave an empty line to preserve line numbers). 13857 1.1 christos if test "x$srcdir" = x.; then 13858 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13859 1.1 christos s/:*\$(srcdir):*/:/; 13860 1.1 christos s/:*\${srcdir}:*/:/; 13861 1.1 christos s/:*@srcdir@:*/:/; 13862 1.1 christos s/^\([^=]*=[ ]*\):*/\1/; 13863 1.1 christos s/:*$//; 13864 1.1 christos s/^[^=]*=[ ]*$//; 13865 1.1 christos }' 13866 1.1 christos fi 13867 1.1 christos 13868 1.1 christos DEFS=-DHAVE_CONFIG_H 13869 1.1 christos 13870 1.1 christos ac_libobjs= 13871 1.1 christos ac_ltlibobjs= 13872 1.1 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13873 1.1 christos # 1. Remove the extension, and $U if already installed. 13874 1.1 christos ac_i=`echo "$ac_i" | 13875 1.1 christos sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 13876 1.1 christos # 2. Add them. 13877 1.1 christos ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 13878 1.1 christos ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 13879 1.1 christos done 13880 1.1 christos LIBOBJS=$ac_libobjs 13881 1.1 christos 13882 1.1 christos LTLIBOBJS=$ac_ltlibobjs 13883 1.1 christos 13884 1.1 christos 13885 1.1 christos if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13886 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13887 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13888 1.1 christos echo "$as_me: error: conditional \"AMDEP\" was never defined. 13889 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13890 1.1 christos { (exit 1); exit 1; }; } 13891 1.1 christos fi 13892 1.1 christos if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13893 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13894 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13895 1.1 christos echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13896 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13897 1.1 christos { (exit 1); exit 1; }; } 13898 1.1 christos fi 13899 1.1 christos if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then 13900 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"USE_CUSTOMS\" was never defined. 13901 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13902 1.1 christos echo "$as_me: error: conditional \"USE_CUSTOMS\" was never defined. 13903 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13904 1.1 christos { (exit 1); exit 1; }; } 13905 1.1 christos fi 13906 1.1 christos if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then 13907 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"USE_LOCAL_GLOB\" was never defined. 13908 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13909 1.1 christos echo "$as_me: error: conditional \"USE_LOCAL_GLOB\" was never defined. 13910 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13911 1.1 christos { (exit 1); exit 1; }; } 13912 1.1 christos fi 13913 1.1 christos if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then 13914 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"WINDOWSENV\" was never defined. 13915 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13916 1.1 christos echo "$as_me: error: conditional \"WINDOWSENV\" was never defined. 13917 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13918 1.1 christos { (exit 1); exit 1; }; } 13919 1.1 christos fi 13920 1.1 christos if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then 13921 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"WINDOWSENV\" was never defined. 13922 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13923 1.1 christos echo "$as_me: error: conditional \"WINDOWSENV\" was never defined. 13924 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13925 1.1 christos { (exit 1); exit 1; }; } 13926 1.1 christos fi 13927 1.1 christos 13928 1.1 christos : ${CONFIG_STATUS=./config.status} 13929 1.1 christos ac_clean_files_save=$ac_clean_files 13930 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13931 1.1 christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13932 1.1 christos echo "$as_me: creating $CONFIG_STATUS" >&6;} 13933 1.1 christos cat >$CONFIG_STATUS <<_ACEOF 13934 1.1 christos #! $SHELL 13935 1.1 christos # Generated by $as_me. 13936 1.1 christos # Run this file to recreate the current configuration. 13937 1.1 christos # Compiler output produced by configure, useful for debugging 13938 1.1 christos # configure, is in config.log if it exists. 13939 1.1 christos 13940 1.1 christos debug=false 13941 1.1 christos ac_cs_recheck=false 13942 1.1 christos ac_cs_silent=false 13943 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL} 13944 1.1 christos _ACEOF 13945 1.1 christos 13946 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 13947 1.1 christos ## --------------------- ## 13948 1.1 christos ## M4sh Initialization. ## 13949 1.1 christos ## --------------------- ## 13950 1.1 christos 13951 1.1 christos # Be Bourne compatible 13952 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13953 1.1 christos emulate sh 13954 1.1 christos NULLCMD=: 13955 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13956 1.1 christos # is contrary to our usage. Disable this feature. 13957 1.1 christos alias -g '${1+"$@"}'='"$@"' 13958 1.1 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 13959 1.1 christos set -o posix 13960 1.1 christos fi 13961 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh 13962 1.1 christos 13963 1.1 christos # Support unset when possible. 13964 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13965 1.1 christos as_unset=unset 13966 1.1 christos else 13967 1.1 christos as_unset=false 13968 1.1 christos fi 13969 1.1 christos 13970 1.1 christos 13971 1.1 christos # Work around bugs in pre-3.0 UWIN ksh. 13972 1.1 christos $as_unset ENV MAIL MAILPATH 13973 1.1 christos PS1='$ ' 13974 1.1 christos PS2='> ' 13975 1.1 christos PS4='+ ' 13976 1.1 christos 13977 1.1 christos # NLS nuisances. 13978 1.1 christos for as_var in \ 13979 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13980 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13981 1.1 christos LC_TELEPHONE LC_TIME 13982 1.1 christos do 13983 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13984 1.1 christos eval $as_var=C; export $as_var 13985 1.1 christos else 13986 1.1 christos $as_unset $as_var 13987 1.1 christos fi 13988 1.1 christos done 13989 1.1 christos 13990 1.1 christos # Required to use basename. 13991 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 13992 1.1 christos as_expr=expr 13993 1.1 christos else 13994 1.1 christos as_expr=false 13995 1.1 christos fi 13996 1.1 christos 13997 1.1 christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 13998 1.1 christos as_basename=basename 13999 1.1 christos else 14000 1.1 christos as_basename=false 14001 1.1 christos fi 14002 1.1 christos 14003 1.1 christos 14004 1.1 christos # Name of the executable. 14005 1.1 christos as_me=`$as_basename "$0" || 14006 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14007 1.1 christos X"$0" : 'X\(//\)$' \| \ 14008 1.1 christos X"$0" : 'X\(/\)$' \| \ 14009 1.1 christos . : '\(.\)' 2>/dev/null || 14010 1.1 christos echo X/"$0" | 14011 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 14012 1.1 christos /^X\/\(\/\/\)$/{ s//\1/; q; } 14013 1.1 christos /^X\/\(\/\).*/{ s//\1/; q; } 14014 1.1 christos s/.*/./; q'` 14015 1.1 christos 14016 1.1 christos 14017 1.1 christos # PATH needs CR, and LINENO needs CR and PATH. 14018 1.1 christos # Avoid depending upon Character Ranges. 14019 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14020 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14021 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14022 1.1 christos as_cr_digits='0123456789' 14023 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits 14024 1.1 christos 14025 1.1 christos # The user is always right. 14026 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 14027 1.1 christos echo "#! /bin/sh" >conf$$.sh 14028 1.1 christos echo "exit 0" >>conf$$.sh 14029 1.1 christos chmod +x conf$$.sh 14030 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 14031 1.1 christos PATH_SEPARATOR=';' 14032 1.1 christos else 14033 1.1 christos PATH_SEPARATOR=: 14034 1.1 christos fi 14035 1.1 christos rm -f conf$$.sh 14036 1.1 christos fi 14037 1.1 christos 14038 1.1 christos 14039 1.1 christos as_lineno_1=$LINENO 14040 1.1 christos as_lineno_2=$LINENO 14041 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14042 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 14043 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" || { 14044 1.1 christos # Find who we are. Look in the path if we contain no path at all 14045 1.1 christos # relative or not. 14046 1.1 christos case $0 in 14047 1.1 christos *[\\/]* ) as_myself=$0 ;; 14048 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14049 1.1 christos for as_dir in $PATH 14050 1.1 christos do 14051 1.1 christos IFS=$as_save_IFS 14052 1.1 christos test -z "$as_dir" && as_dir=. 14053 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14054 1.1 christos done 14055 1.1 christos 14056 1.1 christos ;; 14057 1.1 christos esac 14058 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND' 14059 1.1 christos # in which case we are not to be found in the path. 14060 1.1 christos if test "x$as_myself" = x; then 14061 1.1 christos as_myself=$0 14062 1.1 christos fi 14063 1.1 christos if test ! -f "$as_myself"; then 14064 1.1 christos { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 14065 1.1 christos echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 14066 1.1 christos { (exit 1); exit 1; }; } 14067 1.1 christos fi 14068 1.1 christos case $CONFIG_SHELL in 14069 1.1 christos '') 14070 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14071 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 14072 1.1 christos do 14073 1.1 christos IFS=$as_save_IFS 14074 1.1 christos test -z "$as_dir" && as_dir=. 14075 1.1 christos for as_base in sh bash ksh sh5; do 14076 1.1 christos case $as_dir in 14077 1.1 christos /*) 14078 1.1 christos if ("$as_dir/$as_base" -c ' 14079 1.1 christos as_lineno_1=$LINENO 14080 1.1 christos as_lineno_2=$LINENO 14081 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 14082 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 14083 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 14084 1.1 christos $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 14085 1.1 christos $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 14086 1.1 christos CONFIG_SHELL=$as_dir/$as_base 14087 1.1 christos export CONFIG_SHELL 14088 1.1 christos exec "$CONFIG_SHELL" "$0" ${1+"$@"} 14089 1.1 christos fi;; 14090 1.1 christos esac 14091 1.1 christos done 14092 1.1 christos done 14093 1.1 christos ;; 14094 1.1 christos esac 14095 1.1 christos 14096 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 14097 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a 14098 1.1 christos # line-number line before each line; the second 'sed' does the real 14099 1.1 christos # work. The second script uses 'N' to pair each line-number line 14100 1.1 christos # with the numbered line, and appends trailing '-' during 14101 1.1 christos # substitution so that $LINENO is not a special case at line end. 14102 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 14103 1.1 christos # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 14104 1.1 christos sed '=' <$as_myself | 14105 1.1 christos sed ' 14106 1.1 christos N 14107 1.1 christos s,$,-, 14108 1.1 christos : loop 14109 1.1 christos s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 14110 1.1 christos t loop 14111 1.1 christos s,-$,, 14112 1.1 christos s,^['$as_cr_digits']*\n,, 14113 1.1 christos ' >$as_me.lineno && 14114 1.1 christos chmod +x $as_me.lineno || 14115 1.1 christos { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 14116 1.1 christos echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 14117 1.1 christos { (exit 1); exit 1; }; } 14118 1.1 christos 14119 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems 14120 1.1 christos # (the dirname of $[0] is not the place where we might find the 14121 1.1 christos # original and so on. Autoconf is especially sensible to this). 14122 1.1 christos . ./$as_me.lineno 14123 1.1 christos # Exit status is that of the last command. 14124 1.1 christos exit 14125 1.1 christos } 14126 1.1 christos 14127 1.1 christos 14128 1.1 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 14129 1.1 christos *c*,-n*) ECHO_N= ECHO_C=' 14130 1.1 christos ' ECHO_T=' ' ;; 14131 1.1 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 14132 1.1 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 14133 1.1 christos esac 14134 1.1 christos 14135 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 14136 1.1 christos as_expr=expr 14137 1.1 christos else 14138 1.1 christos as_expr=false 14139 1.1 christos fi 14140 1.1 christos 14141 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 14142 1.1 christos echo >conf$$.file 14143 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then 14144 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic 14145 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 14146 1.1 christos if test -f conf$$.exe; then 14147 1.1 christos # Don't use ln at all; we don't have any links 14148 1.1 christos as_ln_s='cp -p' 14149 1.1 christos else 14150 1.1 christos as_ln_s='ln -s' 14151 1.1 christos fi 14152 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then 14153 1.1 christos as_ln_s=ln 14154 1.1 christos else 14155 1.1 christos as_ln_s='cp -p' 14156 1.1 christos fi 14157 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 14158 1.1 christos 14159 1.1 christos if mkdir -p . 2>/dev/null; then 14160 1.1 christos as_mkdir_p=: 14161 1.1 christos else 14162 1.1 christos test -d ./-p && rmdir ./-p 14163 1.1 christos as_mkdir_p=false 14164 1.1 christos fi 14165 1.1 christos 14166 1.1 christos as_executable_p="test -f" 14167 1.1 christos 14168 1.1 christos # Sed expression to map a string onto a valid CPP name. 14169 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14170 1.1 christos 14171 1.1 christos # Sed expression to map a string onto a valid variable name. 14172 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14173 1.1 christos 14174 1.1 christos 14175 1.1 christos # IFS 14176 1.1 christos # We need space, tab and new line, in precisely that order. 14177 1.1 christos as_nl=' 14178 1.1 christos ' 14179 1.1 christos IFS=" $as_nl" 14180 1.1 christos 14181 1.1 christos # CDPATH. 14182 1.1 christos $as_unset CDPATH 14183 1.1 christos 14184 1.1 christos exec 6>&1 14185 1.1 christos 14186 1.1 christos # Open the log real soon, to keep \$[0] and so on meaningful, and to 14187 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their 14188 1.1 christos # values after options handling. Logging --version etc. is OK. 14189 1.1 christos exec 5>>config.log 14190 1.1 christos { 14191 1.1 christos echo 14192 1.1 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14193 1.1 christos ## Running $as_me. ## 14194 1.1 christos _ASBOX 14195 1.1 christos } >&5 14196 1.1 christos cat >&5 <<_CSEOF 14197 1.1 christos 14198 1.1 christos This file was extended by GNU make $as_me 3.81, which was 14199 1.1 christos generated by GNU Autoconf 2.59. Invocation command line was 14200 1.1 christos 14201 1.1 christos CONFIG_FILES = $CONFIG_FILES 14202 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS 14203 1.1 christos CONFIG_LINKS = $CONFIG_LINKS 14204 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS 14205 1.1 christos $ $0 $@ 14206 1.1 christos 14207 1.1 christos _CSEOF 14208 1.1 christos echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 14209 1.1 christos echo >&5 14210 1.1 christos _ACEOF 14211 1.1 christos 14212 1.1 christos # Files that config.status was made for. 14213 1.1 christos if test -n "$ac_config_files"; then 14214 1.1 christos echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 14215 1.1 christos fi 14216 1.1 christos 14217 1.1 christos if test -n "$ac_config_headers"; then 14218 1.1 christos echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 14219 1.1 christos fi 14220 1.1 christos 14221 1.1 christos if test -n "$ac_config_links"; then 14222 1.1 christos echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 14223 1.1 christos fi 14224 1.1 christos 14225 1.1 christos if test -n "$ac_config_commands"; then 14226 1.1 christos echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 14227 1.1 christos fi 14228 1.1 christos 14229 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14230 1.1 christos 14231 1.1 christos ac_cs_usage="\ 14232 1.1 christos \`$as_me' instantiates files from templates according to the 14233 1.1 christos current configuration. 14234 1.1 christos 14235 1.1 christos Usage: $0 [OPTIONS] [FILE]... 14236 1.1 christos 14237 1.1 christos -h, --help print this help, then exit 14238 1.1 christos -V, --version print version number, then exit 14239 1.1 christos -q, --quiet do not print progress messages 14240 1.1 christos -d, --debug don't remove temporary files 14241 1.1 christos --recheck update $as_me by reconfiguring in the same conditions 14242 1.1 christos --file=FILE[:TEMPLATE] 14243 1.1 christos instantiate the configuration file FILE 14244 1.1 christos --header=FILE[:TEMPLATE] 14245 1.1 christos instantiate the configuration header FILE 14246 1.1 christos 14247 1.1 christos Configuration files: 14248 1.1 christos $config_files 14249 1.1 christos 14250 1.1 christos Configuration headers: 14251 1.1 christos $config_headers 14252 1.1 christos 14253 1.1 christos Configuration commands: 14254 1.1 christos $config_commands 14255 1.1 christos 14256 1.1 christos Report bugs to <bug-autoconf@gnu.org>." 14257 1.1 christos _ACEOF 14258 1.1 christos 14259 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 14260 1.1 christos ac_cs_version="\\ 14261 1.1 christos GNU make config.status 3.81 14262 1.1 christos configured by $0, generated by GNU Autoconf 2.59, 14263 1.1 christos with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 14264 1.1 christos 14265 1.1 christos Copyright (C) 2003 Free Software Foundation, Inc. 14266 1.1 christos This config.status script is free software; the Free Software Foundation 14267 1.1 christos gives unlimited permission to copy, distribute and modify it." 14268 1.1 christos srcdir=$srcdir 14269 1.1 christos INSTALL="$INSTALL" 14270 1.1 christos _ACEOF 14271 1.1 christos 14272 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14273 1.1 christos # If no file are specified by the user, then we need to provide default 14274 1.1 christos # value. By we need to know if files were specified by the user. 14275 1.1 christos ac_need_defaults=: 14276 1.1 christos while test $# != 0 14277 1.1 christos do 14278 1.1 christos case $1 in 14279 1.1 christos --*=*) 14280 1.1 christos ac_option=`expr "x$1" : 'x\([^=]*\)='` 14281 1.1 christos ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 14282 1.1 christos ac_shift=: 14283 1.1 christos ;; 14284 1.1 christos -*) 14285 1.1 christos ac_option=$1 14286 1.1 christos ac_optarg=$2 14287 1.1 christos ac_shift=shift 14288 1.1 christos ;; 14289 1.1 christos *) # This is not an option, so the user has probably given explicit 14290 1.1 christos # arguments. 14291 1.1 christos ac_option=$1 14292 1.1 christos ac_need_defaults=false;; 14293 1.1 christos esac 14294 1.1 christos 14295 1.1 christos case $ac_option in 14296 1.1 christos # Handling of the options. 14297 1.1 christos _ACEOF 14298 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14299 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14300 1.1 christos ac_cs_recheck=: ;; 14301 1.1 christos --version | --vers* | -V ) 14302 1.1 christos echo "$ac_cs_version"; exit 0 ;; 14303 1.1 christos --he | --h) 14304 1.1 christos # Conflict between --help and --header 14305 1.1 christos { { echo "$as_me:$LINENO: error: ambiguous option: $1 14306 1.1 christos Try \`$0 --help' for more information." >&5 14307 1.1 christos echo "$as_me: error: ambiguous option: $1 14308 1.1 christos Try \`$0 --help' for more information." >&2;} 14309 1.1 christos { (exit 1); exit 1; }; };; 14310 1.1 christos --help | --hel | -h ) 14311 1.1 christos echo "$ac_cs_usage"; exit 0 ;; 14312 1.1 christos --debug | --d* | -d ) 14313 1.1 christos debug=: ;; 14314 1.1 christos --file | --fil | --fi | --f ) 14315 1.1 christos $ac_shift 14316 1.1 christos CONFIG_FILES="$CONFIG_FILES $ac_optarg" 14317 1.1 christos ac_need_defaults=false;; 14318 1.1 christos --header | --heade | --head | --hea ) 14319 1.1 christos $ac_shift 14320 1.1 christos CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 14321 1.1 christos ac_need_defaults=false;; 14322 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14323 1.1 christos | -silent | --silent | --silen | --sile | --sil | --si | --s) 14324 1.1 christos ac_cs_silent=: ;; 14325 1.1 christos 14326 1.1 christos # This is an error. 14327 1.1 christos -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 14328 1.1 christos Try \`$0 --help' for more information." >&5 14329 1.1 christos echo "$as_me: error: unrecognized option: $1 14330 1.1 christos Try \`$0 --help' for more information." >&2;} 14331 1.1 christos { (exit 1); exit 1; }; } ;; 14332 1.1 christos 14333 1.1 christos *) ac_config_targets="$ac_config_targets $1" ;; 14334 1.1 christos 14335 1.1 christos esac 14336 1.1 christos shift 14337 1.1 christos done 14338 1.1 christos 14339 1.1 christos ac_configure_extra_args= 14340 1.1 christos 14341 1.1 christos if $ac_cs_silent; then 14342 1.1 christos exec 6>/dev/null 14343 1.1 christos ac_configure_extra_args="$ac_configure_extra_args --silent" 14344 1.1 christos fi 14345 1.1 christos 14346 1.1 christos _ACEOF 14347 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 14348 1.1 christos if \$ac_cs_recheck; then 14349 1.1 christos echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 14350 1.1 christos exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14351 1.1 christos fi 14352 1.1 christos 14353 1.1 christos _ACEOF 14354 1.1 christos 14355 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 14356 1.1 christos # 14357 1.1 christos # INIT-COMMANDS section. 14358 1.1 christos # 14359 1.1 christos 14360 1.1 christos AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14361 1.1 christos # Capture the value of obsolete ALL_LINGUAS because we need it to compute 14362 1.1 christos # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 14363 1.1 christos # from automake. 14364 1.1 christos eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 14365 1.1 christos # Capture the value of LINGUAS because we need it to compute CATALOGS. 14366 1.1 christos LINGUAS="${LINGUAS-%UNSET%}" 14367 1.1 christos 14368 1.1 christos 14369 1.1 christos _ACEOF 14370 1.1 christos 14371 1.1 christos 14372 1.1 christos 14373 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14374 1.1 christos for ac_config_target in $ac_config_targets 14375 1.1 christos do 14376 1.1 christos case "$ac_config_target" in 14377 1.1 christos # Handling of arguments. 14378 1.1 christos "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14379 1.1 christos "glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;; 14380 1.1 christos "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 14381 1.1 christos "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;; 14382 1.1 christos "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14383 1.1 christos "w32/Makefile" ) CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;; 14384 1.1 christos "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14385 1.1 christos "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14386 1.1 christos "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14387 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14388 1.1 christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14389 1.1 christos { (exit 1); exit 1; }; };; 14390 1.1 christos esac 14391 1.1 christos done 14392 1.1 christos 14393 1.1 christos # If the user did not use the arguments to specify the items to instantiate, 14394 1.1 christos # then the envvar interface is used. Set only those that are not. 14395 1.1 christos # We use the long form for the default assignment because of an extremely 14396 1.1 christos # bizarre bug on SunOS 4.1.3. 14397 1.1 christos if $ac_need_defaults; then 14398 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14399 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14400 1.1 christos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14401 1.1 christos fi 14402 1.1 christos 14403 1.1 christos # Have a temporary directory for convenience. Make it in the build tree 14404 1.1 christos # simply because there is no reason to put it here, and in addition, 14405 1.1 christos # creating and moving files from /tmp can sometimes cause problems. 14406 1.1 christos # Create a temporary directory, and hook for its removal unless debugging. 14407 1.1 christos $debug || 14408 1.1 christos { 14409 1.1 christos trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 14410 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15 14411 1.1 christos } 14412 1.1 christos 14413 1.1 christos # Create a (secure) tmp directory for tmp files. 14414 1.1 christos 14415 1.1 christos { 14416 1.1 christos tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 14417 1.1 christos test -n "$tmp" && test -d "$tmp" 14418 1.1 christos } || 14419 1.1 christos { 14420 1.1 christos tmp=./confstat$$-$RANDOM 14421 1.1 christos (umask 077 && mkdir $tmp) 14422 1.1 christos } || 14423 1.1 christos { 14424 1.1 christos echo "$me: cannot create a temporary directory in ." >&2 14425 1.1 christos { (exit 1); exit 1; } 14426 1.1 christos } 14427 1.1 christos 14428 1.1 christos _ACEOF 14429 1.1 christos 14430 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 14431 1.1 christos 14432 1.1 christos # 14433 1.1 christos # CONFIG_FILES section. 14434 1.1 christos # 14435 1.1 christos 14436 1.1 christos # No need to generate the scripts if there are no CONFIG_FILES. 14437 1.1 christos # This happens for instance when ./config.status config.h 14438 1.1 christos if test -n "\$CONFIG_FILES"; then 14439 1.1 christos # Protect against being on the right side of a sed subst in config.status. 14440 1.1 christos sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 14441 1.1 christos s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 14442 1.1 christos s,@SHELL@,$SHELL,;t t 14443 1.1 christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 14444 1.1 christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 14445 1.1 christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 14446 1.1 christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 14447 1.1 christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 14448 1.1 christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 14449 1.1 christos s,@exec_prefix@,$exec_prefix,;t t 14450 1.1 christos s,@prefix@,$prefix,;t t 14451 1.1 christos s,@program_transform_name@,$program_transform_name,;t t 14452 1.1 christos s,@bindir@,$bindir,;t t 14453 1.1 christos s,@sbindir@,$sbindir,;t t 14454 1.1 christos s,@libexecdir@,$libexecdir,;t t 14455 1.1 christos s,@datadir@,$datadir,;t t 14456 1.1 christos s,@sysconfdir@,$sysconfdir,;t t 14457 1.1 christos s,@sharedstatedir@,$sharedstatedir,;t t 14458 1.1 christos s,@localstatedir@,$localstatedir,;t t 14459 1.1 christos s,@libdir@,$libdir,;t t 14460 1.1 christos s,@includedir@,$includedir,;t t 14461 1.1 christos s,@oldincludedir@,$oldincludedir,;t t 14462 1.1 christos s,@infodir@,$infodir,;t t 14463 1.1 christos s,@mandir@,$mandir,;t t 14464 1.1 christos s,@build_alias@,$build_alias,;t t 14465 1.1 christos s,@host_alias@,$host_alias,;t t 14466 1.1 christos s,@target_alias@,$target_alias,;t t 14467 1.1 christos s,@DEFS@,$DEFS,;t t 14468 1.1 christos s,@ECHO_C@,$ECHO_C,;t t 14469 1.1 christos s,@ECHO_N@,$ECHO_N,;t t 14470 1.1 christos s,@ECHO_T@,$ECHO_T,;t t 14471 1.1 christos s,@LIBS@,$LIBS,;t t 14472 1.1 christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14473 1.1 christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14474 1.1 christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14475 1.1 christos s,@CYGPATH_W@,$CYGPATH_W,;t t 14476 1.1 christos s,@PACKAGE@,$PACKAGE,;t t 14477 1.1 christos s,@VERSION@,$VERSION,;t t 14478 1.1 christos s,@ACLOCAL@,$ACLOCAL,;t t 14479 1.1 christos s,@AUTOCONF@,$AUTOCONF,;t t 14480 1.1 christos s,@AUTOMAKE@,$AUTOMAKE,;t t 14481 1.1 christos s,@AUTOHEADER@,$AUTOHEADER,;t t 14482 1.1 christos s,@MAKEINFO@,$MAKEINFO,;t t 14483 1.1 christos s,@install_sh@,$install_sh,;t t 14484 1.1 christos s,@STRIP@,$STRIP,;t t 14485 1.1 christos s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 14486 1.1 christos s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 14487 1.1 christos s,@mkdir_p@,$mkdir_p,;t t 14488 1.1 christos s,@AWK@,$AWK,;t t 14489 1.1 christos s,@SET_MAKE@,$SET_MAKE,;t t 14490 1.1 christos s,@am__leading_dot@,$am__leading_dot,;t t 14491 1.1 christos s,@AMTAR@,$AMTAR,;t t 14492 1.1 christos s,@am__tar@,$am__tar,;t t 14493 1.1 christos s,@am__untar@,$am__untar,;t t 14494 1.1 christos s,@CC@,$CC,;t t 14495 1.1 christos s,@CFLAGS@,$CFLAGS,;t t 14496 1.1 christos s,@LDFLAGS@,$LDFLAGS,;t t 14497 1.1 christos s,@CPPFLAGS@,$CPPFLAGS,;t t 14498 1.1 christos s,@ac_ct_CC@,$ac_ct_CC,;t t 14499 1.1 christos s,@EXEEXT@,$EXEEXT,;t t 14500 1.1 christos s,@OBJEXT@,$OBJEXT,;t t 14501 1.1 christos s,@DEPDIR@,$DEPDIR,;t t 14502 1.1 christos s,@am__include@,$am__include,;t t 14503 1.1 christos s,@am__quote@,$am__quote,;t t 14504 1.1 christos s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 14505 1.1 christos s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 14506 1.1 christos s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 14507 1.1 christos s,@CCDEPMODE@,$CCDEPMODE,;t t 14508 1.1 christos s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 14509 1.1 christos s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 14510 1.1 christos s,@RANLIB@,$RANLIB,;t t 14511 1.1 christos s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 14512 1.1 christos s,@CPP@,$CPP,;t t 14513 1.1 christos s,@AR@,$AR,;t t 14514 1.1 christos s,@PERL@,$PERL,;t t 14515 1.1 christos s,@build@,$build,;t t 14516 1.1 christos s,@build_cpu@,$build_cpu,;t t 14517 1.1 christos s,@build_vendor@,$build_vendor,;t t 14518 1.1 christos s,@build_os@,$build_os,;t t 14519 1.1 christos s,@host@,$host,;t t 14520 1.1 christos s,@host_cpu@,$host_cpu,;t t 14521 1.1 christos s,@host_vendor@,$host_vendor,;t t 14522 1.1 christos s,@host_os@,$host_os,;t t 14523 1.1 christos s,@EGREP@,$EGREP,;t t 14524 1.1 christos s,@U@,$U,;t t 14525 1.1 christos s,@ANSI2KNR@,$ANSI2KNR,;t t 14526 1.1 christos s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 14527 1.1 christos s,@USE_NLS@,$USE_NLS,;t t 14528 1.1 christos s,@MSGFMT@,$MSGFMT,;t t 14529 1.1 christos s,@GMSGFMT@,$GMSGFMT,;t t 14530 1.1 christos s,@XGETTEXT@,$XGETTEXT,;t t 14531 1.1 christos s,@MSGMERGE@,$MSGMERGE,;t t 14532 1.1 christos s,@LIBICONV@,$LIBICONV,;t t 14533 1.1 christos s,@LTLIBICONV@,$LTLIBICONV,;t t 14534 1.1 christos s,@INTLLIBS@,$INTLLIBS,;t t 14535 1.1 christos s,@LIBINTL@,$LIBINTL,;t t 14536 1.1 christos s,@LTLIBINTL@,$LTLIBINTL,;t t 14537 1.1 christos s,@POSUB@,$POSUB,;t t 14538 1.1 christos s,@ALLOCA@,$ALLOCA,;t t 14539 1.1 christos s,@LIBOBJS@,$LIBOBJS,;t t 14540 1.1 christos s,@NEED_SETGID@,$NEED_SETGID,;t t 14541 1.1 christos s,@KMEM_GROUP@,$KMEM_GROUP,;t t 14542 1.1 christos s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t 14543 1.1 christos s,@REMOTE@,$REMOTE,;t t 14544 1.1 christos s,@USE_CUSTOMS_TRUE@,$USE_CUSTOMS_TRUE,;t t 14545 1.1 christos s,@USE_CUSTOMS_FALSE@,$USE_CUSTOMS_FALSE,;t t 14546 1.1 christos s,@GLOBINC@,$GLOBINC,;t t 14547 1.1 christos s,@GLOBLIB@,$GLOBLIB,;t t 14548 1.1 christos s,@USE_LOCAL_GLOB_TRUE@,$USE_LOCAL_GLOB_TRUE,;t t 14549 1.1 christos s,@USE_LOCAL_GLOB_FALSE@,$USE_LOCAL_GLOB_FALSE,;t t 14550 1.1 christos s,@MAKE_HOST@,$MAKE_HOST,;t t 14551 1.1 christos s,@WINDOWSENV_TRUE@,$WINDOWSENV_TRUE,;t t 14552 1.1 christos s,@WINDOWSENV_FALSE@,$WINDOWSENV_FALSE,;t t 14553 1.1 christos s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14554 1.1 christos /@MAINT_MAKEFILE@/r $MAINT_MAKEFILE 14555 1.1 christos s,@MAINT_MAKEFILE@,,;t t 14556 1.1 christos CEOF 14557 1.1 christos 14558 1.1 christos _ACEOF 14559 1.1 christos 14560 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14561 1.1 christos # Split the substitutions into bite-sized pieces for seds with 14562 1.1 christos # small command number limits, like on Digital OSF/1 and HP-UX. 14563 1.1 christos ac_max_sed_lines=48 14564 1.1 christos ac_sed_frag=1 # Number of current file. 14565 1.1 christos ac_beg=1 # First line for current file. 14566 1.1 christos ac_end=$ac_max_sed_lines # Line after last line for current file. 14567 1.1 christos ac_more_lines=: 14568 1.1 christos ac_sed_cmds= 14569 1.1 christos while $ac_more_lines; do 14570 1.1 christos if test $ac_beg -gt 1; then 14571 1.1 christos sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14572 1.1 christos else 14573 1.1 christos sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14574 1.1 christos fi 14575 1.1 christos if test ! -s $tmp/subs.frag; then 14576 1.1 christos ac_more_lines=false 14577 1.1 christos else 14578 1.1 christos # The purpose of the label and of the branching condition is to 14579 1.1 christos # speed up the sed processing (if there are no `@' at all, there 14580 1.1 christos # is no need to browse any of the substitutions). 14581 1.1 christos # These are the two extra sed commands mentioned above. 14582 1.1 christos (echo ':t 14583 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 14584 1.1 christos if test -z "$ac_sed_cmds"; then 14585 1.1 christos ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 14586 1.1 christos else 14587 1.1 christos ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 14588 1.1 christos fi 14589 1.1 christos ac_sed_frag=`expr $ac_sed_frag + 1` 14590 1.1 christos ac_beg=$ac_end 14591 1.1 christos ac_end=`expr $ac_end + $ac_max_sed_lines` 14592 1.1 christos fi 14593 1.1 christos done 14594 1.1 christos if test -z "$ac_sed_cmds"; then 14595 1.1 christos ac_sed_cmds=cat 14596 1.1 christos fi 14597 1.1 christos fi # test -n "$CONFIG_FILES" 14598 1.1 christos 14599 1.1 christos _ACEOF 14600 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14601 1.1 christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 14602 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14603 1.1 christos case $ac_file in 14604 1.1 christos - | *:- | *:-:* ) # input from stdin 14605 1.1 christos cat >$tmp/stdin 14606 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14607 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14608 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14609 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14610 1.1 christos * ) ac_file_in=$ac_file.in ;; 14611 1.1 christos esac 14612 1.1 christos 14613 1.1 christos # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 14614 1.1 christos ac_dir=`(dirname "$ac_file") 2>/dev/null || 14615 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14616 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \ 14617 1.1 christos X"$ac_file" : 'X\(//\)$' \| \ 14618 1.1 christos X"$ac_file" : 'X\(/\)' \| \ 14619 1.1 christos . : '\(.\)' 2>/dev/null || 14620 1.1 christos echo X"$ac_file" | 14621 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14622 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14623 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14624 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14625 1.1 christos s/.*/./; q'` 14626 1.1 christos { if $as_mkdir_p; then 14627 1.1 christos mkdir -p "$ac_dir" 14628 1.1 christos else 14629 1.1 christos as_dir="$ac_dir" 14630 1.1 christos as_dirs= 14631 1.1 christos while test ! -d "$as_dir"; do 14632 1.1 christos as_dirs="$as_dir $as_dirs" 14633 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null || 14634 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14635 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 14636 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 14637 1.1 christos X"$as_dir" : 'X\(/\)' \| \ 14638 1.1 christos . : '\(.\)' 2>/dev/null || 14639 1.1 christos echo X"$as_dir" | 14640 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14641 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14642 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14643 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14644 1.1 christos s/.*/./; q'` 14645 1.1 christos done 14646 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs 14647 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14648 1.1 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14649 1.1 christos { (exit 1); exit 1; }; }; } 14650 1.1 christos 14651 1.1 christos ac_builddir=. 14652 1.1 christos 14653 1.1 christos if test "$ac_dir" != .; then 14654 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14655 1.1 christos # A "../" for each directory in $ac_dir_suffix. 14656 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14657 1.1 christos else 14658 1.1 christos ac_dir_suffix= ac_top_builddir= 14659 1.1 christos fi 14660 1.1 christos 14661 1.1 christos case $srcdir in 14662 1.1 christos .) # No --srcdir option. We are building in place. 14663 1.1 christos ac_srcdir=. 14664 1.1 christos if test -z "$ac_top_builddir"; then 14665 1.1 christos ac_top_srcdir=. 14666 1.1 christos else 14667 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14668 1.1 christos fi ;; 14669 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path. 14670 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 14671 1.1 christos ac_top_srcdir=$srcdir ;; 14672 1.1 christos *) # Relative path. 14673 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14674 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;; 14675 1.1 christos esac 14676 1.1 christos 14677 1.1 christos # Do not use `cd foo && pwd` to compute absolute paths, because 14678 1.1 christos # the directories may not exist. 14679 1.1 christos case `pwd` in 14680 1.1 christos .) ac_abs_builddir="$ac_dir";; 14681 1.1 christos *) 14682 1.1 christos case "$ac_dir" in 14683 1.1 christos .) ac_abs_builddir=`pwd`;; 14684 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14685 1.1 christos *) ac_abs_builddir=`pwd`/"$ac_dir";; 14686 1.1 christos esac;; 14687 1.1 christos esac 14688 1.1 christos case $ac_abs_builddir in 14689 1.1 christos .) ac_abs_top_builddir=${ac_top_builddir}.;; 14690 1.1 christos *) 14691 1.1 christos case ${ac_top_builddir}. in 14692 1.1 christos .) ac_abs_top_builddir=$ac_abs_builddir;; 14693 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14694 1.1 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14695 1.1 christos esac;; 14696 1.1 christos esac 14697 1.1 christos case $ac_abs_builddir in 14698 1.1 christos .) ac_abs_srcdir=$ac_srcdir;; 14699 1.1 christos *) 14700 1.1 christos case $ac_srcdir in 14701 1.1 christos .) ac_abs_srcdir=$ac_abs_builddir;; 14702 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14703 1.1 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14704 1.1 christos esac;; 14705 1.1 christos esac 14706 1.1 christos case $ac_abs_builddir in 14707 1.1 christos .) ac_abs_top_srcdir=$ac_top_srcdir;; 14708 1.1 christos *) 14709 1.1 christos case $ac_top_srcdir in 14710 1.1 christos .) ac_abs_top_srcdir=$ac_abs_builddir;; 14711 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14712 1.1 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14713 1.1 christos esac;; 14714 1.1 christos esac 14715 1.1 christos 14716 1.1 christos 14717 1.1 christos case $INSTALL in 14718 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14719 1.1 christos *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14720 1.1 christos esac 14721 1.1 christos 14722 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't 14723 1.1 christos # use $as_me), people would be surprised to read: 14724 1.1 christos # /* config.h. Generated by config.status. */ 14725 1.1 christos if test x"$ac_file" = x-; then 14726 1.1 christos configure_input= 14727 1.1 christos else 14728 1.1 christos configure_input="$ac_file. " 14729 1.1 christos fi 14730 1.1 christos configure_input=$configure_input"Generated from `echo $ac_file_in | 14731 1.1 christos sed 's,.*/,,'` by configure." 14732 1.1 christos 14733 1.1 christos # First look for the input files in the build tree, otherwise in the 14734 1.1 christos # src tree. 14735 1.1 christos ac_file_inputs=`IFS=: 14736 1.1 christos for f in $ac_file_in; do 14737 1.1 christos case $f in 14738 1.1 christos -) echo $tmp/stdin ;; 14739 1.1 christos [\\/$]*) 14740 1.1 christos # Absolute (can't be DOS-style, as IFS=:) 14741 1.1 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14742 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 14743 1.1 christos { (exit 1); exit 1; }; } 14744 1.1 christos echo "$f";; 14745 1.1 christos *) # Relative 14746 1.1 christos if test -f "$f"; then 14747 1.1 christos # Build tree 14748 1.1 christos echo "$f" 14749 1.1 christos elif test -f "$srcdir/$f"; then 14750 1.1 christos # Source tree 14751 1.1 christos echo "$srcdir/$f" 14752 1.1 christos else 14753 1.1 christos # /dev/null tree 14754 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14755 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 14756 1.1 christos { (exit 1); exit 1; }; } 14757 1.1 christos fi;; 14758 1.1 christos esac 14759 1.1 christos done` || { (exit 1); exit 1; } 14760 1.1 christos 14761 1.1 christos if test x"$ac_file" != x-; then 14762 1.1 christos { echo "$as_me:$LINENO: creating $ac_file" >&5 14763 1.1 christos echo "$as_me: creating $ac_file" >&6;} 14764 1.1 christos rm -f "$ac_file" 14765 1.1 christos fi 14766 1.1 christos _ACEOF 14767 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 14768 1.1 christos sed "$ac_vpsub 14769 1.1 christos $extrasub 14770 1.1 christos _ACEOF 14771 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14772 1.1 christos :t 14773 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14774 1.1 christos s,@configure_input@,$configure_input,;t t 14775 1.1 christos s,@srcdir@,$ac_srcdir,;t t 14776 1.1 christos s,@abs_srcdir@,$ac_abs_srcdir,;t t 14777 1.1 christos s,@top_srcdir@,$ac_top_srcdir,;t t 14778 1.1 christos s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 14779 1.1 christos s,@builddir@,$ac_builddir,;t t 14780 1.1 christos s,@abs_builddir@,$ac_abs_builddir,;t t 14781 1.1 christos s,@top_builddir@,$ac_top_builddir,;t t 14782 1.1 christos s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 14783 1.1 christos s,@INSTALL@,$ac_INSTALL,;t t 14784 1.1 christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14785 1.1 christos rm -f $tmp/stdin 14786 1.1 christos if test x"$ac_file" != x-; then 14787 1.1 christos mv $tmp/out $ac_file 14788 1.1 christos else 14789 1.1 christos cat $tmp/out 14790 1.1 christos rm -f $tmp/out 14791 1.1 christos fi 14792 1.1 christos 14793 1.1 christos done 14794 1.1 christos _ACEOF 14795 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14796 1.1 christos 14797 1.1 christos # 14798 1.1 christos # CONFIG_HEADER section. 14799 1.1 christos # 14800 1.1 christos 14801 1.1 christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14802 1.1 christos # NAME is the cpp macro being defined and VALUE is the value it is being given. 14803 1.1 christos # 14804 1.1 christos # ac_d sets the value in "#define NAME VALUE" lines. 14805 1.1 christos ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14806 1.1 christos ac_dB='[ ].*$,\1#\2' 14807 1.1 christos ac_dC=' ' 14808 1.1 christos ac_dD=',;t' 14809 1.1 christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14810 1.1 christos ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14811 1.1 christos ac_uB='$,\1#\2define\3' 14812 1.1 christos ac_uC=' ' 14813 1.1 christos ac_uD=',;t' 14814 1.1 christos 14815 1.1 christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14816 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14817 1.1 christos case $ac_file in 14818 1.1 christos - | *:- | *:-:* ) # input from stdin 14819 1.1 christos cat >$tmp/stdin 14820 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14821 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14822 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14823 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14824 1.1 christos * ) ac_file_in=$ac_file.in ;; 14825 1.1 christos esac 14826 1.1 christos 14827 1.1 christos test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 14828 1.1 christos echo "$as_me: creating $ac_file" >&6;} 14829 1.1 christos 14830 1.1 christos # First look for the input files in the build tree, otherwise in the 14831 1.1 christos # src tree. 14832 1.1 christos ac_file_inputs=`IFS=: 14833 1.1 christos for f in $ac_file_in; do 14834 1.1 christos case $f in 14835 1.1 christos -) echo $tmp/stdin ;; 14836 1.1 christos [\\/$]*) 14837 1.1 christos # Absolute (can't be DOS-style, as IFS=:) 14838 1.1 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14839 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 14840 1.1 christos { (exit 1); exit 1; }; } 14841 1.1 christos # Do quote $f, to prevent DOS paths from being IFS'd. 14842 1.1 christos echo "$f";; 14843 1.1 christos *) # Relative 14844 1.1 christos if test -f "$f"; then 14845 1.1 christos # Build tree 14846 1.1 christos echo "$f" 14847 1.1 christos elif test -f "$srcdir/$f"; then 14848 1.1 christos # Source tree 14849 1.1 christos echo "$srcdir/$f" 14850 1.1 christos else 14851 1.1 christos # /dev/null tree 14852 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14853 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 14854 1.1 christos { (exit 1); exit 1; }; } 14855 1.1 christos fi;; 14856 1.1 christos esac 14857 1.1 christos done` || { (exit 1); exit 1; } 14858 1.1 christos # Remove the trailing spaces. 14859 1.1 christos sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14860 1.1 christos 14861 1.1 christos _ACEOF 14862 1.1 christos 14863 1.1 christos # Transform confdefs.h into two sed scripts, `conftest.defines' and 14864 1.1 christos # `conftest.undefs', that substitutes the proper values into 14865 1.1 christos # config.h.in to produce config.h. The first handles `#define' 14866 1.1 christos # templates, and the second `#undef' templates. 14867 1.1 christos # And first: Protect against being on the right side of a sed subst in 14868 1.1 christos # config.status. Protect against being in an unquoted here document 14869 1.1 christos # in config.status. 14870 1.1 christos rm -f conftest.defines conftest.undefs 14871 1.1 christos # Using a here document instead of a string reduces the quoting nightmare. 14872 1.1 christos # Putting comments in sed scripts is not portable. 14873 1.1 christos # 14874 1.1 christos # `end' is used to avoid that the second main sed command (meant for 14875 1.1 christos # 0-ary CPP macros) applies to n-ary macro definitions. 14876 1.1 christos # See the Autoconf documentation for `clear'. 14877 1.1 christos cat >confdef2sed.sed <<\_ACEOF 14878 1.1 christos s/[\\&,]/\\&/g 14879 1.1 christos s,[\\$`],\\&,g 14880 1.1 christos t clear 14881 1.1 christos : clear 14882 1.1 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 14883 1.1 christos t end 14884 1.1 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 14885 1.1 christos : end 14886 1.1 christos _ACEOF 14887 1.1 christos # If some macros were called several times there might be several times 14888 1.1 christos # the same #defines, which is useless. Nevertheless, we may not want to 14889 1.1 christos # sort them, since we want the *last* AC-DEFINE to be honored. 14890 1.1 christos uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 14891 1.1 christos sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 14892 1.1 christos rm -f confdef2sed.sed 14893 1.1 christos 14894 1.1 christos # This sed command replaces #undef with comments. This is necessary, for 14895 1.1 christos # example, in the case of _POSIX_SOURCE, which is predefined and required 14896 1.1 christos # on some systems where configure will not decide to define it. 14897 1.1 christos cat >>conftest.undefs <<\_ACEOF 14898 1.1 christos s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 14899 1.1 christos _ACEOF 14900 1.1 christos 14901 1.1 christos # Break up conftest.defines because some shells have a limit on the size 14902 1.1 christos # of here documents, and old seds have small limits too (100 cmds). 14903 1.1 christos echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 14904 1.1 christos echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 14905 1.1 christos echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 14906 1.1 christos echo ' :' >>$CONFIG_STATUS 14907 1.1 christos rm -f conftest.tail 14908 1.1 christos while grep . conftest.defines >/dev/null 14909 1.1 christos do 14910 1.1 christos # Write a limited-size here document to $tmp/defines.sed. 14911 1.1 christos echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 14912 1.1 christos # Speed up: don't consider the non `#define' lines. 14913 1.1 christos echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 14914 1.1 christos # Work around the forget-to-reset-the-flag bug. 14915 1.1 christos echo 't clr' >>$CONFIG_STATUS 14916 1.1 christos echo ': clr' >>$CONFIG_STATUS 14917 1.1 christos sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 14918 1.1 christos echo 'CEOF 14919 1.1 christos sed -f $tmp/defines.sed $tmp/in >$tmp/out 14920 1.1 christos rm -f $tmp/in 14921 1.1 christos mv $tmp/out $tmp/in 14922 1.1 christos ' >>$CONFIG_STATUS 14923 1.1 christos sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 14924 1.1 christos rm -f conftest.defines 14925 1.1 christos mv conftest.tail conftest.defines 14926 1.1 christos done 14927 1.1 christos rm -f conftest.defines 14928 1.1 christos echo ' fi # grep' >>$CONFIG_STATUS 14929 1.1 christos echo >>$CONFIG_STATUS 14930 1.1 christos 14931 1.1 christos # Break up conftest.undefs because some shells have a limit on the size 14932 1.1 christos # of here documents, and old seds have small limits too (100 cmds). 14933 1.1 christos echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 14934 1.1 christos rm -f conftest.tail 14935 1.1 christos while grep . conftest.undefs >/dev/null 14936 1.1 christos do 14937 1.1 christos # Write a limited-size here document to $tmp/undefs.sed. 14938 1.1 christos echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 14939 1.1 christos # Speed up: don't consider the non `#undef' 14940 1.1 christos echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 14941 1.1 christos # Work around the forget-to-reset-the-flag bug. 14942 1.1 christos echo 't clr' >>$CONFIG_STATUS 14943 1.1 christos echo ': clr' >>$CONFIG_STATUS 14944 1.1 christos sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 14945 1.1 christos echo 'CEOF 14946 1.1 christos sed -f $tmp/undefs.sed $tmp/in >$tmp/out 14947 1.1 christos rm -f $tmp/in 14948 1.1 christos mv $tmp/out $tmp/in 14949 1.1 christos ' >>$CONFIG_STATUS 14950 1.1 christos sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 14951 1.1 christos rm -f conftest.undefs 14952 1.1 christos mv conftest.tail conftest.undefs 14953 1.1 christos done 14954 1.1 christos rm -f conftest.undefs 14955 1.1 christos 14956 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14957 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't 14958 1.1 christos # use $as_me), people would be surprised to read: 14959 1.1 christos # /* config.h. Generated by config.status. */ 14960 1.1 christos if test x"$ac_file" = x-; then 14961 1.1 christos echo "/* Generated by configure. */" >$tmp/config.h 14962 1.1 christos else 14963 1.1 christos echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 14964 1.1 christos fi 14965 1.1 christos cat $tmp/in >>$tmp/config.h 14966 1.1 christos rm -f $tmp/in 14967 1.1 christos if test x"$ac_file" != x-; then 14968 1.1 christos if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 14969 1.1 christos { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14970 1.1 christos echo "$as_me: $ac_file is unchanged" >&6;} 14971 1.1 christos else 14972 1.1 christos ac_dir=`(dirname "$ac_file") 2>/dev/null || 14973 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14974 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \ 14975 1.1 christos X"$ac_file" : 'X\(//\)$' \| \ 14976 1.1 christos X"$ac_file" : 'X\(/\)' \| \ 14977 1.1 christos . : '\(.\)' 2>/dev/null || 14978 1.1 christos echo X"$ac_file" | 14979 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14980 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14981 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14982 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14983 1.1 christos s/.*/./; q'` 14984 1.1 christos { if $as_mkdir_p; then 14985 1.1 christos mkdir -p "$ac_dir" 14986 1.1 christos else 14987 1.1 christos as_dir="$ac_dir" 14988 1.1 christos as_dirs= 14989 1.1 christos while test ! -d "$as_dir"; do 14990 1.1 christos as_dirs="$as_dir $as_dirs" 14991 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null || 14992 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14993 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 14994 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 14995 1.1 christos X"$as_dir" : 'X\(/\)' \| \ 14996 1.1 christos . : '\(.\)' 2>/dev/null || 14997 1.1 christos echo X"$as_dir" | 14998 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14999 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15000 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 15001 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 15002 1.1 christos s/.*/./; q'` 15003 1.1 christos done 15004 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs 15005 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15006 1.1 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15007 1.1 christos { (exit 1); exit 1; }; }; } 15008 1.1 christos 15009 1.1 christos rm -f $ac_file 15010 1.1 christos mv $tmp/config.h $ac_file 15011 1.1 christos fi 15012 1.1 christos else 15013 1.1 christos cat $tmp/config.h 15014 1.1 christos rm -f $tmp/config.h 15015 1.1 christos fi 15016 1.1 christos # Compute $ac_file's index in $config_headers. 15017 1.1 christos _am_stamp_count=1 15018 1.1 christos for _am_header in $config_headers :; do 15019 1.1 christos case $_am_header in 15020 1.1 christos $ac_file | $ac_file:* ) 15021 1.1 christos break ;; 15022 1.1 christos * ) 15023 1.1 christos _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15024 1.1 christos esac 15025 1.1 christos done 15026 1.1 christos echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 15027 1.1 christos $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15028 1.1 christos X$ac_file : 'X\(//\)[^/]' \| \ 15029 1.1 christos X$ac_file : 'X\(//\)$' \| \ 15030 1.1 christos X$ac_file : 'X\(/\)' \| \ 15031 1.1 christos . : '\(.\)' 2>/dev/null || 15032 1.1 christos echo X$ac_file | 15033 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15034 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15035 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 15036 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 15037 1.1 christos s/.*/./; q'`/stamp-h$_am_stamp_count 15038 1.1 christos done 15039 1.1 christos _ACEOF 15040 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 15041 1.1 christos 15042 1.1 christos # 15043 1.1 christos # CONFIG_COMMANDS section. 15044 1.1 christos # 15045 1.1 christos for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 15046 1.1 christos ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 15047 1.1 christos ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 15048 1.1 christos ac_dir=`(dirname "$ac_dest") 2>/dev/null || 15049 1.1 christos $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15050 1.1 christos X"$ac_dest" : 'X\(//\)[^/]' \| \ 15051 1.1 christos X"$ac_dest" : 'X\(//\)$' \| \ 15052 1.1 christos X"$ac_dest" : 'X\(/\)' \| \ 15053 1.1 christos . : '\(.\)' 2>/dev/null || 15054 1.1 christos echo X"$ac_dest" | 15055 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15056 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15057 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 15058 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 15059 1.1 christos s/.*/./; q'` 15060 1.1 christos { if $as_mkdir_p; then 15061 1.1 christos mkdir -p "$ac_dir" 15062 1.1 christos else 15063 1.1 christos as_dir="$ac_dir" 15064 1.1 christos as_dirs= 15065 1.1 christos while test ! -d "$as_dir"; do 15066 1.1 christos as_dirs="$as_dir $as_dirs" 15067 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null || 15068 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15069 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 15070 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 15071 1.1 christos X"$as_dir" : 'X\(/\)' \| \ 15072 1.1 christos . : '\(.\)' 2>/dev/null || 15073 1.1 christos echo X"$as_dir" | 15074 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15075 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15076 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 15077 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 15078 1.1 christos s/.*/./; q'` 15079 1.1 christos done 15080 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs 15081 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 15082 1.1 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 15083 1.1 christos { (exit 1); exit 1; }; }; } 15084 1.1 christos 15085 1.1 christos ac_builddir=. 15086 1.1 christos 15087 1.1 christos if test "$ac_dir" != .; then 15088 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 15089 1.1 christos # A "../" for each directory in $ac_dir_suffix. 15090 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 15091 1.1 christos else 15092 1.1 christos ac_dir_suffix= ac_top_builddir= 15093 1.1 christos fi 15094 1.1 christos 15095 1.1 christos case $srcdir in 15096 1.1 christos .) # No --srcdir option. We are building in place. 15097 1.1 christos ac_srcdir=. 15098 1.1 christos if test -z "$ac_top_builddir"; then 15099 1.1 christos ac_top_srcdir=. 15100 1.1 christos else 15101 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 15102 1.1 christos fi ;; 15103 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path. 15104 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 15105 1.1 christos ac_top_srcdir=$srcdir ;; 15106 1.1 christos *) # Relative path. 15107 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 15108 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;; 15109 1.1 christos esac 15110 1.1 christos 15111 1.1 christos # Do not use `cd foo && pwd` to compute absolute paths, because 15112 1.1 christos # the directories may not exist. 15113 1.1 christos case `pwd` in 15114 1.1 christos .) ac_abs_builddir="$ac_dir";; 15115 1.1 christos *) 15116 1.1 christos case "$ac_dir" in 15117 1.1 christos .) ac_abs_builddir=`pwd`;; 15118 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 15119 1.1 christos *) ac_abs_builddir=`pwd`/"$ac_dir";; 15120 1.1 christos esac;; 15121 1.1 christos esac 15122 1.1 christos case $ac_abs_builddir in 15123 1.1 christos .) ac_abs_top_builddir=${ac_top_builddir}.;; 15124 1.1 christos *) 15125 1.1 christos case ${ac_top_builddir}. in 15126 1.1 christos .) ac_abs_top_builddir=$ac_abs_builddir;; 15127 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 15128 1.1 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 15129 1.1 christos esac;; 15130 1.1 christos esac 15131 1.1 christos case $ac_abs_builddir in 15132 1.1 christos .) ac_abs_srcdir=$ac_srcdir;; 15133 1.1 christos *) 15134 1.1 christos case $ac_srcdir in 15135 1.1 christos .) ac_abs_srcdir=$ac_abs_builddir;; 15136 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 15137 1.1 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 15138 1.1 christos esac;; 15139 1.1 christos esac 15140 1.1 christos case $ac_abs_builddir in 15141 1.1 christos .) ac_abs_top_srcdir=$ac_top_srcdir;; 15142 1.1 christos *) 15143 1.1 christos case $ac_top_srcdir in 15144 1.1 christos .) ac_abs_top_srcdir=$ac_abs_builddir;; 15145 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 15146 1.1 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 15147 1.1 christos esac;; 15148 1.1 christos esac 15149 1.1 christos 15150 1.1 christos 15151 1.1 christos { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 15152 1.1 christos echo "$as_me: executing $ac_dest commands" >&6;} 15153 1.1 christos case $ac_dest in 15154 1.1 christos depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 15155 1.1 christos # Strip MF so we end up with the name of the file. 15156 1.1 christos mf=`echo "$mf" | sed -e 's/:.*$//'` 15157 1.1 christos # Check whether this is an Automake generated Makefile or not. 15158 1.1 christos # We used to match only the files named `Makefile.in', but 15159 1.1 christos # some people rename them; so instead we look at the file content. 15160 1.1 christos # Grep'ing the first line is not enough: some people post-process 15161 1.1 christos # each Makefile.in and add a new line on top of each file to say so. 15162 1.1 christos # So let's grep whole file. 15163 1.1 christos if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 15164 1.1 christos dirpart=`(dirname "$mf") 2>/dev/null || 15165 1.1 christos $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15166 1.1 christos X"$mf" : 'X\(//\)[^/]' \| \ 15167 1.1 christos X"$mf" : 'X\(//\)$' \| \ 15168 1.1 christos X"$mf" : 'X\(/\)' \| \ 15169 1.1 christos . : '\(.\)' 2>/dev/null || 15170 1.1 christos echo X"$mf" | 15171 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15172 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15173 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 15174 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 15175 1.1 christos s/.*/./; q'` 15176 1.1 christos else 15177 1.1 christos continue 15178 1.1 christos fi 15179 1.1 christos # Extract the definition of DEPDIR, am__include, and am__quote 15180 1.1 christos # from the Makefile without running `make'. 15181 1.1 christos DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15182 1.1 christos test -z "$DEPDIR" && continue 15183 1.1 christos am__include=`sed -n 's/^am__include = //p' < "$mf"` 15184 1.1 christos test -z "am__include" && continue 15185 1.1 christos am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15186 1.1 christos # When using ansi2knr, U may be empty or an underscore; expand it 15187 1.1 christos U=`sed -n 's/^U = //p' < "$mf"` 15188 1.1 christos # Find all dependency output files, they are included files with 15189 1.1 christos # $(DEPDIR) in their names. We invoke sed twice because it is the 15190 1.1 christos # simplest approach to changing $(DEPDIR) to its actual value in the 15191 1.1 christos # expansion. 15192 1.1 christos for file in `sed -n " 15193 1.1 christos s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15194 1.1 christos sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 15195 1.1 christos # Make sure the directory exists. 15196 1.1 christos test -f "$dirpart/$file" && continue 15197 1.1 christos fdir=`(dirname "$file") 2>/dev/null || 15198 1.1 christos $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15199 1.1 christos X"$file" : 'X\(//\)[^/]' \| \ 15200 1.1 christos X"$file" : 'X\(//\)$' \| \ 15201 1.1 christos X"$file" : 'X\(/\)' \| \ 15202 1.1 christos . : '\(.\)' 2>/dev/null || 15203 1.1 christos echo X"$file" | 15204 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15205 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15206 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 15207 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 15208 1.1 christos s/.*/./; q'` 15209 1.1 christos { if $as_mkdir_p; then 15210 1.1 christos mkdir -p $dirpart/$fdir 15211 1.1 christos else 15212 1.1 christos as_dir=$dirpart/$fdir 15213 1.1 christos as_dirs= 15214 1.1 christos while test ! -d "$as_dir"; do 15215 1.1 christos as_dirs="$as_dir $as_dirs" 15216 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null || 15217 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15218 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 15219 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 15220 1.1 christos X"$as_dir" : 'X\(/\)' \| \ 15221 1.1 christos . : '\(.\)' 2>/dev/null || 15222 1.1 christos echo X"$as_dir" | 15223 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 15224 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 15225 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 15226 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 15227 1.1 christos s/.*/./; q'` 15228 1.1 christos done 15229 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs 15230 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 15231 1.1 christos echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 15232 1.1 christos { (exit 1); exit 1; }; }; } 15233 1.1 christos 15234 1.1 christos # echo "creating $dirpart/$file" 15235 1.1 christos echo '# dummy' > "$dirpart/$file" 15236 1.1 christos done 15237 1.1 christos done 15238 1.1 christos ;; 15239 1.1 christos default-1 ) 15240 1.1 christos for ac_file in $CONFIG_FILES; do 15241 1.1 christos # Support "outfile[:infile[:infile...]]" 15242 1.1 christos case "$ac_file" in 15243 1.1 christos *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 15244 1.1 christos esac 15245 1.1 christos # PO directories have a Makefile.in generated from Makefile.in.in. 15246 1.1 christos case "$ac_file" in */Makefile.in) 15247 1.1 christos # Adjust a relative srcdir. 15248 1.1 christos ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 15249 1.1 christos ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 15250 1.1 christos ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 15251 1.1 christos # In autoconf-2.13 it is called $ac_given_srcdir. 15252 1.1 christos # In autoconf-2.50 it is called $srcdir. 15253 1.1 christos test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 15254 1.1 christos case "$ac_given_srcdir" in 15255 1.1 christos .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 15256 1.1 christos /*) top_srcdir="$ac_given_srcdir" ;; 15257 1.1 christos *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 15258 1.1 christos esac 15259 1.1 christos if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 15260 1.1 christos rm -f "$ac_dir/POTFILES" 15261 1.1 christos test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 15262 1.1 christos cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 15263 1.1 christos POMAKEFILEDEPS="POTFILES.in" 15264 1.1 christos # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 15265 1.1 christos # on $ac_dir but don't depend on user-specified configuration 15266 1.1 christos # parameters. 15267 1.1 christos if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 15268 1.1 christos # The LINGUAS file contains the set of available languages. 15269 1.1 christos if test -n "$OBSOLETE_ALL_LINGUAS"; then 15270 1.1 christos test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 15271 1.1 christos fi 15272 1.1 christos ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 15273 1.1 christos # Hide the ALL_LINGUAS assigment from automake. 15274 1.1 christos eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 15275 1.1 christos POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 15276 1.1 christos else 15277 1.1 christos # The set of available languages was given in configure.in. 15278 1.1 christos eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 15279 1.1 christos fi 15280 1.1 christos # Compute POFILES 15281 1.1 christos # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 15282 1.1 christos # Compute UPDATEPOFILES 15283 1.1 christos # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 15284 1.1 christos # Compute DUMMYPOFILES 15285 1.1 christos # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 15286 1.1 christos # Compute GMOFILES 15287 1.1 christos # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 15288 1.1 christos case "$ac_given_srcdir" in 15289 1.1 christos .) srcdirpre= ;; 15290 1.1 christos *) srcdirpre='$(srcdir)/' ;; 15291 1.1 christos esac 15292 1.1 christos POFILES= 15293 1.1 christos UPDATEPOFILES= 15294 1.1 christos DUMMYPOFILES= 15295 1.1 christos GMOFILES= 15296 1.1 christos for lang in $ALL_LINGUAS; do 15297 1.1 christos POFILES="$POFILES $srcdirpre$lang.po" 15298 1.1 christos UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 15299 1.1 christos DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 15300 1.1 christos GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 15301 1.1 christos done 15302 1.1 christos # CATALOGS depends on both $ac_dir and the user's LINGUAS 15303 1.1 christos # environment variable. 15304 1.1 christos INST_LINGUAS= 15305 1.1 christos if test -n "$ALL_LINGUAS"; then 15306 1.1 christos for presentlang in $ALL_LINGUAS; do 15307 1.1 christos useit=no 15308 1.1 christos if test "%UNSET%" != "$LINGUAS"; then 15309 1.1 christos desiredlanguages="$LINGUAS" 15310 1.1 christos else 15311 1.1 christos desiredlanguages="$ALL_LINGUAS" 15312 1.1 christos fi 15313 1.1 christos for desiredlang in $desiredlanguages; do 15314 1.1 christos # Use the presentlang catalog if desiredlang is 15315 1.1 christos # a. equal to presentlang, or 15316 1.1 christos # b. a variant of presentlang (because in this case, 15317 1.1 christos # presentlang can be used as a fallback for messages 15318 1.1 christos # which are not translated in the desiredlang catalog). 15319 1.1 christos case "$desiredlang" in 15320 1.1 christos "$presentlang"*) useit=yes;; 15321 1.1 christos esac 15322 1.1 christos done 15323 1.1 christos if test $useit = yes; then 15324 1.1 christos INST_LINGUAS="$INST_LINGUAS $presentlang" 15325 1.1 christos fi 15326 1.1 christos done 15327 1.1 christos fi 15328 1.1 christos CATALOGS= 15329 1.1 christos if test -n "$INST_LINGUAS"; then 15330 1.1 christos for lang in $INST_LINGUAS; do 15331 1.1 christos CATALOGS="$CATALOGS $lang.gmo" 15332 1.1 christos done 15333 1.1 christos fi 15334 1.1 christos test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 15335 1.1 christos sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 15336 1.1 christos for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 15337 1.1 christos if test -f "$f"; then 15338 1.1 christos case "$f" in 15339 1.1 christos *.orig | *.bak | *~) ;; 15340 1.1 christos *) cat "$f" >> "$ac_dir/Makefile" ;; 15341 1.1 christos esac 15342 1.1 christos fi 15343 1.1 christos done 15344 1.1 christos fi 15345 1.1 christos ;; 15346 1.1 christos esac 15347 1.1 christos done ;; 15348 1.1 christos esac 15349 1.1 christos done 15350 1.1 christos _ACEOF 15351 1.1 christos 15352 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 15353 1.1 christos 15354 1.1 christos { (exit 0); exit 0; } 15355 1.1 christos _ACEOF 15356 1.1 christos chmod +x $CONFIG_STATUS 15357 1.1 christos ac_clean_files=$ac_clean_files_save 15358 1.1 christos 15359 1.1 christos 15360 1.1 christos # configure is writing to config.log, and then calls config.status. 15361 1.1 christos # config.status does its own redirection, appending to config.log. 15362 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open 15363 1.1 christos # by configure, so config.status won't be able to write to it; its 15364 1.1 christos # output is simply discarded. So we exec the FD to /dev/null, 15365 1.1 christos # effectively closing config.log, so it can be properly (re)opened and 15366 1.1 christos # appended to by config.status. When coming back to configure, we 15367 1.1 christos # need to make the FD available again. 15368 1.1 christos if test "$no_create" != yes; then 15369 1.1 christos ac_cs_success=: 15370 1.1 christos ac_config_status_args= 15371 1.1 christos test "$silent" = yes && 15372 1.1 christos ac_config_status_args="$ac_config_status_args --quiet" 15373 1.1 christos exec 5>/dev/null 15374 1.1 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15375 1.1 christos exec 5>>config.log 15376 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15377 1.1 christos # would make configure fail if this is the last instruction. 15378 1.1 christos $ac_cs_success || { (exit 1); exit 1; } 15379 1.1 christos fi 15380 1.1 christos 15381 1.1 christos 15382 1.1 christos # We only generate the build.sh if we have a build.sh.in; we won't have 15383 1.1 christos # one before we've created a distribution. 15384 1.1 christos if test -f "$srcdir/build.sh.in"; then 15385 1.1 christos ./config.status --file build.sh 15386 1.1 christos chmod +x build.sh 15387 1.1 christos fi 15388 1.1 christos 15389