1 1.1 christos #! /bin/sh 2 1.1 christos # Guess values for system-dependent variables and create Makefiles. 3 1.1 christos # Generated by GNU Autoconf 2.59 for GNU Texinfo 4.8. 4 1.1 christos # 5 1.1 christos # Copyright (C) 2003 Free Software Foundation, Inc. 6 1.1 christos # This configure script is free software; the Free Software Foundation 7 1.1 christos # gives unlimited permission to copy, distribute and modify it. 8 1.1 christos ## --------------------- ## 9 1.1 christos ## M4sh Initialization. ## 10 1.1 christos ## --------------------- ## 11 1.1 christos 12 1.1 christos # Be Bourne compatible 13 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 1.1 christos emulate sh 15 1.1 christos NULLCMD=: 16 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 1.1 christos # is contrary to our usage. Disable this feature. 18 1.1 christos alias -g '${1+"$@"}'='"$@"' 19 1.1 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 1.1 christos set -o posix 21 1.1 christos fi 22 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh 23 1.1 christos 24 1.1 christos # Support unset when possible. 25 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 1.1 christos as_unset=unset 27 1.1 christos else 28 1.1 christos as_unset=false 29 1.1 christos fi 30 1.1 christos 31 1.1 christos 32 1.1 christos # Work around bugs in pre-3.0 UWIN ksh. 33 1.1 christos $as_unset ENV MAIL MAILPATH 34 1.1 christos PS1='$ ' 35 1.1 christos PS2='> ' 36 1.1 christos PS4='+ ' 37 1.1 christos 38 1.1 christos # NLS nuisances. 39 1.1 christos for as_var in \ 40 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 1.1 christos LC_TELEPHONE LC_TIME 43 1.1 christos do 44 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 1.1 christos eval $as_var=C; export $as_var 46 1.1 christos else 47 1.1 christos $as_unset $as_var 48 1.1 christos fi 49 1.1 christos done 50 1.1 christos 51 1.1 christos # Required to use basename. 52 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 53 1.1 christos as_expr=expr 54 1.1 christos else 55 1.1 christos as_expr=false 56 1.1 christos fi 57 1.1 christos 58 1.1 christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 1.1 christos as_basename=basename 60 1.1 christos else 61 1.1 christos as_basename=false 62 1.1 christos fi 63 1.1 christos 64 1.1 christos 65 1.1 christos # Name of the executable. 66 1.1 christos as_me=`$as_basename "$0" || 67 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 1.1 christos X"$0" : 'X\(//\)$' \| \ 69 1.1 christos X"$0" : 'X\(/\)$' \| \ 70 1.1 christos . : '\(.\)' 2>/dev/null || 71 1.1 christos echo X/"$0" | 72 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 1.1 christos /^X\/\(\/\/\)$/{ s//\1/; q; } 74 1.1 christos /^X\/\(\/\).*/{ s//\1/; q; } 75 1.1 christos s/.*/./; q'` 76 1.1 christos 77 1.1 christos 78 1.1 christos # PATH needs CR, and LINENO needs CR and PATH. 79 1.1 christos # Avoid depending upon Character Ranges. 80 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83 1.1 christos as_cr_digits='0123456789' 84 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits 85 1.1 christos 86 1.1 christos # The user is always right. 87 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 88 1.1 christos echo "#! /bin/sh" >conf$$.sh 89 1.1 christos echo "exit 0" >>conf$$.sh 90 1.1 christos chmod +x conf$$.sh 91 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 1.1 christos PATH_SEPARATOR=';' 93 1.1 christos else 94 1.1 christos PATH_SEPARATOR=: 95 1.1 christos fi 96 1.1 christos rm -f conf$$.sh 97 1.1 christos fi 98 1.1 christos 99 1.1 christos 100 1.1 christos as_lineno_1=$LINENO 101 1.1 christos as_lineno_2=$LINENO 102 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 104 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" || { 105 1.1 christos # Find who we are. Look in the path if we contain no path at all 106 1.1 christos # relative or not. 107 1.1 christos case $0 in 108 1.1 christos *[\\/]* ) as_myself=$0 ;; 109 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 1.1 christos for as_dir in $PATH 111 1.1 christos do 112 1.1 christos IFS=$as_save_IFS 113 1.1 christos test -z "$as_dir" && as_dir=. 114 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 1.1 christos done 116 1.1 christos 117 1.1 christos ;; 118 1.1 christos esac 119 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND' 120 1.1 christos # in which case we are not to be found in the path. 121 1.1 christos if test "x$as_myself" = x; then 122 1.1 christos as_myself=$0 123 1.1 christos fi 124 1.1 christos if test ! -f "$as_myself"; then 125 1.1 christos { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 1.1 christos { (exit 1); exit 1; }; } 127 1.1 christos fi 128 1.1 christos case $CONFIG_SHELL in 129 1.1 christos '') 130 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132 1.1 christos do 133 1.1 christos IFS=$as_save_IFS 134 1.1 christos test -z "$as_dir" && as_dir=. 135 1.1 christos for as_base in sh bash ksh sh5; do 136 1.1 christos case $as_dir in 137 1.1 christos /*) 138 1.1 christos if ("$as_dir/$as_base" -c ' 139 1.1 christos as_lineno_1=$LINENO 140 1.1 christos as_lineno_2=$LINENO 141 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 143 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 1.1 christos $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 1.1 christos $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 1.1 christos CONFIG_SHELL=$as_dir/$as_base 147 1.1 christos export CONFIG_SHELL 148 1.1 christos exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 1.1 christos fi;; 150 1.1 christos esac 151 1.1 christos done 152 1.1 christos done 153 1.1 christos ;; 154 1.1 christos esac 155 1.1 christos 156 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a 158 1.1 christos # line-number line before each line; the second 'sed' does the real 159 1.1 christos # work. The second script uses 'N' to pair each line-number line 160 1.1 christos # with the numbered line, and appends trailing '-' during 161 1.1 christos # substitution so that $LINENO is not a special case at line end. 162 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 1.1 christos # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 1.1 christos sed '=' <$as_myself | 165 1.1 christos sed ' 166 1.1 christos N 167 1.1 christos s,$,-, 168 1.1 christos : loop 169 1.1 christos s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 1.1 christos t loop 171 1.1 christos s,-$,, 172 1.1 christos s,^['$as_cr_digits']*\n,, 173 1.1 christos ' >$as_me.lineno && 174 1.1 christos chmod +x $as_me.lineno || 175 1.1 christos { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 1.1 christos { (exit 1); exit 1; }; } 177 1.1 christos 178 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems 179 1.1 christos # (the dirname of $[0] is not the place where we might find the 180 1.1 christos # original and so on. Autoconf is especially sensible to this). 181 1.1 christos . ./$as_me.lineno 182 1.1 christos # Exit status is that of the last command. 183 1.1 christos exit 184 1.1 christos } 185 1.1 christos 186 1.1 christos 187 1.1 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 1.1 christos *c*,-n*) ECHO_N= ECHO_C=' 189 1.1 christos ' ECHO_T=' ' ;; 190 1.1 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 1.1 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 1.1 christos esac 193 1.1 christos 194 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 195 1.1 christos as_expr=expr 196 1.1 christos else 197 1.1 christos as_expr=false 198 1.1 christos fi 199 1.1 christos 200 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 201 1.1 christos echo >conf$$.file 202 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then 203 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic 204 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 1.1 christos if test -f conf$$.exe; then 206 1.1 christos # Don't use ln at all; we don't have any links 207 1.1 christos as_ln_s='cp -p' 208 1.1 christos else 209 1.1 christos as_ln_s='ln -s' 210 1.1 christos fi 211 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then 212 1.1 christos as_ln_s=ln 213 1.1 christos else 214 1.1 christos as_ln_s='cp -p' 215 1.1 christos fi 216 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 217 1.1 christos 218 1.1 christos if mkdir -p . 2>/dev/null; then 219 1.1 christos as_mkdir_p=: 220 1.1 christos else 221 1.1 christos test -d ./-p && rmdir ./-p 222 1.1 christos as_mkdir_p=false 223 1.1 christos fi 224 1.1 christos 225 1.1 christos as_executable_p="test -f" 226 1.1 christos 227 1.1 christos # Sed expression to map a string onto a valid CPP name. 228 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 1.1 christos 230 1.1 christos # Sed expression to map a string onto a valid variable name. 231 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 1.1 christos 233 1.1 christos 234 1.1 christos # IFS 235 1.1 christos # We need space, tab and new line, in precisely that order. 236 1.1 christos as_nl=' 237 1.1 christos ' 238 1.1 christos IFS=" $as_nl" 239 1.1 christos 240 1.1 christos # CDPATH. 241 1.1 christos $as_unset CDPATH 242 1.1 christos 243 1.1 christos 244 1.1 christos # Name of the host. 245 1.1 christos # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246 1.1 christos # so uname gets run too. 247 1.1 christos ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 1.1 christos 249 1.1 christos exec 6>&1 250 1.1 christos 251 1.1 christos # 252 1.1 christos # Initializations. 253 1.1 christos # 254 1.1 christos ac_default_prefix=/usr/local 255 1.1 christos ac_config_libobj_dir=. 256 1.1 christos cross_compiling=no 257 1.1 christos subdirs= 258 1.1 christos MFLAGS= 259 1.1 christos MAKEFLAGS= 260 1.1 christos SHELL=${CONFIG_SHELL-/bin/sh} 261 1.1 christos 262 1.1 christos # Maximum number of lines to put in a shell here document. 263 1.1 christos # This variable seems obsolete. It should probably be removed, and 264 1.1 christos # only ac_max_sed_lines should be used. 265 1.1 christos : ${ac_max_here_lines=38} 266 1.1 christos 267 1.1 christos # Identity of this package. 268 1.1 christos PACKAGE_NAME='GNU Texinfo' 269 1.1 christos PACKAGE_TARNAME='texinfo' 270 1.1 christos PACKAGE_VERSION='4.8' 271 1.1 christos PACKAGE_STRING='GNU Texinfo 4.8' 272 1.1 christos PACKAGE_BUGREPORT='' 273 1.1 christos 274 1.1 christos ac_unique_file="makeinfo/makeinfo.c" 275 1.1 christos # Factoring default headers for most tests. 276 1.1 christos ac_includes_default="\ 277 1.1 christos #include <stdio.h> 278 1.1 christos #if HAVE_SYS_TYPES_H 279 1.1 christos # include <sys/types.h> 280 1.1 christos #endif 281 1.1 christos #if HAVE_SYS_STAT_H 282 1.1 christos # include <sys/stat.h> 283 1.1 christos #endif 284 1.1 christos #if STDC_HEADERS 285 1.1 christos # include <stdlib.h> 286 1.1 christos # include <stddef.h> 287 1.1 christos #else 288 1.1 christos # if HAVE_STDLIB_H 289 1.1 christos # include <stdlib.h> 290 1.1 christos # endif 291 1.1 christos #endif 292 1.1 christos #if HAVE_STRING_H 293 1.1 christos # if !STDC_HEADERS && HAVE_MEMORY_H 294 1.1 christos # include <memory.h> 295 1.1 christos # endif 296 1.1 christos # include <string.h> 297 1.1 christos #endif 298 1.1 christos #if HAVE_STRINGS_H 299 1.1 christos # include <strings.h> 300 1.1 christos #endif 301 1.1 christos #if HAVE_INTTYPES_H 302 1.1 christos # include <inttypes.h> 303 1.1 christos #else 304 1.1 christos # if HAVE_STDINT_H 305 1.1 christos # include <stdint.h> 306 1.1 christos # endif 307 1.1 christos #endif 308 1.1 christos #if HAVE_UNISTD_H 309 1.1 christos # include <unistd.h> 310 1.1 christos #endif" 311 1.1 christos 312 1.1 christos gl_header_list= 313 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP EGREP RANLIB ac_ct_RANLIB HELP2MAN ALLOCA LIBOBJS build build_cpu build_vendor build_os native_tools TOOLS_ONLY_TRUE TOOLS_ONLY_FALSE TERMLIBS host host_cpu host_vendor host_os INSTALL_WARNINGS_TRUE INSTALL_WARNINGS_FALSE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS' 314 1.1 christos ac_subst_files='' 315 1.1 christos 316 1.1 christos # Initialize some variables set by options. 317 1.1 christos ac_init_help= 318 1.1 christos ac_init_version=false 319 1.1 christos # The variables have the same names as the options, with 320 1.1 christos # dashes changed to underlines. 321 1.1 christos cache_file=/dev/null 322 1.1 christos exec_prefix=NONE 323 1.1 christos no_create= 324 1.1 christos no_recursion= 325 1.1 christos prefix=NONE 326 1.1 christos program_prefix=NONE 327 1.1 christos program_suffix=NONE 328 1.1 christos program_transform_name=s,x,x, 329 1.1 christos silent= 330 1.1 christos site= 331 1.1 christos srcdir= 332 1.1 christos verbose= 333 1.1 christos x_includes=NONE 334 1.1 christos x_libraries=NONE 335 1.1 christos 336 1.1 christos # Installation directory options. 337 1.1 christos # These are left unexpanded so users can "make install exec_prefix=/foo" 338 1.1 christos # and all the variables that are supposed to be based on exec_prefix 339 1.1 christos # by default will actually change. 340 1.1 christos # Use braces instead of parens because sh, perl, etc. also accept them. 341 1.1 christos bindir='${exec_prefix}/bin' 342 1.1 christos sbindir='${exec_prefix}/sbin' 343 1.1 christos libexecdir='${exec_prefix}/libexec' 344 1.1 christos datadir='${prefix}/share' 345 1.1 christos sysconfdir='${prefix}/etc' 346 1.1 christos sharedstatedir='${prefix}/com' 347 1.1 christos localstatedir='${prefix}/var' 348 1.1 christos libdir='${exec_prefix}/lib' 349 1.1 christos includedir='${prefix}/include' 350 1.1 christos oldincludedir='/usr/include' 351 1.1 christos infodir='${prefix}/info' 352 1.1 christos mandir='${prefix}/man' 353 1.1 christos 354 1.1 christos ac_prev= 355 1.1 christos for ac_option 356 1.1 christos do 357 1.1 christos # If the previous option needs an argument, assign it. 358 1.1 christos if test -n "$ac_prev"; then 359 1.1 christos eval "$ac_prev=\$ac_option" 360 1.1 christos ac_prev= 361 1.1 christos continue 362 1.1 christos fi 363 1.1 christos 364 1.1 christos ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 365 1.1 christos 366 1.1 christos # Accept the important Cygnus configure options, so we can diagnose typos. 367 1.1 christos 368 1.1 christos case $ac_option in 369 1.1 christos 370 1.1 christos -bindir | --bindir | --bindi | --bind | --bin | --bi) 371 1.1 christos ac_prev=bindir ;; 372 1.1 christos -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 373 1.1 christos bindir=$ac_optarg ;; 374 1.1 christos 375 1.1 christos -build | --build | --buil | --bui | --bu) 376 1.1 christos ac_prev=build_alias ;; 377 1.1 christos -build=* | --build=* | --buil=* | --bui=* | --bu=*) 378 1.1 christos build_alias=$ac_optarg ;; 379 1.1 christos 380 1.1 christos -cache-file | --cache-file | --cache-fil | --cache-fi \ 381 1.1 christos | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 382 1.1 christos ac_prev=cache_file ;; 383 1.1 christos -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 384 1.1 christos | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 385 1.1 christos cache_file=$ac_optarg ;; 386 1.1 christos 387 1.1 christos --config-cache | -C) 388 1.1 christos cache_file=config.cache ;; 389 1.1 christos 390 1.1 christos -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 391 1.1 christos ac_prev=datadir ;; 392 1.1 christos -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 1.1 christos | --da=*) 394 1.1 christos datadir=$ac_optarg ;; 395 1.1 christos 396 1.1 christos -disable-* | --disable-*) 397 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 1.1 christos # Reject names that are not valid shell variable names. 399 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 400 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 1.1 christos { (exit 1); exit 1; }; } 402 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 1.1 christos eval "enable_$ac_feature=no" ;; 404 1.1 christos 405 1.1 christos -enable-* | --enable-*) 406 1.1 christos ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 1.1 christos # Reject names that are not valid shell variable names. 408 1.1 christos expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 409 1.1 christos { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 1.1 christos { (exit 1); exit 1; }; } 411 1.1 christos ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 1.1 christos case $ac_option in 413 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 1.1 christos *) ac_optarg=yes ;; 415 1.1 christos esac 416 1.1 christos eval "enable_$ac_feature='$ac_optarg'" ;; 417 1.1 christos 418 1.1 christos -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 419 1.1 christos | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 420 1.1 christos | --exec | --exe | --ex) 421 1.1 christos ac_prev=exec_prefix ;; 422 1.1 christos -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 423 1.1 christos | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 424 1.1 christos | --exec=* | --exe=* | --ex=*) 425 1.1 christos exec_prefix=$ac_optarg ;; 426 1.1 christos 427 1.1 christos -gas | --gas | --ga | --g) 428 1.1 christos # Obsolete; use --with-gas. 429 1.1 christos with_gas=yes ;; 430 1.1 christos 431 1.1 christos -help | --help | --hel | --he | -h) 432 1.1 christos ac_init_help=long ;; 433 1.1 christos -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 434 1.1 christos ac_init_help=recursive ;; 435 1.1 christos -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 436 1.1 christos ac_init_help=short ;; 437 1.1 christos 438 1.1 christos -host | --host | --hos | --ho) 439 1.1 christos ac_prev=host_alias ;; 440 1.1 christos -host=* | --host=* | --hos=* | --ho=*) 441 1.1 christos host_alias=$ac_optarg ;; 442 1.1 christos 443 1.1 christos -includedir | --includedir | --includedi | --included | --include \ 444 1.1 christos | --includ | --inclu | --incl | --inc) 445 1.1 christos ac_prev=includedir ;; 446 1.1 christos -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 447 1.1 christos | --includ=* | --inclu=* | --incl=* | --inc=*) 448 1.1 christos includedir=$ac_optarg ;; 449 1.1 christos 450 1.1 christos -infodir | --infodir | --infodi | --infod | --info | --inf) 451 1.1 christos ac_prev=infodir ;; 452 1.1 christos -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 453 1.1 christos infodir=$ac_optarg ;; 454 1.1 christos 455 1.1 christos -libdir | --libdir | --libdi | --libd) 456 1.1 christos ac_prev=libdir ;; 457 1.1 christos -libdir=* | --libdir=* | --libdi=* | --libd=*) 458 1.1 christos libdir=$ac_optarg ;; 459 1.1 christos 460 1.1 christos -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 461 1.1 christos | --libexe | --libex | --libe) 462 1.1 christos ac_prev=libexecdir ;; 463 1.1 christos -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 464 1.1 christos | --libexe=* | --libex=* | --libe=*) 465 1.1 christos libexecdir=$ac_optarg ;; 466 1.1 christos 467 1.1 christos -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 1.1 christos | --localstate | --localstat | --localsta | --localst \ 469 1.1 christos | --locals | --local | --loca | --loc | --lo) 470 1.1 christos ac_prev=localstatedir ;; 471 1.1 christos -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 1.1 christos | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 1.1 christos | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 474 1.1 christos localstatedir=$ac_optarg ;; 475 1.1 christos 476 1.1 christos -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 477 1.1 christos ac_prev=mandir ;; 478 1.1 christos -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 479 1.1 christos mandir=$ac_optarg ;; 480 1.1 christos 481 1.1 christos -nfp | --nfp | --nf) 482 1.1 christos # Obsolete; use --without-fp. 483 1.1 christos with_fp=no ;; 484 1.1 christos 485 1.1 christos -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 486 1.1 christos | --no-cr | --no-c | -n) 487 1.1 christos no_create=yes ;; 488 1.1 christos 489 1.1 christos -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 490 1.1 christos | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 491 1.1 christos no_recursion=yes ;; 492 1.1 christos 493 1.1 christos -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 494 1.1 christos | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 495 1.1 christos | --oldin | --oldi | --old | --ol | --o) 496 1.1 christos ac_prev=oldincludedir ;; 497 1.1 christos -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 498 1.1 christos | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 499 1.1 christos | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 500 1.1 christos oldincludedir=$ac_optarg ;; 501 1.1 christos 502 1.1 christos -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 503 1.1 christos ac_prev=prefix ;; 504 1.1 christos -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 505 1.1 christos prefix=$ac_optarg ;; 506 1.1 christos 507 1.1 christos -program-prefix | --program-prefix | --program-prefi | --program-pref \ 508 1.1 christos | --program-pre | --program-pr | --program-p) 509 1.1 christos ac_prev=program_prefix ;; 510 1.1 christos -program-prefix=* | --program-prefix=* | --program-prefi=* \ 511 1.1 christos | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 512 1.1 christos program_prefix=$ac_optarg ;; 513 1.1 christos 514 1.1 christos -program-suffix | --program-suffix | --program-suffi | --program-suff \ 515 1.1 christos | --program-suf | --program-su | --program-s) 516 1.1 christos ac_prev=program_suffix ;; 517 1.1 christos -program-suffix=* | --program-suffix=* | --program-suffi=* \ 518 1.1 christos | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 519 1.1 christos program_suffix=$ac_optarg ;; 520 1.1 christos 521 1.1 christos -program-transform-name | --program-transform-name \ 522 1.1 christos | --program-transform-nam | --program-transform-na \ 523 1.1 christos | --program-transform-n | --program-transform- \ 524 1.1 christos | --program-transform | --program-transfor \ 525 1.1 christos | --program-transfo | --program-transf \ 526 1.1 christos | --program-trans | --program-tran \ 527 1.1 christos | --progr-tra | --program-tr | --program-t) 528 1.1 christos ac_prev=program_transform_name ;; 529 1.1 christos -program-transform-name=* | --program-transform-name=* \ 530 1.1 christos | --program-transform-nam=* | --program-transform-na=* \ 531 1.1 christos | --program-transform-n=* | --program-transform-=* \ 532 1.1 christos | --program-transform=* | --program-transfor=* \ 533 1.1 christos | --program-transfo=* | --program-transf=* \ 534 1.1 christos | --program-trans=* | --program-tran=* \ 535 1.1 christos | --progr-tra=* | --program-tr=* | --program-t=*) 536 1.1 christos program_transform_name=$ac_optarg ;; 537 1.1 christos 538 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 1.1 christos | -silent | --silent | --silen | --sile | --sil) 540 1.1 christos silent=yes ;; 541 1.1 christos 542 1.1 christos -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 543 1.1 christos ac_prev=sbindir ;; 544 1.1 christos -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 545 1.1 christos | --sbi=* | --sb=*) 546 1.1 christos sbindir=$ac_optarg ;; 547 1.1 christos 548 1.1 christos -sharedstatedir | --sharedstatedir | --sharedstatedi \ 549 1.1 christos | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 550 1.1 christos | --sharedst | --shareds | --shared | --share | --shar \ 551 1.1 christos | --sha | --sh) 552 1.1 christos ac_prev=sharedstatedir ;; 553 1.1 christos -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 554 1.1 christos | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 555 1.1 christos | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 556 1.1 christos | --sha=* | --sh=*) 557 1.1 christos sharedstatedir=$ac_optarg ;; 558 1.1 christos 559 1.1 christos -site | --site | --sit) 560 1.1 christos ac_prev=site ;; 561 1.1 christos -site=* | --site=* | --sit=*) 562 1.1 christos site=$ac_optarg ;; 563 1.1 christos 564 1.1 christos -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 565 1.1 christos ac_prev=srcdir ;; 566 1.1 christos -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 567 1.1 christos srcdir=$ac_optarg ;; 568 1.1 christos 569 1.1 christos -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 570 1.1 christos | --syscon | --sysco | --sysc | --sys | --sy) 571 1.1 christos ac_prev=sysconfdir ;; 572 1.1 christos -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 573 1.1 christos | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 574 1.1 christos sysconfdir=$ac_optarg ;; 575 1.1 christos 576 1.1 christos -target | --target | --targe | --targ | --tar | --ta | --t) 577 1.1 christos ac_prev=target_alias ;; 578 1.1 christos -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 579 1.1 christos target_alias=$ac_optarg ;; 580 1.1 christos 581 1.1 christos -v | -verbose | --verbose | --verbos | --verbo | --verb) 582 1.1 christos verbose=yes ;; 583 1.1 christos 584 1.1 christos -version | --version | --versio | --versi | --vers | -V) 585 1.1 christos ac_init_version=: ;; 586 1.1 christos 587 1.1 christos -with-* | --with-*) 588 1.1 christos ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 1.1 christos # Reject names that are not valid shell variable names. 590 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 591 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2 592 1.1 christos { (exit 1); exit 1; }; } 593 1.1 christos ac_package=`echo $ac_package| sed 's/-/_/g'` 594 1.1 christos case $ac_option in 595 1.1 christos *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 1.1 christos *) ac_optarg=yes ;; 597 1.1 christos esac 598 1.1 christos eval "with_$ac_package='$ac_optarg'" ;; 599 1.1 christos 600 1.1 christos -without-* | --without-*) 601 1.1 christos ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 1.1 christos # Reject names that are not valid shell variable names. 603 1.1 christos expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 604 1.1 christos { echo "$as_me: error: invalid package name: $ac_package" >&2 605 1.1 christos { (exit 1); exit 1; }; } 606 1.1 christos ac_package=`echo $ac_package | sed 's/-/_/g'` 607 1.1 christos eval "with_$ac_package=no" ;; 608 1.1 christos 609 1.1 christos --x) 610 1.1 christos # Obsolete; use --with-x. 611 1.1 christos with_x=yes ;; 612 1.1 christos 613 1.1 christos -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 614 1.1 christos | --x-incl | --x-inc | --x-in | --x-i) 615 1.1 christos ac_prev=x_includes ;; 616 1.1 christos -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 617 1.1 christos | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 618 1.1 christos x_includes=$ac_optarg ;; 619 1.1 christos 620 1.1 christos -x-libraries | --x-libraries | --x-librarie | --x-librari \ 621 1.1 christos | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 622 1.1 christos ac_prev=x_libraries ;; 623 1.1 christos -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 624 1.1 christos | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 625 1.1 christos x_libraries=$ac_optarg ;; 626 1.1 christos 627 1.1 christos -*) { echo "$as_me: error: unrecognized option: $ac_option 628 1.1 christos Try \`$0 --help' for more information." >&2 629 1.1 christos { (exit 1); exit 1; }; } 630 1.1 christos ;; 631 1.1 christos 632 1.1 christos *=*) 633 1.1 christos ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 634 1.1 christos # Reject names that are not valid shell variable names. 635 1.1 christos expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 636 1.1 christos { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 1.1 christos { (exit 1); exit 1; }; } 638 1.1 christos ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 1.1 christos eval "$ac_envvar='$ac_optarg'" 640 1.1 christos export $ac_envvar ;; 641 1.1 christos 642 1.1 christos *) 643 1.1 christos # FIXME: should be removed in autoconf 3.0. 644 1.1 christos echo "$as_me: WARNING: you should use --build, --host, --target" >&2 645 1.1 christos expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 646 1.1 christos echo "$as_me: WARNING: invalid host type: $ac_option" >&2 647 1.1 christos : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 648 1.1 christos ;; 649 1.1 christos 650 1.1 christos esac 651 1.1 christos done 652 1.1 christos 653 1.1 christos if test -n "$ac_prev"; then 654 1.1 christos ac_option=--`echo $ac_prev | sed 's/_/-/g'` 655 1.1 christos { echo "$as_me: error: missing argument to $ac_option" >&2 656 1.1 christos { (exit 1); exit 1; }; } 657 1.1 christos fi 658 1.1 christos 659 1.1 christos # Be sure to have absolute paths. 660 1.1 christos for ac_var in exec_prefix prefix 661 1.1 christos do 662 1.1 christos eval ac_val=$`echo $ac_var` 663 1.1 christos case $ac_val in 664 1.1 christos [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 1.1 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 1.1 christos { (exit 1); exit 1; }; };; 667 1.1 christos esac 668 1.1 christos done 669 1.1 christos 670 1.1 christos # Be sure to have absolute paths. 671 1.1 christos for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 1.1 christos localstatedir libdir includedir oldincludedir infodir mandir 673 1.1 christos do 674 1.1 christos eval ac_val=$`echo $ac_var` 675 1.1 christos case $ac_val in 676 1.1 christos [\\/$]* | ?:[\\/]* ) ;; 677 1.1 christos *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 1.1 christos { (exit 1); exit 1; }; };; 679 1.1 christos esac 680 1.1 christos done 681 1.1 christos 682 1.1 christos # There might be people who depend on the old broken behavior: `$host' 683 1.1 christos # used to hold the argument of --host etc. 684 1.1 christos # FIXME: To remove some day. 685 1.1 christos build=$build_alias 686 1.1 christos host=$host_alias 687 1.1 christos target=$target_alias 688 1.1 christos 689 1.1 christos # FIXME: To remove some day. 690 1.1 christos if test "x$host_alias" != x; then 691 1.1 christos if test "x$build_alias" = x; then 692 1.1 christos cross_compiling=maybe 693 1.1 christos echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 694 1.1 christos If a cross compiler is detected then cross compile mode will be used." >&2 695 1.1 christos elif test "x$build_alias" != "x$host_alias"; then 696 1.1 christos cross_compiling=yes 697 1.1 christos fi 698 1.1 christos fi 699 1.1 christos 700 1.1 christos ac_tool_prefix= 701 1.1 christos test -n "$host_alias" && ac_tool_prefix=$host_alias- 702 1.1 christos 703 1.1 christos test "$silent" = yes && exec 6>/dev/null 704 1.1 christos 705 1.1 christos 706 1.1 christos # Find the source files, if location was not specified. 707 1.1 christos if test -z "$srcdir"; then 708 1.1 christos ac_srcdir_defaulted=yes 709 1.1 christos # Try the directory containing this script, then its parent. 710 1.1 christos ac_confdir=`(dirname "$0") 2>/dev/null || 711 1.1 christos $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 1.1 christos X"$0" : 'X\(//\)[^/]' \| \ 713 1.1 christos X"$0" : 'X\(//\)$' \| \ 714 1.1 christos X"$0" : 'X\(/\)' \| \ 715 1.1 christos . : '\(.\)' 2>/dev/null || 716 1.1 christos echo X"$0" | 717 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 720 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 721 1.1 christos s/.*/./; q'` 722 1.1 christos srcdir=$ac_confdir 723 1.1 christos if test ! -r $srcdir/$ac_unique_file; then 724 1.1 christos srcdir=.. 725 1.1 christos fi 726 1.1 christos else 727 1.1 christos ac_srcdir_defaulted=no 728 1.1 christos fi 729 1.1 christos if test ! -r $srcdir/$ac_unique_file; then 730 1.1 christos if test "$ac_srcdir_defaulted" = yes; then 731 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 732 1.1 christos { (exit 1); exit 1; }; } 733 1.1 christos else 734 1.1 christos { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 735 1.1 christos { (exit 1); exit 1; }; } 736 1.1 christos fi 737 1.1 christos fi 738 1.1 christos (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 1.1 christos { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 1.1 christos { (exit 1); exit 1; }; } 741 1.1 christos srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742 1.1 christos ac_env_build_alias_set=${build_alias+set} 743 1.1 christos ac_env_build_alias_value=$build_alias 744 1.1 christos ac_cv_env_build_alias_set=${build_alias+set} 745 1.1 christos ac_cv_env_build_alias_value=$build_alias 746 1.1 christos ac_env_host_alias_set=${host_alias+set} 747 1.1 christos ac_env_host_alias_value=$host_alias 748 1.1 christos ac_cv_env_host_alias_set=${host_alias+set} 749 1.1 christos ac_cv_env_host_alias_value=$host_alias 750 1.1 christos ac_env_target_alias_set=${target_alias+set} 751 1.1 christos ac_env_target_alias_value=$target_alias 752 1.1 christos ac_cv_env_target_alias_set=${target_alias+set} 753 1.1 christos ac_cv_env_target_alias_value=$target_alias 754 1.1 christos ac_env_CC_set=${CC+set} 755 1.1 christos ac_env_CC_value=$CC 756 1.1 christos ac_cv_env_CC_set=${CC+set} 757 1.1 christos ac_cv_env_CC_value=$CC 758 1.1 christos ac_env_CFLAGS_set=${CFLAGS+set} 759 1.1 christos ac_env_CFLAGS_value=$CFLAGS 760 1.1 christos ac_cv_env_CFLAGS_set=${CFLAGS+set} 761 1.1 christos ac_cv_env_CFLAGS_value=$CFLAGS 762 1.1 christos ac_env_LDFLAGS_set=${LDFLAGS+set} 763 1.1 christos ac_env_LDFLAGS_value=$LDFLAGS 764 1.1 christos ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765 1.1 christos ac_cv_env_LDFLAGS_value=$LDFLAGS 766 1.1 christos ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767 1.1 christos ac_env_CPPFLAGS_value=$CPPFLAGS 768 1.1 christos ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769 1.1 christos ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770 1.1 christos ac_env_CPP_set=${CPP+set} 771 1.1 christos ac_env_CPP_value=$CPP 772 1.1 christos ac_cv_env_CPP_set=${CPP+set} 773 1.1 christos ac_cv_env_CPP_value=$CPP 774 1.1 christos 775 1.1 christos # 776 1.1 christos # Report the --help message. 777 1.1 christos # 778 1.1 christos if test "$ac_init_help" = "long"; then 779 1.1 christos # Omit some internal or obsolete options to make the list less imposing. 780 1.1 christos # This message is too long to be a string in the A/UX 3.1 sh. 781 1.1 christos cat <<_ACEOF 782 1.1 christos \`configure' configures GNU Texinfo 4.8 to adapt to many kinds of systems. 783 1.1 christos 784 1.1 christos Usage: $0 [OPTION]... [VAR=VALUE]... 785 1.1 christos 786 1.1 christos To assign environment variables (e.g., CC, CFLAGS...), specify them as 787 1.1 christos VAR=VALUE. See below for descriptions of some of the useful variables. 788 1.1 christos 789 1.1 christos Defaults for the options are specified in brackets. 790 1.1 christos 791 1.1 christos Configuration: 792 1.1 christos -h, --help display this help and exit 793 1.1 christos --help=short display options specific to this package 794 1.1 christos --help=recursive display the short help of all the included packages 795 1.1 christos -V, --version display version information and exit 796 1.1 christos -q, --quiet, --silent do not print \`checking...' messages 797 1.1 christos --cache-file=FILE cache test results in FILE [disabled] 798 1.1 christos -C, --config-cache alias for \`--cache-file=config.cache' 799 1.1 christos -n, --no-create do not create output files 800 1.1 christos --srcdir=DIR find the sources in DIR [configure dir or \`..'] 801 1.1 christos 802 1.1 christos _ACEOF 803 1.1 christos 804 1.1 christos cat <<_ACEOF 805 1.1 christos Installation directories: 806 1.1 christos --prefix=PREFIX install architecture-independent files in PREFIX 807 1.1 christos [$ac_default_prefix] 808 1.1 christos --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 809 1.1 christos [PREFIX] 810 1.1 christos 811 1.1 christos By default, \`make install' will install all the files in 812 1.1 christos \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 813 1.1 christos an installation prefix other than \`$ac_default_prefix' using \`--prefix', 814 1.1 christos for instance \`--prefix=\$HOME'. 815 1.1 christos 816 1.1 christos For better control, use the options below. 817 1.1 christos 818 1.1 christos Fine tuning of the installation directories: 819 1.1 christos --bindir=DIR user executables [EPREFIX/bin] 820 1.1 christos --sbindir=DIR system admin executables [EPREFIX/sbin] 821 1.1 christos --libexecdir=DIR program executables [EPREFIX/libexec] 822 1.1 christos --datadir=DIR read-only architecture-independent data [PREFIX/share] 823 1.1 christos --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 824 1.1 christos --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 825 1.1 christos --localstatedir=DIR modifiable single-machine data [PREFIX/var] 826 1.1 christos --libdir=DIR object code libraries [EPREFIX/lib] 827 1.1 christos --includedir=DIR C header files [PREFIX/include] 828 1.1 christos --oldincludedir=DIR C header files for non-gcc [/usr/include] 829 1.1 christos --infodir=DIR info documentation [PREFIX/info] 830 1.1 christos --mandir=DIR man documentation [PREFIX/man] 831 1.1 christos _ACEOF 832 1.1 christos 833 1.1 christos cat <<\_ACEOF 834 1.1 christos 835 1.1 christos Program names: 836 1.1 christos --program-prefix=PREFIX prepend PREFIX to installed program names 837 1.1 christos --program-suffix=SUFFIX append SUFFIX to installed program names 838 1.1 christos --program-transform-name=PROGRAM run sed PROGRAM on installed program names 839 1.1 christos 840 1.1 christos System types: 841 1.1 christos --build=BUILD configure for building on BUILD [guessed] 842 1.1 christos --host=HOST cross-compile to build programs to run on HOST [BUILD] 843 1.1 christos _ACEOF 844 1.1 christos fi 845 1.1 christos 846 1.1 christos if test -n "$ac_init_help"; then 847 1.1 christos case $ac_init_help in 848 1.1 christos short | recursive ) echo "Configuration of GNU Texinfo 4.8:";; 849 1.1 christos esac 850 1.1 christos cat <<\_ACEOF 851 1.1 christos 852 1.1 christos Optional Features: 853 1.1 christos --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 854 1.1 christos --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 855 1.1 christos --enable-maintainer-mode enable make rules and dependencies not useful 856 1.1 christos (and sometimes confusing) to the casual installer 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 --enable-multiplatform put executables in bin/PLATFORM 860 1.1 christos --disable-install-warnings omit make install warnings about TeX files 861 1.1 christos --disable-nls do not use Native Language Support 862 1.1 christos --disable-rpath do not hardcode runtime library paths 863 1.1 christos 864 1.1 christos Optional Packages: 865 1.1 christos --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 866 1.1 christos --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 867 1.1 christos --with-gnu-ld assume the C compiler uses GNU ld default=no 868 1.1 christos --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 869 1.1 christos --without-libiconv-prefix don't search for libiconv in includedir and libdir 870 1.1 christos --with-included-gettext use the GNU gettext library included here 871 1.1 christos --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 872 1.1 christos --without-libintl-prefix don't search for libintl in includedir and libdir 873 1.1 christos 874 1.1 christos Some influential environment variables: 875 1.1 christos CC C compiler command 876 1.1 christos CFLAGS C compiler flags 877 1.1 christos LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 878 1.1 christos nonstandard directory <lib dir> 879 1.1 christos CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 880 1.1 christos headers in a nonstandard directory <include dir> 881 1.1 christos CPP C preprocessor 882 1.1 christos 883 1.1 christos Use these variables to override the choices made by `configure' or to help 884 1.1 christos it to find libraries and programs with nonstandard names/locations. 885 1.1 christos 886 1.1 christos _ACEOF 887 1.1 christos fi 888 1.1 christos 889 1.1 christos if test "$ac_init_help" = "recursive"; then 890 1.1 christos # If there are subdirs, report their specific --help. 891 1.1 christos ac_popdir=`pwd` 892 1.1 christos for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 893 1.1 christos test -d $ac_dir || continue 894 1.1 christos ac_builddir=. 895 1.1 christos 896 1.1 christos if test "$ac_dir" != .; then 897 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 898 1.1 christos # A "../" for each directory in $ac_dir_suffix. 899 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 900 1.1 christos else 901 1.1 christos ac_dir_suffix= ac_top_builddir= 902 1.1 christos fi 903 1.1 christos 904 1.1 christos case $srcdir in 905 1.1 christos .) # No --srcdir option. We are building in place. 906 1.1 christos ac_srcdir=. 907 1.1 christos if test -z "$ac_top_builddir"; then 908 1.1 christos ac_top_srcdir=. 909 1.1 christos else 910 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 911 1.1 christos fi ;; 912 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path. 913 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 914 1.1 christos ac_top_srcdir=$srcdir ;; 915 1.1 christos *) # Relative path. 916 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 917 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;; 918 1.1 christos esac 919 1.1 christos 920 1.1 christos # Do not use `cd foo && pwd` to compute absolute paths, because 921 1.1 christos # the directories may not exist. 922 1.1 christos case `pwd` in 923 1.1 christos .) ac_abs_builddir="$ac_dir";; 924 1.1 christos *) 925 1.1 christos case "$ac_dir" in 926 1.1 christos .) ac_abs_builddir=`pwd`;; 927 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 928 1.1 christos *) ac_abs_builddir=`pwd`/"$ac_dir";; 929 1.1 christos esac;; 930 1.1 christos esac 931 1.1 christos case $ac_abs_builddir in 932 1.1 christos .) ac_abs_top_builddir=${ac_top_builddir}.;; 933 1.1 christos *) 934 1.1 christos case ${ac_top_builddir}. in 935 1.1 christos .) ac_abs_top_builddir=$ac_abs_builddir;; 936 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 937 1.1 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 938 1.1 christos esac;; 939 1.1 christos esac 940 1.1 christos case $ac_abs_builddir in 941 1.1 christos .) ac_abs_srcdir=$ac_srcdir;; 942 1.1 christos *) 943 1.1 christos case $ac_srcdir in 944 1.1 christos .) ac_abs_srcdir=$ac_abs_builddir;; 945 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 946 1.1 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 947 1.1 christos esac;; 948 1.1 christos esac 949 1.1 christos case $ac_abs_builddir in 950 1.1 christos .) ac_abs_top_srcdir=$ac_top_srcdir;; 951 1.1 christos *) 952 1.1 christos case $ac_top_srcdir in 953 1.1 christos .) ac_abs_top_srcdir=$ac_abs_builddir;; 954 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 955 1.1 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 956 1.1 christos esac;; 957 1.1 christos esac 958 1.1 christos 959 1.1 christos cd $ac_dir 960 1.1 christos # Check for guested configure; otherwise get Cygnus style configure. 961 1.1 christos if test -f $ac_srcdir/configure.gnu; then 962 1.1 christos echo 963 1.1 christos $SHELL $ac_srcdir/configure.gnu --help=recursive 964 1.1 christos elif test -f $ac_srcdir/configure; then 965 1.1 christos echo 966 1.1 christos $SHELL $ac_srcdir/configure --help=recursive 967 1.1 christos elif test -f $ac_srcdir/configure.ac || 968 1.1 christos test -f $ac_srcdir/configure.in; then 969 1.1 christos echo 970 1.1 christos $ac_configure --help 971 1.1 christos else 972 1.1 christos echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 973 1.1 christos fi 974 1.1 christos cd $ac_popdir 975 1.1 christos done 976 1.1 christos fi 977 1.1 christos 978 1.1 christos test -n "$ac_init_help" && exit 0 979 1.1 christos if $ac_init_version; then 980 1.1 christos cat <<\_ACEOF 981 1.1 christos GNU Texinfo configure 4.8 982 1.1 christos generated by GNU Autoconf 2.59 983 1.1 christos 984 1.1 christos Copyright (C) 2003 Free Software Foundation, Inc. 985 1.1 christos This configure script is free software; the Free Software Foundation 986 1.1 christos gives unlimited permission to copy, distribute and modify it. 987 1.1 christos _ACEOF 988 1.1 christos exit 0 989 1.1 christos fi 990 1.1 christos exec 5>config.log 991 1.1 christos cat >&5 <<_ACEOF 992 1.1 christos This file contains any messages produced by compilers while 993 1.1 christos running configure, to aid debugging if configure makes a mistake. 994 1.1 christos 995 1.1 christos It was created by GNU Texinfo $as_me 4.8, which was 996 1.1 christos generated by GNU Autoconf 2.59. Invocation command line was 997 1.1 christos 998 1.1 christos $ $0 $@ 999 1.1 christos 1000 1.1 christos _ACEOF 1001 1.1 christos { 1002 1.1 christos cat <<_ASUNAME 1003 1.1 christos ## --------- ## 1004 1.1 christos ## Platform. ## 1005 1.1 christos ## --------- ## 1006 1.1 christos 1007 1.1 christos hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1008 1.1 christos uname -m = `(uname -m) 2>/dev/null || echo unknown` 1009 1.1 christos uname -r = `(uname -r) 2>/dev/null || echo unknown` 1010 1.1 christos uname -s = `(uname -s) 2>/dev/null || echo unknown` 1011 1.1 christos uname -v = `(uname -v) 2>/dev/null || echo unknown` 1012 1.1 christos 1013 1.1 christos /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1014 1.1 christos /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1015 1.1 christos 1016 1.1 christos /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1017 1.1 christos /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1018 1.1 christos /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1019 1.1 christos hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1020 1.1 christos /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1021 1.1 christos /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1022 1.1 christos /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1023 1.1 christos 1024 1.1 christos _ASUNAME 1025 1.1 christos 1026 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1027 1.1 christos for as_dir in $PATH 1028 1.1 christos do 1029 1.1 christos IFS=$as_save_IFS 1030 1.1 christos test -z "$as_dir" && as_dir=. 1031 1.1 christos echo "PATH: $as_dir" 1032 1.1 christos done 1033 1.1 christos 1034 1.1 christos } >&5 1035 1.1 christos 1036 1.1 christos cat >&5 <<_ACEOF 1037 1.1 christos 1038 1.1 christos 1039 1.1 christos ## ----------- ## 1040 1.1 christos ## Core tests. ## 1041 1.1 christos ## ----------- ## 1042 1.1 christos 1043 1.1 christos _ACEOF 1044 1.1 christos 1045 1.1 christos 1046 1.1 christos # Keep a trace of the command line. 1047 1.1 christos # Strip out --no-create and --no-recursion so they do not pile up. 1048 1.1 christos # Strip out --silent because we don't want to record it for future runs. 1049 1.1 christos # Also quote any args containing shell meta-characters. 1050 1.1 christos # Make two passes to allow for proper duplicate-argument suppression. 1051 1.1 christos ac_configure_args= 1052 1.1 christos ac_configure_args0= 1053 1.1 christos ac_configure_args1= 1054 1.1 christos ac_sep= 1055 1.1 christos ac_must_keep_next=false 1056 1.1 christos for ac_pass in 1 2 1057 1.1 christos do 1058 1.1 christos for ac_arg 1059 1.1 christos do 1060 1.1 christos case $ac_arg in 1061 1.1 christos -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1062 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1063 1.1 christos | -silent | --silent | --silen | --sile | --sil) 1064 1.1 christos continue ;; 1065 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1066 1.1 christos ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1067 1.1 christos esac 1068 1.1 christos case $ac_pass in 1069 1.1 christos 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1070 1.1 christos 2) 1071 1.1 christos ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1072 1.1 christos if test $ac_must_keep_next = true; then 1073 1.1 christos ac_must_keep_next=false # Got value, back to normal. 1074 1.1 christos else 1075 1.1 christos case $ac_arg in 1076 1.1 christos *=* | --config-cache | -C | -disable-* | --disable-* \ 1077 1.1 christos | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1078 1.1 christos | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1079 1.1 christos | -with-* | --with-* | -without-* | --without-* | --x) 1080 1.1 christos case "$ac_configure_args0 " in 1081 1.1 christos "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1082 1.1 christos esac 1083 1.1 christos ;; 1084 1.1 christos -* ) ac_must_keep_next=true ;; 1085 1.1 christos esac 1086 1.1 christos fi 1087 1.1 christos ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1088 1.1 christos # Get rid of the leading space. 1089 1.1 christos ac_sep=" " 1090 1.1 christos ;; 1091 1.1 christos esac 1092 1.1 christos done 1093 1.1 christos done 1094 1.1 christos $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1095 1.1 christos $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1096 1.1 christos 1097 1.1 christos # When interrupted or exit'd, cleanup temporary files, and complete 1098 1.1 christos # config.log. We remove comments because anyway the quotes in there 1099 1.1 christos # would cause problems or look ugly. 1100 1.1 christos # WARNING: Be sure not to use single quotes in there, as some shells, 1101 1.1 christos # such as our DU 5.0 friend, will then `close' the trap. 1102 1.1 christos trap 'exit_status=$? 1103 1.1 christos # Save into config.log some information that might help in debugging. 1104 1.1 christos { 1105 1.1 christos echo 1106 1.1 christos 1107 1.1 christos cat <<\_ASBOX 1108 1.1 christos ## ---------------- ## 1109 1.1 christos ## Cache variables. ## 1110 1.1 christos ## ---------------- ## 1111 1.1 christos _ASBOX 1112 1.1 christos echo 1113 1.1 christos # The following way of writing the cache mishandles newlines in values, 1114 1.1 christos { 1115 1.1 christos (set) 2>&1 | 1116 1.1 christos case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1117 1.1 christos *ac_space=\ *) 1118 1.1 christos sed -n \ 1119 1.1 christos "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1120 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1121 1.1 christos ;; 1122 1.1 christos *) 1123 1.1 christos sed -n \ 1124 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1125 1.1 christos ;; 1126 1.1 christos esac; 1127 1.1 christos } 1128 1.1 christos echo 1129 1.1 christos 1130 1.1 christos cat <<\_ASBOX 1131 1.1 christos ## ----------------- ## 1132 1.1 christos ## Output variables. ## 1133 1.1 christos ## ----------------- ## 1134 1.1 christos _ASBOX 1135 1.1 christos echo 1136 1.1 christos for ac_var in $ac_subst_vars 1137 1.1 christos do 1138 1.1 christos eval ac_val=$`echo $ac_var` 1139 1.1 christos echo "$ac_var='"'"'$ac_val'"'"'" 1140 1.1 christos done | sort 1141 1.1 christos echo 1142 1.1 christos 1143 1.1 christos if test -n "$ac_subst_files"; then 1144 1.1 christos cat <<\_ASBOX 1145 1.1 christos ## ------------- ## 1146 1.1 christos ## Output files. ## 1147 1.1 christos ## ------------- ## 1148 1.1 christos _ASBOX 1149 1.1 christos echo 1150 1.1 christos for ac_var in $ac_subst_files 1151 1.1 christos do 1152 1.1 christos eval ac_val=$`echo $ac_var` 1153 1.1 christos echo "$ac_var='"'"'$ac_val'"'"'" 1154 1.1 christos done | sort 1155 1.1 christos echo 1156 1.1 christos fi 1157 1.1 christos 1158 1.1 christos if test -s confdefs.h; then 1159 1.1 christos cat <<\_ASBOX 1160 1.1 christos ## ----------- ## 1161 1.1 christos ## confdefs.h. ## 1162 1.1 christos ## ----------- ## 1163 1.1 christos _ASBOX 1164 1.1 christos echo 1165 1.1 christos sed "/^$/d" confdefs.h | sort 1166 1.1 christos echo 1167 1.1 christos fi 1168 1.1 christos test "$ac_signal" != 0 && 1169 1.1 christos echo "$as_me: caught signal $ac_signal" 1170 1.1 christos echo "$as_me: exit $exit_status" 1171 1.1 christos } >&5 1172 1.1 christos rm -f core *.core && 1173 1.1 christos rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1174 1.1 christos exit $exit_status 1175 1.1 christos ' 0 1176 1.1 christos for ac_signal in 1 2 13 15; do 1177 1.1 christos trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1178 1.1 christos done 1179 1.1 christos ac_signal=0 1180 1.1 christos 1181 1.1 christos # confdefs.h avoids OS command line length limits that DEFS can exceed. 1182 1.1 christos rm -rf conftest* confdefs.h 1183 1.1 christos # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1184 1.1 christos echo >confdefs.h 1185 1.1 christos 1186 1.1 christos # Predefined preprocessor variables. 1187 1.1 christos 1188 1.1 christos cat >>confdefs.h <<_ACEOF 1189 1.1 christos #define PACKAGE_NAME "$PACKAGE_NAME" 1190 1.1 christos _ACEOF 1191 1.1 christos 1192 1.1 christos 1193 1.1 christos cat >>confdefs.h <<_ACEOF 1194 1.1 christos #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 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_VERSION "$PACKAGE_VERSION" 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_STRING "$PACKAGE_STRING" 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_BUGREPORT "$PACKAGE_BUGREPORT" 1210 1.1 christos _ACEOF 1211 1.1 christos 1212 1.1 christos 1213 1.1 christos # Let the site file select an alternate cache file if it wants to. 1214 1.1 christos # Prefer explicitly selected file to automatically selected ones. 1215 1.1 christos if test -z "$CONFIG_SITE"; then 1216 1.1 christos if test "x$prefix" != xNONE; then 1217 1.1 christos CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1218 1.1 christos else 1219 1.1 christos CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1220 1.1 christos fi 1221 1.1 christos fi 1222 1.1 christos for ac_site_file in $CONFIG_SITE; do 1223 1.1 christos if test -r "$ac_site_file"; then 1224 1.1 christos { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1225 1.1 christos echo "$as_me: loading site script $ac_site_file" >&6;} 1226 1.1 christos sed 's/^/| /' "$ac_site_file" >&5 1227 1.1 christos . "$ac_site_file" 1228 1.1 christos fi 1229 1.1 christos done 1230 1.1 christos 1231 1.1 christos if test -r "$cache_file"; then 1232 1.1 christos # Some versions of bash will fail to source /dev/null (special 1233 1.1 christos # files actually), so we avoid doing that. 1234 1.1 christos if test -f "$cache_file"; then 1235 1.1 christos { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1236 1.1 christos echo "$as_me: loading cache $cache_file" >&6;} 1237 1.1 christos case $cache_file in 1238 1.1 christos [\\/]* | ?:[\\/]* ) . $cache_file;; 1239 1.1 christos *) . ./$cache_file;; 1240 1.1 christos esac 1241 1.1 christos fi 1242 1.1 christos else 1243 1.1 christos { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1244 1.1 christos echo "$as_me: creating cache $cache_file" >&6;} 1245 1.1 christos >$cache_file 1246 1.1 christos fi 1247 1.1 christos 1248 1.1 christos # Check that the precious variables saved in the cache have kept the same 1249 1.1 christos # value. 1250 1.1 christos ac_cache_corrupted=false 1251 1.1 christos for ac_var in `(set) 2>&1 | 1252 1.1 christos sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1253 1.1 christos eval ac_old_set=\$ac_cv_env_${ac_var}_set 1254 1.1 christos eval ac_new_set=\$ac_env_${ac_var}_set 1255 1.1 christos eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1256 1.1 christos eval ac_new_val="\$ac_env_${ac_var}_value" 1257 1.1 christos case $ac_old_set,$ac_new_set in 1258 1.1 christos set,) 1259 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1260 1.1 christos echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1261 1.1 christos ac_cache_corrupted=: ;; 1262 1.1 christos ,set) 1263 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1264 1.1 christos echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1265 1.1 christos ac_cache_corrupted=: ;; 1266 1.1 christos ,);; 1267 1.1 christos *) 1268 1.1 christos if test "x$ac_old_val" != "x$ac_new_val"; then 1269 1.1 christos { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1270 1.1 christos echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1271 1.1 christos { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1272 1.1 christos echo "$as_me: former value: $ac_old_val" >&2;} 1273 1.1 christos { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1274 1.1 christos echo "$as_me: current value: $ac_new_val" >&2;} 1275 1.1 christos ac_cache_corrupted=: 1276 1.1 christos fi;; 1277 1.1 christos esac 1278 1.1 christos # Pass precious variables to config.status. 1279 1.1 christos if test "$ac_new_set" = set; then 1280 1.1 christos case $ac_new_val in 1281 1.1 christos *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1282 1.1 christos ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1283 1.1 christos *) ac_arg=$ac_var=$ac_new_val ;; 1284 1.1 christos esac 1285 1.1 christos case " $ac_configure_args " in 1286 1.1 christos *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1287 1.1 christos *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1288 1.1 christos esac 1289 1.1 christos fi 1290 1.1 christos done 1291 1.1 christos if $ac_cache_corrupted; then 1292 1.1 christos { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1293 1.1 christos echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1294 1.1 christos { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1295 1.1 christos echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1296 1.1 christos { (exit 1); exit 1; }; } 1297 1.1 christos fi 1298 1.1 christos 1299 1.1 christos ac_ext=c 1300 1.1 christos ac_cpp='$CPP $CPPFLAGS' 1301 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1302 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1303 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 1304 1.1 christos 1305 1.1 christos 1306 1.1 christos gl_header_list="$gl_header_list fcntl.h" 1307 1.1 christos gl_header_list="$gl_header_list sys/time.h" 1308 1.1 christos gl_header_list="$gl_header_list unistd.h" 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 ac_config_headers="$ac_config_headers config.h:config.in" 1335 1.1 christos # Keep filename to 8.3 for MS-DOS. 1336 1.1 christos 1337 1.1 christos am__api_version="1.9" 1338 1.1 christos ac_aux_dir= 1339 1.1 christos for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1340 1.1 christos if test -f $ac_dir/install-sh; then 1341 1.1 christos ac_aux_dir=$ac_dir 1342 1.1 christos ac_install_sh="$ac_aux_dir/install-sh -c" 1343 1.1 christos break 1344 1.1 christos elif test -f $ac_dir/install.sh; then 1345 1.1 christos ac_aux_dir=$ac_dir 1346 1.1 christos ac_install_sh="$ac_aux_dir/install.sh -c" 1347 1.1 christos break 1348 1.1 christos elif test -f $ac_dir/shtool; then 1349 1.1 christos ac_aux_dir=$ac_dir 1350 1.1 christos ac_install_sh="$ac_aux_dir/shtool install -c" 1351 1.1 christos break 1352 1.1 christos fi 1353 1.1 christos done 1354 1.1 christos if test -z "$ac_aux_dir"; then 1355 1.1 christos { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1356 1.1 christos echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1357 1.1 christos { (exit 1); exit 1; }; } 1358 1.1 christos fi 1359 1.1 christos ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1360 1.1 christos ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1361 1.1 christos ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1362 1.1 christos 1363 1.1 christos # Find a good install program. We prefer a C program (faster), 1364 1.1 christos # so one script is as good as another. But avoid the broken or 1365 1.1 christos # incompatible versions: 1366 1.1 christos # SysV /etc/install, /usr/sbin/install 1367 1.1 christos # SunOS /usr/etc/install 1368 1.1 christos # IRIX /sbin/install 1369 1.1 christos # AIX /bin/install 1370 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs 1371 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1372 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args 1373 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1374 1.1 christos # OS/2's system install, which has a completely different semantic 1375 1.1 christos # ./install, which can be erroneously created by make from ./install.sh. 1376 1.1 christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1377 1.1 christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1378 1.1 christos if test -z "$INSTALL"; then 1379 1.1 christos if test "${ac_cv_path_install+set}" = set; then 1380 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1381 1.1 christos else 1382 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1383 1.1 christos for as_dir in $PATH 1384 1.1 christos do 1385 1.1 christos IFS=$as_save_IFS 1386 1.1 christos test -z "$as_dir" && as_dir=. 1387 1.1 christos # Account for people who put trailing slashes in PATH elements. 1388 1.1 christos case $as_dir/ in 1389 1.1 christos ./ | .// | /cC/* | \ 1390 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1391 1.1 christos ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1392 1.1 christos /usr/ucb/* ) ;; 1393 1.1 christos *) 1394 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install. 1395 1.1 christos # Don't use installbsd from OSF since it installs stuff as root 1396 1.1 christos # by default. 1397 1.1 christos for ac_prog in ginstall scoinst install; do 1398 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1399 1.1 christos if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1400 1.1 christos if test $ac_prog = install && 1401 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1402 1.1 christos # AIX install. It has an incompatible calling convention. 1403 1.1 christos : 1404 1.1 christos elif test $ac_prog = install && 1405 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1406 1.1 christos # program-specific install script used by HP pwplus--don't use. 1407 1.1 christos : 1408 1.1 christos else 1409 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1410 1.1 christos break 3 1411 1.1 christos fi 1412 1.1 christos fi 1413 1.1 christos done 1414 1.1 christos done 1415 1.1 christos ;; 1416 1.1 christos esac 1417 1.1 christos done 1418 1.1 christos 1419 1.1 christos 1420 1.1 christos fi 1421 1.1 christos if test "${ac_cv_path_install+set}" = set; then 1422 1.1 christos INSTALL=$ac_cv_path_install 1423 1.1 christos else 1424 1.1 christos # As a last resort, use the slow shell script. We don't cache a 1425 1.1 christos # path for INSTALL within a source directory, because that will 1426 1.1 christos # break other packages using the cache if that directory is 1427 1.1 christos # removed, or if the path is relative. 1428 1.1 christos INSTALL=$ac_install_sh 1429 1.1 christos fi 1430 1.1 christos fi 1431 1.1 christos echo "$as_me:$LINENO: result: $INSTALL" >&5 1432 1.1 christos echo "${ECHO_T}$INSTALL" >&6 1433 1.1 christos 1434 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1435 1.1 christos # It thinks the first close brace ends the variable substitution. 1436 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1437 1.1 christos 1438 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1439 1.1 christos 1440 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1441 1.1 christos 1442 1.1 christos echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1443 1.1 christos echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1444 1.1 christos # Just in case 1445 1.1 christos sleep 1 1446 1.1 christos echo timestamp > conftest.file 1447 1.1 christos # Do `set' in a subshell so we don't clobber the current shell's 1448 1.1 christos # arguments. Must try -L first in case configure is actually a 1449 1.1 christos # symlink; some systems play weird games with the mod time of symlinks 1450 1.1 christos # (eg FreeBSD returns the mod time of the symlink's containing 1451 1.1 christos # directory). 1452 1.1 christos if ( 1453 1.1 christos set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1454 1.1 christos if test "$*" = "X"; then 1455 1.1 christos # -L didn't work. 1456 1.1 christos set X `ls -t $srcdir/configure conftest.file` 1457 1.1 christos fi 1458 1.1 christos rm -f conftest.file 1459 1.1 christos if test "$*" != "X $srcdir/configure conftest.file" \ 1460 1.1 christos && test "$*" != "X conftest.file $srcdir/configure"; then 1461 1.1 christos 1462 1.1 christos # If neither matched, then we have a broken ls. This can happen 1463 1.1 christos # if, for instance, CONFIG_SHELL is bash and it inherits a 1464 1.1 christos # broken ls alias from the environment. This has actually 1465 1.1 christos # happened. Such a system could not be considered "sane". 1466 1.1 christos { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1467 1.1 christos alias in your environment" >&5 1468 1.1 christos echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1469 1.1 christos alias in your environment" >&2;} 1470 1.1 christos { (exit 1); exit 1; }; } 1471 1.1 christos fi 1472 1.1 christos 1473 1.1 christos test "$2" = conftest.file 1474 1.1 christos ) 1475 1.1 christos then 1476 1.1 christos # Ok. 1477 1.1 christos : 1478 1.1 christos else 1479 1.1 christos { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1480 1.1 christos Check your system clock" >&5 1481 1.1 christos echo "$as_me: error: newly created file is older than distributed files! 1482 1.1 christos Check your system clock" >&2;} 1483 1.1 christos { (exit 1); exit 1; }; } 1484 1.1 christos fi 1485 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 1486 1.1 christos echo "${ECHO_T}yes" >&6 1487 1.1 christos test "$program_prefix" != NONE && 1488 1.1 christos program_transform_name="s,^,$program_prefix,;$program_transform_name" 1489 1.1 christos # Use a double $ so make ignores it. 1490 1.1 christos test "$program_suffix" != NONE && 1491 1.1 christos program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1492 1.1 christos # Double any \ or $. echo might interpret backslashes. 1493 1.1 christos # By default was `s,x,x', remove it if useless. 1494 1.1 christos cat <<\_ACEOF >conftest.sed 1495 1.1 christos s/[\\$]/&&/g;s/;s,x,x,$// 1496 1.1 christos _ACEOF 1497 1.1 christos program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1498 1.1 christos rm conftest.sed 1499 1.1 christos 1500 1.1 christos # expand $ac_aux_dir to an absolute path 1501 1.1 christos am_aux_dir=`cd $ac_aux_dir && pwd` 1502 1.1 christos 1503 1.1 christos test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1504 1.1 christos # Use eval to expand $SHELL 1505 1.1 christos if eval "$MISSING --run true"; then 1506 1.1 christos am_missing_run="$MISSING --run " 1507 1.1 christos else 1508 1.1 christos am_missing_run= 1509 1.1 christos { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1510 1.1 christos echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1511 1.1 christos fi 1512 1.1 christos 1513 1.1 christos if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1514 1.1 christos # We used to keeping the `.' as first argument, in order to 1515 1.1 christos # allow $(mkdir_p) to be used without argument. As in 1516 1.1 christos # $(mkdir_p) $(somedir) 1517 1.1 christos # where $(somedir) is conditionally defined. However this is wrong 1518 1.1 christos # for two reasons: 1519 1.1 christos # 1. if the package is installed by a user who cannot write `.' 1520 1.1 christos # make install will fail, 1521 1.1 christos # 2. the above comment should most certainly read 1522 1.1 christos # $(mkdir_p) $(DESTDIR)$(somedir) 1523 1.1 christos # so it does not work when $(somedir) is undefined and 1524 1.1 christos # $(DESTDIR) is not. 1525 1.1 christos # To support the latter case, we have to write 1526 1.1 christos # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1527 1.1 christos # so the `.' trick is pointless. 1528 1.1 christos mkdir_p='mkdir -p --' 1529 1.1 christos else 1530 1.1 christos # On NextStep and OpenStep, the `mkdir' command does not 1531 1.1 christos # recognize any option. It will interpret all options as 1532 1.1 christos # directories to create, and then abort because `.' already 1533 1.1 christos # exists. 1534 1.1 christos for d in ./-p ./--version; 1535 1.1 christos do 1536 1.1 christos test -d $d && rmdir $d 1537 1.1 christos done 1538 1.1 christos # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1539 1.1 christos if test -f "$ac_aux_dir/mkinstalldirs"; then 1540 1.1 christos mkdir_p='$(mkinstalldirs)' 1541 1.1 christos else 1542 1.1 christos mkdir_p='$(install_sh) -d' 1543 1.1 christos fi 1544 1.1 christos fi 1545 1.1 christos 1546 1.1 christos for ac_prog in gawk mawk nawk awk 1547 1.1 christos do 1548 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 1549 1.1 christos set dummy $ac_prog; ac_word=$2 1550 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1551 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1552 1.1 christos if test "${ac_cv_prog_AWK+set}" = set; then 1553 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1554 1.1 christos else 1555 1.1 christos if test -n "$AWK"; then 1556 1.1 christos ac_cv_prog_AWK="$AWK" # Let the user override the test. 1557 1.1 christos else 1558 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1559 1.1 christos for as_dir in $PATH 1560 1.1 christos do 1561 1.1 christos IFS=$as_save_IFS 1562 1.1 christos test -z "$as_dir" && as_dir=. 1563 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1564 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1565 1.1 christos ac_cv_prog_AWK="$ac_prog" 1566 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1567 1.1 christos break 2 1568 1.1 christos fi 1569 1.1 christos done 1570 1.1 christos done 1571 1.1 christos 1572 1.1 christos fi 1573 1.1 christos fi 1574 1.1 christos AWK=$ac_cv_prog_AWK 1575 1.1 christos if test -n "$AWK"; then 1576 1.1 christos echo "$as_me:$LINENO: result: $AWK" >&5 1577 1.1 christos echo "${ECHO_T}$AWK" >&6 1578 1.1 christos else 1579 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1580 1.1 christos echo "${ECHO_T}no" >&6 1581 1.1 christos fi 1582 1.1 christos 1583 1.1 christos test -n "$AWK" && break 1584 1.1 christos done 1585 1.1 christos 1586 1.1 christos echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1587 1.1 christos echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1588 1.1 christos set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1589 1.1 christos if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1590 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1591 1.1 christos else 1592 1.1 christos cat >conftest.make <<\_ACEOF 1593 1.1 christos all: 1594 1.1 christos @echo 'ac_maketemp="$(MAKE)"' 1595 1.1 christos _ACEOF 1596 1.1 christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1597 1.1 christos eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1598 1.1 christos if test -n "$ac_maketemp"; then 1599 1.1 christos eval ac_cv_prog_make_${ac_make}_set=yes 1600 1.1 christos else 1601 1.1 christos eval ac_cv_prog_make_${ac_make}_set=no 1602 1.1 christos fi 1603 1.1 christos rm -f conftest.make 1604 1.1 christos fi 1605 1.1 christos if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1606 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 1607 1.1 christos echo "${ECHO_T}yes" >&6 1608 1.1 christos SET_MAKE= 1609 1.1 christos else 1610 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1611 1.1 christos echo "${ECHO_T}no" >&6 1612 1.1 christos SET_MAKE="MAKE=${MAKE-make}" 1613 1.1 christos fi 1614 1.1 christos 1615 1.1 christos rm -rf .tst 2>/dev/null 1616 1.1 christos mkdir .tst 2>/dev/null 1617 1.1 christos if test -d .tst; then 1618 1.1 christos am__leading_dot=. 1619 1.1 christos else 1620 1.1 christos am__leading_dot=_ 1621 1.1 christos fi 1622 1.1 christos rmdir .tst 2>/dev/null 1623 1.1 christos 1624 1.1 christos # test to see if srcdir already configured 1625 1.1 christos if test "`cd $srcdir && pwd`" != "`pwd`" && 1626 1.1 christos test -f $srcdir/config.status; then 1627 1.1 christos { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1628 1.1 christos echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1629 1.1 christos { (exit 1); exit 1; }; } 1630 1.1 christos fi 1631 1.1 christos 1632 1.1 christos # test whether we have cygpath 1633 1.1 christos if test -z "$CYGPATH_W"; then 1634 1.1 christos if (cygpath --version) >/dev/null 2>/dev/null; then 1635 1.1 christos CYGPATH_W='cygpath -w' 1636 1.1 christos else 1637 1.1 christos CYGPATH_W=echo 1638 1.1 christos fi 1639 1.1 christos fi 1640 1.1 christos 1641 1.1 christos 1642 1.1 christos # Define the identity of the package. 1643 1.1 christos PACKAGE='texinfo' 1644 1.1 christos VERSION='4.8' 1645 1.1 christos 1646 1.1 christos 1647 1.1 christos cat >>confdefs.h <<_ACEOF 1648 1.1 christos #define PACKAGE "$PACKAGE" 1649 1.1 christos _ACEOF 1650 1.1 christos 1651 1.1 christos 1652 1.1 christos cat >>confdefs.h <<_ACEOF 1653 1.1 christos #define VERSION "$VERSION" 1654 1.1 christos _ACEOF 1655 1.1 christos 1656 1.1 christos # Some tools Automake needs. 1657 1.1 christos 1658 1.1 christos ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1659 1.1 christos 1660 1.1 christos 1661 1.1 christos AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1662 1.1 christos 1663 1.1 christos 1664 1.1 christos AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1665 1.1 christos 1666 1.1 christos 1667 1.1 christos AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1668 1.1 christos 1669 1.1 christos 1670 1.1 christos MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1671 1.1 christos 1672 1.1 christos install_sh=${install_sh-"$am_aux_dir/install-sh"} 1673 1.1 christos 1674 1.1 christos # Installed binaries are usually stripped using `strip' when the user 1675 1.1 christos # run `make install-strip'. However `strip' might not be the right 1676 1.1 christos # tool to use in cross-compilation environments, therefore Automake 1677 1.1 christos # will honor the `STRIP' environment variable to overrule this program. 1678 1.1 christos if test "$cross_compiling" != no; then 1679 1.1 christos if test -n "$ac_tool_prefix"; then 1680 1.1 christos # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1681 1.1 christos set dummy ${ac_tool_prefix}strip; ac_word=$2 1682 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1683 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1684 1.1 christos if test "${ac_cv_prog_STRIP+set}" = set; then 1685 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1686 1.1 christos else 1687 1.1 christos if test -n "$STRIP"; then 1688 1.1 christos ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1689 1.1 christos else 1690 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1691 1.1 christos for as_dir in $PATH 1692 1.1 christos do 1693 1.1 christos IFS=$as_save_IFS 1694 1.1 christos test -z "$as_dir" && as_dir=. 1695 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1696 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1697 1.1 christos ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1698 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1699 1.1 christos break 2 1700 1.1 christos fi 1701 1.1 christos done 1702 1.1 christos done 1703 1.1 christos 1704 1.1 christos fi 1705 1.1 christos fi 1706 1.1 christos STRIP=$ac_cv_prog_STRIP 1707 1.1 christos if test -n "$STRIP"; then 1708 1.1 christos echo "$as_me:$LINENO: result: $STRIP" >&5 1709 1.1 christos echo "${ECHO_T}$STRIP" >&6 1710 1.1 christos else 1711 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1712 1.1 christos echo "${ECHO_T}no" >&6 1713 1.1 christos fi 1714 1.1 christos 1715 1.1 christos fi 1716 1.1 christos if test -z "$ac_cv_prog_STRIP"; then 1717 1.1 christos ac_ct_STRIP=$STRIP 1718 1.1 christos # Extract the first word of "strip", so it can be a program name with args. 1719 1.1 christos set dummy strip; ac_word=$2 1720 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1721 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1722 1.1 christos if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1723 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1724 1.1 christos else 1725 1.1 christos if test -n "$ac_ct_STRIP"; then 1726 1.1 christos ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1727 1.1 christos else 1728 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1729 1.1 christos for as_dir in $PATH 1730 1.1 christos do 1731 1.1 christos IFS=$as_save_IFS 1732 1.1 christos test -z "$as_dir" && as_dir=. 1733 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1734 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1735 1.1 christos ac_cv_prog_ac_ct_STRIP="strip" 1736 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1737 1.1 christos break 2 1738 1.1 christos fi 1739 1.1 christos done 1740 1.1 christos done 1741 1.1 christos 1742 1.1 christos test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1743 1.1 christos fi 1744 1.1 christos fi 1745 1.1 christos ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1746 1.1 christos if test -n "$ac_ct_STRIP"; then 1747 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1748 1.1 christos echo "${ECHO_T}$ac_ct_STRIP" >&6 1749 1.1 christos else 1750 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1751 1.1 christos echo "${ECHO_T}no" >&6 1752 1.1 christos fi 1753 1.1 christos 1754 1.1 christos STRIP=$ac_ct_STRIP 1755 1.1 christos else 1756 1.1 christos STRIP="$ac_cv_prog_STRIP" 1757 1.1 christos fi 1758 1.1 christos 1759 1.1 christos fi 1760 1.1 christos INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1761 1.1 christos 1762 1.1 christos # We need awk for the "check" target. The system "awk" is bad on 1763 1.1 christos # some platforms. 1764 1.1 christos # Always define AMTAR for backward compatibility. 1765 1.1 christos 1766 1.1 christos AMTAR=${AMTAR-"${am_missing_run}tar"} 1767 1.1 christos 1768 1.1 christos am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1769 1.1 christos 1770 1.1 christos 1771 1.1 christos 1772 1.1 christos 1773 1.1 christos 1774 1.2 christos echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1775 1.2 christos echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1776 1.2 christos # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1777 1.2 christos if test "${enable_maintainer_mode+set}" = set; then 1778 1.2 christos enableval="$enable_maintainer_mode" 1779 1.2 christos USE_MAINTAINER_MODE=$enableval 1780 1.2 christos else 1781 1.2 christos USE_MAINTAINER_MODE=no 1782 1.2 christos fi; 1783 1.2 christos echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1784 1.2 christos echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1785 1.2 christos 1786 1.2 christos 1787 1.2 christos if test $USE_MAINTAINER_MODE = yes; then 1788 1.2 christos MAINTAINER_MODE_TRUE= 1789 1.2 christos MAINTAINER_MODE_FALSE='#' 1790 1.2 christos else 1791 1.2 christos MAINTAINER_MODE_TRUE='#' 1792 1.2 christos MAINTAINER_MODE_FALSE= 1793 1.2 christos fi 1794 1.2 christos 1795 1.2 christos MAINT=$MAINTAINER_MODE_TRUE 1796 1.2 christos 1797 1.2 christos 1798 1.1 christos 1799 1.1 christos # When the Texinfo source is imported into other repositories 1800 1.1 christos # (NetBSD and TeX Live), timestamps are generally not preserved. This 1801 1.1 christos # causes lots of annoyance, so --enable-maintainer-mode. Sorry. 1802 1.1 christos echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 1803 1.1 christos echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 1804 1.1 christos # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 1805 1.1 christos if test "${enable_maintainer_mode+set}" = set; then 1806 1.1 christos enableval="$enable_maintainer_mode" 1807 1.1 christos USE_MAINTAINER_MODE=$enableval 1808 1.1 christos else 1809 1.1 christos USE_MAINTAINER_MODE=no 1810 1.1 christos fi; 1811 1.1 christos echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 1812 1.1 christos echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 1813 1.1 christos 1814 1.1 christos 1815 1.1 christos if test $USE_MAINTAINER_MODE = yes; then 1816 1.1 christos MAINTAINER_MODE_TRUE= 1817 1.1 christos MAINTAINER_MODE_FALSE='#' 1818 1.1 christos else 1819 1.1 christos MAINTAINER_MODE_TRUE='#' 1820 1.1 christos MAINTAINER_MODE_FALSE= 1821 1.1 christos fi 1822 1.1 christos 1823 1.1 christos MAINT=$MAINTAINER_MODE_TRUE 1824 1.1 christos 1825 1.1 christos 1826 1.1 christos 1827 1.1 christos # Checks for programs. 1828 1.1 christos ac_ext=c 1829 1.1 christos ac_cpp='$CPP $CPPFLAGS' 1830 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1831 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1832 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 1833 1.1 christos if test -n "$ac_tool_prefix"; then 1834 1.1 christos # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1835 1.1 christos set dummy ${ac_tool_prefix}gcc; ac_word=$2 1836 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1837 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1838 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1839 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1840 1.1 christos else 1841 1.1 christos if test -n "$CC"; then 1842 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 1843 1.1 christos else 1844 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1845 1.1 christos for as_dir in $PATH 1846 1.1 christos do 1847 1.1 christos IFS=$as_save_IFS 1848 1.1 christos test -z "$as_dir" && as_dir=. 1849 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1850 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1851 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}gcc" 1852 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1853 1.1 christos break 2 1854 1.1 christos fi 1855 1.1 christos done 1856 1.1 christos done 1857 1.1 christos 1858 1.1 christos fi 1859 1.1 christos fi 1860 1.1 christos CC=$ac_cv_prog_CC 1861 1.1 christos if test -n "$CC"; then 1862 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 1863 1.1 christos echo "${ECHO_T}$CC" >&6 1864 1.1 christos else 1865 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1866 1.1 christos echo "${ECHO_T}no" >&6 1867 1.1 christos fi 1868 1.1 christos 1869 1.1 christos fi 1870 1.1 christos if test -z "$ac_cv_prog_CC"; then 1871 1.1 christos ac_ct_CC=$CC 1872 1.1 christos # Extract the first word of "gcc", so it can be a program name with args. 1873 1.1 christos set dummy gcc; ac_word=$2 1874 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1875 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1876 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1877 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1878 1.1 christos else 1879 1.1 christos if test -n "$ac_ct_CC"; then 1880 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1881 1.1 christos else 1882 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1883 1.1 christos for as_dir in $PATH 1884 1.1 christos do 1885 1.1 christos IFS=$as_save_IFS 1886 1.1 christos test -z "$as_dir" && as_dir=. 1887 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1888 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1889 1.1 christos ac_cv_prog_ac_ct_CC="gcc" 1890 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1891 1.1 christos break 2 1892 1.1 christos fi 1893 1.1 christos done 1894 1.1 christos done 1895 1.1 christos 1896 1.1 christos fi 1897 1.1 christos fi 1898 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 1899 1.1 christos if test -n "$ac_ct_CC"; then 1900 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1901 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6 1902 1.1 christos else 1903 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1904 1.1 christos echo "${ECHO_T}no" >&6 1905 1.1 christos fi 1906 1.1 christos 1907 1.1 christos CC=$ac_ct_CC 1908 1.1 christos else 1909 1.1 christos CC="$ac_cv_prog_CC" 1910 1.1 christos fi 1911 1.1 christos 1912 1.1 christos if test -z "$CC"; then 1913 1.1 christos if test -n "$ac_tool_prefix"; then 1914 1.1 christos # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1915 1.1 christos set dummy ${ac_tool_prefix}cc; ac_word=$2 1916 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1917 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1918 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1919 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1920 1.1 christos else 1921 1.1 christos if test -n "$CC"; then 1922 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 1923 1.1 christos else 1924 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1925 1.1 christos for as_dir in $PATH 1926 1.1 christos do 1927 1.1 christos IFS=$as_save_IFS 1928 1.1 christos test -z "$as_dir" && as_dir=. 1929 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 1930 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1931 1.1 christos ac_cv_prog_CC="${ac_tool_prefix}cc" 1932 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1933 1.1 christos break 2 1934 1.1 christos fi 1935 1.1 christos done 1936 1.1 christos done 1937 1.1 christos 1938 1.1 christos fi 1939 1.1 christos fi 1940 1.1 christos CC=$ac_cv_prog_CC 1941 1.1 christos if test -n "$CC"; then 1942 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 1943 1.1 christos echo "${ECHO_T}$CC" >&6 1944 1.1 christos else 1945 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1946 1.1 christos echo "${ECHO_T}no" >&6 1947 1.1 christos fi 1948 1.1 christos 1949 1.1 christos fi 1950 1.1 christos if test -z "$ac_cv_prog_CC"; then 1951 1.1 christos ac_ct_CC=$CC 1952 1.1 christos # Extract the first word of "cc", so it can be a program name with args. 1953 1.1 christos set dummy cc; ac_word=$2 1954 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1955 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1956 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1957 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 1958 1.1 christos else 1959 1.1 christos if test -n "$ac_ct_CC"; then 1960 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1961 1.1 christos else 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 ac_cv_prog_ac_ct_CC="cc" 1970 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1971 1.1 christos break 2 1972 1.1 christos fi 1973 1.1 christos done 1974 1.1 christos done 1975 1.1 christos 1976 1.1 christos fi 1977 1.1 christos fi 1978 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 1979 1.1 christos if test -n "$ac_ct_CC"; then 1980 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1981 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6 1982 1.1 christos else 1983 1.1 christos echo "$as_me:$LINENO: result: no" >&5 1984 1.1 christos echo "${ECHO_T}no" >&6 1985 1.1 christos fi 1986 1.1 christos 1987 1.1 christos CC=$ac_ct_CC 1988 1.1 christos else 1989 1.1 christos CC="$ac_cv_prog_CC" 1990 1.1 christos fi 1991 1.1 christos 1992 1.1 christos fi 1993 1.1 christos if test -z "$CC"; then 1994 1.1 christos # Extract the first word of "cc", so it can be a program name with args. 1995 1.1 christos set dummy cc; ac_word=$2 1996 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 1997 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1998 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 1999 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2000 1.1 christos else 2001 1.1 christos if test -n "$CC"; then 2002 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 2003 1.1 christos else 2004 1.1 christos ac_prog_rejected=no 2005 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2006 1.1 christos for as_dir in $PATH 2007 1.1 christos do 2008 1.1 christos IFS=$as_save_IFS 2009 1.1 christos test -z "$as_dir" && as_dir=. 2010 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2011 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2012 1.1 christos if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2013 1.1 christos ac_prog_rejected=yes 2014 1.1 christos continue 2015 1.1 christos fi 2016 1.1 christos ac_cv_prog_CC="cc" 2017 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2018 1.1 christos break 2 2019 1.1 christos fi 2020 1.1 christos done 2021 1.1 christos done 2022 1.1 christos 2023 1.1 christos if test $ac_prog_rejected = yes; then 2024 1.1 christos # We found a bogon in the path, so make sure we never use it. 2025 1.1 christos set dummy $ac_cv_prog_CC 2026 1.1 christos shift 2027 1.1 christos if test $# != 0; then 2028 1.1 christos # We chose a different compiler from the bogus one. 2029 1.1 christos # However, it has the same basename, so the bogon will be chosen 2030 1.1 christos # first if we set CC to just the basename; use the full file name. 2031 1.1 christos shift 2032 1.1 christos ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2033 1.1 christos fi 2034 1.1 christos fi 2035 1.1 christos fi 2036 1.1 christos fi 2037 1.1 christos CC=$ac_cv_prog_CC 2038 1.1 christos if test -n "$CC"; then 2039 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 2040 1.1 christos echo "${ECHO_T}$CC" >&6 2041 1.1 christos else 2042 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2043 1.1 christos echo "${ECHO_T}no" >&6 2044 1.1 christos fi 2045 1.1 christos 2046 1.1 christos fi 2047 1.1 christos if test -z "$CC"; then 2048 1.1 christos if test -n "$ac_tool_prefix"; then 2049 1.1 christos for ac_prog in cl 2050 1.1 christos do 2051 1.1 christos # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2052 1.1 christos set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2053 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 2054 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2055 1.1 christos if test "${ac_cv_prog_CC+set}" = set; then 2056 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2057 1.1 christos else 2058 1.1 christos if test -n "$CC"; then 2059 1.1 christos ac_cv_prog_CC="$CC" # Let the user override the test. 2060 1.1 christos else 2061 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2062 1.1 christos for as_dir in $PATH 2063 1.1 christos do 2064 1.1 christos IFS=$as_save_IFS 2065 1.1 christos test -z "$as_dir" && as_dir=. 2066 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2067 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2068 1.1 christos ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2069 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2070 1.1 christos break 2 2071 1.1 christos fi 2072 1.1 christos done 2073 1.1 christos done 2074 1.1 christos 2075 1.1 christos fi 2076 1.1 christos fi 2077 1.1 christos CC=$ac_cv_prog_CC 2078 1.1 christos if test -n "$CC"; then 2079 1.1 christos echo "$as_me:$LINENO: result: $CC" >&5 2080 1.1 christos echo "${ECHO_T}$CC" >&6 2081 1.1 christos else 2082 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2083 1.1 christos echo "${ECHO_T}no" >&6 2084 1.1 christos fi 2085 1.1 christos 2086 1.1 christos test -n "$CC" && break 2087 1.1 christos done 2088 1.1 christos fi 2089 1.1 christos if test -z "$CC"; then 2090 1.1 christos ac_ct_CC=$CC 2091 1.1 christos for ac_prog in cl 2092 1.1 christos do 2093 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 2094 1.1 christos set dummy $ac_prog; ac_word=$2 2095 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 2096 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2097 1.1 christos if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2098 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2099 1.1 christos else 2100 1.1 christos if test -n "$ac_ct_CC"; then 2101 1.1 christos ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2102 1.1 christos else 2103 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2104 1.1 christos for as_dir in $PATH 2105 1.1 christos do 2106 1.1 christos IFS=$as_save_IFS 2107 1.1 christos test -z "$as_dir" && as_dir=. 2108 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 2109 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2110 1.1 christos ac_cv_prog_ac_ct_CC="$ac_prog" 2111 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2112 1.1 christos break 2 2113 1.1 christos fi 2114 1.1 christos done 2115 1.1 christos done 2116 1.1 christos 2117 1.1 christos fi 2118 1.1 christos fi 2119 1.1 christos ac_ct_CC=$ac_cv_prog_ac_ct_CC 2120 1.1 christos if test -n "$ac_ct_CC"; then 2121 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2122 1.1 christos echo "${ECHO_T}$ac_ct_CC" >&6 2123 1.1 christos else 2124 1.1 christos echo "$as_me:$LINENO: result: no" >&5 2125 1.1 christos echo "${ECHO_T}no" >&6 2126 1.1 christos fi 2127 1.1 christos 2128 1.1 christos test -n "$ac_ct_CC" && break 2129 1.1 christos done 2130 1.1 christos 2131 1.1 christos CC=$ac_ct_CC 2132 1.1 christos fi 2133 1.1 christos 2134 1.1 christos fi 2135 1.1 christos 2136 1.1 christos 2137 1.1 christos test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2138 1.1 christos See \`config.log' for more details." >&5 2139 1.1 christos echo "$as_me: error: no acceptable C compiler found in \$PATH 2140 1.1 christos See \`config.log' for more details." >&2;} 2141 1.1 christos { (exit 1); exit 1; }; } 2142 1.1 christos 2143 1.1 christos # Provide some information about the compiler. 2144 1.1 christos echo "$as_me:$LINENO:" \ 2145 1.1 christos "checking for C compiler version" >&5 2146 1.1 christos ac_compiler=`set X $ac_compile; echo $2` 2147 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2148 1.1 christos (eval $ac_compiler --version </dev/null >&5) 2>&5 2149 1.1 christos ac_status=$? 2150 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2151 1.1 christos (exit $ac_status); } 2152 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2153 1.1 christos (eval $ac_compiler -v </dev/null >&5) 2>&5 2154 1.1 christos ac_status=$? 2155 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2156 1.1 christos (exit $ac_status); } 2157 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2158 1.1 christos (eval $ac_compiler -V </dev/null >&5) 2>&5 2159 1.1 christos ac_status=$? 2160 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2161 1.1 christos (exit $ac_status); } 2162 1.1 christos 2163 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2164 1.1 christos /* confdefs.h. */ 2165 1.1 christos _ACEOF 2166 1.1 christos cat confdefs.h >>conftest.$ac_ext 2167 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2168 1.1 christos /* end confdefs.h. */ 2169 1.1 christos 2170 1.1 christos int 2171 1.1 christos main () 2172 1.1 christos { 2173 1.1 christos 2174 1.1 christos ; 2175 1.1 christos return 0; 2176 1.1 christos } 2177 1.1 christos _ACEOF 2178 1.1 christos ac_clean_files_save=$ac_clean_files 2179 1.1 christos ac_clean_files="$ac_clean_files a.out a.exe b.out" 2180 1.1 christos # Try to create an executable without -o first, disregard a.out. 2181 1.1 christos # It will help us diagnose broken compilers, and finding out an intuition 2182 1.1 christos # of exeext. 2183 1.1 christos echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2184 1.1 christos echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2185 1.1 christos ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2186 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2187 1.1 christos (eval $ac_link_default) 2>&5 2188 1.1 christos ac_status=$? 2189 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2190 1.1 christos (exit $ac_status); }; then 2191 1.1 christos # Find the output, starting from the most likely. This scheme is 2192 1.1 christos # not robust to junk in `.', hence go to wildcards (a.*) only as a last 2193 1.1 christos # resort. 2194 1.1 christos 2195 1.1 christos # Be careful to initialize this variable, since it used to be cached. 2196 1.1 christos # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2197 1.1 christos ac_cv_exeext= 2198 1.1 christos # b.out is created by i960 compilers. 2199 1.1 christos for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2200 1.1 christos do 2201 1.1 christos test -f "$ac_file" || continue 2202 1.1 christos case $ac_file in 2203 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2204 1.1 christos ;; 2205 1.1 christos conftest.$ac_ext ) 2206 1.1 christos # This is the source file. 2207 1.1 christos ;; 2208 1.1 christos [ab].out ) 2209 1.1 christos # We found the default executable, but exeext='' is most 2210 1.1 christos # certainly right. 2211 1.1 christos break;; 2212 1.1 christos *.* ) 2213 1.1 christos ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2214 1.1 christos # FIXME: I believe we export ac_cv_exeext for Libtool, 2215 1.1 christos # but it would be cool to find out if it's true. Does anybody 2216 1.1 christos # maintain Libtool? --akim. 2217 1.1 christos export ac_cv_exeext 2218 1.1 christos break;; 2219 1.1 christos * ) 2220 1.1 christos break;; 2221 1.1 christos esac 2222 1.1 christos done 2223 1.1 christos else 2224 1.1 christos echo "$as_me: failed program was:" >&5 2225 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2226 1.1 christos 2227 1.1 christos { { echo "$as_me:$LINENO: error: C compiler cannot create executables 2228 1.1 christos See \`config.log' for more details." >&5 2229 1.1 christos echo "$as_me: error: C compiler cannot create executables 2230 1.1 christos See \`config.log' for more details." >&2;} 2231 1.1 christos { (exit 77); exit 77; }; } 2232 1.1 christos fi 2233 1.1 christos 2234 1.1 christos ac_exeext=$ac_cv_exeext 2235 1.1 christos echo "$as_me:$LINENO: result: $ac_file" >&5 2236 1.1 christos echo "${ECHO_T}$ac_file" >&6 2237 1.1 christos 2238 1.1 christos # Check the compiler produces executables we can run. If not, either 2239 1.1 christos # the compiler is broken, or we cross compile. 2240 1.1 christos echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2241 1.1 christos echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2242 1.1 christos # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2243 1.1 christos # If not cross compiling, check that we can run a simple program. 2244 1.1 christos if test "$cross_compiling" != yes; then 2245 1.1 christos if { ac_try='./$ac_file' 2246 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2247 1.1 christos (eval $ac_try) 2>&5 2248 1.1 christos ac_status=$? 2249 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2250 1.1 christos (exit $ac_status); }; }; then 2251 1.1 christos cross_compiling=no 2252 1.1 christos else 2253 1.1 christos if test "$cross_compiling" = maybe; then 2254 1.1 christos cross_compiling=yes 2255 1.1 christos else 2256 1.1 christos { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2257 1.1 christos If you meant to cross compile, use \`--host'. 2258 1.1 christos See \`config.log' for more details." >&5 2259 1.1 christos echo "$as_me: error: cannot run C compiled programs. 2260 1.1 christos If you meant to cross compile, use \`--host'. 2261 1.1 christos See \`config.log' for more details." >&2;} 2262 1.1 christos { (exit 1); exit 1; }; } 2263 1.1 christos fi 2264 1.1 christos fi 2265 1.1 christos fi 2266 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 2267 1.1 christos echo "${ECHO_T}yes" >&6 2268 1.1 christos 2269 1.1 christos rm -f a.out a.exe conftest$ac_cv_exeext b.out 2270 1.1 christos ac_clean_files=$ac_clean_files_save 2271 1.1 christos # Check the compiler produces executables we can run. If not, either 2272 1.1 christos # the compiler is broken, or we cross compile. 2273 1.1 christos echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2274 1.1 christos echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2275 1.1 christos echo "$as_me:$LINENO: result: $cross_compiling" >&5 2276 1.1 christos echo "${ECHO_T}$cross_compiling" >&6 2277 1.1 christos 2278 1.1 christos echo "$as_me:$LINENO: checking for suffix of executables" >&5 2279 1.1 christos echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2280 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2281 1.1 christos (eval $ac_link) 2>&5 2282 1.1 christos ac_status=$? 2283 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2284 1.1 christos (exit $ac_status); }; then 2285 1.1 christos # If both `conftest.exe' and `conftest' are `present' (well, observable) 2286 1.1 christos # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2287 1.1 christos # work properly (i.e., refer to `conftest.exe'), while it won't with 2288 1.1 christos # `rm'. 2289 1.1 christos for ac_file in conftest.exe conftest conftest.*; do 2290 1.1 christos test -f "$ac_file" || continue 2291 1.1 christos case $ac_file in 2292 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2293 1.1 christos *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2294 1.1 christos export ac_cv_exeext 2295 1.1 christos break;; 2296 1.1 christos * ) break;; 2297 1.1 christos esac 2298 1.1 christos done 2299 1.1 christos else 2300 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2301 1.1 christos See \`config.log' for more details." >&5 2302 1.1 christos echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2303 1.1 christos See \`config.log' for more details." >&2;} 2304 1.1 christos { (exit 1); exit 1; }; } 2305 1.1 christos fi 2306 1.1 christos 2307 1.1 christos rm -f conftest$ac_cv_exeext 2308 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2309 1.1 christos echo "${ECHO_T}$ac_cv_exeext" >&6 2310 1.1 christos 2311 1.1 christos rm -f conftest.$ac_ext 2312 1.1 christos EXEEXT=$ac_cv_exeext 2313 1.1 christos ac_exeext=$EXEEXT 2314 1.1 christos echo "$as_me:$LINENO: checking for suffix of object files" >&5 2315 1.1 christos echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2316 1.1 christos if test "${ac_cv_objext+set}" = set; then 2317 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2318 1.1 christos else 2319 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2320 1.1 christos /* confdefs.h. */ 2321 1.1 christos _ACEOF 2322 1.1 christos cat confdefs.h >>conftest.$ac_ext 2323 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2324 1.1 christos /* end confdefs.h. */ 2325 1.1 christos 2326 1.1 christos int 2327 1.1 christos main () 2328 1.1 christos { 2329 1.1 christos 2330 1.1 christos ; 2331 1.1 christos return 0; 2332 1.1 christos } 2333 1.1 christos _ACEOF 2334 1.1 christos rm -f conftest.o conftest.obj 2335 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2336 1.1 christos (eval $ac_compile) 2>&5 2337 1.1 christos ac_status=$? 2338 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2339 1.1 christos (exit $ac_status); }; then 2340 1.1 christos for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2341 1.1 christos case $ac_file in 2342 1.1 christos *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2343 1.1 christos *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2344 1.1 christos break;; 2345 1.1 christos esac 2346 1.1 christos done 2347 1.1 christos else 2348 1.1 christos echo "$as_me: failed program was:" >&5 2349 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2350 1.1 christos 2351 1.1 christos { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2352 1.1 christos See \`config.log' for more details." >&5 2353 1.1 christos echo "$as_me: error: cannot compute suffix of object files: cannot compile 2354 1.1 christos See \`config.log' for more details." >&2;} 2355 1.1 christos { (exit 1); exit 1; }; } 2356 1.1 christos fi 2357 1.1 christos 2358 1.1 christos rm -f conftest.$ac_cv_objext conftest.$ac_ext 2359 1.1 christos fi 2360 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2361 1.1 christos echo "${ECHO_T}$ac_cv_objext" >&6 2362 1.1 christos OBJEXT=$ac_cv_objext 2363 1.1 christos ac_objext=$OBJEXT 2364 1.1 christos echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2365 1.1 christos echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2366 1.1 christos if test "${ac_cv_c_compiler_gnu+set}" = set; then 2367 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2368 1.1 christos else 2369 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2370 1.1 christos /* confdefs.h. */ 2371 1.1 christos _ACEOF 2372 1.1 christos cat confdefs.h >>conftest.$ac_ext 2373 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2374 1.1 christos /* end confdefs.h. */ 2375 1.1 christos 2376 1.1 christos int 2377 1.1 christos main () 2378 1.1 christos { 2379 1.1 christos #ifndef __GNUC__ 2380 1.1 christos choke me 2381 1.1 christos #endif 2382 1.1 christos 2383 1.1 christos ; 2384 1.1 christos return 0; 2385 1.1 christos } 2386 1.1 christos _ACEOF 2387 1.1 christos rm -f conftest.$ac_objext 2388 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2389 1.1 christos (eval $ac_compile) 2>conftest.er1 2390 1.1 christos ac_status=$? 2391 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2392 1.1 christos rm -f conftest.er1 2393 1.1 christos cat conftest.err >&5 2394 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 1.1 christos (exit $ac_status); } && 2396 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 2397 1.1 christos || test ! -s conftest.err' 2398 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2399 1.1 christos (eval $ac_try) 2>&5 2400 1.1 christos ac_status=$? 2401 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 1.1 christos (exit $ac_status); }; } && 2403 1.1 christos { ac_try='test -s conftest.$ac_objext' 2404 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405 1.1 christos (eval $ac_try) 2>&5 2406 1.1 christos ac_status=$? 2407 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 1.1 christos (exit $ac_status); }; }; then 2409 1.1 christos ac_compiler_gnu=yes 2410 1.1 christos else 2411 1.1 christos echo "$as_me: failed program was:" >&5 2412 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2413 1.1 christos 2414 1.1 christos ac_compiler_gnu=no 2415 1.1 christos fi 2416 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2417 1.1 christos ac_cv_c_compiler_gnu=$ac_compiler_gnu 2418 1.1 christos 2419 1.1 christos fi 2420 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2421 1.1 christos echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2422 1.1 christos GCC=`test $ac_compiler_gnu = yes && echo yes` 2423 1.1 christos ac_test_CFLAGS=${CFLAGS+set} 2424 1.1 christos ac_save_CFLAGS=$CFLAGS 2425 1.1 christos CFLAGS="-g" 2426 1.1 christos echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2427 1.1 christos echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2428 1.1 christos if test "${ac_cv_prog_cc_g+set}" = set; then 2429 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2430 1.1 christos else 2431 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2432 1.1 christos /* confdefs.h. */ 2433 1.1 christos _ACEOF 2434 1.1 christos cat confdefs.h >>conftest.$ac_ext 2435 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2436 1.1 christos /* end confdefs.h. */ 2437 1.1 christos 2438 1.1 christos int 2439 1.1 christos main () 2440 1.1 christos { 2441 1.1 christos 2442 1.1 christos ; 2443 1.1 christos return 0; 2444 1.1 christos } 2445 1.1 christos _ACEOF 2446 1.1 christos rm -f conftest.$ac_objext 2447 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2448 1.1 christos (eval $ac_compile) 2>conftest.er1 2449 1.1 christos ac_status=$? 2450 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2451 1.1 christos rm -f conftest.er1 2452 1.1 christos cat conftest.err >&5 2453 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2454 1.1 christos (exit $ac_status); } && 2455 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 2456 1.1 christos || test ! -s conftest.err' 2457 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2458 1.1 christos (eval $ac_try) 2>&5 2459 1.1 christos ac_status=$? 2460 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 1.1 christos (exit $ac_status); }; } && 2462 1.1 christos { ac_try='test -s conftest.$ac_objext' 2463 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2464 1.1 christos (eval $ac_try) 2>&5 2465 1.1 christos ac_status=$? 2466 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2467 1.1 christos (exit $ac_status); }; }; then 2468 1.1 christos ac_cv_prog_cc_g=yes 2469 1.1 christos else 2470 1.1 christos echo "$as_me: failed program was:" >&5 2471 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2472 1.1 christos 2473 1.1 christos ac_cv_prog_cc_g=no 2474 1.1 christos fi 2475 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2476 1.1 christos fi 2477 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2478 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2479 1.1 christos if test "$ac_test_CFLAGS" = set; then 2480 1.1 christos CFLAGS=$ac_save_CFLAGS 2481 1.1 christos elif test $ac_cv_prog_cc_g = yes; then 2482 1.1 christos if test "$GCC" = yes; then 2483 1.1 christos CFLAGS="-g -O2" 2484 1.1 christos else 2485 1.1 christos CFLAGS="-g" 2486 1.1 christos fi 2487 1.1 christos else 2488 1.1 christos if test "$GCC" = yes; then 2489 1.1 christos CFLAGS="-O2" 2490 1.1 christos else 2491 1.1 christos CFLAGS= 2492 1.1 christos fi 2493 1.1 christos fi 2494 1.1 christos echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2495 1.1 christos echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2496 1.1 christos if test "${ac_cv_prog_cc_stdc+set}" = set; then 2497 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2498 1.1 christos else 2499 1.1 christos ac_cv_prog_cc_stdc=no 2500 1.1 christos ac_save_CC=$CC 2501 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2502 1.1 christos /* confdefs.h. */ 2503 1.1 christos _ACEOF 2504 1.1 christos cat confdefs.h >>conftest.$ac_ext 2505 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2506 1.1 christos /* end confdefs.h. */ 2507 1.1 christos #include <stdarg.h> 2508 1.1 christos #include <stdio.h> 2509 1.1 christos #include <sys/types.h> 2510 1.1 christos #include <sys/stat.h> 2511 1.1 christos /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2512 1.1 christos struct buf { int x; }; 2513 1.1 christos FILE * (*rcsopen) (struct buf *, struct stat *, int); 2514 1.1 christos static char *e (p, i) 2515 1.1 christos char **p; 2516 1.1 christos int i; 2517 1.1 christos { 2518 1.1 christos return p[i]; 2519 1.1 christos } 2520 1.1 christos static char *f (char * (*g) (char **, int), char **p, ...) 2521 1.1 christos { 2522 1.1 christos char *s; 2523 1.1 christos va_list v; 2524 1.1 christos va_start (v,p); 2525 1.1 christos s = g (p, va_arg (v,int)); 2526 1.1 christos va_end (v); 2527 1.1 christos return s; 2528 1.1 christos } 2529 1.1 christos 2530 1.1 christos /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2531 1.1 christos function prototypes and stuff, but not '\xHH' hex character constants. 2532 1.1 christos These don't provoke an error unfortunately, instead are silently treated 2533 1.1 christos as 'x'. The following induces an error, until -std1 is added to get 2534 1.1 christos proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2535 1.1 christos array size at least. It's necessary to write '\x00'==0 to get something 2536 1.1 christos that's true only with -std1. */ 2537 1.1 christos int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2538 1.1 christos 2539 1.1 christos int test (int i, double x); 2540 1.1 christos struct s1 {int (*f) (int a);}; 2541 1.1 christos struct s2 {int (*f) (double a);}; 2542 1.1 christos int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2543 1.1 christos int argc; 2544 1.1 christos char **argv; 2545 1.1 christos int 2546 1.1 christos main () 2547 1.1 christos { 2548 1.1 christos return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2549 1.1 christos ; 2550 1.1 christos return 0; 2551 1.1 christos } 2552 1.1 christos _ACEOF 2553 1.1 christos # Don't try gcc -ansi; that turns off useful extensions and 2554 1.1 christos # breaks some systems' header files. 2555 1.1 christos # AIX -qlanglvl=ansi 2556 1.1 christos # Ultrix and OSF/1 -std1 2557 1.1 christos # HP-UX 10.20 and later -Ae 2558 1.1 christos # HP-UX older versions -Aa -D_HPUX_SOURCE 2559 1.1 christos # SVR4 -Xc -D__EXTENSIONS__ 2560 1.1 christos for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2561 1.1 christos do 2562 1.1 christos CC="$ac_save_CC $ac_arg" 2563 1.1 christos rm -f conftest.$ac_objext 2564 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2565 1.1 christos (eval $ac_compile) 2>conftest.er1 2566 1.1 christos ac_status=$? 2567 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2568 1.1 christos rm -f conftest.er1 2569 1.1 christos cat conftest.err >&5 2570 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2571 1.1 christos (exit $ac_status); } && 2572 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 2573 1.1 christos || test ! -s conftest.err' 2574 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2575 1.1 christos (eval $ac_try) 2>&5 2576 1.1 christos ac_status=$? 2577 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2578 1.1 christos (exit $ac_status); }; } && 2579 1.1 christos { ac_try='test -s conftest.$ac_objext' 2580 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2581 1.1 christos (eval $ac_try) 2>&5 2582 1.1 christos ac_status=$? 2583 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2584 1.1 christos (exit $ac_status); }; }; then 2585 1.1 christos ac_cv_prog_cc_stdc=$ac_arg 2586 1.1 christos break 2587 1.1 christos else 2588 1.1 christos echo "$as_me: failed program was:" >&5 2589 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2590 1.1 christos 2591 1.1 christos fi 2592 1.1 christos rm -f conftest.err conftest.$ac_objext 2593 1.1 christos done 2594 1.1 christos rm -f conftest.$ac_ext conftest.$ac_objext 2595 1.1 christos CC=$ac_save_CC 2596 1.1 christos 2597 1.1 christos fi 2598 1.1 christos 2599 1.1 christos case "x$ac_cv_prog_cc_stdc" in 2600 1.1 christos x|xno) 2601 1.1 christos echo "$as_me:$LINENO: result: none needed" >&5 2602 1.1 christos echo "${ECHO_T}none needed" >&6 ;; 2603 1.1 christos *) 2604 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2605 1.1 christos echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2606 1.1 christos CC="$CC $ac_cv_prog_cc_stdc" ;; 2607 1.1 christos esac 2608 1.1 christos 2609 1.1 christos # Some people use a C++ compiler to compile C. Since we use `exit', 2610 1.1 christos # in C++ we need to declare it. In case someone uses the same compiler 2611 1.1 christos # for both compiling C and C++ we need to have the C++ compiler decide 2612 1.1 christos # the declaration of exit, since it's the most demanding environment. 2613 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2614 1.1 christos #ifndef __cplusplus 2615 1.1 christos choke me 2616 1.1 christos #endif 2617 1.1 christos _ACEOF 2618 1.1 christos rm -f conftest.$ac_objext 2619 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2620 1.1 christos (eval $ac_compile) 2>conftest.er1 2621 1.1 christos ac_status=$? 2622 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2623 1.1 christos rm -f conftest.er1 2624 1.1 christos cat conftest.err >&5 2625 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2626 1.1 christos (exit $ac_status); } && 2627 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 2628 1.1 christos || test ! -s conftest.err' 2629 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2630 1.1 christos (eval $ac_try) 2>&5 2631 1.1 christos ac_status=$? 2632 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2633 1.1 christos (exit $ac_status); }; } && 2634 1.1 christos { ac_try='test -s conftest.$ac_objext' 2635 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2636 1.1 christos (eval $ac_try) 2>&5 2637 1.1 christos ac_status=$? 2638 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2639 1.1 christos (exit $ac_status); }; }; then 2640 1.1 christos for ac_declaration in \ 2641 1.1 christos '' \ 2642 1.1 christos 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2643 1.1 christos 'extern "C" void std::exit (int); using std::exit;' \ 2644 1.1 christos 'extern "C" void exit (int) throw ();' \ 2645 1.1 christos 'extern "C" void exit (int);' \ 2646 1.1 christos 'void exit (int);' 2647 1.1 christos do 2648 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2649 1.1 christos /* confdefs.h. */ 2650 1.1 christos _ACEOF 2651 1.1 christos cat confdefs.h >>conftest.$ac_ext 2652 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2653 1.1 christos /* end confdefs.h. */ 2654 1.1 christos $ac_declaration 2655 1.1 christos #include <stdlib.h> 2656 1.1 christos int 2657 1.1 christos main () 2658 1.1 christos { 2659 1.1 christos exit (42); 2660 1.1 christos ; 2661 1.1 christos return 0; 2662 1.1 christos } 2663 1.1 christos _ACEOF 2664 1.1 christos rm -f conftest.$ac_objext 2665 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2666 1.1 christos (eval $ac_compile) 2>conftest.er1 2667 1.1 christos ac_status=$? 2668 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2669 1.1 christos rm -f conftest.er1 2670 1.1 christos cat conftest.err >&5 2671 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2672 1.1 christos (exit $ac_status); } && 2673 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 2674 1.1 christos || test ! -s conftest.err' 2675 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2676 1.1 christos (eval $ac_try) 2>&5 2677 1.1 christos ac_status=$? 2678 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2679 1.1 christos (exit $ac_status); }; } && 2680 1.1 christos { ac_try='test -s conftest.$ac_objext' 2681 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2682 1.1 christos (eval $ac_try) 2>&5 2683 1.1 christos ac_status=$? 2684 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 1.1 christos (exit $ac_status); }; }; then 2686 1.1 christos : 2687 1.1 christos else 2688 1.1 christos echo "$as_me: failed program was:" >&5 2689 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2690 1.1 christos 2691 1.1 christos continue 2692 1.1 christos fi 2693 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2694 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2695 1.1 christos /* confdefs.h. */ 2696 1.1 christos _ACEOF 2697 1.1 christos cat confdefs.h >>conftest.$ac_ext 2698 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2699 1.1 christos /* end confdefs.h. */ 2700 1.1 christos $ac_declaration 2701 1.1 christos int 2702 1.1 christos main () 2703 1.1 christos { 2704 1.1 christos exit (42); 2705 1.1 christos ; 2706 1.1 christos return 0; 2707 1.1 christos } 2708 1.1 christos _ACEOF 2709 1.1 christos rm -f conftest.$ac_objext 2710 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2711 1.1 christos (eval $ac_compile) 2>conftest.er1 2712 1.1 christos ac_status=$? 2713 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2714 1.1 christos rm -f conftest.er1 2715 1.1 christos cat conftest.err >&5 2716 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2717 1.1 christos (exit $ac_status); } && 2718 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 2719 1.1 christos || test ! -s conftest.err' 2720 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2721 1.1 christos (eval $ac_try) 2>&5 2722 1.1 christos ac_status=$? 2723 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2724 1.1 christos (exit $ac_status); }; } && 2725 1.1 christos { ac_try='test -s conftest.$ac_objext' 2726 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2727 1.1 christos (eval $ac_try) 2>&5 2728 1.1 christos ac_status=$? 2729 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2730 1.1 christos (exit $ac_status); }; }; then 2731 1.1 christos break 2732 1.1 christos else 2733 1.1 christos echo "$as_me: failed program was:" >&5 2734 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2735 1.1 christos 2736 1.1 christos fi 2737 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2738 1.1 christos done 2739 1.1 christos rm -f conftest* 2740 1.1 christos if test -n "$ac_declaration"; then 2741 1.1 christos echo '#ifdef __cplusplus' >>confdefs.h 2742 1.1 christos echo $ac_declaration >>confdefs.h 2743 1.1 christos echo '#endif' >>confdefs.h 2744 1.1 christos fi 2745 1.1 christos 2746 1.1 christos else 2747 1.1 christos echo "$as_me: failed program was:" >&5 2748 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2749 1.1 christos 2750 1.1 christos fi 2751 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2752 1.1 christos ac_ext=c 2753 1.1 christos ac_cpp='$CPP $CPPFLAGS' 2754 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2755 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2756 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 2757 1.1 christos DEPDIR="${am__leading_dot}deps" 2758 1.1 christos 2759 1.1 christos ac_config_commands="$ac_config_commands depfiles" 2760 1.1 christos 2761 1.1 christos 2762 1.1 christos am_make=${MAKE-make} 2763 1.1 christos cat > confinc << 'END' 2764 1.1 christos am__doit: 2765 1.1 christos @echo done 2766 1.1 christos .PHONY: am__doit 2767 1.1 christos END 2768 1.1 christos # If we don't find an include directive, just comment out the code. 2769 1.1 christos echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2770 1.1 christos echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2771 1.1 christos am__include="#" 2772 1.1 christos am__quote= 2773 1.1 christos _am_result=none 2774 1.1 christos # First try GNU make style include. 2775 1.1 christos echo "include confinc" > confmf 2776 1.1 christos # We grep out `Entering directory' and `Leaving directory' 2777 1.1 christos # messages which can occur if `w' ends up in MAKEFLAGS. 2778 1.1 christos # In particular we don't look at `^make:' because GNU make might 2779 1.1 christos # be invoked under some other name (usually "gmake"), in which 2780 1.1 christos # case it prints its new name instead of `make'. 2781 1.1 christos if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2782 1.1 christos am__include=include 2783 1.1 christos am__quote= 2784 1.1 christos _am_result=GNU 2785 1.1 christos fi 2786 1.1 christos # Now try BSD make style include. 2787 1.1 christos if test "$am__include" = "#"; then 2788 1.1 christos echo '.include "confinc"' > confmf 2789 1.1 christos if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2790 1.1 christos am__include=.include 2791 1.1 christos am__quote="\"" 2792 1.1 christos _am_result=BSD 2793 1.1 christos fi 2794 1.1 christos fi 2795 1.1 christos 2796 1.1 christos 2797 1.1 christos echo "$as_me:$LINENO: result: $_am_result" >&5 2798 1.1 christos echo "${ECHO_T}$_am_result" >&6 2799 1.1 christos rm -f confinc confmf 2800 1.1 christos 2801 1.1 christos # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2802 1.1 christos if test "${enable_dependency_tracking+set}" = set; then 2803 1.1 christos enableval="$enable_dependency_tracking" 2804 1.1 christos 2805 1.1 christos fi; 2806 1.1 christos if test "x$enable_dependency_tracking" != xno; then 2807 1.1 christos am_depcomp="$ac_aux_dir/depcomp" 2808 1.1 christos AMDEPBACKSLASH='\' 2809 1.1 christos fi 2810 1.1 christos 2811 1.1 christos 2812 1.1 christos if test "x$enable_dependency_tracking" != xno; then 2813 1.1 christos AMDEP_TRUE= 2814 1.1 christos AMDEP_FALSE='#' 2815 1.1 christos else 2816 1.1 christos AMDEP_TRUE='#' 2817 1.1 christos AMDEP_FALSE= 2818 1.1 christos fi 2819 1.1 christos 2820 1.1 christos 2821 1.1 christos 2822 1.1 christos 2823 1.1 christos depcc="$CC" am_compiler_list= 2824 1.1 christos 2825 1.1 christos echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2826 1.1 christos echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2827 1.1 christos if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2828 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2829 1.1 christos else 2830 1.1 christos if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2831 1.1 christos # We make a subdir and do the tests there. Otherwise we can end up 2832 1.1 christos # making bogus files that we don't know about and never remove. For 2833 1.1 christos # instance it was reported that on HP-UX the gcc test will end up 2834 1.1 christos # making a dummy file named `D' -- because `-MD' means `put the output 2835 1.1 christos # in D'. 2836 1.1 christos mkdir conftest.dir 2837 1.1 christos # Copy depcomp to subdir because otherwise we won't find it if we're 2838 1.1 christos # using a relative directory. 2839 1.1 christos cp "$am_depcomp" conftest.dir 2840 1.1 christos cd conftest.dir 2841 1.1 christos # We will build objects and dependencies in a subdirectory because 2842 1.1 christos # it helps to detect inapplicable dependency modes. For instance 2843 1.1 christos # both Tru64's cc and ICC support -MD to output dependencies as a 2844 1.1 christos # side effect of compilation, but ICC will put the dependencies in 2845 1.1 christos # the current directory while Tru64 will put them in the object 2846 1.1 christos # directory. 2847 1.1 christos mkdir sub 2848 1.1 christos 2849 1.1 christos am_cv_CC_dependencies_compiler_type=none 2850 1.1 christos if test "$am_compiler_list" = ""; then 2851 1.1 christos am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2852 1.1 christos fi 2853 1.1 christos for depmode in $am_compiler_list; do 2854 1.1 christos # Setup a source with many dependencies, because some compilers 2855 1.1 christos # like to wrap large dependency lists on column 80 (with \), and 2856 1.1 christos # we should not choose a depcomp mode which is confused by this. 2857 1.1 christos # 2858 1.1 christos # We need to recreate these files for each test, as the compiler may 2859 1.1 christos # overwrite some of them when testing with obscure command lines. 2860 1.1 christos # This happens at least with the AIX C compiler. 2861 1.1 christos : > sub/conftest.c 2862 1.1 christos for i in 1 2 3 4 5 6; do 2863 1.1 christos echo '#include "conftst'$i'.h"' >> sub/conftest.c 2864 1.1 christos # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2865 1.1 christos # Solaris 8's {/usr,}/bin/sh. 2866 1.1 christos touch sub/conftst$i.h 2867 1.1 christos done 2868 1.1 christos echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2869 1.1 christos 2870 1.1 christos case $depmode in 2871 1.1 christos nosideeffect) 2872 1.1 christos # after this tag, mechanisms are not by side-effect, so they'll 2873 1.1 christos # only be used when explicitly requested 2874 1.1 christos if test "x$enable_dependency_tracking" = xyes; then 2875 1.1 christos continue 2876 1.1 christos else 2877 1.1 christos break 2878 1.1 christos fi 2879 1.1 christos ;; 2880 1.1 christos none) break ;; 2881 1.1 christos esac 2882 1.1 christos # We check with `-c' and `-o' for the sake of the "dashmstdout" 2883 1.1 christos # mode. It turns out that the SunPro C++ compiler does not properly 2884 1.1 christos # handle `-M -o', and we need to detect this. 2885 1.1 christos if depmode=$depmode \ 2886 1.1 christos source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2887 1.1 christos depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2888 1.1 christos $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2889 1.1 christos >/dev/null 2>conftest.err && 2890 1.1 christos grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2891 1.1 christos grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2892 1.1 christos ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2893 1.1 christos # icc doesn't choke on unknown options, it will just issue warnings 2894 1.1 christos # or remarks (even with -Werror). So we grep stderr for any message 2895 1.1 christos # that says an option was ignored or not supported. 2896 1.1 christos # When given -MP, icc 7.0 and 7.1 complain thusly: 2897 1.1 christos # icc: Command line warning: ignoring option '-M'; no argument required 2898 1.1 christos # The diagnosis changed in icc 8.0: 2899 1.1 christos # icc: Command line remark: option '-MP' not supported 2900 1.1 christos if (grep 'ignoring option' conftest.err || 2901 1.1 christos grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2902 1.1 christos am_cv_CC_dependencies_compiler_type=$depmode 2903 1.1 christos break 2904 1.1 christos fi 2905 1.1 christos fi 2906 1.1 christos done 2907 1.1 christos 2908 1.1 christos cd .. 2909 1.1 christos rm -rf conftest.dir 2910 1.1 christos else 2911 1.1 christos am_cv_CC_dependencies_compiler_type=none 2912 1.1 christos fi 2913 1.1 christos 2914 1.1 christos fi 2915 1.1 christos echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2916 1.1 christos echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2917 1.1 christos CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2918 1.1 christos 2919 1.1 christos 2920 1.1 christos 2921 1.1 christos if 2922 1.1 christos test "x$enable_dependency_tracking" != xno \ 2923 1.1 christos && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2924 1.1 christos am__fastdepCC_TRUE= 2925 1.1 christos am__fastdepCC_FALSE='#' 2926 1.1 christos else 2927 1.1 christos am__fastdepCC_TRUE='#' 2928 1.1 christos am__fastdepCC_FALSE= 2929 1.1 christos fi 2930 1.1 christos 2931 1.1 christos 2932 1.1 christos 2933 1.1 christos ac_ext=c 2934 1.1 christos ac_cpp='$CPP $CPPFLAGS' 2935 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938 1.1 christos echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2939 1.1 christos echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2940 1.1 christos # On Suns, sometimes $CPP names a directory. 2941 1.1 christos if test -n "$CPP" && test -d "$CPP"; then 2942 1.1 christos CPP= 2943 1.1 christos fi 2944 1.1 christos if test -z "$CPP"; then 2945 1.1 christos if test "${ac_cv_prog_CPP+set}" = set; then 2946 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 2947 1.1 christos else 2948 1.1 christos # Double quotes because CPP needs to be expanded 2949 1.1 christos for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2950 1.1 christos do 2951 1.1 christos ac_preproc_ok=false 2952 1.1 christos for ac_c_preproc_warn_flag in '' yes 2953 1.1 christos do 2954 1.1 christos # Use a header file that comes with gcc, so configuring glibc 2955 1.1 christos # with a fresh cross-compiler works. 2956 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2957 1.1 christos # <limits.h> exists even on freestanding compilers. 2958 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser, 2959 1.1 christos # not just through cpp. "Syntax error" is here to catch this case. 2960 1.1 christos cat >conftest.$ac_ext <<_ACEOF 2961 1.1 christos /* confdefs.h. */ 2962 1.1 christos _ACEOF 2963 1.1 christos cat confdefs.h >>conftest.$ac_ext 2964 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 2965 1.1 christos /* end confdefs.h. */ 2966 1.1 christos #ifdef __STDC__ 2967 1.1 christos # include <limits.h> 2968 1.1 christos #else 2969 1.1 christos # include <assert.h> 2970 1.1 christos #endif 2971 1.1 christos Syntax error 2972 1.1 christos _ACEOF 2973 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2974 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2975 1.1 christos ac_status=$? 2976 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 2977 1.1 christos rm -f conftest.er1 2978 1.1 christos cat conftest.err >&5 2979 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 2980 1.1 christos (exit $ac_status); } >/dev/null; then 2981 1.1 christos if test -s conftest.err; then 2982 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 2983 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2984 1.1 christos else 2985 1.1 christos ac_cpp_err= 2986 1.1 christos fi 2987 1.1 christos else 2988 1.1 christos ac_cpp_err=yes 2989 1.1 christos fi 2990 1.1 christos if test -z "$ac_cpp_err"; then 2991 1.1 christos : 2992 1.1 christos else 2993 1.1 christos echo "$as_me: failed program was:" >&5 2994 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 2995 1.1 christos 2996 1.1 christos # Broken: fails on valid input. 2997 1.1 christos continue 2998 1.1 christos fi 2999 1.1 christos rm -f conftest.err conftest.$ac_ext 3000 1.1 christos 3001 1.1 christos # OK, works on sane cases. Now check whether non-existent headers 3002 1.1 christos # can be detected and how. 3003 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3004 1.1 christos /* confdefs.h. */ 3005 1.1 christos _ACEOF 3006 1.1 christos cat confdefs.h >>conftest.$ac_ext 3007 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3008 1.1 christos /* end confdefs.h. */ 3009 1.1 christos #include <ac_nonexistent.h> 3010 1.1 christos _ACEOF 3011 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3012 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3013 1.1 christos ac_status=$? 3014 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3015 1.1 christos rm -f conftest.er1 3016 1.1 christos cat conftest.err >&5 3017 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3018 1.1 christos (exit $ac_status); } >/dev/null; then 3019 1.1 christos if test -s conftest.err; then 3020 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3021 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3022 1.1 christos else 3023 1.1 christos ac_cpp_err= 3024 1.1 christos fi 3025 1.1 christos else 3026 1.1 christos ac_cpp_err=yes 3027 1.1 christos fi 3028 1.1 christos if test -z "$ac_cpp_err"; then 3029 1.1 christos # Broken: success on invalid input. 3030 1.1 christos continue 3031 1.1 christos else 3032 1.1 christos echo "$as_me: failed program was:" >&5 3033 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3034 1.1 christos 3035 1.1 christos # Passes both tests. 3036 1.1 christos ac_preproc_ok=: 3037 1.1 christos break 3038 1.1 christos fi 3039 1.1 christos rm -f conftest.err conftest.$ac_ext 3040 1.1 christos 3041 1.1 christos done 3042 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3043 1.1 christos rm -f conftest.err conftest.$ac_ext 3044 1.1 christos if $ac_preproc_ok; then 3045 1.1 christos break 3046 1.1 christos fi 3047 1.1 christos 3048 1.1 christos done 3049 1.1 christos ac_cv_prog_CPP=$CPP 3050 1.1 christos 3051 1.1 christos fi 3052 1.1 christos CPP=$ac_cv_prog_CPP 3053 1.1 christos else 3054 1.1 christos ac_cv_prog_CPP=$CPP 3055 1.1 christos fi 3056 1.1 christos echo "$as_me:$LINENO: result: $CPP" >&5 3057 1.1 christos echo "${ECHO_T}$CPP" >&6 3058 1.1 christos ac_preproc_ok=false 3059 1.1 christos for ac_c_preproc_warn_flag in '' yes 3060 1.1 christos do 3061 1.1 christos # Use a header file that comes with gcc, so configuring glibc 3062 1.1 christos # with a fresh cross-compiler works. 3063 1.1 christos # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3064 1.1 christos # <limits.h> exists even on freestanding compilers. 3065 1.1 christos # On the NeXT, cc -E runs the code through the compiler's parser, 3066 1.1 christos # not just through cpp. "Syntax error" is here to catch this case. 3067 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3068 1.1 christos /* confdefs.h. */ 3069 1.1 christos _ACEOF 3070 1.1 christos cat confdefs.h >>conftest.$ac_ext 3071 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3072 1.1 christos /* end confdefs.h. */ 3073 1.1 christos #ifdef __STDC__ 3074 1.1 christos # include <limits.h> 3075 1.1 christos #else 3076 1.1 christos # include <assert.h> 3077 1.1 christos #endif 3078 1.1 christos Syntax error 3079 1.1 christos _ACEOF 3080 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3081 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3082 1.1 christos ac_status=$? 3083 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3084 1.1 christos rm -f conftest.er1 3085 1.1 christos cat conftest.err >&5 3086 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3087 1.1 christos (exit $ac_status); } >/dev/null; then 3088 1.1 christos if test -s conftest.err; then 3089 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3090 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3091 1.1 christos else 3092 1.1 christos ac_cpp_err= 3093 1.1 christos fi 3094 1.1 christos else 3095 1.1 christos ac_cpp_err=yes 3096 1.1 christos fi 3097 1.1 christos if test -z "$ac_cpp_err"; then 3098 1.1 christos : 3099 1.1 christos else 3100 1.1 christos echo "$as_me: failed program was:" >&5 3101 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3102 1.1 christos 3103 1.1 christos # Broken: fails on valid input. 3104 1.1 christos continue 3105 1.1 christos fi 3106 1.1 christos rm -f conftest.err conftest.$ac_ext 3107 1.1 christos 3108 1.1 christos # OK, works on sane cases. Now check whether non-existent headers 3109 1.1 christos # can be detected and how. 3110 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3111 1.1 christos /* confdefs.h. */ 3112 1.1 christos _ACEOF 3113 1.1 christos cat confdefs.h >>conftest.$ac_ext 3114 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3115 1.1 christos /* end confdefs.h. */ 3116 1.1 christos #include <ac_nonexistent.h> 3117 1.1 christos _ACEOF 3118 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3119 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3120 1.1 christos ac_status=$? 3121 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3122 1.1 christos rm -f conftest.er1 3123 1.1 christos cat conftest.err >&5 3124 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3125 1.1 christos (exit $ac_status); } >/dev/null; then 3126 1.1 christos if test -s conftest.err; then 3127 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3128 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3129 1.1 christos else 3130 1.1 christos ac_cpp_err= 3131 1.1 christos fi 3132 1.1 christos else 3133 1.1 christos ac_cpp_err=yes 3134 1.1 christos fi 3135 1.1 christos if test -z "$ac_cpp_err"; then 3136 1.1 christos # Broken: success on invalid input. 3137 1.1 christos continue 3138 1.1 christos else 3139 1.1 christos echo "$as_me: failed program was:" >&5 3140 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3141 1.1 christos 3142 1.1 christos # Passes both tests. 3143 1.1 christos ac_preproc_ok=: 3144 1.1 christos break 3145 1.1 christos fi 3146 1.1 christos rm -f conftest.err conftest.$ac_ext 3147 1.1 christos 3148 1.1 christos done 3149 1.1 christos # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3150 1.1 christos rm -f conftest.err conftest.$ac_ext 3151 1.1 christos if $ac_preproc_ok; then 3152 1.1 christos : 3153 1.1 christos else 3154 1.1 christos { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3155 1.1 christos See \`config.log' for more details." >&5 3156 1.1 christos echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3157 1.1 christos See \`config.log' for more details." >&2;} 3158 1.1 christos { (exit 1); exit 1; }; } 3159 1.1 christos fi 3160 1.1 christos 3161 1.1 christos ac_ext=c 3162 1.1 christos ac_cpp='$CPP $CPPFLAGS' 3163 1.1 christos ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3164 1.1 christos ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3165 1.1 christos ac_compiler_gnu=$ac_cv_c_compiler_gnu 3166 1.1 christos 3167 1.1 christos 3168 1.1 christos echo "$as_me:$LINENO: checking for egrep" >&5 3169 1.1 christos echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3170 1.1 christos if test "${ac_cv_prog_egrep+set}" = set; then 3171 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3172 1.1 christos else 3173 1.1 christos if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3174 1.1 christos then ac_cv_prog_egrep='grep -E' 3175 1.1 christos else ac_cv_prog_egrep='egrep' 3176 1.1 christos fi 3177 1.1 christos fi 3178 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3179 1.1 christos echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3180 1.1 christos EGREP=$ac_cv_prog_egrep 3181 1.1 christos 3182 1.1 christos 3183 1.1 christos if test $ac_cv_c_compiler_gnu = yes; then 3184 1.1 christos echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3185 1.1 christos echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 3186 1.1 christos if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3187 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3188 1.1 christos else 3189 1.1 christos ac_pattern="Autoconf.*'x'" 3190 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3191 1.1 christos /* confdefs.h. */ 3192 1.1 christos _ACEOF 3193 1.1 christos cat confdefs.h >>conftest.$ac_ext 3194 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3195 1.1 christos /* end confdefs.h. */ 3196 1.1 christos #include <sgtty.h> 3197 1.1 christos Autoconf TIOCGETP 3198 1.1 christos _ACEOF 3199 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3200 1.1 christos $EGREP "$ac_pattern" >/dev/null 2>&1; then 3201 1.1 christos ac_cv_prog_gcc_traditional=yes 3202 1.1 christos else 3203 1.1 christos ac_cv_prog_gcc_traditional=no 3204 1.1 christos fi 3205 1.1 christos rm -f conftest* 3206 1.1 christos 3207 1.1 christos 3208 1.1 christos if test $ac_cv_prog_gcc_traditional = no; then 3209 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3210 1.1 christos /* confdefs.h. */ 3211 1.1 christos _ACEOF 3212 1.1 christos cat confdefs.h >>conftest.$ac_ext 3213 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3214 1.1 christos /* end confdefs.h. */ 3215 1.1 christos #include <termio.h> 3216 1.1 christos Autoconf TCGETA 3217 1.1 christos _ACEOF 3218 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3219 1.1 christos $EGREP "$ac_pattern" >/dev/null 2>&1; then 3220 1.1 christos ac_cv_prog_gcc_traditional=yes 3221 1.1 christos fi 3222 1.1 christos rm -f conftest* 3223 1.1 christos 3224 1.1 christos fi 3225 1.1 christos fi 3226 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3227 1.1 christos echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 3228 1.1 christos if test $ac_cv_prog_gcc_traditional = yes; then 3229 1.1 christos CC="$CC -traditional" 3230 1.1 christos fi 3231 1.1 christos fi 3232 1.1 christos 3233 1.1 christos # Find a good install program. We prefer a C program (faster), 3234 1.1 christos # so one script is as good as another. But avoid the broken or 3235 1.1 christos # incompatible versions: 3236 1.1 christos # SysV /etc/install, /usr/sbin/install 3237 1.1 christos # SunOS /usr/etc/install 3238 1.1 christos # IRIX /sbin/install 3239 1.1 christos # AIX /bin/install 3240 1.1 christos # AmigaOS /C/install, which installs bootblocks on floppy discs 3241 1.1 christos # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3242 1.1 christos # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3243 1.1 christos # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3244 1.1 christos # OS/2's system install, which has a completely different semantic 3245 1.1 christos # ./install, which can be erroneously created by make from ./install.sh. 3246 1.1 christos echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3247 1.1 christos echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3248 1.1 christos if test -z "$INSTALL"; then 3249 1.1 christos if test "${ac_cv_path_install+set}" = set; then 3250 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3251 1.1 christos else 3252 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3253 1.1 christos for as_dir in $PATH 3254 1.1 christos do 3255 1.1 christos IFS=$as_save_IFS 3256 1.1 christos test -z "$as_dir" && as_dir=. 3257 1.1 christos # Account for people who put trailing slashes in PATH elements. 3258 1.1 christos case $as_dir/ in 3259 1.1 christos ./ | .// | /cC/* | \ 3260 1.1 christos /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3261 1.1 christos ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3262 1.1 christos /usr/ucb/* ) ;; 3263 1.1 christos *) 3264 1.1 christos # OSF1 and SCO ODT 3.0 have their own names for install. 3265 1.1 christos # Don't use installbsd from OSF since it installs stuff as root 3266 1.1 christos # by default. 3267 1.1 christos for ac_prog in ginstall scoinst install; do 3268 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3269 1.1 christos if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3270 1.1 christos if test $ac_prog = install && 3271 1.1 christos grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3272 1.1 christos # AIX install. It has an incompatible calling convention. 3273 1.1 christos : 3274 1.1 christos elif test $ac_prog = install && 3275 1.1 christos grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3276 1.1 christos # program-specific install script used by HP pwplus--don't use. 3277 1.1 christos : 3278 1.1 christos else 3279 1.1 christos ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3280 1.1 christos break 3 3281 1.1 christos fi 3282 1.1 christos fi 3283 1.1 christos done 3284 1.1 christos done 3285 1.1 christos ;; 3286 1.1 christos esac 3287 1.1 christos done 3288 1.1 christos 3289 1.1 christos 3290 1.1 christos fi 3291 1.1 christos if test "${ac_cv_path_install+set}" = set; then 3292 1.1 christos INSTALL=$ac_cv_path_install 3293 1.1 christos else 3294 1.1 christos # As a last resort, use the slow shell script. We don't cache a 3295 1.1 christos # path for INSTALL within a source directory, because that will 3296 1.1 christos # break other packages using the cache if that directory is 3297 1.1 christos # removed, or if the path is relative. 3298 1.1 christos INSTALL=$ac_install_sh 3299 1.1 christos fi 3300 1.1 christos fi 3301 1.1 christos echo "$as_me:$LINENO: result: $INSTALL" >&5 3302 1.1 christos echo "${ECHO_T}$INSTALL" >&6 3303 1.1 christos 3304 1.1 christos # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3305 1.1 christos # It thinks the first close brace ends the variable substitution. 3306 1.1 christos test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3307 1.1 christos 3308 1.1 christos test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3309 1.1 christos 3310 1.1 christos test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3311 1.1 christos 3312 1.1 christos echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3313 1.1 christos echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3314 1.1 christos set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3315 1.1 christos if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3316 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3317 1.1 christos else 3318 1.1 christos cat >conftest.make <<\_ACEOF 3319 1.1 christos all: 3320 1.1 christos @echo 'ac_maketemp="$(MAKE)"' 3321 1.1 christos _ACEOF 3322 1.1 christos # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3323 1.1 christos eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3324 1.1 christos if test -n "$ac_maketemp"; then 3325 1.1 christos eval ac_cv_prog_make_${ac_make}_set=yes 3326 1.1 christos else 3327 1.1 christos eval ac_cv_prog_make_${ac_make}_set=no 3328 1.1 christos fi 3329 1.1 christos rm -f conftest.make 3330 1.1 christos fi 3331 1.1 christos if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3332 1.1 christos echo "$as_me:$LINENO: result: yes" >&5 3333 1.1 christos echo "${ECHO_T}yes" >&6 3334 1.1 christos SET_MAKE= 3335 1.1 christos else 3336 1.1 christos echo "$as_me:$LINENO: result: no" >&5 3337 1.1 christos echo "${ECHO_T}no" >&6 3338 1.1 christos SET_MAKE="MAKE=${MAKE-make}" 3339 1.1 christos fi 3340 1.1 christos 3341 1.1 christos if test -n "$ac_tool_prefix"; then 3342 1.1 christos # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3343 1.1 christos set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3344 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 3345 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3346 1.1 christos if test "${ac_cv_prog_RANLIB+set}" = set; then 3347 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3348 1.1 christos else 3349 1.1 christos if test -n "$RANLIB"; then 3350 1.1 christos ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3351 1.1 christos else 3352 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3353 1.1 christos for as_dir in $PATH 3354 1.1 christos do 3355 1.1 christos IFS=$as_save_IFS 3356 1.1 christos test -z "$as_dir" && as_dir=. 3357 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3358 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3359 1.1 christos ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3360 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3361 1.1 christos break 2 3362 1.1 christos fi 3363 1.1 christos done 3364 1.1 christos done 3365 1.1 christos 3366 1.1 christos fi 3367 1.1 christos fi 3368 1.1 christos RANLIB=$ac_cv_prog_RANLIB 3369 1.1 christos if test -n "$RANLIB"; then 3370 1.1 christos echo "$as_me:$LINENO: result: $RANLIB" >&5 3371 1.1 christos echo "${ECHO_T}$RANLIB" >&6 3372 1.1 christos else 3373 1.1 christos echo "$as_me:$LINENO: result: no" >&5 3374 1.1 christos echo "${ECHO_T}no" >&6 3375 1.1 christos fi 3376 1.1 christos 3377 1.1 christos fi 3378 1.1 christos if test -z "$ac_cv_prog_RANLIB"; then 3379 1.1 christos ac_ct_RANLIB=$RANLIB 3380 1.1 christos # Extract the first word of "ranlib", so it can be a program name with args. 3381 1.1 christos set dummy ranlib; ac_word=$2 3382 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 3383 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3384 1.1 christos if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3385 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3386 1.1 christos else 3387 1.1 christos if test -n "$ac_ct_RANLIB"; then 3388 1.1 christos ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3389 1.1 christos else 3390 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3391 1.1 christos for as_dir in $PATH 3392 1.1 christos do 3393 1.1 christos IFS=$as_save_IFS 3394 1.1 christos test -z "$as_dir" && as_dir=. 3395 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 3396 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3397 1.1 christos ac_cv_prog_ac_ct_RANLIB="ranlib" 3398 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3399 1.1 christos break 2 3400 1.1 christos fi 3401 1.1 christos done 3402 1.1 christos done 3403 1.1 christos 3404 1.1 christos test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 3405 1.1 christos fi 3406 1.1 christos fi 3407 1.1 christos ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3408 1.1 christos if test -n "$ac_ct_RANLIB"; then 3409 1.1 christos echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3410 1.1 christos echo "${ECHO_T}$ac_ct_RANLIB" >&6 3411 1.1 christos else 3412 1.1 christos echo "$as_me:$LINENO: result: no" >&5 3413 1.1 christos echo "${ECHO_T}no" >&6 3414 1.1 christos fi 3415 1.1 christos 3416 1.1 christos RANLIB=$ac_ct_RANLIB 3417 1.1 christos else 3418 1.1 christos RANLIB="$ac_cv_prog_RANLIB" 3419 1.1 christos fi 3420 1.1 christos 3421 1.1 christos 3422 1.1 christos HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"} 3423 1.1 christos 3424 1.1 christos 3425 1.1 christos echo "$as_me:$LINENO: checking for library containing strerror" >&5 3426 1.1 christos echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 3427 1.1 christos if test "${ac_cv_search_strerror+set}" = set; then 3428 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3429 1.1 christos else 3430 1.1 christos ac_func_search_save_LIBS=$LIBS 3431 1.1 christos ac_cv_search_strerror=no 3432 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3433 1.1 christos /* confdefs.h. */ 3434 1.1 christos _ACEOF 3435 1.1 christos cat confdefs.h >>conftest.$ac_ext 3436 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3437 1.1 christos /* end confdefs.h. */ 3438 1.1 christos 3439 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 3440 1.1 christos #ifdef __cplusplus 3441 1.1 christos extern "C" 3442 1.1 christos #endif 3443 1.1 christos /* We use char because int might match the return type of a gcc2 3444 1.1 christos builtin and then its argument prototype would still apply. */ 3445 1.1 christos char strerror (); 3446 1.1 christos int 3447 1.1 christos main () 3448 1.1 christos { 3449 1.1 christos strerror (); 3450 1.1 christos ; 3451 1.1 christos return 0; 3452 1.1 christos } 3453 1.1 christos _ACEOF 3454 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 3455 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3456 1.1 christos (eval $ac_link) 2>conftest.er1 3457 1.1 christos ac_status=$? 3458 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3459 1.1 christos rm -f conftest.er1 3460 1.1 christos cat conftest.err >&5 3461 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3462 1.1 christos (exit $ac_status); } && 3463 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 3464 1.1 christos || test ! -s conftest.err' 3465 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3466 1.1 christos (eval $ac_try) 2>&5 3467 1.1 christos ac_status=$? 3468 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3469 1.1 christos (exit $ac_status); }; } && 3470 1.1 christos { ac_try='test -s conftest$ac_exeext' 3471 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3472 1.1 christos (eval $ac_try) 2>&5 3473 1.1 christos ac_status=$? 3474 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3475 1.1 christos (exit $ac_status); }; }; then 3476 1.1 christos ac_cv_search_strerror="none required" 3477 1.1 christos else 3478 1.1 christos echo "$as_me: failed program was:" >&5 3479 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3480 1.1 christos 3481 1.1 christos fi 3482 1.1 christos rm -f conftest.err conftest.$ac_objext \ 3483 1.1 christos conftest$ac_exeext conftest.$ac_ext 3484 1.1 christos if test "$ac_cv_search_strerror" = no; then 3485 1.1 christos for ac_lib in cposix; do 3486 1.1 christos LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3487 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3488 1.1 christos /* confdefs.h. */ 3489 1.1 christos _ACEOF 3490 1.1 christos cat confdefs.h >>conftest.$ac_ext 3491 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3492 1.1 christos /* end confdefs.h. */ 3493 1.1 christos 3494 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 3495 1.1 christos #ifdef __cplusplus 3496 1.1 christos extern "C" 3497 1.1 christos #endif 3498 1.1 christos /* We use char because int might match the return type of a gcc2 3499 1.1 christos builtin and then its argument prototype would still apply. */ 3500 1.1 christos char strerror (); 3501 1.1 christos int 3502 1.1 christos main () 3503 1.1 christos { 3504 1.1 christos strerror (); 3505 1.1 christos ; 3506 1.1 christos return 0; 3507 1.1 christos } 3508 1.1 christos _ACEOF 3509 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 3510 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3511 1.1 christos (eval $ac_link) 2>conftest.er1 3512 1.1 christos ac_status=$? 3513 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3514 1.1 christos rm -f conftest.er1 3515 1.1 christos cat conftest.err >&5 3516 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 1.1 christos (exit $ac_status); } && 3518 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 3519 1.1 christos || test ! -s conftest.err' 3520 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3521 1.1 christos (eval $ac_try) 2>&5 3522 1.1 christos ac_status=$? 3523 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3524 1.1 christos (exit $ac_status); }; } && 3525 1.1 christos { ac_try='test -s conftest$ac_exeext' 3526 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3527 1.1 christos (eval $ac_try) 2>&5 3528 1.1 christos ac_status=$? 3529 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3530 1.1 christos (exit $ac_status); }; }; then 3531 1.1 christos ac_cv_search_strerror="-l$ac_lib" 3532 1.1 christos break 3533 1.1 christos else 3534 1.1 christos echo "$as_me: failed program was:" >&5 3535 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3536 1.1 christos 3537 1.1 christos fi 3538 1.1 christos rm -f conftest.err conftest.$ac_objext \ 3539 1.1 christos conftest$ac_exeext conftest.$ac_ext 3540 1.1 christos done 3541 1.1 christos fi 3542 1.1 christos LIBS=$ac_func_search_save_LIBS 3543 1.1 christos fi 3544 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3545 1.1 christos echo "${ECHO_T}$ac_cv_search_strerror" >&6 3546 1.1 christos if test "$ac_cv_search_strerror" != no; then 3547 1.1 christos test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3548 1.1 christos 3549 1.1 christos fi 3550 1.1 christos 3551 1.1 christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3552 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 3553 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then 3554 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3555 1.1 christos else 3556 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3557 1.1 christos /* confdefs.h. */ 3558 1.1 christos _ACEOF 3559 1.1 christos cat confdefs.h >>conftest.$ac_ext 3560 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3561 1.1 christos /* end confdefs.h. */ 3562 1.1 christos #include <stdlib.h> 3563 1.1 christos #include <stdarg.h> 3564 1.1 christos #include <string.h> 3565 1.1 christos #include <float.h> 3566 1.1 christos 3567 1.1 christos int 3568 1.1 christos main () 3569 1.1 christos { 3570 1.1 christos 3571 1.1 christos ; 3572 1.1 christos return 0; 3573 1.1 christos } 3574 1.1 christos _ACEOF 3575 1.1 christos rm -f conftest.$ac_objext 3576 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3577 1.1 christos (eval $ac_compile) 2>conftest.er1 3578 1.1 christos ac_status=$? 3579 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3580 1.1 christos rm -f conftest.er1 3581 1.1 christos cat conftest.err >&5 3582 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3583 1.1 christos (exit $ac_status); } && 3584 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 3585 1.1 christos || test ! -s conftest.err' 3586 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3587 1.1 christos (eval $ac_try) 2>&5 3588 1.1 christos ac_status=$? 3589 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3590 1.1 christos (exit $ac_status); }; } && 3591 1.1 christos { ac_try='test -s conftest.$ac_objext' 3592 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3593 1.1 christos (eval $ac_try) 2>&5 3594 1.1 christos ac_status=$? 3595 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3596 1.1 christos (exit $ac_status); }; }; then 3597 1.1 christos ac_cv_header_stdc=yes 3598 1.1 christos else 3599 1.1 christos echo "$as_me: failed program was:" >&5 3600 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3601 1.1 christos 3602 1.1 christos ac_cv_header_stdc=no 3603 1.1 christos fi 3604 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3605 1.1 christos 3606 1.1 christos if test $ac_cv_header_stdc = yes; then 3607 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3608 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3609 1.1 christos /* confdefs.h. */ 3610 1.1 christos _ACEOF 3611 1.1 christos cat confdefs.h >>conftest.$ac_ext 3612 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3613 1.1 christos /* end confdefs.h. */ 3614 1.1 christos #include <string.h> 3615 1.1 christos 3616 1.1 christos _ACEOF 3617 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3618 1.1 christos $EGREP "memchr" >/dev/null 2>&1; then 3619 1.1 christos : 3620 1.1 christos else 3621 1.1 christos ac_cv_header_stdc=no 3622 1.1 christos fi 3623 1.1 christos rm -f conftest* 3624 1.1 christos 3625 1.1 christos fi 3626 1.1 christos 3627 1.1 christos if test $ac_cv_header_stdc = yes; then 3628 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3629 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3630 1.1 christos /* confdefs.h. */ 3631 1.1 christos _ACEOF 3632 1.1 christos cat confdefs.h >>conftest.$ac_ext 3633 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3634 1.1 christos /* end confdefs.h. */ 3635 1.1 christos #include <stdlib.h> 3636 1.1 christos 3637 1.1 christos _ACEOF 3638 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3639 1.1 christos $EGREP "free" >/dev/null 2>&1; then 3640 1.1 christos : 3641 1.1 christos else 3642 1.1 christos ac_cv_header_stdc=no 3643 1.1 christos fi 3644 1.1 christos rm -f conftest* 3645 1.1 christos 3646 1.1 christos fi 3647 1.1 christos 3648 1.1 christos if test $ac_cv_header_stdc = yes; then 3649 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3650 1.1 christos if test "$cross_compiling" = yes; then 3651 1.1 christos : 3652 1.1 christos else 3653 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3654 1.1 christos /* confdefs.h. */ 3655 1.1 christos _ACEOF 3656 1.1 christos cat confdefs.h >>conftest.$ac_ext 3657 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3658 1.1 christos /* end confdefs.h. */ 3659 1.1 christos #include <ctype.h> 3660 1.3 thorpej #include <stdlib.h> 3661 1.1 christos #if ((' ' & 0x0FF) == 0x020) 3662 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3663 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3664 1.1 christos #else 3665 1.1 christos # define ISLOWER(c) \ 3666 1.1 christos (('a' <= (c) && (c) <= 'i') \ 3667 1.1 christos || ('j' <= (c) && (c) <= 'r') \ 3668 1.1 christos || ('s' <= (c) && (c) <= 'z')) 3669 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3670 1.1 christos #endif 3671 1.1 christos 3672 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3673 1.1 christos int 3674 1.1 christos main () 3675 1.1 christos { 3676 1.1 christos int i; 3677 1.1 christos for (i = 0; i < 256; i++) 3678 1.1 christos if (XOR (islower (i), ISLOWER (i)) 3679 1.1 christos || toupper (i) != TOUPPER (i)) 3680 1.1 christos exit(2); 3681 1.1 christos exit (0); 3682 1.1 christos } 3683 1.1 christos _ACEOF 3684 1.1 christos rm -f conftest$ac_exeext 3685 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3686 1.1 christos (eval $ac_link) 2>&5 3687 1.1 christos ac_status=$? 3688 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3689 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3690 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3691 1.1 christos (eval $ac_try) 2>&5 3692 1.1 christos ac_status=$? 3693 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3694 1.1 christos (exit $ac_status); }; }; then 3695 1.1 christos : 3696 1.1 christos else 3697 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 3698 1.1 christos echo "$as_me: failed program was:" >&5 3699 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3700 1.1 christos 3701 1.1 christos ( exit $ac_status ) 3702 1.1 christos ac_cv_header_stdc=no 3703 1.1 christos fi 3704 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3705 1.1 christos fi 3706 1.1 christos fi 3707 1.1 christos fi 3708 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3709 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6 3710 1.1 christos if test $ac_cv_header_stdc = yes; then 3711 1.1 christos 3712 1.1 christos cat >>confdefs.h <<\_ACEOF 3713 1.1 christos #define STDC_HEADERS 1 3714 1.1 christos _ACEOF 3715 1.1 christos 3716 1.1 christos fi 3717 1.1 christos 3718 1.1 christos # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3719 1.1 christos 3720 1.1 christos 3721 1.1 christos 3722 1.1 christos 3723 1.1 christos 3724 1.1 christos 3725 1.1 christos 3726 1.1 christos 3727 1.1 christos 3728 1.1 christos for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3729 1.1 christos inttypes.h stdint.h unistd.h 3730 1.1 christos do 3731 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3732 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 3733 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3734 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 3735 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3736 1.1 christos else 3737 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3738 1.1 christos /* confdefs.h. */ 3739 1.1 christos _ACEOF 3740 1.1 christos cat confdefs.h >>conftest.$ac_ext 3741 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3742 1.1 christos /* end confdefs.h. */ 3743 1.1 christos $ac_includes_default 3744 1.1 christos 3745 1.1 christos #include <$ac_header> 3746 1.1 christos _ACEOF 3747 1.1 christos rm -f conftest.$ac_objext 3748 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3749 1.1 christos (eval $ac_compile) 2>conftest.er1 3750 1.1 christos ac_status=$? 3751 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3752 1.1 christos rm -f conftest.er1 3753 1.1 christos cat conftest.err >&5 3754 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3755 1.1 christos (exit $ac_status); } && 3756 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 3757 1.1 christos || test ! -s conftest.err' 3758 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3759 1.1 christos (eval $ac_try) 2>&5 3760 1.1 christos ac_status=$? 3761 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3762 1.1 christos (exit $ac_status); }; } && 3763 1.1 christos { ac_try='test -s conftest.$ac_objext' 3764 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3765 1.1 christos (eval $ac_try) 2>&5 3766 1.1 christos ac_status=$? 3767 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3768 1.1 christos (exit $ac_status); }; }; then 3769 1.1 christos eval "$as_ac_Header=yes" 3770 1.1 christos else 3771 1.1 christos echo "$as_me: failed program was:" >&5 3772 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3773 1.1 christos 3774 1.1 christos eval "$as_ac_Header=no" 3775 1.1 christos fi 3776 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3777 1.1 christos fi 3778 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3779 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3780 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 3781 1.1 christos cat >>confdefs.h <<_ACEOF 3782 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3783 1.1 christos _ACEOF 3784 1.1 christos 3785 1.1 christos fi 3786 1.1 christos 3787 1.1 christos done 3788 1.1 christos 3789 1.1 christos 3790 1.1 christos if test "${ac_cv_header_minix_config_h+set}" = set; then 3791 1.1 christos echo "$as_me:$LINENO: checking for minix/config.h" >&5 3792 1.1 christos echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3793 1.1 christos if test "${ac_cv_header_minix_config_h+set}" = set; then 3794 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3795 1.1 christos fi 3796 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3797 1.1 christos echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3798 1.1 christos else 3799 1.1 christos # Is the header compilable? 3800 1.1 christos echo "$as_me:$LINENO: checking minix/config.h usability" >&5 3801 1.1 christos echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 3802 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3803 1.1 christos /* confdefs.h. */ 3804 1.1 christos _ACEOF 3805 1.1 christos cat confdefs.h >>conftest.$ac_ext 3806 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3807 1.1 christos /* end confdefs.h. */ 3808 1.1 christos $ac_includes_default 3809 1.1 christos #include <minix/config.h> 3810 1.1 christos _ACEOF 3811 1.1 christos rm -f conftest.$ac_objext 3812 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3813 1.1 christos (eval $ac_compile) 2>conftest.er1 3814 1.1 christos ac_status=$? 3815 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3816 1.1 christos rm -f conftest.er1 3817 1.1 christos cat conftest.err >&5 3818 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3819 1.1 christos (exit $ac_status); } && 3820 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 3821 1.1 christos || test ! -s conftest.err' 3822 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3823 1.1 christos (eval $ac_try) 2>&5 3824 1.1 christos ac_status=$? 3825 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3826 1.1 christos (exit $ac_status); }; } && 3827 1.1 christos { ac_try='test -s conftest.$ac_objext' 3828 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3829 1.1 christos (eval $ac_try) 2>&5 3830 1.1 christos ac_status=$? 3831 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3832 1.1 christos (exit $ac_status); }; }; then 3833 1.1 christos ac_header_compiler=yes 3834 1.1 christos else 3835 1.1 christos echo "$as_me: failed program was:" >&5 3836 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3837 1.1 christos 3838 1.1 christos ac_header_compiler=no 3839 1.1 christos fi 3840 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3841 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3842 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 3843 1.1 christos 3844 1.1 christos # Is the header present? 3845 1.1 christos echo "$as_me:$LINENO: checking minix/config.h presence" >&5 3846 1.1 christos echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 3847 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3848 1.1 christos /* confdefs.h. */ 3849 1.1 christos _ACEOF 3850 1.1 christos cat confdefs.h >>conftest.$ac_ext 3851 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3852 1.1 christos /* end confdefs.h. */ 3853 1.1 christos #include <minix/config.h> 3854 1.1 christos _ACEOF 3855 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3856 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3857 1.1 christos ac_status=$? 3858 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 3859 1.1 christos rm -f conftest.er1 3860 1.1 christos cat conftest.err >&5 3861 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 3862 1.1 christos (exit $ac_status); } >/dev/null; then 3863 1.1 christos if test -s conftest.err; then 3864 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 3865 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3866 1.1 christos else 3867 1.1 christos ac_cpp_err= 3868 1.1 christos fi 3869 1.1 christos else 3870 1.1 christos ac_cpp_err=yes 3871 1.1 christos fi 3872 1.1 christos if test -z "$ac_cpp_err"; then 3873 1.1 christos ac_header_preproc=yes 3874 1.1 christos else 3875 1.1 christos echo "$as_me: failed program was:" >&5 3876 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 3877 1.1 christos 3878 1.1 christos ac_header_preproc=no 3879 1.1 christos fi 3880 1.1 christos rm -f conftest.err conftest.$ac_ext 3881 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3882 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 3883 1.1 christos 3884 1.1 christos # So? What about this header? 3885 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3886 1.1 christos yes:no: ) 3887 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 3888 1.1 christos echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3889 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 3890 1.1 christos echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} 3891 1.1 christos ac_header_preproc=yes 3892 1.1 christos ;; 3893 1.1 christos no:yes:* ) 3894 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 3895 1.1 christos echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} 3896 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 3897 1.1 christos echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} 3898 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 3899 1.1 christos echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} 3900 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 3901 1.1 christos echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} 3902 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 3903 1.1 christos echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} 3904 1.1 christos { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 3905 1.1 christos echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} 3906 1.1 christos ( 3907 1.1 christos cat <<\_ASBOX 3908 1.1 christos ## -------------------------------------- ## 3909 1.1 christos ## Report this to the GNU Texinfo lists. ## 3910 1.1 christos ## -------------------------------------- ## 3911 1.1 christos _ASBOX 3912 1.1 christos ) | 3913 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 3914 1.1 christos ;; 3915 1.1 christos esac 3916 1.1 christos echo "$as_me:$LINENO: checking for minix/config.h" >&5 3917 1.1 christos echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 3918 1.1 christos if test "${ac_cv_header_minix_config_h+set}" = set; then 3919 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3920 1.1 christos else 3921 1.1 christos ac_cv_header_minix_config_h=$ac_header_preproc 3922 1.1 christos fi 3923 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 3924 1.1 christos echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 3925 1.1 christos 3926 1.1 christos fi 3927 1.1 christos if test $ac_cv_header_minix_config_h = yes; then 3928 1.1 christos MINIX=yes 3929 1.1 christos else 3930 1.1 christos MINIX= 3931 1.1 christos fi 3932 1.1 christos 3933 1.1 christos 3934 1.1 christos if test "$MINIX" = yes; then 3935 1.1 christos 3936 1.1 christos cat >>confdefs.h <<\_ACEOF 3937 1.1 christos #define _POSIX_SOURCE 1 3938 1.1 christos _ACEOF 3939 1.1 christos 3940 1.1 christos 3941 1.1 christos cat >>confdefs.h <<\_ACEOF 3942 1.1 christos #define _POSIX_1_SOURCE 2 3943 1.1 christos _ACEOF 3944 1.1 christos 3945 1.1 christos 3946 1.1 christos cat >>confdefs.h <<\_ACEOF 3947 1.1 christos #define _MINIX 1 3948 1.1 christos _ACEOF 3949 1.1 christos 3950 1.1 christos fi 3951 1.1 christos 3952 1.1 christos 3953 1.1 christos # Needed on sysV68 for sigblock, sigsetmask. But check for it in libc first. 3954 1.1 christos echo "$as_me:$LINENO: checking for sigblock" >&5 3955 1.1 christos echo $ECHO_N "checking for sigblock... $ECHO_C" >&6 3956 1.1 christos if test "${ac_cv_func_sigblock+set}" = set; then 3957 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 3958 1.1 christos else 3959 1.1 christos cat >conftest.$ac_ext <<_ACEOF 3960 1.1 christos /* confdefs.h. */ 3961 1.1 christos _ACEOF 3962 1.1 christos cat confdefs.h >>conftest.$ac_ext 3963 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 3964 1.1 christos /* end confdefs.h. */ 3965 1.1 christos /* Define sigblock to an innocuous variant, in case <limits.h> declares sigblock. 3966 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3967 1.1 christos #define sigblock innocuous_sigblock 3968 1.1 christos 3969 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 3970 1.1 christos which can conflict with char sigblock (); below. 3971 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3972 1.1 christos <limits.h> exists even on freestanding compilers. */ 3973 1.1 christos 3974 1.1 christos #ifdef __STDC__ 3975 1.1 christos # include <limits.h> 3976 1.1 christos #else 3977 1.1 christos # include <assert.h> 3978 1.1 christos #endif 3979 1.1 christos 3980 1.1 christos #undef sigblock 3981 1.1 christos 3982 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 3983 1.1 christos #ifdef __cplusplus 3984 1.1 christos extern "C" 3985 1.1 christos { 3986 1.1 christos #endif 3987 1.1 christos /* We use char because int might match the return type of a gcc2 3988 1.1 christos builtin and then its argument prototype would still apply. */ 3989 1.1 christos char sigblock (); 3990 1.1 christos /* The GNU C library defines this for functions which it implements 3991 1.1 christos to always fail with ENOSYS. Some functions are actually named 3992 1.1 christos something starting with __ and the normal name is an alias. */ 3993 1.1 christos #if defined (__stub_sigblock) || defined (__stub___sigblock) 3994 1.1 christos choke me 3995 1.1 christos #else 3996 1.1 christos char (*f) () = sigblock; 3997 1.1 christos #endif 3998 1.1 christos #ifdef __cplusplus 3999 1.1 christos } 4000 1.1 christos #endif 4001 1.1 christos 4002 1.1 christos int 4003 1.1 christos main () 4004 1.1 christos { 4005 1.1 christos return f != sigblock; 4006 1.1 christos ; 4007 1.1 christos return 0; 4008 1.1 christos } 4009 1.1 christos _ACEOF 4010 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 4011 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4012 1.1 christos (eval $ac_link) 2>conftest.er1 4013 1.1 christos ac_status=$? 4014 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4015 1.1 christos rm -f conftest.er1 4016 1.1 christos cat conftest.err >&5 4017 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4018 1.1 christos (exit $ac_status); } && 4019 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4020 1.1 christos || test ! -s conftest.err' 4021 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4022 1.1 christos (eval $ac_try) 2>&5 4023 1.1 christos ac_status=$? 4024 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4025 1.1 christos (exit $ac_status); }; } && 4026 1.1 christos { ac_try='test -s conftest$ac_exeext' 4027 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4028 1.1 christos (eval $ac_try) 2>&5 4029 1.1 christos ac_status=$? 4030 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4031 1.1 christos (exit $ac_status); }; }; then 4032 1.1 christos ac_cv_func_sigblock=yes 4033 1.1 christos else 4034 1.1 christos echo "$as_me: failed program was:" >&5 4035 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4036 1.1 christos 4037 1.1 christos ac_cv_func_sigblock=no 4038 1.1 christos fi 4039 1.1 christos rm -f conftest.err conftest.$ac_objext \ 4040 1.1 christos conftest$ac_exeext conftest.$ac_ext 4041 1.1 christos fi 4042 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_sigblock" >&5 4043 1.1 christos echo "${ECHO_T}$ac_cv_func_sigblock" >&6 4044 1.1 christos if test $ac_cv_func_sigblock = yes; then 4045 1.1 christos : 4046 1.1 christos else 4047 1.1 christos 4048 1.1 christos echo "$as_me:$LINENO: checking for sigblock in -lbsd" >&5 4049 1.1 christos echo $ECHO_N "checking for sigblock in -lbsd... $ECHO_C" >&6 4050 1.1 christos if test "${ac_cv_lib_bsd_sigblock+set}" = set; then 4051 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4052 1.1 christos else 4053 1.1 christos ac_check_lib_save_LIBS=$LIBS 4054 1.1 christos LIBS="-lbsd $LIBS" 4055 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4056 1.1 christos /* confdefs.h. */ 4057 1.1 christos _ACEOF 4058 1.1 christos cat confdefs.h >>conftest.$ac_ext 4059 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4060 1.1 christos /* end confdefs.h. */ 4061 1.1 christos 4062 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 4063 1.1 christos #ifdef __cplusplus 4064 1.1 christos extern "C" 4065 1.1 christos #endif 4066 1.1 christos /* We use char because int might match the return type of a gcc2 4067 1.1 christos builtin and then its argument prototype would still apply. */ 4068 1.1 christos char sigblock (); 4069 1.1 christos int 4070 1.1 christos main () 4071 1.1 christos { 4072 1.1 christos sigblock (); 4073 1.1 christos ; 4074 1.1 christos return 0; 4075 1.1 christos } 4076 1.1 christos _ACEOF 4077 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 4078 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4079 1.1 christos (eval $ac_link) 2>conftest.er1 4080 1.1 christos ac_status=$? 4081 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4082 1.1 christos rm -f conftest.er1 4083 1.1 christos cat conftest.err >&5 4084 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4085 1.1 christos (exit $ac_status); } && 4086 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4087 1.1 christos || test ! -s conftest.err' 4088 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4089 1.1 christos (eval $ac_try) 2>&5 4090 1.1 christos ac_status=$? 4091 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4092 1.1 christos (exit $ac_status); }; } && 4093 1.1 christos { ac_try='test -s conftest$ac_exeext' 4094 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4095 1.1 christos (eval $ac_try) 2>&5 4096 1.1 christos ac_status=$? 4097 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4098 1.1 christos (exit $ac_status); }; }; then 4099 1.1 christos ac_cv_lib_bsd_sigblock=yes 4100 1.1 christos else 4101 1.1 christos echo "$as_me: failed program was:" >&5 4102 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4103 1.1 christos 4104 1.1 christos ac_cv_lib_bsd_sigblock=no 4105 1.1 christos fi 4106 1.1 christos rm -f conftest.err conftest.$ac_objext \ 4107 1.1 christos conftest$ac_exeext conftest.$ac_ext 4108 1.1 christos LIBS=$ac_check_lib_save_LIBS 4109 1.1 christos fi 4110 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_sigblock" >&5 4111 1.1 christos echo "${ECHO_T}$ac_cv_lib_bsd_sigblock" >&6 4112 1.1 christos if test $ac_cv_lib_bsd_sigblock = yes; then 4113 1.1 christos cat >>confdefs.h <<_ACEOF 4114 1.1 christos #define HAVE_LIBBSD 1 4115 1.1 christos _ACEOF 4116 1.1 christos 4117 1.1 christos LIBS="-lbsd $LIBS" 4118 1.1 christos 4119 1.1 christos fi 4120 1.1 christos 4121 1.1 christos fi 4122 1.1 christos 4123 1.1 christos 4124 1.1 christos # Checks for header files. 4125 1.1 christos echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 4126 1.1 christos echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 4127 1.1 christos if test "${ac_cv_header_stat_broken+set}" = set; then 4128 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4129 1.1 christos else 4130 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4131 1.1 christos /* confdefs.h. */ 4132 1.1 christos _ACEOF 4133 1.1 christos cat confdefs.h >>conftest.$ac_ext 4134 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4135 1.1 christos /* end confdefs.h. */ 4136 1.1 christos #include <sys/types.h> 4137 1.1 christos #include <sys/stat.h> 4138 1.1 christos 4139 1.1 christos #if defined(S_ISBLK) && defined(S_IFDIR) 4140 1.1 christos # if S_ISBLK (S_IFDIR) 4141 1.1 christos You lose. 4142 1.1 christos # endif 4143 1.1 christos #endif 4144 1.1 christos 4145 1.1 christos #if defined(S_ISBLK) && defined(S_IFCHR) 4146 1.1 christos # if S_ISBLK (S_IFCHR) 4147 1.1 christos You lose. 4148 1.1 christos # endif 4149 1.1 christos #endif 4150 1.1 christos 4151 1.1 christos #if defined(S_ISLNK) && defined(S_IFREG) 4152 1.1 christos # if S_ISLNK (S_IFREG) 4153 1.1 christos You lose. 4154 1.1 christos # endif 4155 1.1 christos #endif 4156 1.1 christos 4157 1.1 christos #if defined(S_ISSOCK) && defined(S_IFREG) 4158 1.1 christos # if S_ISSOCK (S_IFREG) 4159 1.1 christos You lose. 4160 1.1 christos # endif 4161 1.1 christos #endif 4162 1.1 christos 4163 1.1 christos _ACEOF 4164 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4165 1.1 christos $EGREP "You lose" >/dev/null 2>&1; then 4166 1.1 christos ac_cv_header_stat_broken=yes 4167 1.1 christos else 4168 1.1 christos ac_cv_header_stat_broken=no 4169 1.1 christos fi 4170 1.1 christos rm -f conftest* 4171 1.1 christos 4172 1.1 christos fi 4173 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 4174 1.1 christos echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 4175 1.1 christos if test $ac_cv_header_stat_broken = yes; then 4176 1.1 christos 4177 1.1 christos cat >>confdefs.h <<\_ACEOF 4178 1.1 christos #define STAT_MACROS_BROKEN 1 4179 1.1 christos _ACEOF 4180 1.1 christos 4181 1.1 christos fi 4182 1.1 christos 4183 1.1 christos echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4184 1.1 christos echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4185 1.1 christos if test "${ac_cv_header_stdc+set}" = set; then 4186 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4187 1.1 christos else 4188 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4189 1.1 christos /* confdefs.h. */ 4190 1.1 christos _ACEOF 4191 1.1 christos cat confdefs.h >>conftest.$ac_ext 4192 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4193 1.1 christos /* end confdefs.h. */ 4194 1.1 christos #include <stdlib.h> 4195 1.1 christos #include <stdarg.h> 4196 1.1 christos #include <string.h> 4197 1.1 christos #include <float.h> 4198 1.1 christos 4199 1.1 christos int 4200 1.1 christos main () 4201 1.1 christos { 4202 1.1 christos 4203 1.1 christos ; 4204 1.1 christos return 0; 4205 1.1 christos } 4206 1.1 christos _ACEOF 4207 1.1 christos rm -f conftest.$ac_objext 4208 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4209 1.1 christos (eval $ac_compile) 2>conftest.er1 4210 1.1 christos ac_status=$? 4211 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4212 1.1 christos rm -f conftest.er1 4213 1.1 christos cat conftest.err >&5 4214 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4215 1.1 christos (exit $ac_status); } && 4216 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4217 1.1 christos || test ! -s conftest.err' 4218 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4219 1.1 christos (eval $ac_try) 2>&5 4220 1.1 christos ac_status=$? 4221 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4222 1.1 christos (exit $ac_status); }; } && 4223 1.1 christos { ac_try='test -s conftest.$ac_objext' 4224 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4225 1.1 christos (eval $ac_try) 2>&5 4226 1.1 christos ac_status=$? 4227 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4228 1.1 christos (exit $ac_status); }; }; then 4229 1.1 christos ac_cv_header_stdc=yes 4230 1.1 christos else 4231 1.1 christos echo "$as_me: failed program was:" >&5 4232 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4233 1.1 christos 4234 1.1 christos ac_cv_header_stdc=no 4235 1.1 christos fi 4236 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4237 1.1 christos 4238 1.1 christos if test $ac_cv_header_stdc = yes; then 4239 1.1 christos # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4240 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4241 1.1 christos /* confdefs.h. */ 4242 1.1 christos _ACEOF 4243 1.1 christos cat confdefs.h >>conftest.$ac_ext 4244 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4245 1.1 christos /* end confdefs.h. */ 4246 1.1 christos #include <string.h> 4247 1.1 christos 4248 1.1 christos _ACEOF 4249 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4250 1.1 christos $EGREP "memchr" >/dev/null 2>&1; then 4251 1.1 christos : 4252 1.1 christos else 4253 1.1 christos ac_cv_header_stdc=no 4254 1.1 christos fi 4255 1.1 christos rm -f conftest* 4256 1.1 christos 4257 1.1 christos fi 4258 1.1 christos 4259 1.1 christos if test $ac_cv_header_stdc = yes; then 4260 1.1 christos # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4261 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4262 1.1 christos /* confdefs.h. */ 4263 1.1 christos _ACEOF 4264 1.1 christos cat confdefs.h >>conftest.$ac_ext 4265 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4266 1.1 christos /* end confdefs.h. */ 4267 1.1 christos #include <stdlib.h> 4268 1.1 christos 4269 1.1 christos _ACEOF 4270 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4271 1.1 christos $EGREP "free" >/dev/null 2>&1; then 4272 1.1 christos : 4273 1.1 christos else 4274 1.1 christos ac_cv_header_stdc=no 4275 1.1 christos fi 4276 1.1 christos rm -f conftest* 4277 1.1 christos 4278 1.1 christos fi 4279 1.1 christos 4280 1.1 christos if test $ac_cv_header_stdc = yes; then 4281 1.1 christos # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4282 1.1 christos if test "$cross_compiling" = yes; then 4283 1.1 christos : 4284 1.1 christos else 4285 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4286 1.1 christos /* confdefs.h. */ 4287 1.1 christos _ACEOF 4288 1.1 christos cat confdefs.h >>conftest.$ac_ext 4289 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4290 1.1 christos /* end confdefs.h. */ 4291 1.1 christos #include <ctype.h> 4292 1.1 christos #if ((' ' & 0x0FF) == 0x020) 4293 1.1 christos # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4294 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4295 1.1 christos #else 4296 1.1 christos # define ISLOWER(c) \ 4297 1.1 christos (('a' <= (c) && (c) <= 'i') \ 4298 1.1 christos || ('j' <= (c) && (c) <= 'r') \ 4299 1.1 christos || ('s' <= (c) && (c) <= 'z')) 4300 1.1 christos # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4301 1.1 christos #endif 4302 1.1 christos 4303 1.1 christos #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4304 1.1 christos int 4305 1.1 christos main () 4306 1.1 christos { 4307 1.1 christos int i; 4308 1.1 christos for (i = 0; i < 256; i++) 4309 1.1 christos if (XOR (islower (i), ISLOWER (i)) 4310 1.1 christos || toupper (i) != TOUPPER (i)) 4311 1.1 christos exit(2); 4312 1.1 christos exit (0); 4313 1.1 christos } 4314 1.1 christos _ACEOF 4315 1.1 christos rm -f conftest$ac_exeext 4316 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4317 1.1 christos (eval $ac_link) 2>&5 4318 1.1 christos ac_status=$? 4319 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4320 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4321 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4322 1.1 christos (eval $ac_try) 2>&5 4323 1.1 christos ac_status=$? 4324 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4325 1.1 christos (exit $ac_status); }; }; then 4326 1.1 christos : 4327 1.1 christos else 4328 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 4329 1.1 christos echo "$as_me: failed program was:" >&5 4330 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4331 1.1 christos 4332 1.1 christos ( exit $ac_status ) 4333 1.1 christos ac_cv_header_stdc=no 4334 1.1 christos fi 4335 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4336 1.1 christos fi 4337 1.1 christos fi 4338 1.1 christos fi 4339 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4340 1.1 christos echo "${ECHO_T}$ac_cv_header_stdc" >&6 4341 1.1 christos if test $ac_cv_header_stdc = yes; then 4342 1.1 christos 4343 1.1 christos cat >>confdefs.h <<\_ACEOF 4344 1.1 christos #define STDC_HEADERS 1 4345 1.1 christos _ACEOF 4346 1.1 christos 4347 1.1 christos fi 4348 1.1 christos 4349 1.1 christos 4350 1.1 christos 4351 1.1 christos 4352 1.1 christos 4353 1.1 christos 4354 1.1 christos 4355 1.1 christos 4356 1.1 christos 4357 1.1 christos 4358 1.1 christos 4359 1.1 christos 4360 1.1 christos 4361 1.1 christos 4362 1.1 christos 4363 1.1 christos 4364 1.1 christos 4365 1.1 christos for ac_header in fcntl.h io.h limits.h pwd.h string.h strings.h \ 4366 1.1 christos termcap.h termio.h termios.h unistd.h \ 4367 1.1 christos sys/fcntl.h sys/file.h sys/stream.h sys/time.h sys/ttold.h sys/wait.h 4368 1.1 christos do 4369 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4370 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4371 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4372 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4373 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4374 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4375 1.1 christos fi 4376 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4377 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4378 1.1 christos else 4379 1.1 christos # Is the header compilable? 4380 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 4381 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4382 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4383 1.1 christos /* confdefs.h. */ 4384 1.1 christos _ACEOF 4385 1.1 christos cat confdefs.h >>conftest.$ac_ext 4386 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4387 1.1 christos /* end confdefs.h. */ 4388 1.1 christos $ac_includes_default 4389 1.1 christos #include <$ac_header> 4390 1.1 christos _ACEOF 4391 1.1 christos rm -f conftest.$ac_objext 4392 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4393 1.1 christos (eval $ac_compile) 2>conftest.er1 4394 1.1 christos ac_status=$? 4395 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4396 1.1 christos rm -f conftest.er1 4397 1.1 christos cat conftest.err >&5 4398 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4399 1.1 christos (exit $ac_status); } && 4400 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4401 1.1 christos || test ! -s conftest.err' 4402 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4403 1.1 christos (eval $ac_try) 2>&5 4404 1.1 christos ac_status=$? 4405 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4406 1.1 christos (exit $ac_status); }; } && 4407 1.1 christos { ac_try='test -s conftest.$ac_objext' 4408 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4409 1.1 christos (eval $ac_try) 2>&5 4410 1.1 christos ac_status=$? 4411 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4412 1.1 christos (exit $ac_status); }; }; then 4413 1.1 christos ac_header_compiler=yes 4414 1.1 christos else 4415 1.1 christos echo "$as_me: failed program was:" >&5 4416 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4417 1.1 christos 4418 1.1 christos ac_header_compiler=no 4419 1.1 christos fi 4420 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4421 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4422 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 4423 1.1 christos 4424 1.1 christos # Is the header present? 4425 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 4426 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4427 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4428 1.1 christos /* confdefs.h. */ 4429 1.1 christos _ACEOF 4430 1.1 christos cat confdefs.h >>conftest.$ac_ext 4431 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4432 1.1 christos /* end confdefs.h. */ 4433 1.1 christos #include <$ac_header> 4434 1.1 christos _ACEOF 4435 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4436 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4437 1.1 christos ac_status=$? 4438 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4439 1.1 christos rm -f conftest.er1 4440 1.1 christos cat conftest.err >&5 4441 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4442 1.1 christos (exit $ac_status); } >/dev/null; then 4443 1.1 christos if test -s conftest.err; then 4444 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 4445 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4446 1.1 christos else 4447 1.1 christos ac_cpp_err= 4448 1.1 christos fi 4449 1.1 christos else 4450 1.1 christos ac_cpp_err=yes 4451 1.1 christos fi 4452 1.1 christos if test -z "$ac_cpp_err"; then 4453 1.1 christos ac_header_preproc=yes 4454 1.1 christos else 4455 1.1 christos echo "$as_me: failed program was:" >&5 4456 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4457 1.1 christos 4458 1.1 christos ac_header_preproc=no 4459 1.1 christos fi 4460 1.1 christos rm -f conftest.err conftest.$ac_ext 4461 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4462 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 4463 1.1 christos 4464 1.1 christos # So? What about this header? 4465 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4466 1.1 christos yes:no: ) 4467 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4468 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4469 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4470 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4471 1.1 christos ac_header_preproc=yes 4472 1.1 christos ;; 4473 1.1 christos no:yes:* ) 4474 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4475 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4476 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4477 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4478 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4479 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4480 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4481 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4482 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4483 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4484 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4485 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4486 1.1 christos ( 4487 1.1 christos cat <<\_ASBOX 4488 1.1 christos ## -------------------------------------- ## 4489 1.1 christos ## Report this to the GNU Texinfo lists. ## 4490 1.1 christos ## -------------------------------------- ## 4491 1.1 christos _ASBOX 4492 1.1 christos ) | 4493 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 4494 1.1 christos ;; 4495 1.1 christos esac 4496 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4497 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4498 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4499 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4500 1.1 christos else 4501 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 4502 1.1 christos fi 4503 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4504 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4505 1.1 christos 4506 1.1 christos fi 4507 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 4508 1.1 christos cat >>confdefs.h <<_ACEOF 4509 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4510 1.1 christos _ACEOF 4511 1.1 christos 4512 1.1 christos fi 4513 1.1 christos 4514 1.1 christos done 4515 1.1 christos 4516 1.1 christos 4517 1.1 christos # sys/ptem.h requires sys/stream.h for mblk_t on Solaris. 4518 1.1 christos 4519 1.1 christos for ac_header in sys/ptem.h 4520 1.1 christos do 4521 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4522 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 4523 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4524 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 4525 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4526 1.1 christos else 4527 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4528 1.1 christos /* confdefs.h. */ 4529 1.1 christos _ACEOF 4530 1.1 christos cat confdefs.h >>conftest.$ac_ext 4531 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4532 1.1 christos /* end confdefs.h. */ 4533 1.1 christos #if HAVE_SYS_STREAM_H 4534 1.1 christos #include <sys/stream.h> 4535 1.1 christos #endif 4536 1.1 christos 4537 1.1 christos 4538 1.1 christos #include <$ac_header> 4539 1.1 christos _ACEOF 4540 1.1 christos rm -f conftest.$ac_objext 4541 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4542 1.1 christos (eval $ac_compile) 2>conftest.er1 4543 1.1 christos ac_status=$? 4544 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4545 1.1 christos rm -f conftest.er1 4546 1.1 christos cat conftest.err >&5 4547 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4548 1.1 christos (exit $ac_status); } && 4549 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4550 1.1 christos || test ! -s conftest.err' 4551 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4552 1.1 christos (eval $ac_try) 2>&5 4553 1.1 christos ac_status=$? 4554 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4555 1.1 christos (exit $ac_status); }; } && 4556 1.1 christos { ac_try='test -s conftest.$ac_objext' 4557 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4558 1.1 christos (eval $ac_try) 2>&5 4559 1.1 christos ac_status=$? 4560 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 1.1 christos (exit $ac_status); }; }; then 4562 1.1 christos eval "$as_ac_Header=yes" 4563 1.1 christos else 4564 1.1 christos echo "$as_me: failed program was:" >&5 4565 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4566 1.1 christos 4567 1.1 christos eval "$as_ac_Header=no" 4568 1.1 christos fi 4569 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4570 1.1 christos fi 4571 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4572 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4573 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 4574 1.1 christos cat >>confdefs.h <<_ACEOF 4575 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4576 1.1 christos _ACEOF 4577 1.1 christos 4578 1.1 christos fi 4579 1.1 christos 4580 1.1 christos done 4581 1.1 christos 4582 1.1 christos 4583 1.1 christos echo "$as_me:$LINENO: checking POSIX termios" >&5 4584 1.1 christos echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6 4585 1.1 christos if test "${ac_cv_sys_posix_termios+set}" = set; then 4586 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4587 1.1 christos else 4588 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4589 1.1 christos /* confdefs.h. */ 4590 1.1 christos _ACEOF 4591 1.1 christos cat confdefs.h >>conftest.$ac_ext 4592 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4593 1.1 christos /* end confdefs.h. */ 4594 1.1 christos #include <sys/types.h> 4595 1.1 christos #include <unistd.h> 4596 1.1 christos #include <termios.h> 4597 1.1 christos 4598 1.1 christos int 4599 1.1 christos main () 4600 1.1 christos { 4601 1.1 christos /* SunOS 4.0.3 has termios.h but not the library calls. */ 4602 1.1 christos tcgetattr(0, 0); 4603 1.1 christos ; 4604 1.1 christos return 0; 4605 1.1 christos } 4606 1.1 christos _ACEOF 4607 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 4608 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4609 1.1 christos (eval $ac_link) 2>conftest.er1 4610 1.1 christos ac_status=$? 4611 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4612 1.1 christos rm -f conftest.er1 4613 1.1 christos cat conftest.err >&5 4614 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4615 1.1 christos (exit $ac_status); } && 4616 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4617 1.1 christos || test ! -s conftest.err' 4618 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4619 1.1 christos (eval $ac_try) 2>&5 4620 1.1 christos ac_status=$? 4621 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4622 1.1 christos (exit $ac_status); }; } && 4623 1.1 christos { ac_try='test -s conftest$ac_exeext' 4624 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4625 1.1 christos (eval $ac_try) 2>&5 4626 1.1 christos ac_status=$? 4627 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4628 1.1 christos (exit $ac_status); }; }; then 4629 1.1 christos ac_cv_sys_posix_termios=yes 4630 1.1 christos else 4631 1.1 christos echo "$as_me: failed program was:" >&5 4632 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4633 1.1 christos 4634 1.1 christos ac_cv_sys_posix_termios=no 4635 1.1 christos fi 4636 1.1 christos rm -f conftest.err conftest.$ac_objext \ 4637 1.1 christos conftest$ac_exeext conftest.$ac_ext 4638 1.1 christos fi 4639 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5 4640 1.1 christos echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6 4641 1.1 christos 4642 1.1 christos echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 4643 1.1 christos echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6 4644 1.1 christos if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then 4645 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4646 1.1 christos else 4647 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4648 1.1 christos /* confdefs.h. */ 4649 1.1 christos _ACEOF 4650 1.1 christos cat confdefs.h >>conftest.$ac_ext 4651 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4652 1.1 christos /* end confdefs.h. */ 4653 1.1 christos #include <sys/types.h> 4654 1.1 christos #include <termios.h> 4655 1.1 christos #ifdef TIOCGWINSZ 4656 1.1 christos yes 4657 1.1 christos #endif 4658 1.1 christos 4659 1.1 christos _ACEOF 4660 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4661 1.1 christos $EGREP "yes" >/dev/null 2>&1; then 4662 1.1 christos ac_cv_sys_tiocgwinsz_in_termios_h=yes 4663 1.1 christos else 4664 1.1 christos ac_cv_sys_tiocgwinsz_in_termios_h=no 4665 1.1 christos fi 4666 1.1 christos rm -f conftest* 4667 1.1 christos 4668 1.1 christos fi 4669 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 4670 1.1 christos echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6 4671 1.1 christos 4672 1.1 christos if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then 4673 1.1 christos echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 4674 1.1 christos echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6 4675 1.1 christos if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then 4676 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4677 1.1 christos else 4678 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4679 1.1 christos /* confdefs.h. */ 4680 1.1 christos _ACEOF 4681 1.1 christos cat confdefs.h >>conftest.$ac_ext 4682 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4683 1.1 christos /* end confdefs.h. */ 4684 1.1 christos #include <sys/types.h> 4685 1.1 christos #include <sys/ioctl.h> 4686 1.1 christos #ifdef TIOCGWINSZ 4687 1.1 christos yes 4688 1.1 christos #endif 4689 1.1 christos 4690 1.1 christos _ACEOF 4691 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4692 1.1 christos $EGREP "yes" >/dev/null 2>&1; then 4693 1.1 christos ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes 4694 1.1 christos else 4695 1.1 christos ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no 4696 1.1 christos fi 4697 1.1 christos rm -f conftest* 4698 1.1 christos 4699 1.1 christos fi 4700 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 4701 1.1 christos echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6 4702 1.1 christos 4703 1.1 christos if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then 4704 1.1 christos 4705 1.1 christos cat >>confdefs.h <<\_ACEOF 4706 1.1 christos #define GWINSZ_IN_SYS_IOCTL 1 4707 1.1 christos _ACEOF 4708 1.1 christos 4709 1.1 christos fi 4710 1.1 christos fi 4711 1.1 christos 4712 1.1 christos 4713 1.1 christos # Checks for typedefs, structures, and compiler characteristics. 4714 1.1 christos echo "$as_me:$LINENO: checking for off_t" >&5 4715 1.1 christos echo $ECHO_N "checking for off_t... $ECHO_C" >&6 4716 1.1 christos if test "${ac_cv_type_off_t+set}" = set; then 4717 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4718 1.1 christos else 4719 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4720 1.1 christos /* confdefs.h. */ 4721 1.1 christos _ACEOF 4722 1.1 christos cat confdefs.h >>conftest.$ac_ext 4723 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4724 1.1 christos /* end confdefs.h. */ 4725 1.1 christos $ac_includes_default 4726 1.1 christos int 4727 1.1 christos main () 4728 1.1 christos { 4729 1.1 christos if ((off_t *) 0) 4730 1.1 christos return 0; 4731 1.1 christos if (sizeof (off_t)) 4732 1.1 christos return 0; 4733 1.1 christos ; 4734 1.1 christos return 0; 4735 1.1 christos } 4736 1.1 christos _ACEOF 4737 1.1 christos rm -f conftest.$ac_objext 4738 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4739 1.1 christos (eval $ac_compile) 2>conftest.er1 4740 1.1 christos ac_status=$? 4741 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4742 1.1 christos rm -f conftest.er1 4743 1.1 christos cat conftest.err >&5 4744 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4745 1.1 christos (exit $ac_status); } && 4746 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4747 1.1 christos || test ! -s conftest.err' 4748 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4749 1.1 christos (eval $ac_try) 2>&5 4750 1.1 christos ac_status=$? 4751 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 1.1 christos (exit $ac_status); }; } && 4753 1.1 christos { ac_try='test -s conftest.$ac_objext' 4754 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4755 1.1 christos (eval $ac_try) 2>&5 4756 1.1 christos ac_status=$? 4757 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4758 1.1 christos (exit $ac_status); }; }; then 4759 1.1 christos ac_cv_type_off_t=yes 4760 1.1 christos else 4761 1.1 christos echo "$as_me: failed program was:" >&5 4762 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4763 1.1 christos 4764 1.1 christos ac_cv_type_off_t=no 4765 1.1 christos fi 4766 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4767 1.1 christos fi 4768 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 4769 1.1 christos echo "${ECHO_T}$ac_cv_type_off_t" >&6 4770 1.1 christos if test $ac_cv_type_off_t = yes; then 4771 1.1 christos : 4772 1.1 christos else 4773 1.1 christos 4774 1.1 christos cat >>confdefs.h <<_ACEOF 4775 1.1 christos #define off_t long 4776 1.1 christos _ACEOF 4777 1.1 christos 4778 1.1 christos fi 4779 1.1 christos 4780 1.1 christos echo "$as_me:$LINENO: checking return type of signal handlers" >&5 4781 1.1 christos echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 4782 1.1 christos if test "${ac_cv_type_signal+set}" = set; then 4783 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4784 1.1 christos else 4785 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4786 1.1 christos /* confdefs.h. */ 4787 1.1 christos _ACEOF 4788 1.1 christos cat confdefs.h >>conftest.$ac_ext 4789 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4790 1.1 christos /* end confdefs.h. */ 4791 1.1 christos #include <sys/types.h> 4792 1.1 christos #include <signal.h> 4793 1.1 christos #ifdef signal 4794 1.1 christos # undef signal 4795 1.1 christos #endif 4796 1.1 christos #ifdef __cplusplus 4797 1.1 christos extern "C" void (*signal (int, void (*)(int)))(int); 4798 1.1 christos #else 4799 1.1 christos void (*signal ()) (); 4800 1.1 christos #endif 4801 1.1 christos 4802 1.1 christos int 4803 1.1 christos main () 4804 1.1 christos { 4805 1.1 christos int i; 4806 1.1 christos ; 4807 1.1 christos return 0; 4808 1.1 christos } 4809 1.1 christos _ACEOF 4810 1.1 christos rm -f conftest.$ac_objext 4811 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4812 1.1 christos (eval $ac_compile) 2>conftest.er1 4813 1.1 christos ac_status=$? 4814 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4815 1.1 christos rm -f conftest.er1 4816 1.1 christos cat conftest.err >&5 4817 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4818 1.1 christos (exit $ac_status); } && 4819 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4820 1.1 christos || test ! -s conftest.err' 4821 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4822 1.1 christos (eval $ac_try) 2>&5 4823 1.1 christos ac_status=$? 4824 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4825 1.1 christos (exit $ac_status); }; } && 4826 1.1 christos { ac_try='test -s conftest.$ac_objext' 4827 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4828 1.1 christos (eval $ac_try) 2>&5 4829 1.1 christos ac_status=$? 4830 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4831 1.1 christos (exit $ac_status); }; }; then 4832 1.1 christos ac_cv_type_signal=void 4833 1.1 christos else 4834 1.1 christos echo "$as_me: failed program was:" >&5 4835 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4836 1.1 christos 4837 1.1 christos ac_cv_type_signal=int 4838 1.1 christos fi 4839 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4840 1.1 christos fi 4841 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 4842 1.1 christos echo "${ECHO_T}$ac_cv_type_signal" >&6 4843 1.1 christos 4844 1.1 christos cat >>confdefs.h <<_ACEOF 4845 1.1 christos #define RETSIGTYPE $ac_cv_type_signal 4846 1.1 christos _ACEOF 4847 1.1 christos 4848 1.1 christos 4849 1.1 christos echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 4850 1.1 christos echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 4851 1.1 christos if test "${ac_cv_c_const+set}" = set; then 4852 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4853 1.1 christos else 4854 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4855 1.1 christos /* confdefs.h. */ 4856 1.1 christos _ACEOF 4857 1.1 christos cat confdefs.h >>conftest.$ac_ext 4858 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4859 1.1 christos /* end confdefs.h. */ 4860 1.1 christos 4861 1.1 christos int 4862 1.1 christos main () 4863 1.1 christos { 4864 1.1 christos /* FIXME: Include the comments suggested by Paul. */ 4865 1.1 christos #ifndef __cplusplus 4866 1.1 christos /* Ultrix mips cc rejects this. */ 4867 1.1 christos typedef int charset[2]; 4868 1.1 christos const charset x; 4869 1.1 christos /* SunOS 4.1.1 cc rejects this. */ 4870 1.1 christos char const *const *ccp; 4871 1.1 christos char **p; 4872 1.1 christos /* NEC SVR4.0.2 mips cc rejects this. */ 4873 1.1 christos struct point {int x, y;}; 4874 1.1 christos static struct point const zero = {0,0}; 4875 1.1 christos /* AIX XL C 1.02.0.0 rejects this. 4876 1.1 christos It does not let you subtract one const X* pointer from another in 4877 1.1 christos an arm of an if-expression whose if-part is not a constant 4878 1.1 christos expression */ 4879 1.1 christos const char *g = "string"; 4880 1.1 christos ccp = &g + (g ? g-g : 0); 4881 1.1 christos /* HPUX 7.0 cc rejects these. */ 4882 1.1 christos ++ccp; 4883 1.1 christos p = (char**) ccp; 4884 1.1 christos ccp = (char const *const *) p; 4885 1.1 christos { /* SCO 3.2v4 cc rejects this. */ 4886 1.1 christos char *t; 4887 1.1 christos char const *s = 0 ? (char *) 0 : (char const *) 0; 4888 1.1 christos 4889 1.1 christos *t++ = 0; 4890 1.1 christos } 4891 1.1 christos { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4892 1.1 christos int x[] = {25, 17}; 4893 1.1 christos const int *foo = &x[0]; 4894 1.1 christos ++foo; 4895 1.1 christos } 4896 1.1 christos { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4897 1.1 christos typedef const int *iptr; 4898 1.1 christos iptr p = 0; 4899 1.1 christos ++p; 4900 1.1 christos } 4901 1.1 christos { /* AIX XL C 1.02.0.0 rejects this saying 4902 1.1 christos "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4903 1.1 christos struct s { int j; const int *ap[3]; }; 4904 1.1 christos struct s *b; b->j = 5; 4905 1.1 christos } 4906 1.1 christos { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4907 1.1 christos const int foo = 10; 4908 1.1 christos } 4909 1.1 christos #endif 4910 1.1 christos 4911 1.1 christos ; 4912 1.1 christos return 0; 4913 1.1 christos } 4914 1.1 christos _ACEOF 4915 1.1 christos rm -f conftest.$ac_objext 4916 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4917 1.1 christos (eval $ac_compile) 2>conftest.er1 4918 1.1 christos ac_status=$? 4919 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4920 1.1 christos rm -f conftest.er1 4921 1.1 christos cat conftest.err >&5 4922 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4923 1.1 christos (exit $ac_status); } && 4924 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4925 1.1 christos || test ! -s conftest.err' 4926 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4927 1.1 christos (eval $ac_try) 2>&5 4928 1.1 christos ac_status=$? 4929 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4930 1.1 christos (exit $ac_status); }; } && 4931 1.1 christos { ac_try='test -s conftest.$ac_objext' 4932 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4933 1.1 christos (eval $ac_try) 2>&5 4934 1.1 christos ac_status=$? 4935 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4936 1.1 christos (exit $ac_status); }; }; then 4937 1.1 christos ac_cv_c_const=yes 4938 1.1 christos else 4939 1.1 christos echo "$as_me: failed program was:" >&5 4940 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 4941 1.1 christos 4942 1.1 christos ac_cv_c_const=no 4943 1.1 christos fi 4944 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4945 1.1 christos fi 4946 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 4947 1.1 christos echo "${ECHO_T}$ac_cv_c_const" >&6 4948 1.1 christos if test $ac_cv_c_const = no; then 4949 1.1 christos 4950 1.1 christos cat >>confdefs.h <<\_ACEOF 4951 1.1 christos #define const 4952 1.1 christos _ACEOF 4953 1.1 christos 4954 1.1 christos fi 4955 1.1 christos 4956 1.1 christos echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 4957 1.1 christos echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 4958 1.1 christos if test "${ac_cv_struct_tm+set}" = set; then 4959 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 4960 1.1 christos else 4961 1.1 christos cat >conftest.$ac_ext <<_ACEOF 4962 1.1 christos /* confdefs.h. */ 4963 1.1 christos _ACEOF 4964 1.1 christos cat confdefs.h >>conftest.$ac_ext 4965 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 4966 1.1 christos /* end confdefs.h. */ 4967 1.1 christos #include <sys/types.h> 4968 1.1 christos #include <time.h> 4969 1.1 christos 4970 1.1 christos int 4971 1.1 christos main () 4972 1.1 christos { 4973 1.1 christos struct tm *tp; tp->tm_sec; 4974 1.1 christos ; 4975 1.1 christos return 0; 4976 1.1 christos } 4977 1.1 christos _ACEOF 4978 1.1 christos rm -f conftest.$ac_objext 4979 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4980 1.1 christos (eval $ac_compile) 2>conftest.er1 4981 1.1 christos ac_status=$? 4982 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 4983 1.1 christos rm -f conftest.er1 4984 1.1 christos cat conftest.err >&5 4985 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4986 1.1 christos (exit $ac_status); } && 4987 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 4988 1.1 christos || test ! -s conftest.err' 4989 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4990 1.1 christos (eval $ac_try) 2>&5 4991 1.1 christos ac_status=$? 4992 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4993 1.1 christos (exit $ac_status); }; } && 4994 1.1 christos { ac_try='test -s conftest.$ac_objext' 4995 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4996 1.1 christos (eval $ac_try) 2>&5 4997 1.1 christos ac_status=$? 4998 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 4999 1.1 christos (exit $ac_status); }; }; then 5000 1.1 christos ac_cv_struct_tm=time.h 5001 1.1 christos else 5002 1.1 christos echo "$as_me: failed program was:" >&5 5003 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5004 1.1 christos 5005 1.1 christos ac_cv_struct_tm=sys/time.h 5006 1.1 christos fi 5007 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5008 1.1 christos fi 5009 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 5010 1.1 christos echo "${ECHO_T}$ac_cv_struct_tm" >&6 5011 1.1 christos if test $ac_cv_struct_tm = sys/time.h; then 5012 1.1 christos 5013 1.1 christos cat >>confdefs.h <<\_ACEOF 5014 1.1 christos #define TM_IN_SYS_TIME 1 5015 1.1 christos _ACEOF 5016 1.1 christos 5017 1.1 christos fi 5018 1.1 christos 5019 1.1 christos 5020 1.1 christos # Checks for function declarations. 5021 1.1 christos echo "$as_me:$LINENO: checking whether memchr is declared" >&5 5022 1.1 christos echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 5023 1.1 christos if test "${ac_cv_have_decl_memchr+set}" = set; then 5024 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5025 1.1 christos else 5026 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5027 1.1 christos /* confdefs.h. */ 5028 1.1 christos _ACEOF 5029 1.1 christos cat confdefs.h >>conftest.$ac_ext 5030 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5031 1.1 christos /* end confdefs.h. */ 5032 1.1 christos $ac_includes_default 5033 1.1 christos int 5034 1.1 christos main () 5035 1.1 christos { 5036 1.1 christos #ifndef memchr 5037 1.1 christos char *p = (char *) memchr; 5038 1.1 christos #endif 5039 1.1 christos 5040 1.1 christos ; 5041 1.1 christos return 0; 5042 1.1 christos } 5043 1.1 christos _ACEOF 5044 1.1 christos rm -f conftest.$ac_objext 5045 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5046 1.1 christos (eval $ac_compile) 2>conftest.er1 5047 1.1 christos ac_status=$? 5048 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5049 1.1 christos rm -f conftest.er1 5050 1.1 christos cat conftest.err >&5 5051 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5052 1.1 christos (exit $ac_status); } && 5053 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 5054 1.1 christos || test ! -s conftest.err' 5055 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5056 1.1 christos (eval $ac_try) 2>&5 5057 1.1 christos ac_status=$? 5058 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5059 1.1 christos (exit $ac_status); }; } && 5060 1.1 christos { ac_try='test -s conftest.$ac_objext' 5061 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5062 1.1 christos (eval $ac_try) 2>&5 5063 1.1 christos ac_status=$? 5064 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5065 1.1 christos (exit $ac_status); }; }; then 5066 1.1 christos ac_cv_have_decl_memchr=yes 5067 1.1 christos else 5068 1.1 christos echo "$as_me: failed program was:" >&5 5069 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5070 1.1 christos 5071 1.1 christos ac_cv_have_decl_memchr=no 5072 1.1 christos fi 5073 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5074 1.1 christos fi 5075 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_memchr" >&5 5076 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 5077 1.1 christos if test $ac_cv_have_decl_memchr = yes; then 5078 1.1 christos 5079 1.1 christos cat >>confdefs.h <<_ACEOF 5080 1.1 christos #define HAVE_DECL_MEMCHR 1 5081 1.1 christos _ACEOF 5082 1.1 christos 5083 1.1 christos 5084 1.1 christos else 5085 1.1 christos cat >>confdefs.h <<_ACEOF 5086 1.1 christos #define HAVE_DECL_MEMCHR 0 5087 1.1 christos _ACEOF 5088 1.1 christos 5089 1.1 christos 5090 1.1 christos fi 5091 1.1 christos echo "$as_me:$LINENO: checking whether strcoll is declared" >&5 5092 1.1 christos echo $ECHO_N "checking whether strcoll is declared... $ECHO_C" >&6 5093 1.1 christos if test "${ac_cv_have_decl_strcoll+set}" = set; then 5094 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5095 1.1 christos else 5096 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5097 1.1 christos /* confdefs.h. */ 5098 1.1 christos _ACEOF 5099 1.1 christos cat confdefs.h >>conftest.$ac_ext 5100 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5101 1.1 christos /* end confdefs.h. */ 5102 1.1 christos $ac_includes_default 5103 1.1 christos int 5104 1.1 christos main () 5105 1.1 christos { 5106 1.1 christos #ifndef strcoll 5107 1.1 christos char *p = (char *) strcoll; 5108 1.1 christos #endif 5109 1.1 christos 5110 1.1 christos ; 5111 1.1 christos return 0; 5112 1.1 christos } 5113 1.1 christos _ACEOF 5114 1.1 christos rm -f conftest.$ac_objext 5115 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5116 1.1 christos (eval $ac_compile) 2>conftest.er1 5117 1.1 christos ac_status=$? 5118 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5119 1.1 christos rm -f conftest.er1 5120 1.1 christos cat conftest.err >&5 5121 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 1.1 christos (exit $ac_status); } && 5123 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 5124 1.1 christos || test ! -s conftest.err' 5125 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5126 1.1 christos (eval $ac_try) 2>&5 5127 1.1 christos ac_status=$? 5128 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5129 1.1 christos (exit $ac_status); }; } && 5130 1.1 christos { ac_try='test -s conftest.$ac_objext' 5131 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5132 1.1 christos (eval $ac_try) 2>&5 5133 1.1 christos ac_status=$? 5134 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5135 1.1 christos (exit $ac_status); }; }; then 5136 1.1 christos ac_cv_have_decl_strcoll=yes 5137 1.1 christos else 5138 1.1 christos echo "$as_me: failed program was:" >&5 5139 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5140 1.1 christos 5141 1.1 christos ac_cv_have_decl_strcoll=no 5142 1.1 christos fi 5143 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5144 1.1 christos fi 5145 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcoll" >&5 5146 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_strcoll" >&6 5147 1.1 christos if test $ac_cv_have_decl_strcoll = yes; then 5148 1.1 christos 5149 1.1 christos cat >>confdefs.h <<_ACEOF 5150 1.1 christos #define HAVE_DECL_STRCOLL 1 5151 1.1 christos _ACEOF 5152 1.1 christos 5153 1.1 christos 5154 1.1 christos else 5155 1.1 christos cat >>confdefs.h <<_ACEOF 5156 1.1 christos #define HAVE_DECL_STRCOLL 0 5157 1.1 christos _ACEOF 5158 1.1 christos 5159 1.1 christos 5160 1.1 christos fi 5161 1.1 christos echo "$as_me:$LINENO: checking whether strerror is declared" >&5 5162 1.1 christos echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 5163 1.1 christos if test "${ac_cv_have_decl_strerror+set}" = set; then 5164 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5165 1.1 christos else 5166 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5167 1.1 christos /* confdefs.h. */ 5168 1.1 christos _ACEOF 5169 1.1 christos cat confdefs.h >>conftest.$ac_ext 5170 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5171 1.1 christos /* end confdefs.h. */ 5172 1.1 christos $ac_includes_default 5173 1.1 christos int 5174 1.1 christos main () 5175 1.1 christos { 5176 1.1 christos #ifndef strerror 5177 1.1 christos char *p = (char *) strerror; 5178 1.1 christos #endif 5179 1.1 christos 5180 1.1 christos ; 5181 1.1 christos return 0; 5182 1.1 christos } 5183 1.1 christos _ACEOF 5184 1.1 christos rm -f conftest.$ac_objext 5185 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5186 1.1 christos (eval $ac_compile) 2>conftest.er1 5187 1.1 christos ac_status=$? 5188 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5189 1.1 christos rm -f conftest.er1 5190 1.1 christos cat conftest.err >&5 5191 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5192 1.1 christos (exit $ac_status); } && 5193 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 5194 1.1 christos || test ! -s conftest.err' 5195 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5196 1.1 christos (eval $ac_try) 2>&5 5197 1.1 christos ac_status=$? 5198 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5199 1.1 christos (exit $ac_status); }; } && 5200 1.1 christos { ac_try='test -s conftest.$ac_objext' 5201 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5202 1.1 christos (eval $ac_try) 2>&5 5203 1.1 christos ac_status=$? 5204 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5205 1.1 christos (exit $ac_status); }; }; then 5206 1.1 christos ac_cv_have_decl_strerror=yes 5207 1.1 christos else 5208 1.1 christos echo "$as_me: failed program was:" >&5 5209 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5210 1.1 christos 5211 1.1 christos ac_cv_have_decl_strerror=no 5212 1.1 christos fi 5213 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5214 1.1 christos fi 5215 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 5216 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 5217 1.1 christos if test $ac_cv_have_decl_strerror = yes; then 5218 1.1 christos 5219 1.1 christos cat >>confdefs.h <<_ACEOF 5220 1.1 christos #define HAVE_DECL_STRERROR 1 5221 1.1 christos _ACEOF 5222 1.1 christos 5223 1.1 christos 5224 1.1 christos else 5225 1.1 christos cat >>confdefs.h <<_ACEOF 5226 1.1 christos #define HAVE_DECL_STRERROR 0 5227 1.1 christos _ACEOF 5228 1.1 christos 5229 1.1 christos 5230 1.1 christos fi 5231 1.1 christos 5232 1.1 christos 5233 1.1 christos 5234 1.1 christos # Checks for library functions. 5235 1.1 christos # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5236 1.1 christos # for constant arguments. Useless! 5237 1.1 christos echo "$as_me:$LINENO: checking for working alloca.h" >&5 5238 1.1 christos echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5239 1.1 christos if test "${ac_cv_working_alloca_h+set}" = set; then 5240 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5241 1.1 christos else 5242 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5243 1.1 christos /* confdefs.h. */ 5244 1.1 christos _ACEOF 5245 1.1 christos cat confdefs.h >>conftest.$ac_ext 5246 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5247 1.1 christos /* end confdefs.h. */ 5248 1.1 christos #include <alloca.h> 5249 1.1 christos int 5250 1.1 christos main () 5251 1.1 christos { 5252 1.1 christos char *p = (char *) alloca (2 * sizeof (int)); 5253 1.1 christos ; 5254 1.1 christos return 0; 5255 1.1 christos } 5256 1.1 christos _ACEOF 5257 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5258 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5259 1.1 christos (eval $ac_link) 2>conftest.er1 5260 1.1 christos ac_status=$? 5261 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5262 1.1 christos rm -f conftest.er1 5263 1.1 christos cat conftest.err >&5 5264 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5265 1.1 christos (exit $ac_status); } && 5266 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 5267 1.1 christos || test ! -s conftest.err' 5268 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5269 1.1 christos (eval $ac_try) 2>&5 5270 1.1 christos ac_status=$? 5271 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5272 1.1 christos (exit $ac_status); }; } && 5273 1.1 christos { ac_try='test -s conftest$ac_exeext' 5274 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5275 1.1 christos (eval $ac_try) 2>&5 5276 1.1 christos ac_status=$? 5277 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5278 1.1 christos (exit $ac_status); }; }; then 5279 1.1 christos ac_cv_working_alloca_h=yes 5280 1.1 christos else 5281 1.1 christos echo "$as_me: failed program was:" >&5 5282 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5283 1.1 christos 5284 1.1 christos ac_cv_working_alloca_h=no 5285 1.1 christos fi 5286 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5287 1.1 christos conftest$ac_exeext conftest.$ac_ext 5288 1.1 christos fi 5289 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5290 1.1 christos echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5291 1.1 christos if test $ac_cv_working_alloca_h = yes; then 5292 1.1 christos 5293 1.1 christos cat >>confdefs.h <<\_ACEOF 5294 1.1 christos #define HAVE_ALLOCA_H 1 5295 1.1 christos _ACEOF 5296 1.1 christos 5297 1.1 christos fi 5298 1.1 christos 5299 1.1 christos echo "$as_me:$LINENO: checking for alloca" >&5 5300 1.1 christos echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5301 1.1 christos if test "${ac_cv_func_alloca_works+set}" = set; then 5302 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5303 1.1 christos else 5304 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5305 1.1 christos /* confdefs.h. */ 5306 1.1 christos _ACEOF 5307 1.1 christos cat confdefs.h >>conftest.$ac_ext 5308 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5309 1.1 christos /* end confdefs.h. */ 5310 1.1 christos #ifdef __GNUC__ 5311 1.1 christos # define alloca __builtin_alloca 5312 1.1 christos #else 5313 1.1 christos # ifdef _MSC_VER 5314 1.1 christos # include <malloc.h> 5315 1.1 christos # define alloca _alloca 5316 1.1 christos # else 5317 1.1 christos # if HAVE_ALLOCA_H 5318 1.1 christos # include <alloca.h> 5319 1.1 christos # else 5320 1.1 christos # ifdef _AIX 5321 1.1 christos #pragma alloca 5322 1.1 christos # else 5323 1.1 christos # ifndef alloca /* predefined by HP cc +Olibcalls */ 5324 1.1 christos char *alloca (); 5325 1.1 christos # endif 5326 1.1 christos # endif 5327 1.1 christos # endif 5328 1.1 christos # endif 5329 1.1 christos #endif 5330 1.1 christos 5331 1.1 christos int 5332 1.1 christos main () 5333 1.1 christos { 5334 1.1 christos char *p = (char *) alloca (1); 5335 1.1 christos ; 5336 1.1 christos return 0; 5337 1.1 christos } 5338 1.1 christos _ACEOF 5339 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5340 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5341 1.1 christos (eval $ac_link) 2>conftest.er1 5342 1.1 christos ac_status=$? 5343 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5344 1.1 christos rm -f conftest.er1 5345 1.1 christos cat conftest.err >&5 5346 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 1.1 christos (exit $ac_status); } && 5348 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 5349 1.1 christos || test ! -s conftest.err' 5350 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5351 1.1 christos (eval $ac_try) 2>&5 5352 1.1 christos ac_status=$? 5353 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5354 1.1 christos (exit $ac_status); }; } && 5355 1.1 christos { ac_try='test -s conftest$ac_exeext' 5356 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5357 1.1 christos (eval $ac_try) 2>&5 5358 1.1 christos ac_status=$? 5359 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5360 1.1 christos (exit $ac_status); }; }; then 5361 1.1 christos ac_cv_func_alloca_works=yes 5362 1.1 christos else 5363 1.1 christos echo "$as_me: failed program was:" >&5 5364 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5365 1.1 christos 5366 1.1 christos ac_cv_func_alloca_works=no 5367 1.1 christos fi 5368 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5369 1.1 christos conftest$ac_exeext conftest.$ac_ext 5370 1.1 christos fi 5371 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5372 1.1 christos echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5373 1.1 christos 5374 1.1 christos if test $ac_cv_func_alloca_works = yes; then 5375 1.1 christos 5376 1.1 christos cat >>confdefs.h <<\_ACEOF 5377 1.1 christos #define HAVE_ALLOCA 1 5378 1.1 christos _ACEOF 5379 1.1 christos 5380 1.1 christos else 5381 1.1 christos # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5382 1.1 christos # that cause trouble. Some versions do not even contain alloca or 5383 1.1 christos # contain a buggy version. If you still want to use their alloca, 5384 1.1 christos # use ar to extract alloca.o from them instead of compiling alloca.c. 5385 1.1 christos 5386 1.1 christos ALLOCA=alloca.$ac_objext 5387 1.1 christos 5388 1.1 christos cat >>confdefs.h <<\_ACEOF 5389 1.1 christos #define C_ALLOCA 1 5390 1.1 christos _ACEOF 5391 1.1 christos 5392 1.1 christos 5393 1.1 christos echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5394 1.1 christos echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5395 1.1 christos if test "${ac_cv_os_cray+set}" = set; then 5396 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5397 1.1 christos else 5398 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5399 1.1 christos /* confdefs.h. */ 5400 1.1 christos _ACEOF 5401 1.1 christos cat confdefs.h >>conftest.$ac_ext 5402 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5403 1.1 christos /* end confdefs.h. */ 5404 1.1 christos #if defined(CRAY) && ! defined(CRAY2) 5405 1.1 christos webecray 5406 1.1 christos #else 5407 1.1 christos wenotbecray 5408 1.1 christos #endif 5409 1.1 christos 5410 1.1 christos _ACEOF 5411 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5412 1.1 christos $EGREP "webecray" >/dev/null 2>&1; then 5413 1.1 christos ac_cv_os_cray=yes 5414 1.1 christos else 5415 1.1 christos ac_cv_os_cray=no 5416 1.1 christos fi 5417 1.1 christos rm -f conftest* 5418 1.1 christos 5419 1.1 christos fi 5420 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5421 1.1 christos echo "${ECHO_T}$ac_cv_os_cray" >&6 5422 1.1 christos if test $ac_cv_os_cray = yes; then 5423 1.1 christos for ac_func in _getb67 GETB67 getb67; do 5424 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5425 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 5426 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5427 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 5428 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5429 1.1 christos else 5430 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5431 1.1 christos /* confdefs.h. */ 5432 1.1 christos _ACEOF 5433 1.1 christos cat confdefs.h >>conftest.$ac_ext 5434 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5435 1.1 christos /* end confdefs.h. */ 5436 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5437 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5438 1.1 christos #define $ac_func innocuous_$ac_func 5439 1.1 christos 5440 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 5441 1.1 christos which can conflict with char $ac_func (); below. 5442 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5443 1.1 christos <limits.h> exists even on freestanding compilers. */ 5444 1.1 christos 5445 1.1 christos #ifdef __STDC__ 5446 1.1 christos # include <limits.h> 5447 1.1 christos #else 5448 1.1 christos # include <assert.h> 5449 1.1 christos #endif 5450 1.1 christos 5451 1.1 christos #undef $ac_func 5452 1.1 christos 5453 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 5454 1.1 christos #ifdef __cplusplus 5455 1.1 christos extern "C" 5456 1.1 christos { 5457 1.1 christos #endif 5458 1.1 christos /* We use char because int might match the return type of a gcc2 5459 1.1 christos builtin and then its argument prototype would still apply. */ 5460 1.1 christos char $ac_func (); 5461 1.1 christos /* The GNU C library defines this for functions which it implements 5462 1.1 christos to always fail with ENOSYS. Some functions are actually named 5463 1.1 christos something starting with __ and the normal name is an alias. */ 5464 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5465 1.1 christos choke me 5466 1.1 christos #else 5467 1.1 christos char (*f) () = $ac_func; 5468 1.1 christos #endif 5469 1.1 christos #ifdef __cplusplus 5470 1.1 christos } 5471 1.1 christos #endif 5472 1.1 christos 5473 1.1 christos int 5474 1.1 christos main () 5475 1.1 christos { 5476 1.1 christos return f != $ac_func; 5477 1.1 christos ; 5478 1.1 christos return 0; 5479 1.1 christos } 5480 1.1 christos _ACEOF 5481 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5482 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5483 1.1 christos (eval $ac_link) 2>conftest.er1 5484 1.1 christos ac_status=$? 5485 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5486 1.1 christos rm -f conftest.er1 5487 1.1 christos cat conftest.err >&5 5488 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5489 1.1 christos (exit $ac_status); } && 5490 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 5491 1.1 christos || test ! -s conftest.err' 5492 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5493 1.1 christos (eval $ac_try) 2>&5 5494 1.1 christos ac_status=$? 5495 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5496 1.1 christos (exit $ac_status); }; } && 5497 1.1 christos { ac_try='test -s conftest$ac_exeext' 5498 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5499 1.1 christos (eval $ac_try) 2>&5 5500 1.1 christos ac_status=$? 5501 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5502 1.1 christos (exit $ac_status); }; }; then 5503 1.1 christos eval "$as_ac_var=yes" 5504 1.1 christos else 5505 1.1 christos echo "$as_me: failed program was:" >&5 5506 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5507 1.1 christos 5508 1.1 christos eval "$as_ac_var=no" 5509 1.1 christos fi 5510 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5511 1.1 christos conftest$ac_exeext conftest.$ac_ext 5512 1.1 christos fi 5513 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5514 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5515 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 5516 1.1 christos 5517 1.1 christos cat >>confdefs.h <<_ACEOF 5518 1.1 christos #define CRAY_STACKSEG_END $ac_func 5519 1.1 christos _ACEOF 5520 1.1 christos 5521 1.1 christos break 5522 1.1 christos fi 5523 1.1 christos 5524 1.1 christos done 5525 1.1 christos fi 5526 1.1 christos 5527 1.1 christos echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5528 1.1 christos echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5529 1.1 christos if test "${ac_cv_c_stack_direction+set}" = set; then 5530 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5531 1.1 christos else 5532 1.1 christos if test "$cross_compiling" = yes; then 5533 1.1 christos ac_cv_c_stack_direction=0 5534 1.1 christos else 5535 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5536 1.1 christos /* confdefs.h. */ 5537 1.1 christos _ACEOF 5538 1.1 christos cat confdefs.h >>conftest.$ac_ext 5539 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5540 1.1 christos /* end confdefs.h. */ 5541 1.1 christos int 5542 1.1 christos find_stack_direction () 5543 1.1 christos { 5544 1.1 christos static char *addr = 0; 5545 1.1 christos auto char dummy; 5546 1.1 christos if (addr == 0) 5547 1.1 christos { 5548 1.1 christos addr = &dummy; 5549 1.1 christos return find_stack_direction (); 5550 1.1 christos } 5551 1.1 christos else 5552 1.1 christos return (&dummy > addr) ? 1 : -1; 5553 1.1 christos } 5554 1.1 christos 5555 1.1 christos int 5556 1.1 christos main () 5557 1.1 christos { 5558 1.1 christos exit (find_stack_direction () < 0); 5559 1.1 christos } 5560 1.1 christos _ACEOF 5561 1.1 christos rm -f conftest$ac_exeext 5562 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5563 1.1 christos (eval $ac_link) 2>&5 5564 1.1 christos ac_status=$? 5565 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5566 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5567 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5568 1.1 christos (eval $ac_try) 2>&5 5569 1.1 christos ac_status=$? 5570 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5571 1.1 christos (exit $ac_status); }; }; then 5572 1.1 christos ac_cv_c_stack_direction=1 5573 1.1 christos else 5574 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 5575 1.1 christos echo "$as_me: failed program was:" >&5 5576 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5577 1.1 christos 5578 1.1 christos ( exit $ac_status ) 5579 1.1 christos ac_cv_c_stack_direction=-1 5580 1.1 christos fi 5581 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5582 1.1 christos fi 5583 1.1 christos fi 5584 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5585 1.1 christos echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5586 1.1 christos 5587 1.1 christos cat >>confdefs.h <<_ACEOF 5588 1.1 christos #define STACK_DIRECTION $ac_cv_c_stack_direction 5589 1.1 christos _ACEOF 5590 1.1 christos 5591 1.1 christos 5592 1.1 christos fi 5593 1.1 christos 5594 1.1 christos echo "$as_me:$LINENO: checking for working strcoll" >&5 5595 1.1 christos echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 5596 1.1 christos if test "${ac_cv_func_strcoll_works+set}" = set; then 5597 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5598 1.1 christos else 5599 1.1 christos if test "$cross_compiling" = yes; then 5600 1.1 christos ac_cv_func_strcoll_works=no 5601 1.1 christos else 5602 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5603 1.1 christos /* confdefs.h. */ 5604 1.1 christos _ACEOF 5605 1.1 christos cat confdefs.h >>conftest.$ac_ext 5606 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5607 1.1 christos /* end confdefs.h. */ 5608 1.1 christos $ac_includes_default 5609 1.1 christos int 5610 1.1 christos main () 5611 1.1 christos { 5612 1.1 christos exit (strcoll ("abc", "def") >= 0 || 5613 1.1 christos strcoll ("ABC", "DEF") >= 0 || 5614 1.1 christos strcoll ("123", "456") >= 0) 5615 1.1 christos ; 5616 1.1 christos return 0; 5617 1.1 christos } 5618 1.1 christos _ACEOF 5619 1.1 christos rm -f conftest$ac_exeext 5620 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5621 1.1 christos (eval $ac_link) 2>&5 5622 1.1 christos ac_status=$? 5623 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5624 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5625 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5626 1.1 christos (eval $ac_try) 2>&5 5627 1.1 christos ac_status=$? 5628 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5629 1.1 christos (exit $ac_status); }; }; then 5630 1.1 christos ac_cv_func_strcoll_works=yes 5631 1.1 christos else 5632 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 5633 1.1 christos echo "$as_me: failed program was:" >&5 5634 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5635 1.1 christos 5636 1.1 christos ( exit $ac_status ) 5637 1.1 christos ac_cv_func_strcoll_works=no 5638 1.1 christos fi 5639 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5640 1.1 christos fi 5641 1.1 christos fi 5642 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 5643 1.1 christos echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 5644 1.1 christos if test $ac_cv_func_strcoll_works = yes; then 5645 1.1 christos 5646 1.1 christos cat >>confdefs.h <<\_ACEOF 5647 1.1 christos #define HAVE_STRCOLL 1 5648 1.1 christos _ACEOF 5649 1.1 christos 5650 1.1 christos fi 5651 1.1 christos 5652 1.1 christos 5653 1.1 christos for ac_func in vprintf 5654 1.1 christos do 5655 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5656 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 5657 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5658 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 5659 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5660 1.1 christos else 5661 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5662 1.1 christos /* confdefs.h. */ 5663 1.1 christos _ACEOF 5664 1.1 christos cat confdefs.h >>conftest.$ac_ext 5665 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5666 1.1 christos /* end confdefs.h. */ 5667 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5668 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5669 1.1 christos #define $ac_func innocuous_$ac_func 5670 1.1 christos 5671 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 5672 1.1 christos which can conflict with char $ac_func (); below. 5673 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5674 1.1 christos <limits.h> exists even on freestanding compilers. */ 5675 1.1 christos 5676 1.1 christos #ifdef __STDC__ 5677 1.1 christos # include <limits.h> 5678 1.1 christos #else 5679 1.1 christos # include <assert.h> 5680 1.1 christos #endif 5681 1.1 christos 5682 1.1 christos #undef $ac_func 5683 1.1 christos 5684 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 5685 1.1 christos #ifdef __cplusplus 5686 1.1 christos extern "C" 5687 1.1 christos { 5688 1.1 christos #endif 5689 1.1 christos /* We use char because int might match the return type of a gcc2 5690 1.1 christos builtin and then its argument prototype would still apply. */ 5691 1.1 christos char $ac_func (); 5692 1.1 christos /* The GNU C library defines this for functions which it implements 5693 1.1 christos to always fail with ENOSYS. Some functions are actually named 5694 1.1 christos something starting with __ and the normal name is an alias. */ 5695 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5696 1.1 christos choke me 5697 1.1 christos #else 5698 1.1 christos char (*f) () = $ac_func; 5699 1.1 christos #endif 5700 1.1 christos #ifdef __cplusplus 5701 1.1 christos } 5702 1.1 christos #endif 5703 1.1 christos 5704 1.1 christos int 5705 1.1 christos main () 5706 1.1 christos { 5707 1.1 christos return f != $ac_func; 5708 1.1 christos ; 5709 1.1 christos return 0; 5710 1.1 christos } 5711 1.1 christos _ACEOF 5712 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5713 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5714 1.1 christos (eval $ac_link) 2>conftest.er1 5715 1.1 christos ac_status=$? 5716 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5717 1.1 christos rm -f conftest.er1 5718 1.1 christos cat conftest.err >&5 5719 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5720 1.1 christos (exit $ac_status); } && 5721 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 5722 1.1 christos || test ! -s conftest.err' 5723 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5724 1.1 christos (eval $ac_try) 2>&5 5725 1.1 christos ac_status=$? 5726 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5727 1.1 christos (exit $ac_status); }; } && 5728 1.1 christos { ac_try='test -s conftest$ac_exeext' 5729 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5730 1.1 christos (eval $ac_try) 2>&5 5731 1.1 christos ac_status=$? 5732 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5733 1.1 christos (exit $ac_status); }; }; then 5734 1.1 christos eval "$as_ac_var=yes" 5735 1.1 christos else 5736 1.1 christos echo "$as_me: failed program was:" >&5 5737 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5738 1.1 christos 5739 1.1 christos eval "$as_ac_var=no" 5740 1.1 christos fi 5741 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5742 1.1 christos conftest$ac_exeext conftest.$ac_ext 5743 1.1 christos fi 5744 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5745 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5746 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 5747 1.1 christos cat >>confdefs.h <<_ACEOF 5748 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5749 1.1 christos _ACEOF 5750 1.1 christos 5751 1.1 christos echo "$as_me:$LINENO: checking for _doprnt" >&5 5752 1.1 christos echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 5753 1.1 christos if test "${ac_cv_func__doprnt+set}" = set; then 5754 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5755 1.1 christos else 5756 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5757 1.1 christos /* confdefs.h. */ 5758 1.1 christos _ACEOF 5759 1.1 christos cat confdefs.h >>conftest.$ac_ext 5760 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5761 1.1 christos /* end confdefs.h. */ 5762 1.1 christos /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. 5763 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5764 1.1 christos #define _doprnt innocuous__doprnt 5765 1.1 christos 5766 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 5767 1.1 christos which can conflict with char _doprnt (); below. 5768 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5769 1.1 christos <limits.h> exists even on freestanding compilers. */ 5770 1.1 christos 5771 1.1 christos #ifdef __STDC__ 5772 1.1 christos # include <limits.h> 5773 1.1 christos #else 5774 1.1 christos # include <assert.h> 5775 1.1 christos #endif 5776 1.1 christos 5777 1.1 christos #undef _doprnt 5778 1.1 christos 5779 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 5780 1.1 christos #ifdef __cplusplus 5781 1.1 christos extern "C" 5782 1.1 christos { 5783 1.1 christos #endif 5784 1.1 christos /* We use char because int might match the return type of a gcc2 5785 1.1 christos builtin and then its argument prototype would still apply. */ 5786 1.1 christos char _doprnt (); 5787 1.1 christos /* The GNU C library defines this for functions which it implements 5788 1.1 christos to always fail with ENOSYS. Some functions are actually named 5789 1.1 christos something starting with __ and the normal name is an alias. */ 5790 1.1 christos #if defined (__stub__doprnt) || defined (__stub____doprnt) 5791 1.1 christos choke me 5792 1.1 christos #else 5793 1.1 christos char (*f) () = _doprnt; 5794 1.1 christos #endif 5795 1.1 christos #ifdef __cplusplus 5796 1.1 christos } 5797 1.1 christos #endif 5798 1.1 christos 5799 1.1 christos int 5800 1.1 christos main () 5801 1.1 christos { 5802 1.1 christos return f != _doprnt; 5803 1.1 christos ; 5804 1.1 christos return 0; 5805 1.1 christos } 5806 1.1 christos _ACEOF 5807 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5808 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5809 1.1 christos (eval $ac_link) 2>conftest.er1 5810 1.1 christos ac_status=$? 5811 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5812 1.1 christos rm -f conftest.er1 5813 1.1 christos cat conftest.err >&5 5814 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5815 1.1 christos (exit $ac_status); } && 5816 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 5817 1.1 christos || test ! -s conftest.err' 5818 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5819 1.1 christos (eval $ac_try) 2>&5 5820 1.1 christos ac_status=$? 5821 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5822 1.1 christos (exit $ac_status); }; } && 5823 1.1 christos { ac_try='test -s conftest$ac_exeext' 5824 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5825 1.1 christos (eval $ac_try) 2>&5 5826 1.1 christos ac_status=$? 5827 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5828 1.1 christos (exit $ac_status); }; }; then 5829 1.1 christos ac_cv_func__doprnt=yes 5830 1.1 christos else 5831 1.1 christos echo "$as_me: failed program was:" >&5 5832 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5833 1.1 christos 5834 1.1 christos ac_cv_func__doprnt=no 5835 1.1 christos fi 5836 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5837 1.1 christos conftest$ac_exeext conftest.$ac_ext 5838 1.1 christos fi 5839 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 5840 1.1 christos echo "${ECHO_T}$ac_cv_func__doprnt" >&6 5841 1.1 christos if test $ac_cv_func__doprnt = yes; then 5842 1.1 christos 5843 1.1 christos cat >>confdefs.h <<\_ACEOF 5844 1.1 christos #define HAVE_DOPRNT 1 5845 1.1 christos _ACEOF 5846 1.1 christos 5847 1.1 christos fi 5848 1.1 christos 5849 1.1 christos fi 5850 1.1 christos done 5851 1.1 christos 5852 1.1 christos 5853 1.1 christos # in theory only pre-sysvr3 systems needed this and it's not likely 5854 1.1 christos # that anyone compiling new texinfo still has such a thing? we'll see. 5855 1.1 christos # AC_FUNC_SETVBUF_REVERSED 5856 1.1 christos 5857 1.1 christos 5858 1.1 christos 5859 1.1 christos 5860 1.1 christos 5861 1.1 christos 5862 1.1 christos 5863 1.1 christos 5864 1.1 christos for ac_func in bzero getcwd memset setvbuf sigaction sigprocmask \ 5865 1.1 christos sigsetmask strchr 5866 1.1 christos do 5867 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5868 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 5869 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5870 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 5871 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5872 1.1 christos else 5873 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5874 1.1 christos /* confdefs.h. */ 5875 1.1 christos _ACEOF 5876 1.1 christos cat confdefs.h >>conftest.$ac_ext 5877 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5878 1.1 christos /* end confdefs.h. */ 5879 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5880 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5881 1.1 christos #define $ac_func innocuous_$ac_func 5882 1.1 christos 5883 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 5884 1.1 christos which can conflict with char $ac_func (); below. 5885 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5886 1.1 christos <limits.h> exists even on freestanding compilers. */ 5887 1.1 christos 5888 1.1 christos #ifdef __STDC__ 5889 1.1 christos # include <limits.h> 5890 1.1 christos #else 5891 1.1 christos # include <assert.h> 5892 1.1 christos #endif 5893 1.1 christos 5894 1.1 christos #undef $ac_func 5895 1.1 christos 5896 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 5897 1.1 christos #ifdef __cplusplus 5898 1.1 christos extern "C" 5899 1.1 christos { 5900 1.1 christos #endif 5901 1.1 christos /* We use char because int might match the return type of a gcc2 5902 1.1 christos builtin and then its argument prototype would still apply. */ 5903 1.1 christos char $ac_func (); 5904 1.1 christos /* The GNU C library defines this for functions which it implements 5905 1.1 christos to always fail with ENOSYS. Some functions are actually named 5906 1.1 christos something starting with __ and the normal name is an alias. */ 5907 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5908 1.1 christos choke me 5909 1.1 christos #else 5910 1.1 christos char (*f) () = $ac_func; 5911 1.1 christos #endif 5912 1.1 christos #ifdef __cplusplus 5913 1.1 christos } 5914 1.1 christos #endif 5915 1.1 christos 5916 1.1 christos int 5917 1.1 christos main () 5918 1.1 christos { 5919 1.1 christos return f != $ac_func; 5920 1.1 christos ; 5921 1.1 christos return 0; 5922 1.1 christos } 5923 1.1 christos _ACEOF 5924 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 5925 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5926 1.1 christos (eval $ac_link) 2>conftest.er1 5927 1.1 christos ac_status=$? 5928 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 5929 1.1 christos rm -f conftest.er1 5930 1.1 christos cat conftest.err >&5 5931 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5932 1.1 christos (exit $ac_status); } && 5933 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 5934 1.1 christos || test ! -s conftest.err' 5935 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5936 1.1 christos (eval $ac_try) 2>&5 5937 1.1 christos ac_status=$? 5938 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5939 1.1 christos (exit $ac_status); }; } && 5940 1.1 christos { ac_try='test -s conftest$ac_exeext' 5941 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5942 1.1 christos (eval $ac_try) 2>&5 5943 1.1 christos ac_status=$? 5944 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 5945 1.1 christos (exit $ac_status); }; }; then 5946 1.1 christos eval "$as_ac_var=yes" 5947 1.1 christos else 5948 1.1 christos echo "$as_me: failed program was:" >&5 5949 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 5950 1.1 christos 5951 1.1 christos eval "$as_ac_var=no" 5952 1.1 christos fi 5953 1.1 christos rm -f conftest.err conftest.$ac_objext \ 5954 1.1 christos conftest$ac_exeext conftest.$ac_ext 5955 1.1 christos fi 5956 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5957 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5958 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 5959 1.1 christos cat >>confdefs.h <<_ACEOF 5960 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5961 1.1 christos _ACEOF 5962 1.1 christos 5963 1.1 christos fi 5964 1.1 christos done 5965 1.1 christos 5966 1.1 christos 5967 1.1 christos 5968 1.1 christos 5969 1.1 christos 5970 1.1 christos for ac_func in memcpy memmove strdup strerror 5971 1.1 christos do 5972 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5973 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 5974 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5975 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 5976 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 5977 1.1 christos else 5978 1.1 christos cat >conftest.$ac_ext <<_ACEOF 5979 1.1 christos /* confdefs.h. */ 5980 1.1 christos _ACEOF 5981 1.1 christos cat confdefs.h >>conftest.$ac_ext 5982 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 5983 1.1 christos /* end confdefs.h. */ 5984 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5985 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5986 1.1 christos #define $ac_func innocuous_$ac_func 5987 1.1 christos 5988 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 5989 1.1 christos which can conflict with char $ac_func (); below. 5990 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5991 1.1 christos <limits.h> exists even on freestanding compilers. */ 5992 1.1 christos 5993 1.1 christos #ifdef __STDC__ 5994 1.1 christos # include <limits.h> 5995 1.1 christos #else 5996 1.1 christos # include <assert.h> 5997 1.1 christos #endif 5998 1.1 christos 5999 1.1 christos #undef $ac_func 6000 1.1 christos 6001 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6002 1.1 christos #ifdef __cplusplus 6003 1.1 christos extern "C" 6004 1.1 christos { 6005 1.1 christos #endif 6006 1.1 christos /* We use char because int might match the return type of a gcc2 6007 1.1 christos builtin and then its argument prototype would still apply. */ 6008 1.1 christos char $ac_func (); 6009 1.1 christos /* The GNU C library defines this for functions which it implements 6010 1.1 christos to always fail with ENOSYS. Some functions are actually named 6011 1.1 christos something starting with __ and the normal name is an alias. */ 6012 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6013 1.1 christos choke me 6014 1.1 christos #else 6015 1.1 christos char (*f) () = $ac_func; 6016 1.1 christos #endif 6017 1.1 christos #ifdef __cplusplus 6018 1.1 christos } 6019 1.1 christos #endif 6020 1.1 christos 6021 1.1 christos int 6022 1.1 christos main () 6023 1.1 christos { 6024 1.1 christos return f != $ac_func; 6025 1.1 christos ; 6026 1.1 christos return 0; 6027 1.1 christos } 6028 1.1 christos _ACEOF 6029 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6030 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6031 1.1 christos (eval $ac_link) 2>conftest.er1 6032 1.1 christos ac_status=$? 6033 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6034 1.1 christos rm -f conftest.er1 6035 1.1 christos cat conftest.err >&5 6036 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6037 1.1 christos (exit $ac_status); } && 6038 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 6039 1.1 christos || test ! -s conftest.err' 6040 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6041 1.1 christos (eval $ac_try) 2>&5 6042 1.1 christos ac_status=$? 6043 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6044 1.1 christos (exit $ac_status); }; } && 6045 1.1 christos { ac_try='test -s conftest$ac_exeext' 6046 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6047 1.1 christos (eval $ac_try) 2>&5 6048 1.1 christos ac_status=$? 6049 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6050 1.1 christos (exit $ac_status); }; }; then 6051 1.1 christos eval "$as_ac_var=yes" 6052 1.1 christos else 6053 1.1 christos echo "$as_me: failed program was:" >&5 6054 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6055 1.1 christos 6056 1.1 christos eval "$as_ac_var=no" 6057 1.1 christos fi 6058 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6059 1.1 christos conftest$ac_exeext conftest.$ac_ext 6060 1.1 christos fi 6061 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6062 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6063 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 6064 1.1 christos cat >>confdefs.h <<_ACEOF 6065 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6066 1.1 christos _ACEOF 6067 1.1 christos 6068 1.1 christos else 6069 1.1 christos case $LIBOBJS in 6070 1.1 christos "$ac_func.$ac_objext" | \ 6071 1.1 christos *" $ac_func.$ac_objext" | \ 6072 1.1 christos "$ac_func.$ac_objext "* | \ 6073 1.1 christos *" $ac_func.$ac_objext "* ) ;; 6074 1.1 christos *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6075 1.1 christos esac 6076 1.1 christos 6077 1.1 christos fi 6078 1.1 christos done 6079 1.1 christos 6080 1.1 christos 6081 1.1 christos 6082 1.1 christos # strcasecmp and strncasecmp, gnulib-style. 6083 1.1 christos 6084 1.1 christos 6085 1.1 christos 6086 1.1 christos for ac_func in strcasecmp 6087 1.1 christos do 6088 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6089 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 6090 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6091 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 6092 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6093 1.1 christos else 6094 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6095 1.1 christos /* confdefs.h. */ 6096 1.1 christos _ACEOF 6097 1.1 christos cat confdefs.h >>conftest.$ac_ext 6098 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6099 1.1 christos /* end confdefs.h. */ 6100 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6101 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6102 1.1 christos #define $ac_func innocuous_$ac_func 6103 1.1 christos 6104 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 6105 1.1 christos which can conflict with char $ac_func (); below. 6106 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6107 1.1 christos <limits.h> exists even on freestanding compilers. */ 6108 1.1 christos 6109 1.1 christos #ifdef __STDC__ 6110 1.1 christos # include <limits.h> 6111 1.1 christos #else 6112 1.1 christos # include <assert.h> 6113 1.1 christos #endif 6114 1.1 christos 6115 1.1 christos #undef $ac_func 6116 1.1 christos 6117 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6118 1.1 christos #ifdef __cplusplus 6119 1.1 christos extern "C" 6120 1.1 christos { 6121 1.1 christos #endif 6122 1.1 christos /* We use char because int might match the return type of a gcc2 6123 1.1 christos builtin and then its argument prototype would still apply. */ 6124 1.1 christos char $ac_func (); 6125 1.1 christos /* The GNU C library defines this for functions which it implements 6126 1.1 christos to always fail with ENOSYS. Some functions are actually named 6127 1.1 christos something starting with __ and the normal name is an alias. */ 6128 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6129 1.1 christos choke me 6130 1.1 christos #else 6131 1.1 christos char (*f) () = $ac_func; 6132 1.1 christos #endif 6133 1.1 christos #ifdef __cplusplus 6134 1.1 christos } 6135 1.1 christos #endif 6136 1.1 christos 6137 1.1 christos int 6138 1.1 christos main () 6139 1.1 christos { 6140 1.1 christos return f != $ac_func; 6141 1.1 christos ; 6142 1.1 christos return 0; 6143 1.1 christos } 6144 1.1 christos _ACEOF 6145 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6146 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6147 1.1 christos (eval $ac_link) 2>conftest.er1 6148 1.1 christos ac_status=$? 6149 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6150 1.1 christos rm -f conftest.er1 6151 1.1 christos cat conftest.err >&5 6152 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6153 1.1 christos (exit $ac_status); } && 6154 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 6155 1.1 christos || test ! -s conftest.err' 6156 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6157 1.1 christos (eval $ac_try) 2>&5 6158 1.1 christos ac_status=$? 6159 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6160 1.1 christos (exit $ac_status); }; } && 6161 1.1 christos { ac_try='test -s conftest$ac_exeext' 6162 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6163 1.1 christos (eval $ac_try) 2>&5 6164 1.1 christos ac_status=$? 6165 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6166 1.1 christos (exit $ac_status); }; }; then 6167 1.1 christos eval "$as_ac_var=yes" 6168 1.1 christos else 6169 1.1 christos echo "$as_me: failed program was:" >&5 6170 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6171 1.1 christos 6172 1.1 christos eval "$as_ac_var=no" 6173 1.1 christos fi 6174 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6175 1.1 christos conftest$ac_exeext conftest.$ac_ext 6176 1.1 christos fi 6177 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6178 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6179 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 6180 1.1 christos cat >>confdefs.h <<_ACEOF 6181 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6182 1.1 christos _ACEOF 6183 1.1 christos 6184 1.1 christos else 6185 1.1 christos case $LIBOBJS in 6186 1.1 christos "$ac_func.$ac_objext" | \ 6187 1.1 christos *" $ac_func.$ac_objext" | \ 6188 1.1 christos "$ac_func.$ac_objext "* | \ 6189 1.1 christos *" $ac_func.$ac_objext "* ) ;; 6190 1.1 christos *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6191 1.1 christos esac 6192 1.1 christos 6193 1.1 christos fi 6194 1.1 christos done 6195 1.1 christos 6196 1.1 christos 6197 1.1 christos if test $ac_cv_func_strcasecmp = no; then 6198 1.1 christos 6199 1.1 christos : 6200 1.1 christos 6201 1.1 christos fi 6202 1.1 christos 6203 1.1 christos 6204 1.1 christos 6205 1.1 christos for ac_func in strncasecmp 6206 1.1 christos do 6207 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6208 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 6209 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 6210 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 6211 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6212 1.1 christos else 6213 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6214 1.1 christos /* confdefs.h. */ 6215 1.1 christos _ACEOF 6216 1.1 christos cat confdefs.h >>conftest.$ac_ext 6217 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6218 1.1 christos /* end confdefs.h. */ 6219 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 6220 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6221 1.1 christos #define $ac_func innocuous_$ac_func 6222 1.1 christos 6223 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 6224 1.1 christos which can conflict with char $ac_func (); below. 6225 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6226 1.1 christos <limits.h> exists even on freestanding compilers. */ 6227 1.1 christos 6228 1.1 christos #ifdef __STDC__ 6229 1.1 christos # include <limits.h> 6230 1.1 christos #else 6231 1.1 christos # include <assert.h> 6232 1.1 christos #endif 6233 1.1 christos 6234 1.1 christos #undef $ac_func 6235 1.1 christos 6236 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6237 1.1 christos #ifdef __cplusplus 6238 1.1 christos extern "C" 6239 1.1 christos { 6240 1.1 christos #endif 6241 1.1 christos /* We use char because int might match the return type of a gcc2 6242 1.1 christos builtin and then its argument prototype would still apply. */ 6243 1.1 christos char $ac_func (); 6244 1.1 christos /* The GNU C library defines this for functions which it implements 6245 1.1 christos to always fail with ENOSYS. Some functions are actually named 6246 1.1 christos something starting with __ and the normal name is an alias. */ 6247 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 6248 1.1 christos choke me 6249 1.1 christos #else 6250 1.1 christos char (*f) () = $ac_func; 6251 1.1 christos #endif 6252 1.1 christos #ifdef __cplusplus 6253 1.1 christos } 6254 1.1 christos #endif 6255 1.1 christos 6256 1.1 christos int 6257 1.1 christos main () 6258 1.1 christos { 6259 1.1 christos return f != $ac_func; 6260 1.1 christos ; 6261 1.1 christos return 0; 6262 1.1 christos } 6263 1.1 christos _ACEOF 6264 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6265 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6266 1.1 christos (eval $ac_link) 2>conftest.er1 6267 1.1 christos ac_status=$? 6268 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6269 1.1 christos rm -f conftest.er1 6270 1.1 christos cat conftest.err >&5 6271 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6272 1.1 christos (exit $ac_status); } && 6273 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 6274 1.1 christos || test ! -s conftest.err' 6275 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6276 1.1 christos (eval $ac_try) 2>&5 6277 1.1 christos ac_status=$? 6278 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6279 1.1 christos (exit $ac_status); }; } && 6280 1.1 christos { ac_try='test -s conftest$ac_exeext' 6281 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6282 1.1 christos (eval $ac_try) 2>&5 6283 1.1 christos ac_status=$? 6284 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6285 1.1 christos (exit $ac_status); }; }; then 6286 1.1 christos eval "$as_ac_var=yes" 6287 1.1 christos else 6288 1.1 christos echo "$as_me: failed program was:" >&5 6289 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6290 1.1 christos 6291 1.1 christos eval "$as_ac_var=no" 6292 1.1 christos fi 6293 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6294 1.1 christos conftest$ac_exeext conftest.$ac_ext 6295 1.1 christos fi 6296 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 6297 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 6298 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 6299 1.1 christos cat >>confdefs.h <<_ACEOF 6300 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6301 1.1 christos _ACEOF 6302 1.1 christos 6303 1.1 christos else 6304 1.1 christos case $LIBOBJS in 6305 1.1 christos "$ac_func.$ac_objext" | \ 6306 1.1 christos *" $ac_func.$ac_objext" | \ 6307 1.1 christos "$ac_func.$ac_objext "* | \ 6308 1.1 christos *" $ac_func.$ac_objext "* ) ;; 6309 1.1 christos *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 6310 1.1 christos esac 6311 1.1 christos 6312 1.1 christos fi 6313 1.1 christos done 6314 1.1 christos 6315 1.1 christos 6316 1.1 christos if test $ac_cv_func_strncasecmp = no; then 6317 1.1 christos 6318 1.1 christos : 6319 1.1 christos 6320 1.1 christos fi 6321 1.1 christos 6322 1.1 christos 6323 1.1 christos 6324 1.1 christos # We want to recognize djgpp to avoid the useless warning about no 6325 1.1 christos # term library. 6326 1.1 christos # Make sure we can run config.sub. 6327 1.1 christos $ac_config_sub sun4 >/dev/null 2>&1 || 6328 1.1 christos { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 6329 1.1 christos echo "$as_me: error: cannot run $ac_config_sub" >&2;} 6330 1.1 christos { (exit 1); exit 1; }; } 6331 1.1 christos 6332 1.1 christos echo "$as_me:$LINENO: checking build system type" >&5 6333 1.1 christos echo $ECHO_N "checking build system type... $ECHO_C" >&6 6334 1.1 christos if test "${ac_cv_build+set}" = set; then 6335 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6336 1.1 christos else 6337 1.1 christos ac_cv_build_alias=$build_alias 6338 1.1 christos test -z "$ac_cv_build_alias" && 6339 1.1 christos ac_cv_build_alias=`$ac_config_guess` 6340 1.1 christos test -z "$ac_cv_build_alias" && 6341 1.1 christos { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 6342 1.1 christos echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 6343 1.1 christos { (exit 1); exit 1; }; } 6344 1.1 christos ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 6345 1.1 christos { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 6346 1.1 christos echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 6347 1.1 christos { (exit 1); exit 1; }; } 6348 1.1 christos 6349 1.1 christos fi 6350 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_build" >&5 6351 1.1 christos echo "${ECHO_T}$ac_cv_build" >&6 6352 1.1 christos build=$ac_cv_build 6353 1.1 christos build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 6354 1.1 christos build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 6355 1.1 christos build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 6356 1.1 christos 6357 1.1 christos 6358 1.1 christos 6359 1.1 christos # We need to run some of our own binaries, most notably makedoc, but as 6360 1.1 christos # long as we have this process, we also use our own makeinfo and 6361 1.1 christos # install-info. 6362 1.1 christos # 6363 1.1 christos # This means that if we are cross compiling, we have to configure the 6364 1.1 christos # package twice: once with the native compiler (this is done in a 6365 1.1 christos # subdirectory $native_tools), and once with the cross compiler. 6366 1.1 christos # The former is invoked automatically here, with --host=$build. 6367 1.1 christos # $native_tools is also added to SUBDIRS in the main Makefile.am, 6368 1.1 christos # so that make compiles the native tools first. 6369 1.1 christos # 6370 1.1 christos if test "$cross_compiling" = no; then 6371 1.1 christos native_tools= 6372 1.1 christos else 6373 1.1 christos native_tools=tools 6374 1.1 christos test -d "$native_tools" || mkdir "$native_tools" 6375 1.1 christos confdir=`(cd "$srcdir";pwd)` 6376 1.1 christos # Make sure the secondary configure won't fail with 6377 1.1 christos # "error: source directory already configured". 6378 1.1 christos rm -f config.status 6379 1.1 christos { echo "$as_me:$LINENO: Doing configure of native tools (${build})." >&5 6380 1.1 christos echo "$as_me: Doing configure of native tools (${build})." >&6;} 6381 1.1 christos cd "$native_tools" || exit 1 6382 1.1 christos # Run secondary configure in alternate environment or 6383 1.1 christos # it gets the wrong CC etc. env -i gives this build host configure 6384 1.1 christos # a clean environment. 6385 1.1 christos env -i CC="${BUILD_CC}" AR="${BUILD_AR}" RANLIB="${BUILD_RANLIB}" \ 6386 1.1 christos PATH="${PATH}" \ 6387 1.1 christos tools_only=1 \ 6388 1.1 christos ${confdir}/configure --build=${build} --host=${build} \ 6389 1.1 christos --disable-rpath --disable-nls 6390 1.1 christos cd .. || exit 1 6391 1.1 christos { echo "$as_me:$LINENO: Continuing with main configure (${host})." >&5 6392 1.1 christos echo "$as_me: Continuing with main configure (${host})." >&6;} 6393 1.1 christos fi 6394 1.1 christos 6395 1.1 christos 6396 1.1 christos 6397 1.1 christos if test "x$tools_only" = x1; then 6398 1.1 christos TOOLS_ONLY_TRUE= 6399 1.1 christos TOOLS_ONLY_FALSE='#' 6400 1.1 christos else 6401 1.1 christos TOOLS_ONLY_TRUE='#' 6402 1.1 christos TOOLS_ONLY_FALSE= 6403 1.1 christos fi 6404 1.1 christos 6405 1.1 christos 6406 1.1 christos # Some GNU/Linux systems (e.g., SuSE 4.3, 1996) don't have curses, but 6407 1.1 christos # rather ncurses. So we check for it. 6408 1.1 christos TERMLIBS= 6409 1.1 christos # Check for termlib before termcap because Solaris termcap needs libucb. 6410 1.1 christos TERMLIB_VARIANTS="ncurses curses termlib termcap terminfo" 6411 1.1 christos for termlib in ${TERMLIB_VARIANTS}; do 6412 1.1 christos as_ac_Lib=`echo "ac_cv_lib_${termlib}''_tgetent" | $as_tr_sh` 6413 1.1 christos echo "$as_me:$LINENO: checking for tgetent in -l${termlib}" >&5 6414 1.1 christos echo $ECHO_N "checking for tgetent in -l${termlib}... $ECHO_C" >&6 6415 1.1 christos if eval "test \"\${$as_ac_Lib+set}\" = set"; then 6416 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6417 1.1 christos else 6418 1.1 christos ac_check_lib_save_LIBS=$LIBS 6419 1.1 christos LIBS="-l${termlib} $LIBS" 6420 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6421 1.1 christos /* confdefs.h. */ 6422 1.1 christos _ACEOF 6423 1.1 christos cat confdefs.h >>conftest.$ac_ext 6424 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6425 1.1 christos /* end confdefs.h. */ 6426 1.1 christos 6427 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 6428 1.1 christos #ifdef __cplusplus 6429 1.1 christos extern "C" 6430 1.1 christos #endif 6431 1.1 christos /* We use char because int might match the return type of a gcc2 6432 1.1 christos builtin and then its argument prototype would still apply. */ 6433 1.1 christos char tgetent (); 6434 1.1 christos int 6435 1.1 christos main () 6436 1.1 christos { 6437 1.1 christos tgetent (); 6438 1.1 christos ; 6439 1.1 christos return 0; 6440 1.1 christos } 6441 1.1 christos _ACEOF 6442 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6443 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6444 1.1 christos (eval $ac_link) 2>conftest.er1 6445 1.1 christos ac_status=$? 6446 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6447 1.1 christos rm -f conftest.er1 6448 1.1 christos cat conftest.err >&5 6449 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6450 1.1 christos (exit $ac_status); } && 6451 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 6452 1.1 christos || test ! -s conftest.err' 6453 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6454 1.1 christos (eval $ac_try) 2>&5 6455 1.1 christos ac_status=$? 6456 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6457 1.1 christos (exit $ac_status); }; } && 6458 1.1 christos { ac_try='test -s conftest$ac_exeext' 6459 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6460 1.1 christos (eval $ac_try) 2>&5 6461 1.1 christos ac_status=$? 6462 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6463 1.1 christos (exit $ac_status); }; }; then 6464 1.1 christos eval "$as_ac_Lib=yes" 6465 1.1 christos else 6466 1.1 christos echo "$as_me: failed program was:" >&5 6467 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6468 1.1 christos 6469 1.1 christos eval "$as_ac_Lib=no" 6470 1.1 christos fi 6471 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6472 1.1 christos conftest$ac_exeext conftest.$ac_ext 6473 1.1 christos LIBS=$ac_check_lib_save_LIBS 6474 1.1 christos fi 6475 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 6476 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 6477 1.1 christos if test `eval echo '${'$as_ac_Lib'}'` = yes; then 6478 1.1 christos TERMLIBS="${TERMLIBS} -l${termlib}"; break 6479 1.1 christos fi 6480 1.1 christos 6481 1.1 christos done 6482 1.1 christos # don't bother warning on djgpp, it doesn't have a term library, it 6483 1.1 christos # ports each termcap-needing program separately according to its needs. 6484 1.1 christos if test -z "$TERMLIBS" && echo "$build" | grep -v djgpp >/dev/null; then 6485 1.1 christos { echo "$as_me:$LINENO: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&5 6486 1.1 christos echo "$as_me: WARNING: probably need a terminal library, one of: ${TERMLIB_VARIANTS}" >&2;} 6487 1.1 christos fi 6488 1.1 christos 6489 1.1 christos # Checks for variables. 6490 1.1 christos # HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc. 6491 1.1 christos echo "$as_me:$LINENO: checking for library with termcap variables" >&5 6492 1.1 christos echo $ECHO_N "checking for library with termcap variables... $ECHO_C" >&6 6493 1.1 christos if test "${ac_cv_var_ospeed+set}" = set; then 6494 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6495 1.1 christos else 6496 1.1 christos oldLIBS=$LIBS 6497 1.1 christos for trylib in $termlib ${TERMLIB_VARIANTS}; do 6498 1.1 christos if test "x$trylib" != "x$termlib"; then 6499 1.1 christos LIBS="$oldLIBS -l$termlib -l$trylib" 6500 1.1 christos else 6501 1.1 christos LIBS="$oldLIBS -l$termlib" 6502 1.1 christos fi 6503 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6504 1.1 christos /* confdefs.h. */ 6505 1.1 christos _ACEOF 6506 1.1 christos cat confdefs.h >>conftest.$ac_ext 6507 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6508 1.1 christos /* end confdefs.h. */ 6509 1.1 christos 6510 1.1 christos int 6511 1.1 christos main () 6512 1.1 christos { 6513 1.1 christos #ifdef HAVE_NCURSES_TERMCAP_H 6514 1.1 christos #include <ncurses/termcap.h> 6515 1.1 christos #else 6516 1.1 christos #ifdef HAVE_TERMCAP_H 6517 1.1 christos #include <termcap.h> 6518 1.1 christos #else 6519 1.1 christos #undef PC 6520 1.1 christos char *BC; 6521 1.1 christos char **UP; 6522 1.1 christos char PC; 6523 1.1 christos short ospeed; 6524 1.1 christos #endif 6525 1.1 christos #endif 6526 1.1 christos /* Make sure all variables actually exist. AIX 4.3 has ospeed but no BC. 6527 1.1 christos --Andreas Ley <andy@rz.uni-karlsruhe.de> 24 Aug 2000. */ 6528 1.1 christos BC++; 6529 1.1 christos UP++; 6530 1.1 christos PC++; 6531 1.1 christos return ospeed != 0; 6532 1.1 christos 6533 1.1 christos ; 6534 1.1 christos return 0; 6535 1.1 christos } 6536 1.1 christos _ACEOF 6537 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 6538 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6539 1.1 christos (eval $ac_link) 2>conftest.er1 6540 1.1 christos ac_status=$? 6541 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6542 1.1 christos rm -f conftest.er1 6543 1.1 christos cat conftest.err >&5 6544 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6545 1.1 christos (exit $ac_status); } && 6546 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 6547 1.1 christos || test ! -s conftest.err' 6548 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6549 1.1 christos (eval $ac_try) 2>&5 6550 1.1 christos ac_status=$? 6551 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6552 1.1 christos (exit $ac_status); }; } && 6553 1.1 christos { ac_try='test -s conftest$ac_exeext' 6554 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6555 1.1 christos (eval $ac_try) 2>&5 6556 1.1 christos ac_status=$? 6557 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6558 1.1 christos (exit $ac_status); }; }; then 6559 1.1 christos ac_cv_var_ospeed=$trylib; break 6560 1.1 christos else 6561 1.1 christos echo "$as_me: failed program was:" >&5 6562 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6563 1.1 christos 6564 1.1 christos fi 6565 1.1 christos rm -f conftest.err conftest.$ac_objext \ 6566 1.1 christos conftest$ac_exeext conftest.$ac_ext 6567 1.1 christos done 6568 1.1 christos LIBS=$oldLIBS 6569 1.1 christos 6570 1.1 christos fi 6571 1.1 christos 6572 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_var_ospeed" >&5 6573 1.1 christos echo "${ECHO_T}$ac_cv_var_ospeed" >&6 6574 1.1 christos if test -n "$ac_cv_var_ospeed" \ 6575 1.1 christos && test "x$termlib" != "x$ac_cv_var_ospeed"; then 6576 1.1 christos TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}" 6577 1.1 christos fi 6578 1.1 christos # 6579 1.1 christos 6580 1.1 christos # Do not use <ncurses/termcap.h> unless we're linking with ncurses. 6581 1.1 christos # Must come after the termlib tests. 6582 1.1 christos if test "x$termlib" = xncurses; then 6583 1.1 christos # Use AC_CHECK_HEADERS so the HAVE_*_H symbol gets defined. 6584 1.1 christos 6585 1.1 christos for ac_header in ncurses/termcap.h 6586 1.1 christos do 6587 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6588 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6589 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 6590 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6591 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6592 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6593 1.1 christos fi 6594 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6595 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6596 1.1 christos else 6597 1.1 christos # Is the header compilable? 6598 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 6599 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6600 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6601 1.1 christos /* confdefs.h. */ 6602 1.1 christos _ACEOF 6603 1.1 christos cat confdefs.h >>conftest.$ac_ext 6604 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6605 1.1 christos /* end confdefs.h. */ 6606 1.1 christos $ac_includes_default 6607 1.1 christos #include <$ac_header> 6608 1.1 christos _ACEOF 6609 1.1 christos rm -f conftest.$ac_objext 6610 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6611 1.1 christos (eval $ac_compile) 2>conftest.er1 6612 1.1 christos ac_status=$? 6613 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6614 1.1 christos rm -f conftest.er1 6615 1.1 christos cat conftest.err >&5 6616 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6617 1.1 christos (exit $ac_status); } && 6618 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 6619 1.1 christos || test ! -s conftest.err' 6620 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6621 1.1 christos (eval $ac_try) 2>&5 6622 1.1 christos ac_status=$? 6623 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6624 1.1 christos (exit $ac_status); }; } && 6625 1.1 christos { ac_try='test -s conftest.$ac_objext' 6626 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6627 1.1 christos (eval $ac_try) 2>&5 6628 1.1 christos ac_status=$? 6629 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6630 1.1 christos (exit $ac_status); }; }; then 6631 1.1 christos ac_header_compiler=yes 6632 1.1 christos else 6633 1.1 christos echo "$as_me: failed program was:" >&5 6634 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6635 1.1 christos 6636 1.1 christos ac_header_compiler=no 6637 1.1 christos fi 6638 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6639 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6640 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 6641 1.1 christos 6642 1.1 christos # Is the header present? 6643 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 6644 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6645 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6646 1.1 christos /* confdefs.h. */ 6647 1.1 christos _ACEOF 6648 1.1 christos cat confdefs.h >>conftest.$ac_ext 6649 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6650 1.1 christos /* end confdefs.h. */ 6651 1.1 christos #include <$ac_header> 6652 1.1 christos _ACEOF 6653 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6654 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6655 1.1 christos ac_status=$? 6656 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6657 1.1 christos rm -f conftest.er1 6658 1.1 christos cat conftest.err >&5 6659 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6660 1.1 christos (exit $ac_status); } >/dev/null; then 6661 1.1 christos if test -s conftest.err; then 6662 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 6663 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6664 1.1 christos else 6665 1.1 christos ac_cpp_err= 6666 1.1 christos fi 6667 1.1 christos else 6668 1.1 christos ac_cpp_err=yes 6669 1.1 christos fi 6670 1.1 christos if test -z "$ac_cpp_err"; then 6671 1.1 christos ac_header_preproc=yes 6672 1.1 christos else 6673 1.1 christos echo "$as_me: failed program was:" >&5 6674 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6675 1.1 christos 6676 1.1 christos ac_header_preproc=no 6677 1.1 christos fi 6678 1.1 christos rm -f conftest.err conftest.$ac_ext 6679 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6680 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 6681 1.1 christos 6682 1.1 christos # So? What about this header? 6683 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6684 1.1 christos yes:no: ) 6685 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6686 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6687 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6688 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6689 1.1 christos ac_header_preproc=yes 6690 1.1 christos ;; 6691 1.1 christos no:yes:* ) 6692 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6693 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6694 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6695 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6696 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6697 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6698 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6699 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6700 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6701 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6702 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6703 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6704 1.1 christos ( 6705 1.1 christos cat <<\_ASBOX 6706 1.1 christos ## -------------------------------------- ## 6707 1.1 christos ## Report this to the GNU Texinfo lists. ## 6708 1.1 christos ## -------------------------------------- ## 6709 1.1 christos _ASBOX 6710 1.1 christos ) | 6711 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 6712 1.1 christos ;; 6713 1.1 christos esac 6714 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 6715 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6716 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6717 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6718 1.1 christos else 6719 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 6720 1.1 christos fi 6721 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6722 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6723 1.1 christos 6724 1.1 christos fi 6725 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 6726 1.1 christos cat >>confdefs.h <<_ACEOF 6727 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6728 1.1 christos _ACEOF 6729 1.1 christos 6730 1.1 christos fi 6731 1.1 christos 6732 1.1 christos done 6733 1.1 christos 6734 1.1 christos fi 6735 1.1 christos 6736 1.1 christos # gnulib. 6737 1.1 christos 6738 1.1 christos 6739 1.1 christos 6740 1.1 christos 6741 1.1 christos 6742 1.1 christos for ac_header in $gl_header_list 6743 1.1 christos do 6744 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6745 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6746 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 6747 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6748 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6749 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6750 1.1 christos fi 6751 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6752 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6753 1.1 christos else 6754 1.1 christos # Is the header compilable? 6755 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 6756 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 6757 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6758 1.1 christos /* confdefs.h. */ 6759 1.1 christos _ACEOF 6760 1.1 christos cat confdefs.h >>conftest.$ac_ext 6761 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6762 1.1 christos /* end confdefs.h. */ 6763 1.1 christos $ac_includes_default 6764 1.1 christos #include <$ac_header> 6765 1.1 christos _ACEOF 6766 1.1 christos rm -f conftest.$ac_objext 6767 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6768 1.1 christos (eval $ac_compile) 2>conftest.er1 6769 1.1 christos ac_status=$? 6770 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6771 1.1 christos rm -f conftest.er1 6772 1.1 christos cat conftest.err >&5 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 -z "$ac_c_werror_flag" 6776 1.1 christos || test ! -s conftest.err' 6777 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6778 1.1 christos (eval $ac_try) 2>&5 6779 1.1 christos ac_status=$? 6780 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6781 1.1 christos (exit $ac_status); }; } && 6782 1.1 christos { ac_try='test -s conftest.$ac_objext' 6783 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6784 1.1 christos (eval $ac_try) 2>&5 6785 1.1 christos ac_status=$? 6786 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6787 1.1 christos (exit $ac_status); }; }; then 6788 1.1 christos ac_header_compiler=yes 6789 1.1 christos else 6790 1.1 christos echo "$as_me: failed program was:" >&5 6791 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6792 1.1 christos 6793 1.1 christos ac_header_compiler=no 6794 1.1 christos fi 6795 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6796 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6797 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 6798 1.1 christos 6799 1.1 christos # Is the header present? 6800 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 6801 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 6802 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6803 1.1 christos /* confdefs.h. */ 6804 1.1 christos _ACEOF 6805 1.1 christos cat confdefs.h >>conftest.$ac_ext 6806 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6807 1.1 christos /* end confdefs.h. */ 6808 1.1 christos #include <$ac_header> 6809 1.1 christos _ACEOF 6810 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 6811 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 6812 1.1 christos ac_status=$? 6813 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6814 1.1 christos rm -f conftest.er1 6815 1.1 christos cat conftest.err >&5 6816 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6817 1.1 christos (exit $ac_status); } >/dev/null; then 6818 1.1 christos if test -s conftest.err; then 6819 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 6820 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 6821 1.1 christos else 6822 1.1 christos ac_cpp_err= 6823 1.1 christos fi 6824 1.1 christos else 6825 1.1 christos ac_cpp_err=yes 6826 1.1 christos fi 6827 1.1 christos if test -z "$ac_cpp_err"; then 6828 1.1 christos ac_header_preproc=yes 6829 1.1 christos else 6830 1.1 christos echo "$as_me: failed program was:" >&5 6831 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6832 1.1 christos 6833 1.1 christos ac_header_preproc=no 6834 1.1 christos fi 6835 1.1 christos rm -f conftest.err conftest.$ac_ext 6836 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6837 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 6838 1.1 christos 6839 1.1 christos # So? What about this header? 6840 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6841 1.1 christos yes:no: ) 6842 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6843 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6844 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6845 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6846 1.1 christos ac_header_preproc=yes 6847 1.1 christos ;; 6848 1.1 christos no:yes:* ) 6849 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6850 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6851 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6852 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6853 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6854 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6855 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6856 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6857 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6858 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6859 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6860 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6861 1.1 christos ( 6862 1.1 christos cat <<\_ASBOX 6863 1.1 christos ## -------------------------------------- ## 6864 1.1 christos ## Report this to the GNU Texinfo lists. ## 6865 1.1 christos ## -------------------------------------- ## 6866 1.1 christos _ASBOX 6867 1.1 christos ) | 6868 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 6869 1.1 christos ;; 6870 1.1 christos esac 6871 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 6872 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 6873 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 6874 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6875 1.1 christos else 6876 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 6877 1.1 christos fi 6878 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6879 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6880 1.1 christos 6881 1.1 christos fi 6882 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 6883 1.1 christos cat >>confdefs.h <<_ACEOF 6884 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6885 1.1 christos _ACEOF 6886 1.1 christos 6887 1.1 christos fi 6888 1.1 christos 6889 1.1 christos done 6890 1.1 christos 6891 1.1 christos 6892 1.1 christos 6893 1.1 christos 6894 1.1 christos 6895 1.1 christos 6896 1.1 christos 6897 1.1 christos 6898 1.1 christos 6899 1.1 christos 6900 1.1 christos 6901 1.1 christos 6902 1.1 christos 6903 1.1 christos 6904 1.1 christos 6905 1.1 christos 6906 1.1 christos 6907 1.1 christos 6908 1.1 christos 6909 1.1 christos echo "$as_me:$LINENO: checking whether getenv is declared" >&5 6910 1.1 christos echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 6911 1.1 christos if test "${ac_cv_have_decl_getenv+set}" = set; then 6912 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6913 1.1 christos else 6914 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6915 1.1 christos /* confdefs.h. */ 6916 1.1 christos _ACEOF 6917 1.1 christos cat confdefs.h >>conftest.$ac_ext 6918 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6919 1.1 christos /* end confdefs.h. */ 6920 1.1 christos $ac_includes_default 6921 1.1 christos int 6922 1.1 christos main () 6923 1.1 christos { 6924 1.1 christos #ifndef getenv 6925 1.1 christos char *p = (char *) getenv; 6926 1.1 christos #endif 6927 1.1 christos 6928 1.1 christos ; 6929 1.1 christos return 0; 6930 1.1 christos } 6931 1.1 christos _ACEOF 6932 1.1 christos rm -f conftest.$ac_objext 6933 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6934 1.1 christos (eval $ac_compile) 2>conftest.er1 6935 1.1 christos ac_status=$? 6936 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 6937 1.1 christos rm -f conftest.er1 6938 1.1 christos cat conftest.err >&5 6939 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 6940 1.1 christos (exit $ac_status); } && 6941 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 6942 1.1 christos || test ! -s conftest.err' 6943 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6944 1.1 christos (eval $ac_try) 2>&5 6945 1.1 christos ac_status=$? 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 -s conftest.$ac_objext' 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); }; }; then 6954 1.1 christos ac_cv_have_decl_getenv=yes 6955 1.1 christos else 6956 1.1 christos echo "$as_me: failed program was:" >&5 6957 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 6958 1.1 christos 6959 1.1 christos ac_cv_have_decl_getenv=no 6960 1.1 christos fi 6961 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6962 1.1 christos fi 6963 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 6964 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 6965 1.1 christos if test $ac_cv_have_decl_getenv = yes; then 6966 1.1 christos 6967 1.1 christos cat >>confdefs.h <<_ACEOF 6968 1.1 christos #define HAVE_DECL_GETENV 1 6969 1.1 christos _ACEOF 6970 1.1 christos 6971 1.1 christos 6972 1.1 christos else 6973 1.1 christos cat >>confdefs.h <<_ACEOF 6974 1.1 christos #define HAVE_DECL_GETENV 0 6975 1.1 christos _ACEOF 6976 1.1 christos 6977 1.1 christos 6978 1.1 christos fi 6979 1.1 christos 6980 1.1 christos 6981 1.1 christos 6982 1.1 christos 6983 1.1 christos echo "$as_me:$LINENO: checking for inttypes.h" >&5 6984 1.1 christos echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 6985 1.1 christos if test "${gl_cv_header_inttypes_h+set}" = set; then 6986 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 6987 1.1 christos else 6988 1.1 christos cat >conftest.$ac_ext <<_ACEOF 6989 1.1 christos /* confdefs.h. */ 6990 1.1 christos _ACEOF 6991 1.1 christos cat confdefs.h >>conftest.$ac_ext 6992 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 6993 1.1 christos /* end confdefs.h. */ 6994 1.1 christos #include <sys/types.h> 6995 1.1 christos #include <inttypes.h> 6996 1.1 christos int 6997 1.1 christos main () 6998 1.1 christos { 6999 1.1 christos uintmax_t i = (uintmax_t) -1; 7000 1.1 christos ; 7001 1.1 christos return 0; 7002 1.1 christos } 7003 1.1 christos _ACEOF 7004 1.1 christos rm -f conftest.$ac_objext 7005 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7006 1.1 christos (eval $ac_compile) 2>conftest.er1 7007 1.1 christos ac_status=$? 7008 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7009 1.1 christos rm -f conftest.er1 7010 1.1 christos cat conftest.err >&5 7011 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7012 1.1 christos (exit $ac_status); } && 7013 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 7014 1.1 christos || test ! -s conftest.err' 7015 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7016 1.1 christos (eval $ac_try) 2>&5 7017 1.1 christos ac_status=$? 7018 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7019 1.1 christos (exit $ac_status); }; } && 7020 1.1 christos { ac_try='test -s conftest.$ac_objext' 7021 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7022 1.1 christos (eval $ac_try) 2>&5 7023 1.1 christos ac_status=$? 7024 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7025 1.1 christos (exit $ac_status); }; }; then 7026 1.1 christos gl_cv_header_inttypes_h=yes 7027 1.1 christos else 7028 1.1 christos echo "$as_me: failed program was:" >&5 7029 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7030 1.1 christos 7031 1.1 christos gl_cv_header_inttypes_h=no 7032 1.1 christos fi 7033 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7034 1.1 christos fi 7035 1.1 christos echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5 7036 1.1 christos echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6 7037 1.1 christos if test $gl_cv_header_inttypes_h = yes; then 7038 1.1 christos 7039 1.1 christos cat >>confdefs.h <<_ACEOF 7040 1.1 christos #define HAVE_INTTYPES_H_WITH_UINTMAX 1 7041 1.1 christos _ACEOF 7042 1.1 christos 7043 1.1 christos fi 7044 1.1 christos 7045 1.1 christos 7046 1.1 christos echo "$as_me:$LINENO: checking for stdint.h" >&5 7047 1.1 christos echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 7048 1.1 christos if test "${gl_cv_header_stdint_h+set}" = set; then 7049 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7050 1.1 christos else 7051 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7052 1.1 christos /* confdefs.h. */ 7053 1.1 christos _ACEOF 7054 1.1 christos cat confdefs.h >>conftest.$ac_ext 7055 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7056 1.1 christos /* end confdefs.h. */ 7057 1.1 christos #include <sys/types.h> 7058 1.1 christos #include <stdint.h> 7059 1.1 christos int 7060 1.1 christos main () 7061 1.1 christos { 7062 1.1 christos uintmax_t i = (uintmax_t) -1; 7063 1.1 christos ; 7064 1.1 christos return 0; 7065 1.1 christos } 7066 1.1 christos _ACEOF 7067 1.1 christos rm -f conftest.$ac_objext 7068 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7069 1.1 christos (eval $ac_compile) 2>conftest.er1 7070 1.1 christos ac_status=$? 7071 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7072 1.1 christos rm -f conftest.er1 7073 1.1 christos cat conftest.err >&5 7074 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7075 1.1 christos (exit $ac_status); } && 7076 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 7077 1.1 christos || test ! -s conftest.err' 7078 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7079 1.1 christos (eval $ac_try) 2>&5 7080 1.1 christos ac_status=$? 7081 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7082 1.1 christos (exit $ac_status); }; } && 7083 1.1 christos { ac_try='test -s conftest.$ac_objext' 7084 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7085 1.1 christos (eval $ac_try) 2>&5 7086 1.1 christos ac_status=$? 7087 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7088 1.1 christos (exit $ac_status); }; }; then 7089 1.1 christos gl_cv_header_stdint_h=yes 7090 1.1 christos else 7091 1.1 christos echo "$as_me: failed program was:" >&5 7092 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7093 1.1 christos 7094 1.1 christos gl_cv_header_stdint_h=no 7095 1.1 christos fi 7096 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7097 1.1 christos fi 7098 1.1 christos echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5 7099 1.1 christos echo "${ECHO_T}$gl_cv_header_stdint_h" >&6 7100 1.1 christos if test $gl_cv_header_stdint_h = yes; then 7101 1.1 christos 7102 1.1 christos cat >>confdefs.h <<_ACEOF 7103 1.1 christos #define HAVE_STDINT_H_WITH_UINTMAX 1 7104 1.1 christos _ACEOF 7105 1.1 christos 7106 1.1 christos fi 7107 1.1 christos 7108 1.1 christos 7109 1.1 christos echo "$as_me:$LINENO: checking for unsigned long long" >&5 7110 1.1 christos echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 7111 1.1 christos if test "${ac_cv_type_unsigned_long_long+set}" = set; then 7112 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7113 1.1 christos else 7114 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7115 1.1 christos /* confdefs.h. */ 7116 1.1 christos _ACEOF 7117 1.1 christos cat confdefs.h >>conftest.$ac_ext 7118 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7119 1.1 christos /* end confdefs.h. */ 7120 1.1 christos unsigned long long ull = 1ULL; int i = 63; 7121 1.1 christos int 7122 1.1 christos main () 7123 1.1 christos { 7124 1.1 christos unsigned long long ullmax = (unsigned long long) -1; 7125 1.1 christos return ull << i | ull >> i | ullmax / ull | ullmax % ull; 7126 1.1 christos ; 7127 1.1 christos return 0; 7128 1.1 christos } 7129 1.1 christos _ACEOF 7130 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 7131 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7132 1.1 christos (eval $ac_link) 2>conftest.er1 7133 1.1 christos ac_status=$? 7134 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7135 1.1 christos rm -f conftest.er1 7136 1.1 christos cat conftest.err >&5 7137 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7138 1.1 christos (exit $ac_status); } && 7139 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 7140 1.1 christos || test ! -s conftest.err' 7141 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7142 1.1 christos (eval $ac_try) 2>&5 7143 1.1 christos ac_status=$? 7144 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7145 1.1 christos (exit $ac_status); }; } && 7146 1.1 christos { ac_try='test -s conftest$ac_exeext' 7147 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7148 1.1 christos (eval $ac_try) 2>&5 7149 1.1 christos ac_status=$? 7150 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7151 1.1 christos (exit $ac_status); }; }; then 7152 1.1 christos ac_cv_type_unsigned_long_long=yes 7153 1.1 christos else 7154 1.1 christos echo "$as_me: failed program was:" >&5 7155 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7156 1.1 christos 7157 1.1 christos ac_cv_type_unsigned_long_long=no 7158 1.1 christos fi 7159 1.1 christos rm -f conftest.err conftest.$ac_objext \ 7160 1.1 christos conftest$ac_exeext conftest.$ac_ext 7161 1.1 christos fi 7162 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 7163 1.1 christos echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 7164 1.1 christos if test $ac_cv_type_unsigned_long_long = yes; then 7165 1.1 christos 7166 1.1 christos cat >>confdefs.h <<\_ACEOF 7167 1.1 christos #define HAVE_UNSIGNED_LONG_LONG 1 7168 1.1 christos _ACEOF 7169 1.1 christos 7170 1.1 christos fi 7171 1.1 christos 7172 1.1 christos 7173 1.1 christos 7174 1.1 christos 7175 1.1 christos if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 7176 1.1 christos 7177 1.1 christos test $ac_cv_type_unsigned_long_long = yes \ 7178 1.1 christos && ac_type='unsigned long long' \ 7179 1.1 christos || ac_type='unsigned long' 7180 1.1 christos 7181 1.1 christos cat >>confdefs.h <<_ACEOF 7182 1.1 christos #define uintmax_t $ac_type 7183 1.1 christos _ACEOF 7184 1.1 christos 7185 1.1 christos else 7186 1.1 christos 7187 1.1 christos cat >>confdefs.h <<\_ACEOF 7188 1.1 christos #define HAVE_UINTMAX_T 1 7189 1.1 christos _ACEOF 7190 1.1 christos 7191 1.1 christos fi 7192 1.1 christos 7193 1.1 christos 7194 1.1 christos for ac_func in mkstemp 7195 1.1 christos do 7196 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7197 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 7198 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7199 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 7200 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7201 1.1 christos else 7202 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7203 1.1 christos /* confdefs.h. */ 7204 1.1 christos _ACEOF 7205 1.1 christos cat confdefs.h >>conftest.$ac_ext 7206 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7207 1.1 christos /* end confdefs.h. */ 7208 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7209 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7210 1.1 christos #define $ac_func innocuous_$ac_func 7211 1.1 christos 7212 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 7213 1.1 christos which can conflict with char $ac_func (); below. 7214 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7215 1.1 christos <limits.h> exists even on freestanding compilers. */ 7216 1.1 christos 7217 1.1 christos #ifdef __STDC__ 7218 1.1 christos # include <limits.h> 7219 1.1 christos #else 7220 1.1 christos # include <assert.h> 7221 1.1 christos #endif 7222 1.1 christos 7223 1.1 christos #undef $ac_func 7224 1.1 christos 7225 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 7226 1.1 christos #ifdef __cplusplus 7227 1.1 christos extern "C" 7228 1.1 christos { 7229 1.1 christos #endif 7230 1.1 christos /* We use char because int might match the return type of a gcc2 7231 1.1 christos builtin and then its argument prototype would still apply. */ 7232 1.1 christos char $ac_func (); 7233 1.1 christos /* The GNU C library defines this for functions which it implements 7234 1.1 christos to always fail with ENOSYS. Some functions are actually named 7235 1.1 christos something starting with __ and the normal name is an alias. */ 7236 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7237 1.1 christos choke me 7238 1.1 christos #else 7239 1.1 christos char (*f) () = $ac_func; 7240 1.1 christos #endif 7241 1.1 christos #ifdef __cplusplus 7242 1.1 christos } 7243 1.1 christos #endif 7244 1.1 christos 7245 1.1 christos int 7246 1.1 christos main () 7247 1.1 christos { 7248 1.1 christos return f != $ac_func; 7249 1.1 christos ; 7250 1.1 christos return 0; 7251 1.1 christos } 7252 1.1 christos _ACEOF 7253 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 7254 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7255 1.1 christos (eval $ac_link) 2>conftest.er1 7256 1.1 christos ac_status=$? 7257 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7258 1.1 christos rm -f conftest.er1 7259 1.1 christos cat conftest.err >&5 7260 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7261 1.1 christos (exit $ac_status); } && 7262 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 7263 1.1 christos || test ! -s conftest.err' 7264 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7265 1.1 christos (eval $ac_try) 2>&5 7266 1.1 christos ac_status=$? 7267 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7268 1.1 christos (exit $ac_status); }; } && 7269 1.1 christos { ac_try='test -s conftest$ac_exeext' 7270 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7271 1.1 christos (eval $ac_try) 2>&5 7272 1.1 christos ac_status=$? 7273 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7274 1.1 christos (exit $ac_status); }; }; then 7275 1.1 christos eval "$as_ac_var=yes" 7276 1.1 christos else 7277 1.1 christos echo "$as_me: failed program was:" >&5 7278 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7279 1.1 christos 7280 1.1 christos eval "$as_ac_var=no" 7281 1.1 christos fi 7282 1.1 christos rm -f conftest.err conftest.$ac_objext \ 7283 1.1 christos conftest$ac_exeext conftest.$ac_ext 7284 1.1 christos fi 7285 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7286 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7287 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 7288 1.1 christos cat >>confdefs.h <<_ACEOF 7289 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7290 1.1 christos _ACEOF 7291 1.1 christos 7292 1.1 christos else 7293 1.1 christos case $LIBOBJS in 7294 1.1 christos "$ac_func.$ac_objext" | \ 7295 1.1 christos *" $ac_func.$ac_objext" | \ 7296 1.1 christos "$ac_func.$ac_objext "* | \ 7297 1.1 christos *" $ac_func.$ac_objext "* ) ;; 7298 1.1 christos *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; 7299 1.1 christos esac 7300 1.1 christos 7301 1.1 christos fi 7302 1.1 christos done 7303 1.1 christos 7304 1.1 christos 7305 1.1 christos if test $ac_cv_func_mkstemp = no; then 7306 1.1 christos gl_cv_func_mkstemp_limitations=yes 7307 1.1 christos else 7308 1.1 christos echo "$as_me:$LINENO: checking for mkstemp limitations" >&5 7309 1.1 christos echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6 7310 1.1 christos if test "${gl_cv_func_mkstemp_limitations+set}" = set; then 7311 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7312 1.1 christos else 7313 1.1 christos 7314 1.1 christos if test "$cross_compiling" = yes; then 7315 1.1 christos gl_cv_func_mkstemp_limitations=yes 7316 1.1 christos 7317 1.1 christos else 7318 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7319 1.1 christos /* confdefs.h. */ 7320 1.1 christos _ACEOF 7321 1.1 christos cat confdefs.h >>conftest.$ac_ext 7322 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7323 1.1 christos /* end confdefs.h. */ 7324 1.1 christos 7325 1.1 christos # include <stdlib.h> 7326 1.1 christos int main () 7327 1.1 christos { 7328 1.1 christos int i; 7329 1.1 christos for (i = 0; i < 70; i++) 7330 1.1 christos { 7331 1.1 christos char template[] = "conftestXXXXXX"; 7332 1.1 christos int fd = mkstemp (template); 7333 1.1 christos if (fd == -1) 7334 1.1 christos exit (1); 7335 1.1 christos close (fd); 7336 1.1 christos } 7337 1.1 christos exit (0); 7338 1.1 christos } 7339 1.1 christos 7340 1.1 christos _ACEOF 7341 1.1 christos rm -f conftest$ac_exeext 7342 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7343 1.1 christos (eval $ac_link) 2>&5 7344 1.1 christos ac_status=$? 7345 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7346 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7347 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7348 1.1 christos (eval $ac_try) 2>&5 7349 1.1 christos ac_status=$? 7350 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7351 1.1 christos (exit $ac_status); }; }; then 7352 1.1 christos gl_cv_func_mkstemp_limitations=no 7353 1.1 christos else 7354 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 7355 1.1 christos echo "$as_me: failed program was:" >&5 7356 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7357 1.1 christos 7358 1.1 christos ( exit $ac_status ) 7359 1.1 christos gl_cv_func_mkstemp_limitations=yes 7360 1.1 christos fi 7361 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7362 1.1 christos fi 7363 1.1 christos 7364 1.1 christos 7365 1.1 christos fi 7366 1.1 christos echo "$as_me:$LINENO: result: $gl_cv_func_mkstemp_limitations" >&5 7367 1.1 christos echo "${ECHO_T}$gl_cv_func_mkstemp_limitations" >&6 7368 1.1 christos fi 7369 1.1 christos 7370 1.1 christos if test $gl_cv_func_mkstemp_limitations = yes; then 7371 1.1 christos case $LIBOBJS in 7372 1.1 christos "mkstemp.$ac_objext" | \ 7373 1.1 christos *" mkstemp.$ac_objext" | \ 7374 1.1 christos "mkstemp.$ac_objext "* | \ 7375 1.1 christos *" mkstemp.$ac_objext "* ) ;; 7376 1.1 christos *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" ;; 7377 1.1 christos esac 7378 1.1 christos 7379 1.1 christos case $LIBOBJS in 7380 1.1 christos "tempname.$ac_objext" | \ 7381 1.1 christos *" tempname.$ac_objext" | \ 7382 1.1 christos "tempname.$ac_objext "* | \ 7383 1.1 christos *" tempname.$ac_objext "* ) ;; 7384 1.1 christos *) LIBOBJS="$LIBOBJS tempname.$ac_objext" ;; 7385 1.1 christos esac 7386 1.1 christos 7387 1.1 christos 7388 1.1 christos cat >>confdefs.h <<\_ACEOF 7389 1.1 christos #define mkstemp rpl_mkstemp 7390 1.1 christos _ACEOF 7391 1.1 christos 7392 1.1 christos 7393 1.1 christos 7394 1.1 christos 7395 1.1 christos 7396 1.1 christos 7397 1.1 christos : 7398 1.1 christos 7399 1.1 christos 7400 1.1 christos 7401 1.1 christos 7402 1.1 christos 7403 1.1 christos 7404 1.1 christos 7405 1.1 christos 7406 1.1 christos 7407 1.1 christos 7408 1.1 christos 7409 1.1 christos 7410 1.1 christos for ac_header in stdint.h 7411 1.1 christos do 7412 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7413 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 7414 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 7415 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7416 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 7417 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7418 1.1 christos fi 7419 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7420 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7421 1.1 christos else 7422 1.1 christos # Is the header compilable? 7423 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 7424 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 7425 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7426 1.1 christos /* confdefs.h. */ 7427 1.1 christos _ACEOF 7428 1.1 christos cat confdefs.h >>conftest.$ac_ext 7429 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7430 1.1 christos /* end confdefs.h. */ 7431 1.1 christos $ac_includes_default 7432 1.1 christos #include <$ac_header> 7433 1.1 christos _ACEOF 7434 1.1 christos rm -f conftest.$ac_objext 7435 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7436 1.1 christos (eval $ac_compile) 2>conftest.er1 7437 1.1 christos ac_status=$? 7438 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7439 1.1 christos rm -f conftest.er1 7440 1.1 christos cat conftest.err >&5 7441 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7442 1.1 christos (exit $ac_status); } && 7443 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 7444 1.1 christos || test ! -s conftest.err' 7445 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7446 1.1 christos (eval $ac_try) 2>&5 7447 1.1 christos ac_status=$? 7448 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7449 1.1 christos (exit $ac_status); }; } && 7450 1.1 christos { ac_try='test -s conftest.$ac_objext' 7451 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7452 1.1 christos (eval $ac_try) 2>&5 7453 1.1 christos ac_status=$? 7454 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7455 1.1 christos (exit $ac_status); }; }; then 7456 1.1 christos ac_header_compiler=yes 7457 1.1 christos else 7458 1.1 christos echo "$as_me: failed program was:" >&5 7459 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7460 1.1 christos 7461 1.1 christos ac_header_compiler=no 7462 1.1 christos fi 7463 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7464 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 7465 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 7466 1.1 christos 7467 1.1 christos # Is the header present? 7468 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 7469 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 7470 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7471 1.1 christos /* confdefs.h. */ 7472 1.1 christos _ACEOF 7473 1.1 christos cat confdefs.h >>conftest.$ac_ext 7474 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7475 1.1 christos /* end confdefs.h. */ 7476 1.1 christos #include <$ac_header> 7477 1.1 christos _ACEOF 7478 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 7479 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 7480 1.1 christos ac_status=$? 7481 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7482 1.1 christos rm -f conftest.er1 7483 1.1 christos cat conftest.err >&5 7484 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7485 1.1 christos (exit $ac_status); } >/dev/null; then 7486 1.1 christos if test -s conftest.err; then 7487 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 7488 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 7489 1.1 christos else 7490 1.1 christos ac_cpp_err= 7491 1.1 christos fi 7492 1.1 christos else 7493 1.1 christos ac_cpp_err=yes 7494 1.1 christos fi 7495 1.1 christos if test -z "$ac_cpp_err"; then 7496 1.1 christos ac_header_preproc=yes 7497 1.1 christos else 7498 1.1 christos echo "$as_me: failed program was:" >&5 7499 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7500 1.1 christos 7501 1.1 christos ac_header_preproc=no 7502 1.1 christos fi 7503 1.1 christos rm -f conftest.err conftest.$ac_ext 7504 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 7505 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 7506 1.1 christos 7507 1.1 christos # So? What about this header? 7508 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 7509 1.1 christos yes:no: ) 7510 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 7511 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 7512 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 7513 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 7514 1.1 christos ac_header_preproc=yes 7515 1.1 christos ;; 7516 1.1 christos no:yes:* ) 7517 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 7518 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 7519 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 7520 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 7521 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 7522 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 7523 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 7524 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 7525 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 7526 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 7527 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 7528 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 7529 1.1 christos ( 7530 1.1 christos cat <<\_ASBOX 7531 1.1 christos ## -------------------------------------- ## 7532 1.1 christos ## Report this to the GNU Texinfo lists. ## 7533 1.1 christos ## -------------------------------------- ## 7534 1.1 christos _ASBOX 7535 1.1 christos ) | 7536 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 7537 1.1 christos ;; 7538 1.1 christos esac 7539 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 7540 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7541 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 7542 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7543 1.1 christos else 7544 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 7545 1.1 christos fi 7546 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 7547 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 7548 1.1 christos 7549 1.1 christos fi 7550 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 7551 1.1 christos cat >>confdefs.h <<_ACEOF 7552 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7553 1.1 christos _ACEOF 7554 1.1 christos 7555 1.1 christos fi 7556 1.1 christos 7557 1.1 christos done 7558 1.1 christos 7559 1.1 christos 7560 1.1 christos 7561 1.1 christos for ac_func in __secure_getenv gettimeofday 7562 1.1 christos do 7563 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7564 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 7565 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 7566 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 7567 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7568 1.1 christos else 7569 1.1 christos cat >conftest.$ac_ext <<_ACEOF 7570 1.1 christos /* confdefs.h. */ 7571 1.1 christos _ACEOF 7572 1.1 christos cat confdefs.h >>conftest.$ac_ext 7573 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 7574 1.1 christos /* end confdefs.h. */ 7575 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 7576 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7577 1.1 christos #define $ac_func innocuous_$ac_func 7578 1.1 christos 7579 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 7580 1.1 christos which can conflict with char $ac_func (); below. 7581 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7582 1.1 christos <limits.h> exists even on freestanding compilers. */ 7583 1.1 christos 7584 1.1 christos #ifdef __STDC__ 7585 1.1 christos # include <limits.h> 7586 1.1 christos #else 7587 1.1 christos # include <assert.h> 7588 1.1 christos #endif 7589 1.1 christos 7590 1.1 christos #undef $ac_func 7591 1.1 christos 7592 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 7593 1.1 christos #ifdef __cplusplus 7594 1.1 christos extern "C" 7595 1.1 christos { 7596 1.1 christos #endif 7597 1.1 christos /* We use char because int might match the return type of a gcc2 7598 1.1 christos builtin and then its argument prototype would still apply. */ 7599 1.1 christos char $ac_func (); 7600 1.1 christos /* The GNU C library defines this for functions which it implements 7601 1.1 christos to always fail with ENOSYS. Some functions are actually named 7602 1.1 christos something starting with __ and the normal name is an alias. */ 7603 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7604 1.1 christos choke me 7605 1.1 christos #else 7606 1.1 christos char (*f) () = $ac_func; 7607 1.1 christos #endif 7608 1.1 christos #ifdef __cplusplus 7609 1.1 christos } 7610 1.1 christos #endif 7611 1.1 christos 7612 1.1 christos int 7613 1.1 christos main () 7614 1.1 christos { 7615 1.1 christos return f != $ac_func; 7616 1.1 christos ; 7617 1.1 christos return 0; 7618 1.1 christos } 7619 1.1 christos _ACEOF 7620 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 7621 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7622 1.1 christos (eval $ac_link) 2>conftest.er1 7623 1.1 christos ac_status=$? 7624 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 7625 1.1 christos rm -f conftest.er1 7626 1.1 christos cat conftest.err >&5 7627 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7628 1.1 christos (exit $ac_status); } && 7629 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 7630 1.1 christos || test ! -s conftest.err' 7631 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7632 1.1 christos (eval $ac_try) 2>&5 7633 1.1 christos ac_status=$? 7634 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7635 1.1 christos (exit $ac_status); }; } && 7636 1.1 christos { ac_try='test -s conftest$ac_exeext' 7637 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7638 1.1 christos (eval $ac_try) 2>&5 7639 1.1 christos ac_status=$? 7640 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 7641 1.1 christos (exit $ac_status); }; }; then 7642 1.1 christos eval "$as_ac_var=yes" 7643 1.1 christos else 7644 1.1 christos echo "$as_me: failed program was:" >&5 7645 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 7646 1.1 christos 7647 1.1 christos eval "$as_ac_var=no" 7648 1.1 christos fi 7649 1.1 christos rm -f conftest.err conftest.$ac_objext \ 7650 1.1 christos conftest$ac_exeext conftest.$ac_ext 7651 1.1 christos fi 7652 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 7653 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 7654 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 7655 1.1 christos cat >>confdefs.h <<_ACEOF 7656 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7657 1.1 christos _ACEOF 7658 1.1 christos 7659 1.1 christos fi 7660 1.1 christos done 7661 1.1 christos 7662 1.1 christos 7663 1.1 christos : 7664 1.1 christos 7665 1.1 christos 7666 1.1 christos 7667 1.1 christos 7668 1.1 christos 7669 1.1 christos 7670 1.1 christos 7671 1.1 christos fi 7672 1.1 christos 7673 1.1 christos 7674 1.1 christos # For teTeX and TeX Live. 7675 1.1 christos echo "$as_me:$LINENO: checking host system type" >&5 7676 1.1 christos echo $ECHO_N "checking host system type... $ECHO_C" >&6 7677 1.1 christos if test "${ac_cv_host+set}" = set; then 7678 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7679 1.1 christos else 7680 1.1 christos ac_cv_host_alias=$host_alias 7681 1.1 christos test -z "$ac_cv_host_alias" && 7682 1.1 christos ac_cv_host_alias=$ac_cv_build_alias 7683 1.1 christos ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 7684 1.1 christos { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 7685 1.1 christos echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 7686 1.1 christos { (exit 1); exit 1; }; } 7687 1.1 christos 7688 1.1 christos fi 7689 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_host" >&5 7690 1.1 christos echo "${ECHO_T}$ac_cv_host" >&6 7691 1.1 christos host=$ac_cv_host 7692 1.1 christos host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 7693 1.1 christos host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 7694 1.1 christos host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 7695 1.1 christos 7696 1.1 christos 7697 1.1 christos # Check whether --enable-multiplatform or --disable-multiplatform was given. 7698 1.1 christos if test "${enable_multiplatform+set}" = set; then 7699 1.1 christos enableval="$enable_multiplatform" 7700 1.1 christos 7701 1.1 christos fi; 7702 1.1 christos # if enable_multiplatform is set in the environment, use that. 7703 1.1 christos test "x$enable_multiplatform" = xyes \ 7704 1.1 christos && test "x$bindir" = 'x${exec_prefix}/bin' \ 7705 1.1 christos && bindir="$bindir/$host" 7706 1.1 christos 7707 1.1 christos # Taken from the example in 7708 1.1 christos # http://www.gnu.org/software/automake/manual/html_node/Conditionals.html. 7709 1.1 christos # Check whether --enable-install-warnings or --disable-install-warnings was given. 7710 1.1 christos if test "${enable_install_warnings+set}" = set; then 7711 1.1 christos enableval="$enable_install_warnings" 7712 1.1 christos case "${enableval}" in 7713 1.1 christos yes) install_warnings=true ;; 7714 1.1 christos no) install_warnings=false ;; 7715 1.1 christos *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-install-warnings" >&5 7716 1.1 christos echo "$as_me: error: bad value ${enableval} for --enable-install-warnings" >&2;} 7717 1.1 christos { (exit 1); exit 1; }; } ;; 7718 1.1 christos esac 7719 1.1 christos else 7720 1.1 christos install_warnings=true 7721 1.1 christos fi; 7722 1.1 christos 7723 1.1 christos 7724 1.1 christos if test x"$install_warnings" = xtrue || test x"$install_warnings" = xyes; then 7725 1.1 christos INSTALL_WARNINGS_TRUE= 7726 1.1 christos INSTALL_WARNINGS_FALSE='#' 7727 1.1 christos else 7728 1.1 christos INSTALL_WARNINGS_TRUE='#' 7729 1.1 christos INSTALL_WARNINGS_FALSE= 7730 1.1 christos fi 7731 1.1 christos 7732 1.1 christos 7733 1.1 christos # i18n support. To update to a new version of gettext, run: 7734 1.1 christos # gettextize -f -c --intl 7735 1.1 christos 7736 1.1 christos 7737 1.1 christos MKINSTALLDIRS= 7738 1.1 christos if test -n "$ac_aux_dir"; then 7739 1.1 christos case "$ac_aux_dir" in 7740 1.1 christos /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 7741 1.1 christos *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 7742 1.1 christos esac 7743 1.1 christos fi 7744 1.1 christos if test -z "$MKINSTALLDIRS"; then 7745 1.1 christos MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 7746 1.1 christos fi 7747 1.1 christos 7748 1.1 christos 7749 1.1 christos 7750 1.1 christos echo "$as_me:$LINENO: checking whether NLS is requested" >&5 7751 1.1 christos echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 7752 1.1 christos # Check whether --enable-nls or --disable-nls was given. 7753 1.1 christos if test "${enable_nls+set}" = set; then 7754 1.1 christos enableval="$enable_nls" 7755 1.1 christos USE_NLS=$enableval 7756 1.1 christos else 7757 1.1 christos USE_NLS=yes 7758 1.1 christos fi; 7759 1.1 christos echo "$as_me:$LINENO: result: $USE_NLS" >&5 7760 1.1 christos echo "${ECHO_T}$USE_NLS" >&6 7761 1.1 christos 7762 1.1 christos 7763 1.1 christos 7764 1.1 christos 7765 1.1 christos 7766 1.1 christos 7767 1.1 christos # Prepare PATH_SEPARATOR. 7768 1.1 christos # The user is always right. 7769 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 7770 1.1 christos echo "#! /bin/sh" >conf$$.sh 7771 1.1 christos echo "exit 0" >>conf$$.sh 7772 1.1 christos chmod +x conf$$.sh 7773 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7774 1.1 christos PATH_SEPARATOR=';' 7775 1.1 christos else 7776 1.1 christos PATH_SEPARATOR=: 7777 1.1 christos fi 7778 1.1 christos rm -f conf$$.sh 7779 1.1 christos fi 7780 1.1 christos 7781 1.1 christos # Find out how to test for executable files. Don't use a zero-byte file, 7782 1.1 christos # as systems may use methods other than mode bits to determine executability. 7783 1.1 christos cat >conf$$.file <<_ASEOF 7784 1.1 christos #! /bin/sh 7785 1.1 christos exit 0 7786 1.1 christos _ASEOF 7787 1.1 christos chmod +x conf$$.file 7788 1.1 christos if test -x conf$$.file >/dev/null 2>&1; then 7789 1.1 christos ac_executable_p="test -x" 7790 1.1 christos else 7791 1.1 christos ac_executable_p="test -f" 7792 1.1 christos fi 7793 1.1 christos rm -f conf$$.file 7794 1.1 christos 7795 1.1 christos # Extract the first word of "msgfmt", so it can be a program name with args. 7796 1.1 christos set dummy msgfmt; ac_word=$2 7797 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7798 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7799 1.1 christos if test "${ac_cv_path_MSGFMT+set}" = set; then 7800 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7801 1.1 christos else 7802 1.1 christos case "$MSGFMT" in 7803 1.1 christos [\\/]* | ?:[\\/]*) 7804 1.1 christos ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 7805 1.1 christos ;; 7806 1.1 christos *) 7807 1.1 christos ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7808 1.1 christos for ac_dir in $PATH; do 7809 1.1 christos IFS="$ac_save_IFS" 7810 1.1 christos test -z "$ac_dir" && ac_dir=. 7811 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 7812 1.1 christos if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7813 1.1 christos if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 7814 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 7815 1.1 christos ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 7816 1.1 christos break 2 7817 1.1 christos fi 7818 1.1 christos fi 7819 1.1 christos done 7820 1.1 christos done 7821 1.1 christos IFS="$ac_save_IFS" 7822 1.1 christos test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 7823 1.1 christos ;; 7824 1.1 christos esac 7825 1.1 christos fi 7826 1.1 christos MSGFMT="$ac_cv_path_MSGFMT" 7827 1.1 christos if test "$MSGFMT" != ":"; then 7828 1.1 christos echo "$as_me:$LINENO: result: $MSGFMT" >&5 7829 1.1 christos echo "${ECHO_T}$MSGFMT" >&6 7830 1.1 christos else 7831 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7832 1.1 christos echo "${ECHO_T}no" >&6 7833 1.1 christos fi 7834 1.1 christos 7835 1.1 christos # Extract the first word of "gmsgfmt", so it can be a program name with args. 7836 1.1 christos set dummy gmsgfmt; ac_word=$2 7837 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7838 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7839 1.1 christos if test "${ac_cv_path_GMSGFMT+set}" = set; then 7840 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7841 1.1 christos else 7842 1.1 christos case $GMSGFMT in 7843 1.1 christos [\\/]* | ?:[\\/]*) 7844 1.1 christos ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 7845 1.1 christos ;; 7846 1.1 christos *) 7847 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7848 1.1 christos for as_dir in $PATH 7849 1.1 christos do 7850 1.1 christos IFS=$as_save_IFS 7851 1.1 christos test -z "$as_dir" && as_dir=. 7852 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 7853 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7854 1.1 christos ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 7855 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7856 1.1 christos break 2 7857 1.1 christos fi 7858 1.1 christos done 7859 1.1 christos done 7860 1.1 christos 7861 1.1 christos test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 7862 1.1 christos ;; 7863 1.1 christos esac 7864 1.1 christos fi 7865 1.1 christos GMSGFMT=$ac_cv_path_GMSGFMT 7866 1.1 christos 7867 1.1 christos if test -n "$GMSGFMT"; then 7868 1.1 christos echo "$as_me:$LINENO: result: $GMSGFMT" >&5 7869 1.1 christos echo "${ECHO_T}$GMSGFMT" >&6 7870 1.1 christos else 7871 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7872 1.1 christos echo "${ECHO_T}no" >&6 7873 1.1 christos fi 7874 1.1 christos 7875 1.1 christos 7876 1.1 christos 7877 1.1 christos # Prepare PATH_SEPARATOR. 7878 1.1 christos # The user is always right. 7879 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 7880 1.1 christos echo "#! /bin/sh" >conf$$.sh 7881 1.1 christos echo "exit 0" >>conf$$.sh 7882 1.1 christos chmod +x conf$$.sh 7883 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7884 1.1 christos PATH_SEPARATOR=';' 7885 1.1 christos else 7886 1.1 christos PATH_SEPARATOR=: 7887 1.1 christos fi 7888 1.1 christos rm -f conf$$.sh 7889 1.1 christos fi 7890 1.1 christos 7891 1.1 christos # Find out how to test for executable files. Don't use a zero-byte file, 7892 1.1 christos # as systems may use methods other than mode bits to determine executability. 7893 1.1 christos cat >conf$$.file <<_ASEOF 7894 1.1 christos #! /bin/sh 7895 1.1 christos exit 0 7896 1.1 christos _ASEOF 7897 1.1 christos chmod +x conf$$.file 7898 1.1 christos if test -x conf$$.file >/dev/null 2>&1; then 7899 1.1 christos ac_executable_p="test -x" 7900 1.1 christos else 7901 1.1 christos ac_executable_p="test -f" 7902 1.1 christos fi 7903 1.1 christos rm -f conf$$.file 7904 1.1 christos 7905 1.1 christos # Extract the first word of "xgettext", so it can be a program name with args. 7906 1.1 christos set dummy xgettext; ac_word=$2 7907 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7908 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7909 1.1 christos if test "${ac_cv_path_XGETTEXT+set}" = set; then 7910 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7911 1.1 christos else 7912 1.1 christos case "$XGETTEXT" in 7913 1.1 christos [\\/]* | ?:[\\/]*) 7914 1.1 christos ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 7915 1.1 christos ;; 7916 1.1 christos *) 7917 1.1 christos ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7918 1.1 christos for ac_dir in $PATH; do 7919 1.1 christos IFS="$ac_save_IFS" 7920 1.1 christos test -z "$ac_dir" && ac_dir=. 7921 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 7922 1.1 christos if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7923 1.1 christos if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 7924 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 7925 1.1 christos ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 7926 1.1 christos break 2 7927 1.1 christos fi 7928 1.1 christos fi 7929 1.1 christos done 7930 1.1 christos done 7931 1.1 christos IFS="$ac_save_IFS" 7932 1.1 christos test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 7933 1.1 christos ;; 7934 1.1 christos esac 7935 1.1 christos fi 7936 1.1 christos XGETTEXT="$ac_cv_path_XGETTEXT" 7937 1.1 christos if test "$XGETTEXT" != ":"; then 7938 1.1 christos echo "$as_me:$LINENO: result: $XGETTEXT" >&5 7939 1.1 christos echo "${ECHO_T}$XGETTEXT" >&6 7940 1.1 christos else 7941 1.1 christos echo "$as_me:$LINENO: result: no" >&5 7942 1.1 christos echo "${ECHO_T}no" >&6 7943 1.1 christos fi 7944 1.1 christos 7945 1.1 christos rm -f messages.po 7946 1.1 christos 7947 1.1 christos 7948 1.1 christos # Prepare PATH_SEPARATOR. 7949 1.1 christos # The user is always right. 7950 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 7951 1.1 christos echo "#! /bin/sh" >conf$$.sh 7952 1.1 christos echo "exit 0" >>conf$$.sh 7953 1.1 christos chmod +x conf$$.sh 7954 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7955 1.1 christos PATH_SEPARATOR=';' 7956 1.1 christos else 7957 1.1 christos PATH_SEPARATOR=: 7958 1.1 christos fi 7959 1.1 christos rm -f conf$$.sh 7960 1.1 christos fi 7961 1.1 christos 7962 1.1 christos # Find out how to test for executable files. Don't use a zero-byte file, 7963 1.1 christos # as systems may use methods other than mode bits to determine executability. 7964 1.1 christos cat >conf$$.file <<_ASEOF 7965 1.1 christos #! /bin/sh 7966 1.1 christos exit 0 7967 1.1 christos _ASEOF 7968 1.1 christos chmod +x conf$$.file 7969 1.1 christos if test -x conf$$.file >/dev/null 2>&1; then 7970 1.1 christos ac_executable_p="test -x" 7971 1.1 christos else 7972 1.1 christos ac_executable_p="test -f" 7973 1.1 christos fi 7974 1.1 christos rm -f conf$$.file 7975 1.1 christos 7976 1.1 christos # Extract the first word of "msgmerge", so it can be a program name with args. 7977 1.1 christos set dummy msgmerge; ac_word=$2 7978 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 7979 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7980 1.1 christos if test "${ac_cv_path_MSGMERGE+set}" = set; then 7981 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 7982 1.1 christos else 7983 1.1 christos case "$MSGMERGE" in 7984 1.1 christos [\\/]* | ?:[\\/]*) 7985 1.1 christos ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 7986 1.1 christos ;; 7987 1.1 christos *) 7988 1.1 christos ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 7989 1.1 christos for ac_dir in $PATH; do 7990 1.1 christos IFS="$ac_save_IFS" 7991 1.1 christos test -z "$ac_dir" && ac_dir=. 7992 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 7993 1.1 christos if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 7994 1.1 christos if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 7995 1.1 christos ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 7996 1.1 christos break 2 7997 1.1 christos fi 7998 1.1 christos fi 7999 1.1 christos done 8000 1.1 christos done 8001 1.1 christos IFS="$ac_save_IFS" 8002 1.1 christos test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 8003 1.1 christos ;; 8004 1.1 christos esac 8005 1.1 christos fi 8006 1.1 christos MSGMERGE="$ac_cv_path_MSGMERGE" 8007 1.1 christos if test "$MSGMERGE" != ":"; then 8008 1.1 christos echo "$as_me:$LINENO: result: $MSGMERGE" >&5 8009 1.1 christos echo "${ECHO_T}$MSGMERGE" >&6 8010 1.1 christos else 8011 1.1 christos echo "$as_me:$LINENO: result: no" >&5 8012 1.1 christos echo "${ECHO_T}no" >&6 8013 1.1 christos fi 8014 1.1 christos 8015 1.1 christos 8016 1.1 christos if test "$GMSGFMT" != ":"; then 8017 1.1 christos if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 8018 1.1 christos (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 8019 1.1 christos : ; 8020 1.1 christos else 8021 1.1 christos GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 8022 1.1 christos echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 8023 1.1 christos echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 8024 1.1 christos GMSGFMT=":" 8025 1.1 christos fi 8026 1.1 christos fi 8027 1.1 christos 8028 1.1 christos if test "$XGETTEXT" != ":"; then 8029 1.1 christos if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 8030 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 8031 1.1 christos : ; 8032 1.1 christos else 8033 1.1 christos echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 8034 1.1 christos echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 8035 1.1 christos XGETTEXT=":" 8036 1.1 christos fi 8037 1.1 christos rm -f messages.po 8038 1.1 christos fi 8039 1.1 christos 8040 1.1 christos ac_config_commands="$ac_config_commands default-1" 8041 1.1 christos 8042 1.1 christos 8043 1.1 christos 8044 1.1 christos echo "$as_me:$LINENO: checking for signed" >&5 8045 1.1 christos echo $ECHO_N "checking for signed... $ECHO_C" >&6 8046 1.1 christos if test "${bh_cv_c_signed+set}" = set; then 8047 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8048 1.1 christos else 8049 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8050 1.1 christos /* confdefs.h. */ 8051 1.1 christos _ACEOF 8052 1.1 christos cat confdefs.h >>conftest.$ac_ext 8053 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8054 1.1 christos /* end confdefs.h. */ 8055 1.1 christos 8056 1.1 christos int 8057 1.1 christos main () 8058 1.1 christos { 8059 1.1 christos signed char x; 8060 1.1 christos ; 8061 1.1 christos return 0; 8062 1.1 christos } 8063 1.1 christos _ACEOF 8064 1.1 christos rm -f conftest.$ac_objext 8065 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8066 1.1 christos (eval $ac_compile) 2>conftest.er1 8067 1.1 christos ac_status=$? 8068 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8069 1.1 christos rm -f conftest.er1 8070 1.1 christos cat conftest.err >&5 8071 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8072 1.1 christos (exit $ac_status); } && 8073 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8074 1.1 christos || test ! -s conftest.err' 8075 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8076 1.1 christos (eval $ac_try) 2>&5 8077 1.1 christos ac_status=$? 8078 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8079 1.1 christos (exit $ac_status); }; } && 8080 1.1 christos { ac_try='test -s conftest.$ac_objext' 8081 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8082 1.1 christos (eval $ac_try) 2>&5 8083 1.1 christos ac_status=$? 8084 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8085 1.1 christos (exit $ac_status); }; }; then 8086 1.1 christos bh_cv_c_signed=yes 8087 1.1 christos else 8088 1.1 christos echo "$as_me: failed program was:" >&5 8089 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8090 1.1 christos 8091 1.1 christos bh_cv_c_signed=no 8092 1.1 christos fi 8093 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8094 1.1 christos fi 8095 1.1 christos echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 8096 1.1 christos echo "${ECHO_T}$bh_cv_c_signed" >&6 8097 1.1 christos if test $bh_cv_c_signed = no; then 8098 1.1 christos 8099 1.1 christos cat >>confdefs.h <<\_ACEOF 8100 1.1 christos #define signed 8101 1.1 christos _ACEOF 8102 1.1 christos 8103 1.1 christos fi 8104 1.1 christos 8105 1.1 christos echo "$as_me:$LINENO: checking for inline" >&5 8106 1.1 christos echo $ECHO_N "checking for inline... $ECHO_C" >&6 8107 1.1 christos if test "${ac_cv_c_inline+set}" = set; then 8108 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8109 1.1 christos else 8110 1.1 christos ac_cv_c_inline=no 8111 1.1 christos for ac_kw in inline __inline__ __inline; do 8112 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8113 1.1 christos /* confdefs.h. */ 8114 1.1 christos _ACEOF 8115 1.1 christos cat confdefs.h >>conftest.$ac_ext 8116 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8117 1.1 christos /* end confdefs.h. */ 8118 1.1 christos #ifndef __cplusplus 8119 1.1 christos typedef int foo_t; 8120 1.1 christos static $ac_kw foo_t static_foo () {return 0; } 8121 1.1 christos $ac_kw foo_t foo () {return 0; } 8122 1.1 christos #endif 8123 1.1 christos 8124 1.1 christos _ACEOF 8125 1.1 christos rm -f conftest.$ac_objext 8126 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8127 1.1 christos (eval $ac_compile) 2>conftest.er1 8128 1.1 christos ac_status=$? 8129 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8130 1.1 christos rm -f conftest.er1 8131 1.1 christos cat conftest.err >&5 8132 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8133 1.1 christos (exit $ac_status); } && 8134 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8135 1.1 christos || test ! -s conftest.err' 8136 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8137 1.1 christos (eval $ac_try) 2>&5 8138 1.1 christos ac_status=$? 8139 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8140 1.1 christos (exit $ac_status); }; } && 8141 1.1 christos { ac_try='test -s conftest.$ac_objext' 8142 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8143 1.1 christos (eval $ac_try) 2>&5 8144 1.1 christos ac_status=$? 8145 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8146 1.1 christos (exit $ac_status); }; }; then 8147 1.1 christos ac_cv_c_inline=$ac_kw; break 8148 1.1 christos else 8149 1.1 christos echo "$as_me: failed program was:" >&5 8150 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8151 1.1 christos 8152 1.1 christos fi 8153 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8154 1.1 christos done 8155 1.1 christos 8156 1.1 christos fi 8157 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 8158 1.1 christos echo "${ECHO_T}$ac_cv_c_inline" >&6 8159 1.1 christos 8160 1.1 christos 8161 1.1 christos case $ac_cv_c_inline in 8162 1.1 christos inline | yes) ;; 8163 1.1 christos *) 8164 1.1 christos case $ac_cv_c_inline in 8165 1.1 christos no) ac_val=;; 8166 1.1 christos *) ac_val=$ac_cv_c_inline;; 8167 1.1 christos esac 8168 1.1 christos cat >>confdefs.h <<_ACEOF 8169 1.1 christos #ifndef __cplusplus 8170 1.1 christos #define inline $ac_val 8171 1.1 christos #endif 8172 1.1 christos _ACEOF 8173 1.1 christos ;; 8174 1.1 christos esac 8175 1.1 christos 8176 1.1 christos echo "$as_me:$LINENO: checking for size_t" >&5 8177 1.1 christos echo $ECHO_N "checking for size_t... $ECHO_C" >&6 8178 1.1 christos if test "${ac_cv_type_size_t+set}" = set; then 8179 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8180 1.1 christos else 8181 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8182 1.1 christos /* confdefs.h. */ 8183 1.1 christos _ACEOF 8184 1.1 christos cat confdefs.h >>conftest.$ac_ext 8185 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8186 1.1 christos /* end confdefs.h. */ 8187 1.1 christos $ac_includes_default 8188 1.1 christos int 8189 1.1 christos main () 8190 1.1 christos { 8191 1.1 christos if ((size_t *) 0) 8192 1.1 christos return 0; 8193 1.1 christos if (sizeof (size_t)) 8194 1.1 christos return 0; 8195 1.1 christos ; 8196 1.1 christos return 0; 8197 1.1 christos } 8198 1.1 christos _ACEOF 8199 1.1 christos rm -f conftest.$ac_objext 8200 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8201 1.1 christos (eval $ac_compile) 2>conftest.er1 8202 1.1 christos ac_status=$? 8203 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8204 1.1 christos rm -f conftest.er1 8205 1.1 christos cat conftest.err >&5 8206 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8207 1.1 christos (exit $ac_status); } && 8208 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8209 1.1 christos || test ! -s conftest.err' 8210 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8211 1.1 christos (eval $ac_try) 2>&5 8212 1.1 christos ac_status=$? 8213 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8214 1.1 christos (exit $ac_status); }; } && 8215 1.1 christos { ac_try='test -s conftest.$ac_objext' 8216 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8217 1.1 christos (eval $ac_try) 2>&5 8218 1.1 christos ac_status=$? 8219 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8220 1.1 christos (exit $ac_status); }; }; then 8221 1.1 christos ac_cv_type_size_t=yes 8222 1.1 christos else 8223 1.1 christos echo "$as_me: failed program was:" >&5 8224 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8225 1.1 christos 8226 1.1 christos ac_cv_type_size_t=no 8227 1.1 christos fi 8228 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8229 1.1 christos fi 8230 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 8231 1.1 christos echo "${ECHO_T}$ac_cv_type_size_t" >&6 8232 1.1 christos if test $ac_cv_type_size_t = yes; then 8233 1.1 christos : 8234 1.1 christos else 8235 1.1 christos 8236 1.1 christos cat >>confdefs.h <<_ACEOF 8237 1.1 christos #define size_t unsigned 8238 1.1 christos _ACEOF 8239 1.1 christos 8240 1.1 christos fi 8241 1.1 christos 8242 1.1 christos 8243 1.1 christos echo "$as_me:$LINENO: checking for long long" >&5 8244 1.1 christos echo $ECHO_N "checking for long long... $ECHO_C" >&6 8245 1.1 christos if test "${ac_cv_type_long_long+set}" = set; then 8246 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8247 1.1 christos else 8248 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8249 1.1 christos /* confdefs.h. */ 8250 1.1 christos _ACEOF 8251 1.1 christos cat confdefs.h >>conftest.$ac_ext 8252 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8253 1.1 christos /* end confdefs.h. */ 8254 1.1 christos long long ll = 1LL; int i = 63; 8255 1.1 christos int 8256 1.1 christos main () 8257 1.1 christos { 8258 1.1 christos long long llmax = (long long) -1; 8259 1.1 christos return ll << i | ll >> i | llmax / ll | llmax % ll; 8260 1.1 christos ; 8261 1.1 christos return 0; 8262 1.1 christos } 8263 1.1 christos _ACEOF 8264 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8265 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8266 1.1 christos (eval $ac_link) 2>conftest.er1 8267 1.1 christos ac_status=$? 8268 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8269 1.1 christos rm -f conftest.er1 8270 1.1 christos cat conftest.err >&5 8271 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8272 1.1 christos (exit $ac_status); } && 8273 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8274 1.1 christos || test ! -s conftest.err' 8275 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8276 1.1 christos (eval $ac_try) 2>&5 8277 1.1 christos ac_status=$? 8278 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8279 1.1 christos (exit $ac_status); }; } && 8280 1.1 christos { ac_try='test -s conftest$ac_exeext' 8281 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8282 1.1 christos (eval $ac_try) 2>&5 8283 1.1 christos ac_status=$? 8284 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8285 1.1 christos (exit $ac_status); }; }; then 8286 1.1 christos ac_cv_type_long_long=yes 8287 1.1 christos else 8288 1.1 christos echo "$as_me: failed program was:" >&5 8289 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8290 1.1 christos 8291 1.1 christos ac_cv_type_long_long=no 8292 1.1 christos fi 8293 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8294 1.1 christos conftest$ac_exeext conftest.$ac_ext 8295 1.1 christos fi 8296 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 8297 1.1 christos echo "${ECHO_T}$ac_cv_type_long_long" >&6 8298 1.1 christos if test $ac_cv_type_long_long = yes; then 8299 1.1 christos 8300 1.1 christos cat >>confdefs.h <<\_ACEOF 8301 1.1 christos #define HAVE_LONG_LONG 1 8302 1.1 christos _ACEOF 8303 1.1 christos 8304 1.1 christos fi 8305 1.1 christos 8306 1.1 christos 8307 1.1 christos echo "$as_me:$LINENO: checking for long double" >&5 8308 1.1 christos echo $ECHO_N "checking for long double... $ECHO_C" >&6 8309 1.1 christos if test "${gt_cv_c_long_double+set}" = set; then 8310 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8311 1.1 christos else 8312 1.1 christos if test "$GCC" = yes; then 8313 1.1 christos gt_cv_c_long_double=yes 8314 1.1 christos else 8315 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8316 1.1 christos /* confdefs.h. */ 8317 1.1 christos _ACEOF 8318 1.1 christos cat confdefs.h >>conftest.$ac_ext 8319 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8320 1.1 christos /* end confdefs.h. */ 8321 1.1 christos 8322 1.1 christos /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 8323 1.1 christos long double foo = 0.0; 8324 1.1 christos /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 8325 1.1 christos int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 8326 1.1 christos 8327 1.1 christos int 8328 1.1 christos main () 8329 1.1 christos { 8330 1.1 christos 8331 1.1 christos ; 8332 1.1 christos return 0; 8333 1.1 christos } 8334 1.1 christos _ACEOF 8335 1.1 christos rm -f conftest.$ac_objext 8336 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8337 1.1 christos (eval $ac_compile) 2>conftest.er1 8338 1.1 christos ac_status=$? 8339 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8340 1.1 christos rm -f conftest.er1 8341 1.1 christos cat conftest.err >&5 8342 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8343 1.1 christos (exit $ac_status); } && 8344 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8345 1.1 christos || test ! -s conftest.err' 8346 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8347 1.1 christos (eval $ac_try) 2>&5 8348 1.1 christos ac_status=$? 8349 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8350 1.1 christos (exit $ac_status); }; } && 8351 1.1 christos { ac_try='test -s conftest.$ac_objext' 8352 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8353 1.1 christos (eval $ac_try) 2>&5 8354 1.1 christos ac_status=$? 8355 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8356 1.1 christos (exit $ac_status); }; }; then 8357 1.1 christos gt_cv_c_long_double=yes 8358 1.1 christos else 8359 1.1 christos echo "$as_me: failed program was:" >&5 8360 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8361 1.1 christos 8362 1.1 christos gt_cv_c_long_double=no 8363 1.1 christos fi 8364 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8365 1.1 christos fi 8366 1.1 christos fi 8367 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 8368 1.1 christos echo "${ECHO_T}$gt_cv_c_long_double" >&6 8369 1.1 christos if test $gt_cv_c_long_double = yes; then 8370 1.1 christos 8371 1.1 christos cat >>confdefs.h <<\_ACEOF 8372 1.1 christos #define HAVE_LONG_DOUBLE 1 8373 1.1 christos _ACEOF 8374 1.1 christos 8375 1.1 christos fi 8376 1.1 christos 8377 1.1 christos 8378 1.1 christos echo "$as_me:$LINENO: checking for wchar_t" >&5 8379 1.1 christos echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 8380 1.1 christos if test "${gt_cv_c_wchar_t+set}" = set; then 8381 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8382 1.1 christos else 8383 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8384 1.1 christos /* confdefs.h. */ 8385 1.1 christos _ACEOF 8386 1.1 christos cat confdefs.h >>conftest.$ac_ext 8387 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8388 1.1 christos /* end confdefs.h. */ 8389 1.1 christos #include <stddef.h> 8390 1.1 christos wchar_t foo = (wchar_t)'\0'; 8391 1.1 christos int 8392 1.1 christos main () 8393 1.1 christos { 8394 1.1 christos 8395 1.1 christos ; 8396 1.1 christos return 0; 8397 1.1 christos } 8398 1.1 christos _ACEOF 8399 1.1 christos rm -f conftest.$ac_objext 8400 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8401 1.1 christos (eval $ac_compile) 2>conftest.er1 8402 1.1 christos ac_status=$? 8403 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8404 1.1 christos rm -f conftest.er1 8405 1.1 christos cat conftest.err >&5 8406 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8407 1.1 christos (exit $ac_status); } && 8408 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8409 1.1 christos || test ! -s conftest.err' 8410 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8411 1.1 christos (eval $ac_try) 2>&5 8412 1.1 christos ac_status=$? 8413 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8414 1.1 christos (exit $ac_status); }; } && 8415 1.1 christos { ac_try='test -s conftest.$ac_objext' 8416 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8417 1.1 christos (eval $ac_try) 2>&5 8418 1.1 christos ac_status=$? 8419 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8420 1.1 christos (exit $ac_status); }; }; then 8421 1.1 christos gt_cv_c_wchar_t=yes 8422 1.1 christos else 8423 1.1 christos echo "$as_me: failed program was:" >&5 8424 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8425 1.1 christos 8426 1.1 christos gt_cv_c_wchar_t=no 8427 1.1 christos fi 8428 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8429 1.1 christos fi 8430 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 8431 1.1 christos echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 8432 1.1 christos if test $gt_cv_c_wchar_t = yes; then 8433 1.1 christos 8434 1.1 christos cat >>confdefs.h <<\_ACEOF 8435 1.1 christos #define HAVE_WCHAR_T 1 8436 1.1 christos _ACEOF 8437 1.1 christos 8438 1.1 christos fi 8439 1.1 christos 8440 1.1 christos 8441 1.1 christos echo "$as_me:$LINENO: checking for wint_t" >&5 8442 1.1 christos echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 8443 1.1 christos if test "${gt_cv_c_wint_t+set}" = set; then 8444 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8445 1.1 christos else 8446 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8447 1.1 christos /* confdefs.h. */ 8448 1.1 christos _ACEOF 8449 1.1 christos cat confdefs.h >>conftest.$ac_ext 8450 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8451 1.1 christos /* end confdefs.h. */ 8452 1.1 christos #include <wchar.h> 8453 1.1 christos wint_t foo = (wchar_t)'\0'; 8454 1.1 christos int 8455 1.1 christos main () 8456 1.1 christos { 8457 1.1 christos 8458 1.1 christos ; 8459 1.1 christos return 0; 8460 1.1 christos } 8461 1.1 christos _ACEOF 8462 1.1 christos rm -f conftest.$ac_objext 8463 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8464 1.1 christos (eval $ac_compile) 2>conftest.er1 8465 1.1 christos ac_status=$? 8466 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8467 1.1 christos rm -f conftest.er1 8468 1.1 christos cat conftest.err >&5 8469 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8470 1.1 christos (exit $ac_status); } && 8471 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8472 1.1 christos || test ! -s conftest.err' 8473 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8474 1.1 christos (eval $ac_try) 2>&5 8475 1.1 christos ac_status=$? 8476 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8477 1.1 christos (exit $ac_status); }; } && 8478 1.1 christos { ac_try='test -s conftest.$ac_objext' 8479 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8480 1.1 christos (eval $ac_try) 2>&5 8481 1.1 christos ac_status=$? 8482 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8483 1.1 christos (exit $ac_status); }; }; then 8484 1.1 christos gt_cv_c_wint_t=yes 8485 1.1 christos else 8486 1.1 christos echo "$as_me: failed program was:" >&5 8487 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8488 1.1 christos 8489 1.1 christos gt_cv_c_wint_t=no 8490 1.1 christos fi 8491 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8492 1.1 christos fi 8493 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 8494 1.1 christos echo "${ECHO_T}$gt_cv_c_wint_t" >&6 8495 1.1 christos if test $gt_cv_c_wint_t = yes; then 8496 1.1 christos 8497 1.1 christos cat >>confdefs.h <<\_ACEOF 8498 1.1 christos #define HAVE_WINT_T 1 8499 1.1 christos _ACEOF 8500 1.1 christos 8501 1.1 christos fi 8502 1.1 christos 8503 1.1 christos 8504 1.1 christos 8505 1.1 christos 8506 1.1 christos echo "$as_me:$LINENO: checking for intmax_t" >&5 8507 1.1 christos echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 8508 1.1 christos if test "${gt_cv_c_intmax_t+set}" = set; then 8509 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8510 1.1 christos else 8511 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8512 1.1 christos /* confdefs.h. */ 8513 1.1 christos _ACEOF 8514 1.1 christos cat confdefs.h >>conftest.$ac_ext 8515 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8516 1.1 christos /* end confdefs.h. */ 8517 1.1 christos 8518 1.1 christos #include <stddef.h> 8519 1.1 christos #include <stdlib.h> 8520 1.1 christos #if HAVE_STDINT_H_WITH_UINTMAX 8521 1.1 christos #include <stdint.h> 8522 1.1 christos #endif 8523 1.1 christos #if HAVE_INTTYPES_H_WITH_UINTMAX 8524 1.1 christos #include <inttypes.h> 8525 1.1 christos #endif 8526 1.1 christos 8527 1.1 christos int 8528 1.1 christos main () 8529 1.1 christos { 8530 1.1 christos intmax_t x = -1; 8531 1.1 christos ; 8532 1.1 christos return 0; 8533 1.1 christos } 8534 1.1 christos _ACEOF 8535 1.1 christos rm -f conftest.$ac_objext 8536 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8537 1.1 christos (eval $ac_compile) 2>conftest.er1 8538 1.1 christos ac_status=$? 8539 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8540 1.1 christos rm -f conftest.er1 8541 1.1 christos cat conftest.err >&5 8542 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8543 1.1 christos (exit $ac_status); } && 8544 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8545 1.1 christos || test ! -s conftest.err' 8546 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8547 1.1 christos (eval $ac_try) 2>&5 8548 1.1 christos ac_status=$? 8549 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8550 1.1 christos (exit $ac_status); }; } && 8551 1.1 christos { ac_try='test -s conftest.$ac_objext' 8552 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8553 1.1 christos (eval $ac_try) 2>&5 8554 1.1 christos ac_status=$? 8555 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8556 1.1 christos (exit $ac_status); }; }; then 8557 1.1 christos gt_cv_c_intmax_t=yes 8558 1.1 christos else 8559 1.1 christos echo "$as_me: failed program was:" >&5 8560 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8561 1.1 christos 8562 1.1 christos gt_cv_c_intmax_t=no 8563 1.1 christos fi 8564 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8565 1.1 christos fi 8566 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 8567 1.1 christos echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 8568 1.1 christos if test $gt_cv_c_intmax_t = yes; then 8569 1.1 christos 8570 1.1 christos cat >>confdefs.h <<\_ACEOF 8571 1.1 christos #define HAVE_INTMAX_T 1 8572 1.1 christos _ACEOF 8573 1.1 christos 8574 1.1 christos fi 8575 1.1 christos 8576 1.1 christos 8577 1.1 christos 8578 1.1 christos echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 8579 1.1 christos echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 8580 1.1 christos if test "${gt_cv_func_printf_posix+set}" = set; then 8581 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8582 1.1 christos else 8583 1.1 christos 8584 1.1 christos if test "$cross_compiling" = yes; then 8585 1.1 christos 8586 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8587 1.1 christos /* confdefs.h. */ 8588 1.1 christos _ACEOF 8589 1.1 christos cat confdefs.h >>conftest.$ac_ext 8590 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8591 1.1 christos /* end confdefs.h. */ 8592 1.1 christos 8593 1.1 christos #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 8594 1.1 christos notposix 8595 1.1 christos #endif 8596 1.1 christos 8597 1.1 christos _ACEOF 8598 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8599 1.1 christos $EGREP "notposix" >/dev/null 2>&1; then 8600 1.1 christos gt_cv_func_printf_posix="guessing no" 8601 1.1 christos else 8602 1.1 christos gt_cv_func_printf_posix="guessing yes" 8603 1.1 christos fi 8604 1.1 christos rm -f conftest* 8605 1.1 christos 8606 1.1 christos 8607 1.1 christos else 8608 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8609 1.1 christos /* confdefs.h. */ 8610 1.1 christos _ACEOF 8611 1.1 christos cat confdefs.h >>conftest.$ac_ext 8612 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8613 1.1 christos /* end confdefs.h. */ 8614 1.1 christos 8615 1.1 christos #include <stdio.h> 8616 1.1 christos #include <string.h> 8617 1.1 christos /* The string "%2$d %1$d", with dollar characters protected from the shell's 8618 1.1 christos dollar expansion (possibly an autoconf bug). */ 8619 1.1 christos static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 8620 1.1 christos static char buf[100]; 8621 1.1 christos int main () 8622 1.1 christos { 8623 1.1 christos sprintf (buf, format, 33, 55); 8624 1.1 christos return (strcmp (buf, "55 33") != 0); 8625 1.1 christos } 8626 1.1 christos _ACEOF 8627 1.1 christos rm -f conftest$ac_exeext 8628 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8629 1.1 christos (eval $ac_link) 2>&5 8630 1.1 christos ac_status=$? 8631 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8632 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8633 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8634 1.1 christos (eval $ac_try) 2>&5 8635 1.1 christos ac_status=$? 8636 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8637 1.1 christos (exit $ac_status); }; }; then 8638 1.1 christos gt_cv_func_printf_posix=yes 8639 1.1 christos else 8640 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 8641 1.1 christos echo "$as_me: failed program was:" >&5 8642 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8643 1.1 christos 8644 1.1 christos ( exit $ac_status ) 8645 1.1 christos gt_cv_func_printf_posix=no 8646 1.1 christos fi 8647 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8648 1.1 christos fi 8649 1.1 christos 8650 1.1 christos fi 8651 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 8652 1.1 christos echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 8653 1.1 christos case $gt_cv_func_printf_posix in 8654 1.1 christos *yes) 8655 1.1 christos 8656 1.1 christos cat >>confdefs.h <<\_ACEOF 8657 1.1 christos #define HAVE_POSIX_PRINTF 1 8658 1.1 christos _ACEOF 8659 1.1 christos 8660 1.1 christos ;; 8661 1.1 christos esac 8662 1.1 christos 8663 1.1 christos 8664 1.1 christos 8665 1.1 christos for ac_header in stdlib.h unistd.h 8666 1.1 christos do 8667 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 8668 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 8669 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 8670 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8671 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 8672 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8673 1.1 christos fi 8674 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8675 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8676 1.1 christos else 8677 1.1 christos # Is the header compilable? 8678 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 8679 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 8680 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8681 1.1 christos /* confdefs.h. */ 8682 1.1 christos _ACEOF 8683 1.1 christos cat confdefs.h >>conftest.$ac_ext 8684 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8685 1.1 christos /* end confdefs.h. */ 8686 1.1 christos $ac_includes_default 8687 1.1 christos #include <$ac_header> 8688 1.1 christos _ACEOF 8689 1.1 christos rm -f conftest.$ac_objext 8690 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8691 1.1 christos (eval $ac_compile) 2>conftest.er1 8692 1.1 christos ac_status=$? 8693 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8694 1.1 christos rm -f conftest.er1 8695 1.1 christos cat conftest.err >&5 8696 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8697 1.1 christos (exit $ac_status); } && 8698 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8699 1.1 christos || test ! -s conftest.err' 8700 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8701 1.1 christos (eval $ac_try) 2>&5 8702 1.1 christos ac_status=$? 8703 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8704 1.1 christos (exit $ac_status); }; } && 8705 1.1 christos { ac_try='test -s conftest.$ac_objext' 8706 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8707 1.1 christos (eval $ac_try) 2>&5 8708 1.1 christos ac_status=$? 8709 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8710 1.1 christos (exit $ac_status); }; }; then 8711 1.1 christos ac_header_compiler=yes 8712 1.1 christos else 8713 1.1 christos echo "$as_me: failed program was:" >&5 8714 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8715 1.1 christos 8716 1.1 christos ac_header_compiler=no 8717 1.1 christos fi 8718 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8719 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8720 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 8721 1.1 christos 8722 1.1 christos # Is the header present? 8723 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 8724 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 8725 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8726 1.1 christos /* confdefs.h. */ 8727 1.1 christos _ACEOF 8728 1.1 christos cat confdefs.h >>conftest.$ac_ext 8729 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8730 1.1 christos /* end confdefs.h. */ 8731 1.1 christos #include <$ac_header> 8732 1.1 christos _ACEOF 8733 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8734 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8735 1.1 christos ac_status=$? 8736 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8737 1.1 christos rm -f conftest.er1 8738 1.1 christos cat conftest.err >&5 8739 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8740 1.1 christos (exit $ac_status); } >/dev/null; then 8741 1.1 christos if test -s conftest.err; then 8742 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 8743 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8744 1.1 christos else 8745 1.1 christos ac_cpp_err= 8746 1.1 christos fi 8747 1.1 christos else 8748 1.1 christos ac_cpp_err=yes 8749 1.1 christos fi 8750 1.1 christos if test -z "$ac_cpp_err"; then 8751 1.1 christos ac_header_preproc=yes 8752 1.1 christos else 8753 1.1 christos echo "$as_me: failed program was:" >&5 8754 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8755 1.1 christos 8756 1.1 christos ac_header_preproc=no 8757 1.1 christos fi 8758 1.1 christos rm -f conftest.err conftest.$ac_ext 8759 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8760 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 8761 1.1 christos 8762 1.1 christos # So? What about this header? 8763 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8764 1.1 christos yes:no: ) 8765 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 8766 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 8767 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 8768 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 8769 1.1 christos ac_header_preproc=yes 8770 1.1 christos ;; 8771 1.1 christos no:yes:* ) 8772 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 8773 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 8774 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 8775 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 8776 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 8777 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 8778 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 8779 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 8780 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 8781 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 8782 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 8783 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 8784 1.1 christos ( 8785 1.1 christos cat <<\_ASBOX 8786 1.1 christos ## -------------------------------------- ## 8787 1.1 christos ## Report this to the GNU Texinfo lists. ## 8788 1.1 christos ## -------------------------------------- ## 8789 1.1 christos _ASBOX 8790 1.1 christos ) | 8791 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 8792 1.1 christos ;; 8793 1.1 christos esac 8794 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 8795 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 8796 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 8797 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8798 1.1 christos else 8799 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 8800 1.1 christos fi 8801 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 8802 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 8803 1.1 christos 8804 1.1 christos fi 8805 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 8806 1.1 christos cat >>confdefs.h <<_ACEOF 8807 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 8808 1.1 christos _ACEOF 8809 1.1 christos 8810 1.1 christos fi 8811 1.1 christos 8812 1.1 christos done 8813 1.1 christos 8814 1.1 christos 8815 1.1 christos for ac_func in getpagesize 8816 1.1 christos do 8817 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 8818 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 8819 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 8820 1.1 christos if eval "test \"\${$as_ac_var+set}\" = set"; then 8821 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8822 1.1 christos else 8823 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8824 1.1 christos /* confdefs.h. */ 8825 1.1 christos _ACEOF 8826 1.1 christos cat confdefs.h >>conftest.$ac_ext 8827 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8828 1.1 christos /* end confdefs.h. */ 8829 1.1 christos /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 8830 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8831 1.1 christos #define $ac_func innocuous_$ac_func 8832 1.1 christos 8833 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 8834 1.1 christos which can conflict with char $ac_func (); below. 8835 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8836 1.1 christos <limits.h> exists even on freestanding compilers. */ 8837 1.1 christos 8838 1.1 christos #ifdef __STDC__ 8839 1.1 christos # include <limits.h> 8840 1.1 christos #else 8841 1.1 christos # include <assert.h> 8842 1.1 christos #endif 8843 1.1 christos 8844 1.1 christos #undef $ac_func 8845 1.1 christos 8846 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 8847 1.1 christos #ifdef __cplusplus 8848 1.1 christos extern "C" 8849 1.1 christos { 8850 1.1 christos #endif 8851 1.1 christos /* We use char because int might match the return type of a gcc2 8852 1.1 christos builtin and then its argument prototype would still apply. */ 8853 1.1 christos char $ac_func (); 8854 1.1 christos /* The GNU C library defines this for functions which it implements 8855 1.1 christos to always fail with ENOSYS. Some functions are actually named 8856 1.1 christos something starting with __ and the normal name is an alias. */ 8857 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8858 1.1 christos choke me 8859 1.1 christos #else 8860 1.1 christos char (*f) () = $ac_func; 8861 1.1 christos #endif 8862 1.1 christos #ifdef __cplusplus 8863 1.1 christos } 8864 1.1 christos #endif 8865 1.1 christos 8866 1.1 christos int 8867 1.1 christos main () 8868 1.1 christos { 8869 1.1 christos return f != $ac_func; 8870 1.1 christos ; 8871 1.1 christos return 0; 8872 1.1 christos } 8873 1.1 christos _ACEOF 8874 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 8875 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8876 1.1 christos (eval $ac_link) 2>conftest.er1 8877 1.1 christos ac_status=$? 8878 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 8879 1.1 christos rm -f conftest.er1 8880 1.1 christos cat conftest.err >&5 8881 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8882 1.1 christos (exit $ac_status); } && 8883 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 8884 1.1 christos || test ! -s conftest.err' 8885 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8886 1.1 christos (eval $ac_try) 2>&5 8887 1.1 christos ac_status=$? 8888 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8889 1.1 christos (exit $ac_status); }; } && 8890 1.1 christos { ac_try='test -s conftest$ac_exeext' 8891 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8892 1.1 christos (eval $ac_try) 2>&5 8893 1.1 christos ac_status=$? 8894 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 8895 1.1 christos (exit $ac_status); }; }; then 8896 1.1 christos eval "$as_ac_var=yes" 8897 1.1 christos else 8898 1.1 christos echo "$as_me: failed program was:" >&5 8899 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 8900 1.1 christos 8901 1.1 christos eval "$as_ac_var=no" 8902 1.1 christos fi 8903 1.1 christos rm -f conftest.err conftest.$ac_objext \ 8904 1.1 christos conftest$ac_exeext conftest.$ac_ext 8905 1.1 christos fi 8906 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 8907 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 8908 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 8909 1.1 christos cat >>confdefs.h <<_ACEOF 8910 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 8911 1.1 christos _ACEOF 8912 1.1 christos 8913 1.1 christos fi 8914 1.1 christos done 8915 1.1 christos 8916 1.1 christos echo "$as_me:$LINENO: checking for working mmap" >&5 8917 1.1 christos echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 8918 1.1 christos if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 8919 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 8920 1.1 christos else 8921 1.1 christos if test "$cross_compiling" = yes; then 8922 1.1 christos ac_cv_func_mmap_fixed_mapped=no 8923 1.1 christos else 8924 1.1 christos cat >conftest.$ac_ext <<_ACEOF 8925 1.1 christos /* confdefs.h. */ 8926 1.1 christos _ACEOF 8927 1.1 christos cat confdefs.h >>conftest.$ac_ext 8928 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 8929 1.1 christos /* end confdefs.h. */ 8930 1.1 christos $ac_includes_default 8931 1.1 christos /* malloc might have been renamed as rpl_malloc. */ 8932 1.1 christos #undef malloc 8933 1.1 christos 8934 1.1 christos /* Thanks to Mike Haertel and Jim Avera for this test. 8935 1.1 christos Here is a matrix of mmap possibilities: 8936 1.1 christos mmap private not fixed 8937 1.1 christos mmap private fixed at somewhere currently unmapped 8938 1.1 christos mmap private fixed at somewhere already mapped 8939 1.1 christos mmap shared not fixed 8940 1.1 christos mmap shared fixed at somewhere currently unmapped 8941 1.1 christos mmap shared fixed at somewhere already mapped 8942 1.1 christos For private mappings, we should verify that changes cannot be read() 8943 1.1 christos back from the file, nor mmap's back from the file at a different 8944 1.1 christos address. (There have been systems where private was not correctly 8945 1.1 christos implemented like the infamous i386 svr4.0, and systems where the 8946 1.1 christos VM page cache was not coherent with the file system buffer cache 8947 1.1 christos like early versions of FreeBSD and possibly contemporary NetBSD.) 8948 1.1 christos For shared mappings, we should conversely verify that changes get 8949 1.1 christos propagated back to all the places they're supposed to be. 8950 1.1 christos 8951 1.1 christos Grep wants private fixed already mapped. 8952 1.1 christos The main things grep needs to know about mmap are: 8953 1.1 christos * does it exist and is it safe to write into the mmap'd area 8954 1.1 christos * how to use it (BSD variants) */ 8955 1.1 christos 8956 1.1 christos #include <fcntl.h> 8957 1.1 christos #include <sys/mman.h> 8958 1.1 christos 8959 1.1 christos #if !STDC_HEADERS && !HAVE_STDLIB_H 8960 1.1 christos char *malloc (); 8961 1.1 christos #endif 8962 1.1 christos 8963 1.1 christos /* This mess was copied from the GNU getpagesize.h. */ 8964 1.1 christos #if !HAVE_GETPAGESIZE 8965 1.1 christos /* Assume that all systems that can run configure have sys/param.h. */ 8966 1.1 christos # if !HAVE_SYS_PARAM_H 8967 1.1 christos # define HAVE_SYS_PARAM_H 1 8968 1.1 christos # endif 8969 1.1 christos 8970 1.1 christos # ifdef _SC_PAGESIZE 8971 1.1 christos # define getpagesize() sysconf(_SC_PAGESIZE) 8972 1.1 christos # else /* no _SC_PAGESIZE */ 8973 1.1 christos # if HAVE_SYS_PARAM_H 8974 1.1 christos # include <sys/param.h> 8975 1.1 christos # ifdef EXEC_PAGESIZE 8976 1.1 christos # define getpagesize() EXEC_PAGESIZE 8977 1.1 christos # else /* no EXEC_PAGESIZE */ 8978 1.1 christos # ifdef NBPG 8979 1.1 christos # define getpagesize() NBPG * CLSIZE 8980 1.1 christos # ifndef CLSIZE 8981 1.1 christos # define CLSIZE 1 8982 1.1 christos # endif /* no CLSIZE */ 8983 1.1 christos # else /* no NBPG */ 8984 1.1 christos # ifdef NBPC 8985 1.1 christos # define getpagesize() NBPC 8986 1.1 christos # else /* no NBPC */ 8987 1.1 christos # ifdef PAGESIZE 8988 1.1 christos # define getpagesize() PAGESIZE 8989 1.1 christos # endif /* PAGESIZE */ 8990 1.1 christos # endif /* no NBPC */ 8991 1.1 christos # endif /* no NBPG */ 8992 1.1 christos # endif /* no EXEC_PAGESIZE */ 8993 1.1 christos # else /* no HAVE_SYS_PARAM_H */ 8994 1.1 christos # define getpagesize() 8192 /* punt totally */ 8995 1.1 christos # endif /* no HAVE_SYS_PARAM_H */ 8996 1.1 christos # endif /* no _SC_PAGESIZE */ 8997 1.1 christos 8998 1.1 christos #endif /* no HAVE_GETPAGESIZE */ 8999 1.1 christos 9000 1.1 christos int 9001 1.1 christos main () 9002 1.1 christos { 9003 1.1 christos char *data, *data2, *data3; 9004 1.1 christos int i, pagesize; 9005 1.1 christos int fd; 9006 1.1 christos 9007 1.1 christos pagesize = getpagesize (); 9008 1.1 christos 9009 1.1 christos /* First, make a file with some known garbage in it. */ 9010 1.1 christos data = (char *) malloc (pagesize); 9011 1.1 christos if (!data) 9012 1.1 christos exit (1); 9013 1.1 christos for (i = 0; i < pagesize; ++i) 9014 1.1 christos *(data + i) = rand (); 9015 1.1 christos umask (0); 9016 1.1 christos fd = creat ("conftest.mmap", 0600); 9017 1.1 christos if (fd < 0) 9018 1.1 christos exit (1); 9019 1.1 christos if (write (fd, data, pagesize) != pagesize) 9020 1.1 christos exit (1); 9021 1.1 christos close (fd); 9022 1.1 christos 9023 1.1 christos /* Next, try to mmap the file at a fixed address which already has 9024 1.1 christos something else allocated at it. If we can, also make sure that 9025 1.1 christos we see the same garbage. */ 9026 1.1 christos fd = open ("conftest.mmap", O_RDWR); 9027 1.1 christos if (fd < 0) 9028 1.1 christos exit (1); 9029 1.1 christos data2 = (char *) malloc (2 * pagesize); 9030 1.1 christos if (!data2) 9031 1.1 christos exit (1); 9032 1.1 christos data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); 9033 1.1 christos if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 9034 1.1 christos MAP_PRIVATE | MAP_FIXED, fd, 0L)) 9035 1.1 christos exit (1); 9036 1.1 christos for (i = 0; i < pagesize; ++i) 9037 1.1 christos if (*(data + i) != *(data2 + i)) 9038 1.1 christos exit (1); 9039 1.1 christos 9040 1.1 christos /* Finally, make sure that changes to the mapped area do not 9041 1.1 christos percolate back to the file as seen by read(). (This is a bug on 9042 1.1 christos some variants of i386 svr4.0.) */ 9043 1.1 christos for (i = 0; i < pagesize; ++i) 9044 1.1 christos *(data2 + i) = *(data2 + i) + 1; 9045 1.1 christos data3 = (char *) malloc (pagesize); 9046 1.1 christos if (!data3) 9047 1.1 christos exit (1); 9048 1.1 christos if (read (fd, data3, pagesize) != pagesize) 9049 1.1 christos exit (1); 9050 1.1 christos for (i = 0; i < pagesize; ++i) 9051 1.1 christos if (*(data + i) != *(data3 + i)) 9052 1.1 christos exit (1); 9053 1.1 christos close (fd); 9054 1.1 christos exit (0); 9055 1.1 christos } 9056 1.1 christos _ACEOF 9057 1.1 christos rm -f conftest$ac_exeext 9058 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9059 1.1 christos (eval $ac_link) 2>&5 9060 1.1 christos ac_status=$? 9061 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9063 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9064 1.1 christos (eval $ac_try) 2>&5 9065 1.1 christos ac_status=$? 9066 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9067 1.1 christos (exit $ac_status); }; }; then 9068 1.1 christos ac_cv_func_mmap_fixed_mapped=yes 9069 1.1 christos else 9070 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 9071 1.1 christos echo "$as_me: failed program was:" >&5 9072 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9073 1.1 christos 9074 1.1 christos ( exit $ac_status ) 9075 1.1 christos ac_cv_func_mmap_fixed_mapped=no 9076 1.1 christos fi 9077 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9078 1.1 christos fi 9079 1.1 christos fi 9080 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 9081 1.1 christos echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 9082 1.1 christos if test $ac_cv_func_mmap_fixed_mapped = yes; then 9083 1.1 christos 9084 1.1 christos cat >>confdefs.h <<\_ACEOF 9085 1.1 christos #define HAVE_MMAP 1 9086 1.1 christos _ACEOF 9087 1.1 christos 9088 1.1 christos fi 9089 1.1 christos rm -f conftest.mmap 9090 1.1 christos 9091 1.1 christos 9092 1.1 christos echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 9093 1.1 christos echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 9094 1.1 christos if test "${ac_cv_gnu_library_2_1+set}" = set; then 9095 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9096 1.1 christos else 9097 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9098 1.1 christos /* confdefs.h. */ 9099 1.1 christos _ACEOF 9100 1.1 christos cat confdefs.h >>conftest.$ac_ext 9101 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9102 1.1 christos /* end confdefs.h. */ 9103 1.1 christos 9104 1.1 christos #include <features.h> 9105 1.1 christos #ifdef __GNU_LIBRARY__ 9106 1.1 christos #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 9107 1.1 christos Lucky GNU user 9108 1.1 christos #endif 9109 1.1 christos #endif 9110 1.1 christos 9111 1.1 christos _ACEOF 9112 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9113 1.1 christos $EGREP "Lucky GNU user" >/dev/null 2>&1; then 9114 1.1 christos ac_cv_gnu_library_2_1=yes 9115 1.1 christos else 9116 1.1 christos ac_cv_gnu_library_2_1=no 9117 1.1 christos fi 9118 1.1 christos rm -f conftest* 9119 1.1 christos 9120 1.1 christos 9121 1.1 christos 9122 1.1 christos fi 9123 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 9124 1.1 christos echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 9125 1.1 christos 9126 1.1 christos GLIBC21="$ac_cv_gnu_library_2_1" 9127 1.1 christos 9128 1.1 christos 9129 1.1 christos 9130 1.1 christos 9131 1.1 christos echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 9132 1.1 christos echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 9133 1.1 christos if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then 9134 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9135 1.1 christos else 9136 1.1 christos 9137 1.1 christos if test "$cross_compiling" = yes; then 9138 1.1 christos 9139 1.1 christos # Guess based on the CPU. 9140 1.1 christos case "$host_cpu" in 9141 1.1 christos alpha* | i3456786 | m68k | s390*) 9142 1.1 christos gt_cv_int_divbyzero_sigfpe="guessing yes";; 9143 1.1 christos *) 9144 1.1 christos gt_cv_int_divbyzero_sigfpe="guessing no";; 9145 1.1 christos esac 9146 1.1 christos 9147 1.1 christos else 9148 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9149 1.1 christos /* confdefs.h. */ 9150 1.1 christos _ACEOF 9151 1.1 christos cat confdefs.h >>conftest.$ac_ext 9152 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9153 1.1 christos /* end confdefs.h. */ 9154 1.1 christos 9155 1.1 christos #include <stdlib.h> 9156 1.1 christos #include <signal.h> 9157 1.1 christos 9158 1.1 christos static void 9159 1.1 christos #ifdef __cplusplus 9160 1.1 christos sigfpe_handler (int sig) 9161 1.1 christos #else 9162 1.1 christos sigfpe_handler (sig) int sig; 9163 1.1 christos #endif 9164 1.1 christos { 9165 1.1 christos /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 9166 1.1 christos exit (sig != SIGFPE); 9167 1.1 christos } 9168 1.1 christos 9169 1.1 christos int x = 1; 9170 1.1 christos int y = 0; 9171 1.1 christos int z; 9172 1.1 christos int nan; 9173 1.1 christos 9174 1.1 christos int main () 9175 1.1 christos { 9176 1.1 christos signal (SIGFPE, sigfpe_handler); 9177 1.1 christos /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 9178 1.1 christos #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 9179 1.1 christos signal (SIGTRAP, sigfpe_handler); 9180 1.1 christos #endif 9181 1.1 christos /* Linux/SPARC yields signal SIGILL. */ 9182 1.1 christos #if defined (__sparc__) && defined (__linux__) 9183 1.1 christos signal (SIGILL, sigfpe_handler); 9184 1.1 christos #endif 9185 1.1 christos 9186 1.1 christos z = x / y; 9187 1.1 christos nan = y / y; 9188 1.1 christos exit (1); 9189 1.1 christos } 9190 1.1 christos 9191 1.1 christos _ACEOF 9192 1.1 christos rm -f conftest$ac_exeext 9193 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9194 1.1 christos (eval $ac_link) 2>&5 9195 1.1 christos ac_status=$? 9196 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9197 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9198 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9199 1.1 christos (eval $ac_try) 2>&5 9200 1.1 christos ac_status=$? 9201 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9202 1.1 christos (exit $ac_status); }; }; then 9203 1.1 christos gt_cv_int_divbyzero_sigfpe=yes 9204 1.1 christos else 9205 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 9206 1.1 christos echo "$as_me: failed program was:" >&5 9207 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9208 1.1 christos 9209 1.1 christos ( exit $ac_status ) 9210 1.1 christos gt_cv_int_divbyzero_sigfpe=no 9211 1.1 christos fi 9212 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9213 1.1 christos fi 9214 1.1 christos 9215 1.1 christos fi 9216 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 9217 1.1 christos echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 9218 1.1 christos case "$gt_cv_int_divbyzero_sigfpe" in 9219 1.1 christos *yes) value=1;; 9220 1.1 christos *) value=0;; 9221 1.1 christos esac 9222 1.1 christos 9223 1.1 christos cat >>confdefs.h <<_ACEOF 9224 1.1 christos #define INTDIV0_RAISES_SIGFPE $value 9225 1.1 christos _ACEOF 9226 1.1 christos 9227 1.1 christos 9228 1.1 christos 9229 1.1 christos echo "$as_me:$LINENO: checking for inttypes.h" >&5 9230 1.1 christos echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 9231 1.1 christos if test "${gt_cv_header_inttypes_h+set}" = set; then 9232 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9233 1.1 christos else 9234 1.1 christos 9235 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9236 1.1 christos /* confdefs.h. */ 9237 1.1 christos _ACEOF 9238 1.1 christos cat confdefs.h >>conftest.$ac_ext 9239 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9240 1.1 christos /* end confdefs.h. */ 9241 1.1 christos #include <sys/types.h> 9242 1.1 christos #include <inttypes.h> 9243 1.1 christos int 9244 1.1 christos main () 9245 1.1 christos { 9246 1.1 christos 9247 1.1 christos ; 9248 1.1 christos return 0; 9249 1.1 christos } 9250 1.1 christos _ACEOF 9251 1.1 christos rm -f conftest.$ac_objext 9252 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9253 1.1 christos (eval $ac_compile) 2>conftest.er1 9254 1.1 christos ac_status=$? 9255 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9256 1.1 christos rm -f conftest.er1 9257 1.1 christos cat conftest.err >&5 9258 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9259 1.1 christos (exit $ac_status); } && 9260 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9261 1.1 christos || test ! -s conftest.err' 9262 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9263 1.1 christos (eval $ac_try) 2>&5 9264 1.1 christos ac_status=$? 9265 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9266 1.1 christos (exit $ac_status); }; } && 9267 1.1 christos { ac_try='test -s conftest.$ac_objext' 9268 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9269 1.1 christos (eval $ac_try) 2>&5 9270 1.1 christos ac_status=$? 9271 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9272 1.1 christos (exit $ac_status); }; }; then 9273 1.1 christos gt_cv_header_inttypes_h=yes 9274 1.1 christos else 9275 1.1 christos echo "$as_me: failed program was:" >&5 9276 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9277 1.1 christos 9278 1.1 christos gt_cv_header_inttypes_h=no 9279 1.1 christos fi 9280 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9281 1.1 christos 9282 1.1 christos fi 9283 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 9284 1.1 christos echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 9285 1.1 christos if test $gt_cv_header_inttypes_h = yes; then 9286 1.1 christos 9287 1.1 christos cat >>confdefs.h <<_ACEOF 9288 1.1 christos #define HAVE_INTTYPES_H 1 9289 1.1 christos _ACEOF 9290 1.1 christos 9291 1.1 christos fi 9292 1.1 christos 9293 1.1 christos 9294 1.1 christos 9295 1.1 christos if test $gt_cv_header_inttypes_h = yes; then 9296 1.1 christos echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 9297 1.1 christos echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 9298 1.1 christos if test "${gt_cv_inttypes_pri_broken+set}" = set; then 9299 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9300 1.1 christos else 9301 1.1 christos 9302 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9303 1.1 christos /* confdefs.h. */ 9304 1.1 christos _ACEOF 9305 1.1 christos cat confdefs.h >>conftest.$ac_ext 9306 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9307 1.1 christos /* end confdefs.h. */ 9308 1.1 christos #include <inttypes.h> 9309 1.1 christos #ifdef PRId32 9310 1.1 christos char *p = PRId32; 9311 1.1 christos #endif 9312 1.1 christos 9313 1.1 christos int 9314 1.1 christos main () 9315 1.1 christos { 9316 1.1 christos 9317 1.1 christos ; 9318 1.1 christos return 0; 9319 1.1 christos } 9320 1.1 christos _ACEOF 9321 1.1 christos rm -f conftest.$ac_objext 9322 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9323 1.1 christos (eval $ac_compile) 2>conftest.er1 9324 1.1 christos ac_status=$? 9325 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9326 1.1 christos rm -f conftest.er1 9327 1.1 christos cat conftest.err >&5 9328 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9329 1.1 christos (exit $ac_status); } && 9330 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9331 1.1 christos || test ! -s conftest.err' 9332 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9333 1.1 christos (eval $ac_try) 2>&5 9334 1.1 christos ac_status=$? 9335 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9336 1.1 christos (exit $ac_status); }; } && 9337 1.1 christos { ac_try='test -s conftest.$ac_objext' 9338 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9339 1.1 christos (eval $ac_try) 2>&5 9340 1.1 christos ac_status=$? 9341 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9342 1.1 christos (exit $ac_status); }; }; then 9343 1.1 christos gt_cv_inttypes_pri_broken=no 9344 1.1 christos else 9345 1.1 christos echo "$as_me: failed program was:" >&5 9346 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9347 1.1 christos 9348 1.1 christos gt_cv_inttypes_pri_broken=yes 9349 1.1 christos fi 9350 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9351 1.1 christos 9352 1.1 christos fi 9353 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 9354 1.1 christos echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 9355 1.1 christos fi 9356 1.1 christos if test "$gt_cv_inttypes_pri_broken" = yes; then 9357 1.1 christos 9358 1.1 christos cat >>confdefs.h <<_ACEOF 9359 1.1 christos #define PRI_MACROS_BROKEN 1 9360 1.1 christos _ACEOF 9361 1.1 christos 9362 1.1 christos fi 9363 1.1 christos 9364 1.1 christos 9365 1.1 christos 9366 1.1 christos for ac_header in stdint.h 9367 1.1 christos do 9368 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9369 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 9370 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 9371 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9372 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 9373 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9374 1.1 christos fi 9375 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9376 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9377 1.1 christos else 9378 1.1 christos # Is the header compilable? 9379 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 9380 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9381 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9382 1.1 christos /* confdefs.h. */ 9383 1.1 christos _ACEOF 9384 1.1 christos cat confdefs.h >>conftest.$ac_ext 9385 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9386 1.1 christos /* end confdefs.h. */ 9387 1.1 christos $ac_includes_default 9388 1.1 christos #include <$ac_header> 9389 1.1 christos _ACEOF 9390 1.1 christos rm -f conftest.$ac_objext 9391 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9392 1.1 christos (eval $ac_compile) 2>conftest.er1 9393 1.1 christos ac_status=$? 9394 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9395 1.1 christos rm -f conftest.er1 9396 1.1 christos cat conftest.err >&5 9397 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9398 1.1 christos (exit $ac_status); } && 9399 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9400 1.1 christos || test ! -s conftest.err' 9401 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9402 1.1 christos (eval $ac_try) 2>&5 9403 1.1 christos ac_status=$? 9404 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9405 1.1 christos (exit $ac_status); }; } && 9406 1.1 christos { ac_try='test -s conftest.$ac_objext' 9407 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9408 1.1 christos (eval $ac_try) 2>&5 9409 1.1 christos ac_status=$? 9410 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9411 1.1 christos (exit $ac_status); }; }; then 9412 1.1 christos ac_header_compiler=yes 9413 1.1 christos else 9414 1.1 christos echo "$as_me: failed program was:" >&5 9415 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9416 1.1 christos 9417 1.1 christos ac_header_compiler=no 9418 1.1 christos fi 9419 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9420 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9421 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 9422 1.1 christos 9423 1.1 christos # Is the header present? 9424 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 9425 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9426 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9427 1.1 christos /* confdefs.h. */ 9428 1.1 christos _ACEOF 9429 1.1 christos cat confdefs.h >>conftest.$ac_ext 9430 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9431 1.1 christos /* end confdefs.h. */ 9432 1.1 christos #include <$ac_header> 9433 1.1 christos _ACEOF 9434 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9435 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9436 1.1 christos ac_status=$? 9437 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9438 1.1 christos rm -f conftest.er1 9439 1.1 christos cat conftest.err >&5 9440 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9441 1.1 christos (exit $ac_status); } >/dev/null; then 9442 1.1 christos if test -s conftest.err; then 9443 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 9444 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9445 1.1 christos else 9446 1.1 christos ac_cpp_err= 9447 1.1 christos fi 9448 1.1 christos else 9449 1.1 christos ac_cpp_err=yes 9450 1.1 christos fi 9451 1.1 christos if test -z "$ac_cpp_err"; then 9452 1.1 christos ac_header_preproc=yes 9453 1.1 christos else 9454 1.1 christos echo "$as_me: failed program was:" >&5 9455 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9456 1.1 christos 9457 1.1 christos ac_header_preproc=no 9458 1.1 christos fi 9459 1.1 christos rm -f conftest.err conftest.$ac_ext 9460 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9461 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 9462 1.1 christos 9463 1.1 christos # So? What about this header? 9464 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9465 1.1 christos yes:no: ) 9466 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9467 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9468 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9469 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9470 1.1 christos ac_header_preproc=yes 9471 1.1 christos ;; 9472 1.1 christos no:yes:* ) 9473 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9474 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9475 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9476 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9477 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9478 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9479 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9480 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9481 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9482 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9483 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9484 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9485 1.1 christos ( 9486 1.1 christos cat <<\_ASBOX 9487 1.1 christos ## -------------------------------------- ## 9488 1.1 christos ## Report this to the GNU Texinfo lists. ## 9489 1.1 christos ## -------------------------------------- ## 9490 1.1 christos _ASBOX 9491 1.1 christos ) | 9492 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 9493 1.1 christos ;; 9494 1.1 christos esac 9495 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 9496 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9497 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 9498 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 9499 1.1 christos else 9500 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 9501 1.1 christos fi 9502 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9503 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9504 1.1 christos 9505 1.1 christos fi 9506 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 9507 1.1 christos cat >>confdefs.h <<_ACEOF 9508 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9509 1.1 christos _ACEOF 9510 1.1 christos 9511 1.1 christos fi 9512 1.1 christos 9513 1.1 christos done 9514 1.1 christos 9515 1.1 christos echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 9516 1.1 christos echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 9517 1.1 christos result= 9518 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9519 1.1 christos /* confdefs.h. */ 9520 1.1 christos _ACEOF 9521 1.1 christos cat confdefs.h >>conftest.$ac_ext 9522 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9523 1.1 christos /* end confdefs.h. */ 9524 1.1 christos 9525 1.1 christos #include <limits.h> 9526 1.1 christos #if HAVE_STDINT_H 9527 1.1 christos #include <stdint.h> 9528 1.1 christos #endif 9529 1.1 christos #ifdef SIZE_MAX 9530 1.1 christos Found it 9531 1.1 christos #endif 9532 1.1 christos 9533 1.1 christos _ACEOF 9534 1.1 christos if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9535 1.1 christos $EGREP "Found it" >/dev/null 2>&1; then 9536 1.1 christos result=yes 9537 1.1 christos fi 9538 1.1 christos rm -f conftest* 9539 1.1 christos 9540 1.1 christos if test -z "$result"; then 9541 1.1 christos if test "$cross_compiling" = yes; then 9542 1.1 christos # Depending upon the size, compute the lo and hi bounds. 9543 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9544 1.1 christos /* confdefs.h. */ 9545 1.1 christos _ACEOF 9546 1.1 christos cat confdefs.h >>conftest.$ac_ext 9547 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9548 1.1 christos /* end confdefs.h. */ 9549 1.1 christos #include <stddef.h> 9550 1.1 christos int 9551 1.1 christos main () 9552 1.1 christos { 9553 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; 9554 1.1 christos test_array [0] = 0 9555 1.1 christos 9556 1.1 christos ; 9557 1.1 christos return 0; 9558 1.1 christos } 9559 1.1 christos _ACEOF 9560 1.1 christos rm -f conftest.$ac_objext 9561 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9562 1.1 christos (eval $ac_compile) 2>conftest.er1 9563 1.1 christos ac_status=$? 9564 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9565 1.1 christos rm -f conftest.er1 9566 1.1 christos cat conftest.err >&5 9567 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9568 1.1 christos (exit $ac_status); } && 9569 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9570 1.1 christos || test ! -s conftest.err' 9571 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9572 1.1 christos (eval $ac_try) 2>&5 9573 1.1 christos ac_status=$? 9574 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9575 1.1 christos (exit $ac_status); }; } && 9576 1.1 christos { ac_try='test -s conftest.$ac_objext' 9577 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9578 1.1 christos (eval $ac_try) 2>&5 9579 1.1 christos ac_status=$? 9580 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9581 1.1 christos (exit $ac_status); }; }; then 9582 1.1 christos ac_lo=0 ac_mid=0 9583 1.1 christos while :; do 9584 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9585 1.1 christos /* confdefs.h. */ 9586 1.1 christos _ACEOF 9587 1.1 christos cat confdefs.h >>conftest.$ac_ext 9588 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9589 1.1 christos /* end confdefs.h. */ 9590 1.1 christos #include <stddef.h> 9591 1.1 christos int 9592 1.1 christos main () 9593 1.1 christos { 9594 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 9595 1.1 christos test_array [0] = 0 9596 1.1 christos 9597 1.1 christos ; 9598 1.1 christos return 0; 9599 1.1 christos } 9600 1.1 christos _ACEOF 9601 1.1 christos rm -f conftest.$ac_objext 9602 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9603 1.1 christos (eval $ac_compile) 2>conftest.er1 9604 1.1 christos ac_status=$? 9605 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9606 1.1 christos rm -f conftest.er1 9607 1.1 christos cat conftest.err >&5 9608 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9609 1.1 christos (exit $ac_status); } && 9610 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9611 1.1 christos || test ! -s conftest.err' 9612 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9613 1.1 christos (eval $ac_try) 2>&5 9614 1.1 christos ac_status=$? 9615 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9616 1.1 christos (exit $ac_status); }; } && 9617 1.1 christos { ac_try='test -s conftest.$ac_objext' 9618 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9619 1.1 christos (eval $ac_try) 2>&5 9620 1.1 christos ac_status=$? 9621 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9622 1.1 christos (exit $ac_status); }; }; then 9623 1.1 christos ac_hi=$ac_mid; break 9624 1.1 christos else 9625 1.1 christos echo "$as_me: failed program was:" >&5 9626 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9627 1.1 christos 9628 1.1 christos ac_lo=`expr $ac_mid + 1` 9629 1.1 christos if test $ac_lo -le $ac_mid; then 9630 1.1 christos ac_lo= ac_hi= 9631 1.1 christos break 9632 1.1 christos fi 9633 1.1 christos ac_mid=`expr 2 '*' $ac_mid + 1` 9634 1.1 christos fi 9635 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9636 1.1 christos done 9637 1.1 christos else 9638 1.1 christos echo "$as_me: failed program was:" >&5 9639 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9640 1.1 christos 9641 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9642 1.1 christos /* confdefs.h. */ 9643 1.1 christos _ACEOF 9644 1.1 christos cat confdefs.h >>conftest.$ac_ext 9645 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9646 1.1 christos /* end confdefs.h. */ 9647 1.1 christos #include <stddef.h> 9648 1.1 christos int 9649 1.1 christos main () 9650 1.1 christos { 9651 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; 9652 1.1 christos test_array [0] = 0 9653 1.1 christos 9654 1.1 christos ; 9655 1.1 christos return 0; 9656 1.1 christos } 9657 1.1 christos _ACEOF 9658 1.1 christos rm -f conftest.$ac_objext 9659 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9660 1.1 christos (eval $ac_compile) 2>conftest.er1 9661 1.1 christos ac_status=$? 9662 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9663 1.1 christos rm -f conftest.er1 9664 1.1 christos cat conftest.err >&5 9665 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9666 1.1 christos (exit $ac_status); } && 9667 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9668 1.1 christos || test ! -s conftest.err' 9669 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9670 1.1 christos (eval $ac_try) 2>&5 9671 1.1 christos ac_status=$? 9672 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9673 1.1 christos (exit $ac_status); }; } && 9674 1.1 christos { ac_try='test -s conftest.$ac_objext' 9675 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9676 1.1 christos (eval $ac_try) 2>&5 9677 1.1 christos ac_status=$? 9678 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9679 1.1 christos (exit $ac_status); }; }; then 9680 1.1 christos ac_hi=-1 ac_mid=-1 9681 1.1 christos while :; do 9682 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9683 1.1 christos /* confdefs.h. */ 9684 1.1 christos _ACEOF 9685 1.1 christos cat confdefs.h >>conftest.$ac_ext 9686 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9687 1.1 christos /* end confdefs.h. */ 9688 1.1 christos #include <stddef.h> 9689 1.1 christos int 9690 1.1 christos main () 9691 1.1 christos { 9692 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; 9693 1.1 christos test_array [0] = 0 9694 1.1 christos 9695 1.1 christos ; 9696 1.1 christos return 0; 9697 1.1 christos } 9698 1.1 christos _ACEOF 9699 1.1 christos rm -f conftest.$ac_objext 9700 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9701 1.1 christos (eval $ac_compile) 2>conftest.er1 9702 1.1 christos ac_status=$? 9703 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9704 1.1 christos rm -f conftest.er1 9705 1.1 christos cat conftest.err >&5 9706 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9707 1.1 christos (exit $ac_status); } && 9708 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9709 1.1 christos || test ! -s conftest.err' 9710 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9711 1.1 christos (eval $ac_try) 2>&5 9712 1.1 christos ac_status=$? 9713 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9714 1.1 christos (exit $ac_status); }; } && 9715 1.1 christos { ac_try='test -s conftest.$ac_objext' 9716 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9717 1.1 christos (eval $ac_try) 2>&5 9718 1.1 christos ac_status=$? 9719 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9720 1.1 christos (exit $ac_status); }; }; then 9721 1.1 christos ac_lo=$ac_mid; break 9722 1.1 christos else 9723 1.1 christos echo "$as_me: failed program was:" >&5 9724 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9725 1.1 christos 9726 1.1 christos ac_hi=`expr '(' $ac_mid ')' - 1` 9727 1.1 christos if test $ac_mid -le $ac_hi; then 9728 1.1 christos ac_lo= ac_hi= 9729 1.1 christos break 9730 1.1 christos fi 9731 1.1 christos ac_mid=`expr 2 '*' $ac_mid` 9732 1.1 christos fi 9733 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9734 1.1 christos done 9735 1.1 christos else 9736 1.1 christos echo "$as_me: failed program was:" >&5 9737 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9738 1.1 christos 9739 1.1 christos ac_lo= ac_hi= 9740 1.1 christos fi 9741 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9742 1.1 christos fi 9743 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9744 1.1 christos # Binary search between lo and hi bounds. 9745 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do 9746 1.1 christos ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9747 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9748 1.1 christos /* confdefs.h. */ 9749 1.1 christos _ACEOF 9750 1.1 christos cat confdefs.h >>conftest.$ac_ext 9751 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9752 1.1 christos /* end confdefs.h. */ 9753 1.1 christos #include <stddef.h> 9754 1.1 christos int 9755 1.1 christos main () 9756 1.1 christos { 9757 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; 9758 1.1 christos test_array [0] = 0 9759 1.1 christos 9760 1.1 christos ; 9761 1.1 christos return 0; 9762 1.1 christos } 9763 1.1 christos _ACEOF 9764 1.1 christos rm -f conftest.$ac_objext 9765 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9766 1.1 christos (eval $ac_compile) 2>conftest.er1 9767 1.1 christos ac_status=$? 9768 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9769 1.1 christos rm -f conftest.er1 9770 1.1 christos cat conftest.err >&5 9771 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9772 1.1 christos (exit $ac_status); } && 9773 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9774 1.1 christos || test ! -s conftest.err' 9775 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9776 1.1 christos (eval $ac_try) 2>&5 9777 1.1 christos ac_status=$? 9778 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9779 1.1 christos (exit $ac_status); }; } && 9780 1.1 christos { ac_try='test -s conftest.$ac_objext' 9781 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9782 1.1 christos (eval $ac_try) 2>&5 9783 1.1 christos ac_status=$? 9784 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9785 1.1 christos (exit $ac_status); }; }; then 9786 1.1 christos ac_hi=$ac_mid 9787 1.1 christos else 9788 1.1 christos echo "$as_me: failed program was:" >&5 9789 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9790 1.1 christos 9791 1.1 christos ac_lo=`expr '(' $ac_mid ')' + 1` 9792 1.1 christos fi 9793 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9794 1.1 christos done 9795 1.1 christos case $ac_lo in 9796 1.1 christos ?*) res_hi=$ac_lo;; 9797 1.1 christos '') result=? ;; 9798 1.1 christos esac 9799 1.1 christos else 9800 1.1 christos if test "$cross_compiling" = yes; then 9801 1.1 christos { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 9802 1.1 christos See \`config.log' for more details." >&5 9803 1.1 christos echo "$as_me: error: cannot run test program while cross compiling 9804 1.1 christos See \`config.log' for more details." >&2;} 9805 1.1 christos { (exit 1); exit 1; }; } 9806 1.1 christos else 9807 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9808 1.1 christos /* confdefs.h. */ 9809 1.1 christos _ACEOF 9810 1.1 christos cat confdefs.h >>conftest.$ac_ext 9811 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9812 1.1 christos /* end confdefs.h. */ 9813 1.1 christos #include <stddef.h> 9814 1.1 christos long longval () { return ~(size_t)0 / 10; } 9815 1.1 christos unsigned long ulongval () { return ~(size_t)0 / 10; } 9816 1.1 christos #include <stdio.h> 9817 1.1 christos #include <stdlib.h> 9818 1.1 christos int 9819 1.1 christos main () 9820 1.1 christos { 9821 1.1 christos 9822 1.1 christos FILE *f = fopen ("conftest.val", "w"); 9823 1.1 christos if (! f) 9824 1.1 christos exit (1); 9825 1.1 christos if ((~(size_t)0 / 10) < 0) 9826 1.1 christos { 9827 1.1 christos long i = longval (); 9828 1.1 christos if (i != (~(size_t)0 / 10)) 9829 1.1 christos exit (1); 9830 1.1 christos fprintf (f, "%ld\n", i); 9831 1.1 christos } 9832 1.1 christos else 9833 1.1 christos { 9834 1.1 christos unsigned long i = ulongval (); 9835 1.1 christos if (i != (~(size_t)0 / 10)) 9836 1.1 christos exit (1); 9837 1.1 christos fprintf (f, "%lu\n", i); 9838 1.1 christos } 9839 1.1 christos exit (ferror (f) || fclose (f) != 0); 9840 1.1 christos 9841 1.1 christos ; 9842 1.1 christos return 0; 9843 1.1 christos } 9844 1.1 christos _ACEOF 9845 1.1 christos rm -f conftest$ac_exeext 9846 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9847 1.1 christos (eval $ac_link) 2>&5 9848 1.1 christos ac_status=$? 9849 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9850 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9851 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9852 1.1 christos (eval $ac_try) 2>&5 9853 1.1 christos ac_status=$? 9854 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9855 1.1 christos (exit $ac_status); }; }; then 9856 1.1 christos res_hi=`cat conftest.val` 9857 1.1 christos else 9858 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 9859 1.1 christos echo "$as_me: failed program was:" >&5 9860 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9861 1.1 christos 9862 1.1 christos ( exit $ac_status ) 9863 1.1 christos result=? 9864 1.1 christos fi 9865 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9866 1.1 christos fi 9867 1.1 christos fi 9868 1.1 christos rm -f conftest.val 9869 1.1 christos if test "$cross_compiling" = yes; then 9870 1.1 christos # Depending upon the size, compute the lo and hi bounds. 9871 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9872 1.1 christos /* confdefs.h. */ 9873 1.1 christos _ACEOF 9874 1.1 christos cat confdefs.h >>conftest.$ac_ext 9875 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9876 1.1 christos /* end confdefs.h. */ 9877 1.1 christos #include <stddef.h> 9878 1.1 christos int 9879 1.1 christos main () 9880 1.1 christos { 9881 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; 9882 1.1 christos test_array [0] = 0 9883 1.1 christos 9884 1.1 christos ; 9885 1.1 christos return 0; 9886 1.1 christos } 9887 1.1 christos _ACEOF 9888 1.1 christos rm -f conftest.$ac_objext 9889 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9890 1.1 christos (eval $ac_compile) 2>conftest.er1 9891 1.1 christos ac_status=$? 9892 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9893 1.1 christos rm -f conftest.er1 9894 1.1 christos cat conftest.err >&5 9895 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9896 1.1 christos (exit $ac_status); } && 9897 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9898 1.1 christos || test ! -s conftest.err' 9899 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9900 1.1 christos (eval $ac_try) 2>&5 9901 1.1 christos ac_status=$? 9902 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9903 1.1 christos (exit $ac_status); }; } && 9904 1.1 christos { ac_try='test -s conftest.$ac_objext' 9905 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9906 1.1 christos (eval $ac_try) 2>&5 9907 1.1 christos ac_status=$? 9908 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9909 1.1 christos (exit $ac_status); }; }; then 9910 1.1 christos ac_lo=0 ac_mid=0 9911 1.1 christos while :; do 9912 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9913 1.1 christos /* confdefs.h. */ 9914 1.1 christos _ACEOF 9915 1.1 christos cat confdefs.h >>conftest.$ac_ext 9916 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9917 1.1 christos /* end confdefs.h. */ 9918 1.1 christos #include <stddef.h> 9919 1.1 christos int 9920 1.1 christos main () 9921 1.1 christos { 9922 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 9923 1.1 christos test_array [0] = 0 9924 1.1 christos 9925 1.1 christos ; 9926 1.1 christos return 0; 9927 1.1 christos } 9928 1.1 christos _ACEOF 9929 1.1 christos rm -f conftest.$ac_objext 9930 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9931 1.1 christos (eval $ac_compile) 2>conftest.er1 9932 1.1 christos ac_status=$? 9933 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9934 1.1 christos rm -f conftest.er1 9935 1.1 christos cat conftest.err >&5 9936 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9937 1.1 christos (exit $ac_status); } && 9938 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9939 1.1 christos || test ! -s conftest.err' 9940 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9941 1.1 christos (eval $ac_try) 2>&5 9942 1.1 christos ac_status=$? 9943 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9944 1.1 christos (exit $ac_status); }; } && 9945 1.1 christos { ac_try='test -s conftest.$ac_objext' 9946 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9947 1.1 christos (eval $ac_try) 2>&5 9948 1.1 christos ac_status=$? 9949 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9950 1.1 christos (exit $ac_status); }; }; then 9951 1.1 christos ac_hi=$ac_mid; break 9952 1.1 christos else 9953 1.1 christos echo "$as_me: failed program was:" >&5 9954 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9955 1.1 christos 9956 1.1 christos ac_lo=`expr $ac_mid + 1` 9957 1.1 christos if test $ac_lo -le $ac_mid; then 9958 1.1 christos ac_lo= ac_hi= 9959 1.1 christos break 9960 1.1 christos fi 9961 1.1 christos ac_mid=`expr 2 '*' $ac_mid + 1` 9962 1.1 christos fi 9963 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9964 1.1 christos done 9965 1.1 christos else 9966 1.1 christos echo "$as_me: failed program was:" >&5 9967 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 9968 1.1 christos 9969 1.1 christos cat >conftest.$ac_ext <<_ACEOF 9970 1.1 christos /* confdefs.h. */ 9971 1.1 christos _ACEOF 9972 1.1 christos cat confdefs.h >>conftest.$ac_ext 9973 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 9974 1.1 christos /* end confdefs.h. */ 9975 1.1 christos #include <stddef.h> 9976 1.1 christos int 9977 1.1 christos main () 9978 1.1 christos { 9979 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; 9980 1.1 christos test_array [0] = 0 9981 1.1 christos 9982 1.1 christos ; 9983 1.1 christos return 0; 9984 1.1 christos } 9985 1.1 christos _ACEOF 9986 1.1 christos rm -f conftest.$ac_objext 9987 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9988 1.1 christos (eval $ac_compile) 2>conftest.er1 9989 1.1 christos ac_status=$? 9990 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 9991 1.1 christos rm -f conftest.er1 9992 1.1 christos cat conftest.err >&5 9993 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 9994 1.1 christos (exit $ac_status); } && 9995 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 9996 1.1 christos || test ! -s conftest.err' 9997 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9998 1.1 christos (eval $ac_try) 2>&5 9999 1.1 christos ac_status=$? 10000 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10001 1.1 christos (exit $ac_status); }; } && 10002 1.1 christos { ac_try='test -s conftest.$ac_objext' 10003 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10004 1.1 christos (eval $ac_try) 2>&5 10005 1.1 christos ac_status=$? 10006 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10007 1.1 christos (exit $ac_status); }; }; then 10008 1.1 christos ac_hi=-1 ac_mid=-1 10009 1.1 christos while :; do 10010 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10011 1.1 christos /* confdefs.h. */ 10012 1.1 christos _ACEOF 10013 1.1 christos cat confdefs.h >>conftest.$ac_ext 10014 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10015 1.1 christos /* end confdefs.h. */ 10016 1.1 christos #include <stddef.h> 10017 1.1 christos int 10018 1.1 christos main () 10019 1.1 christos { 10020 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; 10021 1.1 christos test_array [0] = 0 10022 1.1 christos 10023 1.1 christos ; 10024 1.1 christos return 0; 10025 1.1 christos } 10026 1.1 christos _ACEOF 10027 1.1 christos rm -f conftest.$ac_objext 10028 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10029 1.1 christos (eval $ac_compile) 2>conftest.er1 10030 1.1 christos ac_status=$? 10031 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10032 1.1 christos rm -f conftest.er1 10033 1.1 christos cat conftest.err >&5 10034 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10035 1.1 christos (exit $ac_status); } && 10036 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 10037 1.1 christos || test ! -s conftest.err' 10038 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10039 1.1 christos (eval $ac_try) 2>&5 10040 1.1 christos ac_status=$? 10041 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10042 1.1 christos (exit $ac_status); }; } && 10043 1.1 christos { ac_try='test -s conftest.$ac_objext' 10044 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10045 1.1 christos (eval $ac_try) 2>&5 10046 1.1 christos ac_status=$? 10047 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10048 1.1 christos (exit $ac_status); }; }; then 10049 1.1 christos ac_lo=$ac_mid; break 10050 1.1 christos else 10051 1.1 christos echo "$as_me: failed program was:" >&5 10052 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10053 1.1 christos 10054 1.1 christos ac_hi=`expr '(' $ac_mid ')' - 1` 10055 1.1 christos if test $ac_mid -le $ac_hi; then 10056 1.1 christos ac_lo= ac_hi= 10057 1.1 christos break 10058 1.1 christos fi 10059 1.1 christos ac_mid=`expr 2 '*' $ac_mid` 10060 1.1 christos fi 10061 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10062 1.1 christos done 10063 1.1 christos else 10064 1.1 christos echo "$as_me: failed program was:" >&5 10065 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10066 1.1 christos 10067 1.1 christos ac_lo= ac_hi= 10068 1.1 christos fi 10069 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10070 1.1 christos fi 10071 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10072 1.1 christos # Binary search between lo and hi bounds. 10073 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do 10074 1.1 christos ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10075 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10076 1.1 christos /* confdefs.h. */ 10077 1.1 christos _ACEOF 10078 1.1 christos cat confdefs.h >>conftest.$ac_ext 10079 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10080 1.1 christos /* end confdefs.h. */ 10081 1.1 christos #include <stddef.h> 10082 1.1 christos int 10083 1.1 christos main () 10084 1.1 christos { 10085 1.1 christos static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; 10086 1.1 christos test_array [0] = 0 10087 1.1 christos 10088 1.1 christos ; 10089 1.1 christos return 0; 10090 1.1 christos } 10091 1.1 christos _ACEOF 10092 1.1 christos rm -f conftest.$ac_objext 10093 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10094 1.1 christos (eval $ac_compile) 2>conftest.er1 10095 1.1 christos ac_status=$? 10096 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10097 1.1 christos rm -f conftest.er1 10098 1.1 christos cat conftest.err >&5 10099 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10100 1.1 christos (exit $ac_status); } && 10101 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 10102 1.1 christos || test ! -s conftest.err' 10103 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10104 1.1 christos (eval $ac_try) 2>&5 10105 1.1 christos ac_status=$? 10106 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10107 1.1 christos (exit $ac_status); }; } && 10108 1.1 christos { ac_try='test -s conftest.$ac_objext' 10109 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10110 1.1 christos (eval $ac_try) 2>&5 10111 1.1 christos ac_status=$? 10112 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10113 1.1 christos (exit $ac_status); }; }; then 10114 1.1 christos ac_hi=$ac_mid 10115 1.1 christos else 10116 1.1 christos echo "$as_me: failed program was:" >&5 10117 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10118 1.1 christos 10119 1.1 christos ac_lo=`expr '(' $ac_mid ')' + 1` 10120 1.1 christos fi 10121 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10122 1.1 christos done 10123 1.1 christos case $ac_lo in 10124 1.1 christos ?*) res_lo=$ac_lo;; 10125 1.1 christos '') result=? ;; 10126 1.1 christos esac 10127 1.1 christos else 10128 1.1 christos if test "$cross_compiling" = yes; then 10129 1.1 christos { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10130 1.1 christos See \`config.log' for more details." >&5 10131 1.1 christos echo "$as_me: error: cannot run test program while cross compiling 10132 1.1 christos See \`config.log' for more details." >&2;} 10133 1.1 christos { (exit 1); exit 1; }; } 10134 1.1 christos else 10135 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10136 1.1 christos /* confdefs.h. */ 10137 1.1 christos _ACEOF 10138 1.1 christos cat confdefs.h >>conftest.$ac_ext 10139 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10140 1.1 christos /* end confdefs.h. */ 10141 1.1 christos #include <stddef.h> 10142 1.1 christos long longval () { return ~(size_t)0 % 10; } 10143 1.1 christos unsigned long ulongval () { return ~(size_t)0 % 10; } 10144 1.1 christos #include <stdio.h> 10145 1.1 christos #include <stdlib.h> 10146 1.1 christos int 10147 1.1 christos main () 10148 1.1 christos { 10149 1.1 christos 10150 1.1 christos FILE *f = fopen ("conftest.val", "w"); 10151 1.1 christos if (! f) 10152 1.1 christos exit (1); 10153 1.1 christos if ((~(size_t)0 % 10) < 0) 10154 1.1 christos { 10155 1.1 christos long i = longval (); 10156 1.1 christos if (i != (~(size_t)0 % 10)) 10157 1.1 christos exit (1); 10158 1.1 christos fprintf (f, "%ld\n", i); 10159 1.1 christos } 10160 1.1 christos else 10161 1.1 christos { 10162 1.1 christos unsigned long i = ulongval (); 10163 1.1 christos if (i != (~(size_t)0 % 10)) 10164 1.1 christos exit (1); 10165 1.1 christos fprintf (f, "%lu\n", i); 10166 1.1 christos } 10167 1.1 christos exit (ferror (f) || fclose (f) != 0); 10168 1.1 christos 10169 1.1 christos ; 10170 1.1 christos return 0; 10171 1.1 christos } 10172 1.1 christos _ACEOF 10173 1.1 christos rm -f conftest$ac_exeext 10174 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10175 1.1 christos (eval $ac_link) 2>&5 10176 1.1 christos ac_status=$? 10177 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10178 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10179 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10180 1.1 christos (eval $ac_try) 2>&5 10181 1.1 christos ac_status=$? 10182 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10183 1.1 christos (exit $ac_status); }; }; then 10184 1.1 christos res_lo=`cat conftest.val` 10185 1.1 christos else 10186 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 10187 1.1 christos echo "$as_me: failed program was:" >&5 10188 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10189 1.1 christos 10190 1.1 christos ( exit $ac_status ) 10191 1.1 christos result=? 10192 1.1 christos fi 10193 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10194 1.1 christos fi 10195 1.1 christos fi 10196 1.1 christos rm -f conftest.val 10197 1.1 christos if test "$cross_compiling" = yes; then 10198 1.1 christos # Depending upon the size, compute the lo and hi bounds. 10199 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10200 1.1 christos /* confdefs.h. */ 10201 1.1 christos _ACEOF 10202 1.1 christos cat confdefs.h >>conftest.$ac_ext 10203 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10204 1.1 christos /* end confdefs.h. */ 10205 1.1 christos #include <stddef.h> 10206 1.1 christos int 10207 1.1 christos main () 10208 1.1 christos { 10209 1.1 christos static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; 10210 1.1 christos test_array [0] = 0 10211 1.1 christos 10212 1.1 christos ; 10213 1.1 christos return 0; 10214 1.1 christos } 10215 1.1 christos _ACEOF 10216 1.1 christos rm -f conftest.$ac_objext 10217 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10218 1.1 christos (eval $ac_compile) 2>conftest.er1 10219 1.1 christos ac_status=$? 10220 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10221 1.1 christos rm -f conftest.er1 10222 1.1 christos cat conftest.err >&5 10223 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10224 1.1 christos (exit $ac_status); } && 10225 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 10226 1.1 christos || test ! -s conftest.err' 10227 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10228 1.1 christos (eval $ac_try) 2>&5 10229 1.1 christos ac_status=$? 10230 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10231 1.1 christos (exit $ac_status); }; } && 10232 1.1 christos { ac_try='test -s conftest.$ac_objext' 10233 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10234 1.1 christos (eval $ac_try) 2>&5 10235 1.1 christos ac_status=$? 10236 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10237 1.1 christos (exit $ac_status); }; }; then 10238 1.1 christos ac_lo=0 ac_mid=0 10239 1.1 christos while :; do 10240 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10241 1.1 christos /* confdefs.h. */ 10242 1.1 christos _ACEOF 10243 1.1 christos cat confdefs.h >>conftest.$ac_ext 10244 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10245 1.1 christos /* end confdefs.h. */ 10246 1.1 christos #include <stddef.h> 10247 1.1 christos int 10248 1.1 christos main () 10249 1.1 christos { 10250 1.1 christos static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 10251 1.1 christos test_array [0] = 0 10252 1.1 christos 10253 1.1 christos ; 10254 1.1 christos return 0; 10255 1.1 christos } 10256 1.1 christos _ACEOF 10257 1.1 christos rm -f conftest.$ac_objext 10258 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10259 1.1 christos (eval $ac_compile) 2>conftest.er1 10260 1.1 christos ac_status=$? 10261 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10262 1.1 christos rm -f conftest.er1 10263 1.1 christos cat conftest.err >&5 10264 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10265 1.1 christos (exit $ac_status); } && 10266 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 10267 1.1 christos || test ! -s conftest.err' 10268 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10269 1.1 christos (eval $ac_try) 2>&5 10270 1.1 christos ac_status=$? 10271 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10272 1.1 christos (exit $ac_status); }; } && 10273 1.1 christos { ac_try='test -s conftest.$ac_objext' 10274 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10275 1.1 christos (eval $ac_try) 2>&5 10276 1.1 christos ac_status=$? 10277 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10278 1.1 christos (exit $ac_status); }; }; then 10279 1.1 christos ac_hi=$ac_mid; break 10280 1.1 christos else 10281 1.1 christos echo "$as_me: failed program was:" >&5 10282 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10283 1.1 christos 10284 1.1 christos ac_lo=`expr $ac_mid + 1` 10285 1.1 christos if test $ac_lo -le $ac_mid; then 10286 1.1 christos ac_lo= ac_hi= 10287 1.1 christos break 10288 1.1 christos fi 10289 1.1 christos ac_mid=`expr 2 '*' $ac_mid + 1` 10290 1.1 christos fi 10291 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10292 1.1 christos done 10293 1.1 christos else 10294 1.1 christos echo "$as_me: failed program was:" >&5 10295 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10296 1.1 christos 10297 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10298 1.1 christos /* confdefs.h. */ 10299 1.1 christos _ACEOF 10300 1.1 christos cat confdefs.h >>conftest.$ac_ext 10301 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10302 1.1 christos /* end confdefs.h. */ 10303 1.1 christos #include <stddef.h> 10304 1.1 christos int 10305 1.1 christos main () 10306 1.1 christos { 10307 1.1 christos static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; 10308 1.1 christos test_array [0] = 0 10309 1.1 christos 10310 1.1 christos ; 10311 1.1 christos return 0; 10312 1.1 christos } 10313 1.1 christos _ACEOF 10314 1.1 christos rm -f conftest.$ac_objext 10315 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10316 1.1 christos (eval $ac_compile) 2>conftest.er1 10317 1.1 christos ac_status=$? 10318 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10319 1.1 christos rm -f conftest.er1 10320 1.1 christos cat conftest.err >&5 10321 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10322 1.1 christos (exit $ac_status); } && 10323 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 10324 1.1 christos || test ! -s conftest.err' 10325 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10326 1.1 christos (eval $ac_try) 2>&5 10327 1.1 christos ac_status=$? 10328 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10329 1.1 christos (exit $ac_status); }; } && 10330 1.1 christos { ac_try='test -s conftest.$ac_objext' 10331 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10332 1.1 christos (eval $ac_try) 2>&5 10333 1.1 christos ac_status=$? 10334 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10335 1.1 christos (exit $ac_status); }; }; then 10336 1.1 christos ac_hi=-1 ac_mid=-1 10337 1.1 christos while :; do 10338 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10339 1.1 christos /* confdefs.h. */ 10340 1.1 christos _ACEOF 10341 1.1 christos cat confdefs.h >>conftest.$ac_ext 10342 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10343 1.1 christos /* end confdefs.h. */ 10344 1.1 christos #include <stddef.h> 10345 1.1 christos int 10346 1.1 christos main () 10347 1.1 christos { 10348 1.1 christos static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; 10349 1.1 christos test_array [0] = 0 10350 1.1 christos 10351 1.1 christos ; 10352 1.1 christos return 0; 10353 1.1 christos } 10354 1.1 christos _ACEOF 10355 1.1 christos rm -f conftest.$ac_objext 10356 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10357 1.1 christos (eval $ac_compile) 2>conftest.er1 10358 1.1 christos ac_status=$? 10359 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10360 1.1 christos rm -f conftest.er1 10361 1.1 christos cat conftest.err >&5 10362 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10363 1.1 christos (exit $ac_status); } && 10364 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 10365 1.1 christos || test ! -s conftest.err' 10366 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10367 1.1 christos (eval $ac_try) 2>&5 10368 1.1 christos ac_status=$? 10369 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10370 1.1 christos (exit $ac_status); }; } && 10371 1.1 christos { ac_try='test -s conftest.$ac_objext' 10372 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10373 1.1 christos (eval $ac_try) 2>&5 10374 1.1 christos ac_status=$? 10375 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10376 1.1 christos (exit $ac_status); }; }; then 10377 1.1 christos ac_lo=$ac_mid; break 10378 1.1 christos else 10379 1.1 christos echo "$as_me: failed program was:" >&5 10380 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10381 1.1 christos 10382 1.1 christos ac_hi=`expr '(' $ac_mid ')' - 1` 10383 1.1 christos if test $ac_mid -le $ac_hi; then 10384 1.1 christos ac_lo= ac_hi= 10385 1.1 christos break 10386 1.1 christos fi 10387 1.1 christos ac_mid=`expr 2 '*' $ac_mid` 10388 1.1 christos fi 10389 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10390 1.1 christos done 10391 1.1 christos else 10392 1.1 christos echo "$as_me: failed program was:" >&5 10393 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10394 1.1 christos 10395 1.1 christos ac_lo= ac_hi= 10396 1.1 christos fi 10397 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10398 1.1 christos fi 10399 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10400 1.1 christos # Binary search between lo and hi bounds. 10401 1.1 christos while test "x$ac_lo" != "x$ac_hi"; do 10402 1.1 christos ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10403 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10404 1.1 christos /* confdefs.h. */ 10405 1.1 christos _ACEOF 10406 1.1 christos cat confdefs.h >>conftest.$ac_ext 10407 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10408 1.1 christos /* end confdefs.h. */ 10409 1.1 christos #include <stddef.h> 10410 1.1 christos int 10411 1.1 christos main () 10412 1.1 christos { 10413 1.1 christos static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; 10414 1.1 christos test_array [0] = 0 10415 1.1 christos 10416 1.1 christos ; 10417 1.1 christos return 0; 10418 1.1 christos } 10419 1.1 christos _ACEOF 10420 1.1 christos rm -f conftest.$ac_objext 10421 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10422 1.1 christos (eval $ac_compile) 2>conftest.er1 10423 1.1 christos ac_status=$? 10424 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10425 1.1 christos rm -f conftest.er1 10426 1.1 christos cat conftest.err >&5 10427 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10428 1.1 christos (exit $ac_status); } && 10429 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 10430 1.1 christos || test ! -s conftest.err' 10431 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10432 1.1 christos (eval $ac_try) 2>&5 10433 1.1 christos ac_status=$? 10434 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10435 1.1 christos (exit $ac_status); }; } && 10436 1.1 christos { ac_try='test -s conftest.$ac_objext' 10437 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10438 1.1 christos (eval $ac_try) 2>&5 10439 1.1 christos ac_status=$? 10440 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10441 1.1 christos (exit $ac_status); }; }; then 10442 1.1 christos ac_hi=$ac_mid 10443 1.1 christos else 10444 1.1 christos echo "$as_me: failed program was:" >&5 10445 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10446 1.1 christos 10447 1.1 christos ac_lo=`expr '(' $ac_mid ')' + 1` 10448 1.1 christos fi 10449 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10450 1.1 christos done 10451 1.1 christos case $ac_lo in 10452 1.1 christos ?*) fits_in_uint=$ac_lo;; 10453 1.1 christos '') result=? ;; 10454 1.1 christos esac 10455 1.1 christos else 10456 1.1 christos if test "$cross_compiling" = yes; then 10457 1.1 christos { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 10458 1.1 christos See \`config.log' for more details." >&5 10459 1.1 christos echo "$as_me: error: cannot run test program while cross compiling 10460 1.1 christos See \`config.log' for more details." >&2;} 10461 1.1 christos { (exit 1); exit 1; }; } 10462 1.1 christos else 10463 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10464 1.1 christos /* confdefs.h. */ 10465 1.1 christos _ACEOF 10466 1.1 christos cat confdefs.h >>conftest.$ac_ext 10467 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10468 1.1 christos /* end confdefs.h. */ 10469 1.1 christos #include <stddef.h> 10470 1.1 christos long longval () { return sizeof (size_t) <= sizeof (unsigned int); } 10471 1.1 christos unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } 10472 1.1 christos #include <stdio.h> 10473 1.1 christos #include <stdlib.h> 10474 1.1 christos int 10475 1.1 christos main () 10476 1.1 christos { 10477 1.1 christos 10478 1.1 christos FILE *f = fopen ("conftest.val", "w"); 10479 1.1 christos if (! f) 10480 1.1 christos exit (1); 10481 1.1 christos if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) 10482 1.1 christos { 10483 1.1 christos long i = longval (); 10484 1.1 christos if (i != (sizeof (size_t) <= sizeof (unsigned int))) 10485 1.1 christos exit (1); 10486 1.1 christos fprintf (f, "%ld\n", i); 10487 1.1 christos } 10488 1.1 christos else 10489 1.1 christos { 10490 1.1 christos unsigned long i = ulongval (); 10491 1.1 christos if (i != (sizeof (size_t) <= sizeof (unsigned int))) 10492 1.1 christos exit (1); 10493 1.1 christos fprintf (f, "%lu\n", i); 10494 1.1 christos } 10495 1.1 christos exit (ferror (f) || fclose (f) != 0); 10496 1.1 christos 10497 1.1 christos ; 10498 1.1 christos return 0; 10499 1.1 christos } 10500 1.1 christos _ACEOF 10501 1.1 christos rm -f conftest$ac_exeext 10502 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10503 1.1 christos (eval $ac_link) 2>&5 10504 1.1 christos ac_status=$? 10505 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10506 1.1 christos (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10507 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10508 1.1 christos (eval $ac_try) 2>&5 10509 1.1 christos ac_status=$? 10510 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10511 1.1 christos (exit $ac_status); }; }; then 10512 1.1 christos fits_in_uint=`cat conftest.val` 10513 1.1 christos else 10514 1.1 christos echo "$as_me: program exited with status $ac_status" >&5 10515 1.1 christos echo "$as_me: failed program was:" >&5 10516 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10517 1.1 christos 10518 1.1 christos ( exit $ac_status ) 10519 1.1 christos result=? 10520 1.1 christos fi 10521 1.1 christos rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10522 1.1 christos fi 10523 1.1 christos fi 10524 1.1 christos rm -f conftest.val 10525 1.1 christos if test "$fits_in_uint" = 1; then 10526 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10527 1.1 christos /* confdefs.h. */ 10528 1.1 christos _ACEOF 10529 1.1 christos cat confdefs.h >>conftest.$ac_ext 10530 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10531 1.1 christos /* end confdefs.h. */ 10532 1.1 christos #include <stddef.h> 10533 1.1 christos extern size_t foo; 10534 1.1 christos extern unsigned long foo; 10535 1.1 christos 10536 1.1 christos int 10537 1.1 christos main () 10538 1.1 christos { 10539 1.1 christos 10540 1.1 christos ; 10541 1.1 christos return 0; 10542 1.1 christos } 10543 1.1 christos _ACEOF 10544 1.1 christos rm -f conftest.$ac_objext 10545 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10546 1.1 christos (eval $ac_compile) 2>conftest.er1 10547 1.1 christos ac_status=$? 10548 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10549 1.1 christos rm -f conftest.er1 10550 1.1 christos cat conftest.err >&5 10551 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10552 1.1 christos (exit $ac_status); } && 10553 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 10554 1.1 christos || test ! -s conftest.err' 10555 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10556 1.1 christos (eval $ac_try) 2>&5 10557 1.1 christos ac_status=$? 10558 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10559 1.1 christos (exit $ac_status); }; } && 10560 1.1 christos { ac_try='test -s conftest.$ac_objext' 10561 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10562 1.1 christos (eval $ac_try) 2>&5 10563 1.1 christos ac_status=$? 10564 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10565 1.1 christos (exit $ac_status); }; }; then 10566 1.1 christos fits_in_uint=0 10567 1.1 christos else 10568 1.1 christos echo "$as_me: failed program was:" >&5 10569 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10570 1.1 christos 10571 1.1 christos fi 10572 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10573 1.1 christos fi 10574 1.1 christos if test -z "$result"; then 10575 1.1 christos if test "$fits_in_uint" = 1; then 10576 1.1 christos result="$res_hi$res_lo"U 10577 1.1 christos else 10578 1.1 christos result="$res_hi$res_lo"UL 10579 1.1 christos fi 10580 1.1 christos else 10581 1.1 christos result='~(size_t)0' 10582 1.1 christos fi 10583 1.1 christos fi 10584 1.1 christos echo "$as_me:$LINENO: result: $result" >&5 10585 1.1 christos echo "${ECHO_T}$result" >&6 10586 1.1 christos if test "$result" != yes; then 10587 1.1 christos 10588 1.1 christos cat >>confdefs.h <<_ACEOF 10589 1.1 christos #define SIZE_MAX $result 10590 1.1 christos _ACEOF 10591 1.1 christos 10592 1.1 christos fi 10593 1.1 christos 10594 1.1 christos 10595 1.1 christos 10596 1.1 christos 10597 1.1 christos for ac_header in stdint.h 10598 1.1 christos do 10599 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10600 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 10601 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 10602 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10603 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 10604 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10605 1.1 christos fi 10606 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10607 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10608 1.1 christos else 10609 1.1 christos # Is the header compilable? 10610 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 10611 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10612 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10613 1.1 christos /* confdefs.h. */ 10614 1.1 christos _ACEOF 10615 1.1 christos cat confdefs.h >>conftest.$ac_ext 10616 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10617 1.1 christos /* end confdefs.h. */ 10618 1.1 christos $ac_includes_default 10619 1.1 christos #include <$ac_header> 10620 1.1 christos _ACEOF 10621 1.1 christos rm -f conftest.$ac_objext 10622 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10623 1.1 christos (eval $ac_compile) 2>conftest.er1 10624 1.1 christos ac_status=$? 10625 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10626 1.1 christos rm -f conftest.er1 10627 1.1 christos cat conftest.err >&5 10628 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10629 1.1 christos (exit $ac_status); } && 10630 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 10631 1.1 christos || test ! -s conftest.err' 10632 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10633 1.1 christos (eval $ac_try) 2>&5 10634 1.1 christos ac_status=$? 10635 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10636 1.1 christos (exit $ac_status); }; } && 10637 1.1 christos { ac_try='test -s conftest.$ac_objext' 10638 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10639 1.1 christos (eval $ac_try) 2>&5 10640 1.1 christos ac_status=$? 10641 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10642 1.1 christos (exit $ac_status); }; }; then 10643 1.1 christos ac_header_compiler=yes 10644 1.1 christos else 10645 1.1 christos echo "$as_me: failed program was:" >&5 10646 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10647 1.1 christos 10648 1.1 christos ac_header_compiler=no 10649 1.1 christos fi 10650 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10651 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10652 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 10653 1.1 christos 10654 1.1 christos # Is the header present? 10655 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 10656 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10657 1.1 christos cat >conftest.$ac_ext <<_ACEOF 10658 1.1 christos /* confdefs.h. */ 10659 1.1 christos _ACEOF 10660 1.1 christos cat confdefs.h >>conftest.$ac_ext 10661 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 10662 1.1 christos /* end confdefs.h. */ 10663 1.1 christos #include <$ac_header> 10664 1.1 christos _ACEOF 10665 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10666 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10667 1.1 christos ac_status=$? 10668 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 10669 1.1 christos rm -f conftest.er1 10670 1.1 christos cat conftest.err >&5 10671 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 10672 1.1 christos (exit $ac_status); } >/dev/null; then 10673 1.1 christos if test -s conftest.err; then 10674 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 10675 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10676 1.1 christos else 10677 1.1 christos ac_cpp_err= 10678 1.1 christos fi 10679 1.1 christos else 10680 1.1 christos ac_cpp_err=yes 10681 1.1 christos fi 10682 1.1 christos if test -z "$ac_cpp_err"; then 10683 1.1 christos ac_header_preproc=yes 10684 1.1 christos else 10685 1.1 christos echo "$as_me: failed program was:" >&5 10686 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 10687 1.1 christos 10688 1.1 christos ac_header_preproc=no 10689 1.1 christos fi 10690 1.1 christos rm -f conftest.err conftest.$ac_ext 10691 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10692 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 10693 1.1 christos 10694 1.1 christos # So? What about this header? 10695 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10696 1.1 christos yes:no: ) 10697 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10698 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10699 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 10700 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 10701 1.1 christos ac_header_preproc=yes 10702 1.1 christos ;; 10703 1.1 christos no:yes:* ) 10704 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10705 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10706 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10707 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10708 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 10709 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 10710 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 10711 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 10712 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10713 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 10714 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 10715 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 10716 1.1 christos ( 10717 1.1 christos cat <<\_ASBOX 10718 1.1 christos ## -------------------------------------- ## 10719 1.1 christos ## Report this to the GNU Texinfo lists. ## 10720 1.1 christos ## -------------------------------------- ## 10721 1.1 christos _ASBOX 10722 1.1 christos ) | 10723 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 10724 1.1 christos ;; 10725 1.1 christos esac 10726 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 10727 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10728 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 10729 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10730 1.1 christos else 10731 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 10732 1.1 christos fi 10733 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10734 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10735 1.1 christos 10736 1.1 christos fi 10737 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 10738 1.1 christos cat >>confdefs.h <<_ACEOF 10739 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10740 1.1 christos _ACEOF 10741 1.1 christos 10742 1.1 christos fi 10743 1.1 christos 10744 1.1 christos done 10745 1.1 christos 10746 1.1 christos 10747 1.1 christos 10748 1.1 christos if test "X$prefix" = "XNONE"; then 10749 1.1 christos acl_final_prefix="$ac_default_prefix" 10750 1.1 christos else 10751 1.1 christos acl_final_prefix="$prefix" 10752 1.1 christos fi 10753 1.1 christos if test "X$exec_prefix" = "XNONE"; then 10754 1.1 christos acl_final_exec_prefix='${prefix}' 10755 1.1 christos else 10756 1.1 christos acl_final_exec_prefix="$exec_prefix" 10757 1.1 christos fi 10758 1.1 christos acl_save_prefix="$prefix" 10759 1.1 christos prefix="$acl_final_prefix" 10760 1.1 christos eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 10761 1.1 christos prefix="$acl_save_prefix" 10762 1.1 christos 10763 1.1 christos 10764 1.1 christos # Check whether --with-gnu-ld or --without-gnu-ld was given. 10765 1.1 christos if test "${with_gnu_ld+set}" = set; then 10766 1.1 christos withval="$with_gnu_ld" 10767 1.1 christos test "$withval" = no || with_gnu_ld=yes 10768 1.1 christos else 10769 1.1 christos with_gnu_ld=no 10770 1.1 christos fi; 10771 1.1 christos # Prepare PATH_SEPARATOR. 10772 1.1 christos # The user is always right. 10773 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 10774 1.1 christos echo "#! /bin/sh" >conf$$.sh 10775 1.1 christos echo "exit 0" >>conf$$.sh 10776 1.1 christos chmod +x conf$$.sh 10777 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 10778 1.1 christos PATH_SEPARATOR=';' 10779 1.1 christos else 10780 1.1 christos PATH_SEPARATOR=: 10781 1.1 christos fi 10782 1.1 christos rm -f conf$$.sh 10783 1.1 christos fi 10784 1.1 christos ac_prog=ld 10785 1.1 christos if test "$GCC" = yes; then 10786 1.1 christos # Check if gcc -print-prog-name=ld gives a path. 10787 1.1 christos echo "$as_me:$LINENO: checking for ld used by GCC" >&5 10788 1.1 christos echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 10789 1.1 christos case $host in 10790 1.1 christos *-*-mingw*) 10791 1.1 christos # gcc leaves a trailing carriage return which upsets mingw 10792 1.1 christos ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10793 1.1 christos *) 10794 1.1 christos ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10795 1.1 christos esac 10796 1.1 christos case $ac_prog in 10797 1.1 christos # Accept absolute paths. 10798 1.1 christos [\\/]* | [A-Za-z]:[\\/]*) 10799 1.1 christos re_direlt='/[^/][^/]*/\.\./' 10800 1.1 christos # Canonicalize the path of ld 10801 1.1 christos ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10802 1.1 christos while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10803 1.1 christos ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10804 1.1 christos done 10805 1.1 christos test -z "$LD" && LD="$ac_prog" 10806 1.1 christos ;; 10807 1.1 christos "") 10808 1.1 christos # If it fails, then pretend we aren't using GCC. 10809 1.1 christos ac_prog=ld 10810 1.1 christos ;; 10811 1.1 christos *) 10812 1.1 christos # If it is relative, then search for the first ld in PATH. 10813 1.1 christos with_gnu_ld=unknown 10814 1.1 christos ;; 10815 1.1 christos esac 10816 1.1 christos elif test "$with_gnu_ld" = yes; then 10817 1.1 christos echo "$as_me:$LINENO: checking for GNU ld" >&5 10818 1.1 christos echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10819 1.1 christos else 10820 1.1 christos echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10821 1.1 christos echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10822 1.1 christos fi 10823 1.1 christos if test "${acl_cv_path_LD+set}" = set; then 10824 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10825 1.1 christos else 10826 1.1 christos if test -z "$LD"; then 10827 1.1 christos IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 10828 1.1 christos for ac_dir in $PATH; do 10829 1.1 christos test -z "$ac_dir" && ac_dir=. 10830 1.1 christos if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10831 1.1 christos acl_cv_path_LD="$ac_dir/$ac_prog" 10832 1.1 christos # Check to see if the program is GNU ld. I'd rather use --version, 10833 1.1 christos # but apparently some GNU ld's only accept -v. 10834 1.1 christos # Break only if it was the GNU/non-GNU ld that we prefer. 10835 1.1 christos case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 10836 1.1 christos *GNU* | *'with BFD'*) 10837 1.1 christos test "$with_gnu_ld" != no && break ;; 10838 1.1 christos *) 10839 1.1 christos test "$with_gnu_ld" != yes && break ;; 10840 1.1 christos esac 10841 1.1 christos fi 10842 1.1 christos done 10843 1.1 christos IFS="$ac_save_ifs" 10844 1.1 christos else 10845 1.1 christos acl_cv_path_LD="$LD" # Let the user override the test with a path. 10846 1.1 christos fi 10847 1.1 christos fi 10848 1.1 christos 10849 1.1 christos LD="$acl_cv_path_LD" 10850 1.1 christos if test -n "$LD"; then 10851 1.1 christos echo "$as_me:$LINENO: result: $LD" >&5 10852 1.1 christos echo "${ECHO_T}$LD" >&6 10853 1.1 christos else 10854 1.1 christos echo "$as_me:$LINENO: result: no" >&5 10855 1.1 christos echo "${ECHO_T}no" >&6 10856 1.1 christos fi 10857 1.1 christos test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10858 1.1 christos echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10859 1.1 christos { (exit 1); exit 1; }; } 10860 1.1 christos echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10861 1.1 christos echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10862 1.1 christos if test "${acl_cv_prog_gnu_ld+set}" = set; then 10863 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10864 1.1 christos else 10865 1.1 christos # I'd rather use --version here, but apparently some GNU ld's only accept -v. 10866 1.1 christos case `$LD -v 2>&1 </dev/null` in 10867 1.1 christos *GNU* | *'with BFD'*) 10868 1.1 christos acl_cv_prog_gnu_ld=yes ;; 10869 1.1 christos *) 10870 1.1 christos acl_cv_prog_gnu_ld=no ;; 10871 1.1 christos esac 10872 1.1 christos fi 10873 1.1 christos echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 10874 1.1 christos echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 10875 1.1 christos with_gnu_ld=$acl_cv_prog_gnu_ld 10876 1.1 christos 10877 1.1 christos 10878 1.1 christos 10879 1.1 christos echo "$as_me:$LINENO: checking for shared library run path origin" >&5 10880 1.1 christos echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 10881 1.1 christos if test "${acl_cv_rpath+set}" = set; then 10882 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 10883 1.1 christos else 10884 1.1 christos 10885 1.1 christos CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 10886 1.1 christos ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 10887 1.1 christos . ./conftest.sh 10888 1.1 christos rm -f ./conftest.sh 10889 1.1 christos acl_cv_rpath=done 10890 1.1 christos 10891 1.1 christos fi 10892 1.1 christos echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 10893 1.1 christos echo "${ECHO_T}$acl_cv_rpath" >&6 10894 1.1 christos wl="$acl_cv_wl" 10895 1.1 christos libext="$acl_cv_libext" 10896 1.1 christos shlibext="$acl_cv_shlibext" 10897 1.1 christos hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 10898 1.1 christos hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 10899 1.1 christos hardcode_direct="$acl_cv_hardcode_direct" 10900 1.1 christos hardcode_minus_L="$acl_cv_hardcode_minus_L" 10901 1.1 christos # Check whether --enable-rpath or --disable-rpath was given. 10902 1.1 christos if test "${enable_rpath+set}" = set; then 10903 1.1 christos enableval="$enable_rpath" 10904 1.1 christos : 10905 1.1 christos else 10906 1.1 christos enable_rpath=yes 10907 1.1 christos fi; 10908 1.1 christos 10909 1.1 christos 10910 1.1 christos 10911 1.1 christos 10912 1.1 christos 10913 1.1 christos 10914 1.1 christos 10915 1.1 christos use_additional=yes 10916 1.1 christos 10917 1.1 christos acl_save_prefix="$prefix" 10918 1.1 christos prefix="$acl_final_prefix" 10919 1.1 christos acl_save_exec_prefix="$exec_prefix" 10920 1.1 christos exec_prefix="$acl_final_exec_prefix" 10921 1.1 christos 10922 1.1 christos eval additional_includedir=\"$includedir\" 10923 1.1 christos eval additional_libdir=\"$libdir\" 10924 1.1 christos 10925 1.1 christos exec_prefix="$acl_save_exec_prefix" 10926 1.1 christos prefix="$acl_save_prefix" 10927 1.1 christos 10928 1.1 christos 10929 1.1 christos # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. 10930 1.1 christos if test "${with_libiconv_prefix+set}" = set; then 10931 1.1 christos withval="$with_libiconv_prefix" 10932 1.1 christos 10933 1.1 christos if test "X$withval" = "Xno"; then 10934 1.1 christos use_additional=no 10935 1.1 christos else 10936 1.1 christos if test "X$withval" = "X"; then 10937 1.1 christos 10938 1.1 christos acl_save_prefix="$prefix" 10939 1.1 christos prefix="$acl_final_prefix" 10940 1.1 christos acl_save_exec_prefix="$exec_prefix" 10941 1.1 christos exec_prefix="$acl_final_exec_prefix" 10942 1.1 christos 10943 1.1 christos eval additional_includedir=\"$includedir\" 10944 1.1 christos eval additional_libdir=\"$libdir\" 10945 1.1 christos 10946 1.1 christos exec_prefix="$acl_save_exec_prefix" 10947 1.1 christos prefix="$acl_save_prefix" 10948 1.1 christos 10949 1.1 christos else 10950 1.1 christos additional_includedir="$withval/include" 10951 1.1 christos additional_libdir="$withval/lib" 10952 1.1 christos fi 10953 1.1 christos fi 10954 1.1 christos 10955 1.1 christos fi; 10956 1.1 christos LIBICONV= 10957 1.1 christos LTLIBICONV= 10958 1.1 christos INCICONV= 10959 1.1 christos rpathdirs= 10960 1.1 christos ltrpathdirs= 10961 1.1 christos names_already_handled= 10962 1.1 christos names_next_round='iconv ' 10963 1.1 christos while test -n "$names_next_round"; do 10964 1.1 christos names_this_round="$names_next_round" 10965 1.1 christos names_next_round= 10966 1.1 christos for name in $names_this_round; do 10967 1.1 christos already_handled= 10968 1.1 christos for n in $names_already_handled; do 10969 1.1 christos if test "$n" = "$name"; then 10970 1.1 christos already_handled=yes 10971 1.1 christos break 10972 1.1 christos fi 10973 1.1 christos done 10974 1.1 christos if test -z "$already_handled"; then 10975 1.1 christos names_already_handled="$names_already_handled $name" 10976 1.1 christos uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 10977 1.1 christos eval value=\"\$HAVE_LIB$uppername\" 10978 1.1 christos if test -n "$value"; then 10979 1.1 christos if test "$value" = yes; then 10980 1.1 christos eval value=\"\$LIB$uppername\" 10981 1.1 christos test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 10982 1.1 christos eval value=\"\$LTLIB$uppername\" 10983 1.1 christos test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 10984 1.1 christos else 10985 1.1 christos : 10986 1.1 christos fi 10987 1.1 christos else 10988 1.1 christos found_dir= 10989 1.1 christos found_la= 10990 1.1 christos found_so= 10991 1.1 christos found_a= 10992 1.1 christos if test $use_additional = yes; then 10993 1.1 christos if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 10994 1.1 christos found_dir="$additional_libdir" 10995 1.1 christos found_so="$additional_libdir/lib$name.$shlibext" 10996 1.1 christos if test -f "$additional_libdir/lib$name.la"; then 10997 1.1 christos found_la="$additional_libdir/lib$name.la" 10998 1.1 christos fi 10999 1.1 christos else 11000 1.1 christos if test -f "$additional_libdir/lib$name.$libext"; then 11001 1.1 christos found_dir="$additional_libdir" 11002 1.1 christos found_a="$additional_libdir/lib$name.$libext" 11003 1.1 christos if test -f "$additional_libdir/lib$name.la"; then 11004 1.1 christos found_la="$additional_libdir/lib$name.la" 11005 1.1 christos fi 11006 1.1 christos fi 11007 1.1 christos fi 11008 1.1 christos fi 11009 1.1 christos if test "X$found_dir" = "X"; then 11010 1.1 christos for x in $LDFLAGS $LTLIBICONV; do 11011 1.1 christos 11012 1.1 christos acl_save_prefix="$prefix" 11013 1.1 christos prefix="$acl_final_prefix" 11014 1.1 christos acl_save_exec_prefix="$exec_prefix" 11015 1.1 christos exec_prefix="$acl_final_exec_prefix" 11016 1.1 christos eval x=\"$x\" 11017 1.1 christos exec_prefix="$acl_save_exec_prefix" 11018 1.1 christos prefix="$acl_save_prefix" 11019 1.1 christos 11020 1.1 christos case "$x" in 11021 1.1 christos -L*) 11022 1.1 christos dir=`echo "X$x" | sed -e 's/^X-L//'` 11023 1.1 christos if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 11024 1.1 christos found_dir="$dir" 11025 1.1 christos found_so="$dir/lib$name.$shlibext" 11026 1.1 christos if test -f "$dir/lib$name.la"; then 11027 1.1 christos found_la="$dir/lib$name.la" 11028 1.1 christos fi 11029 1.1 christos else 11030 1.1 christos if test -f "$dir/lib$name.$libext"; then 11031 1.1 christos found_dir="$dir" 11032 1.1 christos found_a="$dir/lib$name.$libext" 11033 1.1 christos if test -f "$dir/lib$name.la"; then 11034 1.1 christos found_la="$dir/lib$name.la" 11035 1.1 christos fi 11036 1.1 christos fi 11037 1.1 christos fi 11038 1.1 christos ;; 11039 1.1 christos esac 11040 1.1 christos if test "X$found_dir" != "X"; then 11041 1.1 christos break 11042 1.1 christos fi 11043 1.1 christos done 11044 1.1 christos fi 11045 1.1 christos if test "X$found_dir" != "X"; then 11046 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 11047 1.1 christos if test "X$found_so" != "X"; then 11048 1.1 christos if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 11049 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11050 1.1 christos else 11051 1.1 christos haveit= 11052 1.1 christos for x in $ltrpathdirs; do 11053 1.1 christos if test "X$x" = "X$found_dir"; then 11054 1.1 christos haveit=yes 11055 1.1 christos break 11056 1.1 christos fi 11057 1.1 christos done 11058 1.1 christos if test -z "$haveit"; then 11059 1.1 christos ltrpathdirs="$ltrpathdirs $found_dir" 11060 1.1 christos fi 11061 1.1 christos if test "$hardcode_direct" = yes; then 11062 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11063 1.1 christos else 11064 1.1 christos if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 11065 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11066 1.1 christos haveit= 11067 1.1 christos for x in $rpathdirs; do 11068 1.1 christos if test "X$x" = "X$found_dir"; then 11069 1.1 christos haveit=yes 11070 1.1 christos break 11071 1.1 christos fi 11072 1.1 christos done 11073 1.1 christos if test -z "$haveit"; then 11074 1.1 christos rpathdirs="$rpathdirs $found_dir" 11075 1.1 christos fi 11076 1.1 christos else 11077 1.1 christos haveit= 11078 1.1 christos for x in $LDFLAGS $LIBICONV; do 11079 1.1 christos 11080 1.1 christos acl_save_prefix="$prefix" 11081 1.1 christos prefix="$acl_final_prefix" 11082 1.1 christos acl_save_exec_prefix="$exec_prefix" 11083 1.1 christos exec_prefix="$acl_final_exec_prefix" 11084 1.1 christos eval x=\"$x\" 11085 1.1 christos exec_prefix="$acl_save_exec_prefix" 11086 1.1 christos prefix="$acl_save_prefix" 11087 1.1 christos 11088 1.1 christos if test "X$x" = "X-L$found_dir"; then 11089 1.1 christos haveit=yes 11090 1.1 christos break 11091 1.1 christos fi 11092 1.1 christos done 11093 1.1 christos if test -z "$haveit"; then 11094 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 11095 1.1 christos fi 11096 1.1 christos if test "$hardcode_minus_L" != no; then 11097 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 11098 1.1 christos else 11099 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11100 1.1 christos fi 11101 1.1 christos fi 11102 1.1 christos fi 11103 1.1 christos fi 11104 1.1 christos else 11105 1.1 christos if test "X$found_a" != "X"; then 11106 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 11107 1.1 christos else 11108 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 11109 1.1 christos fi 11110 1.1 christos fi 11111 1.1 christos additional_includedir= 11112 1.1 christos case "$found_dir" in 11113 1.1 christos */lib | */lib/) 11114 1.1 christos basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 11115 1.1 christos additional_includedir="$basedir/include" 11116 1.1 christos ;; 11117 1.1 christos esac 11118 1.1 christos if test "X$additional_includedir" != "X"; then 11119 1.1 christos if test "X$additional_includedir" != "X/usr/include"; then 11120 1.1 christos haveit= 11121 1.1 christos if test "X$additional_includedir" = "X/usr/local/include"; then 11122 1.1 christos if test -n "$GCC"; then 11123 1.1 christos case $host_os in 11124 1.1 christos linux*) haveit=yes;; 11125 1.1 christos esac 11126 1.1 christos fi 11127 1.1 christos fi 11128 1.1 christos if test -z "$haveit"; then 11129 1.1 christos for x in $CPPFLAGS $INCICONV; do 11130 1.1 christos 11131 1.1 christos acl_save_prefix="$prefix" 11132 1.1 christos prefix="$acl_final_prefix" 11133 1.1 christos acl_save_exec_prefix="$exec_prefix" 11134 1.1 christos exec_prefix="$acl_final_exec_prefix" 11135 1.1 christos eval x=\"$x\" 11136 1.1 christos exec_prefix="$acl_save_exec_prefix" 11137 1.1 christos prefix="$acl_save_prefix" 11138 1.1 christos 11139 1.1 christos if test "X$x" = "X-I$additional_includedir"; then 11140 1.1 christos haveit=yes 11141 1.1 christos break 11142 1.1 christos fi 11143 1.1 christos done 11144 1.1 christos if test -z "$haveit"; then 11145 1.1 christos if test -d "$additional_includedir"; then 11146 1.1 christos INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 11147 1.1 christos fi 11148 1.1 christos fi 11149 1.1 christos fi 11150 1.1 christos fi 11151 1.1 christos fi 11152 1.1 christos if test -n "$found_la"; then 11153 1.1 christos save_libdir="$libdir" 11154 1.1 christos case "$found_la" in 11155 1.1 christos */* | *\\*) . "$found_la" ;; 11156 1.1 christos *) . "./$found_la" ;; 11157 1.1 christos esac 11158 1.1 christos libdir="$save_libdir" 11159 1.1 christos for dep in $dependency_libs; do 11160 1.1 christos case "$dep" in 11161 1.1 christos -L*) 11162 1.1 christos additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11163 1.1 christos if test "X$additional_libdir" != "X/usr/lib"; then 11164 1.1 christos haveit= 11165 1.1 christos if test "X$additional_libdir" = "X/usr/local/lib"; then 11166 1.1 christos if test -n "$GCC"; then 11167 1.1 christos case $host_os in 11168 1.1 christos linux*) haveit=yes;; 11169 1.1 christos esac 11170 1.1 christos fi 11171 1.1 christos fi 11172 1.1 christos if test -z "$haveit"; then 11173 1.1 christos haveit= 11174 1.1 christos for x in $LDFLAGS $LIBICONV; do 11175 1.1 christos 11176 1.1 christos acl_save_prefix="$prefix" 11177 1.1 christos prefix="$acl_final_prefix" 11178 1.1 christos acl_save_exec_prefix="$exec_prefix" 11179 1.1 christos exec_prefix="$acl_final_exec_prefix" 11180 1.1 christos eval x=\"$x\" 11181 1.1 christos exec_prefix="$acl_save_exec_prefix" 11182 1.1 christos prefix="$acl_save_prefix" 11183 1.1 christos 11184 1.1 christos if test "X$x" = "X-L$additional_libdir"; then 11185 1.1 christos haveit=yes 11186 1.1 christos break 11187 1.1 christos fi 11188 1.1 christos done 11189 1.1 christos if test -z "$haveit"; then 11190 1.1 christos if test -d "$additional_libdir"; then 11191 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 11192 1.1 christos fi 11193 1.1 christos fi 11194 1.1 christos haveit= 11195 1.1 christos for x in $LDFLAGS $LTLIBICONV; do 11196 1.1 christos 11197 1.1 christos acl_save_prefix="$prefix" 11198 1.1 christos prefix="$acl_final_prefix" 11199 1.1 christos acl_save_exec_prefix="$exec_prefix" 11200 1.1 christos exec_prefix="$acl_final_exec_prefix" 11201 1.1 christos eval x=\"$x\" 11202 1.1 christos exec_prefix="$acl_save_exec_prefix" 11203 1.1 christos prefix="$acl_save_prefix" 11204 1.1 christos 11205 1.1 christos if test "X$x" = "X-L$additional_libdir"; then 11206 1.1 christos haveit=yes 11207 1.1 christos break 11208 1.1 christos fi 11209 1.1 christos done 11210 1.1 christos if test -z "$haveit"; then 11211 1.1 christos if test -d "$additional_libdir"; then 11212 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 11213 1.1 christos fi 11214 1.1 christos fi 11215 1.1 christos fi 11216 1.1 christos fi 11217 1.1 christos ;; 11218 1.1 christos -R*) 11219 1.1 christos dir=`echo "X$dep" | sed -e 's/^X-R//'` 11220 1.1 christos if test "$enable_rpath" != no; then 11221 1.1 christos haveit= 11222 1.1 christos for x in $rpathdirs; do 11223 1.1 christos if test "X$x" = "X$dir"; then 11224 1.1 christos haveit=yes 11225 1.1 christos break 11226 1.1 christos fi 11227 1.1 christos done 11228 1.1 christos if test -z "$haveit"; then 11229 1.1 christos rpathdirs="$rpathdirs $dir" 11230 1.1 christos fi 11231 1.1 christos haveit= 11232 1.1 christos for x in $ltrpathdirs; do 11233 1.1 christos if test "X$x" = "X$dir"; then 11234 1.1 christos haveit=yes 11235 1.1 christos break 11236 1.1 christos fi 11237 1.1 christos done 11238 1.1 christos if test -z "$haveit"; then 11239 1.1 christos ltrpathdirs="$ltrpathdirs $dir" 11240 1.1 christos fi 11241 1.1 christos fi 11242 1.1 christos ;; 11243 1.1 christos -l*) 11244 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11245 1.1 christos ;; 11246 1.1 christos *.la) 11247 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11248 1.1 christos ;; 11249 1.1 christos *) 11250 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 11251 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 11252 1.1 christos ;; 11253 1.1 christos esac 11254 1.1 christos done 11255 1.1 christos fi 11256 1.1 christos else 11257 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 11258 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 11259 1.1 christos fi 11260 1.1 christos fi 11261 1.1 christos fi 11262 1.1 christos done 11263 1.1 christos done 11264 1.1 christos if test "X$rpathdirs" != "X"; then 11265 1.1 christos if test -n "$hardcode_libdir_separator"; then 11266 1.1 christos alldirs= 11267 1.1 christos for found_dir in $rpathdirs; do 11268 1.1 christos alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 11269 1.1 christos done 11270 1.1 christos acl_save_libdir="$libdir" 11271 1.1 christos libdir="$alldirs" 11272 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\" 11273 1.1 christos libdir="$acl_save_libdir" 11274 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11275 1.1 christos else 11276 1.1 christos for found_dir in $rpathdirs; do 11277 1.1 christos acl_save_libdir="$libdir" 11278 1.1 christos libdir="$found_dir" 11279 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\" 11280 1.1 christos libdir="$acl_save_libdir" 11281 1.1 christos LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 11282 1.1 christos done 11283 1.1 christos fi 11284 1.1 christos fi 11285 1.1 christos if test "X$ltrpathdirs" != "X"; then 11286 1.1 christos for found_dir in $ltrpathdirs; do 11287 1.1 christos LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 11288 1.1 christos done 11289 1.1 christos fi 11290 1.1 christos 11291 1.1 christos 11292 1.1 christos 11293 1.1 christos 11294 1.1 christos 11295 1.1 christos 11296 1.1 christos 11297 1.1 christos 11298 1.1 christos echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 11299 1.1 christos echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 11300 1.1 christos if test "${ac_cv_type_ptrdiff_t+set}" = set; then 11301 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11302 1.1 christos else 11303 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11304 1.1 christos /* confdefs.h. */ 11305 1.1 christos _ACEOF 11306 1.1 christos cat confdefs.h >>conftest.$ac_ext 11307 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11308 1.1 christos /* end confdefs.h. */ 11309 1.1 christos $ac_includes_default 11310 1.1 christos int 11311 1.1 christos main () 11312 1.1 christos { 11313 1.1 christos if ((ptrdiff_t *) 0) 11314 1.1 christos return 0; 11315 1.1 christos if (sizeof (ptrdiff_t)) 11316 1.1 christos return 0; 11317 1.1 christos ; 11318 1.1 christos return 0; 11319 1.1 christos } 11320 1.1 christos _ACEOF 11321 1.1 christos rm -f conftest.$ac_objext 11322 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11323 1.1 christos (eval $ac_compile) 2>conftest.er1 11324 1.1 christos ac_status=$? 11325 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11326 1.1 christos rm -f conftest.er1 11327 1.1 christos cat conftest.err >&5 11328 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11329 1.1 christos (exit $ac_status); } && 11330 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 11331 1.1 christos || test ! -s conftest.err' 11332 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11333 1.1 christos (eval $ac_try) 2>&5 11334 1.1 christos ac_status=$? 11335 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11336 1.1 christos (exit $ac_status); }; } && 11337 1.1 christos { ac_try='test -s conftest.$ac_objext' 11338 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11339 1.1 christos (eval $ac_try) 2>&5 11340 1.1 christos ac_status=$? 11341 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11342 1.1 christos (exit $ac_status); }; }; then 11343 1.1 christos ac_cv_type_ptrdiff_t=yes 11344 1.1 christos else 11345 1.1 christos echo "$as_me: failed program was:" >&5 11346 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11347 1.1 christos 11348 1.1 christos ac_cv_type_ptrdiff_t=no 11349 1.1 christos fi 11350 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11351 1.1 christos fi 11352 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 11353 1.1 christos echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 11354 1.1 christos if test $ac_cv_type_ptrdiff_t = yes; then 11355 1.1 christos : 11356 1.1 christos else 11357 1.1 christos 11358 1.1 christos cat >>confdefs.h <<\_ACEOF 11359 1.1 christos #define ptrdiff_t long 11360 1.1 christos _ACEOF 11361 1.1 christos 11362 1.1 christos 11363 1.1 christos fi 11364 1.1 christos 11365 1.1 christos 11366 1.1 christos 11367 1.1 christos 11368 1.1 christos 11369 1.1 christos 11370 1.1 christos 11371 1.1 christos 11372 1.1 christos 11373 1.1 christos 11374 1.1 christos 11375 1.1 christos for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 11376 1.1 christos stdlib.h string.h unistd.h sys/param.h 11377 1.1 christos do 11378 1.1 christos as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11379 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11380 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 11381 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11382 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11383 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11384 1.1 christos fi 11385 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11386 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11387 1.1 christos else 11388 1.1 christos # Is the header compilable? 11389 1.1 christos echo "$as_me:$LINENO: checking $ac_header usability" >&5 11390 1.1 christos echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11391 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11392 1.1 christos /* confdefs.h. */ 11393 1.1 christos _ACEOF 11394 1.1 christos cat confdefs.h >>conftest.$ac_ext 11395 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11396 1.1 christos /* end confdefs.h. */ 11397 1.1 christos $ac_includes_default 11398 1.1 christos #include <$ac_header> 11399 1.1 christos _ACEOF 11400 1.1 christos rm -f conftest.$ac_objext 11401 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11402 1.1 christos (eval $ac_compile) 2>conftest.er1 11403 1.1 christos ac_status=$? 11404 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11405 1.1 christos rm -f conftest.er1 11406 1.1 christos cat conftest.err >&5 11407 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11408 1.1 christos (exit $ac_status); } && 11409 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 11410 1.1 christos || test ! -s conftest.err' 11411 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11412 1.1 christos (eval $ac_try) 2>&5 11413 1.1 christos ac_status=$? 11414 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11415 1.1 christos (exit $ac_status); }; } && 11416 1.1 christos { ac_try='test -s conftest.$ac_objext' 11417 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11418 1.1 christos (eval $ac_try) 2>&5 11419 1.1 christos ac_status=$? 11420 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11421 1.1 christos (exit $ac_status); }; }; then 11422 1.1 christos ac_header_compiler=yes 11423 1.1 christos else 11424 1.1 christos echo "$as_me: failed program was:" >&5 11425 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11426 1.1 christos 11427 1.1 christos ac_header_compiler=no 11428 1.1 christos fi 11429 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11430 1.1 christos echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11431 1.1 christos echo "${ECHO_T}$ac_header_compiler" >&6 11432 1.1 christos 11433 1.1 christos # Is the header present? 11434 1.1 christos echo "$as_me:$LINENO: checking $ac_header presence" >&5 11435 1.1 christos echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11436 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11437 1.1 christos /* confdefs.h. */ 11438 1.1 christos _ACEOF 11439 1.1 christos cat confdefs.h >>conftest.$ac_ext 11440 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11441 1.1 christos /* end confdefs.h. */ 11442 1.1 christos #include <$ac_header> 11443 1.1 christos _ACEOF 11444 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11445 1.1 christos (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11446 1.1 christos ac_status=$? 11447 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11448 1.1 christos rm -f conftest.er1 11449 1.1 christos cat conftest.err >&5 11450 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11451 1.1 christos (exit $ac_status); } >/dev/null; then 11452 1.1 christos if test -s conftest.err; then 11453 1.1 christos ac_cpp_err=$ac_c_preproc_warn_flag 11454 1.1 christos ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11455 1.1 christos else 11456 1.1 christos ac_cpp_err= 11457 1.1 christos fi 11458 1.1 christos else 11459 1.1 christos ac_cpp_err=yes 11460 1.1 christos fi 11461 1.1 christos if test -z "$ac_cpp_err"; then 11462 1.1 christos ac_header_preproc=yes 11463 1.1 christos else 11464 1.1 christos echo "$as_me: failed program was:" >&5 11465 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11466 1.1 christos 11467 1.1 christos ac_header_preproc=no 11468 1.1 christos fi 11469 1.1 christos rm -f conftest.err conftest.$ac_ext 11470 1.1 christos echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11471 1.1 christos echo "${ECHO_T}$ac_header_preproc" >&6 11472 1.1 christos 11473 1.1 christos # So? What about this header? 11474 1.1 christos case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11475 1.1 christos yes:no: ) 11476 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11477 1.1 christos echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11478 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11479 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11480 1.1 christos ac_header_preproc=yes 11481 1.1 christos ;; 11482 1.1 christos no:yes:* ) 11483 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11484 1.1 christos echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11485 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11486 1.1 christos echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11487 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11488 1.1 christos echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11489 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11490 1.1 christos echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11491 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11492 1.1 christos echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11493 1.1 christos { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11494 1.1 christos echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11495 1.1 christos ( 11496 1.1 christos cat <<\_ASBOX 11497 1.1 christos ## -------------------------------------- ## 11498 1.1 christos ## Report this to the GNU Texinfo lists. ## 11499 1.1 christos ## -------------------------------------- ## 11500 1.1 christos _ASBOX 11501 1.1 christos ) | 11502 1.1 christos sed "s/^/$as_me: WARNING: /" >&2 11503 1.1 christos ;; 11504 1.1 christos esac 11505 1.1 christos echo "$as_me:$LINENO: checking for $ac_header" >&5 11506 1.1 christos echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11507 1.1 christos if eval "test \"\${$as_ac_Header+set}\" = set"; then 11508 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11509 1.1 christos else 11510 1.1 christos eval "$as_ac_Header=\$ac_header_preproc" 11511 1.1 christos fi 11512 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11513 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11514 1.1 christos 11515 1.1 christos fi 11516 1.1 christos if test `eval echo '${'$as_ac_Header'}'` = yes; then 11517 1.1 christos cat >>confdefs.h <<_ACEOF 11518 1.1 christos #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11519 1.1 christos _ACEOF 11520 1.1 christos 11521 1.1 christos fi 11522 1.1 christos 11523 1.1 christos done 11524 1.1 christos 11525 1.1 christos 11526 1.1 christos 11527 1.1 christos 11528 1.1 christos 11529 1.1 christos 11530 1.1 christos 11531 1.1 christos 11532 1.1 christos 11533 1.1 christos 11534 1.1 christos 11535 1.1 christos 11536 1.1 christos 11537 1.1 christos 11538 1.1 christos 11539 1.1 christos 11540 1.1 christos 11541 1.1 christos 11542 1.1 christos 11543 1.1 christos 11544 1.1 christos 11545 1.1 christos 11546 1.1 christos 11547 1.1 christos 11548 1.1 christos for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 11549 1.1 christos mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 11550 1.1 christos strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 11551 1.1 christos __fsetlocking 11552 1.1 christos do 11553 1.1 christos as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11554 1.1 christos echo "$as_me:$LINENO: checking for $ac_func" >&5 11555 1.1 christos echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11556 1.1 christos if eval "test \"\${$as_ac_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 11566 1.1 christos For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11567 1.1 christos #define $ac_func innocuous_$ac_func 11568 1.1 christos 11569 1.1 christos /* System header to define __stub macros and hopefully few prototypes, 11570 1.1 christos which can conflict with char $ac_func (); below. 11571 1.1 christos Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11572 1.1 christos <limits.h> exists even on freestanding compilers. */ 11573 1.1 christos 11574 1.1 christos #ifdef __STDC__ 11575 1.1 christos # include <limits.h> 11576 1.1 christos #else 11577 1.1 christos # include <assert.h> 11578 1.1 christos #endif 11579 1.1 christos 11580 1.1 christos #undef $ac_func 11581 1.1 christos 11582 1.1 christos /* Override any gcc2 internal prototype to avoid an error. */ 11583 1.1 christos #ifdef __cplusplus 11584 1.1 christos extern "C" 11585 1.1 christos { 11586 1.1 christos #endif 11587 1.1 christos /* We use char because int might match the return type of a gcc2 11588 1.1 christos builtin and then its argument prototype would still apply. */ 11589 1.1 christos char $ac_func (); 11590 1.1 christos /* The GNU C library defines this for functions which it implements 11591 1.1 christos to always fail with ENOSYS. Some functions are actually named 11592 1.1 christos something starting with __ and the normal name is an alias. */ 11593 1.1 christos #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11594 1.1 christos choke me 11595 1.1 christos #else 11596 1.1 christos char (*f) () = $ac_func; 11597 1.1 christos #endif 11598 1.1 christos #ifdef __cplusplus 11599 1.1 christos } 11600 1.1 christos #endif 11601 1.1 christos 11602 1.1 christos int 11603 1.1 christos main () 11604 1.1 christos { 11605 1.1 christos return f != $ac_func; 11606 1.1 christos ; 11607 1.1 christos return 0; 11608 1.1 christos } 11609 1.1 christos _ACEOF 11610 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 11611 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11612 1.1 christos (eval $ac_link) 2>conftest.er1 11613 1.1 christos ac_status=$? 11614 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11615 1.1 christos rm -f conftest.er1 11616 1.1 christos cat conftest.err >&5 11617 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11618 1.1 christos (exit $ac_status); } && 11619 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 11620 1.1 christos || test ! -s conftest.err' 11621 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11622 1.1 christos (eval $ac_try) 2>&5 11623 1.1 christos ac_status=$? 11624 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11625 1.1 christos (exit $ac_status); }; } && 11626 1.1 christos { ac_try='test -s conftest$ac_exeext' 11627 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11628 1.1 christos (eval $ac_try) 2>&5 11629 1.1 christos ac_status=$? 11630 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11631 1.1 christos (exit $ac_status); }; }; then 11632 1.1 christos eval "$as_ac_var=yes" 11633 1.1 christos else 11634 1.1 christos echo "$as_me: failed program was:" >&5 11635 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11636 1.1 christos 11637 1.1 christos eval "$as_ac_var=no" 11638 1.1 christos fi 11639 1.1 christos rm -f conftest.err conftest.$ac_objext \ 11640 1.1 christos conftest$ac_exeext conftest.$ac_ext 11641 1.1 christos fi 11642 1.1 christos echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11643 1.1 christos echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11644 1.1 christos if test `eval echo '${'$as_ac_var'}'` = yes; then 11645 1.1 christos cat >>confdefs.h <<_ACEOF 11646 1.1 christos #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11647 1.1 christos _ACEOF 11648 1.1 christos 11649 1.1 christos fi 11650 1.1 christos done 11651 1.1 christos 11652 1.1 christos 11653 1.1 christos 11654 1.1 christos echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 11655 1.1 christos echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 11656 1.1 christos if test "${ac_cv_have_decl__snprintf+set}" = set; then 11657 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11658 1.1 christos else 11659 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11660 1.1 christos /* confdefs.h. */ 11661 1.1 christos _ACEOF 11662 1.1 christos cat confdefs.h >>conftest.$ac_ext 11663 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11664 1.1 christos /* end confdefs.h. */ 11665 1.1 christos #include <stdio.h> 11666 1.1 christos int 11667 1.1 christos main () 11668 1.1 christos { 11669 1.1 christos 11670 1.1 christos #ifndef _snprintf 11671 1.1 christos char *p = (char *) _snprintf; 11672 1.1 christos #endif 11673 1.1 christos 11674 1.1 christos ; 11675 1.1 christos return 0; 11676 1.1 christos } 11677 1.1 christos _ACEOF 11678 1.1 christos rm -f conftest.$ac_objext 11679 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11680 1.1 christos (eval $ac_compile) 2>conftest.er1 11681 1.1 christos ac_status=$? 11682 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11683 1.1 christos rm -f conftest.er1 11684 1.1 christos cat conftest.err >&5 11685 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11686 1.1 christos (exit $ac_status); } && 11687 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 11688 1.1 christos || test ! -s conftest.err' 11689 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11690 1.1 christos (eval $ac_try) 2>&5 11691 1.1 christos ac_status=$? 11692 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11693 1.1 christos (exit $ac_status); }; } && 11694 1.1 christos { ac_try='test -s conftest.$ac_objext' 11695 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11696 1.1 christos (eval $ac_try) 2>&5 11697 1.1 christos ac_status=$? 11698 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11699 1.1 christos (exit $ac_status); }; }; then 11700 1.1 christos ac_cv_have_decl__snprintf=yes 11701 1.1 christos else 11702 1.1 christos echo "$as_me: failed program was:" >&5 11703 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11704 1.1 christos 11705 1.1 christos ac_cv_have_decl__snprintf=no 11706 1.1 christos fi 11707 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11708 1.1 christos fi 11709 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 11710 1.1 christos echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 11711 1.1 christos if test $ac_cv_have_decl__snprintf = yes; then 11712 1.1 christos gt_value=1 11713 1.1 christos else 11714 1.1 christos gt_value=0 11715 1.1 christos fi 11716 1.1 christos 11717 1.1 christos cat >>confdefs.h <<_ACEOF 11718 1.1 christos #define HAVE_DECL__SNPRINTF $gt_value 11719 1.1 christos _ACEOF 11720 1.1 christos 11721 1.1 christos 11722 1.1 christos 11723 1.1 christos echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 11724 1.1 christos echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 11725 1.1 christos if test "${ac_cv_have_decl__snwprintf+set}" = set; then 11726 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11727 1.1 christos else 11728 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11729 1.1 christos /* confdefs.h. */ 11730 1.1 christos _ACEOF 11731 1.1 christos cat confdefs.h >>conftest.$ac_ext 11732 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11733 1.1 christos /* end confdefs.h. */ 11734 1.1 christos #include <stdio.h> 11735 1.1 christos int 11736 1.1 christos main () 11737 1.1 christos { 11738 1.1 christos 11739 1.1 christos #ifndef _snwprintf 11740 1.1 christos char *p = (char *) _snwprintf; 11741 1.1 christos #endif 11742 1.1 christos 11743 1.1 christos ; 11744 1.1 christos return 0; 11745 1.1 christos } 11746 1.1 christos _ACEOF 11747 1.1 christos rm -f conftest.$ac_objext 11748 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11749 1.1 christos (eval $ac_compile) 2>conftest.er1 11750 1.1 christos ac_status=$? 11751 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11752 1.1 christos rm -f conftest.er1 11753 1.1 christos cat conftest.err >&5 11754 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11755 1.1 christos (exit $ac_status); } && 11756 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 11757 1.1 christos || test ! -s conftest.err' 11758 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11759 1.1 christos (eval $ac_try) 2>&5 11760 1.1 christos ac_status=$? 11761 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11762 1.1 christos (exit $ac_status); }; } && 11763 1.1 christos { ac_try='test -s conftest.$ac_objext' 11764 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11765 1.1 christos (eval $ac_try) 2>&5 11766 1.1 christos ac_status=$? 11767 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11768 1.1 christos (exit $ac_status); }; }; then 11769 1.1 christos ac_cv_have_decl__snwprintf=yes 11770 1.1 christos else 11771 1.1 christos echo "$as_me: failed program was:" >&5 11772 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11773 1.1 christos 11774 1.1 christos ac_cv_have_decl__snwprintf=no 11775 1.1 christos fi 11776 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11777 1.1 christos fi 11778 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 11779 1.1 christos echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 11780 1.1 christos if test $ac_cv_have_decl__snwprintf = yes; then 11781 1.1 christos gt_value=1 11782 1.1 christos else 11783 1.1 christos gt_value=0 11784 1.1 christos fi 11785 1.1 christos 11786 1.1 christos cat >>confdefs.h <<_ACEOF 11787 1.1 christos #define HAVE_DECL__SNWPRINTF $gt_value 11788 1.1 christos _ACEOF 11789 1.1 christos 11790 1.1 christos 11791 1.1 christos 11792 1.1 christos 11793 1.1 christos echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 11794 1.1 christos echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 11795 1.1 christos if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then 11796 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11797 1.1 christos else 11798 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11799 1.1 christos /* confdefs.h. */ 11800 1.1 christos _ACEOF 11801 1.1 christos cat confdefs.h >>conftest.$ac_ext 11802 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11803 1.1 christos /* end confdefs.h. */ 11804 1.1 christos #include <stdio.h> 11805 1.1 christos int 11806 1.1 christos main () 11807 1.1 christos { 11808 1.1 christos 11809 1.1 christos #ifndef feof_unlocked 11810 1.1 christos char *p = (char *) feof_unlocked; 11811 1.1 christos #endif 11812 1.1 christos 11813 1.1 christos ; 11814 1.1 christos return 0; 11815 1.1 christos } 11816 1.1 christos _ACEOF 11817 1.1 christos rm -f conftest.$ac_objext 11818 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11819 1.1 christos (eval $ac_compile) 2>conftest.er1 11820 1.1 christos ac_status=$? 11821 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11822 1.1 christos rm -f conftest.er1 11823 1.1 christos cat conftest.err >&5 11824 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11825 1.1 christos (exit $ac_status); } && 11826 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 11827 1.1 christos || test ! -s conftest.err' 11828 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11829 1.1 christos (eval $ac_try) 2>&5 11830 1.1 christos ac_status=$? 11831 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11832 1.1 christos (exit $ac_status); }; } && 11833 1.1 christos { ac_try='test -s conftest.$ac_objext' 11834 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11835 1.1 christos (eval $ac_try) 2>&5 11836 1.1 christos ac_status=$? 11837 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11838 1.1 christos (exit $ac_status); }; }; then 11839 1.1 christos ac_cv_have_decl_feof_unlocked=yes 11840 1.1 christos else 11841 1.1 christos echo "$as_me: failed program was:" >&5 11842 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11843 1.1 christos 11844 1.1 christos ac_cv_have_decl_feof_unlocked=no 11845 1.1 christos fi 11846 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11847 1.1 christos fi 11848 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 11849 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 11850 1.1 christos if test $ac_cv_have_decl_feof_unlocked = yes; then 11851 1.1 christos gt_value=1 11852 1.1 christos else 11853 1.1 christos gt_value=0 11854 1.1 christos fi 11855 1.1 christos 11856 1.1 christos cat >>confdefs.h <<_ACEOF 11857 1.1 christos #define HAVE_DECL_FEOF_UNLOCKED $gt_value 11858 1.1 christos _ACEOF 11859 1.1 christos 11860 1.1 christos 11861 1.1 christos 11862 1.1 christos echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 11863 1.1 christos echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 11864 1.1 christos if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then 11865 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11866 1.1 christos else 11867 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11868 1.1 christos /* confdefs.h. */ 11869 1.1 christos _ACEOF 11870 1.1 christos cat confdefs.h >>conftest.$ac_ext 11871 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11872 1.1 christos /* end confdefs.h. */ 11873 1.1 christos #include <stdio.h> 11874 1.1 christos int 11875 1.1 christos main () 11876 1.1 christos { 11877 1.1 christos 11878 1.1 christos #ifndef fgets_unlocked 11879 1.1 christos char *p = (char *) fgets_unlocked; 11880 1.1 christos #endif 11881 1.1 christos 11882 1.1 christos ; 11883 1.1 christos return 0; 11884 1.1 christos } 11885 1.1 christos _ACEOF 11886 1.1 christos rm -f conftest.$ac_objext 11887 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11888 1.1 christos (eval $ac_compile) 2>conftest.er1 11889 1.1 christos ac_status=$? 11890 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11891 1.1 christos rm -f conftest.er1 11892 1.1 christos cat conftest.err >&5 11893 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11894 1.1 christos (exit $ac_status); } && 11895 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 11896 1.1 christos || test ! -s conftest.err' 11897 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11898 1.1 christos (eval $ac_try) 2>&5 11899 1.1 christos ac_status=$? 11900 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11901 1.1 christos (exit $ac_status); }; } && 11902 1.1 christos { ac_try='test -s conftest.$ac_objext' 11903 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11904 1.1 christos (eval $ac_try) 2>&5 11905 1.1 christos ac_status=$? 11906 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11907 1.1 christos (exit $ac_status); }; }; then 11908 1.1 christos ac_cv_have_decl_fgets_unlocked=yes 11909 1.1 christos else 11910 1.1 christos echo "$as_me: failed program was:" >&5 11911 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11912 1.1 christos 11913 1.1 christos ac_cv_have_decl_fgets_unlocked=no 11914 1.1 christos fi 11915 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11916 1.1 christos fi 11917 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 11918 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 11919 1.1 christos if test $ac_cv_have_decl_fgets_unlocked = yes; then 11920 1.1 christos gt_value=1 11921 1.1 christos else 11922 1.1 christos gt_value=0 11923 1.1 christos fi 11924 1.1 christos 11925 1.1 christos cat >>confdefs.h <<_ACEOF 11926 1.1 christos #define HAVE_DECL_FGETS_UNLOCKED $gt_value 11927 1.1 christos _ACEOF 11928 1.1 christos 11929 1.1 christos 11930 1.1 christos 11931 1.1 christos echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 11932 1.1 christos echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 11933 1.1 christos if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then 11934 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 11935 1.1 christos else 11936 1.1 christos cat >conftest.$ac_ext <<_ACEOF 11937 1.1 christos /* confdefs.h. */ 11938 1.1 christos _ACEOF 11939 1.1 christos cat confdefs.h >>conftest.$ac_ext 11940 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 11941 1.1 christos /* end confdefs.h. */ 11942 1.1 christos #include <stdio.h> 11943 1.1 christos int 11944 1.1 christos main () 11945 1.1 christos { 11946 1.1 christos 11947 1.1 christos #ifndef getc_unlocked 11948 1.1 christos char *p = (char *) getc_unlocked; 11949 1.1 christos #endif 11950 1.1 christos 11951 1.1 christos ; 11952 1.1 christos return 0; 11953 1.1 christos } 11954 1.1 christos _ACEOF 11955 1.1 christos rm -f conftest.$ac_objext 11956 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11957 1.1 christos (eval $ac_compile) 2>conftest.er1 11958 1.1 christos ac_status=$? 11959 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 11960 1.1 christos rm -f conftest.er1 11961 1.1 christos cat conftest.err >&5 11962 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11963 1.1 christos (exit $ac_status); } && 11964 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 11965 1.1 christos || test ! -s conftest.err' 11966 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11967 1.1 christos (eval $ac_try) 2>&5 11968 1.1 christos ac_status=$? 11969 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11970 1.1 christos (exit $ac_status); }; } && 11971 1.1 christos { ac_try='test -s conftest.$ac_objext' 11972 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11973 1.1 christos (eval $ac_try) 2>&5 11974 1.1 christos ac_status=$? 11975 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 11976 1.1 christos (exit $ac_status); }; }; then 11977 1.1 christos ac_cv_have_decl_getc_unlocked=yes 11978 1.1 christos else 11979 1.1 christos echo "$as_me: failed program was:" >&5 11980 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 11981 1.1 christos 11982 1.1 christos ac_cv_have_decl_getc_unlocked=no 11983 1.1 christos fi 11984 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11985 1.1 christos fi 11986 1.1 christos echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 11987 1.1 christos echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 11988 1.1 christos if test $ac_cv_have_decl_getc_unlocked = yes; then 11989 1.1 christos gt_value=1 11990 1.1 christos else 11991 1.1 christos gt_value=0 11992 1.1 christos fi 11993 1.1 christos 11994 1.1 christos cat >>confdefs.h <<_ACEOF 11995 1.1 christos #define HAVE_DECL_GETC_UNLOCKED $gt_value 11996 1.1 christos _ACEOF 11997 1.1 christos 11998 1.1 christos 11999 1.1 christos 12000 1.1 christos case $gt_cv_func_printf_posix in 12001 1.1 christos *yes) HAVE_POSIX_PRINTF=1 ;; 12002 1.1 christos *) HAVE_POSIX_PRINTF=0 ;; 12003 1.1 christos esac 12004 1.1 christos 12005 1.1 christos if test "$ac_cv_func_asprintf" = yes; then 12006 1.1 christos HAVE_ASPRINTF=1 12007 1.1 christos else 12008 1.1 christos HAVE_ASPRINTF=0 12009 1.1 christos fi 12010 1.1 christos 12011 1.1 christos if test "$ac_cv_func_snprintf" = yes; then 12012 1.1 christos HAVE_SNPRINTF=1 12013 1.1 christos else 12014 1.1 christos HAVE_SNPRINTF=0 12015 1.1 christos fi 12016 1.1 christos 12017 1.1 christos if test "$ac_cv_func_wprintf" = yes; then 12018 1.1 christos HAVE_WPRINTF=1 12019 1.1 christos else 12020 1.1 christos HAVE_WPRINTF=0 12021 1.1 christos fi 12022 1.1 christos 12023 1.1 christos 12024 1.1 christos 12025 1.1 christos 12026 1.1 christos 12027 1.1 christos 12028 1.1 christos 12029 1.1 christos am_save_CPPFLAGS="$CPPFLAGS" 12030 1.1 christos 12031 1.1 christos for element in $INCICONV; do 12032 1.1 christos haveit= 12033 1.1 christos for x in $CPPFLAGS; do 12034 1.1 christos 12035 1.1 christos acl_save_prefix="$prefix" 12036 1.1 christos prefix="$acl_final_prefix" 12037 1.1 christos acl_save_exec_prefix="$exec_prefix" 12038 1.1 christos exec_prefix="$acl_final_exec_prefix" 12039 1.1 christos eval x=\"$x\" 12040 1.1 christos exec_prefix="$acl_save_exec_prefix" 12041 1.1 christos prefix="$acl_save_prefix" 12042 1.1 christos 12043 1.1 christos if test "X$x" = "X$element"; then 12044 1.1 christos haveit=yes 12045 1.1 christos break 12046 1.1 christos fi 12047 1.1 christos done 12048 1.1 christos if test -z "$haveit"; then 12049 1.1 christos CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12050 1.1 christos fi 12051 1.1 christos done 12052 1.1 christos 12053 1.1 christos 12054 1.1 christos echo "$as_me:$LINENO: checking for iconv" >&5 12055 1.1 christos echo $ECHO_N "checking for iconv... $ECHO_C" >&6 12056 1.1 christos if test "${am_cv_func_iconv+set}" = set; then 12057 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12058 1.1 christos else 12059 1.1 christos 12060 1.1 christos am_cv_func_iconv="no, consider installing GNU libiconv" 12061 1.1 christos am_cv_lib_iconv=no 12062 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12063 1.1 christos /* confdefs.h. */ 12064 1.1 christos _ACEOF 12065 1.1 christos cat confdefs.h >>conftest.$ac_ext 12066 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12067 1.1 christos /* end confdefs.h. */ 12068 1.1 christos #include <stdlib.h> 12069 1.1 christos #include <iconv.h> 12070 1.1 christos int 12071 1.1 christos main () 12072 1.1 christos { 12073 1.1 christos iconv_t cd = iconv_open("",""); 12074 1.1 christos iconv(cd,NULL,NULL,NULL,NULL); 12075 1.1 christos iconv_close(cd); 12076 1.1 christos ; 12077 1.1 christos return 0; 12078 1.1 christos } 12079 1.1 christos _ACEOF 12080 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12081 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12082 1.1 christos (eval $ac_link) 2>conftest.er1 12083 1.1 christos ac_status=$? 12084 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12085 1.1 christos rm -f conftest.er1 12086 1.1 christos cat conftest.err >&5 12087 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12088 1.1 christos (exit $ac_status); } && 12089 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 12090 1.1 christos || test ! -s conftest.err' 12091 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12092 1.1 christos (eval $ac_try) 2>&5 12093 1.1 christos ac_status=$? 12094 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12095 1.1 christos (exit $ac_status); }; } && 12096 1.1 christos { ac_try='test -s conftest$ac_exeext' 12097 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12098 1.1 christos (eval $ac_try) 2>&5 12099 1.1 christos ac_status=$? 12100 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12101 1.1 christos (exit $ac_status); }; }; then 12102 1.1 christos am_cv_func_iconv=yes 12103 1.1 christos else 12104 1.1 christos echo "$as_me: failed program was:" >&5 12105 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12106 1.1 christos 12107 1.1 christos fi 12108 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12109 1.1 christos conftest$ac_exeext conftest.$ac_ext 12110 1.1 christos if test "$am_cv_func_iconv" != yes; then 12111 1.1 christos am_save_LIBS="$LIBS" 12112 1.1 christos LIBS="$LIBS $LIBICONV" 12113 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12114 1.1 christos /* confdefs.h. */ 12115 1.1 christos _ACEOF 12116 1.1 christos cat confdefs.h >>conftest.$ac_ext 12117 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12118 1.1 christos /* end confdefs.h. */ 12119 1.1 christos #include <stdlib.h> 12120 1.1 christos #include <iconv.h> 12121 1.1 christos int 12122 1.1 christos main () 12123 1.1 christos { 12124 1.1 christos iconv_t cd = iconv_open("",""); 12125 1.1 christos iconv(cd,NULL,NULL,NULL,NULL); 12126 1.1 christos iconv_close(cd); 12127 1.1 christos ; 12128 1.1 christos return 0; 12129 1.1 christos } 12130 1.1 christos _ACEOF 12131 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12132 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12133 1.1 christos (eval $ac_link) 2>conftest.er1 12134 1.1 christos ac_status=$? 12135 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12136 1.1 christos rm -f conftest.er1 12137 1.1 christos cat conftest.err >&5 12138 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12139 1.1 christos (exit $ac_status); } && 12140 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 12141 1.1 christos || test ! -s conftest.err' 12142 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12143 1.1 christos (eval $ac_try) 2>&5 12144 1.1 christos ac_status=$? 12145 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12146 1.1 christos (exit $ac_status); }; } && 12147 1.1 christos { ac_try='test -s conftest$ac_exeext' 12148 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12149 1.1 christos (eval $ac_try) 2>&5 12150 1.1 christos ac_status=$? 12151 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12152 1.1 christos (exit $ac_status); }; }; then 12153 1.1 christos am_cv_lib_iconv=yes 12154 1.1 christos am_cv_func_iconv=yes 12155 1.1 christos else 12156 1.1 christos echo "$as_me: failed program was:" >&5 12157 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12158 1.1 christos 12159 1.1 christos fi 12160 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12161 1.1 christos conftest$ac_exeext conftest.$ac_ext 12162 1.1 christos LIBS="$am_save_LIBS" 12163 1.1 christos fi 12164 1.1 christos 12165 1.1 christos fi 12166 1.1 christos echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 12167 1.1 christos echo "${ECHO_T}$am_cv_func_iconv" >&6 12168 1.1 christos if test "$am_cv_func_iconv" = yes; then 12169 1.1 christos 12170 1.1 christos cat >>confdefs.h <<\_ACEOF 12171 1.1 christos #define HAVE_ICONV 1 12172 1.1 christos _ACEOF 12173 1.1 christos 12174 1.1 christos fi 12175 1.1 christos if test "$am_cv_lib_iconv" = yes; then 12176 1.1 christos echo "$as_me:$LINENO: checking how to link with libiconv" >&5 12177 1.1 christos echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 12178 1.1 christos echo "$as_me:$LINENO: result: $LIBICONV" >&5 12179 1.1 christos echo "${ECHO_T}$LIBICONV" >&6 12180 1.1 christos else 12181 1.1 christos CPPFLAGS="$am_save_CPPFLAGS" 12182 1.1 christos LIBICONV= 12183 1.1 christos LTLIBICONV= 12184 1.1 christos fi 12185 1.1 christos 12186 1.1 christos 12187 1.1 christos 12188 1.1 christos if test "$am_cv_func_iconv" = yes; then 12189 1.1 christos echo "$as_me:$LINENO: checking for iconv declaration" >&5 12190 1.1 christos echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 12191 1.1 christos if test "${am_cv_proto_iconv+set}" = set; then 12192 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12193 1.1 christos else 12194 1.1 christos 12195 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12196 1.1 christos /* confdefs.h. */ 12197 1.1 christos _ACEOF 12198 1.1 christos cat confdefs.h >>conftest.$ac_ext 12199 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12200 1.1 christos /* end confdefs.h. */ 12201 1.1 christos 12202 1.1 christos #include <stdlib.h> 12203 1.1 christos #include <iconv.h> 12204 1.1 christos extern 12205 1.1 christos #ifdef __cplusplus 12206 1.1 christos "C" 12207 1.1 christos #endif 12208 1.1 christos #if defined(__STDC__) || defined(__cplusplus) 12209 1.1 christos size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 12210 1.1 christos #else 12211 1.1 christos size_t iconv(); 12212 1.1 christos #endif 12213 1.1 christos 12214 1.1 christos int 12215 1.1 christos main () 12216 1.1 christos { 12217 1.1 christos 12218 1.1 christos ; 12219 1.1 christos return 0; 12220 1.1 christos } 12221 1.1 christos _ACEOF 12222 1.1 christos rm -f conftest.$ac_objext 12223 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12224 1.1 christos (eval $ac_compile) 2>conftest.er1 12225 1.1 christos ac_status=$? 12226 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12227 1.1 christos rm -f conftest.er1 12228 1.1 christos cat conftest.err >&5 12229 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12230 1.1 christos (exit $ac_status); } && 12231 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 12232 1.1 christos || test ! -s conftest.err' 12233 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12234 1.1 christos (eval $ac_try) 2>&5 12235 1.1 christos ac_status=$? 12236 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12237 1.1 christos (exit $ac_status); }; } && 12238 1.1 christos { ac_try='test -s conftest.$ac_objext' 12239 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12240 1.1 christos (eval $ac_try) 2>&5 12241 1.1 christos ac_status=$? 12242 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12243 1.1 christos (exit $ac_status); }; }; then 12244 1.1 christos am_cv_proto_iconv_arg1="" 12245 1.1 christos else 12246 1.1 christos echo "$as_me: failed program was:" >&5 12247 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12248 1.1 christos 12249 1.1 christos am_cv_proto_iconv_arg1="const" 12250 1.1 christos fi 12251 1.1 christos rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12252 1.1 christos am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 12253 1.1 christos fi 12254 1.1 christos 12255 1.1 christos am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 12256 1.1 christos echo "$as_me:$LINENO: result: ${ac_t:- 12257 1.1 christos }$am_cv_proto_iconv" >&5 12258 1.1 christos echo "${ECHO_T}${ac_t:- 12259 1.1 christos }$am_cv_proto_iconv" >&6 12260 1.1 christos 12261 1.1 christos cat >>confdefs.h <<_ACEOF 12262 1.1 christos #define ICONV_CONST $am_cv_proto_iconv_arg1 12263 1.1 christos _ACEOF 12264 1.1 christos 12265 1.1 christos fi 12266 1.1 christos 12267 1.1 christos 12268 1.1 christos echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 12269 1.1 christos echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 12270 1.1 christos if test "${am_cv_langinfo_codeset+set}" = set; then 12271 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12272 1.1 christos else 12273 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12274 1.1 christos /* confdefs.h. */ 12275 1.1 christos _ACEOF 12276 1.1 christos cat confdefs.h >>conftest.$ac_ext 12277 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12278 1.1 christos /* end confdefs.h. */ 12279 1.1 christos #include <langinfo.h> 12280 1.1 christos int 12281 1.1 christos main () 12282 1.1 christos { 12283 1.1 christos char* cs = nl_langinfo(CODESET); 12284 1.1 christos ; 12285 1.1 christos return 0; 12286 1.1 christos } 12287 1.1 christos _ACEOF 12288 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12289 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12290 1.1 christos (eval $ac_link) 2>conftest.er1 12291 1.1 christos ac_status=$? 12292 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12293 1.1 christos rm -f conftest.er1 12294 1.1 christos cat conftest.err >&5 12295 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12296 1.1 christos (exit $ac_status); } && 12297 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 12298 1.1 christos || test ! -s conftest.err' 12299 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12300 1.1 christos (eval $ac_try) 2>&5 12301 1.1 christos ac_status=$? 12302 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12303 1.1 christos (exit $ac_status); }; } && 12304 1.1 christos { ac_try='test -s conftest$ac_exeext' 12305 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12306 1.1 christos (eval $ac_try) 2>&5 12307 1.1 christos ac_status=$? 12308 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12309 1.1 christos (exit $ac_status); }; }; then 12310 1.1 christos am_cv_langinfo_codeset=yes 12311 1.1 christos else 12312 1.1 christos echo "$as_me: failed program was:" >&5 12313 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12314 1.1 christos 12315 1.1 christos am_cv_langinfo_codeset=no 12316 1.1 christos fi 12317 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12318 1.1 christos conftest$ac_exeext conftest.$ac_ext 12319 1.1 christos 12320 1.1 christos fi 12321 1.1 christos echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 12322 1.1 christos echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 12323 1.1 christos if test $am_cv_langinfo_codeset = yes; then 12324 1.1 christos 12325 1.1 christos cat >>confdefs.h <<\_ACEOF 12326 1.1 christos #define HAVE_LANGINFO_CODESET 1 12327 1.1 christos _ACEOF 12328 1.1 christos 12329 1.1 christos fi 12330 1.1 christos 12331 1.1 christos if test $ac_cv_header_locale_h = yes; then 12332 1.1 christos 12333 1.1 christos echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 12334 1.1 christos echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 12335 1.1 christos if test "${am_cv_val_LC_MESSAGES+set}" = set; then 12336 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12337 1.1 christos else 12338 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12339 1.1 christos /* confdefs.h. */ 12340 1.1 christos _ACEOF 12341 1.1 christos cat confdefs.h >>conftest.$ac_ext 12342 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12343 1.1 christos /* end confdefs.h. */ 12344 1.1 christos #include <locale.h> 12345 1.1 christos int 12346 1.1 christos main () 12347 1.1 christos { 12348 1.1 christos return LC_MESSAGES 12349 1.1 christos ; 12350 1.1 christos return 0; 12351 1.1 christos } 12352 1.1 christos _ACEOF 12353 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12354 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12355 1.1 christos (eval $ac_link) 2>conftest.er1 12356 1.1 christos ac_status=$? 12357 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12358 1.1 christos rm -f conftest.er1 12359 1.1 christos cat conftest.err >&5 12360 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12361 1.1 christos (exit $ac_status); } && 12362 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 12363 1.1 christos || test ! -s conftest.err' 12364 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12365 1.1 christos (eval $ac_try) 2>&5 12366 1.1 christos ac_status=$? 12367 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12368 1.1 christos (exit $ac_status); }; } && 12369 1.1 christos { ac_try='test -s conftest$ac_exeext' 12370 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12371 1.1 christos (eval $ac_try) 2>&5 12372 1.1 christos ac_status=$? 12373 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12374 1.1 christos (exit $ac_status); }; }; then 12375 1.1 christos am_cv_val_LC_MESSAGES=yes 12376 1.1 christos else 12377 1.1 christos echo "$as_me: failed program was:" >&5 12378 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12379 1.1 christos 12380 1.1 christos am_cv_val_LC_MESSAGES=no 12381 1.1 christos fi 12382 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12383 1.1 christos conftest$ac_exeext conftest.$ac_ext 12384 1.1 christos fi 12385 1.1 christos echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 12386 1.1 christos echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 12387 1.1 christos if test $am_cv_val_LC_MESSAGES = yes; then 12388 1.1 christos 12389 1.1 christos cat >>confdefs.h <<\_ACEOF 12390 1.1 christos #define HAVE_LC_MESSAGES 1 12391 1.1 christos _ACEOF 12392 1.1 christos 12393 1.1 christos fi 12394 1.1 christos 12395 1.1 christos fi 12396 1.1 christos 12397 1.1 christos for ac_prog in bison 12398 1.1 christos do 12399 1.1 christos # Extract the first word of "$ac_prog", so it can be a program name with args. 12400 1.1 christos set dummy $ac_prog; ac_word=$2 12401 1.1 christos echo "$as_me:$LINENO: checking for $ac_word" >&5 12402 1.1 christos echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 12403 1.1 christos if test "${ac_cv_prog_INTLBISON+set}" = set; then 12404 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12405 1.1 christos else 12406 1.1 christos if test -n "$INTLBISON"; then 12407 1.1 christos ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 12408 1.1 christos else 12409 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12410 1.1 christos for as_dir in $PATH 12411 1.1 christos do 12412 1.1 christos IFS=$as_save_IFS 12413 1.1 christos test -z "$as_dir" && as_dir=. 12414 1.1 christos for ac_exec_ext in '' $ac_executable_extensions; do 12415 1.1 christos if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12416 1.1 christos ac_cv_prog_INTLBISON="$ac_prog" 12417 1.1 christos echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 12418 1.1 christos break 2 12419 1.1 christos fi 12420 1.1 christos done 12421 1.1 christos done 12422 1.1 christos 12423 1.1 christos fi 12424 1.1 christos fi 12425 1.1 christos INTLBISON=$ac_cv_prog_INTLBISON 12426 1.1 christos if test -n "$INTLBISON"; then 12427 1.1 christos echo "$as_me:$LINENO: result: $INTLBISON" >&5 12428 1.1 christos echo "${ECHO_T}$INTLBISON" >&6 12429 1.1 christos else 12430 1.1 christos echo "$as_me:$LINENO: result: no" >&5 12431 1.1 christos echo "${ECHO_T}no" >&6 12432 1.1 christos fi 12433 1.1 christos 12434 1.1 christos test -n "$INTLBISON" && break 12435 1.1 christos done 12436 1.1 christos 12437 1.1 christos if test -z "$INTLBISON"; then 12438 1.1 christos ac_verc_fail=yes 12439 1.1 christos else 12440 1.1 christos echo "$as_me:$LINENO: checking version of bison" >&5 12441 1.1 christos echo $ECHO_N "checking version of bison... $ECHO_C" >&6 12442 1.1 christos ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 12443 1.1 christos case $ac_prog_version in 12444 1.1 christos '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 12445 1.1 christos 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 12446 1.1 christos ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 12447 1.1 christos *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 12448 1.1 christos esac 12449 1.1 christos echo "$as_me:$LINENO: result: $ac_prog_version" >&5 12450 1.1 christos echo "${ECHO_T}$ac_prog_version" >&6 12451 1.1 christos fi 12452 1.1 christos if test $ac_verc_fail = yes; then 12453 1.1 christos INTLBISON=: 12454 1.1 christos fi 12455 1.1 christos 12456 1.1 christos 12457 1.1 christos 12458 1.1 christos 12459 1.1 christos 12460 1.1 christos 12461 1.1 christos 12462 1.1 christos 12463 1.1 christos 12464 1.1 christos 12465 1.1 christos 12466 1.1 christos 12467 1.1 christos 12468 1.1 christos 12469 1.1 christos 12470 1.1 christos 12471 1.1 christos echo "$as_me:$LINENO: checking whether NLS is requested" >&5 12472 1.1 christos echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 12473 1.1 christos # Check whether --enable-nls or --disable-nls was given. 12474 1.1 christos if test "${enable_nls+set}" = set; then 12475 1.1 christos enableval="$enable_nls" 12476 1.1 christos USE_NLS=$enableval 12477 1.1 christos else 12478 1.1 christos USE_NLS=yes 12479 1.1 christos fi; 12480 1.1 christos echo "$as_me:$LINENO: result: $USE_NLS" >&5 12481 1.1 christos echo "${ECHO_T}$USE_NLS" >&6 12482 1.1 christos 12483 1.1 christos 12484 1.1 christos 12485 1.1 christos 12486 1.1 christos BUILD_INCLUDED_LIBINTL=no 12487 1.1 christos USE_INCLUDED_LIBINTL=no 12488 1.1 christos 12489 1.1 christos LIBINTL= 12490 1.1 christos LTLIBINTL= 12491 1.1 christos POSUB= 12492 1.1 christos 12493 1.1 christos if test "$USE_NLS" = "yes"; then 12494 1.1 christos gt_use_preinstalled_gnugettext=no 12495 1.1 christos 12496 1.1 christos echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 12497 1.1 christos echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 12498 1.1 christos 12499 1.1 christos # Check whether --with-included-gettext or --without-included-gettext was given. 12500 1.1 christos if test "${with_included_gettext+set}" = set; then 12501 1.1 christos withval="$with_included_gettext" 12502 1.1 christos nls_cv_force_use_gnu_gettext=$withval 12503 1.1 christos else 12504 1.1 christos nls_cv_force_use_gnu_gettext=no 12505 1.1 christos fi; 12506 1.1 christos echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 12507 1.1 christos echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 12508 1.1 christos 12509 1.1 christos nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 12510 1.1 christos if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 12511 1.1 christos 12512 1.1 christos 12513 1.1 christos 12514 1.1 christos 12515 1.1 christos 12516 1.1 christos 12517 1.1 christos echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 12518 1.1 christos echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 12519 1.1 christos if test "${gt_cv_func_gnugettext1_libc+set}" = set; then 12520 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12521 1.1 christos else 12522 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12523 1.1 christos /* confdefs.h. */ 12524 1.1 christos _ACEOF 12525 1.1 christos cat confdefs.h >>conftest.$ac_ext 12526 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12527 1.1 christos /* end confdefs.h. */ 12528 1.1 christos #include <libintl.h> 12529 1.1 christos extern int _nl_msg_cat_cntr; 12530 1.1 christos extern int *_nl_domain_bindings; 12531 1.1 christos int 12532 1.1 christos main () 12533 1.1 christos { 12534 1.1 christos bindtextdomain ("", ""); 12535 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 12536 1.1 christos ; 12537 1.1 christos return 0; 12538 1.1 christos } 12539 1.1 christos _ACEOF 12540 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12541 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12542 1.1 christos (eval $ac_link) 2>conftest.er1 12543 1.1 christos ac_status=$? 12544 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12545 1.1 christos rm -f conftest.er1 12546 1.1 christos cat conftest.err >&5 12547 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12548 1.1 christos (exit $ac_status); } && 12549 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 12550 1.1 christos || test ! -s conftest.err' 12551 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12552 1.1 christos (eval $ac_try) 2>&5 12553 1.1 christos ac_status=$? 12554 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12555 1.1 christos (exit $ac_status); }; } && 12556 1.1 christos { ac_try='test -s conftest$ac_exeext' 12557 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12558 1.1 christos (eval $ac_try) 2>&5 12559 1.1 christos ac_status=$? 12560 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12561 1.1 christos (exit $ac_status); }; }; then 12562 1.1 christos gt_cv_func_gnugettext1_libc=yes 12563 1.1 christos else 12564 1.1 christos echo "$as_me: failed program was:" >&5 12565 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 12566 1.1 christos 12567 1.1 christos gt_cv_func_gnugettext1_libc=no 12568 1.1 christos fi 12569 1.1 christos rm -f conftest.err conftest.$ac_objext \ 12570 1.1 christos conftest$ac_exeext conftest.$ac_ext 12571 1.1 christos fi 12572 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 12573 1.1 christos echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 12574 1.1 christos 12575 1.1 christos if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 12576 1.1 christos 12577 1.1 christos 12578 1.1 christos 12579 1.1 christos use_additional=yes 12580 1.1 christos 12581 1.1 christos acl_save_prefix="$prefix" 12582 1.1 christos prefix="$acl_final_prefix" 12583 1.1 christos acl_save_exec_prefix="$exec_prefix" 12584 1.1 christos exec_prefix="$acl_final_exec_prefix" 12585 1.1 christos 12586 1.1 christos eval additional_includedir=\"$includedir\" 12587 1.1 christos eval additional_libdir=\"$libdir\" 12588 1.1 christos 12589 1.1 christos exec_prefix="$acl_save_exec_prefix" 12590 1.1 christos prefix="$acl_save_prefix" 12591 1.1 christos 12592 1.1 christos 12593 1.1 christos # Check whether --with-libintl-prefix or --without-libintl-prefix was given. 12594 1.1 christos if test "${with_libintl_prefix+set}" = set; then 12595 1.1 christos withval="$with_libintl_prefix" 12596 1.1 christos 12597 1.1 christos if test "X$withval" = "Xno"; then 12598 1.1 christos use_additional=no 12599 1.1 christos else 12600 1.1 christos if test "X$withval" = "X"; then 12601 1.1 christos 12602 1.1 christos acl_save_prefix="$prefix" 12603 1.1 christos prefix="$acl_final_prefix" 12604 1.1 christos acl_save_exec_prefix="$exec_prefix" 12605 1.1 christos exec_prefix="$acl_final_exec_prefix" 12606 1.1 christos 12607 1.1 christos eval additional_includedir=\"$includedir\" 12608 1.1 christos eval additional_libdir=\"$libdir\" 12609 1.1 christos 12610 1.1 christos exec_prefix="$acl_save_exec_prefix" 12611 1.1 christos prefix="$acl_save_prefix" 12612 1.1 christos 12613 1.1 christos else 12614 1.1 christos additional_includedir="$withval/include" 12615 1.1 christos additional_libdir="$withval/lib" 12616 1.1 christos fi 12617 1.1 christos fi 12618 1.1 christos 12619 1.1 christos fi; 12620 1.1 christos LIBINTL= 12621 1.1 christos LTLIBINTL= 12622 1.1 christos INCINTL= 12623 1.1 christos rpathdirs= 12624 1.1 christos ltrpathdirs= 12625 1.1 christos names_already_handled= 12626 1.1 christos names_next_round='intl ' 12627 1.1 christos while test -n "$names_next_round"; do 12628 1.1 christos names_this_round="$names_next_round" 12629 1.1 christos names_next_round= 12630 1.1 christos for name in $names_this_round; do 12631 1.1 christos already_handled= 12632 1.1 christos for n in $names_already_handled; do 12633 1.1 christos if test "$n" = "$name"; then 12634 1.1 christos already_handled=yes 12635 1.1 christos break 12636 1.1 christos fi 12637 1.1 christos done 12638 1.1 christos if test -z "$already_handled"; then 12639 1.1 christos names_already_handled="$names_already_handled $name" 12640 1.1 christos uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12641 1.1 christos eval value=\"\$HAVE_LIB$uppername\" 12642 1.1 christos if test -n "$value"; then 12643 1.1 christos if test "$value" = yes; then 12644 1.1 christos eval value=\"\$LIB$uppername\" 12645 1.1 christos test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 12646 1.1 christos eval value=\"\$LTLIB$uppername\" 12647 1.1 christos test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 12648 1.1 christos else 12649 1.1 christos : 12650 1.1 christos fi 12651 1.1 christos else 12652 1.1 christos found_dir= 12653 1.1 christos found_la= 12654 1.1 christos found_so= 12655 1.1 christos found_a= 12656 1.1 christos if test $use_additional = yes; then 12657 1.1 christos if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 12658 1.1 christos found_dir="$additional_libdir" 12659 1.1 christos found_so="$additional_libdir/lib$name.$shlibext" 12660 1.1 christos if test -f "$additional_libdir/lib$name.la"; then 12661 1.1 christos found_la="$additional_libdir/lib$name.la" 12662 1.1 christos fi 12663 1.1 christos else 12664 1.1 christos if test -f "$additional_libdir/lib$name.$libext"; then 12665 1.1 christos found_dir="$additional_libdir" 12666 1.1 christos found_a="$additional_libdir/lib$name.$libext" 12667 1.1 christos if test -f "$additional_libdir/lib$name.la"; then 12668 1.1 christos found_la="$additional_libdir/lib$name.la" 12669 1.1 christos fi 12670 1.1 christos fi 12671 1.1 christos fi 12672 1.1 christos fi 12673 1.1 christos if test "X$found_dir" = "X"; then 12674 1.1 christos for x in $LDFLAGS $LTLIBINTL; do 12675 1.1 christos 12676 1.1 christos acl_save_prefix="$prefix" 12677 1.1 christos prefix="$acl_final_prefix" 12678 1.1 christos acl_save_exec_prefix="$exec_prefix" 12679 1.1 christos exec_prefix="$acl_final_exec_prefix" 12680 1.1 christos eval x=\"$x\" 12681 1.1 christos exec_prefix="$acl_save_exec_prefix" 12682 1.1 christos prefix="$acl_save_prefix" 12683 1.1 christos 12684 1.1 christos case "$x" in 12685 1.1 christos -L*) 12686 1.1 christos dir=`echo "X$x" | sed -e 's/^X-L//'` 12687 1.1 christos if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 12688 1.1 christos found_dir="$dir" 12689 1.1 christos found_so="$dir/lib$name.$shlibext" 12690 1.1 christos if test -f "$dir/lib$name.la"; then 12691 1.1 christos found_la="$dir/lib$name.la" 12692 1.1 christos fi 12693 1.1 christos else 12694 1.1 christos if test -f "$dir/lib$name.$libext"; then 12695 1.1 christos found_dir="$dir" 12696 1.1 christos found_a="$dir/lib$name.$libext" 12697 1.1 christos if test -f "$dir/lib$name.la"; then 12698 1.1 christos found_la="$dir/lib$name.la" 12699 1.1 christos fi 12700 1.1 christos fi 12701 1.1 christos fi 12702 1.1 christos ;; 12703 1.1 christos esac 12704 1.1 christos if test "X$found_dir" != "X"; then 12705 1.1 christos break 12706 1.1 christos fi 12707 1.1 christos done 12708 1.1 christos fi 12709 1.1 christos if test "X$found_dir" != "X"; then 12710 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 12711 1.1 christos if test "X$found_so" != "X"; then 12712 1.1 christos if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 12713 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12714 1.1 christos else 12715 1.1 christos haveit= 12716 1.1 christos for x in $ltrpathdirs; do 12717 1.1 christos if test "X$x" = "X$found_dir"; then 12718 1.1 christos haveit=yes 12719 1.1 christos break 12720 1.1 christos fi 12721 1.1 christos done 12722 1.1 christos if test -z "$haveit"; then 12723 1.1 christos ltrpathdirs="$ltrpathdirs $found_dir" 12724 1.1 christos fi 12725 1.1 christos if test "$hardcode_direct" = yes; then 12726 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12727 1.1 christos else 12728 1.1 christos if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 12729 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12730 1.1 christos haveit= 12731 1.1 christos for x in $rpathdirs; do 12732 1.1 christos if test "X$x" = "X$found_dir"; then 12733 1.1 christos haveit=yes 12734 1.1 christos break 12735 1.1 christos fi 12736 1.1 christos done 12737 1.1 christos if test -z "$haveit"; then 12738 1.1 christos rpathdirs="$rpathdirs $found_dir" 12739 1.1 christos fi 12740 1.1 christos else 12741 1.1 christos haveit= 12742 1.1 christos for x in $LDFLAGS $LIBINTL; do 12743 1.1 christos 12744 1.1 christos acl_save_prefix="$prefix" 12745 1.1 christos prefix="$acl_final_prefix" 12746 1.1 christos acl_save_exec_prefix="$exec_prefix" 12747 1.1 christos exec_prefix="$acl_final_exec_prefix" 12748 1.1 christos eval x=\"$x\" 12749 1.1 christos exec_prefix="$acl_save_exec_prefix" 12750 1.1 christos prefix="$acl_save_prefix" 12751 1.1 christos 12752 1.1 christos if test "X$x" = "X-L$found_dir"; then 12753 1.1 christos haveit=yes 12754 1.1 christos break 12755 1.1 christos fi 12756 1.1 christos done 12757 1.1 christos if test -z "$haveit"; then 12758 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 12759 1.1 christos fi 12760 1.1 christos if test "$hardcode_minus_L" != no; then 12761 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 12762 1.1 christos else 12763 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12764 1.1 christos fi 12765 1.1 christos fi 12766 1.1 christos fi 12767 1.1 christos fi 12768 1.1 christos else 12769 1.1 christos if test "X$found_a" != "X"; then 12770 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 12771 1.1 christos else 12772 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 12773 1.1 christos fi 12774 1.1 christos fi 12775 1.1 christos additional_includedir= 12776 1.1 christos case "$found_dir" in 12777 1.1 christos */lib | */lib/) 12778 1.1 christos basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 12779 1.1 christos additional_includedir="$basedir/include" 12780 1.1 christos ;; 12781 1.1 christos esac 12782 1.1 christos if test "X$additional_includedir" != "X"; then 12783 1.1 christos if test "X$additional_includedir" != "X/usr/include"; then 12784 1.1 christos haveit= 12785 1.1 christos if test "X$additional_includedir" = "X/usr/local/include"; then 12786 1.1 christos if test -n "$GCC"; then 12787 1.1 christos case $host_os in 12788 1.1 christos linux*) haveit=yes;; 12789 1.1 christos esac 12790 1.1 christos fi 12791 1.1 christos fi 12792 1.1 christos if test -z "$haveit"; then 12793 1.1 christos for x in $CPPFLAGS $INCINTL; do 12794 1.1 christos 12795 1.1 christos acl_save_prefix="$prefix" 12796 1.1 christos prefix="$acl_final_prefix" 12797 1.1 christos acl_save_exec_prefix="$exec_prefix" 12798 1.1 christos exec_prefix="$acl_final_exec_prefix" 12799 1.1 christos eval x=\"$x\" 12800 1.1 christos exec_prefix="$acl_save_exec_prefix" 12801 1.1 christos prefix="$acl_save_prefix" 12802 1.1 christos 12803 1.1 christos if test "X$x" = "X-I$additional_includedir"; then 12804 1.1 christos haveit=yes 12805 1.1 christos break 12806 1.1 christos fi 12807 1.1 christos done 12808 1.1 christos if test -z "$haveit"; then 12809 1.1 christos if test -d "$additional_includedir"; then 12810 1.1 christos INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 12811 1.1 christos fi 12812 1.1 christos fi 12813 1.1 christos fi 12814 1.1 christos fi 12815 1.1 christos fi 12816 1.1 christos if test -n "$found_la"; then 12817 1.1 christos save_libdir="$libdir" 12818 1.1 christos case "$found_la" in 12819 1.1 christos */* | *\\*) . "$found_la" ;; 12820 1.1 christos *) . "./$found_la" ;; 12821 1.1 christos esac 12822 1.1 christos libdir="$save_libdir" 12823 1.1 christos for dep in $dependency_libs; do 12824 1.1 christos case "$dep" in 12825 1.1 christos -L*) 12826 1.1 christos additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12827 1.1 christos if test "X$additional_libdir" != "X/usr/lib"; then 12828 1.1 christos haveit= 12829 1.1 christos if test "X$additional_libdir" = "X/usr/local/lib"; then 12830 1.1 christos if test -n "$GCC"; then 12831 1.1 christos case $host_os in 12832 1.1 christos linux*) haveit=yes;; 12833 1.1 christos esac 12834 1.1 christos fi 12835 1.1 christos fi 12836 1.1 christos if test -z "$haveit"; then 12837 1.1 christos haveit= 12838 1.1 christos for x in $LDFLAGS $LIBINTL; do 12839 1.1 christos 12840 1.1 christos acl_save_prefix="$prefix" 12841 1.1 christos prefix="$acl_final_prefix" 12842 1.1 christos acl_save_exec_prefix="$exec_prefix" 12843 1.1 christos exec_prefix="$acl_final_exec_prefix" 12844 1.1 christos eval x=\"$x\" 12845 1.1 christos exec_prefix="$acl_save_exec_prefix" 12846 1.1 christos prefix="$acl_save_prefix" 12847 1.1 christos 12848 1.1 christos if test "X$x" = "X-L$additional_libdir"; then 12849 1.1 christos haveit=yes 12850 1.1 christos break 12851 1.1 christos fi 12852 1.1 christos done 12853 1.1 christos if test -z "$haveit"; then 12854 1.1 christos if test -d "$additional_libdir"; then 12855 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 12856 1.1 christos fi 12857 1.1 christos fi 12858 1.1 christos haveit= 12859 1.1 christos for x in $LDFLAGS $LTLIBINTL; do 12860 1.1 christos 12861 1.1 christos acl_save_prefix="$prefix" 12862 1.1 christos prefix="$acl_final_prefix" 12863 1.1 christos acl_save_exec_prefix="$exec_prefix" 12864 1.1 christos exec_prefix="$acl_final_exec_prefix" 12865 1.1 christos eval x=\"$x\" 12866 1.1 christos exec_prefix="$acl_save_exec_prefix" 12867 1.1 christos prefix="$acl_save_prefix" 12868 1.1 christos 12869 1.1 christos if test "X$x" = "X-L$additional_libdir"; then 12870 1.1 christos haveit=yes 12871 1.1 christos break 12872 1.1 christos fi 12873 1.1 christos done 12874 1.1 christos if test -z "$haveit"; then 12875 1.1 christos if test -d "$additional_libdir"; then 12876 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 12877 1.1 christos fi 12878 1.1 christos fi 12879 1.1 christos fi 12880 1.1 christos fi 12881 1.1 christos ;; 12882 1.1 christos -R*) 12883 1.1 christos dir=`echo "X$dep" | sed -e 's/^X-R//'` 12884 1.1 christos if test "$enable_rpath" != no; then 12885 1.1 christos haveit= 12886 1.1 christos for x in $rpathdirs; do 12887 1.1 christos if test "X$x" = "X$dir"; then 12888 1.1 christos haveit=yes 12889 1.1 christos break 12890 1.1 christos fi 12891 1.1 christos done 12892 1.1 christos if test -z "$haveit"; then 12893 1.1 christos rpathdirs="$rpathdirs $dir" 12894 1.1 christos fi 12895 1.1 christos haveit= 12896 1.1 christos for x in $ltrpathdirs; do 12897 1.1 christos if test "X$x" = "X$dir"; then 12898 1.1 christos haveit=yes 12899 1.1 christos break 12900 1.1 christos fi 12901 1.1 christos done 12902 1.1 christos if test -z "$haveit"; then 12903 1.1 christos ltrpathdirs="$ltrpathdirs $dir" 12904 1.1 christos fi 12905 1.1 christos fi 12906 1.1 christos ;; 12907 1.1 christos -l*) 12908 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12909 1.1 christos ;; 12910 1.1 christos *.la) 12911 1.1 christos names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12912 1.1 christos ;; 12913 1.1 christos *) 12914 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 12915 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 12916 1.1 christos ;; 12917 1.1 christos esac 12918 1.1 christos done 12919 1.1 christos fi 12920 1.1 christos else 12921 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 12922 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 12923 1.1 christos fi 12924 1.1 christos fi 12925 1.1 christos fi 12926 1.1 christos done 12927 1.1 christos done 12928 1.1 christos if test "X$rpathdirs" != "X"; then 12929 1.1 christos if test -n "$hardcode_libdir_separator"; then 12930 1.1 christos alldirs= 12931 1.1 christos for found_dir in $rpathdirs; do 12932 1.1 christos alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 12933 1.1 christos done 12934 1.1 christos acl_save_libdir="$libdir" 12935 1.1 christos libdir="$alldirs" 12936 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\" 12937 1.1 christos libdir="$acl_save_libdir" 12938 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 12939 1.1 christos else 12940 1.1 christos for found_dir in $rpathdirs; do 12941 1.1 christos acl_save_libdir="$libdir" 12942 1.1 christos libdir="$found_dir" 12943 1.1 christos eval flag=\"$hardcode_libdir_flag_spec\" 12944 1.1 christos libdir="$acl_save_libdir" 12945 1.1 christos LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 12946 1.1 christos done 12947 1.1 christos fi 12948 1.1 christos fi 12949 1.1 christos if test "X$ltrpathdirs" != "X"; then 12950 1.1 christos for found_dir in $ltrpathdirs; do 12951 1.1 christos LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 12952 1.1 christos done 12953 1.1 christos fi 12954 1.1 christos 12955 1.1 christos echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 12956 1.1 christos echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 12957 1.1 christos if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then 12958 1.1 christos echo $ECHO_N "(cached) $ECHO_C" >&6 12959 1.1 christos else 12960 1.1 christos gt_save_CPPFLAGS="$CPPFLAGS" 12961 1.1 christos CPPFLAGS="$CPPFLAGS $INCINTL" 12962 1.1 christos gt_save_LIBS="$LIBS" 12963 1.1 christos LIBS="$LIBS $LIBINTL" 12964 1.1 christos cat >conftest.$ac_ext <<_ACEOF 12965 1.1 christos /* confdefs.h. */ 12966 1.1 christos _ACEOF 12967 1.1 christos cat confdefs.h >>conftest.$ac_ext 12968 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 12969 1.1 christos /* end confdefs.h. */ 12970 1.1 christos #include <libintl.h> 12971 1.1 christos extern int _nl_msg_cat_cntr; 12972 1.1 christos extern 12973 1.1 christos #ifdef __cplusplus 12974 1.1 christos "C" 12975 1.1 christos #endif 12976 1.1 christos const char *_nl_expand_alias (); 12977 1.1 christos int 12978 1.1 christos main () 12979 1.1 christos { 12980 1.1 christos bindtextdomain ("", ""); 12981 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 12982 1.1 christos ; 12983 1.1 christos return 0; 12984 1.1 christos } 12985 1.1 christos _ACEOF 12986 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 12987 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12988 1.1 christos (eval $ac_link) 2>conftest.er1 12989 1.1 christos ac_status=$? 12990 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 12991 1.1 christos rm -f conftest.er1 12992 1.1 christos cat conftest.err >&5 12993 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 12994 1.1 christos (exit $ac_status); } && 12995 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 12996 1.1 christos || test ! -s conftest.err' 12997 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12998 1.1 christos (eval $ac_try) 2>&5 12999 1.1 christos ac_status=$? 13000 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13001 1.1 christos (exit $ac_status); }; } && 13002 1.1 christos { ac_try='test -s conftest$ac_exeext' 13003 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13004 1.1 christos (eval $ac_try) 2>&5 13005 1.1 christos ac_status=$? 13006 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13007 1.1 christos (exit $ac_status); }; }; then 13008 1.1 christos gt_cv_func_gnugettext1_libintl=yes 13009 1.1 christos else 13010 1.1 christos echo "$as_me: failed program was:" >&5 13011 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 13012 1.1 christos 13013 1.1 christos gt_cv_func_gnugettext1_libintl=no 13014 1.1 christos fi 13015 1.1 christos rm -f conftest.err conftest.$ac_objext \ 13016 1.1 christos conftest$ac_exeext conftest.$ac_ext 13017 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 13018 1.1 christos LIBS="$LIBS $LIBICONV" 13019 1.1 christos cat >conftest.$ac_ext <<_ACEOF 13020 1.1 christos /* confdefs.h. */ 13021 1.1 christos _ACEOF 13022 1.1 christos cat confdefs.h >>conftest.$ac_ext 13023 1.1 christos cat >>conftest.$ac_ext <<_ACEOF 13024 1.1 christos /* end confdefs.h. */ 13025 1.1 christos #include <libintl.h> 13026 1.1 christos extern int _nl_msg_cat_cntr; 13027 1.1 christos extern 13028 1.1 christos #ifdef __cplusplus 13029 1.1 christos "C" 13030 1.1 christos #endif 13031 1.1 christos const char *_nl_expand_alias (); 13032 1.1 christos int 13033 1.1 christos main () 13034 1.1 christos { 13035 1.1 christos bindtextdomain ("", ""); 13036 1.1 christos return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 13037 1.1 christos ; 13038 1.1 christos return 0; 13039 1.1 christos } 13040 1.1 christos _ACEOF 13041 1.1 christos rm -f conftest.$ac_objext conftest$ac_exeext 13042 1.1 christos if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13043 1.1 christos (eval $ac_link) 2>conftest.er1 13044 1.1 christos ac_status=$? 13045 1.1 christos grep -v '^ *+' conftest.er1 >conftest.err 13046 1.1 christos rm -f conftest.er1 13047 1.1 christos cat conftest.err >&5 13048 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13049 1.1 christos (exit $ac_status); } && 13050 1.1 christos { ac_try='test -z "$ac_c_werror_flag" 13051 1.1 christos || test ! -s conftest.err' 13052 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13053 1.1 christos (eval $ac_try) 2>&5 13054 1.1 christos ac_status=$? 13055 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13056 1.1 christos (exit $ac_status); }; } && 13057 1.1 christos { ac_try='test -s conftest$ac_exeext' 13058 1.1 christos { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13059 1.1 christos (eval $ac_try) 2>&5 13060 1.1 christos ac_status=$? 13061 1.1 christos echo "$as_me:$LINENO: \$? = $ac_status" >&5 13062 1.1 christos (exit $ac_status); }; }; then 13063 1.1 christos LIBINTL="$LIBINTL $LIBICONV" 13064 1.1 christos LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13065 1.1 christos gt_cv_func_gnugettext1_libintl=yes 13066 1.1 christos 13067 1.1 christos else 13068 1.1 christos echo "$as_me: failed program was:" >&5 13069 1.1 christos sed 's/^/| /' conftest.$ac_ext >&5 13070 1.1 christos 13071 1.1 christos fi 13072 1.1 christos rm -f conftest.err conftest.$ac_objext \ 13073 1.1 christos conftest$ac_exeext conftest.$ac_ext 13074 1.1 christos fi 13075 1.1 christos CPPFLAGS="$gt_save_CPPFLAGS" 13076 1.1 christos LIBS="$gt_save_LIBS" 13077 1.1 christos fi 13078 1.1 christos echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 13079 1.1 christos echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 13080 1.1 christos fi 13081 1.1 christos 13082 1.1 christos if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 13083 1.1 christos || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 13084 1.1 christos && test "$PACKAGE" != gettext-runtime \ 13085 1.1 christos && test "$PACKAGE" != gettext-tools; }; then 13086 1.1 christos gt_use_preinstalled_gnugettext=yes 13087 1.1 christos else 13088 1.1 christos LIBINTL= 13089 1.1 christos LTLIBINTL= 13090 1.1 christos INCINTL= 13091 1.1 christos fi 13092 1.1 christos 13093 1.1 christos 13094 1.1 christos if test "$gt_use_preinstalled_gnugettext" != "yes"; then 13095 1.1 christos nls_cv_use_gnu_gettext=yes 13096 1.1 christos fi 13097 1.1 christos fi 13098 1.1 christos 13099 1.1 christos if test "$nls_cv_use_gnu_gettext" = "yes"; then 13100 1.1 christos BUILD_INCLUDED_LIBINTL=yes 13101 1.1 christos USE_INCLUDED_LIBINTL=yes 13102 1.1 christos LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 13103 1.1 christos LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 13104 1.1 christos LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 13105 1.1 christos fi 13106 1.1 christos 13107 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13108 1.1 christos || test "$nls_cv_use_gnu_gettext" = "yes"; then 13109 1.1 christos CATOBJEXT=.gmo 13110 1.1 christos fi 13111 1.1 christos 13112 1.1 christos 13113 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13114 1.1 christos || test "$nls_cv_use_gnu_gettext" = "yes"; then 13115 1.1 christos 13116 1.1 christos cat >>confdefs.h <<\_ACEOF 13117 1.1 christos #define ENABLE_NLS 1 13118 1.1 christos _ACEOF 13119 1.1 christos 13120 1.1 christos else 13121 1.1 christos USE_NLS=no 13122 1.1 christos fi 13123 1.1 christos fi 13124 1.1 christos 13125 1.1 christos echo "$as_me:$LINENO: checking whether to use NLS" >&5 13126 1.1 christos echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 13127 1.1 christos echo "$as_me:$LINENO: result: $USE_NLS" >&5 13128 1.1 christos echo "${ECHO_T}$USE_NLS" >&6 13129 1.1 christos if test "$USE_NLS" = "yes"; then 13130 1.1 christos echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 13131 1.1 christos echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 13132 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13133 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 13134 1.1 christos gt_source="external libintl" 13135 1.1 christos else 13136 1.1 christos gt_source="libc" 13137 1.1 christos fi 13138 1.1 christos else 13139 1.1 christos gt_source="included intl directory" 13140 1.1 christos fi 13141 1.1 christos echo "$as_me:$LINENO: result: $gt_source" >&5 13142 1.1 christos echo "${ECHO_T}$gt_source" >&6 13143 1.1 christos fi 13144 1.1 christos 13145 1.1 christos if test "$USE_NLS" = "yes"; then 13146 1.1 christos 13147 1.1 christos if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13148 1.1 christos if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 13149 1.1 christos echo "$as_me:$LINENO: checking how to link with libintl" >&5 13150 1.1 christos echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 13151 1.1 christos echo "$as_me:$LINENO: result: $LIBINTL" >&5 13152 1.1 christos echo "${ECHO_T}$LIBINTL" >&6 13153 1.1 christos 13154 1.1 christos for element in $INCINTL; do 13155 1.1 christos haveit= 13156 1.1 christos for x in $CPPFLAGS; do 13157 1.1 christos 13158 1.1 christos acl_save_prefix="$prefix" 13159 1.1 christos prefix="$acl_final_prefix" 13160 1.1 christos acl_save_exec_prefix="$exec_prefix" 13161 1.1 christos exec_prefix="$acl_final_exec_prefix" 13162 1.1 christos eval x=\"$x\" 13163 1.1 christos exec_prefix="$acl_save_exec_prefix" 13164 1.1 christos prefix="$acl_save_prefix" 13165 1.1 christos 13166 1.1 christos if test "X$x" = "X$element"; then 13167 1.1 christos haveit=yes 13168 1.1 christos break 13169 1.1 christos fi 13170 1.1 christos done 13171 1.1 christos if test -z "$haveit"; then 13172 1.1 christos CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13173 1.1 christos fi 13174 1.1 christos done 13175 1.1 christos 13176 1.1 christos fi 13177 1.1 christos 13178 1.1 christos 13179 1.1 christos cat >>confdefs.h <<\_ACEOF 13180 1.1 christos #define HAVE_GETTEXT 1 13181 1.1 christos _ACEOF 13182 1.1 christos 13183 1.1 christos 13184 1.1 christos cat >>confdefs.h <<\_ACEOF 13185 1.1 christos #define HAVE_DCGETTEXT 1 13186 1.1 christos _ACEOF 13187 1.1 christos 13188 1.1 christos fi 13189 1.1 christos 13190 1.1 christos POSUB=po 13191 1.1 christos fi 13192 1.1 christos 13193 1.1 christos 13194 1.1 christos if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 13195 1.1 christos BUILD_INCLUDED_LIBINTL=yes 13196 1.1 christos fi 13197 1.1 christos 13198 1.1 christos 13199 1.1 christos 13200 1.1 christos 13201 1.1 christos 13202 1.1 christos nls_cv_header_intl= 13203 1.1 christos nls_cv_header_libgt= 13204 1.1 christos 13205 1.1 christos DATADIRNAME=share 13206 1.1 christos 13207 1.1 christos 13208 1.1 christos INSTOBJEXT=.mo 13209 1.1 christos 13210 1.1 christos 13211 1.1 christos GENCAT=gencat 13212 1.1 christos 13213 1.1 christos 13214 1.1 christos if test "$USE_INCLUDED_LIBINTL" = yes; then 13215 1.1 christos INTLOBJS="\$(GETTOBJS)" 13216 1.1 christos fi 13217 1.1 christos 13218 1.1 christos 13219 1.1 christos INTL_LIBTOOL_SUFFIX_PREFIX= 13220 1.1 christos 13221 1.1 christos 13222 1.1 christos 13223 1.1 christos INTLLIBS="$LIBINTL" 13224 1.1 christos 13225 1.1 christos 13226 1.1 christos 13227 1.1 christos 13228 1.1 christos 13229 1.1 christos 13230 1.1 christos 13231 1.1 christos ac_config_files="$ac_config_files Makefile doc/Makefile info/Makefile intl/Makefile lib/Makefile m4/Makefile makeinfo/Makefile makeinfo/tests/Makefile po/Makefile.in util/Makefile" 13232 1.1 christos 13233 1.1 christos cat >confcache <<\_ACEOF 13234 1.1 christos # This file is a shell script that caches the results of configure 13235 1.1 christos # tests run on this system so they can be shared between configure 13236 1.1 christos # scripts and configure runs, see configure's option --config-cache. 13237 1.1 christos # It is not useful on other systems. If it contains results you don't 13238 1.1 christos # want to keep, you may remove or edit it. 13239 1.1 christos # 13240 1.1 christos # config.status only pays attention to the cache file if you give it 13241 1.1 christos # the --recheck option to rerun configure. 13242 1.1 christos # 13243 1.1 christos # `ac_cv_env_foo' variables (set or unset) will be overridden when 13244 1.1 christos # loading this file, other *unset* `ac_cv_foo' will be assigned the 13245 1.1 christos # following values. 13246 1.1 christos 13247 1.1 christos _ACEOF 13248 1.1 christos 13249 1.1 christos # The following way of writing the cache mishandles newlines in values, 13250 1.1 christos # but we know of no workaround that is simple, portable, and efficient. 13251 1.1 christos # So, don't put newlines in cache variables' values. 13252 1.1 christos # Ultrix sh set writes to stderr and can't be redirected directly, 13253 1.1 christos # and sets the high bit in the cache file unless we assign to the vars. 13254 1.1 christos { 13255 1.1 christos (set) 2>&1 | 13256 1.1 christos case `(ac_space=' '; set | grep ac_space) 2>&1` in 13257 1.1 christos *ac_space=\ *) 13258 1.1 christos # `set' does not quote correctly, so add quotes (double-quote 13259 1.1 christos # substitution turns \\\\ into \\, and sed turns \\ into \). 13260 1.1 christos sed -n \ 13261 1.1 christos "s/'/'\\\\''/g; 13262 1.1 christos s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13263 1.1 christos ;; 13264 1.1 christos *) 13265 1.1 christos # `set' quotes correctly as required by POSIX, so do not add quotes. 13266 1.1 christos sed -n \ 13267 1.1 christos "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 13268 1.1 christos ;; 13269 1.1 christos esac; 13270 1.1 christos } | 13271 1.1 christos sed ' 13272 1.1 christos t clear 13273 1.1 christos : clear 13274 1.1 christos s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13275 1.1 christos t end 13276 1.1 christos /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13277 1.1 christos : end' >>confcache 13278 1.1 christos if diff $cache_file confcache >/dev/null 2>&1; then :; else 13279 1.1 christos if test -w $cache_file; then 13280 1.1 christos test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 13281 1.1 christos cat confcache >$cache_file 13282 1.1 christos else 13283 1.1 christos echo "not updating unwritable cache $cache_file" 13284 1.1 christos fi 13285 1.1 christos fi 13286 1.1 christos rm -f confcache 13287 1.1 christos 13288 1.1 christos test "x$prefix" = xNONE && prefix=$ac_default_prefix 13289 1.1 christos # Let make expand exec_prefix. 13290 1.1 christos test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13291 1.1 christos 13292 1.1 christos # VPATH may cause trouble with some makes, so we remove $(srcdir), 13293 1.1 christos # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13294 1.1 christos # trailing colons and then remove the whole line if VPATH becomes empty 13295 1.1 christos # (actually we leave an empty line to preserve line numbers). 13296 1.1 christos if test "x$srcdir" = x.; then 13297 1.1 christos ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13298 1.1 christos s/:*\$(srcdir):*/:/; 13299 1.1 christos s/:*\${srcdir}:*/:/; 13300 1.1 christos s/:*@srcdir@:*/:/; 13301 1.1 christos s/^\([^=]*=[ ]*\):*/\1/; 13302 1.1 christos s/:*$//; 13303 1.1 christos s/^[^=]*=[ ]*$//; 13304 1.1 christos }' 13305 1.1 christos fi 13306 1.1 christos 13307 1.1 christos DEFS=-DHAVE_CONFIG_H 13308 1.1 christos 13309 1.1 christos ac_libobjs= 13310 1.1 christos ac_ltlibobjs= 13311 1.1 christos for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13312 1.1 christos # 1. Remove the extension, and $U if already installed. 13313 1.1 christos ac_i=`echo "$ac_i" | 13314 1.1 christos sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 13315 1.1 christos # 2. Add them. 13316 1.1 christos ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 13317 1.1 christos ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 13318 1.1 christos done 13319 1.1 christos LIBOBJS=$ac_libobjs 13320 1.1 christos 13321 1.1 christos LTLIBOBJS=$ac_ltlibobjs 13322 1.1 christos 13323 1.1 christos 13324 1.1 christos if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13325 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 13326 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13327 1.1 christos echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 13328 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13329 1.1 christos { (exit 1); exit 1; }; } 13330 1.1 christos fi 13331 1.1 christos if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13332 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 13333 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13334 1.1 christos echo "$as_me: error: conditional \"AMDEP\" was never defined. 13335 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13336 1.1 christos { (exit 1); exit 1; }; } 13337 1.1 christos fi 13338 1.1 christos if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13339 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 13340 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13341 1.1 christos echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 13342 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13343 1.1 christos { (exit 1); exit 1; }; } 13344 1.1 christos fi 13345 1.1 christos if test -z "${TOOLS_ONLY_TRUE}" && test -z "${TOOLS_ONLY_FALSE}"; then 13346 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"TOOLS_ONLY\" was never defined. 13347 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13348 1.1 christos echo "$as_me: error: conditional \"TOOLS_ONLY\" was never defined. 13349 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13350 1.1 christos { (exit 1); exit 1; }; } 13351 1.1 christos fi 13352 1.1 christos if test -z "${INSTALL_WARNINGS_TRUE}" && test -z "${INSTALL_WARNINGS_FALSE}"; then 13353 1.1 christos { { echo "$as_me:$LINENO: error: conditional \"INSTALL_WARNINGS\" was never defined. 13354 1.1 christos Usually this means the macro was only invoked conditionally." >&5 13355 1.1 christos echo "$as_me: error: conditional \"INSTALL_WARNINGS\" was never defined. 13356 1.1 christos Usually this means the macro was only invoked conditionally." >&2;} 13357 1.1 christos { (exit 1); exit 1; }; } 13358 1.1 christos fi 13359 1.1 christos 13360 1.1 christos : ${CONFIG_STATUS=./config.status} 13361 1.1 christos ac_clean_files_save=$ac_clean_files 13362 1.1 christos ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13363 1.1 christos { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13364 1.1 christos echo "$as_me: creating $CONFIG_STATUS" >&6;} 13365 1.1 christos cat >$CONFIG_STATUS <<_ACEOF 13366 1.1 christos #! $SHELL 13367 1.1 christos # Generated by $as_me. 13368 1.1 christos # Run this file to recreate the current configuration. 13369 1.1 christos # Compiler output produced by configure, useful for debugging 13370 1.1 christos # configure, is in config.log if it exists. 13371 1.1 christos 13372 1.1 christos debug=false 13373 1.1 christos ac_cs_recheck=false 13374 1.1 christos ac_cs_silent=false 13375 1.1 christos SHELL=\${CONFIG_SHELL-$SHELL} 13376 1.1 christos _ACEOF 13377 1.1 christos 13378 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 13379 1.1 christos ## --------------------- ## 13380 1.1 christos ## M4sh Initialization. ## 13381 1.1 christos ## --------------------- ## 13382 1.1 christos 13383 1.1 christos # Be Bourne compatible 13384 1.1 christos if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13385 1.1 christos emulate sh 13386 1.1 christos NULLCMD=: 13387 1.1 christos # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 13388 1.1 christos # is contrary to our usage. Disable this feature. 13389 1.1 christos alias -g '${1+"$@"}'='"$@"' 13390 1.1 christos elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 13391 1.1 christos set -o posix 13392 1.1 christos fi 13393 1.1 christos DUALCASE=1; export DUALCASE # for MKS sh 13394 1.1 christos 13395 1.1 christos # Support unset when possible. 13396 1.1 christos if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 13397 1.1 christos as_unset=unset 13398 1.1 christos else 13399 1.1 christos as_unset=false 13400 1.1 christos fi 13401 1.1 christos 13402 1.1 christos 13403 1.1 christos # Work around bugs in pre-3.0 UWIN ksh. 13404 1.1 christos $as_unset ENV MAIL MAILPATH 13405 1.1 christos PS1='$ ' 13406 1.1 christos PS2='> ' 13407 1.1 christos PS4='+ ' 13408 1.1 christos 13409 1.1 christos # NLS nuisances. 13410 1.1 christos for as_var in \ 13411 1.1 christos LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 13412 1.1 christos LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 13413 1.1 christos LC_TELEPHONE LC_TIME 13414 1.1 christos do 13415 1.1 christos if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 13416 1.1 christos eval $as_var=C; export $as_var 13417 1.1 christos else 13418 1.1 christos $as_unset $as_var 13419 1.1 christos fi 13420 1.1 christos done 13421 1.1 christos 13422 1.1 christos # Required to use basename. 13423 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 13424 1.1 christos as_expr=expr 13425 1.1 christos else 13426 1.1 christos as_expr=false 13427 1.1 christos fi 13428 1.1 christos 13429 1.1 christos if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 13430 1.1 christos as_basename=basename 13431 1.1 christos else 13432 1.1 christos as_basename=false 13433 1.1 christos fi 13434 1.1 christos 13435 1.1 christos 13436 1.1 christos # Name of the executable. 13437 1.1 christos as_me=`$as_basename "$0" || 13438 1.1 christos $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13439 1.1 christos X"$0" : 'X\(//\)$' \| \ 13440 1.1 christos X"$0" : 'X\(/\)$' \| \ 13441 1.1 christos . : '\(.\)' 2>/dev/null || 13442 1.1 christos echo X/"$0" | 13443 1.1 christos sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 13444 1.1 christos /^X\/\(\/\/\)$/{ s//\1/; q; } 13445 1.1 christos /^X\/\(\/\).*/{ s//\1/; q; } 13446 1.1 christos s/.*/./; q'` 13447 1.1 christos 13448 1.1 christos 13449 1.1 christos # PATH needs CR, and LINENO needs CR and PATH. 13450 1.1 christos # Avoid depending upon Character Ranges. 13451 1.1 christos as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13452 1.1 christos as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13453 1.1 christos as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13454 1.1 christos as_cr_digits='0123456789' 13455 1.1 christos as_cr_alnum=$as_cr_Letters$as_cr_digits 13456 1.1 christos 13457 1.1 christos # The user is always right. 13458 1.1 christos if test "${PATH_SEPARATOR+set}" != set; then 13459 1.1 christos echo "#! /bin/sh" >conf$$.sh 13460 1.1 christos echo "exit 0" >>conf$$.sh 13461 1.1 christos chmod +x conf$$.sh 13462 1.1 christos if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13463 1.1 christos PATH_SEPARATOR=';' 13464 1.1 christos else 13465 1.1 christos PATH_SEPARATOR=: 13466 1.1 christos fi 13467 1.1 christos rm -f conf$$.sh 13468 1.1 christos fi 13469 1.1 christos 13470 1.1 christos 13471 1.1 christos as_lineno_1=$LINENO 13472 1.1 christos as_lineno_2=$LINENO 13473 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13474 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 13475 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" || { 13476 1.1 christos # Find who we are. Look in the path if we contain no path at all 13477 1.1 christos # relative or not. 13478 1.1 christos case $0 in 13479 1.1 christos *[\\/]* ) as_myself=$0 ;; 13480 1.1 christos *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13481 1.1 christos for as_dir in $PATH 13482 1.1 christos do 13483 1.1 christos IFS=$as_save_IFS 13484 1.1 christos test -z "$as_dir" && as_dir=. 13485 1.1 christos test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13486 1.1 christos done 13487 1.1 christos 13488 1.1 christos ;; 13489 1.1 christos esac 13490 1.1 christos # We did not find ourselves, most probably we were run as `sh COMMAND' 13491 1.1 christos # in which case we are not to be found in the path. 13492 1.1 christos if test "x$as_myself" = x; then 13493 1.1 christos as_myself=$0 13494 1.1 christos fi 13495 1.1 christos if test ! -f "$as_myself"; then 13496 1.1 christos { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 13497 1.1 christos echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 13498 1.1 christos { (exit 1); exit 1; }; } 13499 1.1 christos fi 13500 1.1 christos case $CONFIG_SHELL in 13501 1.1 christos '') 13502 1.1 christos as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13503 1.1 christos for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 13504 1.1 christos do 13505 1.1 christos IFS=$as_save_IFS 13506 1.1 christos test -z "$as_dir" && as_dir=. 13507 1.1 christos for as_base in sh bash ksh sh5; do 13508 1.1 christos case $as_dir in 13509 1.1 christos /*) 13510 1.1 christos if ("$as_dir/$as_base" -c ' 13511 1.1 christos as_lineno_1=$LINENO 13512 1.1 christos as_lineno_2=$LINENO 13513 1.1 christos as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 13514 1.1 christos test "x$as_lineno_1" != "x$as_lineno_2" && 13515 1.1 christos test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 13516 1.1 christos $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 13517 1.1 christos $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 13518 1.1 christos CONFIG_SHELL=$as_dir/$as_base 13519 1.1 christos export CONFIG_SHELL 13520 1.1 christos exec "$CONFIG_SHELL" "$0" ${1+"$@"} 13521 1.1 christos fi;; 13522 1.1 christos esac 13523 1.1 christos done 13524 1.1 christos done 13525 1.1 christos ;; 13526 1.1 christos esac 13527 1.1 christos 13528 1.1 christos # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 13529 1.1 christos # uniformly replaced by the line number. The first 'sed' inserts a 13530 1.1 christos # line-number line before each line; the second 'sed' does the real 13531 1.1 christos # work. The second script uses 'N' to pair each line-number line 13532 1.1 christos # with the numbered line, and appends trailing '-' during 13533 1.1 christos # substitution so that $LINENO is not a special case at line end. 13534 1.1 christos # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 13535 1.1 christos # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 13536 1.1 christos sed '=' <$as_myself | 13537 1.1 christos sed ' 13538 1.1 christos N 13539 1.1 christos s,$,-, 13540 1.1 christos : loop 13541 1.1 christos s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 13542 1.1 christos t loop 13543 1.1 christos s,-$,, 13544 1.1 christos s,^['$as_cr_digits']*\n,, 13545 1.1 christos ' >$as_me.lineno && 13546 1.1 christos chmod +x $as_me.lineno || 13547 1.1 christos { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 13548 1.1 christos echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 13549 1.1 christos { (exit 1); exit 1; }; } 13550 1.1 christos 13551 1.1 christos # Don't try to exec as it changes $[0], causing all sort of problems 13552 1.1 christos # (the dirname of $[0] is not the place where we might find the 13553 1.1 christos # original and so on. Autoconf is especially sensible to this). 13554 1.1 christos . ./$as_me.lineno 13555 1.1 christos # Exit status is that of the last command. 13556 1.1 christos exit 13557 1.1 christos } 13558 1.1 christos 13559 1.1 christos 13560 1.1 christos case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 13561 1.1 christos *c*,-n*) ECHO_N= ECHO_C=' 13562 1.1 christos ' ECHO_T=' ' ;; 13563 1.1 christos *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 13564 1.1 christos *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 13565 1.1 christos esac 13566 1.1 christos 13567 1.1 christos if expr a : '\(a\)' >/dev/null 2>&1; then 13568 1.1 christos as_expr=expr 13569 1.1 christos else 13570 1.1 christos as_expr=false 13571 1.1 christos fi 13572 1.1 christos 13573 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 13574 1.1 christos echo >conf$$.file 13575 1.1 christos if ln -s conf$$.file conf$$ 2>/dev/null; then 13576 1.1 christos # We could just check for DJGPP; but this test a) works b) is more generic 13577 1.1 christos # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 13578 1.1 christos if test -f conf$$.exe; then 13579 1.1 christos # Don't use ln at all; we don't have any links 13580 1.1 christos as_ln_s='cp -p' 13581 1.1 christos else 13582 1.1 christos as_ln_s='ln -s' 13583 1.1 christos fi 13584 1.1 christos elif ln conf$$.file conf$$ 2>/dev/null; then 13585 1.1 christos as_ln_s=ln 13586 1.1 christos else 13587 1.1 christos as_ln_s='cp -p' 13588 1.1 christos fi 13589 1.1 christos rm -f conf$$ conf$$.exe conf$$.file 13590 1.1 christos 13591 1.1 christos if mkdir -p . 2>/dev/null; then 13592 1.1 christos as_mkdir_p=: 13593 1.1 christos else 13594 1.1 christos test -d ./-p && rmdir ./-p 13595 1.1 christos as_mkdir_p=false 13596 1.1 christos fi 13597 1.1 christos 13598 1.1 christos as_executable_p="test -f" 13599 1.1 christos 13600 1.1 christos # Sed expression to map a string onto a valid CPP name. 13601 1.1 christos as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13602 1.1 christos 13603 1.1 christos # Sed expression to map a string onto a valid variable name. 13604 1.1 christos as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13605 1.1 christos 13606 1.1 christos 13607 1.1 christos # IFS 13608 1.1 christos # We need space, tab and new line, in precisely that order. 13609 1.1 christos as_nl=' 13610 1.1 christos ' 13611 1.1 christos IFS=" $as_nl" 13612 1.1 christos 13613 1.1 christos # CDPATH. 13614 1.1 christos $as_unset CDPATH 13615 1.1 christos 13616 1.1 christos exec 6>&1 13617 1.1 christos 13618 1.1 christos # Open the log real soon, to keep \$[0] and so on meaningful, and to 13619 1.1 christos # report actual input values of CONFIG_FILES etc. instead of their 13620 1.1 christos # values after options handling. Logging --version etc. is OK. 13621 1.1 christos exec 5>>config.log 13622 1.1 christos { 13623 1.1 christos echo 13624 1.1 christos sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13625 1.1 christos ## Running $as_me. ## 13626 1.1 christos _ASBOX 13627 1.1 christos } >&5 13628 1.1 christos cat >&5 <<_CSEOF 13629 1.1 christos 13630 1.1 christos This file was extended by GNU Texinfo $as_me 4.8, which was 13631 1.1 christos generated by GNU Autoconf 2.59. Invocation command line was 13632 1.1 christos 13633 1.1 christos CONFIG_FILES = $CONFIG_FILES 13634 1.1 christos CONFIG_HEADERS = $CONFIG_HEADERS 13635 1.1 christos CONFIG_LINKS = $CONFIG_LINKS 13636 1.1 christos CONFIG_COMMANDS = $CONFIG_COMMANDS 13637 1.1 christos $ $0 $@ 13638 1.1 christos 13639 1.1 christos _CSEOF 13640 1.1 christos echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 13641 1.1 christos echo >&5 13642 1.1 christos _ACEOF 13643 1.1 christos 13644 1.1 christos # Files that config.status was made for. 13645 1.1 christos if test -n "$ac_config_files"; then 13646 1.1 christos echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 13647 1.1 christos fi 13648 1.1 christos 13649 1.1 christos if test -n "$ac_config_headers"; then 13650 1.1 christos echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 13651 1.1 christos fi 13652 1.1 christos 13653 1.1 christos if test -n "$ac_config_links"; then 13654 1.1 christos echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 13655 1.1 christos fi 13656 1.1 christos 13657 1.1 christos if test -n "$ac_config_commands"; then 13658 1.1 christos echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 13659 1.1 christos fi 13660 1.1 christos 13661 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 13662 1.1 christos 13663 1.1 christos ac_cs_usage="\ 13664 1.1 christos \`$as_me' instantiates files from templates according to the 13665 1.1 christos current configuration. 13666 1.1 christos 13667 1.1 christos Usage: $0 [OPTIONS] [FILE]... 13668 1.1 christos 13669 1.1 christos -h, --help print this help, then exit 13670 1.1 christos -V, --version print version number, then exit 13671 1.1 christos -q, --quiet do not print progress messages 13672 1.1 christos -d, --debug don't remove temporary files 13673 1.1 christos --recheck update $as_me by reconfiguring in the same conditions 13674 1.1 christos --file=FILE[:TEMPLATE] 13675 1.1 christos instantiate the configuration file FILE 13676 1.1 christos --header=FILE[:TEMPLATE] 13677 1.1 christos instantiate the configuration header FILE 13678 1.1 christos 13679 1.1 christos Configuration files: 13680 1.1 christos $config_files 13681 1.1 christos 13682 1.1 christos Configuration headers: 13683 1.1 christos $config_headers 13684 1.1 christos 13685 1.1 christos Configuration commands: 13686 1.1 christos $config_commands 13687 1.1 christos 13688 1.1 christos Report bugs to <bug-autoconf@gnu.org>." 13689 1.1 christos _ACEOF 13690 1.1 christos 13691 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 13692 1.1 christos ac_cs_version="\\ 13693 1.1 christos GNU Texinfo config.status 4.8 13694 1.1 christos configured by $0, generated by GNU Autoconf 2.59, 13695 1.1 christos with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 13696 1.1 christos 13697 1.1 christos Copyright (C) 2003 Free Software Foundation, Inc. 13698 1.1 christos This config.status script is free software; the Free Software Foundation 13699 1.1 christos gives unlimited permission to copy, distribute and modify it." 13700 1.1 christos srcdir=$srcdir 13701 1.1 christos INSTALL="$INSTALL" 13702 1.1 christos _ACEOF 13703 1.1 christos 13704 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 13705 1.1 christos # If no file are specified by the user, then we need to provide default 13706 1.1 christos # value. By we need to know if files were specified by the user. 13707 1.1 christos ac_need_defaults=: 13708 1.1 christos while test $# != 0 13709 1.1 christos do 13710 1.1 christos case $1 in 13711 1.1 christos --*=*) 13712 1.1 christos ac_option=`expr "x$1" : 'x\([^=]*\)='` 13713 1.1 christos ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 13714 1.1 christos ac_shift=: 13715 1.1 christos ;; 13716 1.1 christos -*) 13717 1.1 christos ac_option=$1 13718 1.1 christos ac_optarg=$2 13719 1.1 christos ac_shift=shift 13720 1.1 christos ;; 13721 1.1 christos *) # This is not an option, so the user has probably given explicit 13722 1.1 christos # arguments. 13723 1.1 christos ac_option=$1 13724 1.1 christos ac_need_defaults=false;; 13725 1.1 christos esac 13726 1.1 christos 13727 1.1 christos case $ac_option in 13728 1.1 christos # Handling of the options. 13729 1.1 christos _ACEOF 13730 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 13731 1.1 christos -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13732 1.1 christos ac_cs_recheck=: ;; 13733 1.1 christos --version | --vers* | -V ) 13734 1.1 christos echo "$ac_cs_version"; exit 0 ;; 13735 1.1 christos --he | --h) 13736 1.1 christos # Conflict between --help and --header 13737 1.1 christos { { echo "$as_me:$LINENO: error: ambiguous option: $1 13738 1.1 christos Try \`$0 --help' for more information." >&5 13739 1.1 christos echo "$as_me: error: ambiguous option: $1 13740 1.1 christos Try \`$0 --help' for more information." >&2;} 13741 1.1 christos { (exit 1); exit 1; }; };; 13742 1.1 christos --help | --hel | -h ) 13743 1.1 christos echo "$ac_cs_usage"; exit 0 ;; 13744 1.1 christos --debug | --d* | -d ) 13745 1.1 christos debug=: ;; 13746 1.1 christos --file | --fil | --fi | --f ) 13747 1.1 christos $ac_shift 13748 1.1 christos CONFIG_FILES="$CONFIG_FILES $ac_optarg" 13749 1.1 christos ac_need_defaults=false;; 13750 1.1 christos --header | --heade | --head | --hea ) 13751 1.1 christos $ac_shift 13752 1.1 christos CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 13753 1.1 christos ac_need_defaults=false;; 13754 1.1 christos -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13755 1.1 christos | -silent | --silent | --silen | --sile | --sil | --si | --s) 13756 1.1 christos ac_cs_silent=: ;; 13757 1.1 christos 13758 1.1 christos # This is an error. 13759 1.1 christos -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 13760 1.1 christos Try \`$0 --help' for more information." >&5 13761 1.1 christos echo "$as_me: error: unrecognized option: $1 13762 1.1 christos Try \`$0 --help' for more information." >&2;} 13763 1.1 christos { (exit 1); exit 1; }; } ;; 13764 1.1 christos 13765 1.1 christos *) ac_config_targets="$ac_config_targets $1" ;; 13766 1.1 christos 13767 1.1 christos esac 13768 1.1 christos shift 13769 1.1 christos done 13770 1.1 christos 13771 1.1 christos ac_configure_extra_args= 13772 1.1 christos 13773 1.1 christos if $ac_cs_silent; then 13774 1.1 christos exec 6>/dev/null 13775 1.1 christos ac_configure_extra_args="$ac_configure_extra_args --silent" 13776 1.1 christos fi 13777 1.1 christos 13778 1.1 christos _ACEOF 13779 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 13780 1.1 christos if \$ac_cs_recheck; then 13781 1.1 christos echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 13782 1.1 christos exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13783 1.1 christos fi 13784 1.1 christos 13785 1.1 christos _ACEOF 13786 1.1 christos 13787 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 13788 1.1 christos # 13789 1.1 christos # INIT-COMMANDS section. 13790 1.1 christos # 13791 1.1 christos 13792 1.1 christos AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13793 1.1 christos # Capture the value of obsolete ALL_LINGUAS because we need it to compute 13794 1.1 christos # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 13795 1.1 christos # from automake. 13796 1.1 christos eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 13797 1.1 christos # Capture the value of LINGUAS because we need it to compute CATALOGS. 13798 1.1 christos LINGUAS="${LINGUAS-%UNSET%}" 13799 1.1 christos 13800 1.1 christos 13801 1.1 christos _ACEOF 13802 1.1 christos 13803 1.1 christos 13804 1.1 christos 13805 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 13806 1.1 christos for ac_config_target in $ac_config_targets 13807 1.1 christos do 13808 1.1 christos case "$ac_config_target" in 13809 1.1 christos # Handling of arguments. 13810 1.1 christos "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13811 1.1 christos "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13812 1.1 christos "info/Makefile" ) CONFIG_FILES="$CONFIG_FILES info/Makefile" ;; 13813 1.1 christos "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 13814 1.1 christos "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 13815 1.1 christos "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 13816 1.1 christos "makeinfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/Makefile" ;; 13817 1.1 christos "makeinfo/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES makeinfo/tests/Makefile" ;; 13818 1.1 christos "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 13819 1.1 christos "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; 13820 1.1 christos "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13821 1.1 christos "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 13822 1.1 christos "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 13823 1.1 christos *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13824 1.1 christos echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13825 1.1 christos { (exit 1); exit 1; }; };; 13826 1.1 christos esac 13827 1.1 christos done 13828 1.1 christos 13829 1.1 christos # If the user did not use the arguments to specify the items to instantiate, 13830 1.1 christos # then the envvar interface is used. Set only those that are not. 13831 1.1 christos # We use the long form for the default assignment because of an extremely 13832 1.1 christos # bizarre bug on SunOS 4.1.3. 13833 1.1 christos if $ac_need_defaults; then 13834 1.1 christos test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13835 1.1 christos test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13836 1.1 christos test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13837 1.1 christos fi 13838 1.1 christos 13839 1.1 christos # Have a temporary directory for convenience. Make it in the build tree 13840 1.1 christos # simply because there is no reason to put it here, and in addition, 13841 1.1 christos # creating and moving files from /tmp can sometimes cause problems. 13842 1.1 christos # Create a temporary directory, and hook for its removal unless debugging. 13843 1.1 christos $debug || 13844 1.1 christos { 13845 1.1 christos trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 13846 1.1 christos trap '{ (exit 1); exit 1; }' 1 2 13 15 13847 1.1 christos } 13848 1.1 christos 13849 1.1 christos # Create a (secure) tmp directory for tmp files. 13850 1.1 christos 13851 1.1 christos { 13852 1.1 christos tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 13853 1.1 christos test -n "$tmp" && test -d "$tmp" 13854 1.1 christos } || 13855 1.1 christos { 13856 1.1 christos tmp=./confstat$$-$RANDOM 13857 1.1 christos (umask 077 && mkdir $tmp) 13858 1.1 christos } || 13859 1.1 christos { 13860 1.1 christos echo "$me: cannot create a temporary directory in ." >&2 13861 1.1 christos { (exit 1); exit 1; } 13862 1.1 christos } 13863 1.1 christos 13864 1.1 christos _ACEOF 13865 1.1 christos 13866 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 13867 1.1 christos 13868 1.1 christos # 13869 1.1 christos # CONFIG_FILES section. 13870 1.1 christos # 13871 1.1 christos 13872 1.1 christos # No need to generate the scripts if there are no CONFIG_FILES. 13873 1.1 christos # This happens for instance when ./config.status config.h 13874 1.1 christos if test -n "\$CONFIG_FILES"; then 13875 1.1 christos # Protect against being on the right side of a sed subst in config.status. 13876 1.1 christos sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 13877 1.1 christos s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 13878 1.1 christos s,@SHELL@,$SHELL,;t t 13879 1.1 christos s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 13880 1.1 christos s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 13881 1.1 christos s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 13882 1.1 christos s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 13883 1.1 christos s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 13884 1.1 christos s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 13885 1.1 christos s,@exec_prefix@,$exec_prefix,;t t 13886 1.1 christos s,@prefix@,$prefix,;t t 13887 1.1 christos s,@program_transform_name@,$program_transform_name,;t t 13888 1.1 christos s,@bindir@,$bindir,;t t 13889 1.1 christos s,@sbindir@,$sbindir,;t t 13890 1.1 christos s,@libexecdir@,$libexecdir,;t t 13891 1.1 christos s,@datadir@,$datadir,;t t 13892 1.1 christos s,@sysconfdir@,$sysconfdir,;t t 13893 1.1 christos s,@sharedstatedir@,$sharedstatedir,;t t 13894 1.1 christos s,@localstatedir@,$localstatedir,;t t 13895 1.1 christos s,@libdir@,$libdir,;t t 13896 1.1 christos s,@includedir@,$includedir,;t t 13897 1.1 christos s,@oldincludedir@,$oldincludedir,;t t 13898 1.1 christos s,@infodir@,$infodir,;t t 13899 1.1 christos s,@mandir@,$mandir,;t t 13900 1.1 christos s,@build_alias@,$build_alias,;t t 13901 1.1 christos s,@host_alias@,$host_alias,;t t 13902 1.1 christos s,@target_alias@,$target_alias,;t t 13903 1.1 christos s,@DEFS@,$DEFS,;t t 13904 1.1 christos s,@ECHO_C@,$ECHO_C,;t t 13905 1.1 christos s,@ECHO_N@,$ECHO_N,;t t 13906 1.1 christos s,@ECHO_T@,$ECHO_T,;t t 13907 1.1 christos s,@LIBS@,$LIBS,;t t 13908 1.1 christos s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 13909 1.1 christos s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 13910 1.1 christos s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13911 1.1 christos s,@CYGPATH_W@,$CYGPATH_W,;t t 13912 1.1 christos s,@PACKAGE@,$PACKAGE,;t t 13913 1.1 christos s,@VERSION@,$VERSION,;t t 13914 1.1 christos s,@ACLOCAL@,$ACLOCAL,;t t 13915 1.1 christos s,@AUTOCONF@,$AUTOCONF,;t t 13916 1.1 christos s,@AUTOMAKE@,$AUTOMAKE,;t t 13917 1.1 christos s,@AUTOHEADER@,$AUTOHEADER,;t t 13918 1.1 christos s,@MAKEINFO@,$MAKEINFO,;t t 13919 1.1 christos s,@install_sh@,$install_sh,;t t 13920 1.1 christos s,@STRIP@,$STRIP,;t t 13921 1.1 christos s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 13922 1.1 christos s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 13923 1.1 christos s,@mkdir_p@,$mkdir_p,;t t 13924 1.1 christos s,@AWK@,$AWK,;t t 13925 1.1 christos s,@SET_MAKE@,$SET_MAKE,;t t 13926 1.1 christos s,@am__leading_dot@,$am__leading_dot,;t t 13927 1.1 christos s,@AMTAR@,$AMTAR,;t t 13928 1.1 christos s,@am__tar@,$am__tar,;t t 13929 1.1 christos s,@am__untar@,$am__untar,;t t 13930 1.1 christos s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 13931 1.1 christos s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 13932 1.1 christos s,@MAINT@,$MAINT,;t t 13933 1.1 christos s,@CC@,$CC,;t t 13934 1.1 christos s,@CFLAGS@,$CFLAGS,;t t 13935 1.1 christos s,@LDFLAGS@,$LDFLAGS,;t t 13936 1.1 christos s,@CPPFLAGS@,$CPPFLAGS,;t t 13937 1.1 christos s,@ac_ct_CC@,$ac_ct_CC,;t t 13938 1.1 christos s,@EXEEXT@,$EXEEXT,;t t 13939 1.1 christos s,@OBJEXT@,$OBJEXT,;t t 13940 1.1 christos s,@DEPDIR@,$DEPDIR,;t t 13941 1.1 christos s,@am__include@,$am__include,;t t 13942 1.1 christos s,@am__quote@,$am__quote,;t t 13943 1.1 christos s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 13944 1.1 christos s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 13945 1.1 christos s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 13946 1.1 christos s,@CCDEPMODE@,$CCDEPMODE,;t t 13947 1.1 christos s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 13948 1.1 christos s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 13949 1.1 christos s,@CPP@,$CPP,;t t 13950 1.1 christos s,@EGREP@,$EGREP,;t t 13951 1.1 christos s,@RANLIB@,$RANLIB,;t t 13952 1.1 christos s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 13953 1.1 christos s,@HELP2MAN@,$HELP2MAN,;t t 13954 1.1 christos s,@ALLOCA@,$ALLOCA,;t t 13955 1.1 christos s,@LIBOBJS@,$LIBOBJS,;t t 13956 1.1 christos s,@build@,$build,;t t 13957 1.1 christos s,@build_cpu@,$build_cpu,;t t 13958 1.1 christos s,@build_vendor@,$build_vendor,;t t 13959 1.1 christos s,@build_os@,$build_os,;t t 13960 1.1 christos s,@native_tools@,$native_tools,;t t 13961 1.1 christos s,@TOOLS_ONLY_TRUE@,$TOOLS_ONLY_TRUE,;t t 13962 1.1 christos s,@TOOLS_ONLY_FALSE@,$TOOLS_ONLY_FALSE,;t t 13963 1.1 christos s,@TERMLIBS@,$TERMLIBS,;t t 13964 1.1 christos s,@host@,$host,;t t 13965 1.1 christos s,@host_cpu@,$host_cpu,;t t 13966 1.1 christos s,@host_vendor@,$host_vendor,;t t 13967 1.1 christos s,@host_os@,$host_os,;t t 13968 1.1 christos s,@INSTALL_WARNINGS_TRUE@,$INSTALL_WARNINGS_TRUE,;t t 13969 1.1 christos s,@INSTALL_WARNINGS_FALSE@,$INSTALL_WARNINGS_FALSE,;t t 13970 1.1 christos s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t 13971 1.1 christos s,@USE_NLS@,$USE_NLS,;t t 13972 1.1 christos s,@MSGFMT@,$MSGFMT,;t t 13973 1.1 christos s,@GMSGFMT@,$GMSGFMT,;t t 13974 1.1 christos s,@XGETTEXT@,$XGETTEXT,;t t 13975 1.1 christos s,@MSGMERGE@,$MSGMERGE,;t t 13976 1.1 christos s,@GLIBC21@,$GLIBC21,;t t 13977 1.1 christos s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t 13978 1.1 christos s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t 13979 1.1 christos s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t 13980 1.1 christos s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t 13981 1.1 christos s,@LIBICONV@,$LIBICONV,;t t 13982 1.1 christos s,@LTLIBICONV@,$LTLIBICONV,;t t 13983 1.1 christos s,@INTLBISON@,$INTLBISON,;t t 13984 1.1 christos s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t 13985 1.1 christos s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t 13986 1.1 christos s,@CATOBJEXT@,$CATOBJEXT,;t t 13987 1.1 christos s,@DATADIRNAME@,$DATADIRNAME,;t t 13988 1.1 christos s,@INSTOBJEXT@,$INSTOBJEXT,;t t 13989 1.1 christos s,@GENCAT@,$GENCAT,;t t 13990 1.1 christos s,@INTLOBJS@,$INTLOBJS,;t t 13991 1.1 christos s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t 13992 1.1 christos s,@INTLLIBS@,$INTLLIBS,;t t 13993 1.1 christos s,@LIBINTL@,$LIBINTL,;t t 13994 1.1 christos s,@LTLIBINTL@,$LTLIBINTL,;t t 13995 1.1 christos s,@POSUB@,$POSUB,;t t 13996 1.1 christos s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13997 1.1 christos CEOF 13998 1.1 christos 13999 1.1 christos _ACEOF 14000 1.1 christos 14001 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14002 1.1 christos # Split the substitutions into bite-sized pieces for seds with 14003 1.1 christos # small command number limits, like on Digital OSF/1 and HP-UX. 14004 1.1 christos ac_max_sed_lines=48 14005 1.1 christos ac_sed_frag=1 # Number of current file. 14006 1.1 christos ac_beg=1 # First line for current file. 14007 1.1 christos ac_end=$ac_max_sed_lines # Line after last line for current file. 14008 1.1 christos ac_more_lines=: 14009 1.1 christos ac_sed_cmds= 14010 1.1 christos while $ac_more_lines; do 14011 1.1 christos if test $ac_beg -gt 1; then 14012 1.1 christos sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14013 1.1 christos else 14014 1.1 christos sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 14015 1.1 christos fi 14016 1.1 christos if test ! -s $tmp/subs.frag; then 14017 1.1 christos ac_more_lines=false 14018 1.1 christos else 14019 1.1 christos # The purpose of the label and of the branching condition is to 14020 1.1 christos # speed up the sed processing (if there are no `@' at all, there 14021 1.1 christos # is no need to browse any of the substitutions). 14022 1.1 christos # These are the two extra sed commands mentioned above. 14023 1.1 christos (echo ':t 14024 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 14025 1.1 christos if test -z "$ac_sed_cmds"; then 14026 1.1 christos ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 14027 1.1 christos else 14028 1.1 christos ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 14029 1.1 christos fi 14030 1.1 christos ac_sed_frag=`expr $ac_sed_frag + 1` 14031 1.1 christos ac_beg=$ac_end 14032 1.1 christos ac_end=`expr $ac_end + $ac_max_sed_lines` 14033 1.1 christos fi 14034 1.1 christos done 14035 1.1 christos if test -z "$ac_sed_cmds"; then 14036 1.1 christos ac_sed_cmds=cat 14037 1.1 christos fi 14038 1.1 christos fi # test -n "$CONFIG_FILES" 14039 1.1 christos 14040 1.1 christos _ACEOF 14041 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14042 1.1 christos for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 14043 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14044 1.1 christos case $ac_file in 14045 1.1 christos - | *:- | *:-:* ) # input from stdin 14046 1.1 christos cat >$tmp/stdin 14047 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14048 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14049 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14050 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14051 1.1 christos * ) ac_file_in=$ac_file.in ;; 14052 1.1 christos esac 14053 1.1 christos 14054 1.1 christos # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 14055 1.1 christos ac_dir=`(dirname "$ac_file") 2>/dev/null || 14056 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14057 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \ 14058 1.1 christos X"$ac_file" : 'X\(//\)$' \| \ 14059 1.1 christos X"$ac_file" : 'X\(/\)' \| \ 14060 1.1 christos . : '\(.\)' 2>/dev/null || 14061 1.1 christos echo X"$ac_file" | 14062 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14063 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14064 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14065 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14066 1.1 christos s/.*/./; q'` 14067 1.1 christos { if $as_mkdir_p; then 14068 1.1 christos mkdir -p "$ac_dir" 14069 1.1 christos else 14070 1.1 christos as_dir="$ac_dir" 14071 1.1 christos as_dirs= 14072 1.1 christos while test ! -d "$as_dir"; do 14073 1.1 christos as_dirs="$as_dir $as_dirs" 14074 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null || 14075 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14076 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 14077 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 14078 1.1 christos X"$as_dir" : 'X\(/\)' \| \ 14079 1.1 christos . : '\(.\)' 2>/dev/null || 14080 1.1 christos echo X"$as_dir" | 14081 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14082 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14083 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14084 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14085 1.1 christos s/.*/./; q'` 14086 1.1 christos done 14087 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs 14088 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14089 1.1 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14090 1.1 christos { (exit 1); exit 1; }; }; } 14091 1.1 christos 14092 1.1 christos ac_builddir=. 14093 1.1 christos 14094 1.1 christos if test "$ac_dir" != .; then 14095 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14096 1.1 christos # A "../" for each directory in $ac_dir_suffix. 14097 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14098 1.1 christos else 14099 1.1 christos ac_dir_suffix= ac_top_builddir= 14100 1.1 christos fi 14101 1.1 christos 14102 1.1 christos case $srcdir in 14103 1.1 christos .) # No --srcdir option. We are building in place. 14104 1.1 christos ac_srcdir=. 14105 1.1 christos if test -z "$ac_top_builddir"; then 14106 1.1 christos ac_top_srcdir=. 14107 1.1 christos else 14108 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14109 1.1 christos fi ;; 14110 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path. 14111 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 14112 1.1 christos ac_top_srcdir=$srcdir ;; 14113 1.1 christos *) # Relative path. 14114 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14115 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;; 14116 1.1 christos esac 14117 1.1 christos 14118 1.1 christos # Do not use `cd foo && pwd` to compute absolute paths, because 14119 1.1 christos # the directories may not exist. 14120 1.1 christos case `pwd` in 14121 1.1 christos .) ac_abs_builddir="$ac_dir";; 14122 1.1 christos *) 14123 1.1 christos case "$ac_dir" in 14124 1.1 christos .) ac_abs_builddir=`pwd`;; 14125 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14126 1.1 christos *) ac_abs_builddir=`pwd`/"$ac_dir";; 14127 1.1 christos esac;; 14128 1.1 christos esac 14129 1.1 christos case $ac_abs_builddir in 14130 1.1 christos .) ac_abs_top_builddir=${ac_top_builddir}.;; 14131 1.1 christos *) 14132 1.1 christos case ${ac_top_builddir}. in 14133 1.1 christos .) ac_abs_top_builddir=$ac_abs_builddir;; 14134 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14135 1.1 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14136 1.1 christos esac;; 14137 1.1 christos esac 14138 1.1 christos case $ac_abs_builddir in 14139 1.1 christos .) ac_abs_srcdir=$ac_srcdir;; 14140 1.1 christos *) 14141 1.1 christos case $ac_srcdir in 14142 1.1 christos .) ac_abs_srcdir=$ac_abs_builddir;; 14143 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14144 1.1 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14145 1.1 christos esac;; 14146 1.1 christos esac 14147 1.1 christos case $ac_abs_builddir in 14148 1.1 christos .) ac_abs_top_srcdir=$ac_top_srcdir;; 14149 1.1 christos *) 14150 1.1 christos case $ac_top_srcdir in 14151 1.1 christos .) ac_abs_top_srcdir=$ac_abs_builddir;; 14152 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14153 1.1 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14154 1.1 christos esac;; 14155 1.1 christos esac 14156 1.1 christos 14157 1.1 christos 14158 1.1 christos case $INSTALL in 14159 1.1 christos [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14160 1.1 christos *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 14161 1.1 christos esac 14162 1.1 christos 14163 1.1 christos if test x"$ac_file" != x-; then 14164 1.1 christos { echo "$as_me:$LINENO: creating $ac_file" >&5 14165 1.1 christos echo "$as_me: creating $ac_file" >&6;} 14166 1.1 christos rm -f "$ac_file" 14167 1.1 christos fi 14168 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't 14169 1.1 christos # use $as_me), people would be surprised to read: 14170 1.1 christos # /* config.h. Generated by config.status. */ 14171 1.1 christos if test x"$ac_file" = x-; then 14172 1.1 christos configure_input= 14173 1.1 christos else 14174 1.1 christos configure_input="$ac_file. " 14175 1.1 christos fi 14176 1.1 christos configure_input=$configure_input"Generated from `echo $ac_file_in | 14177 1.1 christos sed 's,.*/,,'` by configure." 14178 1.1 christos 14179 1.1 christos # First look for the input files in the build tree, otherwise in the 14180 1.1 christos # src tree. 14181 1.1 christos ac_file_inputs=`IFS=: 14182 1.1 christos for f in $ac_file_in; do 14183 1.1 christos case $f in 14184 1.1 christos -) echo $tmp/stdin ;; 14185 1.1 christos [\\/$]*) 14186 1.1 christos # Absolute (can't be DOS-style, as IFS=:) 14187 1.1 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14188 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 14189 1.1 christos { (exit 1); exit 1; }; } 14190 1.1 christos echo "$f";; 14191 1.1 christos *) # Relative 14192 1.1 christos if test -f "$f"; then 14193 1.1 christos # Build tree 14194 1.1 christos echo "$f" 14195 1.1 christos elif test -f "$srcdir/$f"; then 14196 1.1 christos # Source tree 14197 1.1 christos echo "$srcdir/$f" 14198 1.1 christos else 14199 1.1 christos # /dev/null tree 14200 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14201 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 14202 1.1 christos { (exit 1); exit 1; }; } 14203 1.1 christos fi;; 14204 1.1 christos esac 14205 1.1 christos done` || { (exit 1); exit 1; } 14206 1.1 christos _ACEOF 14207 1.1 christos cat >>$CONFIG_STATUS <<_ACEOF 14208 1.1 christos sed "$ac_vpsub 14209 1.1 christos $extrasub 14210 1.1 christos _ACEOF 14211 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14212 1.1 christos :t 14213 1.1 christos /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14214 1.1 christos s,@configure_input@,$configure_input,;t t 14215 1.1 christos s,@srcdir@,$ac_srcdir,;t t 14216 1.1 christos s,@abs_srcdir@,$ac_abs_srcdir,;t t 14217 1.1 christos s,@top_srcdir@,$ac_top_srcdir,;t t 14218 1.1 christos s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 14219 1.1 christos s,@builddir@,$ac_builddir,;t t 14220 1.1 christos s,@abs_builddir@,$ac_abs_builddir,;t t 14221 1.1 christos s,@top_builddir@,$ac_top_builddir,;t t 14222 1.1 christos s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 14223 1.1 christos s,@INSTALL@,$ac_INSTALL,;t t 14224 1.1 christos " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 14225 1.1 christos rm -f $tmp/stdin 14226 1.1 christos if test x"$ac_file" != x-; then 14227 1.1 christos mv $tmp/out $ac_file 14228 1.1 christos else 14229 1.1 christos cat $tmp/out 14230 1.1 christos rm -f $tmp/out 14231 1.1 christos fi 14232 1.1 christos 14233 1.1 christos done 14234 1.1 christos _ACEOF 14235 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14236 1.1 christos 14237 1.1 christos # 14238 1.1 christos # CONFIG_HEADER section. 14239 1.1 christos # 14240 1.1 christos 14241 1.1 christos # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 14242 1.1 christos # NAME is the cpp macro being defined and VALUE is the value it is being given. 14243 1.1 christos # 14244 1.1 christos # ac_d sets the value in "#define NAME VALUE" lines. 14245 1.1 christos ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 14246 1.1 christos ac_dB='[ ].*$,\1#\2' 14247 1.1 christos ac_dC=' ' 14248 1.1 christos ac_dD=',;t' 14249 1.1 christos # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 14250 1.1 christos ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 14251 1.1 christos ac_uB='$,\1#\2define\3' 14252 1.1 christos ac_uC=' ' 14253 1.1 christos ac_uD=',;t' 14254 1.1 christos 14255 1.1 christos for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 14256 1.1 christos # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 14257 1.1 christos case $ac_file in 14258 1.1 christos - | *:- | *:-:* ) # input from stdin 14259 1.1 christos cat >$tmp/stdin 14260 1.1 christos ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14261 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14262 1.1 christos *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 14263 1.1 christos ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 14264 1.1 christos * ) ac_file_in=$ac_file.in ;; 14265 1.1 christos esac 14266 1.1 christos 14267 1.1 christos test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 14268 1.1 christos echo "$as_me: creating $ac_file" >&6;} 14269 1.1 christos 14270 1.1 christos # First look for the input files in the build tree, otherwise in the 14271 1.1 christos # src tree. 14272 1.1 christos ac_file_inputs=`IFS=: 14273 1.1 christos for f in $ac_file_in; do 14274 1.1 christos case $f in 14275 1.1 christos -) echo $tmp/stdin ;; 14276 1.1 christos [\\/$]*) 14277 1.1 christos # Absolute (can't be DOS-style, as IFS=:) 14278 1.1 christos test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14279 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 14280 1.1 christos { (exit 1); exit 1; }; } 14281 1.1 christos # Do quote $f, to prevent DOS paths from being IFS'd. 14282 1.1 christos echo "$f";; 14283 1.1 christos *) # Relative 14284 1.1 christos if test -f "$f"; then 14285 1.1 christos # Build tree 14286 1.1 christos echo "$f" 14287 1.1 christos elif test -f "$srcdir/$f"; then 14288 1.1 christos # Source tree 14289 1.1 christos echo "$srcdir/$f" 14290 1.1 christos else 14291 1.1 christos # /dev/null tree 14292 1.1 christos { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 14293 1.1 christos echo "$as_me: error: cannot find input file: $f" >&2;} 14294 1.1 christos { (exit 1); exit 1; }; } 14295 1.1 christos fi;; 14296 1.1 christos esac 14297 1.1 christos done` || { (exit 1); exit 1; } 14298 1.1 christos # Remove the trailing spaces. 14299 1.1 christos sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 14300 1.1 christos 14301 1.1 christos _ACEOF 14302 1.1 christos 14303 1.1 christos # Transform confdefs.h into two sed scripts, `conftest.defines' and 14304 1.1 christos # `conftest.undefs', that substitutes the proper values into 14305 1.1 christos # config.h.in to produce config.h. The first handles `#define' 14306 1.1 christos # templates, and the second `#undef' templates. 14307 1.1 christos # And first: Protect against being on the right side of a sed subst in 14308 1.1 christos # config.status. Protect against being in an unquoted here document 14309 1.1 christos # in config.status. 14310 1.1 christos rm -f conftest.defines conftest.undefs 14311 1.1 christos # Using a here document instead of a string reduces the quoting nightmare. 14312 1.1 christos # Putting comments in sed scripts is not portable. 14313 1.1 christos # 14314 1.1 christos # `end' is used to avoid that the second main sed command (meant for 14315 1.1 christos # 0-ary CPP macros) applies to n-ary macro definitions. 14316 1.1 christos # See the Autoconf documentation for `clear'. 14317 1.1 christos cat >confdef2sed.sed <<\_ACEOF 14318 1.1 christos s/[\\&,]/\\&/g 14319 1.1 christos s,[\\$`],\\&,g 14320 1.1 christos t clear 14321 1.1 christos : clear 14322 1.1 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 14323 1.1 christos t end 14324 1.1 christos s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 14325 1.1 christos : end 14326 1.1 christos _ACEOF 14327 1.1 christos # If some macros were called several times there might be several times 14328 1.1 christos # the same #defines, which is useless. Nevertheless, we may not want to 14329 1.1 christos # sort them, since we want the *last* AC-DEFINE to be honored. 14330 1.1 christos uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 14331 1.1 christos sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 14332 1.1 christos rm -f confdef2sed.sed 14333 1.1 christos 14334 1.1 christos # This sed command replaces #undef with comments. This is necessary, for 14335 1.1 christos # example, in the case of _POSIX_SOURCE, which is predefined and required 14336 1.1 christos # on some systems where configure will not decide to define it. 14337 1.1 christos cat >>conftest.undefs <<\_ACEOF 14338 1.1 christos s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 14339 1.1 christos _ACEOF 14340 1.1 christos 14341 1.1 christos # Break up conftest.defines because some shells have a limit on the size 14342 1.1 christos # of here documents, and old seds have small limits too (100 cmds). 14343 1.1 christos echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 14344 1.1 christos echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 14345 1.1 christos echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 14346 1.1 christos echo ' :' >>$CONFIG_STATUS 14347 1.1 christos rm -f conftest.tail 14348 1.1 christos while grep . conftest.defines >/dev/null 14349 1.1 christos do 14350 1.1 christos # Write a limited-size here document to $tmp/defines.sed. 14351 1.1 christos echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 14352 1.1 christos # Speed up: don't consider the non `#define' lines. 14353 1.1 christos echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 14354 1.1 christos # Work around the forget-to-reset-the-flag bug. 14355 1.1 christos echo 't clr' >>$CONFIG_STATUS 14356 1.1 christos echo ': clr' >>$CONFIG_STATUS 14357 1.1 christos sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 14358 1.1 christos echo 'CEOF 14359 1.1 christos sed -f $tmp/defines.sed $tmp/in >$tmp/out 14360 1.1 christos rm -f $tmp/in 14361 1.1 christos mv $tmp/out $tmp/in 14362 1.1 christos ' >>$CONFIG_STATUS 14363 1.1 christos sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 14364 1.1 christos rm -f conftest.defines 14365 1.1 christos mv conftest.tail conftest.defines 14366 1.1 christos done 14367 1.1 christos rm -f conftest.defines 14368 1.1 christos echo ' fi # grep' >>$CONFIG_STATUS 14369 1.1 christos echo >>$CONFIG_STATUS 14370 1.1 christos 14371 1.1 christos # Break up conftest.undefs because some shells have a limit on the size 14372 1.1 christos # of here documents, and old seds have small limits too (100 cmds). 14373 1.1 christos echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 14374 1.1 christos rm -f conftest.tail 14375 1.1 christos while grep . conftest.undefs >/dev/null 14376 1.1 christos do 14377 1.1 christos # Write a limited-size here document to $tmp/undefs.sed. 14378 1.1 christos echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 14379 1.1 christos # Speed up: don't consider the non `#undef' 14380 1.1 christos echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 14381 1.1 christos # Work around the forget-to-reset-the-flag bug. 14382 1.1 christos echo 't clr' >>$CONFIG_STATUS 14383 1.1 christos echo ': clr' >>$CONFIG_STATUS 14384 1.1 christos sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 14385 1.1 christos echo 'CEOF 14386 1.1 christos sed -f $tmp/undefs.sed $tmp/in >$tmp/out 14387 1.1 christos rm -f $tmp/in 14388 1.1 christos mv $tmp/out $tmp/in 14389 1.1 christos ' >>$CONFIG_STATUS 14390 1.1 christos sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 14391 1.1 christos rm -f conftest.undefs 14392 1.1 christos mv conftest.tail conftest.undefs 14393 1.1 christos done 14394 1.1 christos rm -f conftest.undefs 14395 1.1 christos 14396 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14397 1.1 christos # Let's still pretend it is `configure' which instantiates (i.e., don't 14398 1.1 christos # use $as_me), people would be surprised to read: 14399 1.1 christos # /* config.h. Generated by config.status. */ 14400 1.1 christos if test x"$ac_file" = x-; then 14401 1.1 christos echo "/* Generated by configure. */" >$tmp/config.h 14402 1.1 christos else 14403 1.1 christos echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 14404 1.1 christos fi 14405 1.1 christos cat $tmp/in >>$tmp/config.h 14406 1.1 christos rm -f $tmp/in 14407 1.1 christos if test x"$ac_file" != x-; then 14408 1.1 christos if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 14409 1.1 christos { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14410 1.1 christos echo "$as_me: $ac_file is unchanged" >&6;} 14411 1.1 christos else 14412 1.1 christos ac_dir=`(dirname "$ac_file") 2>/dev/null || 14413 1.1 christos $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14414 1.1 christos X"$ac_file" : 'X\(//\)[^/]' \| \ 14415 1.1 christos X"$ac_file" : 'X\(//\)$' \| \ 14416 1.1 christos X"$ac_file" : 'X\(/\)' \| \ 14417 1.1 christos . : '\(.\)' 2>/dev/null || 14418 1.1 christos echo X"$ac_file" | 14419 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14420 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14421 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14422 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14423 1.1 christos s/.*/./; q'` 14424 1.1 christos { if $as_mkdir_p; then 14425 1.1 christos mkdir -p "$ac_dir" 14426 1.1 christos else 14427 1.1 christos as_dir="$ac_dir" 14428 1.1 christos as_dirs= 14429 1.1 christos while test ! -d "$as_dir"; do 14430 1.1 christos as_dirs="$as_dir $as_dirs" 14431 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null || 14432 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14433 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 14434 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 14435 1.1 christos X"$as_dir" : 'X\(/\)' \| \ 14436 1.1 christos . : '\(.\)' 2>/dev/null || 14437 1.1 christos echo X"$as_dir" | 14438 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14439 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14440 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14441 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14442 1.1 christos s/.*/./; q'` 14443 1.1 christos done 14444 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs 14445 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14446 1.1 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14447 1.1 christos { (exit 1); exit 1; }; }; } 14448 1.1 christos 14449 1.1 christos rm -f $ac_file 14450 1.1 christos mv $tmp/config.h $ac_file 14451 1.1 christos fi 14452 1.1 christos else 14453 1.1 christos cat $tmp/config.h 14454 1.1 christos rm -f $tmp/config.h 14455 1.1 christos fi 14456 1.1 christos # Compute $ac_file's index in $config_headers. 14457 1.1 christos _am_stamp_count=1 14458 1.1 christos for _am_header in $config_headers :; do 14459 1.1 christos case $_am_header in 14460 1.1 christos $ac_file | $ac_file:* ) 14461 1.1 christos break ;; 14462 1.1 christos * ) 14463 1.1 christos _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14464 1.1 christos esac 14465 1.1 christos done 14466 1.1 christos echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 14467 1.1 christos $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14468 1.1 christos X$ac_file : 'X\(//\)[^/]' \| \ 14469 1.1 christos X$ac_file : 'X\(//\)$' \| \ 14470 1.1 christos X$ac_file : 'X\(/\)' \| \ 14471 1.1 christos . : '\(.\)' 2>/dev/null || 14472 1.1 christos echo X$ac_file | 14473 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14474 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14475 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14476 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14477 1.1 christos s/.*/./; q'`/stamp-h$_am_stamp_count 14478 1.1 christos done 14479 1.1 christos _ACEOF 14480 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14481 1.1 christos 14482 1.1 christos # 14483 1.1 christos # CONFIG_COMMANDS section. 14484 1.1 christos # 14485 1.1 christos for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 14486 1.1 christos ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 14487 1.1 christos ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 14488 1.1 christos ac_dir=`(dirname "$ac_dest") 2>/dev/null || 14489 1.1 christos $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14490 1.1 christos X"$ac_dest" : 'X\(//\)[^/]' \| \ 14491 1.1 christos X"$ac_dest" : 'X\(//\)$' \| \ 14492 1.1 christos X"$ac_dest" : 'X\(/\)' \| \ 14493 1.1 christos . : '\(.\)' 2>/dev/null || 14494 1.1 christos echo X"$ac_dest" | 14495 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14496 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14497 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14498 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14499 1.1 christos s/.*/./; q'` 14500 1.1 christos { if $as_mkdir_p; then 14501 1.1 christos mkdir -p "$ac_dir" 14502 1.1 christos else 14503 1.1 christos as_dir="$ac_dir" 14504 1.1 christos as_dirs= 14505 1.1 christos while test ! -d "$as_dir"; do 14506 1.1 christos as_dirs="$as_dir $as_dirs" 14507 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null || 14508 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14509 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 14510 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 14511 1.1 christos X"$as_dir" : 'X\(/\)' \| \ 14512 1.1 christos . : '\(.\)' 2>/dev/null || 14513 1.1 christos echo X"$as_dir" | 14514 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14515 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14516 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14517 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14518 1.1 christos s/.*/./; q'` 14519 1.1 christos done 14520 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs 14521 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 14522 1.1 christos echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 14523 1.1 christos { (exit 1); exit 1; }; }; } 14524 1.1 christos 14525 1.1 christos ac_builddir=. 14526 1.1 christos 14527 1.1 christos if test "$ac_dir" != .; then 14528 1.1 christos ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 14529 1.1 christos # A "../" for each directory in $ac_dir_suffix. 14530 1.1 christos ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 14531 1.1 christos else 14532 1.1 christos ac_dir_suffix= ac_top_builddir= 14533 1.1 christos fi 14534 1.1 christos 14535 1.1 christos case $srcdir in 14536 1.1 christos .) # No --srcdir option. We are building in place. 14537 1.1 christos ac_srcdir=. 14538 1.1 christos if test -z "$ac_top_builddir"; then 14539 1.1 christos ac_top_srcdir=. 14540 1.1 christos else 14541 1.1 christos ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 14542 1.1 christos fi ;; 14543 1.1 christos [\\/]* | ?:[\\/]* ) # Absolute path. 14544 1.1 christos ac_srcdir=$srcdir$ac_dir_suffix; 14545 1.1 christos ac_top_srcdir=$srcdir ;; 14546 1.1 christos *) # Relative path. 14547 1.1 christos ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 14548 1.1 christos ac_top_srcdir=$ac_top_builddir$srcdir ;; 14549 1.1 christos esac 14550 1.1 christos 14551 1.1 christos # Do not use `cd foo && pwd` to compute absolute paths, because 14552 1.1 christos # the directories may not exist. 14553 1.1 christos case `pwd` in 14554 1.1 christos .) ac_abs_builddir="$ac_dir";; 14555 1.1 christos *) 14556 1.1 christos case "$ac_dir" in 14557 1.1 christos .) ac_abs_builddir=`pwd`;; 14558 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 14559 1.1 christos *) ac_abs_builddir=`pwd`/"$ac_dir";; 14560 1.1 christos esac;; 14561 1.1 christos esac 14562 1.1 christos case $ac_abs_builddir in 14563 1.1 christos .) ac_abs_top_builddir=${ac_top_builddir}.;; 14564 1.1 christos *) 14565 1.1 christos case ${ac_top_builddir}. in 14566 1.1 christos .) ac_abs_top_builddir=$ac_abs_builddir;; 14567 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 14568 1.1 christos *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 14569 1.1 christos esac;; 14570 1.1 christos esac 14571 1.1 christos case $ac_abs_builddir in 14572 1.1 christos .) ac_abs_srcdir=$ac_srcdir;; 14573 1.1 christos *) 14574 1.1 christos case $ac_srcdir in 14575 1.1 christos .) ac_abs_srcdir=$ac_abs_builddir;; 14576 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 14577 1.1 christos *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 14578 1.1 christos esac;; 14579 1.1 christos esac 14580 1.1 christos case $ac_abs_builddir in 14581 1.1 christos .) ac_abs_top_srcdir=$ac_top_srcdir;; 14582 1.1 christos *) 14583 1.1 christos case $ac_top_srcdir in 14584 1.1 christos .) ac_abs_top_srcdir=$ac_abs_builddir;; 14585 1.1 christos [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 14586 1.1 christos *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 14587 1.1 christos esac;; 14588 1.1 christos esac 14589 1.1 christos 14590 1.1 christos 14591 1.1 christos { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 14592 1.1 christos echo "$as_me: executing $ac_dest commands" >&6;} 14593 1.1 christos case $ac_dest in 14594 1.1 christos depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 14595 1.1 christos # Strip MF so we end up with the name of the file. 14596 1.1 christos mf=`echo "$mf" | sed -e 's/:.*$//'` 14597 1.1 christos # Check whether this is an Automake generated Makefile or not. 14598 1.1 christos # We used to match only the files named `Makefile.in', but 14599 1.1 christos # some people rename them; so instead we look at the file content. 14600 1.1 christos # Grep'ing the first line is not enough: some people post-process 14601 1.1 christos # each Makefile.in and add a new line on top of each file to say so. 14602 1.1 christos # So let's grep whole file. 14603 1.1 christos if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 14604 1.1 christos dirpart=`(dirname "$mf") 2>/dev/null || 14605 1.1 christos $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14606 1.1 christos X"$mf" : 'X\(//\)[^/]' \| \ 14607 1.1 christos X"$mf" : 'X\(//\)$' \| \ 14608 1.1 christos X"$mf" : 'X\(/\)' \| \ 14609 1.1 christos . : '\(.\)' 2>/dev/null || 14610 1.1 christos echo X"$mf" | 14611 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14612 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14613 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14614 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14615 1.1 christos s/.*/./; q'` 14616 1.1 christos else 14617 1.1 christos continue 14618 1.1 christos fi 14619 1.1 christos # Extract the definition of DEPDIR, am__include, and am__quote 14620 1.1 christos # from the Makefile without running `make'. 14621 1.1 christos DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14622 1.1 christos test -z "$DEPDIR" && continue 14623 1.1 christos am__include=`sed -n 's/^am__include = //p' < "$mf"` 14624 1.1 christos test -z "am__include" && continue 14625 1.1 christos am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14626 1.1 christos # When using ansi2knr, U may be empty or an underscore; expand it 14627 1.1 christos U=`sed -n 's/^U = //p' < "$mf"` 14628 1.1 christos # Find all dependency output files, they are included files with 14629 1.1 christos # $(DEPDIR) in their names. We invoke sed twice because it is the 14630 1.1 christos # simplest approach to changing $(DEPDIR) to its actual value in the 14631 1.1 christos # expansion. 14632 1.1 christos for file in `sed -n " 14633 1.1 christos s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14634 1.1 christos sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14635 1.1 christos # Make sure the directory exists. 14636 1.1 christos test -f "$dirpart/$file" && continue 14637 1.1 christos fdir=`(dirname "$file") 2>/dev/null || 14638 1.1 christos $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14639 1.1 christos X"$file" : 'X\(//\)[^/]' \| \ 14640 1.1 christos X"$file" : 'X\(//\)$' \| \ 14641 1.1 christos X"$file" : 'X\(/\)' \| \ 14642 1.1 christos . : '\(.\)' 2>/dev/null || 14643 1.1 christos echo X"$file" | 14644 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14645 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14646 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14647 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14648 1.1 christos s/.*/./; q'` 14649 1.1 christos { if $as_mkdir_p; then 14650 1.1 christos mkdir -p $dirpart/$fdir 14651 1.1 christos else 14652 1.1 christos as_dir=$dirpart/$fdir 14653 1.1 christos as_dirs= 14654 1.1 christos while test ! -d "$as_dir"; do 14655 1.1 christos as_dirs="$as_dir $as_dirs" 14656 1.1 christos as_dir=`(dirname "$as_dir") 2>/dev/null || 14657 1.1 christos $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14658 1.1 christos X"$as_dir" : 'X\(//\)[^/]' \| \ 14659 1.1 christos X"$as_dir" : 'X\(//\)$' \| \ 14660 1.1 christos X"$as_dir" : 'X\(/\)' \| \ 14661 1.1 christos . : '\(.\)' 2>/dev/null || 14662 1.1 christos echo X"$as_dir" | 14663 1.1 christos sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 14664 1.1 christos /^X\(\/\/\)[^/].*/{ s//\1/; q; } 14665 1.1 christos /^X\(\/\/\)$/{ s//\1/; q; } 14666 1.1 christos /^X\(\/\).*/{ s//\1/; q; } 14667 1.1 christos s/.*/./; q'` 14668 1.1 christos done 14669 1.1 christos test ! -n "$as_dirs" || mkdir $as_dirs 14670 1.1 christos fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 14671 1.1 christos echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 14672 1.1 christos { (exit 1); exit 1; }; }; } 14673 1.1 christos 14674 1.1 christos # echo "creating $dirpart/$file" 14675 1.1 christos echo '# dummy' > "$dirpart/$file" 14676 1.1 christos done 14677 1.1 christos done 14678 1.1 christos ;; 14679 1.1 christos default-1 ) 14680 1.1 christos for ac_file in $CONFIG_FILES; do 14681 1.1 christos # Support "outfile[:infile[:infile...]]" 14682 1.1 christos case "$ac_file" in 14683 1.1 christos *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 14684 1.1 christos esac 14685 1.1 christos # PO directories have a Makefile.in generated from Makefile.in.in. 14686 1.1 christos case "$ac_file" in */Makefile.in) 14687 1.1 christos # Adjust a relative srcdir. 14688 1.1 christos ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 14689 1.1 christos ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 14690 1.1 christos ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 14691 1.1 christos # In autoconf-2.13 it is called $ac_given_srcdir. 14692 1.1 christos # In autoconf-2.50 it is called $srcdir. 14693 1.1 christos test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 14694 1.1 christos case "$ac_given_srcdir" in 14695 1.1 christos .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 14696 1.1 christos /*) top_srcdir="$ac_given_srcdir" ;; 14697 1.1 christos *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 14698 1.1 christos esac 14699 1.1 christos if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 14700 1.1 christos rm -f "$ac_dir/POTFILES" 14701 1.1 christos test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 14702 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" 14703 1.1 christos POMAKEFILEDEPS="POTFILES.in" 14704 1.1 christos # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 14705 1.1 christos # on $ac_dir but don't depend on user-specified configuration 14706 1.1 christos # parameters. 14707 1.1 christos if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 14708 1.1 christos # The LINGUAS file contains the set of available languages. 14709 1.1 christos if test -n "$OBSOLETE_ALL_LINGUAS"; then 14710 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" 14711 1.1 christos fi 14712 1.1 christos ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 14713 1.1 christos # Hide the ALL_LINGUAS assigment from automake. 14714 1.1 christos eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 14715 1.1 christos POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 14716 1.1 christos else 14717 1.1 christos # The set of available languages was given in configure.in. 14718 1.1 christos eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 14719 1.1 christos fi 14720 1.1 christos # Compute POFILES 14721 1.1 christos # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 14722 1.1 christos # Compute UPDATEPOFILES 14723 1.1 christos # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 14724 1.1 christos # Compute DUMMYPOFILES 14725 1.1 christos # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 14726 1.1 christos # Compute GMOFILES 14727 1.1 christos # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 14728 1.1 christos case "$ac_given_srcdir" in 14729 1.1 christos .) srcdirpre= ;; 14730 1.1 christos *) srcdirpre='$(srcdir)/' ;; 14731 1.1 christos esac 14732 1.1 christos POFILES= 14733 1.1 christos UPDATEPOFILES= 14734 1.1 christos DUMMYPOFILES= 14735 1.1 christos GMOFILES= 14736 1.1 christos for lang in $ALL_LINGUAS; do 14737 1.1 christos POFILES="$POFILES $srcdirpre$lang.po" 14738 1.1 christos UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 14739 1.1 christos DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 14740 1.1 christos GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 14741 1.1 christos done 14742 1.1 christos # CATALOGS depends on both $ac_dir and the user's LINGUAS 14743 1.1 christos # environment variable. 14744 1.1 christos INST_LINGUAS= 14745 1.1 christos if test -n "$ALL_LINGUAS"; then 14746 1.1 christos for presentlang in $ALL_LINGUAS; do 14747 1.1 christos useit=no 14748 1.1 christos if test "%UNSET%" != "$LINGUAS"; then 14749 1.1 christos desiredlanguages="$LINGUAS" 14750 1.1 christos else 14751 1.1 christos desiredlanguages="$ALL_LINGUAS" 14752 1.1 christos fi 14753 1.1 christos for desiredlang in $desiredlanguages; do 14754 1.1 christos # Use the presentlang catalog if desiredlang is 14755 1.1 christos # a. equal to presentlang, or 14756 1.1 christos # b. a variant of presentlang (because in this case, 14757 1.1 christos # presentlang can be used as a fallback for messages 14758 1.1 christos # which are not translated in the desiredlang catalog). 14759 1.1 christos case "$desiredlang" in 14760 1.1 christos "$presentlang"*) useit=yes;; 14761 1.1 christos esac 14762 1.1 christos done 14763 1.1 christos if test $useit = yes; then 14764 1.1 christos INST_LINGUAS="$INST_LINGUAS $presentlang" 14765 1.1 christos fi 14766 1.1 christos done 14767 1.1 christos fi 14768 1.1 christos CATALOGS= 14769 1.1 christos if test -n "$INST_LINGUAS"; then 14770 1.1 christos for lang in $INST_LINGUAS; do 14771 1.1 christos CATALOGS="$CATALOGS $lang.gmo" 14772 1.1 christos done 14773 1.1 christos fi 14774 1.1 christos test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 14775 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" 14776 1.1 christos for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 14777 1.1 christos if test -f "$f"; then 14778 1.1 christos case "$f" in 14779 1.1 christos *.orig | *.bak | *~) ;; 14780 1.1 christos *) cat "$f" >> "$ac_dir/Makefile" ;; 14781 1.1 christos esac 14782 1.1 christos fi 14783 1.1 christos done 14784 1.1 christos fi 14785 1.1 christos ;; 14786 1.1 christos esac 14787 1.1 christos done ;; 14788 1.1 christos esac 14789 1.1 christos done 14790 1.1 christos _ACEOF 14791 1.1 christos 14792 1.1 christos cat >>$CONFIG_STATUS <<\_ACEOF 14793 1.1 christos 14794 1.1 christos { (exit 0); exit 0; } 14795 1.1 christos _ACEOF 14796 1.1 christos chmod +x $CONFIG_STATUS 14797 1.1 christos ac_clean_files=$ac_clean_files_save 14798 1.1 christos 14799 1.1 christos 14800 1.1 christos # configure is writing to config.log, and then calls config.status. 14801 1.1 christos # config.status does its own redirection, appending to config.log. 14802 1.1 christos # Unfortunately, on DOS this fails, as config.log is still kept open 14803 1.1 christos # by configure, so config.status won't be able to write to it; its 14804 1.1 christos # output is simply discarded. So we exec the FD to /dev/null, 14805 1.1 christos # effectively closing config.log, so it can be properly (re)opened and 14806 1.1 christos # appended to by config.status. When coming back to configure, we 14807 1.1 christos # need to make the FD available again. 14808 1.1 christos if test "$no_create" != yes; then 14809 1.1 christos ac_cs_success=: 14810 1.1 christos ac_config_status_args= 14811 1.1 christos test "$silent" = yes && 14812 1.1 christos ac_config_status_args="$ac_config_status_args --quiet" 14813 1.1 christos exec 5>/dev/null 14814 1.1 christos $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14815 1.1 christos exec 5>>config.log 14816 1.1 christos # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14817 1.1 christos # would make configure fail if this is the last instruction. 14818 1.1 christos $ac_cs_success || { (exit 1); exit 1; } 14819 1.1 christos fi 14820 1.1 christos 14821