Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59. |
| 4 | # |
| 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
| 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
| 11 | |
| 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
| 254 | ac_default_prefix=/usr/local |
| 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
Constantin Kaplinsky | 97ac555 | 2006-06-02 04:13:14 +0000 | [diff] [blame] | 274 | ac_unique_file="vncviewer/vncviewer.cxx" |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
Constantin Kaplinsky | a874881 | 2007-09-05 09:29:06 +0000 | [diff] [blame^] | 312 | 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 PACKAGE VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB SET_MAKE MITSHM_DEFINE DMEDIA_LIB CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ZLIB_DIR ZLIB_INCLUDE ZLIB_LIB JPEG_DIR JPEG_INCLUDE JPEG_LIB VNCCONFIG_DIR XTEST_DEFINE XTEST_LIB READDISPLAY_DEFINE INET_LIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ALLOCA 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 LIBOBJS LTLIBOBJS' |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 313 | ac_subst_files='' |
| 314 | |
| 315 | # Initialize some variables set by options. |
| 316 | ac_init_help= |
| 317 | ac_init_version=false |
| 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
| 320 | cache_file=/dev/null |
| 321 | exec_prefix=NONE |
| 322 | no_create= |
| 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
| 328 | silent= |
| 329 | site= |
| 330 | srcdir= |
| 331 | verbose= |
| 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
| 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
| 352 | |
| 353 | ac_prev= |
| 354 | for ac_option |
| 355 | do |
| 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
| 361 | fi |
| 362 | |
| 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 364 | |
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
| 367 | case $ac_option in |
| 368 | |
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 372 | bindir=$ac_optarg ;; |
| 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
| 375 | ac_prev=build_alias ;; |
| 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 377 | build_alias=$ac_optarg ;; |
| 378 | |
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
| 388 | |
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
| 393 | datadir=$ac_optarg ;; |
| 394 | |
| 395 | -disable-* | --disable-*) |
| 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 397 | # Reject names that are not valid shell variable names. |
| 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
| 403 | |
| 404 | -enable-* | --enable-*) |
| 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 406 | # Reject names that are not valid shell variable names. |
| 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 413 | *) ac_optarg=yes ;; |
| 414 | esac |
| 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 416 | |
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
| 424 | exec_prefix=$ac_optarg ;; |
| 425 | |
| 426 | -gas | --gas | --ga | --g) |
| 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
| 429 | |
| 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
| 436 | |
| 437 | -host | --host | --hos | --ho) |
| 438 | ac_prev=host_alias ;; |
| 439 | -host=* | --host=* | --hos=* | --ho=*) |
| 440 | host_alias=$ac_optarg ;; |
| 441 | |
| 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 447 | includedir=$ac_optarg ;; |
| 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 452 | infodir=$ac_optarg ;; |
| 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 457 | libdir=$ac_optarg ;; |
| 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
| 464 | libexecdir=$ac_optarg ;; |
| 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 473 | localstatedir=$ac_optarg ;; |
| 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 478 | mandir=$ac_optarg ;; |
| 479 | |
| 480 | -nfp | --nfp | --nf) |
| 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
| 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 485 | | --no-cr | --no-c | -n) |
| 486 | no_create=yes ;; |
| 487 | |
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
| 491 | |
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 499 | oldincludedir=$ac_optarg ;; |
| 500 | |
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 504 | prefix=$ac_optarg ;; |
| 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 511 | program_prefix=$ac_optarg ;; |
| 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 518 | program_suffix=$ac_optarg ;; |
| 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 535 | program_transform_name=$ac_optarg ;; |
| 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
| 545 | sbindir=$ac_optarg ;; |
| 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
| 556 | sharedstatedir=$ac_optarg ;; |
| 557 | |
| 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
| 561 | site=$ac_optarg ;; |
| 562 | |
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 566 | srcdir=$ac_optarg ;; |
| 567 | |
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 573 | sysconfdir=$ac_optarg ;; |
| 574 | |
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 576 | ac_prev=target_alias ;; |
| 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 578 | target_alias=$ac_optarg ;; |
| 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
| 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
| 585 | |
| 586 | -with-* | --with-*) |
| 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 588 | # Reject names that are not valid shell variable names. |
| 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
| 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 595 | *) ac_optarg=yes ;; |
| 596 | esac |
| 597 | eval "with_$ac_package='$ac_optarg'" ;; |
| 598 | |
| 599 | -without-* | --without-*) |
| 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 601 | # Reject names that are not valid shell variable names. |
| 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
| 607 | |
| 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
| 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 617 | x_includes=$ac_optarg ;; |
| 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 624 | x_libraries=$ac_optarg ;; |
| 625 | |
| 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
| 629 | ;; |
| 630 | |
| 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
| 641 | *) |
| 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 647 | ;; |
| 648 | |
| 649 | esac |
| 650 | done |
| 651 | |
| 652 | if test -n "$ac_prev"; then |
| 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
| 656 | fi |
| 657 | |
| 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
| 660 | do |
| 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
| 666 | esac |
| 667 | done |
| 668 | |
| 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
| 680 | |
| 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
| 687 | |
| 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
| 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
| 707 | ac_srcdir_defaulted=yes |
| 708 | # Try the directory containing this script, then its parent. |
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
| 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
| 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
| 723 | srcdir=.. |
| 724 | fi |
| 725 | else |
| 726 | ac_srcdir_defaulted=no |
| 727 | fi |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
| 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
| 732 | else |
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
| 735 | fi |
| 736 | fi |
| 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CXX_set=${CXX+set} |
| 770 | ac_env_CXX_value=$CXX |
| 771 | ac_cv_env_CXX_set=${CXX+set} |
| 772 | ac_cv_env_CXX_value=$CXX |
| 773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 774 | ac_env_CXXFLAGS_value=$CXXFLAGS |
| 775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
| 776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
| 777 | ac_env_CXXCPP_set=${CXXCPP+set} |
| 778 | ac_env_CXXCPP_value=$CXXCPP |
| 779 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
| 780 | ac_cv_env_CXXCPP_value=$CXXCPP |
| 781 | |
| 782 | # |
| 783 | # Report the --help message. |
| 784 | # |
| 785 | if test "$ac_init_help" = "long"; then |
| 786 | # Omit some internal or obsolete options to make the list less imposing. |
| 787 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 788 | cat <<_ACEOF |
| 789 | \`configure' configures this package to adapt to many kinds of systems. |
| 790 | |
| 791 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 792 | |
| 793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 794 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 795 | |
| 796 | Defaults for the options are specified in brackets. |
| 797 | |
| 798 | Configuration: |
| 799 | -h, --help display this help and exit |
| 800 | --help=short display options specific to this package |
| 801 | --help=recursive display the short help of all the included packages |
| 802 | -V, --version display version information and exit |
| 803 | -q, --quiet, --silent do not print \`checking...' messages |
| 804 | --cache-file=FILE cache test results in FILE [disabled] |
| 805 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 806 | -n, --no-create do not create output files |
| 807 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 808 | |
| 809 | _ACEOF |
| 810 | |
| 811 | cat <<_ACEOF |
| 812 | Installation directories: |
| 813 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 814 | [$ac_default_prefix] |
| 815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 816 | [PREFIX] |
| 817 | |
| 818 | By default, \`make install' will install all the files in |
| 819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 821 | for instance \`--prefix=\$HOME'. |
| 822 | |
| 823 | For better control, use the options below. |
| 824 | |
| 825 | Fine tuning of the installation directories: |
| 826 | --bindir=DIR user executables [EPREFIX/bin] |
| 827 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 828 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 829 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 833 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 834 | --includedir=DIR C header files [PREFIX/include] |
| 835 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 836 | --infodir=DIR info documentation [PREFIX/info] |
| 837 | --mandir=DIR man documentation [PREFIX/man] |
| 838 | _ACEOF |
| 839 | |
| 840 | cat <<\_ACEOF |
| 841 | |
| 842 | X features: |
| 843 | --x-includes=DIR X include files are in DIR |
| 844 | --x-libraries=DIR X library files are in DIR |
| 845 | |
| 846 | System types: |
| 847 | --build=BUILD configure for building on BUILD [guessed] |
| 848 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 849 | _ACEOF |
| 850 | fi |
| 851 | |
| 852 | if test -n "$ac_init_help"; then |
| 853 | |
| 854 | cat <<\_ACEOF |
| 855 | |
| 856 | Optional Features: |
| 857 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 858 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 859 | --enable-vncconfig build the vncconfig utility (assumed by default), |
| 860 | use --disable-vncconfig to skip building vncconfig |
| 861 | --disable-nls do not use Native Language Support |
| 862 | --disable-rpath do not hardcode runtime library paths |
| 863 | |
| 864 | Optional Packages: |
| 865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 867 | --with-x use the X Window System |
| 868 | --with-installed-zlib use the version of zlib which is installed on the |
| 869 | system instead of the one distributed with VNC |
| 870 | --with-installed-jpeg use the version of jpeg which is installed on the |
| 871 | system instead of the one distributed with VNC |
| 872 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 873 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 874 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 875 | --with-included-gettext use the GNU gettext library included here |
| 876 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 877 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 878 | |
| 879 | Some influential environment variables: |
| 880 | CC C compiler command |
| 881 | CFLAGS C compiler flags |
| 882 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 883 | nonstandard directory <lib dir> |
| 884 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 885 | headers in a nonstandard directory <include dir> |
| 886 | CXX C++ compiler command |
| 887 | CXXFLAGS C++ compiler flags |
| 888 | CXXCPP C++ preprocessor |
| 889 | |
| 890 | Use these variables to override the choices made by `configure' or to help |
| 891 | it to find libraries and programs with nonstandard names/locations. |
| 892 | |
| 893 | _ACEOF |
| 894 | fi |
| 895 | |
| 896 | if test "$ac_init_help" = "recursive"; then |
| 897 | # If there are subdirs, report their specific --help. |
| 898 | ac_popdir=`pwd` |
| 899 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 900 | test -d $ac_dir || continue |
| 901 | ac_builddir=. |
| 902 | |
| 903 | if test "$ac_dir" != .; then |
| 904 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 905 | # A "../" for each directory in $ac_dir_suffix. |
| 906 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 907 | else |
| 908 | ac_dir_suffix= ac_top_builddir= |
| 909 | fi |
| 910 | |
| 911 | case $srcdir in |
| 912 | .) # No --srcdir option. We are building in place. |
| 913 | ac_srcdir=. |
| 914 | if test -z "$ac_top_builddir"; then |
| 915 | ac_top_srcdir=. |
| 916 | else |
| 917 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 918 | fi ;; |
| 919 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 920 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 921 | ac_top_srcdir=$srcdir ;; |
| 922 | *) # Relative path. |
| 923 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 924 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 925 | esac |
| 926 | |
| 927 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 928 | # the directories may not exist. |
| 929 | case `pwd` in |
| 930 | .) ac_abs_builddir="$ac_dir";; |
| 931 | *) |
| 932 | case "$ac_dir" in |
| 933 | .) ac_abs_builddir=`pwd`;; |
| 934 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 935 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 936 | esac;; |
| 937 | esac |
| 938 | case $ac_abs_builddir in |
| 939 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 940 | *) |
| 941 | case ${ac_top_builddir}. in |
| 942 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 943 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 944 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 945 | esac;; |
| 946 | esac |
| 947 | case $ac_abs_builddir in |
| 948 | .) ac_abs_srcdir=$ac_srcdir;; |
| 949 | *) |
| 950 | case $ac_srcdir in |
| 951 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 952 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 953 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 954 | esac;; |
| 955 | esac |
| 956 | case $ac_abs_builddir in |
| 957 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 958 | *) |
| 959 | case $ac_top_srcdir in |
| 960 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 961 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 962 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 963 | esac;; |
| 964 | esac |
| 965 | |
| 966 | cd $ac_dir |
| 967 | # Check for guested configure; otherwise get Cygnus style configure. |
| 968 | if test -f $ac_srcdir/configure.gnu; then |
| 969 | echo |
| 970 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 971 | elif test -f $ac_srcdir/configure; then |
| 972 | echo |
| 973 | $SHELL $ac_srcdir/configure --help=recursive |
| 974 | elif test -f $ac_srcdir/configure.ac || |
| 975 | test -f $ac_srcdir/configure.in; then |
| 976 | echo |
| 977 | $ac_configure --help |
| 978 | else |
| 979 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 980 | fi |
| 981 | cd $ac_popdir |
| 982 | done |
| 983 | fi |
| 984 | |
| 985 | test -n "$ac_init_help" && exit 0 |
| 986 | if $ac_init_version; then |
| 987 | cat <<\_ACEOF |
| 988 | |
| 989 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 990 | This configure script is free software; the Free Software Foundation |
| 991 | gives unlimited permission to copy, distribute and modify it. |
| 992 | _ACEOF |
| 993 | exit 0 |
| 994 | fi |
| 995 | exec 5>config.log |
| 996 | cat >&5 <<_ACEOF |
| 997 | This file contains any messages produced by compilers while |
| 998 | running configure, to aid debugging if configure makes a mistake. |
| 999 | |
| 1000 | It was created by $as_me, which was |
| 1001 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1002 | |
| 1003 | $ $0 $@ |
| 1004 | |
| 1005 | _ACEOF |
| 1006 | { |
| 1007 | cat <<_ASUNAME |
| 1008 | ## --------- ## |
| 1009 | ## Platform. ## |
| 1010 | ## --------- ## |
| 1011 | |
| 1012 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1013 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1014 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1015 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1016 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1017 | |
| 1018 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1019 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1022 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1023 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1024 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1025 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1026 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1027 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1028 | |
| 1029 | _ASUNAME |
| 1030 | |
| 1031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1032 | for as_dir in $PATH |
| 1033 | do |
| 1034 | IFS=$as_save_IFS |
| 1035 | test -z "$as_dir" && as_dir=. |
| 1036 | echo "PATH: $as_dir" |
| 1037 | done |
| 1038 | |
| 1039 | } >&5 |
| 1040 | |
| 1041 | cat >&5 <<_ACEOF |
| 1042 | |
| 1043 | |
| 1044 | ## ----------- ## |
| 1045 | ## Core tests. ## |
| 1046 | ## ----------- ## |
| 1047 | |
| 1048 | _ACEOF |
| 1049 | |
| 1050 | |
| 1051 | # Keep a trace of the command line. |
| 1052 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1053 | # Strip out --silent because we don't want to record it for future runs. |
| 1054 | # Also quote any args containing shell meta-characters. |
| 1055 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1056 | ac_configure_args= |
| 1057 | ac_configure_args0= |
| 1058 | ac_configure_args1= |
| 1059 | ac_sep= |
| 1060 | ac_must_keep_next=false |
| 1061 | for ac_pass in 1 2 |
| 1062 | do |
| 1063 | for ac_arg |
| 1064 | do |
| 1065 | case $ac_arg in |
| 1066 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1068 | | -silent | --silent | --silen | --sile | --sil) |
| 1069 | continue ;; |
| 1070 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1071 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1072 | esac |
| 1073 | case $ac_pass in |
| 1074 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1075 | 2) |
| 1076 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1077 | if test $ac_must_keep_next = true; then |
| 1078 | ac_must_keep_next=false # Got value, back to normal. |
| 1079 | else |
| 1080 | case $ac_arg in |
| 1081 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1082 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1083 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1084 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1085 | case "$ac_configure_args0 " in |
| 1086 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1087 | esac |
| 1088 | ;; |
| 1089 | -* ) ac_must_keep_next=true ;; |
| 1090 | esac |
| 1091 | fi |
| 1092 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1093 | # Get rid of the leading space. |
| 1094 | ac_sep=" " |
| 1095 | ;; |
| 1096 | esac |
| 1097 | done |
| 1098 | done |
| 1099 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1100 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1101 | |
| 1102 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1103 | # config.log. We remove comments because anyway the quotes in there |
| 1104 | # would cause problems or look ugly. |
| 1105 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1106 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1107 | trap 'exit_status=$? |
| 1108 | # Save into config.log some information that might help in debugging. |
| 1109 | { |
| 1110 | echo |
| 1111 | |
| 1112 | cat <<\_ASBOX |
| 1113 | ## ---------------- ## |
| 1114 | ## Cache variables. ## |
| 1115 | ## ---------------- ## |
| 1116 | _ASBOX |
| 1117 | echo |
| 1118 | # The following way of writing the cache mishandles newlines in values, |
| 1119 | { |
| 1120 | (set) 2>&1 | |
| 1121 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1122 | *ac_space=\ *) |
| 1123 | sed -n \ |
| 1124 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1125 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1126 | ;; |
| 1127 | *) |
| 1128 | sed -n \ |
| 1129 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1130 | ;; |
| 1131 | esac; |
| 1132 | } |
| 1133 | echo |
| 1134 | |
| 1135 | cat <<\_ASBOX |
| 1136 | ## ----------------- ## |
| 1137 | ## Output variables. ## |
| 1138 | ## ----------------- ## |
| 1139 | _ASBOX |
| 1140 | echo |
| 1141 | for ac_var in $ac_subst_vars |
| 1142 | do |
| 1143 | eval ac_val=$`echo $ac_var` |
| 1144 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1145 | done | sort |
| 1146 | echo |
| 1147 | |
| 1148 | if test -n "$ac_subst_files"; then |
| 1149 | cat <<\_ASBOX |
| 1150 | ## ------------- ## |
| 1151 | ## Output files. ## |
| 1152 | ## ------------- ## |
| 1153 | _ASBOX |
| 1154 | echo |
| 1155 | for ac_var in $ac_subst_files |
| 1156 | do |
| 1157 | eval ac_val=$`echo $ac_var` |
| 1158 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1159 | done | sort |
| 1160 | echo |
| 1161 | fi |
| 1162 | |
| 1163 | if test -s confdefs.h; then |
| 1164 | cat <<\_ASBOX |
| 1165 | ## ----------- ## |
| 1166 | ## confdefs.h. ## |
| 1167 | ## ----------- ## |
| 1168 | _ASBOX |
| 1169 | echo |
| 1170 | sed "/^$/d" confdefs.h | sort |
| 1171 | echo |
| 1172 | fi |
| 1173 | test "$ac_signal" != 0 && |
| 1174 | echo "$as_me: caught signal $ac_signal" |
| 1175 | echo "$as_me: exit $exit_status" |
| 1176 | } >&5 |
| 1177 | rm -f core *.core && |
| 1178 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1179 | exit $exit_status |
| 1180 | ' 0 |
| 1181 | for ac_signal in 1 2 13 15; do |
| 1182 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1183 | done |
| 1184 | ac_signal=0 |
| 1185 | |
| 1186 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1187 | rm -rf conftest* confdefs.h |
| 1188 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1189 | echo >confdefs.h |
| 1190 | |
| 1191 | # Predefined preprocessor variables. |
| 1192 | |
| 1193 | cat >>confdefs.h <<_ACEOF |
| 1194 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1195 | _ACEOF |
| 1196 | |
| 1197 | |
| 1198 | cat >>confdefs.h <<_ACEOF |
| 1199 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1200 | _ACEOF |
| 1201 | |
| 1202 | |
| 1203 | cat >>confdefs.h <<_ACEOF |
| 1204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1205 | _ACEOF |
| 1206 | |
| 1207 | |
| 1208 | cat >>confdefs.h <<_ACEOF |
| 1209 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1210 | _ACEOF |
| 1211 | |
| 1212 | |
| 1213 | cat >>confdefs.h <<_ACEOF |
| 1214 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1215 | _ACEOF |
| 1216 | |
| 1217 | |
| 1218 | # Let the site file select an alternate cache file if it wants to. |
| 1219 | # Prefer explicitly selected file to automatically selected ones. |
| 1220 | if test -z "$CONFIG_SITE"; then |
| 1221 | if test "x$prefix" != xNONE; then |
| 1222 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1223 | else |
| 1224 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1225 | fi |
| 1226 | fi |
| 1227 | for ac_site_file in $CONFIG_SITE; do |
| 1228 | if test -r "$ac_site_file"; then |
| 1229 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1230 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1231 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1232 | . "$ac_site_file" |
| 1233 | fi |
| 1234 | done |
| 1235 | |
| 1236 | if test -r "$cache_file"; then |
| 1237 | # Some versions of bash will fail to source /dev/null (special |
| 1238 | # files actually), so we avoid doing that. |
| 1239 | if test -f "$cache_file"; then |
| 1240 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1241 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1242 | case $cache_file in |
| 1243 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1244 | *) . ./$cache_file;; |
| 1245 | esac |
| 1246 | fi |
| 1247 | else |
| 1248 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1249 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1250 | >$cache_file |
| 1251 | fi |
| 1252 | |
| 1253 | # Check that the precious variables saved in the cache have kept the same |
| 1254 | # value. |
| 1255 | ac_cache_corrupted=false |
| 1256 | for ac_var in `(set) 2>&1 | |
| 1257 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1258 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1259 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1260 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1261 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1262 | case $ac_old_set,$ac_new_set in |
| 1263 | set,) |
| 1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1265 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1266 | ac_cache_corrupted=: ;; |
| 1267 | ,set) |
| 1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1269 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1270 | ac_cache_corrupted=: ;; |
| 1271 | ,);; |
| 1272 | *) |
| 1273 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1274 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1275 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1276 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1277 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1278 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1279 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1280 | ac_cache_corrupted=: |
| 1281 | fi;; |
| 1282 | esac |
| 1283 | # Pass precious variables to config.status. |
| 1284 | if test "$ac_new_set" = set; then |
| 1285 | case $ac_new_val in |
| 1286 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1287 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1288 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1289 | esac |
| 1290 | case " $ac_configure_args " in |
| 1291 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1292 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1293 | esac |
| 1294 | fi |
| 1295 | done |
| 1296 | if $ac_cache_corrupted; then |
| 1297 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1298 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1299 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1300 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1301 | { (exit 1); exit 1; }; } |
| 1302 | fi |
| 1303 | |
| 1304 | ac_ext=c |
| 1305 | ac_cpp='$CPP $CPPFLAGS' |
| 1306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1309 | |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | PACKAGE=tightvnc |
| 1330 | VERSION=1.5.0 |
| 1331 | cat >>confdefs.h <<_ACEOF |
| 1332 | #define PACKAGE "$PACKAGE" |
| 1333 | _ACEOF |
| 1334 | |
| 1335 | cat >>confdefs.h <<_ACEOF |
| 1336 | #define VERSION "$VERSION" |
| 1337 | _ACEOF |
| 1338 | |
| 1339 | |
| 1340 | |
| 1341 | |
Constantin Kaplinsky | 97ac555 | 2006-06-02 04:13:14 +0000 | [diff] [blame] | 1342 | echo "configuring common..." |
| 1343 | (cd ../common; ./configure $*) |
| 1344 | echo "...done configuring common" |
| 1345 | |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 1346 | ac_cv_prog_cc_g=no |
| 1347 | ac_cv_prog_cxx_g=no |
| 1348 | |
| 1349 | ac_ext=c |
| 1350 | ac_cpp='$CPP $CPPFLAGS' |
| 1351 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1352 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1353 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1354 | if test -n "$ac_tool_prefix"; then |
| 1355 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1356 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1359 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1361 | else |
| 1362 | if test -n "$CC"; then |
| 1363 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1364 | else |
| 1365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1366 | for as_dir in $PATH |
| 1367 | do |
| 1368 | IFS=$as_save_IFS |
| 1369 | test -z "$as_dir" && as_dir=. |
| 1370 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1372 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1374 | break 2 |
| 1375 | fi |
| 1376 | done |
| 1377 | done |
| 1378 | |
| 1379 | fi |
| 1380 | fi |
| 1381 | CC=$ac_cv_prog_CC |
| 1382 | if test -n "$CC"; then |
| 1383 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1384 | echo "${ECHO_T}$CC" >&6 |
| 1385 | else |
| 1386 | echo "$as_me:$LINENO: result: no" >&5 |
| 1387 | echo "${ECHO_T}no" >&6 |
| 1388 | fi |
| 1389 | |
| 1390 | fi |
| 1391 | if test -z "$ac_cv_prog_CC"; then |
| 1392 | ac_ct_CC=$CC |
| 1393 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1394 | set dummy gcc; ac_word=$2 |
| 1395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1397 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1399 | else |
| 1400 | if test -n "$ac_ct_CC"; then |
| 1401 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1402 | else |
| 1403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1404 | for as_dir in $PATH |
| 1405 | do |
| 1406 | IFS=$as_save_IFS |
| 1407 | test -z "$as_dir" && as_dir=. |
| 1408 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1410 | ac_cv_prog_ac_ct_CC="gcc" |
| 1411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1412 | break 2 |
| 1413 | fi |
| 1414 | done |
| 1415 | done |
| 1416 | |
| 1417 | fi |
| 1418 | fi |
| 1419 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1420 | if test -n "$ac_ct_CC"; then |
| 1421 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1422 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1423 | else |
| 1424 | echo "$as_me:$LINENO: result: no" >&5 |
| 1425 | echo "${ECHO_T}no" >&6 |
| 1426 | fi |
| 1427 | |
| 1428 | CC=$ac_ct_CC |
| 1429 | else |
| 1430 | CC="$ac_cv_prog_CC" |
| 1431 | fi |
| 1432 | |
| 1433 | if test -z "$CC"; then |
| 1434 | if test -n "$ac_tool_prefix"; then |
| 1435 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1436 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1437 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1438 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1439 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1441 | else |
| 1442 | if test -n "$CC"; then |
| 1443 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1444 | else |
| 1445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1446 | for as_dir in $PATH |
| 1447 | do |
| 1448 | IFS=$as_save_IFS |
| 1449 | test -z "$as_dir" && as_dir=. |
| 1450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1451 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1452 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1453 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1454 | break 2 |
| 1455 | fi |
| 1456 | done |
| 1457 | done |
| 1458 | |
| 1459 | fi |
| 1460 | fi |
| 1461 | CC=$ac_cv_prog_CC |
| 1462 | if test -n "$CC"; then |
| 1463 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1464 | echo "${ECHO_T}$CC" >&6 |
| 1465 | else |
| 1466 | echo "$as_me:$LINENO: result: no" >&5 |
| 1467 | echo "${ECHO_T}no" >&6 |
| 1468 | fi |
| 1469 | |
| 1470 | fi |
| 1471 | if test -z "$ac_cv_prog_CC"; then |
| 1472 | ac_ct_CC=$CC |
| 1473 | # Extract the first word of "cc", so it can be a program name with args. |
| 1474 | set dummy cc; ac_word=$2 |
| 1475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1477 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1479 | else |
| 1480 | if test -n "$ac_ct_CC"; then |
| 1481 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1482 | else |
| 1483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1484 | for as_dir in $PATH |
| 1485 | do |
| 1486 | IFS=$as_save_IFS |
| 1487 | test -z "$as_dir" && as_dir=. |
| 1488 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1490 | ac_cv_prog_ac_ct_CC="cc" |
| 1491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1492 | break 2 |
| 1493 | fi |
| 1494 | done |
| 1495 | done |
| 1496 | |
| 1497 | fi |
| 1498 | fi |
| 1499 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1500 | if test -n "$ac_ct_CC"; then |
| 1501 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1502 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1503 | else |
| 1504 | echo "$as_me:$LINENO: result: no" >&5 |
| 1505 | echo "${ECHO_T}no" >&6 |
| 1506 | fi |
| 1507 | |
| 1508 | CC=$ac_ct_CC |
| 1509 | else |
| 1510 | CC="$ac_cv_prog_CC" |
| 1511 | fi |
| 1512 | |
| 1513 | fi |
| 1514 | if test -z "$CC"; then |
| 1515 | # Extract the first word of "cc", so it can be a program name with args. |
| 1516 | set dummy cc; ac_word=$2 |
| 1517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1519 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1521 | else |
| 1522 | if test -n "$CC"; then |
| 1523 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1524 | else |
| 1525 | ac_prog_rejected=no |
| 1526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1527 | for as_dir in $PATH |
| 1528 | do |
| 1529 | IFS=$as_save_IFS |
| 1530 | test -z "$as_dir" && as_dir=. |
| 1531 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1533 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1534 | ac_prog_rejected=yes |
| 1535 | continue |
| 1536 | fi |
| 1537 | ac_cv_prog_CC="cc" |
| 1538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1539 | break 2 |
| 1540 | fi |
| 1541 | done |
| 1542 | done |
| 1543 | |
| 1544 | if test $ac_prog_rejected = yes; then |
| 1545 | # We found a bogon in the path, so make sure we never use it. |
| 1546 | set dummy $ac_cv_prog_CC |
| 1547 | shift |
| 1548 | if test $# != 0; then |
| 1549 | # We chose a different compiler from the bogus one. |
| 1550 | # However, it has the same basename, so the bogon will be chosen |
| 1551 | # first if we set CC to just the basename; use the full file name. |
| 1552 | shift |
| 1553 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1554 | fi |
| 1555 | fi |
| 1556 | fi |
| 1557 | fi |
| 1558 | CC=$ac_cv_prog_CC |
| 1559 | if test -n "$CC"; then |
| 1560 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1561 | echo "${ECHO_T}$CC" >&6 |
| 1562 | else |
| 1563 | echo "$as_me:$LINENO: result: no" >&5 |
| 1564 | echo "${ECHO_T}no" >&6 |
| 1565 | fi |
| 1566 | |
| 1567 | fi |
| 1568 | if test -z "$CC"; then |
| 1569 | if test -n "$ac_tool_prefix"; then |
| 1570 | for ac_prog in cl |
| 1571 | do |
| 1572 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1573 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1574 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1576 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1578 | else |
| 1579 | if test -n "$CC"; then |
| 1580 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1581 | else |
| 1582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1583 | for as_dir in $PATH |
| 1584 | do |
| 1585 | IFS=$as_save_IFS |
| 1586 | test -z "$as_dir" && as_dir=. |
| 1587 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1588 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1589 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1590 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1591 | break 2 |
| 1592 | fi |
| 1593 | done |
| 1594 | done |
| 1595 | |
| 1596 | fi |
| 1597 | fi |
| 1598 | CC=$ac_cv_prog_CC |
| 1599 | if test -n "$CC"; then |
| 1600 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1601 | echo "${ECHO_T}$CC" >&6 |
| 1602 | else |
| 1603 | echo "$as_me:$LINENO: result: no" >&5 |
| 1604 | echo "${ECHO_T}no" >&6 |
| 1605 | fi |
| 1606 | |
| 1607 | test -n "$CC" && break |
| 1608 | done |
| 1609 | fi |
| 1610 | if test -z "$CC"; then |
| 1611 | ac_ct_CC=$CC |
| 1612 | for ac_prog in cl |
| 1613 | do |
| 1614 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1615 | set dummy $ac_prog; ac_word=$2 |
| 1616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1618 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1620 | else |
| 1621 | if test -n "$ac_ct_CC"; then |
| 1622 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1623 | else |
| 1624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1625 | for as_dir in $PATH |
| 1626 | do |
| 1627 | IFS=$as_save_IFS |
| 1628 | test -z "$as_dir" && as_dir=. |
| 1629 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1630 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1631 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1633 | break 2 |
| 1634 | fi |
| 1635 | done |
| 1636 | done |
| 1637 | |
| 1638 | fi |
| 1639 | fi |
| 1640 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1641 | if test -n "$ac_ct_CC"; then |
| 1642 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1643 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1644 | else |
| 1645 | echo "$as_me:$LINENO: result: no" >&5 |
| 1646 | echo "${ECHO_T}no" >&6 |
| 1647 | fi |
| 1648 | |
| 1649 | test -n "$ac_ct_CC" && break |
| 1650 | done |
| 1651 | |
| 1652 | CC=$ac_ct_CC |
| 1653 | fi |
| 1654 | |
| 1655 | fi |
| 1656 | |
| 1657 | |
| 1658 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1659 | See \`config.log' for more details." >&5 |
| 1660 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1661 | See \`config.log' for more details." >&2;} |
| 1662 | { (exit 1); exit 1; }; } |
| 1663 | |
| 1664 | # Provide some information about the compiler. |
| 1665 | echo "$as_me:$LINENO:" \ |
| 1666 | "checking for C compiler version" >&5 |
| 1667 | ac_compiler=`set X $ac_compile; echo $2` |
| 1668 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1669 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1670 | ac_status=$? |
| 1671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1672 | (exit $ac_status); } |
| 1673 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1674 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1675 | ac_status=$? |
| 1676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1677 | (exit $ac_status); } |
| 1678 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1679 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1680 | ac_status=$? |
| 1681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1682 | (exit $ac_status); } |
| 1683 | |
| 1684 | cat >conftest.$ac_ext <<_ACEOF |
| 1685 | /* confdefs.h. */ |
| 1686 | _ACEOF |
| 1687 | cat confdefs.h >>conftest.$ac_ext |
| 1688 | cat >>conftest.$ac_ext <<_ACEOF |
| 1689 | /* end confdefs.h. */ |
| 1690 | |
| 1691 | int |
| 1692 | main () |
| 1693 | { |
| 1694 | |
| 1695 | ; |
| 1696 | return 0; |
| 1697 | } |
| 1698 | _ACEOF |
| 1699 | ac_clean_files_save=$ac_clean_files |
| 1700 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1701 | # Try to create an executable without -o first, disregard a.out. |
| 1702 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1703 | # of exeext. |
| 1704 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1705 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1706 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1707 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1708 | (eval $ac_link_default) 2>&5 |
| 1709 | ac_status=$? |
| 1710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1711 | (exit $ac_status); }; then |
| 1712 | # Find the output, starting from the most likely. This scheme is |
| 1713 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1714 | # resort. |
| 1715 | |
| 1716 | # Be careful to initialize this variable, since it used to be cached. |
| 1717 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1718 | ac_cv_exeext= |
| 1719 | # b.out is created by i960 compilers. |
| 1720 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1721 | do |
| 1722 | test -f "$ac_file" || continue |
| 1723 | case $ac_file in |
| 1724 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1725 | ;; |
| 1726 | conftest.$ac_ext ) |
| 1727 | # This is the source file. |
| 1728 | ;; |
| 1729 | [ab].out ) |
| 1730 | # We found the default executable, but exeext='' is most |
| 1731 | # certainly right. |
| 1732 | break;; |
| 1733 | *.* ) |
| 1734 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1735 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1736 | # but it would be cool to find out if it's true. Does anybody |
| 1737 | # maintain Libtool? --akim. |
| 1738 | export ac_cv_exeext |
| 1739 | break;; |
| 1740 | * ) |
| 1741 | break;; |
| 1742 | esac |
| 1743 | done |
| 1744 | else |
| 1745 | echo "$as_me: failed program was:" >&5 |
| 1746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1747 | |
| 1748 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1749 | See \`config.log' for more details." >&5 |
| 1750 | echo "$as_me: error: C compiler cannot create executables |
| 1751 | See \`config.log' for more details." >&2;} |
| 1752 | { (exit 77); exit 77; }; } |
| 1753 | fi |
| 1754 | |
| 1755 | ac_exeext=$ac_cv_exeext |
| 1756 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1757 | echo "${ECHO_T}$ac_file" >&6 |
| 1758 | |
| 1759 | # Check the compiler produces executables we can run. If not, either |
| 1760 | # the compiler is broken, or we cross compile. |
| 1761 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1762 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1763 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1764 | # If not cross compiling, check that we can run a simple program. |
| 1765 | if test "$cross_compiling" != yes; then |
| 1766 | if { ac_try='./$ac_file' |
| 1767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1768 | (eval $ac_try) 2>&5 |
| 1769 | ac_status=$? |
| 1770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1771 | (exit $ac_status); }; }; then |
| 1772 | cross_compiling=no |
| 1773 | else |
| 1774 | if test "$cross_compiling" = maybe; then |
| 1775 | cross_compiling=yes |
| 1776 | else |
| 1777 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1778 | If you meant to cross compile, use \`--host'. |
| 1779 | See \`config.log' for more details." >&5 |
| 1780 | echo "$as_me: error: cannot run C compiled programs. |
| 1781 | If you meant to cross compile, use \`--host'. |
| 1782 | See \`config.log' for more details." >&2;} |
| 1783 | { (exit 1); exit 1; }; } |
| 1784 | fi |
| 1785 | fi |
| 1786 | fi |
| 1787 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1788 | echo "${ECHO_T}yes" >&6 |
| 1789 | |
| 1790 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1791 | ac_clean_files=$ac_clean_files_save |
| 1792 | # Check the compiler produces executables we can run. If not, either |
| 1793 | # the compiler is broken, or we cross compile. |
| 1794 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1795 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1796 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1797 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1798 | |
| 1799 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1800 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1802 | (eval $ac_link) 2>&5 |
| 1803 | ac_status=$? |
| 1804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1805 | (exit $ac_status); }; then |
| 1806 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1807 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1808 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1809 | # `rm'. |
| 1810 | for ac_file in conftest.exe conftest conftest.*; do |
| 1811 | test -f "$ac_file" || continue |
| 1812 | case $ac_file in |
| 1813 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1814 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1815 | export ac_cv_exeext |
| 1816 | break;; |
| 1817 | * ) break;; |
| 1818 | esac |
| 1819 | done |
| 1820 | else |
| 1821 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1822 | See \`config.log' for more details." >&5 |
| 1823 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1824 | See \`config.log' for more details." >&2;} |
| 1825 | { (exit 1); exit 1; }; } |
| 1826 | fi |
| 1827 | |
| 1828 | rm -f conftest$ac_cv_exeext |
| 1829 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1830 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1831 | |
| 1832 | rm -f conftest.$ac_ext |
| 1833 | EXEEXT=$ac_cv_exeext |
| 1834 | ac_exeext=$EXEEXT |
| 1835 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1836 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1837 | if test "${ac_cv_objext+set}" = set; then |
| 1838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1839 | else |
| 1840 | cat >conftest.$ac_ext <<_ACEOF |
| 1841 | /* confdefs.h. */ |
| 1842 | _ACEOF |
| 1843 | cat confdefs.h >>conftest.$ac_ext |
| 1844 | cat >>conftest.$ac_ext <<_ACEOF |
| 1845 | /* end confdefs.h. */ |
| 1846 | |
| 1847 | int |
| 1848 | main () |
| 1849 | { |
| 1850 | |
| 1851 | ; |
| 1852 | return 0; |
| 1853 | } |
| 1854 | _ACEOF |
| 1855 | rm -f conftest.o conftest.obj |
| 1856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1857 | (eval $ac_compile) 2>&5 |
| 1858 | ac_status=$? |
| 1859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1860 | (exit $ac_status); }; then |
| 1861 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1862 | case $ac_file in |
| 1863 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1864 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1865 | break;; |
| 1866 | esac |
| 1867 | done |
| 1868 | else |
| 1869 | echo "$as_me: failed program was:" >&5 |
| 1870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1871 | |
| 1872 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1873 | See \`config.log' for more details." >&5 |
| 1874 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1875 | See \`config.log' for more details." >&2;} |
| 1876 | { (exit 1); exit 1; }; } |
| 1877 | fi |
| 1878 | |
| 1879 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1880 | fi |
| 1881 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1882 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1883 | OBJEXT=$ac_cv_objext |
| 1884 | ac_objext=$OBJEXT |
| 1885 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1886 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1887 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1888 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1889 | else |
| 1890 | cat >conftest.$ac_ext <<_ACEOF |
| 1891 | /* confdefs.h. */ |
| 1892 | _ACEOF |
| 1893 | cat confdefs.h >>conftest.$ac_ext |
| 1894 | cat >>conftest.$ac_ext <<_ACEOF |
| 1895 | /* end confdefs.h. */ |
| 1896 | |
| 1897 | int |
| 1898 | main () |
| 1899 | { |
| 1900 | #ifndef __GNUC__ |
| 1901 | choke me |
| 1902 | #endif |
| 1903 | |
| 1904 | ; |
| 1905 | return 0; |
| 1906 | } |
| 1907 | _ACEOF |
| 1908 | rm -f conftest.$ac_objext |
| 1909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1910 | (eval $ac_compile) 2>conftest.er1 |
| 1911 | ac_status=$? |
| 1912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1913 | rm -f conftest.er1 |
| 1914 | cat conftest.err >&5 |
| 1915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1916 | (exit $ac_status); } && |
| 1917 | { ac_try='test -z "$ac_c_werror_flag" |
| 1918 | || test ! -s conftest.err' |
| 1919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1920 | (eval $ac_try) 2>&5 |
| 1921 | ac_status=$? |
| 1922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1923 | (exit $ac_status); }; } && |
| 1924 | { ac_try='test -s conftest.$ac_objext' |
| 1925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1926 | (eval $ac_try) 2>&5 |
| 1927 | ac_status=$? |
| 1928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1929 | (exit $ac_status); }; }; then |
| 1930 | ac_compiler_gnu=yes |
| 1931 | else |
| 1932 | echo "$as_me: failed program was:" >&5 |
| 1933 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1934 | |
| 1935 | ac_compiler_gnu=no |
| 1936 | fi |
| 1937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1938 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1939 | |
| 1940 | fi |
| 1941 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1942 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1943 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1944 | ac_test_CFLAGS=${CFLAGS+set} |
| 1945 | ac_save_CFLAGS=$CFLAGS |
| 1946 | CFLAGS="-g" |
| 1947 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1948 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1949 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1951 | else |
| 1952 | cat >conftest.$ac_ext <<_ACEOF |
| 1953 | /* confdefs.h. */ |
| 1954 | _ACEOF |
| 1955 | cat confdefs.h >>conftest.$ac_ext |
| 1956 | cat >>conftest.$ac_ext <<_ACEOF |
| 1957 | /* end confdefs.h. */ |
| 1958 | |
| 1959 | int |
| 1960 | main () |
| 1961 | { |
| 1962 | |
| 1963 | ; |
| 1964 | return 0; |
| 1965 | } |
| 1966 | _ACEOF |
| 1967 | rm -f conftest.$ac_objext |
| 1968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1969 | (eval $ac_compile) 2>conftest.er1 |
| 1970 | ac_status=$? |
| 1971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 1972 | rm -f conftest.er1 |
| 1973 | cat conftest.err >&5 |
| 1974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1975 | (exit $ac_status); } && |
| 1976 | { ac_try='test -z "$ac_c_werror_flag" |
| 1977 | || test ! -s conftest.err' |
| 1978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1979 | (eval $ac_try) 2>&5 |
| 1980 | ac_status=$? |
| 1981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1982 | (exit $ac_status); }; } && |
| 1983 | { ac_try='test -s conftest.$ac_objext' |
| 1984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1985 | (eval $ac_try) 2>&5 |
| 1986 | ac_status=$? |
| 1987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1988 | (exit $ac_status); }; }; then |
| 1989 | ac_cv_prog_cc_g=yes |
| 1990 | else |
| 1991 | echo "$as_me: failed program was:" >&5 |
| 1992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1993 | |
| 1994 | ac_cv_prog_cc_g=no |
| 1995 | fi |
| 1996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1997 | fi |
| 1998 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 1999 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2000 | if test "$ac_test_CFLAGS" = set; then |
| 2001 | CFLAGS=$ac_save_CFLAGS |
| 2002 | elif test $ac_cv_prog_cc_g = yes; then |
| 2003 | if test "$GCC" = yes; then |
| 2004 | CFLAGS="-g -O2" |
| 2005 | else |
| 2006 | CFLAGS="-g" |
| 2007 | fi |
| 2008 | else |
| 2009 | if test "$GCC" = yes; then |
| 2010 | CFLAGS="-O2" |
| 2011 | else |
| 2012 | CFLAGS= |
| 2013 | fi |
| 2014 | fi |
| 2015 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2016 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2017 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2019 | else |
| 2020 | ac_cv_prog_cc_stdc=no |
| 2021 | ac_save_CC=$CC |
| 2022 | cat >conftest.$ac_ext <<_ACEOF |
| 2023 | /* confdefs.h. */ |
| 2024 | _ACEOF |
| 2025 | cat confdefs.h >>conftest.$ac_ext |
| 2026 | cat >>conftest.$ac_ext <<_ACEOF |
| 2027 | /* end confdefs.h. */ |
| 2028 | #include <stdarg.h> |
| 2029 | #include <stdio.h> |
| 2030 | #include <sys/types.h> |
| 2031 | #include <sys/stat.h> |
| 2032 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2033 | struct buf { int x; }; |
| 2034 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2035 | static char *e (p, i) |
| 2036 | char **p; |
| 2037 | int i; |
| 2038 | { |
| 2039 | return p[i]; |
| 2040 | } |
| 2041 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2042 | { |
| 2043 | char *s; |
| 2044 | va_list v; |
| 2045 | va_start (v,p); |
| 2046 | s = g (p, va_arg (v,int)); |
| 2047 | va_end (v); |
| 2048 | return s; |
| 2049 | } |
| 2050 | |
| 2051 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2052 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2053 | These don't provoke an error unfortunately, instead are silently treated |
| 2054 | as 'x'. The following induces an error, until -std1 is added to get |
| 2055 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2056 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2057 | that's true only with -std1. */ |
| 2058 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2059 | |
| 2060 | int test (int i, double x); |
| 2061 | struct s1 {int (*f) (int a);}; |
| 2062 | struct s2 {int (*f) (double a);}; |
| 2063 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2064 | int argc; |
| 2065 | char **argv; |
| 2066 | int |
| 2067 | main () |
| 2068 | { |
| 2069 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2070 | ; |
| 2071 | return 0; |
| 2072 | } |
| 2073 | _ACEOF |
| 2074 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2075 | # breaks some systems' header files. |
| 2076 | # AIX -qlanglvl=ansi |
| 2077 | # Ultrix and OSF/1 -std1 |
| 2078 | # HP-UX 10.20 and later -Ae |
| 2079 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2080 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2081 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2082 | do |
| 2083 | CC="$ac_save_CC $ac_arg" |
| 2084 | rm -f conftest.$ac_objext |
| 2085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2086 | (eval $ac_compile) 2>conftest.er1 |
| 2087 | ac_status=$? |
| 2088 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2089 | rm -f conftest.er1 |
| 2090 | cat conftest.err >&5 |
| 2091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2092 | (exit $ac_status); } && |
| 2093 | { ac_try='test -z "$ac_c_werror_flag" |
| 2094 | || test ! -s conftest.err' |
| 2095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2096 | (eval $ac_try) 2>&5 |
| 2097 | ac_status=$? |
| 2098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2099 | (exit $ac_status); }; } && |
| 2100 | { ac_try='test -s conftest.$ac_objext' |
| 2101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2102 | (eval $ac_try) 2>&5 |
| 2103 | ac_status=$? |
| 2104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2105 | (exit $ac_status); }; }; then |
| 2106 | ac_cv_prog_cc_stdc=$ac_arg |
| 2107 | break |
| 2108 | else |
| 2109 | echo "$as_me: failed program was:" >&5 |
| 2110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2111 | |
| 2112 | fi |
| 2113 | rm -f conftest.err conftest.$ac_objext |
| 2114 | done |
| 2115 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2116 | CC=$ac_save_CC |
| 2117 | |
| 2118 | fi |
| 2119 | |
| 2120 | case "x$ac_cv_prog_cc_stdc" in |
| 2121 | x|xno) |
| 2122 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2123 | echo "${ECHO_T}none needed" >&6 ;; |
| 2124 | *) |
| 2125 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2126 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2127 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2128 | esac |
| 2129 | |
| 2130 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2131 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2132 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2133 | # the declaration of exit, since it's the most demanding environment. |
| 2134 | cat >conftest.$ac_ext <<_ACEOF |
| 2135 | #ifndef __cplusplus |
| 2136 | choke me |
| 2137 | #endif |
| 2138 | _ACEOF |
| 2139 | rm -f conftest.$ac_objext |
| 2140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2141 | (eval $ac_compile) 2>conftest.er1 |
| 2142 | ac_status=$? |
| 2143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2144 | rm -f conftest.er1 |
| 2145 | cat conftest.err >&5 |
| 2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2147 | (exit $ac_status); } && |
| 2148 | { ac_try='test -z "$ac_c_werror_flag" |
| 2149 | || test ! -s conftest.err' |
| 2150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2151 | (eval $ac_try) 2>&5 |
| 2152 | ac_status=$? |
| 2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2154 | (exit $ac_status); }; } && |
| 2155 | { ac_try='test -s conftest.$ac_objext' |
| 2156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2157 | (eval $ac_try) 2>&5 |
| 2158 | ac_status=$? |
| 2159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2160 | (exit $ac_status); }; }; then |
| 2161 | for ac_declaration in \ |
| 2162 | '' \ |
| 2163 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2164 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2165 | 'extern "C" void exit (int) throw ();' \ |
| 2166 | 'extern "C" void exit (int);' \ |
| 2167 | 'void exit (int);' |
| 2168 | do |
| 2169 | cat >conftest.$ac_ext <<_ACEOF |
| 2170 | /* confdefs.h. */ |
| 2171 | _ACEOF |
| 2172 | cat confdefs.h >>conftest.$ac_ext |
| 2173 | cat >>conftest.$ac_ext <<_ACEOF |
| 2174 | /* end confdefs.h. */ |
| 2175 | $ac_declaration |
| 2176 | #include <stdlib.h> |
| 2177 | int |
| 2178 | main () |
| 2179 | { |
| 2180 | exit (42); |
| 2181 | ; |
| 2182 | return 0; |
| 2183 | } |
| 2184 | _ACEOF |
| 2185 | rm -f conftest.$ac_objext |
| 2186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2187 | (eval $ac_compile) 2>conftest.er1 |
| 2188 | ac_status=$? |
| 2189 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2190 | rm -f conftest.er1 |
| 2191 | cat conftest.err >&5 |
| 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2193 | (exit $ac_status); } && |
| 2194 | { ac_try='test -z "$ac_c_werror_flag" |
| 2195 | || test ! -s conftest.err' |
| 2196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2197 | (eval $ac_try) 2>&5 |
| 2198 | ac_status=$? |
| 2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2200 | (exit $ac_status); }; } && |
| 2201 | { ac_try='test -s conftest.$ac_objext' |
| 2202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2203 | (eval $ac_try) 2>&5 |
| 2204 | ac_status=$? |
| 2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2206 | (exit $ac_status); }; }; then |
| 2207 | : |
| 2208 | else |
| 2209 | echo "$as_me: failed program was:" >&5 |
| 2210 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2211 | |
| 2212 | continue |
| 2213 | fi |
| 2214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2215 | cat >conftest.$ac_ext <<_ACEOF |
| 2216 | /* confdefs.h. */ |
| 2217 | _ACEOF |
| 2218 | cat confdefs.h >>conftest.$ac_ext |
| 2219 | cat >>conftest.$ac_ext <<_ACEOF |
| 2220 | /* end confdefs.h. */ |
| 2221 | $ac_declaration |
| 2222 | int |
| 2223 | main () |
| 2224 | { |
| 2225 | exit (42); |
| 2226 | ; |
| 2227 | return 0; |
| 2228 | } |
| 2229 | _ACEOF |
| 2230 | rm -f conftest.$ac_objext |
| 2231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2232 | (eval $ac_compile) 2>conftest.er1 |
| 2233 | ac_status=$? |
| 2234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2235 | rm -f conftest.er1 |
| 2236 | cat conftest.err >&5 |
| 2237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2238 | (exit $ac_status); } && |
| 2239 | { ac_try='test -z "$ac_c_werror_flag" |
| 2240 | || test ! -s conftest.err' |
| 2241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2242 | (eval $ac_try) 2>&5 |
| 2243 | ac_status=$? |
| 2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2245 | (exit $ac_status); }; } && |
| 2246 | { ac_try='test -s conftest.$ac_objext' |
| 2247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2248 | (eval $ac_try) 2>&5 |
| 2249 | ac_status=$? |
| 2250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2251 | (exit $ac_status); }; }; then |
| 2252 | break |
| 2253 | else |
| 2254 | echo "$as_me: failed program was:" >&5 |
| 2255 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2256 | |
| 2257 | fi |
| 2258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2259 | done |
| 2260 | rm -f conftest* |
| 2261 | if test -n "$ac_declaration"; then |
| 2262 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2263 | echo $ac_declaration >>confdefs.h |
| 2264 | echo '#endif' >>confdefs.h |
| 2265 | fi |
| 2266 | |
| 2267 | else |
| 2268 | echo "$as_me: failed program was:" >&5 |
| 2269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2270 | |
| 2271 | fi |
| 2272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2273 | ac_ext=c |
| 2274 | ac_cpp='$CPP $CPPFLAGS' |
| 2275 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2276 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2277 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2278 | |
| 2279 | ac_ext=cc |
| 2280 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2281 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2282 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2283 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2284 | if test -n "$ac_tool_prefix"; then |
| 2285 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2286 | do |
| 2287 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2288 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2289 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2290 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2291 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 2292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2293 | else |
| 2294 | if test -n "$CXX"; then |
| 2295 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 2296 | else |
| 2297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2298 | for as_dir in $PATH |
| 2299 | do |
| 2300 | IFS=$as_save_IFS |
| 2301 | test -z "$as_dir" && as_dir=. |
| 2302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2303 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2304 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 2305 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2306 | break 2 |
| 2307 | fi |
| 2308 | done |
| 2309 | done |
| 2310 | |
| 2311 | fi |
| 2312 | fi |
| 2313 | CXX=$ac_cv_prog_CXX |
| 2314 | if test -n "$CXX"; then |
| 2315 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 2316 | echo "${ECHO_T}$CXX" >&6 |
| 2317 | else |
| 2318 | echo "$as_me:$LINENO: result: no" >&5 |
| 2319 | echo "${ECHO_T}no" >&6 |
| 2320 | fi |
| 2321 | |
| 2322 | test -n "$CXX" && break |
| 2323 | done |
| 2324 | fi |
| 2325 | if test -z "$CXX"; then |
| 2326 | ac_ct_CXX=$CXX |
| 2327 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 2328 | do |
| 2329 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2330 | set dummy $ac_prog; ac_word=$2 |
| 2331 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2333 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 2334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2335 | else |
| 2336 | if test -n "$ac_ct_CXX"; then |
| 2337 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 2338 | else |
| 2339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2340 | for as_dir in $PATH |
| 2341 | do |
| 2342 | IFS=$as_save_IFS |
| 2343 | test -z "$as_dir" && as_dir=. |
| 2344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2346 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 2347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2348 | break 2 |
| 2349 | fi |
| 2350 | done |
| 2351 | done |
| 2352 | |
| 2353 | fi |
| 2354 | fi |
| 2355 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 2356 | if test -n "$ac_ct_CXX"; then |
| 2357 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 2358 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 2359 | else |
| 2360 | echo "$as_me:$LINENO: result: no" >&5 |
| 2361 | echo "${ECHO_T}no" >&6 |
| 2362 | fi |
| 2363 | |
| 2364 | test -n "$ac_ct_CXX" && break |
| 2365 | done |
| 2366 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 2367 | |
| 2368 | CXX=$ac_ct_CXX |
| 2369 | fi |
| 2370 | |
| 2371 | |
| 2372 | # Provide some information about the compiler. |
| 2373 | echo "$as_me:$LINENO:" \ |
| 2374 | "checking for C++ compiler version" >&5 |
| 2375 | ac_compiler=`set X $ac_compile; echo $2` |
| 2376 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2377 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2378 | ac_status=$? |
| 2379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2380 | (exit $ac_status); } |
| 2381 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2382 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2383 | ac_status=$? |
| 2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2385 | (exit $ac_status); } |
| 2386 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2387 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2388 | ac_status=$? |
| 2389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2390 | (exit $ac_status); } |
| 2391 | |
| 2392 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 2393 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 2394 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 2395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2396 | else |
| 2397 | cat >conftest.$ac_ext <<_ACEOF |
| 2398 | /* confdefs.h. */ |
| 2399 | _ACEOF |
| 2400 | cat confdefs.h >>conftest.$ac_ext |
| 2401 | cat >>conftest.$ac_ext <<_ACEOF |
| 2402 | /* end confdefs.h. */ |
| 2403 | |
| 2404 | int |
| 2405 | main () |
| 2406 | { |
| 2407 | #ifndef __GNUC__ |
| 2408 | choke me |
| 2409 | #endif |
| 2410 | |
| 2411 | ; |
| 2412 | return 0; |
| 2413 | } |
| 2414 | _ACEOF |
| 2415 | rm -f conftest.$ac_objext |
| 2416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2417 | (eval $ac_compile) 2>conftest.er1 |
| 2418 | ac_status=$? |
| 2419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2420 | rm -f conftest.er1 |
| 2421 | cat conftest.err >&5 |
| 2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2423 | (exit $ac_status); } && |
| 2424 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2425 | || test ! -s conftest.err' |
| 2426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2427 | (eval $ac_try) 2>&5 |
| 2428 | ac_status=$? |
| 2429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2430 | (exit $ac_status); }; } && |
| 2431 | { ac_try='test -s conftest.$ac_objext' |
| 2432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2433 | (eval $ac_try) 2>&5 |
| 2434 | ac_status=$? |
| 2435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2436 | (exit $ac_status); }; }; then |
| 2437 | ac_compiler_gnu=yes |
| 2438 | else |
| 2439 | echo "$as_me: failed program was:" >&5 |
| 2440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2441 | |
| 2442 | ac_compiler_gnu=no |
| 2443 | fi |
| 2444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2445 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 2446 | |
| 2447 | fi |
| 2448 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 2449 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 2450 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 2451 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 2452 | ac_save_CXXFLAGS=$CXXFLAGS |
| 2453 | CXXFLAGS="-g" |
| 2454 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 2455 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 2456 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 2457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2458 | else |
| 2459 | cat >conftest.$ac_ext <<_ACEOF |
| 2460 | /* confdefs.h. */ |
| 2461 | _ACEOF |
| 2462 | cat confdefs.h >>conftest.$ac_ext |
| 2463 | cat >>conftest.$ac_ext <<_ACEOF |
| 2464 | /* end confdefs.h. */ |
| 2465 | |
| 2466 | int |
| 2467 | main () |
| 2468 | { |
| 2469 | |
| 2470 | ; |
| 2471 | return 0; |
| 2472 | } |
| 2473 | _ACEOF |
| 2474 | rm -f conftest.$ac_objext |
| 2475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2476 | (eval $ac_compile) 2>conftest.er1 |
| 2477 | ac_status=$? |
| 2478 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2479 | rm -f conftest.er1 |
| 2480 | cat conftest.err >&5 |
| 2481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2482 | (exit $ac_status); } && |
| 2483 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2484 | || test ! -s conftest.err' |
| 2485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2486 | (eval $ac_try) 2>&5 |
| 2487 | ac_status=$? |
| 2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2489 | (exit $ac_status); }; } && |
| 2490 | { ac_try='test -s conftest.$ac_objext' |
| 2491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2492 | (eval $ac_try) 2>&5 |
| 2493 | ac_status=$? |
| 2494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2495 | (exit $ac_status); }; }; then |
| 2496 | ac_cv_prog_cxx_g=yes |
| 2497 | else |
| 2498 | echo "$as_me: failed program was:" >&5 |
| 2499 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2500 | |
| 2501 | ac_cv_prog_cxx_g=no |
| 2502 | fi |
| 2503 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2504 | fi |
| 2505 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 2506 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 2507 | if test "$ac_test_CXXFLAGS" = set; then |
| 2508 | CXXFLAGS=$ac_save_CXXFLAGS |
| 2509 | elif test $ac_cv_prog_cxx_g = yes; then |
| 2510 | if test "$GXX" = yes; then |
| 2511 | CXXFLAGS="-g -O2" |
| 2512 | else |
| 2513 | CXXFLAGS="-g" |
| 2514 | fi |
| 2515 | else |
| 2516 | if test "$GXX" = yes; then |
| 2517 | CXXFLAGS="-O2" |
| 2518 | else |
| 2519 | CXXFLAGS= |
| 2520 | fi |
| 2521 | fi |
| 2522 | for ac_declaration in \ |
| 2523 | '' \ |
| 2524 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2525 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2526 | 'extern "C" void exit (int) throw ();' \ |
| 2527 | 'extern "C" void exit (int);' \ |
| 2528 | 'void exit (int);' |
| 2529 | do |
| 2530 | cat >conftest.$ac_ext <<_ACEOF |
| 2531 | /* confdefs.h. */ |
| 2532 | _ACEOF |
| 2533 | cat confdefs.h >>conftest.$ac_ext |
| 2534 | cat >>conftest.$ac_ext <<_ACEOF |
| 2535 | /* end confdefs.h. */ |
| 2536 | $ac_declaration |
| 2537 | #include <stdlib.h> |
| 2538 | int |
| 2539 | main () |
| 2540 | { |
| 2541 | exit (42); |
| 2542 | ; |
| 2543 | return 0; |
| 2544 | } |
| 2545 | _ACEOF |
| 2546 | rm -f conftest.$ac_objext |
| 2547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2548 | (eval $ac_compile) 2>conftest.er1 |
| 2549 | ac_status=$? |
| 2550 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2551 | rm -f conftest.er1 |
| 2552 | cat conftest.err >&5 |
| 2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2554 | (exit $ac_status); } && |
| 2555 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2556 | || test ! -s conftest.err' |
| 2557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2558 | (eval $ac_try) 2>&5 |
| 2559 | ac_status=$? |
| 2560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2561 | (exit $ac_status); }; } && |
| 2562 | { ac_try='test -s conftest.$ac_objext' |
| 2563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2564 | (eval $ac_try) 2>&5 |
| 2565 | ac_status=$? |
| 2566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2567 | (exit $ac_status); }; }; then |
| 2568 | : |
| 2569 | else |
| 2570 | echo "$as_me: failed program was:" >&5 |
| 2571 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2572 | |
| 2573 | continue |
| 2574 | fi |
| 2575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2576 | cat >conftest.$ac_ext <<_ACEOF |
| 2577 | /* confdefs.h. */ |
| 2578 | _ACEOF |
| 2579 | cat confdefs.h >>conftest.$ac_ext |
| 2580 | cat >>conftest.$ac_ext <<_ACEOF |
| 2581 | /* end confdefs.h. */ |
| 2582 | $ac_declaration |
| 2583 | int |
| 2584 | main () |
| 2585 | { |
| 2586 | exit (42); |
| 2587 | ; |
| 2588 | return 0; |
| 2589 | } |
| 2590 | _ACEOF |
| 2591 | rm -f conftest.$ac_objext |
| 2592 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2593 | (eval $ac_compile) 2>conftest.er1 |
| 2594 | ac_status=$? |
| 2595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2596 | rm -f conftest.er1 |
| 2597 | cat conftest.err >&5 |
| 2598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2599 | (exit $ac_status); } && |
| 2600 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2601 | || test ! -s conftest.err' |
| 2602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2603 | (eval $ac_try) 2>&5 |
| 2604 | ac_status=$? |
| 2605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2606 | (exit $ac_status); }; } && |
| 2607 | { ac_try='test -s conftest.$ac_objext' |
| 2608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2609 | (eval $ac_try) 2>&5 |
| 2610 | ac_status=$? |
| 2611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2612 | (exit $ac_status); }; }; then |
| 2613 | break |
| 2614 | else |
| 2615 | echo "$as_me: failed program was:" >&5 |
| 2616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2617 | |
| 2618 | fi |
| 2619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2620 | done |
| 2621 | rm -f conftest* |
| 2622 | if test -n "$ac_declaration"; then |
| 2623 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2624 | echo $ac_declaration >>confdefs.h |
| 2625 | echo '#endif' >>confdefs.h |
| 2626 | fi |
| 2627 | |
| 2628 | ac_ext=c |
| 2629 | ac_cpp='$CPP $CPPFLAGS' |
| 2630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2633 | |
| 2634 | if test -n "$ac_tool_prefix"; then |
| 2635 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 2636 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 2637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2639 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 2640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2641 | else |
| 2642 | if test -n "$RANLIB"; then |
| 2643 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 2644 | else |
| 2645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2646 | for as_dir in $PATH |
| 2647 | do |
| 2648 | IFS=$as_save_IFS |
| 2649 | test -z "$as_dir" && as_dir=. |
| 2650 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2651 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2652 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 2653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2654 | break 2 |
| 2655 | fi |
| 2656 | done |
| 2657 | done |
| 2658 | |
| 2659 | fi |
| 2660 | fi |
| 2661 | RANLIB=$ac_cv_prog_RANLIB |
| 2662 | if test -n "$RANLIB"; then |
| 2663 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 2664 | echo "${ECHO_T}$RANLIB" >&6 |
| 2665 | else |
| 2666 | echo "$as_me:$LINENO: result: no" >&5 |
| 2667 | echo "${ECHO_T}no" >&6 |
| 2668 | fi |
| 2669 | |
| 2670 | fi |
| 2671 | if test -z "$ac_cv_prog_RANLIB"; then |
| 2672 | ac_ct_RANLIB=$RANLIB |
| 2673 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 2674 | set dummy ranlib; ac_word=$2 |
| 2675 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2677 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 2678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2679 | else |
| 2680 | if test -n "$ac_ct_RANLIB"; then |
| 2681 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 2682 | else |
| 2683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2684 | for as_dir in $PATH |
| 2685 | do |
| 2686 | IFS=$as_save_IFS |
| 2687 | test -z "$as_dir" && as_dir=. |
| 2688 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2690 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 2691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2692 | break 2 |
| 2693 | fi |
| 2694 | done |
| 2695 | done |
| 2696 | |
| 2697 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 2698 | fi |
| 2699 | fi |
| 2700 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 2701 | if test -n "$ac_ct_RANLIB"; then |
| 2702 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 2703 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 2704 | else |
| 2705 | echo "$as_me:$LINENO: result: no" >&5 |
| 2706 | echo "${ECHO_T}no" >&6 |
| 2707 | fi |
| 2708 | |
| 2709 | RANLIB=$ac_ct_RANLIB |
| 2710 | else |
| 2711 | RANLIB="$ac_cv_prog_RANLIB" |
| 2712 | fi |
| 2713 | |
| 2714 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2715 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 2716 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 2717 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 2718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2719 | else |
| 2720 | cat >conftest.make <<\_ACEOF |
| 2721 | all: |
| 2722 | @echo 'ac_maketemp="$(MAKE)"' |
| 2723 | _ACEOF |
| 2724 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2725 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 2726 | if test -n "$ac_maketemp"; then |
| 2727 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 2728 | else |
| 2729 | eval ac_cv_prog_make_${ac_make}_set=no |
| 2730 | fi |
| 2731 | rm -f conftest.make |
| 2732 | fi |
| 2733 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 2734 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2735 | echo "${ECHO_T}yes" >&6 |
| 2736 | SET_MAKE= |
| 2737 | else |
| 2738 | echo "$as_me:$LINENO: result: no" >&5 |
| 2739 | echo "${ECHO_T}no" >&6 |
| 2740 | SET_MAKE="MAKE=${MAKE-make}" |
| 2741 | fi |
| 2742 | |
| 2743 | ac_ext=cc |
| 2744 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2745 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2746 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2747 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2748 | |
| 2749 | |
| 2750 | case "`(uname -sr) 2>/dev/null`" in |
| 2751 | "SunOS 5"*) |
| 2752 | SOLARIS=yes |
| 2753 | USE_MITSHM=yes |
| 2754 | USE_SUN_OVL=yes |
| 2755 | ;; |
| 2756 | "Linux"*) |
| 2757 | LINUX=yes |
| 2758 | USE_MITSHM=yes |
| 2759 | ;; |
| 2760 | "IRIX 6"*) |
| 2761 | X_LIBS="-L/usr/lib32" |
| 2762 | USE_MITSHM=yes |
| 2763 | USE_READDISPLAY=yes |
| 2764 | ;; |
| 2765 | "LynxOS 2"*) |
| 2766 | SJLJ_EXCEPTIONS=yes |
| 2767 | ;; |
| 2768 | esac |
| 2769 | |
| 2770 | if test "$USE_MITSHM" = yes; then |
| 2771 | MITSHM_DEFINE="-DHAVE_MITSHM" |
| 2772 | fi |
| 2773 | |
| 2774 | |
| 2775 | if test "$GCC" = yes; then |
| 2776 | CFLAGS="$CFLAGS -Wall" |
| 2777 | if test "$SOLARIS" = yes; then |
| 2778 | CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int" |
| 2779 | fi |
| 2780 | fi |
| 2781 | if test "$GXX" = yes; then |
| 2782 | CXXFLAGS="$CXXFLAGS -Wall" |
| 2783 | if test "$SOLARIS" = yes; then |
| 2784 | CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive" |
| 2785 | fi |
| 2786 | if test "$SJLJ_EXCEPTIONS" = yes; then |
| 2787 | CXXFLAGS="$CXXFLAGS -fsjlj-exceptions" |
| 2788 | fi |
| 2789 | fi |
| 2790 | |
| 2791 | |
Constantin Kaplinsky | a874881 | 2007-09-05 09:29:06 +0000 | [diff] [blame^] | 2792 | echo "$as_me:$LINENO: checking for dmICCreate in -ldmedia" >&5 |
| 2793 | echo $ECHO_N "checking for dmICCreate in -ldmedia... $ECHO_C" >&6 |
| 2794 | if test "${ac_cv_lib_dmedia_dmICCreate+set}" = set; then |
| 2795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2796 | else |
| 2797 | ac_check_lib_save_LIBS=$LIBS |
| 2798 | LIBS="-ldmedia $LIBS" |
| 2799 | cat >conftest.$ac_ext <<_ACEOF |
| 2800 | /* confdefs.h. */ |
| 2801 | _ACEOF |
| 2802 | cat confdefs.h >>conftest.$ac_ext |
| 2803 | cat >>conftest.$ac_ext <<_ACEOF |
| 2804 | /* end confdefs.h. */ |
| 2805 | |
| 2806 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2807 | #ifdef __cplusplus |
| 2808 | extern "C" |
| 2809 | #endif |
| 2810 | /* We use char because int might match the return type of a gcc2 |
| 2811 | builtin and then its argument prototype would still apply. */ |
| 2812 | char dmICCreate (); |
| 2813 | int |
| 2814 | main () |
| 2815 | { |
| 2816 | dmICCreate (); |
| 2817 | ; |
| 2818 | return 0; |
| 2819 | } |
| 2820 | _ACEOF |
| 2821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2823 | (eval $ac_link) 2>conftest.er1 |
| 2824 | ac_status=$? |
| 2825 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2826 | rm -f conftest.er1 |
| 2827 | cat conftest.err >&5 |
| 2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2829 | (exit $ac_status); } && |
| 2830 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 2831 | || test ! -s conftest.err' |
| 2832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2833 | (eval $ac_try) 2>&5 |
| 2834 | ac_status=$? |
| 2835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2836 | (exit $ac_status); }; } && |
| 2837 | { ac_try='test -s conftest$ac_exeext' |
| 2838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2839 | (eval $ac_try) 2>&5 |
| 2840 | ac_status=$? |
| 2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2842 | (exit $ac_status); }; }; then |
| 2843 | ac_cv_lib_dmedia_dmICCreate=yes |
| 2844 | else |
| 2845 | echo "$as_me: failed program was:" >&5 |
| 2846 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2847 | |
| 2848 | ac_cv_lib_dmedia_dmICCreate=no |
| 2849 | fi |
| 2850 | rm -f conftest.err conftest.$ac_objext \ |
| 2851 | conftest$ac_exeext conftest.$ac_ext |
| 2852 | LIBS=$ac_check_lib_save_LIBS |
| 2853 | fi |
| 2854 | echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmICCreate" >&5 |
| 2855 | echo "${ECHO_T}$ac_cv_lib_dmedia_dmICCreate" >&6 |
| 2856 | if test $ac_cv_lib_dmedia_dmICCreate = yes; then |
| 2857 | cat >>confdefs.h <<\_ACEOF |
| 2858 | #define HAVE_DMEDIA 1 |
| 2859 | _ACEOF |
| 2860 | |
| 2861 | DMEDIA_LIB=-ldmedia |
| 2862 | fi |
| 2863 | |
| 2864 | |
| 2865 | |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 2866 | ac_ext=cc |
| 2867 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2868 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2869 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2870 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 2871 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 2872 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 2873 | if test -z "$CXXCPP"; then |
| 2874 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2876 | else |
| 2877 | # Double quotes because CXXCPP needs to be expanded |
| 2878 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 2879 | do |
| 2880 | ac_preproc_ok=false |
| 2881 | for ac_cxx_preproc_warn_flag in '' yes |
| 2882 | do |
| 2883 | # Use a header file that comes with gcc, so configuring glibc |
| 2884 | # with a fresh cross-compiler works. |
| 2885 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2886 | # <limits.h> exists even on freestanding compilers. |
| 2887 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2888 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2889 | cat >conftest.$ac_ext <<_ACEOF |
| 2890 | /* confdefs.h. */ |
| 2891 | _ACEOF |
| 2892 | cat confdefs.h >>conftest.$ac_ext |
| 2893 | cat >>conftest.$ac_ext <<_ACEOF |
| 2894 | /* end confdefs.h. */ |
| 2895 | #ifdef __STDC__ |
| 2896 | # include <limits.h> |
| 2897 | #else |
| 2898 | # include <assert.h> |
| 2899 | #endif |
| 2900 | Syntax error |
| 2901 | _ACEOF |
| 2902 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2903 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2904 | ac_status=$? |
| 2905 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2906 | rm -f conftest.er1 |
| 2907 | cat conftest.err >&5 |
| 2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2909 | (exit $ac_status); } >/dev/null; then |
| 2910 | if test -s conftest.err; then |
| 2911 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 2912 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 2913 | else |
| 2914 | ac_cpp_err= |
| 2915 | fi |
| 2916 | else |
| 2917 | ac_cpp_err=yes |
| 2918 | fi |
| 2919 | if test -z "$ac_cpp_err"; then |
| 2920 | : |
| 2921 | else |
| 2922 | echo "$as_me: failed program was:" >&5 |
| 2923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2924 | |
| 2925 | # Broken: fails on valid input. |
| 2926 | continue |
| 2927 | fi |
| 2928 | rm -f conftest.err conftest.$ac_ext |
| 2929 | |
| 2930 | # OK, works on sane cases. Now check whether non-existent headers |
| 2931 | # can be detected and how. |
| 2932 | cat >conftest.$ac_ext <<_ACEOF |
| 2933 | /* confdefs.h. */ |
| 2934 | _ACEOF |
| 2935 | cat confdefs.h >>conftest.$ac_ext |
| 2936 | cat >>conftest.$ac_ext <<_ACEOF |
| 2937 | /* end confdefs.h. */ |
| 2938 | #include <ac_nonexistent.h> |
| 2939 | _ACEOF |
| 2940 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2941 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2942 | ac_status=$? |
| 2943 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2944 | rm -f conftest.er1 |
| 2945 | cat conftest.err >&5 |
| 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2947 | (exit $ac_status); } >/dev/null; then |
| 2948 | if test -s conftest.err; then |
| 2949 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 2950 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 2951 | else |
| 2952 | ac_cpp_err= |
| 2953 | fi |
| 2954 | else |
| 2955 | ac_cpp_err=yes |
| 2956 | fi |
| 2957 | if test -z "$ac_cpp_err"; then |
| 2958 | # Broken: success on invalid input. |
| 2959 | continue |
| 2960 | else |
| 2961 | echo "$as_me: failed program was:" >&5 |
| 2962 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2963 | |
| 2964 | # Passes both tests. |
| 2965 | ac_preproc_ok=: |
| 2966 | break |
| 2967 | fi |
| 2968 | rm -f conftest.err conftest.$ac_ext |
| 2969 | |
| 2970 | done |
| 2971 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2972 | rm -f conftest.err conftest.$ac_ext |
| 2973 | if $ac_preproc_ok; then |
| 2974 | break |
| 2975 | fi |
| 2976 | |
| 2977 | done |
| 2978 | ac_cv_prog_CXXCPP=$CXXCPP |
| 2979 | |
| 2980 | fi |
| 2981 | CXXCPP=$ac_cv_prog_CXXCPP |
| 2982 | else |
| 2983 | ac_cv_prog_CXXCPP=$CXXCPP |
| 2984 | fi |
| 2985 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 2986 | echo "${ECHO_T}$CXXCPP" >&6 |
| 2987 | ac_preproc_ok=false |
| 2988 | for ac_cxx_preproc_warn_flag in '' yes |
| 2989 | do |
| 2990 | # Use a header file that comes with gcc, so configuring glibc |
| 2991 | # with a fresh cross-compiler works. |
| 2992 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2993 | # <limits.h> exists even on freestanding compilers. |
| 2994 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2995 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2996 | cat >conftest.$ac_ext <<_ACEOF |
| 2997 | /* confdefs.h. */ |
| 2998 | _ACEOF |
| 2999 | cat confdefs.h >>conftest.$ac_ext |
| 3000 | cat >>conftest.$ac_ext <<_ACEOF |
| 3001 | /* end confdefs.h. */ |
| 3002 | #ifdef __STDC__ |
| 3003 | # include <limits.h> |
| 3004 | #else |
| 3005 | # include <assert.h> |
| 3006 | #endif |
| 3007 | Syntax error |
| 3008 | _ACEOF |
| 3009 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3010 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3011 | ac_status=$? |
| 3012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3013 | rm -f conftest.er1 |
| 3014 | cat conftest.err >&5 |
| 3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3016 | (exit $ac_status); } >/dev/null; then |
| 3017 | if test -s conftest.err; then |
| 3018 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 3019 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 3020 | else |
| 3021 | ac_cpp_err= |
| 3022 | fi |
| 3023 | else |
| 3024 | ac_cpp_err=yes |
| 3025 | fi |
| 3026 | if test -z "$ac_cpp_err"; then |
| 3027 | : |
| 3028 | else |
| 3029 | echo "$as_me: failed program was:" >&5 |
| 3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3031 | |
| 3032 | # Broken: fails on valid input. |
| 3033 | continue |
| 3034 | fi |
| 3035 | rm -f conftest.err conftest.$ac_ext |
| 3036 | |
| 3037 | # OK, works on sane cases. Now check whether non-existent headers |
| 3038 | # can be detected and how. |
| 3039 | cat >conftest.$ac_ext <<_ACEOF |
| 3040 | /* confdefs.h. */ |
| 3041 | _ACEOF |
| 3042 | cat confdefs.h >>conftest.$ac_ext |
| 3043 | cat >>conftest.$ac_ext <<_ACEOF |
| 3044 | /* end confdefs.h. */ |
| 3045 | #include <ac_nonexistent.h> |
| 3046 | _ACEOF |
| 3047 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3048 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3049 | ac_status=$? |
| 3050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3051 | rm -f conftest.er1 |
| 3052 | cat conftest.err >&5 |
| 3053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3054 | (exit $ac_status); } >/dev/null; then |
| 3055 | if test -s conftest.err; then |
| 3056 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 3057 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 3058 | else |
| 3059 | ac_cpp_err= |
| 3060 | fi |
| 3061 | else |
| 3062 | ac_cpp_err=yes |
| 3063 | fi |
| 3064 | if test -z "$ac_cpp_err"; then |
| 3065 | # Broken: success on invalid input. |
| 3066 | continue |
| 3067 | else |
| 3068 | echo "$as_me: failed program was:" >&5 |
| 3069 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3070 | |
| 3071 | # Passes both tests. |
| 3072 | ac_preproc_ok=: |
| 3073 | break |
| 3074 | fi |
| 3075 | rm -f conftest.err conftest.$ac_ext |
| 3076 | |
| 3077 | done |
| 3078 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3079 | rm -f conftest.err conftest.$ac_ext |
| 3080 | if $ac_preproc_ok; then |
| 3081 | : |
| 3082 | else |
| 3083 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 3084 | See \`config.log' for more details." >&5 |
| 3085 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 3086 | See \`config.log' for more details." >&2;} |
| 3087 | { (exit 1); exit 1; }; } |
| 3088 | fi |
| 3089 | |
| 3090 | ac_ext=cc |
| 3091 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 3092 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3093 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3094 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 3095 | |
| 3096 | |
| 3097 | echo "$as_me:$LINENO: checking for X" >&5 |
| 3098 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 3099 | |
| 3100 | |
| 3101 | # Check whether --with-x or --without-x was given. |
| 3102 | if test "${with_x+set}" = set; then |
| 3103 | withval="$with_x" |
| 3104 | |
| 3105 | fi; |
| 3106 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 3107 | if test "x$with_x" = xno; then |
| 3108 | # The user explicitly disabled X. |
| 3109 | have_x=disabled |
| 3110 | else |
| 3111 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 3112 | # Both variables are already set. |
| 3113 | have_x=yes |
| 3114 | else |
| 3115 | if test "${ac_cv_have_x+set}" = set; then |
| 3116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3117 | else |
| 3118 | # One or both of the vars are not set, and there is no cached value. |
| 3119 | ac_x_includes=no ac_x_libraries=no |
| 3120 | rm -fr conftest.dir |
| 3121 | if mkdir conftest.dir; then |
| 3122 | cd conftest.dir |
| 3123 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 3124 | cat >Imakefile <<'_ACEOF' |
| 3125 | acfindx: |
| 3126 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 3127 | _ACEOF |
| 3128 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 3129 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3130 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 3131 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 3132 | for ac_extension in a so sl; do |
| 3133 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 3134 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 3135 | ac_im_usrlibdir=$ac_im_libdir; break |
| 3136 | fi |
| 3137 | done |
| 3138 | # Screen out bogus values from the imake configuration. They are |
| 3139 | # bogus both because they are the default anyway, and because |
| 3140 | # using them would break gcc on systems where it needs fixed includes. |
| 3141 | case $ac_im_incroot in |
| 3142 | /usr/include) ;; |
| 3143 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 3144 | esac |
| 3145 | case $ac_im_usrlibdir in |
| 3146 | /usr/lib | /lib) ;; |
| 3147 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 3148 | esac |
| 3149 | fi |
| 3150 | cd .. |
| 3151 | rm -fr conftest.dir |
| 3152 | fi |
| 3153 | |
| 3154 | # Standard set of common directories for X headers. |
| 3155 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3156 | ac_x_header_dirs=' |
| 3157 | /usr/X11/include |
| 3158 | /usr/X11R6/include |
| 3159 | /usr/X11R5/include |
| 3160 | /usr/X11R4/include |
| 3161 | |
| 3162 | /usr/include/X11 |
| 3163 | /usr/include/X11R6 |
| 3164 | /usr/include/X11R5 |
| 3165 | /usr/include/X11R4 |
| 3166 | |
| 3167 | /usr/local/X11/include |
| 3168 | /usr/local/X11R6/include |
| 3169 | /usr/local/X11R5/include |
| 3170 | /usr/local/X11R4/include |
| 3171 | |
| 3172 | /usr/local/include/X11 |
| 3173 | /usr/local/include/X11R6 |
| 3174 | /usr/local/include/X11R5 |
| 3175 | /usr/local/include/X11R4 |
| 3176 | |
| 3177 | /usr/X386/include |
| 3178 | /usr/x386/include |
| 3179 | /usr/XFree86/include/X11 |
| 3180 | |
| 3181 | /usr/include |
| 3182 | /usr/local/include |
| 3183 | /usr/unsupported/include |
| 3184 | /usr/athena/include |
| 3185 | /usr/local/x11r5/include |
| 3186 | /usr/lpp/Xamples/include |
| 3187 | |
| 3188 | /usr/openwin/include |
| 3189 | /usr/openwin/share/include' |
| 3190 | |
| 3191 | if test "$ac_x_includes" = no; then |
Constantin Kaplinsky | a874881 | 2007-09-05 09:29:06 +0000 | [diff] [blame^] | 3192 | # Guess where to find include files, by looking for Xlib.h. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 3193 | # First, try using that file with no special directory specified. |
| 3194 | cat >conftest.$ac_ext <<_ACEOF |
| 3195 | /* confdefs.h. */ |
| 3196 | _ACEOF |
| 3197 | cat confdefs.h >>conftest.$ac_ext |
| 3198 | cat >>conftest.$ac_ext <<_ACEOF |
| 3199 | /* end confdefs.h. */ |
Constantin Kaplinsky | a874881 | 2007-09-05 09:29:06 +0000 | [diff] [blame^] | 3200 | #include <X11/Xlib.h> |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 3201 | _ACEOF |
| 3202 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3203 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3204 | ac_status=$? |
| 3205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3206 | rm -f conftest.er1 |
| 3207 | cat conftest.err >&5 |
| 3208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3209 | (exit $ac_status); } >/dev/null; then |
| 3210 | if test -s conftest.err; then |
| 3211 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 3212 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 3213 | else |
| 3214 | ac_cpp_err= |
| 3215 | fi |
| 3216 | else |
| 3217 | ac_cpp_err=yes |
| 3218 | fi |
| 3219 | if test -z "$ac_cpp_err"; then |
| 3220 | # We can compile using X headers with no special include directory. |
| 3221 | ac_x_includes= |
| 3222 | else |
| 3223 | echo "$as_me: failed program was:" >&5 |
| 3224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3225 | |
| 3226 | for ac_dir in $ac_x_header_dirs; do |
Constantin Kaplinsky | a874881 | 2007-09-05 09:29:06 +0000 | [diff] [blame^] | 3227 | if test -r "$ac_dir/X11/Xlib.h"; then |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 3228 | ac_x_includes=$ac_dir |
| 3229 | break |
| 3230 | fi |
| 3231 | done |
| 3232 | fi |
| 3233 | rm -f conftest.err conftest.$ac_ext |
| 3234 | fi # $ac_x_includes = no |
| 3235 | |
| 3236 | if test "$ac_x_libraries" = no; then |
| 3237 | # Check for the libraries. |
| 3238 | # See if we find them without any special options. |
| 3239 | # Don't add to $LIBS permanently. |
| 3240 | ac_save_LIBS=$LIBS |
Constantin Kaplinsky | a874881 | 2007-09-05 09:29:06 +0000 | [diff] [blame^] | 3241 | LIBS="-lX11 $LIBS" |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 3242 | cat >conftest.$ac_ext <<_ACEOF |
| 3243 | /* confdefs.h. */ |
| 3244 | _ACEOF |
| 3245 | cat confdefs.h >>conftest.$ac_ext |
| 3246 | cat >>conftest.$ac_ext <<_ACEOF |
| 3247 | /* end confdefs.h. */ |
Constantin Kaplinsky | a874881 | 2007-09-05 09:29:06 +0000 | [diff] [blame^] | 3248 | #include <X11/Xlib.h> |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 3249 | int |
| 3250 | main () |
| 3251 | { |
Constantin Kaplinsky | a874881 | 2007-09-05 09:29:06 +0000 | [diff] [blame^] | 3252 | XrmInitialize () |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 3253 | ; |
| 3254 | return 0; |
| 3255 | } |
| 3256 | _ACEOF |
| 3257 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3259 | (eval $ac_link) 2>conftest.er1 |
| 3260 | ac_status=$? |
| 3261 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3262 | rm -f conftest.er1 |
| 3263 | cat conftest.err >&5 |
| 3264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3265 | (exit $ac_status); } && |
| 3266 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3267 | || test ! -s conftest.err' |
| 3268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3269 | (eval $ac_try) 2>&5 |
| 3270 | ac_status=$? |
| 3271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3272 | (exit $ac_status); }; } && |
| 3273 | { ac_try='test -s conftest$ac_exeext' |
| 3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3275 | (eval $ac_try) 2>&5 |
| 3276 | ac_status=$? |
| 3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3278 | (exit $ac_status); }; }; then |
| 3279 | LIBS=$ac_save_LIBS |
| 3280 | # We can link X programs with no special library path. |
| 3281 | ac_x_libraries= |
| 3282 | else |
| 3283 | echo "$as_me: failed program was:" >&5 |
| 3284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3285 | |
| 3286 | LIBS=$ac_save_LIBS |
| 3287 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 3288 | do |
| 3289 | # Don't even attempt the hair of trying to link an X program! |
| 3290 | for ac_extension in a so sl; do |
| 3291 | if test -r $ac_dir/libXt.$ac_extension; then |
| 3292 | ac_x_libraries=$ac_dir |
| 3293 | break 2 |
| 3294 | fi |
| 3295 | done |
| 3296 | done |
| 3297 | fi |
| 3298 | rm -f conftest.err conftest.$ac_objext \ |
| 3299 | conftest$ac_exeext conftest.$ac_ext |
| 3300 | fi # $ac_x_libraries = no |
| 3301 | |
| 3302 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
| 3303 | # Didn't find X anywhere. Cache the known absence of X. |
| 3304 | ac_cv_have_x="have_x=no" |
| 3305 | else |
| 3306 | # Record where we found X for the cache. |
| 3307 | ac_cv_have_x="have_x=yes \ |
| 3308 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 3309 | fi |
| 3310 | fi |
| 3311 | |
| 3312 | fi |
| 3313 | eval "$ac_cv_have_x" |
| 3314 | fi # $with_x != no |
| 3315 | |
| 3316 | if test "$have_x" != yes; then |
| 3317 | echo "$as_me:$LINENO: result: $have_x" >&5 |
| 3318 | echo "${ECHO_T}$have_x" >&6 |
| 3319 | no_x=yes |
| 3320 | else |
| 3321 | # If each of the values was on the command line, it overrides each guess. |
| 3322 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 3323 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 3324 | # Update the cache value to reflect the command line values. |
| 3325 | ac_cv_have_x="have_x=yes \ |
| 3326 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 3327 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
| 3328 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 3329 | fi |
| 3330 | |
| 3331 | if test "$no_x" = yes; then |
| 3332 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 3333 | |
| 3334 | cat >>confdefs.h <<\_ACEOF |
| 3335 | #define X_DISPLAY_MISSING 1 |
| 3336 | _ACEOF |
| 3337 | |
| 3338 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 3339 | else |
| 3340 | if test -n "$x_includes"; then |
| 3341 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 3342 | fi |
| 3343 | |
| 3344 | # It would also be nice to do this for all -L options, not just this one. |
| 3345 | if test -n "$x_libraries"; then |
| 3346 | X_LIBS="$X_LIBS -L$x_libraries" |
| 3347 | # For Solaris; some versions of Sun CC require a space after -R and |
| 3348 | # others require no space. Words are not sufficient . . . . |
| 3349 | case `(uname -sr) 2>/dev/null` in |
| 3350 | "SunOS 5"*) |
| 3351 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
| 3352 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
| 3353 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
| 3354 | cat >conftest.$ac_ext <<_ACEOF |
| 3355 | /* confdefs.h. */ |
| 3356 | _ACEOF |
| 3357 | cat confdefs.h >>conftest.$ac_ext |
| 3358 | cat >>conftest.$ac_ext <<_ACEOF |
| 3359 | /* end confdefs.h. */ |
| 3360 | |
| 3361 | int |
| 3362 | main () |
| 3363 | { |
| 3364 | |
| 3365 | ; |
| 3366 | return 0; |
| 3367 | } |
| 3368 | _ACEOF |
| 3369 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3371 | (eval $ac_link) 2>conftest.er1 |
| 3372 | ac_status=$? |
| 3373 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3374 | rm -f conftest.er1 |
| 3375 | cat conftest.err >&5 |
| 3376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3377 | (exit $ac_status); } && |
| 3378 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3379 | || test ! -s conftest.err' |
| 3380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3381 | (eval $ac_try) 2>&5 |
| 3382 | ac_status=$? |
| 3383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3384 | (exit $ac_status); }; } && |
| 3385 | { ac_try='test -s conftest$ac_exeext' |
| 3386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3387 | (eval $ac_try) 2>&5 |
| 3388 | ac_status=$? |
| 3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3390 | (exit $ac_status); }; }; then |
| 3391 | ac_R_nospace=yes |
| 3392 | else |
| 3393 | echo "$as_me: failed program was:" >&5 |
| 3394 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3395 | |
| 3396 | ac_R_nospace=no |
| 3397 | fi |
| 3398 | rm -f conftest.err conftest.$ac_objext \ |
| 3399 | conftest$ac_exeext conftest.$ac_ext |
| 3400 | if test $ac_R_nospace = yes; then |
| 3401 | echo "$as_me:$LINENO: result: no" >&5 |
| 3402 | echo "${ECHO_T}no" >&6 |
| 3403 | X_LIBS="$X_LIBS -R$x_libraries" |
| 3404 | else |
| 3405 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 3406 | cat >conftest.$ac_ext <<_ACEOF |
| 3407 | /* confdefs.h. */ |
| 3408 | _ACEOF |
| 3409 | cat confdefs.h >>conftest.$ac_ext |
| 3410 | cat >>conftest.$ac_ext <<_ACEOF |
| 3411 | /* end confdefs.h. */ |
| 3412 | |
| 3413 | int |
| 3414 | main () |
| 3415 | { |
| 3416 | |
| 3417 | ; |
| 3418 | return 0; |
| 3419 | } |
| 3420 | _ACEOF |
| 3421 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3423 | (eval $ac_link) 2>conftest.er1 |
| 3424 | ac_status=$? |
| 3425 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3426 | rm -f conftest.er1 |
| 3427 | cat conftest.err >&5 |
| 3428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3429 | (exit $ac_status); } && |
| 3430 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3431 | || test ! -s conftest.err' |
| 3432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3433 | (eval $ac_try) 2>&5 |
| 3434 | ac_status=$? |
| 3435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3436 | (exit $ac_status); }; } && |
| 3437 | { ac_try='test -s conftest$ac_exeext' |
| 3438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3439 | (eval $ac_try) 2>&5 |
| 3440 | ac_status=$? |
| 3441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3442 | (exit $ac_status); }; }; then |
| 3443 | ac_R_space=yes |
| 3444 | else |
| 3445 | echo "$as_me: failed program was:" >&5 |
| 3446 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3447 | |
| 3448 | ac_R_space=no |
| 3449 | fi |
| 3450 | rm -f conftest.err conftest.$ac_objext \ |
| 3451 | conftest$ac_exeext conftest.$ac_ext |
| 3452 | if test $ac_R_space = yes; then |
| 3453 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3454 | echo "${ECHO_T}yes" >&6 |
| 3455 | X_LIBS="$X_LIBS -R $x_libraries" |
| 3456 | else |
| 3457 | echo "$as_me:$LINENO: result: neither works" >&5 |
| 3458 | echo "${ECHO_T}neither works" >&6 |
| 3459 | fi |
| 3460 | fi |
| 3461 | LIBS=$ac_xsave_LIBS |
| 3462 | esac |
| 3463 | fi |
| 3464 | |
| 3465 | # Check for system-dependent libraries X programs must link with. |
| 3466 | # Do this before checking for the system-independent R6 libraries |
| 3467 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 3468 | |
| 3469 | if test "$ISC" = yes; then |
| 3470 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 3471 | else |
| 3472 | # Martyn Johnson says this is needed for Ultrix, if the X |
| 3473 | # libraries were built with DECnet support. And Karl Berry says |
| 3474 | # the Alpha needs dnet_stub (dnet does not exist). |
| 3475 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
| 3476 | cat >conftest.$ac_ext <<_ACEOF |
| 3477 | /* confdefs.h. */ |
| 3478 | _ACEOF |
| 3479 | cat confdefs.h >>conftest.$ac_ext |
| 3480 | cat >>conftest.$ac_ext <<_ACEOF |
| 3481 | /* end confdefs.h. */ |
| 3482 | |
| 3483 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3484 | #ifdef __cplusplus |
| 3485 | extern "C" |
| 3486 | #endif |
| 3487 | /* We use char because int might match the return type of a gcc2 |
| 3488 | builtin and then its argument prototype would still apply. */ |
| 3489 | char XOpenDisplay (); |
| 3490 | int |
| 3491 | main () |
| 3492 | { |
| 3493 | XOpenDisplay (); |
| 3494 | ; |
| 3495 | return 0; |
| 3496 | } |
| 3497 | _ACEOF |
| 3498 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3500 | (eval $ac_link) 2>conftest.er1 |
| 3501 | ac_status=$? |
| 3502 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3503 | rm -f conftest.er1 |
| 3504 | cat conftest.err >&5 |
| 3505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3506 | (exit $ac_status); } && |
| 3507 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3508 | || test ! -s conftest.err' |
| 3509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3510 | (eval $ac_try) 2>&5 |
| 3511 | ac_status=$? |
| 3512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3513 | (exit $ac_status); }; } && |
| 3514 | { ac_try='test -s conftest$ac_exeext' |
| 3515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3516 | (eval $ac_try) 2>&5 |
| 3517 | ac_status=$? |
| 3518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3519 | (exit $ac_status); }; }; then |
| 3520 | : |
| 3521 | else |
| 3522 | echo "$as_me: failed program was:" >&5 |
| 3523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3524 | |
| 3525 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
| 3526 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 3527 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
| 3528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3529 | else |
| 3530 | ac_check_lib_save_LIBS=$LIBS |
| 3531 | LIBS="-ldnet $LIBS" |
| 3532 | cat >conftest.$ac_ext <<_ACEOF |
| 3533 | /* confdefs.h. */ |
| 3534 | _ACEOF |
| 3535 | cat confdefs.h >>conftest.$ac_ext |
| 3536 | cat >>conftest.$ac_ext <<_ACEOF |
| 3537 | /* end confdefs.h. */ |
| 3538 | |
| 3539 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3540 | #ifdef __cplusplus |
| 3541 | extern "C" |
| 3542 | #endif |
| 3543 | /* We use char because int might match the return type of a gcc2 |
| 3544 | builtin and then its argument prototype would still apply. */ |
| 3545 | char dnet_ntoa (); |
| 3546 | int |
| 3547 | main () |
| 3548 | { |
| 3549 | dnet_ntoa (); |
| 3550 | ; |
| 3551 | return 0; |
| 3552 | } |
| 3553 | _ACEOF |
| 3554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3556 | (eval $ac_link) 2>conftest.er1 |
| 3557 | ac_status=$? |
| 3558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3559 | rm -f conftest.er1 |
| 3560 | cat conftest.err >&5 |
| 3561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3562 | (exit $ac_status); } && |
| 3563 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3564 | || test ! -s conftest.err' |
| 3565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3566 | (eval $ac_try) 2>&5 |
| 3567 | ac_status=$? |
| 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3569 | (exit $ac_status); }; } && |
| 3570 | { ac_try='test -s conftest$ac_exeext' |
| 3571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3572 | (eval $ac_try) 2>&5 |
| 3573 | ac_status=$? |
| 3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3575 | (exit $ac_status); }; }; then |
| 3576 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 3577 | else |
| 3578 | echo "$as_me: failed program was:" >&5 |
| 3579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3580 | |
| 3581 | ac_cv_lib_dnet_dnet_ntoa=no |
| 3582 | fi |
| 3583 | rm -f conftest.err conftest.$ac_objext \ |
| 3584 | conftest$ac_exeext conftest.$ac_ext |
| 3585 | LIBS=$ac_check_lib_save_LIBS |
| 3586 | fi |
| 3587 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 3588 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 3589 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
| 3590 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 3591 | fi |
| 3592 | |
| 3593 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 3594 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 3595 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
| 3596 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
| 3597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3598 | else |
| 3599 | ac_check_lib_save_LIBS=$LIBS |
| 3600 | LIBS="-ldnet_stub $LIBS" |
| 3601 | cat >conftest.$ac_ext <<_ACEOF |
| 3602 | /* confdefs.h. */ |
| 3603 | _ACEOF |
| 3604 | cat confdefs.h >>conftest.$ac_ext |
| 3605 | cat >>conftest.$ac_ext <<_ACEOF |
| 3606 | /* end confdefs.h. */ |
| 3607 | |
| 3608 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3609 | #ifdef __cplusplus |
| 3610 | extern "C" |
| 3611 | #endif |
| 3612 | /* We use char because int might match the return type of a gcc2 |
| 3613 | builtin and then its argument prototype would still apply. */ |
| 3614 | char dnet_ntoa (); |
| 3615 | int |
| 3616 | main () |
| 3617 | { |
| 3618 | dnet_ntoa (); |
| 3619 | ; |
| 3620 | return 0; |
| 3621 | } |
| 3622 | _ACEOF |
| 3623 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3624 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3625 | (eval $ac_link) 2>conftest.er1 |
| 3626 | ac_status=$? |
| 3627 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3628 | rm -f conftest.er1 |
| 3629 | cat conftest.err >&5 |
| 3630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3631 | (exit $ac_status); } && |
| 3632 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3633 | || test ! -s conftest.err' |
| 3634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3635 | (eval $ac_try) 2>&5 |
| 3636 | ac_status=$? |
| 3637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3638 | (exit $ac_status); }; } && |
| 3639 | { ac_try='test -s conftest$ac_exeext' |
| 3640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3641 | (eval $ac_try) 2>&5 |
| 3642 | ac_status=$? |
| 3643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3644 | (exit $ac_status); }; }; then |
| 3645 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
| 3646 | else |
| 3647 | echo "$as_me: failed program was:" >&5 |
| 3648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3649 | |
| 3650 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
| 3651 | fi |
| 3652 | rm -f conftest.err conftest.$ac_objext \ |
| 3653 | conftest$ac_exeext conftest.$ac_ext |
| 3654 | LIBS=$ac_check_lib_save_LIBS |
| 3655 | fi |
| 3656 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
| 3657 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
| 3658 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
| 3659 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 3660 | fi |
| 3661 | |
| 3662 | fi |
| 3663 | fi |
| 3664 | rm -f conftest.err conftest.$ac_objext \ |
| 3665 | conftest$ac_exeext conftest.$ac_ext |
| 3666 | LIBS="$ac_xsave_LIBS" |
| 3667 | |
| 3668 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3669 | # to get the SysV transport functions. |
| 3670 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 3671 | # needs -lnsl. |
| 3672 | # The nsl library prevents programs from opening the X display |
| 3673 | # on Irix 5.2, according to T.E. Dickey. |
| 3674 | # The functions gethostbyname, getservbyname, and inet_addr are |
| 3675 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
| 3676 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 3677 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 3678 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 3679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3680 | else |
| 3681 | cat >conftest.$ac_ext <<_ACEOF |
| 3682 | /* confdefs.h. */ |
| 3683 | _ACEOF |
| 3684 | cat confdefs.h >>conftest.$ac_ext |
| 3685 | cat >>conftest.$ac_ext <<_ACEOF |
| 3686 | /* end confdefs.h. */ |
| 3687 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 3688 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3689 | #define gethostbyname innocuous_gethostbyname |
| 3690 | |
| 3691 | /* System header to define __stub macros and hopefully few prototypes, |
| 3692 | which can conflict with char gethostbyname (); below. |
| 3693 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3694 | <limits.h> exists even on freestanding compilers. */ |
| 3695 | |
| 3696 | #ifdef __STDC__ |
| 3697 | # include <limits.h> |
| 3698 | #else |
| 3699 | # include <assert.h> |
| 3700 | #endif |
| 3701 | |
| 3702 | #undef gethostbyname |
| 3703 | |
| 3704 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3705 | #ifdef __cplusplus |
| 3706 | extern "C" |
| 3707 | { |
| 3708 | #endif |
| 3709 | /* We use char because int might match the return type of a gcc2 |
| 3710 | builtin and then its argument prototype would still apply. */ |
| 3711 | char gethostbyname (); |
| 3712 | /* The GNU C library defines this for functions which it implements |
| 3713 | to always fail with ENOSYS. Some functions are actually named |
| 3714 | something starting with __ and the normal name is an alias. */ |
| 3715 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3716 | choke me |
| 3717 | #else |
| 3718 | char (*f) () = gethostbyname; |
| 3719 | #endif |
| 3720 | #ifdef __cplusplus |
| 3721 | } |
| 3722 | #endif |
| 3723 | |
| 3724 | int |
| 3725 | main () |
| 3726 | { |
| 3727 | return f != gethostbyname; |
| 3728 | ; |
| 3729 | return 0; |
| 3730 | } |
| 3731 | _ACEOF |
| 3732 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3734 | (eval $ac_link) 2>conftest.er1 |
| 3735 | ac_status=$? |
| 3736 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3737 | rm -f conftest.er1 |
| 3738 | cat conftest.err >&5 |
| 3739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3740 | (exit $ac_status); } && |
| 3741 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3742 | || test ! -s conftest.err' |
| 3743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3744 | (eval $ac_try) 2>&5 |
| 3745 | ac_status=$? |
| 3746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3747 | (exit $ac_status); }; } && |
| 3748 | { ac_try='test -s conftest$ac_exeext' |
| 3749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3750 | (eval $ac_try) 2>&5 |
| 3751 | ac_status=$? |
| 3752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3753 | (exit $ac_status); }; }; then |
| 3754 | ac_cv_func_gethostbyname=yes |
| 3755 | else |
| 3756 | echo "$as_me: failed program was:" >&5 |
| 3757 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3758 | |
| 3759 | ac_cv_func_gethostbyname=no |
| 3760 | fi |
| 3761 | rm -f conftest.err conftest.$ac_objext \ |
| 3762 | conftest$ac_exeext conftest.$ac_ext |
| 3763 | fi |
| 3764 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 3765 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
| 3766 | |
| 3767 | if test $ac_cv_func_gethostbyname = no; then |
| 3768 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
| 3769 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
| 3770 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
| 3771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3772 | else |
| 3773 | ac_check_lib_save_LIBS=$LIBS |
| 3774 | LIBS="-lnsl $LIBS" |
| 3775 | cat >conftest.$ac_ext <<_ACEOF |
| 3776 | /* confdefs.h. */ |
| 3777 | _ACEOF |
| 3778 | cat confdefs.h >>conftest.$ac_ext |
| 3779 | cat >>conftest.$ac_ext <<_ACEOF |
| 3780 | /* end confdefs.h. */ |
| 3781 | |
| 3782 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3783 | #ifdef __cplusplus |
| 3784 | extern "C" |
| 3785 | #endif |
| 3786 | /* We use char because int might match the return type of a gcc2 |
| 3787 | builtin and then its argument prototype would still apply. */ |
| 3788 | char gethostbyname (); |
| 3789 | int |
| 3790 | main () |
| 3791 | { |
| 3792 | gethostbyname (); |
| 3793 | ; |
| 3794 | return 0; |
| 3795 | } |
| 3796 | _ACEOF |
| 3797 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3799 | (eval $ac_link) 2>conftest.er1 |
| 3800 | ac_status=$? |
| 3801 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3802 | rm -f conftest.er1 |
| 3803 | cat conftest.err >&5 |
| 3804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3805 | (exit $ac_status); } && |
| 3806 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3807 | || test ! -s conftest.err' |
| 3808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3809 | (eval $ac_try) 2>&5 |
| 3810 | ac_status=$? |
| 3811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3812 | (exit $ac_status); }; } && |
| 3813 | { ac_try='test -s conftest$ac_exeext' |
| 3814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3815 | (eval $ac_try) 2>&5 |
| 3816 | ac_status=$? |
| 3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3818 | (exit $ac_status); }; }; then |
| 3819 | ac_cv_lib_nsl_gethostbyname=yes |
| 3820 | else |
| 3821 | echo "$as_me: failed program was:" >&5 |
| 3822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3823 | |
| 3824 | ac_cv_lib_nsl_gethostbyname=no |
| 3825 | fi |
| 3826 | rm -f conftest.err conftest.$ac_objext \ |
| 3827 | conftest$ac_exeext conftest.$ac_ext |
| 3828 | LIBS=$ac_check_lib_save_LIBS |
| 3829 | fi |
| 3830 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 3831 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
| 3832 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
| 3833 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 3834 | fi |
| 3835 | |
| 3836 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
| 3837 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 3838 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 3839 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 3840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3841 | else |
| 3842 | ac_check_lib_save_LIBS=$LIBS |
| 3843 | LIBS="-lbsd $LIBS" |
| 3844 | cat >conftest.$ac_ext <<_ACEOF |
| 3845 | /* confdefs.h. */ |
| 3846 | _ACEOF |
| 3847 | cat confdefs.h >>conftest.$ac_ext |
| 3848 | cat >>conftest.$ac_ext <<_ACEOF |
| 3849 | /* end confdefs.h. */ |
| 3850 | |
| 3851 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3852 | #ifdef __cplusplus |
| 3853 | extern "C" |
| 3854 | #endif |
| 3855 | /* We use char because int might match the return type of a gcc2 |
| 3856 | builtin and then its argument prototype would still apply. */ |
| 3857 | char gethostbyname (); |
| 3858 | int |
| 3859 | main () |
| 3860 | { |
| 3861 | gethostbyname (); |
| 3862 | ; |
| 3863 | return 0; |
| 3864 | } |
| 3865 | _ACEOF |
| 3866 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3868 | (eval $ac_link) 2>conftest.er1 |
| 3869 | ac_status=$? |
| 3870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3871 | rm -f conftest.er1 |
| 3872 | cat conftest.err >&5 |
| 3873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3874 | (exit $ac_status); } && |
| 3875 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3876 | || test ! -s conftest.err' |
| 3877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3878 | (eval $ac_try) 2>&5 |
| 3879 | ac_status=$? |
| 3880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3881 | (exit $ac_status); }; } && |
| 3882 | { ac_try='test -s conftest$ac_exeext' |
| 3883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3884 | (eval $ac_try) 2>&5 |
| 3885 | ac_status=$? |
| 3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3887 | (exit $ac_status); }; }; then |
| 3888 | ac_cv_lib_bsd_gethostbyname=yes |
| 3889 | else |
| 3890 | echo "$as_me: failed program was:" >&5 |
| 3891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3892 | |
| 3893 | ac_cv_lib_bsd_gethostbyname=no |
| 3894 | fi |
| 3895 | rm -f conftest.err conftest.$ac_objext \ |
| 3896 | conftest$ac_exeext conftest.$ac_ext |
| 3897 | LIBS=$ac_check_lib_save_LIBS |
| 3898 | fi |
| 3899 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 3900 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 3901 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 3902 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
| 3903 | fi |
| 3904 | |
| 3905 | fi |
| 3906 | fi |
| 3907 | |
| 3908 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 3909 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3910 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 3911 | # on later versions), says Simon Leinen: it contains gethostby* |
| 3912 | # variants that don't use the name server (or something). -lsocket |
| 3913 | # must be given before -lnsl if both are needed. We assume that |
| 3914 | # if connect needs -lnsl, so does gethostbyname. |
| 3915 | echo "$as_me:$LINENO: checking for connect" >&5 |
| 3916 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
| 3917 | if test "${ac_cv_func_connect+set}" = set; then |
| 3918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3919 | else |
| 3920 | cat >conftest.$ac_ext <<_ACEOF |
| 3921 | /* confdefs.h. */ |
| 3922 | _ACEOF |
| 3923 | cat confdefs.h >>conftest.$ac_ext |
| 3924 | cat >>conftest.$ac_ext <<_ACEOF |
| 3925 | /* end confdefs.h. */ |
| 3926 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
| 3927 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 3928 | #define connect innocuous_connect |
| 3929 | |
| 3930 | /* System header to define __stub macros and hopefully few prototypes, |
| 3931 | which can conflict with char connect (); below. |
| 3932 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3933 | <limits.h> exists even on freestanding compilers. */ |
| 3934 | |
| 3935 | #ifdef __STDC__ |
| 3936 | # include <limits.h> |
| 3937 | #else |
| 3938 | # include <assert.h> |
| 3939 | #endif |
| 3940 | |
| 3941 | #undef connect |
| 3942 | |
| 3943 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3944 | #ifdef __cplusplus |
| 3945 | extern "C" |
| 3946 | { |
| 3947 | #endif |
| 3948 | /* We use char because int might match the return type of a gcc2 |
| 3949 | builtin and then its argument prototype would still apply. */ |
| 3950 | char connect (); |
| 3951 | /* The GNU C library defines this for functions which it implements |
| 3952 | to always fail with ENOSYS. Some functions are actually named |
| 3953 | something starting with __ and the normal name is an alias. */ |
| 3954 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3955 | choke me |
| 3956 | #else |
| 3957 | char (*f) () = connect; |
| 3958 | #endif |
| 3959 | #ifdef __cplusplus |
| 3960 | } |
| 3961 | #endif |
| 3962 | |
| 3963 | int |
| 3964 | main () |
| 3965 | { |
| 3966 | return f != connect; |
| 3967 | ; |
| 3968 | return 0; |
| 3969 | } |
| 3970 | _ACEOF |
| 3971 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3973 | (eval $ac_link) 2>conftest.er1 |
| 3974 | ac_status=$? |
| 3975 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3976 | rm -f conftest.er1 |
| 3977 | cat conftest.err >&5 |
| 3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3979 | (exit $ac_status); } && |
| 3980 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 3981 | || test ! -s conftest.err' |
| 3982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3983 | (eval $ac_try) 2>&5 |
| 3984 | ac_status=$? |
| 3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3986 | (exit $ac_status); }; } && |
| 3987 | { ac_try='test -s conftest$ac_exeext' |
| 3988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3989 | (eval $ac_try) 2>&5 |
| 3990 | ac_status=$? |
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3992 | (exit $ac_status); }; }; then |
| 3993 | ac_cv_func_connect=yes |
| 3994 | else |
| 3995 | echo "$as_me: failed program was:" >&5 |
| 3996 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3997 | |
| 3998 | ac_cv_func_connect=no |
| 3999 | fi |
| 4000 | rm -f conftest.err conftest.$ac_objext \ |
| 4001 | conftest$ac_exeext conftest.$ac_ext |
| 4002 | fi |
| 4003 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
| 4004 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
| 4005 | |
| 4006 | if test $ac_cv_func_connect = no; then |
| 4007 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
| 4008 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
| 4009 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
| 4010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4011 | else |
| 4012 | ac_check_lib_save_LIBS=$LIBS |
| 4013 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 4014 | cat >conftest.$ac_ext <<_ACEOF |
| 4015 | /* confdefs.h. */ |
| 4016 | _ACEOF |
| 4017 | cat confdefs.h >>conftest.$ac_ext |
| 4018 | cat >>conftest.$ac_ext <<_ACEOF |
| 4019 | /* end confdefs.h. */ |
| 4020 | |
| 4021 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4022 | #ifdef __cplusplus |
| 4023 | extern "C" |
| 4024 | #endif |
| 4025 | /* We use char because int might match the return type of a gcc2 |
| 4026 | builtin and then its argument prototype would still apply. */ |
| 4027 | char connect (); |
| 4028 | int |
| 4029 | main () |
| 4030 | { |
| 4031 | connect (); |
| 4032 | ; |
| 4033 | return 0; |
| 4034 | } |
| 4035 | _ACEOF |
| 4036 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4037 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4038 | (eval $ac_link) 2>conftest.er1 |
| 4039 | ac_status=$? |
| 4040 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4041 | rm -f conftest.er1 |
| 4042 | cat conftest.err >&5 |
| 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4044 | (exit $ac_status); } && |
| 4045 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4046 | || test ! -s conftest.err' |
| 4047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4048 | (eval $ac_try) 2>&5 |
| 4049 | ac_status=$? |
| 4050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4051 | (exit $ac_status); }; } && |
| 4052 | { ac_try='test -s conftest$ac_exeext' |
| 4053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4054 | (eval $ac_try) 2>&5 |
| 4055 | ac_status=$? |
| 4056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4057 | (exit $ac_status); }; }; then |
| 4058 | ac_cv_lib_socket_connect=yes |
| 4059 | else |
| 4060 | echo "$as_me: failed program was:" >&5 |
| 4061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4062 | |
| 4063 | ac_cv_lib_socket_connect=no |
| 4064 | fi |
| 4065 | rm -f conftest.err conftest.$ac_objext \ |
| 4066 | conftest$ac_exeext conftest.$ac_ext |
| 4067 | LIBS=$ac_check_lib_save_LIBS |
| 4068 | fi |
| 4069 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
| 4070 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
| 4071 | if test $ac_cv_lib_socket_connect = yes; then |
| 4072 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 4073 | fi |
| 4074 | |
| 4075 | fi |
| 4076 | |
| 4077 | # Guillermo Gomez says -lposix is necessary on A/UX. |
| 4078 | echo "$as_me:$LINENO: checking for remove" >&5 |
| 4079 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
| 4080 | if test "${ac_cv_func_remove+set}" = set; then |
| 4081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4082 | else |
| 4083 | cat >conftest.$ac_ext <<_ACEOF |
| 4084 | /* confdefs.h. */ |
| 4085 | _ACEOF |
| 4086 | cat confdefs.h >>conftest.$ac_ext |
| 4087 | cat >>conftest.$ac_ext <<_ACEOF |
| 4088 | /* end confdefs.h. */ |
| 4089 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
| 4090 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4091 | #define remove innocuous_remove |
| 4092 | |
| 4093 | /* System header to define __stub macros and hopefully few prototypes, |
| 4094 | which can conflict with char remove (); below. |
| 4095 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4096 | <limits.h> exists even on freestanding compilers. */ |
| 4097 | |
| 4098 | #ifdef __STDC__ |
| 4099 | # include <limits.h> |
| 4100 | #else |
| 4101 | # include <assert.h> |
| 4102 | #endif |
| 4103 | |
| 4104 | #undef remove |
| 4105 | |
| 4106 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4107 | #ifdef __cplusplus |
| 4108 | extern "C" |
| 4109 | { |
| 4110 | #endif |
| 4111 | /* We use char because int might match the return type of a gcc2 |
| 4112 | builtin and then its argument prototype would still apply. */ |
| 4113 | char remove (); |
| 4114 | /* The GNU C library defines this for functions which it implements |
| 4115 | to always fail with ENOSYS. Some functions are actually named |
| 4116 | something starting with __ and the normal name is an alias. */ |
| 4117 | #if defined (__stub_remove) || defined (__stub___remove) |
| 4118 | choke me |
| 4119 | #else |
| 4120 | char (*f) () = remove; |
| 4121 | #endif |
| 4122 | #ifdef __cplusplus |
| 4123 | } |
| 4124 | #endif |
| 4125 | |
| 4126 | int |
| 4127 | main () |
| 4128 | { |
| 4129 | return f != remove; |
| 4130 | ; |
| 4131 | return 0; |
| 4132 | } |
| 4133 | _ACEOF |
| 4134 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4136 | (eval $ac_link) 2>conftest.er1 |
| 4137 | ac_status=$? |
| 4138 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4139 | rm -f conftest.er1 |
| 4140 | cat conftest.err >&5 |
| 4141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4142 | (exit $ac_status); } && |
| 4143 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4144 | || test ! -s conftest.err' |
| 4145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4146 | (eval $ac_try) 2>&5 |
| 4147 | ac_status=$? |
| 4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4149 | (exit $ac_status); }; } && |
| 4150 | { ac_try='test -s conftest$ac_exeext' |
| 4151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4152 | (eval $ac_try) 2>&5 |
| 4153 | ac_status=$? |
| 4154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4155 | (exit $ac_status); }; }; then |
| 4156 | ac_cv_func_remove=yes |
| 4157 | else |
| 4158 | echo "$as_me: failed program was:" >&5 |
| 4159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4160 | |
| 4161 | ac_cv_func_remove=no |
| 4162 | fi |
| 4163 | rm -f conftest.err conftest.$ac_objext \ |
| 4164 | conftest$ac_exeext conftest.$ac_ext |
| 4165 | fi |
| 4166 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
| 4167 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
| 4168 | |
| 4169 | if test $ac_cv_func_remove = no; then |
| 4170 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
| 4171 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
| 4172 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
| 4173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4174 | else |
| 4175 | ac_check_lib_save_LIBS=$LIBS |
| 4176 | LIBS="-lposix $LIBS" |
| 4177 | cat >conftest.$ac_ext <<_ACEOF |
| 4178 | /* confdefs.h. */ |
| 4179 | _ACEOF |
| 4180 | cat confdefs.h >>conftest.$ac_ext |
| 4181 | cat >>conftest.$ac_ext <<_ACEOF |
| 4182 | /* end confdefs.h. */ |
| 4183 | |
| 4184 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4185 | #ifdef __cplusplus |
| 4186 | extern "C" |
| 4187 | #endif |
| 4188 | /* We use char because int might match the return type of a gcc2 |
| 4189 | builtin and then its argument prototype would still apply. */ |
| 4190 | char remove (); |
| 4191 | int |
| 4192 | main () |
| 4193 | { |
| 4194 | remove (); |
| 4195 | ; |
| 4196 | return 0; |
| 4197 | } |
| 4198 | _ACEOF |
| 4199 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4201 | (eval $ac_link) 2>conftest.er1 |
| 4202 | ac_status=$? |
| 4203 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4204 | rm -f conftest.er1 |
| 4205 | cat conftest.err >&5 |
| 4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4207 | (exit $ac_status); } && |
| 4208 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4209 | || test ! -s conftest.err' |
| 4210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4211 | (eval $ac_try) 2>&5 |
| 4212 | ac_status=$? |
| 4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4214 | (exit $ac_status); }; } && |
| 4215 | { ac_try='test -s conftest$ac_exeext' |
| 4216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4217 | (eval $ac_try) 2>&5 |
| 4218 | ac_status=$? |
| 4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4220 | (exit $ac_status); }; }; then |
| 4221 | ac_cv_lib_posix_remove=yes |
| 4222 | else |
| 4223 | echo "$as_me: failed program was:" >&5 |
| 4224 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4225 | |
| 4226 | ac_cv_lib_posix_remove=no |
| 4227 | fi |
| 4228 | rm -f conftest.err conftest.$ac_objext \ |
| 4229 | conftest$ac_exeext conftest.$ac_ext |
| 4230 | LIBS=$ac_check_lib_save_LIBS |
| 4231 | fi |
| 4232 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
| 4233 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
| 4234 | if test $ac_cv_lib_posix_remove = yes; then |
| 4235 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 4236 | fi |
| 4237 | |
| 4238 | fi |
| 4239 | |
| 4240 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 4241 | echo "$as_me:$LINENO: checking for shmat" >&5 |
| 4242 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
| 4243 | if test "${ac_cv_func_shmat+set}" = set; then |
| 4244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4245 | else |
| 4246 | cat >conftest.$ac_ext <<_ACEOF |
| 4247 | /* confdefs.h. */ |
| 4248 | _ACEOF |
| 4249 | cat confdefs.h >>conftest.$ac_ext |
| 4250 | cat >>conftest.$ac_ext <<_ACEOF |
| 4251 | /* end confdefs.h. */ |
| 4252 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
| 4253 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4254 | #define shmat innocuous_shmat |
| 4255 | |
| 4256 | /* System header to define __stub macros and hopefully few prototypes, |
| 4257 | which can conflict with char shmat (); below. |
| 4258 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4259 | <limits.h> exists even on freestanding compilers. */ |
| 4260 | |
| 4261 | #ifdef __STDC__ |
| 4262 | # include <limits.h> |
| 4263 | #else |
| 4264 | # include <assert.h> |
| 4265 | #endif |
| 4266 | |
| 4267 | #undef shmat |
| 4268 | |
| 4269 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4270 | #ifdef __cplusplus |
| 4271 | extern "C" |
| 4272 | { |
| 4273 | #endif |
| 4274 | /* We use char because int might match the return type of a gcc2 |
| 4275 | builtin and then its argument prototype would still apply. */ |
| 4276 | char shmat (); |
| 4277 | /* The GNU C library defines this for functions which it implements |
| 4278 | to always fail with ENOSYS. Some functions are actually named |
| 4279 | something starting with __ and the normal name is an alias. */ |
| 4280 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 4281 | choke me |
| 4282 | #else |
| 4283 | char (*f) () = shmat; |
| 4284 | #endif |
| 4285 | #ifdef __cplusplus |
| 4286 | } |
| 4287 | #endif |
| 4288 | |
| 4289 | int |
| 4290 | main () |
| 4291 | { |
| 4292 | return f != shmat; |
| 4293 | ; |
| 4294 | return 0; |
| 4295 | } |
| 4296 | _ACEOF |
| 4297 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4299 | (eval $ac_link) 2>conftest.er1 |
| 4300 | ac_status=$? |
| 4301 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4302 | rm -f conftest.er1 |
| 4303 | cat conftest.err >&5 |
| 4304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4305 | (exit $ac_status); } && |
| 4306 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4307 | || test ! -s conftest.err' |
| 4308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4309 | (eval $ac_try) 2>&5 |
| 4310 | ac_status=$? |
| 4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4312 | (exit $ac_status); }; } && |
| 4313 | { ac_try='test -s conftest$ac_exeext' |
| 4314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4315 | (eval $ac_try) 2>&5 |
| 4316 | ac_status=$? |
| 4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4318 | (exit $ac_status); }; }; then |
| 4319 | ac_cv_func_shmat=yes |
| 4320 | else |
| 4321 | echo "$as_me: failed program was:" >&5 |
| 4322 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4323 | |
| 4324 | ac_cv_func_shmat=no |
| 4325 | fi |
| 4326 | rm -f conftest.err conftest.$ac_objext \ |
| 4327 | conftest$ac_exeext conftest.$ac_ext |
| 4328 | fi |
| 4329 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
| 4330 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
| 4331 | |
| 4332 | if test $ac_cv_func_shmat = no; then |
| 4333 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
| 4334 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
| 4335 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
| 4336 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4337 | else |
| 4338 | ac_check_lib_save_LIBS=$LIBS |
| 4339 | LIBS="-lipc $LIBS" |
| 4340 | cat >conftest.$ac_ext <<_ACEOF |
| 4341 | /* confdefs.h. */ |
| 4342 | _ACEOF |
| 4343 | cat confdefs.h >>conftest.$ac_ext |
| 4344 | cat >>conftest.$ac_ext <<_ACEOF |
| 4345 | /* end confdefs.h. */ |
| 4346 | |
| 4347 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4348 | #ifdef __cplusplus |
| 4349 | extern "C" |
| 4350 | #endif |
| 4351 | /* We use char because int might match the return type of a gcc2 |
| 4352 | builtin and then its argument prototype would still apply. */ |
| 4353 | char shmat (); |
| 4354 | int |
| 4355 | main () |
| 4356 | { |
| 4357 | shmat (); |
| 4358 | ; |
| 4359 | return 0; |
| 4360 | } |
| 4361 | _ACEOF |
| 4362 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4364 | (eval $ac_link) 2>conftest.er1 |
| 4365 | ac_status=$? |
| 4366 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4367 | rm -f conftest.er1 |
| 4368 | cat conftest.err >&5 |
| 4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4370 | (exit $ac_status); } && |
| 4371 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4372 | || test ! -s conftest.err' |
| 4373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4374 | (eval $ac_try) 2>&5 |
| 4375 | ac_status=$? |
| 4376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4377 | (exit $ac_status); }; } && |
| 4378 | { ac_try='test -s conftest$ac_exeext' |
| 4379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4380 | (eval $ac_try) 2>&5 |
| 4381 | ac_status=$? |
| 4382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4383 | (exit $ac_status); }; }; then |
| 4384 | ac_cv_lib_ipc_shmat=yes |
| 4385 | else |
| 4386 | echo "$as_me: failed program was:" >&5 |
| 4387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4388 | |
| 4389 | ac_cv_lib_ipc_shmat=no |
| 4390 | fi |
| 4391 | rm -f conftest.err conftest.$ac_objext \ |
| 4392 | conftest$ac_exeext conftest.$ac_ext |
| 4393 | LIBS=$ac_check_lib_save_LIBS |
| 4394 | fi |
| 4395 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
| 4396 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
| 4397 | if test $ac_cv_lib_ipc_shmat = yes; then |
| 4398 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 4399 | fi |
| 4400 | |
| 4401 | fi |
| 4402 | fi |
| 4403 | |
| 4404 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 4405 | ac_save_LDFLAGS=$LDFLAGS |
| 4406 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 4407 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 4408 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 4409 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 4410 | # These have to be linked with before -lX11, unlike the other |
| 4411 | # libraries we check for below, so use a different variable. |
| 4412 | # John Interrante, Karl Berry |
| 4413 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
| 4414 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
| 4415 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
| 4416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4417 | else |
| 4418 | ac_check_lib_save_LIBS=$LIBS |
| 4419 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 4420 | cat >conftest.$ac_ext <<_ACEOF |
| 4421 | /* confdefs.h. */ |
| 4422 | _ACEOF |
| 4423 | cat confdefs.h >>conftest.$ac_ext |
| 4424 | cat >>conftest.$ac_ext <<_ACEOF |
| 4425 | /* end confdefs.h. */ |
| 4426 | |
| 4427 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4428 | #ifdef __cplusplus |
| 4429 | extern "C" |
| 4430 | #endif |
| 4431 | /* We use char because int might match the return type of a gcc2 |
| 4432 | builtin and then its argument prototype would still apply. */ |
| 4433 | char IceConnectionNumber (); |
| 4434 | int |
| 4435 | main () |
| 4436 | { |
| 4437 | IceConnectionNumber (); |
| 4438 | ; |
| 4439 | return 0; |
| 4440 | } |
| 4441 | _ACEOF |
| 4442 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4444 | (eval $ac_link) 2>conftest.er1 |
| 4445 | ac_status=$? |
| 4446 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4447 | rm -f conftest.er1 |
| 4448 | cat conftest.err >&5 |
| 4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4450 | (exit $ac_status); } && |
| 4451 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4452 | || test ! -s conftest.err' |
| 4453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4454 | (eval $ac_try) 2>&5 |
| 4455 | ac_status=$? |
| 4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4457 | (exit $ac_status); }; } && |
| 4458 | { ac_try='test -s conftest$ac_exeext' |
| 4459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4460 | (eval $ac_try) 2>&5 |
| 4461 | ac_status=$? |
| 4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4463 | (exit $ac_status); }; }; then |
| 4464 | ac_cv_lib_ICE_IceConnectionNumber=yes |
| 4465 | else |
| 4466 | echo "$as_me: failed program was:" >&5 |
| 4467 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4468 | |
| 4469 | ac_cv_lib_ICE_IceConnectionNumber=no |
| 4470 | fi |
| 4471 | rm -f conftest.err conftest.$ac_objext \ |
| 4472 | conftest$ac_exeext conftest.$ac_ext |
| 4473 | LIBS=$ac_check_lib_save_LIBS |
| 4474 | fi |
| 4475 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
| 4476 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
| 4477 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
| 4478 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 4479 | fi |
| 4480 | |
| 4481 | LDFLAGS=$ac_save_LDFLAGS |
| 4482 | |
| 4483 | fi |
| 4484 | |
| 4485 | |
| 4486 | |
| 4487 | # Check whether --with-installed-zlib or --without-installed-zlib was given. |
| 4488 | if test "${with_installed_zlib+set}" = set; then |
| 4489 | withval="$with_installed_zlib" |
| 4490 | |
| 4491 | fi; |
| 4492 | |
| 4493 | if test "$with_installed_zlib" = yes; then |
| 4494 | echo "using installed zlib" |
| 4495 | ZLIB_LIB=-lz |
| 4496 | else |
Constantin Kaplinsky | 97ac555 | 2006-06-02 04:13:14 +0000 | [diff] [blame] | 4497 | ZLIB_DIR='$(COMMON)/zlib' |
| 4498 | ZLIB_INCLUDE='-I$(COMMON)/zlib' |
| 4499 | ZLIB_LIB='$(COMMON)/zlib/libz.a' |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 4500 | fi |
| 4501 | |
| 4502 | |
| 4503 | |
| 4504 | |
| 4505 | |
| 4506 | |
| 4507 | # Check whether --with-installed-jpeg or --without-installed-jpeg was given. |
| 4508 | if test "${with_installed_jpeg+set}" = set; then |
| 4509 | withval="$with_installed_jpeg" |
| 4510 | |
| 4511 | fi; |
| 4512 | |
| 4513 | if test "$with_installed_jpeg" = yes; then |
| 4514 | echo "using installed jpeg" |
| 4515 | JPEG_LIB=-ljpeg |
| 4516 | else |
Constantin Kaplinsky | 97ac555 | 2006-06-02 04:13:14 +0000 | [diff] [blame] | 4517 | JPEG_DIR='$(COMMON)/jpeg/build' |
| 4518 | JPEG_INCLUDE='-I$(COMMON)/jpeg' |
| 4519 | JPEG_LIB='$(COMMON)/jpeg/build/libjpeg.a' |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 4520 | fi |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | # Check whether --enable-vncconfig or --disable-vncconfig was given. |
| 4527 | if test "${enable_vncconfig+set}" = set; then |
| 4528 | enableval="$enable_vncconfig" |
| 4529 | |
| 4530 | fi; |
| 4531 | if test "$enable_vncconfig" = no; then |
| 4532 | echo "vncconfig utility will not be built" |
| 4533 | VNCCONFIG_DIR= |
| 4534 | else |
Constantin Kaplinsky | 97ac555 | 2006-06-02 04:13:14 +0000 | [diff] [blame] | 4535 | VNCCONFIG_DIR='vncconfig' |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 4536 | fi |
| 4537 | |
| 4538 | |
| 4539 | echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5 |
| 4540 | echo $ECHO_N "checking for XTestGrabControl in -lXtst... $ECHO_C" >&6 |
| 4541 | if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then |
| 4542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4543 | else |
| 4544 | ac_check_lib_save_LIBS=$LIBS |
| 4545 | LIBS="-lXtst "$X_LIBS" -lXext -lX11 $LIBS" |
| 4546 | cat >conftest.$ac_ext <<_ACEOF |
| 4547 | /* confdefs.h. */ |
| 4548 | _ACEOF |
| 4549 | cat confdefs.h >>conftest.$ac_ext |
| 4550 | cat >>conftest.$ac_ext <<_ACEOF |
| 4551 | /* end confdefs.h. */ |
| 4552 | |
| 4553 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4554 | #ifdef __cplusplus |
| 4555 | extern "C" |
| 4556 | #endif |
| 4557 | /* We use char because int might match the return type of a gcc2 |
| 4558 | builtin and then its argument prototype would still apply. */ |
| 4559 | char XTestGrabControl (); |
| 4560 | int |
| 4561 | main () |
| 4562 | { |
| 4563 | XTestGrabControl (); |
| 4564 | ; |
| 4565 | return 0; |
| 4566 | } |
| 4567 | _ACEOF |
| 4568 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4570 | (eval $ac_link) 2>conftest.er1 |
| 4571 | ac_status=$? |
| 4572 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4573 | rm -f conftest.er1 |
| 4574 | cat conftest.err >&5 |
| 4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4576 | (exit $ac_status); } && |
| 4577 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 4578 | || test ! -s conftest.err' |
| 4579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4580 | (eval $ac_try) 2>&5 |
| 4581 | ac_status=$? |
| 4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4583 | (exit $ac_status); }; } && |
| 4584 | { ac_try='test -s conftest$ac_exeext' |
| 4585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4586 | (eval $ac_try) 2>&5 |
| 4587 | ac_status=$? |
| 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4589 | (exit $ac_status); }; }; then |
| 4590 | ac_cv_lib_Xtst_XTestGrabControl=yes |
| 4591 | else |
| 4592 | echo "$as_me: failed program was:" >&5 |
| 4593 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4594 | |
| 4595 | ac_cv_lib_Xtst_XTestGrabControl=no |
| 4596 | fi |
| 4597 | rm -f conftest.err conftest.$ac_objext \ |
| 4598 | conftest$ac_exeext conftest.$ac_ext |
| 4599 | LIBS=$ac_check_lib_save_LIBS |
| 4600 | fi |
| 4601 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5 |
| 4602 | echo "${ECHO_T}$ac_cv_lib_Xtst_XTestGrabControl" >&6 |
| 4603 | if test $ac_cv_lib_Xtst_XTestGrabControl = yes; then |
| 4604 | USE_XTEST=yes |
| 4605 | else |
| 4606 | USE_XTEST= |
| 4607 | fi |
| 4608 | |
| 4609 | if test "$USE_XTEST" = yes; then |
| 4610 | XTEST_DEFINE='-DHAVE_XTEST' |
| 4611 | XTEST_LIB=-lXtst |
| 4612 | else |
| 4613 | echo Warning: No XTest extension, building x0vncserver view-only |
| 4614 | XTEST_DEFINE= |
| 4615 | XTEST_LIB= |
| 4616 | fi |
| 4617 | |
| 4618 | |
| 4619 | |
| 4620 | if test "$USE_READDISPLAY" = yes; then |
| 4621 | READDISPLAY_DEFINE='-DHAVE_READDISPLAY' |
| 4622 | elif test "$USE_SUN_OVL" = yes; then |
| 4623 | READDISPLAY_DEFINE='-DHAVE_SUN_OVL' |
| 4624 | else |
| 4625 | READDISPLAY_DEFINE= |
| 4626 | fi |
| 4627 | |
| 4628 | |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 4629 | |
| 4630 | |
| 4631 | ac_ext=c |
| 4632 | ac_cpp='$CPP $CPPFLAGS' |
| 4633 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4634 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4635 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4636 | |
| 4637 | |
| 4638 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
| 4639 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
| 4640 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
| 4641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4642 | else |
| 4643 | cat >conftest.$ac_ext <<_ACEOF |
| 4644 | /* confdefs.h. */ |
| 4645 | _ACEOF |
| 4646 | cat confdefs.h >>conftest.$ac_ext |
| 4647 | cat >>conftest.$ac_ext <<_ACEOF |
| 4648 | /* end confdefs.h. */ |
| 4649 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
| 4650 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4651 | #define gethostbyname innocuous_gethostbyname |
| 4652 | |
| 4653 | /* System header to define __stub macros and hopefully few prototypes, |
| 4654 | which can conflict with char gethostbyname (); below. |
| 4655 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4656 | <limits.h> exists even on freestanding compilers. */ |
| 4657 | |
| 4658 | #ifdef __STDC__ |
| 4659 | # include <limits.h> |
| 4660 | #else |
| 4661 | # include <assert.h> |
| 4662 | #endif |
| 4663 | |
| 4664 | #undef gethostbyname |
| 4665 | |
| 4666 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4667 | #ifdef __cplusplus |
| 4668 | extern "C" |
| 4669 | { |
| 4670 | #endif |
| 4671 | /* We use char because int might match the return type of a gcc2 |
| 4672 | builtin and then its argument prototype would still apply. */ |
| 4673 | char gethostbyname (); |
| 4674 | /* The GNU C library defines this for functions which it implements |
| 4675 | to always fail with ENOSYS. Some functions are actually named |
| 4676 | something starting with __ and the normal name is an alias. */ |
| 4677 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 4678 | choke me |
| 4679 | #else |
| 4680 | char (*f) () = gethostbyname; |
| 4681 | #endif |
| 4682 | #ifdef __cplusplus |
| 4683 | } |
| 4684 | #endif |
| 4685 | |
| 4686 | int |
| 4687 | main () |
| 4688 | { |
| 4689 | return f != gethostbyname; |
| 4690 | ; |
| 4691 | return 0; |
| 4692 | } |
| 4693 | _ACEOF |
| 4694 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4696 | (eval $ac_link) 2>conftest.er1 |
| 4697 | ac_status=$? |
| 4698 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4699 | rm -f conftest.er1 |
| 4700 | cat conftest.err >&5 |
| 4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4702 | (exit $ac_status); } && |
| 4703 | { ac_try='test -z "$ac_c_werror_flag" |
| 4704 | || test ! -s conftest.err' |
| 4705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4706 | (eval $ac_try) 2>&5 |
| 4707 | ac_status=$? |
| 4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4709 | (exit $ac_status); }; } && |
| 4710 | { ac_try='test -s conftest$ac_exeext' |
| 4711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4712 | (eval $ac_try) 2>&5 |
| 4713 | ac_status=$? |
| 4714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4715 | (exit $ac_status); }; }; then |
| 4716 | ac_cv_func_gethostbyname=yes |
| 4717 | else |
| 4718 | echo "$as_me: failed program was:" >&5 |
| 4719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4720 | |
| 4721 | ac_cv_func_gethostbyname=no |
| 4722 | fi |
| 4723 | rm -f conftest.err conftest.$ac_objext \ |
| 4724 | conftest$ac_exeext conftest.$ac_ext |
| 4725 | fi |
| 4726 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
| 4727 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
| 4728 | if test $ac_cv_func_gethostbyname = yes; then |
| 4729 | INET_LIB_REQ= |
| 4730 | else |
| 4731 | INET_LIB_REQ=yes |
| 4732 | fi |
| 4733 | |
| 4734 | if test "$INET_LIB_REQ" = yes; then |
| 4735 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
| 4736 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
| 4737 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
| 4738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4739 | else |
| 4740 | ac_check_lib_save_LIBS=$LIBS |
| 4741 | LIBS="-lbsd $LIBS" |
| 4742 | cat >conftest.$ac_ext <<_ACEOF |
| 4743 | /* confdefs.h. */ |
| 4744 | _ACEOF |
| 4745 | cat confdefs.h >>conftest.$ac_ext |
| 4746 | cat >>conftest.$ac_ext <<_ACEOF |
| 4747 | /* end confdefs.h. */ |
| 4748 | |
| 4749 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4750 | #ifdef __cplusplus |
| 4751 | extern "C" |
| 4752 | #endif |
| 4753 | /* We use char because int might match the return type of a gcc2 |
| 4754 | builtin and then its argument prototype would still apply. */ |
| 4755 | char gethostbyname (); |
| 4756 | int |
| 4757 | main () |
| 4758 | { |
| 4759 | gethostbyname (); |
| 4760 | ; |
| 4761 | return 0; |
| 4762 | } |
| 4763 | _ACEOF |
| 4764 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4766 | (eval $ac_link) 2>conftest.er1 |
| 4767 | ac_status=$? |
| 4768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4769 | rm -f conftest.er1 |
| 4770 | cat conftest.err >&5 |
| 4771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4772 | (exit $ac_status); } && |
| 4773 | { ac_try='test -z "$ac_c_werror_flag" |
| 4774 | || test ! -s conftest.err' |
| 4775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4776 | (eval $ac_try) 2>&5 |
| 4777 | ac_status=$? |
| 4778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4779 | (exit $ac_status); }; } && |
| 4780 | { ac_try='test -s conftest$ac_exeext' |
| 4781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4782 | (eval $ac_try) 2>&5 |
| 4783 | ac_status=$? |
| 4784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4785 | (exit $ac_status); }; }; then |
| 4786 | ac_cv_lib_bsd_gethostbyname=yes |
| 4787 | else |
| 4788 | echo "$as_me: failed program was:" >&5 |
| 4789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4790 | |
| 4791 | ac_cv_lib_bsd_gethostbyname=no |
| 4792 | fi |
| 4793 | rm -f conftest.err conftest.$ac_objext \ |
| 4794 | conftest$ac_exeext conftest.$ac_ext |
| 4795 | LIBS=$ac_check_lib_save_LIBS |
| 4796 | fi |
| 4797 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
| 4798 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
| 4799 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
| 4800 | INET_LIB=-lbsd |
| 4801 | else |
| 4802 | INET_LIB= |
| 4803 | fi |
| 4804 | |
| 4805 | fi |
| 4806 | ac_ext=cc |
| 4807 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4808 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4809 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4810 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 4811 | |
| 4812 | |
| 4813 | |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 4814 | ac_aux_dir= |
| 4815 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 4816 | if test -f $ac_dir/install-sh; then |
| 4817 | ac_aux_dir=$ac_dir |
| 4818 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 4819 | break |
| 4820 | elif test -f $ac_dir/install.sh; then |
| 4821 | ac_aux_dir=$ac_dir |
| 4822 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 4823 | break |
| 4824 | elif test -f $ac_dir/shtool; then |
| 4825 | ac_aux_dir=$ac_dir |
| 4826 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 4827 | break |
| 4828 | fi |
| 4829 | done |
| 4830 | if test -z "$ac_aux_dir"; then |
| 4831 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 4832 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 4833 | { (exit 1); exit 1; }; } |
| 4834 | fi |
| 4835 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 4836 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 4837 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 4838 | |
| 4839 | # Find a good install program. We prefer a C program (faster), |
| 4840 | # so one script is as good as another. But avoid the broken or |
| 4841 | # incompatible versions: |
| 4842 | # SysV /etc/install, /usr/sbin/install |
| 4843 | # SunOS /usr/etc/install |
| 4844 | # IRIX /sbin/install |
| 4845 | # AIX /bin/install |
| 4846 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4847 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4848 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4849 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4850 | # OS/2's system install, which has a completely different semantic |
| 4851 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4852 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4853 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4854 | if test -z "$INSTALL"; then |
| 4855 | if test "${ac_cv_path_install+set}" = set; then |
| 4856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4857 | else |
| 4858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4859 | for as_dir in $PATH |
| 4860 | do |
| 4861 | IFS=$as_save_IFS |
| 4862 | test -z "$as_dir" && as_dir=. |
| 4863 | # Account for people who put trailing slashes in PATH elements. |
| 4864 | case $as_dir/ in |
| 4865 | ./ | .// | /cC/* | \ |
| 4866 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4867 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4868 | /usr/ucb/* ) ;; |
| 4869 | *) |
| 4870 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4871 | # Don't use installbsd from OSF since it installs stuff as root |
| 4872 | # by default. |
| 4873 | for ac_prog in ginstall scoinst install; do |
| 4874 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4875 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4876 | if test $ac_prog = install && |
| 4877 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4878 | # AIX install. It has an incompatible calling convention. |
| 4879 | : |
| 4880 | elif test $ac_prog = install && |
| 4881 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4882 | # program-specific install script used by HP pwplus--don't use. |
| 4883 | : |
| 4884 | else |
| 4885 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4886 | break 3 |
| 4887 | fi |
| 4888 | fi |
| 4889 | done |
| 4890 | done |
| 4891 | ;; |
| 4892 | esac |
| 4893 | done |
| 4894 | |
| 4895 | |
| 4896 | fi |
| 4897 | if test "${ac_cv_path_install+set}" = set; then |
| 4898 | INSTALL=$ac_cv_path_install |
| 4899 | else |
| 4900 | # As a last resort, use the slow shell script. We don't cache a |
| 4901 | # path for INSTALL within a source directory, because that will |
| 4902 | # break other packages using the cache if that directory is |
| 4903 | # removed, or if the path is relative. |
| 4904 | INSTALL=$ac_install_sh |
| 4905 | fi |
| 4906 | fi |
| 4907 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4908 | echo "${ECHO_T}$INSTALL" >&6 |
| 4909 | |
| 4910 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4911 | # It thinks the first close brace ends the variable substitution. |
| 4912 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4913 | |
| 4914 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4915 | |
| 4916 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4917 | |
| 4918 | |
| 4919 | MKINSTALLDIRS= |
| 4920 | if test -n "$ac_aux_dir"; then |
| 4921 | case "$ac_aux_dir" in |
| 4922 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4923 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4924 | esac |
| 4925 | fi |
| 4926 | if test -z "$MKINSTALLDIRS"; then |
| 4927 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4928 | fi |
| 4929 | |
| 4930 | |
| 4931 | |
| 4932 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4933 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 4934 | # Check whether --enable-nls or --disable-nls was given. |
| 4935 | if test "${enable_nls+set}" = set; then |
| 4936 | enableval="$enable_nls" |
| 4937 | USE_NLS=$enableval |
| 4938 | else |
| 4939 | USE_NLS=yes |
| 4940 | fi; |
| 4941 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4942 | echo "${ECHO_T}$USE_NLS" >&6 |
| 4943 | |
| 4944 | |
| 4945 | |
| 4946 | |
| 4947 | |
| 4948 | |
| 4949 | # Prepare PATH_SEPARATOR. |
| 4950 | # The user is always right. |
| 4951 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4952 | echo "#! /bin/sh" >conf$$.sh |
| 4953 | echo "exit 0" >>conf$$.sh |
| 4954 | chmod +x conf$$.sh |
| 4955 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4956 | PATH_SEPARATOR=';' |
| 4957 | else |
| 4958 | PATH_SEPARATOR=: |
| 4959 | fi |
| 4960 | rm -f conf$$.sh |
| 4961 | fi |
| 4962 | |
| 4963 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4964 | # as systems may use methods other than mode bits to determine executability. |
| 4965 | cat >conf$$.file <<_ASEOF |
| 4966 | #! /bin/sh |
| 4967 | exit 0 |
| 4968 | _ASEOF |
| 4969 | chmod +x conf$$.file |
| 4970 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4971 | ac_executable_p="test -x" |
| 4972 | else |
| 4973 | ac_executable_p="test -f" |
| 4974 | fi |
| 4975 | rm -f conf$$.file |
| 4976 | |
| 4977 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4978 | set dummy msgfmt; ac_word=$2 |
| 4979 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4980 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4981 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4983 | else |
| 4984 | case "$MSGFMT" in |
| 4985 | [\\/]* | ?:[\\/]*) |
| 4986 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4987 | ;; |
| 4988 | *) |
| 4989 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4990 | for ac_dir in $PATH; do |
| 4991 | IFS="$ac_save_IFS" |
| 4992 | test -z "$ac_dir" && ac_dir=. |
| 4993 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4994 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4995 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4996 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4997 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4998 | break 2 |
| 4999 | fi |
| 5000 | fi |
| 5001 | done |
| 5002 | done |
| 5003 | IFS="$ac_save_IFS" |
| 5004 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5005 | ;; |
| 5006 | esac |
| 5007 | fi |
| 5008 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5009 | if test "$MSGFMT" != ":"; then |
| 5010 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 5011 | echo "${ECHO_T}$MSGFMT" >&6 |
| 5012 | else |
| 5013 | echo "$as_me:$LINENO: result: no" >&5 |
| 5014 | echo "${ECHO_T}no" >&6 |
| 5015 | fi |
| 5016 | |
| 5017 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5018 | set dummy gmsgfmt; ac_word=$2 |
| 5019 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5021 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 5022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5023 | else |
| 5024 | case $GMSGFMT in |
| 5025 | [\\/]* | ?:[\\/]*) |
| 5026 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5027 | ;; |
| 5028 | *) |
| 5029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5030 | for as_dir in $PATH |
| 5031 | do |
| 5032 | IFS=$as_save_IFS |
| 5033 | test -z "$as_dir" && as_dir=. |
| 5034 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5035 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5036 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 5037 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5038 | break 2 |
| 5039 | fi |
| 5040 | done |
| 5041 | done |
| 5042 | |
| 5043 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5044 | ;; |
| 5045 | esac |
| 5046 | fi |
| 5047 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 5048 | |
| 5049 | if test -n "$GMSGFMT"; then |
| 5050 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 5051 | echo "${ECHO_T}$GMSGFMT" >&6 |
| 5052 | else |
| 5053 | echo "$as_me:$LINENO: result: no" >&5 |
| 5054 | echo "${ECHO_T}no" >&6 |
| 5055 | fi |
| 5056 | |
| 5057 | |
| 5058 | |
| 5059 | # Prepare PATH_SEPARATOR. |
| 5060 | # The user is always right. |
| 5061 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5062 | echo "#! /bin/sh" >conf$$.sh |
| 5063 | echo "exit 0" >>conf$$.sh |
| 5064 | chmod +x conf$$.sh |
| 5065 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5066 | PATH_SEPARATOR=';' |
| 5067 | else |
| 5068 | PATH_SEPARATOR=: |
| 5069 | fi |
| 5070 | rm -f conf$$.sh |
| 5071 | fi |
| 5072 | |
| 5073 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5074 | # as systems may use methods other than mode bits to determine executability. |
| 5075 | cat >conf$$.file <<_ASEOF |
| 5076 | #! /bin/sh |
| 5077 | exit 0 |
| 5078 | _ASEOF |
| 5079 | chmod +x conf$$.file |
| 5080 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5081 | ac_executable_p="test -x" |
| 5082 | else |
| 5083 | ac_executable_p="test -f" |
| 5084 | fi |
| 5085 | rm -f conf$$.file |
| 5086 | |
| 5087 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5088 | set dummy xgettext; ac_word=$2 |
| 5089 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5091 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 5092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5093 | else |
| 5094 | case "$XGETTEXT" in |
| 5095 | [\\/]* | ?:[\\/]*) |
| 5096 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5097 | ;; |
| 5098 | *) |
| 5099 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5100 | for ac_dir in $PATH; do |
| 5101 | IFS="$ac_save_IFS" |
| 5102 | test -z "$ac_dir" && ac_dir=. |
| 5103 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5104 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5105 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5106 | (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 |
| 5107 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5108 | break 2 |
| 5109 | fi |
| 5110 | fi |
| 5111 | done |
| 5112 | done |
| 5113 | IFS="$ac_save_IFS" |
| 5114 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5115 | ;; |
| 5116 | esac |
| 5117 | fi |
| 5118 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5119 | if test "$XGETTEXT" != ":"; then |
| 5120 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 5121 | echo "${ECHO_T}$XGETTEXT" >&6 |
| 5122 | else |
| 5123 | echo "$as_me:$LINENO: result: no" >&5 |
| 5124 | echo "${ECHO_T}no" >&6 |
| 5125 | fi |
| 5126 | |
| 5127 | rm -f messages.po |
| 5128 | |
| 5129 | |
| 5130 | # Prepare PATH_SEPARATOR. |
| 5131 | # The user is always right. |
| 5132 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5133 | echo "#! /bin/sh" >conf$$.sh |
| 5134 | echo "exit 0" >>conf$$.sh |
| 5135 | chmod +x conf$$.sh |
| 5136 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5137 | PATH_SEPARATOR=';' |
| 5138 | else |
| 5139 | PATH_SEPARATOR=: |
| 5140 | fi |
| 5141 | rm -f conf$$.sh |
| 5142 | fi |
| 5143 | |
| 5144 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5145 | # as systems may use methods other than mode bits to determine executability. |
| 5146 | cat >conf$$.file <<_ASEOF |
| 5147 | #! /bin/sh |
| 5148 | exit 0 |
| 5149 | _ASEOF |
| 5150 | chmod +x conf$$.file |
| 5151 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5152 | ac_executable_p="test -x" |
| 5153 | else |
| 5154 | ac_executable_p="test -f" |
| 5155 | fi |
| 5156 | rm -f conf$$.file |
| 5157 | |
| 5158 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5159 | set dummy msgmerge; ac_word=$2 |
| 5160 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5162 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 5163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5164 | else |
| 5165 | case "$MSGMERGE" in |
| 5166 | [\\/]* | ?:[\\/]*) |
| 5167 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5168 | ;; |
| 5169 | *) |
| 5170 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5171 | for ac_dir in $PATH; do |
| 5172 | IFS="$ac_save_IFS" |
| 5173 | test -z "$ac_dir" && ac_dir=. |
| 5174 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5175 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5176 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5177 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5178 | break 2 |
| 5179 | fi |
| 5180 | fi |
| 5181 | done |
| 5182 | done |
| 5183 | IFS="$ac_save_IFS" |
| 5184 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5185 | ;; |
| 5186 | esac |
| 5187 | fi |
| 5188 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5189 | if test "$MSGMERGE" != ":"; then |
| 5190 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 5191 | echo "${ECHO_T}$MSGMERGE" >&6 |
| 5192 | else |
| 5193 | echo "$as_me:$LINENO: result: no" >&5 |
| 5194 | echo "${ECHO_T}no" >&6 |
| 5195 | fi |
| 5196 | |
| 5197 | |
| 5198 | if test "$GMSGFMT" != ":"; then |
| 5199 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 5200 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5201 | : ; |
| 5202 | else |
| 5203 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 5204 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 5205 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 |
| 5206 | GMSGFMT=":" |
| 5207 | fi |
| 5208 | fi |
| 5209 | |
| 5210 | if test "$XGETTEXT" != ":"; then |
| 5211 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5212 | (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 |
| 5213 | : ; |
| 5214 | else |
| 5215 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 5216 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
| 5217 | XGETTEXT=":" |
| 5218 | fi |
| 5219 | rm -f messages.po |
| 5220 | fi |
| 5221 | |
| 5222 | ac_config_commands="$ac_config_commands default-1" |
| 5223 | |
| 5224 | |
| 5225 | # Make sure we can run config.sub. |
| 5226 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 5227 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 5228 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 5229 | { (exit 1); exit 1; }; } |
| 5230 | |
| 5231 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 5232 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 5233 | if test "${ac_cv_build+set}" = set; then |
| 5234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5235 | else |
| 5236 | ac_cv_build_alias=$build_alias |
| 5237 | test -z "$ac_cv_build_alias" && |
| 5238 | ac_cv_build_alias=`$ac_config_guess` |
| 5239 | test -z "$ac_cv_build_alias" && |
| 5240 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 5241 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 5242 | { (exit 1); exit 1; }; } |
| 5243 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 5244 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 5245 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 5246 | { (exit 1); exit 1; }; } |
| 5247 | |
| 5248 | fi |
| 5249 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 5250 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 5251 | build=$ac_cv_build |
| 5252 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 5253 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 5254 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 5255 | |
| 5256 | |
| 5257 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 5258 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 5259 | if test "${ac_cv_host+set}" = set; then |
| 5260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5261 | else |
| 5262 | ac_cv_host_alias=$host_alias |
| 5263 | test -z "$ac_cv_host_alias" && |
| 5264 | ac_cv_host_alias=$ac_cv_build_alias |
| 5265 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 5266 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 5267 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 5268 | { (exit 1); exit 1; }; } |
| 5269 | |
| 5270 | fi |
| 5271 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 5272 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 5273 | host=$ac_cv_host |
| 5274 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 5275 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 5276 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 5277 | |
| 5278 | |
| 5279 | |
| 5280 | echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 5281 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 |
| 5282 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 5283 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5284 | else |
| 5285 | ac_check_lib_save_LIBS=$LIBS |
| 5286 | LIBS="-lcposix $LIBS" |
| 5287 | cat >conftest.$ac_ext <<_ACEOF |
| 5288 | /* confdefs.h. */ |
| 5289 | _ACEOF |
| 5290 | cat confdefs.h >>conftest.$ac_ext |
| 5291 | cat >>conftest.$ac_ext <<_ACEOF |
| 5292 | /* end confdefs.h. */ |
| 5293 | |
| 5294 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5295 | #ifdef __cplusplus |
| 5296 | extern "C" |
| 5297 | #endif |
| 5298 | /* We use char because int might match the return type of a gcc2 |
| 5299 | builtin and then its argument prototype would still apply. */ |
| 5300 | char strerror (); |
| 5301 | int |
| 5302 | main () |
| 5303 | { |
| 5304 | strerror (); |
| 5305 | ; |
| 5306 | return 0; |
| 5307 | } |
| 5308 | _ACEOF |
| 5309 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5311 | (eval $ac_link) 2>conftest.er1 |
| 5312 | ac_status=$? |
| 5313 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5314 | rm -f conftest.er1 |
| 5315 | cat conftest.err >&5 |
| 5316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5317 | (exit $ac_status); } && |
| 5318 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5319 | || test ! -s conftest.err' |
| 5320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5321 | (eval $ac_try) 2>&5 |
| 5322 | ac_status=$? |
| 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5324 | (exit $ac_status); }; } && |
| 5325 | { ac_try='test -s conftest$ac_exeext' |
| 5326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5327 | (eval $ac_try) 2>&5 |
| 5328 | ac_status=$? |
| 5329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5330 | (exit $ac_status); }; }; then |
| 5331 | ac_cv_lib_cposix_strerror=yes |
| 5332 | else |
| 5333 | echo "$as_me: failed program was:" >&5 |
| 5334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5335 | |
| 5336 | ac_cv_lib_cposix_strerror=no |
| 5337 | fi |
| 5338 | rm -f conftest.err conftest.$ac_objext \ |
| 5339 | conftest$ac_exeext conftest.$ac_ext |
| 5340 | LIBS=$ac_check_lib_save_LIBS |
| 5341 | fi |
| 5342 | echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 5343 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 |
| 5344 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 5345 | LIBS="$LIBS -lcposix" |
| 5346 | fi |
| 5347 | |
| 5348 | |
| 5349 | |
| 5350 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 5351 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 5352 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 5353 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5354 | else |
| 5355 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 5356 | then ac_cv_prog_egrep='grep -E' |
| 5357 | else ac_cv_prog_egrep='egrep' |
| 5358 | fi |
| 5359 | fi |
| 5360 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 5361 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 5362 | EGREP=$ac_cv_prog_egrep |
| 5363 | |
| 5364 | |
| 5365 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5366 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5367 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5369 | else |
| 5370 | cat >conftest.$ac_ext <<_ACEOF |
| 5371 | /* confdefs.h. */ |
| 5372 | _ACEOF |
| 5373 | cat confdefs.h >>conftest.$ac_ext |
| 5374 | cat >>conftest.$ac_ext <<_ACEOF |
| 5375 | /* end confdefs.h. */ |
| 5376 | #include <stdlib.h> |
| 5377 | #include <stdarg.h> |
| 5378 | #include <string.h> |
| 5379 | #include <float.h> |
| 5380 | |
| 5381 | int |
| 5382 | main () |
| 5383 | { |
| 5384 | |
| 5385 | ; |
| 5386 | return 0; |
| 5387 | } |
| 5388 | _ACEOF |
| 5389 | rm -f conftest.$ac_objext |
| 5390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5391 | (eval $ac_compile) 2>conftest.er1 |
| 5392 | ac_status=$? |
| 5393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5394 | rm -f conftest.er1 |
| 5395 | cat conftest.err >&5 |
| 5396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5397 | (exit $ac_status); } && |
| 5398 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5399 | || test ! -s conftest.err' |
| 5400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5401 | (eval $ac_try) 2>&5 |
| 5402 | ac_status=$? |
| 5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5404 | (exit $ac_status); }; } && |
| 5405 | { ac_try='test -s conftest.$ac_objext' |
| 5406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5407 | (eval $ac_try) 2>&5 |
| 5408 | ac_status=$? |
| 5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5410 | (exit $ac_status); }; }; then |
| 5411 | ac_cv_header_stdc=yes |
| 5412 | else |
| 5413 | echo "$as_me: failed program was:" >&5 |
| 5414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5415 | |
| 5416 | ac_cv_header_stdc=no |
| 5417 | fi |
| 5418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5419 | |
| 5420 | if test $ac_cv_header_stdc = yes; then |
| 5421 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5422 | cat >conftest.$ac_ext <<_ACEOF |
| 5423 | /* confdefs.h. */ |
| 5424 | _ACEOF |
| 5425 | cat confdefs.h >>conftest.$ac_ext |
| 5426 | cat >>conftest.$ac_ext <<_ACEOF |
| 5427 | /* end confdefs.h. */ |
| 5428 | #include <string.h> |
| 5429 | |
| 5430 | _ACEOF |
| 5431 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5432 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5433 | : |
| 5434 | else |
| 5435 | ac_cv_header_stdc=no |
| 5436 | fi |
| 5437 | rm -f conftest* |
| 5438 | |
| 5439 | fi |
| 5440 | |
| 5441 | if test $ac_cv_header_stdc = yes; then |
| 5442 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5443 | cat >conftest.$ac_ext <<_ACEOF |
| 5444 | /* confdefs.h. */ |
| 5445 | _ACEOF |
| 5446 | cat confdefs.h >>conftest.$ac_ext |
| 5447 | cat >>conftest.$ac_ext <<_ACEOF |
| 5448 | /* end confdefs.h. */ |
| 5449 | #include <stdlib.h> |
| 5450 | |
| 5451 | _ACEOF |
| 5452 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5453 | $EGREP "free" >/dev/null 2>&1; then |
| 5454 | : |
| 5455 | else |
| 5456 | ac_cv_header_stdc=no |
| 5457 | fi |
| 5458 | rm -f conftest* |
| 5459 | |
| 5460 | fi |
| 5461 | |
| 5462 | if test $ac_cv_header_stdc = yes; then |
| 5463 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5464 | if test "$cross_compiling" = yes; then |
| 5465 | : |
| 5466 | else |
| 5467 | cat >conftest.$ac_ext <<_ACEOF |
| 5468 | /* confdefs.h. */ |
| 5469 | _ACEOF |
| 5470 | cat confdefs.h >>conftest.$ac_ext |
| 5471 | cat >>conftest.$ac_ext <<_ACEOF |
| 5472 | /* end confdefs.h. */ |
| 5473 | #include <ctype.h> |
| 5474 | #if ((' ' & 0x0FF) == 0x020) |
| 5475 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5476 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5477 | #else |
| 5478 | # define ISLOWER(c) \ |
| 5479 | (('a' <= (c) && (c) <= 'i') \ |
| 5480 | || ('j' <= (c) && (c) <= 'r') \ |
| 5481 | || ('s' <= (c) && (c) <= 'z')) |
| 5482 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5483 | #endif |
| 5484 | |
| 5485 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5486 | int |
| 5487 | main () |
| 5488 | { |
| 5489 | int i; |
| 5490 | for (i = 0; i < 256; i++) |
| 5491 | if (XOR (islower (i), ISLOWER (i)) |
| 5492 | || toupper (i) != TOUPPER (i)) |
| 5493 | exit(2); |
| 5494 | exit (0); |
| 5495 | } |
| 5496 | _ACEOF |
| 5497 | rm -f conftest$ac_exeext |
| 5498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5499 | (eval $ac_link) 2>&5 |
| 5500 | ac_status=$? |
| 5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5502 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5504 | (eval $ac_try) 2>&5 |
| 5505 | ac_status=$? |
| 5506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5507 | (exit $ac_status); }; }; then |
| 5508 | : |
| 5509 | else |
| 5510 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5511 | echo "$as_me: failed program was:" >&5 |
| 5512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5513 | |
| 5514 | ( exit $ac_status ) |
| 5515 | ac_cv_header_stdc=no |
| 5516 | fi |
| 5517 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5518 | fi |
| 5519 | fi |
| 5520 | fi |
| 5521 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5522 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 5523 | if test $ac_cv_header_stdc = yes; then |
| 5524 | |
| 5525 | cat >>confdefs.h <<\_ACEOF |
| 5526 | #define STDC_HEADERS 1 |
| 5527 | _ACEOF |
| 5528 | |
| 5529 | fi |
| 5530 | |
| 5531 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5532 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 5533 | if test "${ac_cv_c_const+set}" = set; then |
| 5534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5535 | else |
| 5536 | cat >conftest.$ac_ext <<_ACEOF |
| 5537 | /* confdefs.h. */ |
| 5538 | _ACEOF |
| 5539 | cat confdefs.h >>conftest.$ac_ext |
| 5540 | cat >>conftest.$ac_ext <<_ACEOF |
| 5541 | /* end confdefs.h. */ |
| 5542 | |
| 5543 | int |
| 5544 | main () |
| 5545 | { |
| 5546 | /* FIXME: Include the comments suggested by Paul. */ |
| 5547 | #ifndef __cplusplus |
| 5548 | /* Ultrix mips cc rejects this. */ |
| 5549 | typedef int charset[2]; |
| 5550 | const charset x; |
| 5551 | /* SunOS 4.1.1 cc rejects this. */ |
| 5552 | char const *const *ccp; |
| 5553 | char **p; |
| 5554 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5555 | struct point {int x, y;}; |
| 5556 | static struct point const zero = {0,0}; |
| 5557 | /* AIX XL C 1.02.0.0 rejects this. |
| 5558 | It does not let you subtract one const X* pointer from another in |
| 5559 | an arm of an if-expression whose if-part is not a constant |
| 5560 | expression */ |
| 5561 | const char *g = "string"; |
| 5562 | ccp = &g + (g ? g-g : 0); |
| 5563 | /* HPUX 7.0 cc rejects these. */ |
| 5564 | ++ccp; |
| 5565 | p = (char**) ccp; |
| 5566 | ccp = (char const *const *) p; |
| 5567 | { /* SCO 3.2v4 cc rejects this. */ |
| 5568 | char *t; |
| 5569 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5570 | |
| 5571 | *t++ = 0; |
| 5572 | } |
| 5573 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5574 | int x[] = {25, 17}; |
| 5575 | const int *foo = &x[0]; |
| 5576 | ++foo; |
| 5577 | } |
| 5578 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5579 | typedef const int *iptr; |
| 5580 | iptr p = 0; |
| 5581 | ++p; |
| 5582 | } |
| 5583 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5584 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5585 | struct s { int j; const int *ap[3]; }; |
| 5586 | struct s *b; b->j = 5; |
| 5587 | } |
| 5588 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5589 | const int foo = 10; |
| 5590 | } |
| 5591 | #endif |
| 5592 | |
| 5593 | ; |
| 5594 | return 0; |
| 5595 | } |
| 5596 | _ACEOF |
| 5597 | rm -f conftest.$ac_objext |
| 5598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5599 | (eval $ac_compile) 2>conftest.er1 |
| 5600 | ac_status=$? |
| 5601 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5602 | rm -f conftest.er1 |
| 5603 | cat conftest.err >&5 |
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5605 | (exit $ac_status); } && |
| 5606 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5607 | || test ! -s conftest.err' |
| 5608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5609 | (eval $ac_try) 2>&5 |
| 5610 | ac_status=$? |
| 5611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5612 | (exit $ac_status); }; } && |
| 5613 | { ac_try='test -s conftest.$ac_objext' |
| 5614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5615 | (eval $ac_try) 2>&5 |
| 5616 | ac_status=$? |
| 5617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5618 | (exit $ac_status); }; }; then |
| 5619 | ac_cv_c_const=yes |
| 5620 | else |
| 5621 | echo "$as_me: failed program was:" >&5 |
| 5622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5623 | |
| 5624 | ac_cv_c_const=no |
| 5625 | fi |
| 5626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5627 | fi |
| 5628 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5629 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 5630 | if test $ac_cv_c_const = no; then |
| 5631 | |
| 5632 | cat >>confdefs.h <<\_ACEOF |
| 5633 | #define const |
| 5634 | _ACEOF |
| 5635 | |
| 5636 | fi |
| 5637 | |
| 5638 | |
| 5639 | echo "$as_me:$LINENO: checking for signed" >&5 |
| 5640 | echo $ECHO_N "checking for signed... $ECHO_C" >&6 |
| 5641 | if test "${bh_cv_c_signed+set}" = set; then |
| 5642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5643 | else |
| 5644 | cat >conftest.$ac_ext <<_ACEOF |
| 5645 | /* confdefs.h. */ |
| 5646 | _ACEOF |
| 5647 | cat confdefs.h >>conftest.$ac_ext |
| 5648 | cat >>conftest.$ac_ext <<_ACEOF |
| 5649 | /* end confdefs.h. */ |
| 5650 | |
| 5651 | int |
| 5652 | main () |
| 5653 | { |
| 5654 | signed char x; |
| 5655 | ; |
| 5656 | return 0; |
| 5657 | } |
| 5658 | _ACEOF |
| 5659 | rm -f conftest.$ac_objext |
| 5660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5661 | (eval $ac_compile) 2>conftest.er1 |
| 5662 | ac_status=$? |
| 5663 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5664 | rm -f conftest.er1 |
| 5665 | cat conftest.err >&5 |
| 5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5667 | (exit $ac_status); } && |
| 5668 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5669 | || test ! -s conftest.err' |
| 5670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5671 | (eval $ac_try) 2>&5 |
| 5672 | ac_status=$? |
| 5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5674 | (exit $ac_status); }; } && |
| 5675 | { ac_try='test -s conftest.$ac_objext' |
| 5676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5677 | (eval $ac_try) 2>&5 |
| 5678 | ac_status=$? |
| 5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5680 | (exit $ac_status); }; }; then |
| 5681 | bh_cv_c_signed=yes |
| 5682 | else |
| 5683 | echo "$as_me: failed program was:" >&5 |
| 5684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5685 | |
| 5686 | bh_cv_c_signed=no |
| 5687 | fi |
| 5688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5689 | fi |
| 5690 | echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5691 | echo "${ECHO_T}$bh_cv_c_signed" >&6 |
| 5692 | if test $bh_cv_c_signed = no; then |
| 5693 | |
| 5694 | cat >>confdefs.h <<\_ACEOF |
| 5695 | #define signed |
| 5696 | _ACEOF |
| 5697 | |
| 5698 | fi |
| 5699 | |
| 5700 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 5701 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 5702 | if test "${ac_cv_c_inline+set}" = set; then |
| 5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5704 | else |
| 5705 | ac_cv_c_inline=no |
| 5706 | for ac_kw in inline __inline__ __inline; do |
| 5707 | cat >conftest.$ac_ext <<_ACEOF |
| 5708 | /* confdefs.h. */ |
| 5709 | _ACEOF |
| 5710 | cat confdefs.h >>conftest.$ac_ext |
| 5711 | cat >>conftest.$ac_ext <<_ACEOF |
| 5712 | /* end confdefs.h. */ |
| 5713 | #ifndef __cplusplus |
| 5714 | typedef int foo_t; |
| 5715 | static $ac_kw foo_t static_foo () {return 0; } |
| 5716 | $ac_kw foo_t foo () {return 0; } |
| 5717 | #endif |
| 5718 | |
| 5719 | _ACEOF |
| 5720 | rm -f conftest.$ac_objext |
| 5721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5722 | (eval $ac_compile) 2>conftest.er1 |
| 5723 | ac_status=$? |
| 5724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5725 | rm -f conftest.er1 |
| 5726 | cat conftest.err >&5 |
| 5727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5728 | (exit $ac_status); } && |
| 5729 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5730 | || test ! -s conftest.err' |
| 5731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5732 | (eval $ac_try) 2>&5 |
| 5733 | ac_status=$? |
| 5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5735 | (exit $ac_status); }; } && |
| 5736 | { ac_try='test -s conftest.$ac_objext' |
| 5737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5738 | (eval $ac_try) 2>&5 |
| 5739 | ac_status=$? |
| 5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5741 | (exit $ac_status); }; }; then |
| 5742 | ac_cv_c_inline=$ac_kw; break |
| 5743 | else |
| 5744 | echo "$as_me: failed program was:" >&5 |
| 5745 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5746 | |
| 5747 | fi |
| 5748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5749 | done |
| 5750 | |
| 5751 | fi |
| 5752 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5753 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 5754 | |
| 5755 | |
| 5756 | case $ac_cv_c_inline in |
| 5757 | inline | yes) ;; |
| 5758 | *) |
| 5759 | case $ac_cv_c_inline in |
| 5760 | no) ac_val=;; |
| 5761 | *) ac_val=$ac_cv_c_inline;; |
| 5762 | esac |
| 5763 | cat >>confdefs.h <<_ACEOF |
| 5764 | #ifndef __cplusplus |
| 5765 | #define inline $ac_val |
| 5766 | #endif |
| 5767 | _ACEOF |
| 5768 | ;; |
| 5769 | esac |
| 5770 | |
| 5771 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5772 | |
| 5773 | |
| 5774 | |
| 5775 | |
| 5776 | |
| 5777 | |
| 5778 | |
| 5779 | |
| 5780 | |
| 5781 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5782 | inttypes.h stdint.h unistd.h |
| 5783 | do |
| 5784 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5789 | else |
| 5790 | cat >conftest.$ac_ext <<_ACEOF |
| 5791 | /* confdefs.h. */ |
| 5792 | _ACEOF |
| 5793 | cat confdefs.h >>conftest.$ac_ext |
| 5794 | cat >>conftest.$ac_ext <<_ACEOF |
| 5795 | /* end confdefs.h. */ |
| 5796 | $ac_includes_default |
| 5797 | |
| 5798 | #include <$ac_header> |
| 5799 | _ACEOF |
| 5800 | rm -f conftest.$ac_objext |
| 5801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5802 | (eval $ac_compile) 2>conftest.er1 |
| 5803 | ac_status=$? |
| 5804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5805 | rm -f conftest.er1 |
| 5806 | cat conftest.err >&5 |
| 5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5808 | (exit $ac_status); } && |
| 5809 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5810 | || test ! -s conftest.err' |
| 5811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5812 | (eval $ac_try) 2>&5 |
| 5813 | ac_status=$? |
| 5814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5815 | (exit $ac_status); }; } && |
| 5816 | { ac_try='test -s conftest.$ac_objext' |
| 5817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5818 | (eval $ac_try) 2>&5 |
| 5819 | ac_status=$? |
| 5820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5821 | (exit $ac_status); }; }; then |
| 5822 | eval "$as_ac_Header=yes" |
| 5823 | else |
| 5824 | echo "$as_me: failed program was:" >&5 |
| 5825 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5826 | |
| 5827 | eval "$as_ac_Header=no" |
| 5828 | fi |
| 5829 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5830 | fi |
| 5831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5832 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5833 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5834 | cat >>confdefs.h <<_ACEOF |
| 5835 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5836 | _ACEOF |
| 5837 | |
| 5838 | fi |
| 5839 | |
| 5840 | done |
| 5841 | |
| 5842 | |
| 5843 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5844 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5845 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5847 | else |
| 5848 | cat >conftest.$ac_ext <<_ACEOF |
| 5849 | /* confdefs.h. */ |
| 5850 | _ACEOF |
| 5851 | cat confdefs.h >>conftest.$ac_ext |
| 5852 | cat >>conftest.$ac_ext <<_ACEOF |
| 5853 | /* end confdefs.h. */ |
| 5854 | $ac_includes_default |
| 5855 | int |
| 5856 | main () |
| 5857 | { |
| 5858 | if ((off_t *) 0) |
| 5859 | return 0; |
| 5860 | if (sizeof (off_t)) |
| 5861 | return 0; |
| 5862 | ; |
| 5863 | return 0; |
| 5864 | } |
| 5865 | _ACEOF |
| 5866 | rm -f conftest.$ac_objext |
| 5867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5868 | (eval $ac_compile) 2>conftest.er1 |
| 5869 | ac_status=$? |
| 5870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5871 | rm -f conftest.er1 |
| 5872 | cat conftest.err >&5 |
| 5873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5874 | (exit $ac_status); } && |
| 5875 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5876 | || test ! -s conftest.err' |
| 5877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5878 | (eval $ac_try) 2>&5 |
| 5879 | ac_status=$? |
| 5880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5881 | (exit $ac_status); }; } && |
| 5882 | { ac_try='test -s conftest.$ac_objext' |
| 5883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5884 | (eval $ac_try) 2>&5 |
| 5885 | ac_status=$? |
| 5886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5887 | (exit $ac_status); }; }; then |
| 5888 | ac_cv_type_off_t=yes |
| 5889 | else |
| 5890 | echo "$as_me: failed program was:" >&5 |
| 5891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5892 | |
| 5893 | ac_cv_type_off_t=no |
| 5894 | fi |
| 5895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5896 | fi |
| 5897 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5898 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5899 | if test $ac_cv_type_off_t = yes; then |
| 5900 | : |
| 5901 | else |
| 5902 | |
| 5903 | cat >>confdefs.h <<_ACEOF |
| 5904 | #define off_t long |
| 5905 | _ACEOF |
| 5906 | |
| 5907 | fi |
| 5908 | |
| 5909 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5910 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5911 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5913 | else |
| 5914 | cat >conftest.$ac_ext <<_ACEOF |
| 5915 | /* confdefs.h. */ |
| 5916 | _ACEOF |
| 5917 | cat confdefs.h >>conftest.$ac_ext |
| 5918 | cat >>conftest.$ac_ext <<_ACEOF |
| 5919 | /* end confdefs.h. */ |
| 5920 | $ac_includes_default |
| 5921 | int |
| 5922 | main () |
| 5923 | { |
| 5924 | if ((size_t *) 0) |
| 5925 | return 0; |
| 5926 | if (sizeof (size_t)) |
| 5927 | return 0; |
| 5928 | ; |
| 5929 | return 0; |
| 5930 | } |
| 5931 | _ACEOF |
| 5932 | rm -f conftest.$ac_objext |
| 5933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5934 | (eval $ac_compile) 2>conftest.er1 |
| 5935 | ac_status=$? |
| 5936 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5937 | rm -f conftest.er1 |
| 5938 | cat conftest.err >&5 |
| 5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5940 | (exit $ac_status); } && |
| 5941 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5942 | || test ! -s conftest.err' |
| 5943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5944 | (eval $ac_try) 2>&5 |
| 5945 | ac_status=$? |
| 5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5947 | (exit $ac_status); }; } && |
| 5948 | { ac_try='test -s conftest.$ac_objext' |
| 5949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5950 | (eval $ac_try) 2>&5 |
| 5951 | ac_status=$? |
| 5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5953 | (exit $ac_status); }; }; then |
| 5954 | ac_cv_type_size_t=yes |
| 5955 | else |
| 5956 | echo "$as_me: failed program was:" >&5 |
| 5957 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5958 | |
| 5959 | ac_cv_type_size_t=no |
| 5960 | fi |
| 5961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5962 | fi |
| 5963 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5964 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5965 | if test $ac_cv_type_size_t = yes; then |
| 5966 | : |
| 5967 | else |
| 5968 | |
| 5969 | cat >>confdefs.h <<_ACEOF |
| 5970 | #define size_t unsigned |
| 5971 | _ACEOF |
| 5972 | |
| 5973 | fi |
| 5974 | |
| 5975 | |
| 5976 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 5977 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 5978 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5980 | else |
| 5981 | cat >conftest.$ac_ext <<_ACEOF |
| 5982 | /* confdefs.h. */ |
| 5983 | _ACEOF |
| 5984 | cat confdefs.h >>conftest.$ac_ext |
| 5985 | cat >>conftest.$ac_ext <<_ACEOF |
| 5986 | /* end confdefs.h. */ |
| 5987 | long long ll = 1LL; int i = 63; |
| 5988 | int |
| 5989 | main () |
| 5990 | { |
| 5991 | long long llmax = (long long) -1; |
| 5992 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5993 | ; |
| 5994 | return 0; |
| 5995 | } |
| 5996 | _ACEOF |
| 5997 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5999 | (eval $ac_link) 2>conftest.er1 |
| 6000 | ac_status=$? |
| 6001 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6002 | rm -f conftest.er1 |
| 6003 | cat conftest.err >&5 |
| 6004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6005 | (exit $ac_status); } && |
| 6006 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6007 | || test ! -s conftest.err' |
| 6008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6009 | (eval $ac_try) 2>&5 |
| 6010 | ac_status=$? |
| 6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6012 | (exit $ac_status); }; } && |
| 6013 | { ac_try='test -s conftest$ac_exeext' |
| 6014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6015 | (eval $ac_try) 2>&5 |
| 6016 | ac_status=$? |
| 6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6018 | (exit $ac_status); }; }; then |
| 6019 | ac_cv_type_long_long=yes |
| 6020 | else |
| 6021 | echo "$as_me: failed program was:" >&5 |
| 6022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6023 | |
| 6024 | ac_cv_type_long_long=no |
| 6025 | fi |
| 6026 | rm -f conftest.err conftest.$ac_objext \ |
| 6027 | conftest$ac_exeext conftest.$ac_ext |
| 6028 | fi |
| 6029 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 6030 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 6031 | if test $ac_cv_type_long_long = yes; then |
| 6032 | |
| 6033 | cat >>confdefs.h <<\_ACEOF |
| 6034 | #define HAVE_LONG_LONG 1 |
| 6035 | _ACEOF |
| 6036 | |
| 6037 | fi |
| 6038 | |
| 6039 | |
| 6040 | echo "$as_me:$LINENO: checking for long double" >&5 |
| 6041 | echo $ECHO_N "checking for long double... $ECHO_C" >&6 |
| 6042 | if test "${gt_cv_c_long_double+set}" = set; then |
| 6043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6044 | else |
| 6045 | if test "$GCC" = yes; then |
| 6046 | gt_cv_c_long_double=yes |
| 6047 | else |
| 6048 | cat >conftest.$ac_ext <<_ACEOF |
| 6049 | /* confdefs.h. */ |
| 6050 | _ACEOF |
| 6051 | cat confdefs.h >>conftest.$ac_ext |
| 6052 | cat >>conftest.$ac_ext <<_ACEOF |
| 6053 | /* end confdefs.h. */ |
| 6054 | |
| 6055 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6056 | long double foo = 0.0; |
| 6057 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6058 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6059 | |
| 6060 | int |
| 6061 | main () |
| 6062 | { |
| 6063 | |
| 6064 | ; |
| 6065 | return 0; |
| 6066 | } |
| 6067 | _ACEOF |
| 6068 | rm -f conftest.$ac_objext |
| 6069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6070 | (eval $ac_compile) 2>conftest.er1 |
| 6071 | ac_status=$? |
| 6072 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6073 | rm -f conftest.er1 |
| 6074 | cat conftest.err >&5 |
| 6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6076 | (exit $ac_status); } && |
| 6077 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6078 | || test ! -s conftest.err' |
| 6079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6080 | (eval $ac_try) 2>&5 |
| 6081 | ac_status=$? |
| 6082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6083 | (exit $ac_status); }; } && |
| 6084 | { ac_try='test -s conftest.$ac_objext' |
| 6085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6086 | (eval $ac_try) 2>&5 |
| 6087 | ac_status=$? |
| 6088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6089 | (exit $ac_status); }; }; then |
| 6090 | gt_cv_c_long_double=yes |
| 6091 | else |
| 6092 | echo "$as_me: failed program was:" >&5 |
| 6093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6094 | |
| 6095 | gt_cv_c_long_double=no |
| 6096 | fi |
| 6097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6098 | fi |
| 6099 | fi |
| 6100 | echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 6101 | echo "${ECHO_T}$gt_cv_c_long_double" >&6 |
| 6102 | if test $gt_cv_c_long_double = yes; then |
| 6103 | |
| 6104 | cat >>confdefs.h <<\_ACEOF |
| 6105 | #define HAVE_LONG_DOUBLE 1 |
| 6106 | _ACEOF |
| 6107 | |
| 6108 | fi |
| 6109 | |
| 6110 | |
| 6111 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 6112 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 6113 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 6114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6115 | else |
| 6116 | cat >conftest.$ac_ext <<_ACEOF |
| 6117 | /* confdefs.h. */ |
| 6118 | _ACEOF |
| 6119 | cat confdefs.h >>conftest.$ac_ext |
| 6120 | cat >>conftest.$ac_ext <<_ACEOF |
| 6121 | /* end confdefs.h. */ |
| 6122 | #include <stddef.h> |
| 6123 | wchar_t foo = (wchar_t)'\0'; |
| 6124 | int |
| 6125 | main () |
| 6126 | { |
| 6127 | |
| 6128 | ; |
| 6129 | return 0; |
| 6130 | } |
| 6131 | _ACEOF |
| 6132 | rm -f conftest.$ac_objext |
| 6133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6134 | (eval $ac_compile) 2>conftest.er1 |
| 6135 | ac_status=$? |
| 6136 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6137 | rm -f conftest.er1 |
| 6138 | cat conftest.err >&5 |
| 6139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6140 | (exit $ac_status); } && |
| 6141 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6142 | || test ! -s conftest.err' |
| 6143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6144 | (eval $ac_try) 2>&5 |
| 6145 | ac_status=$? |
| 6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6147 | (exit $ac_status); }; } && |
| 6148 | { ac_try='test -s conftest.$ac_objext' |
| 6149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6150 | (eval $ac_try) 2>&5 |
| 6151 | ac_status=$? |
| 6152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6153 | (exit $ac_status); }; }; then |
| 6154 | gt_cv_c_wchar_t=yes |
| 6155 | else |
| 6156 | echo "$as_me: failed program was:" >&5 |
| 6157 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6158 | |
| 6159 | gt_cv_c_wchar_t=no |
| 6160 | fi |
| 6161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6162 | fi |
| 6163 | echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 6164 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 |
| 6165 | if test $gt_cv_c_wchar_t = yes; then |
| 6166 | |
| 6167 | cat >>confdefs.h <<\_ACEOF |
| 6168 | #define HAVE_WCHAR_T 1 |
| 6169 | _ACEOF |
| 6170 | |
| 6171 | fi |
| 6172 | |
| 6173 | |
| 6174 | echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 6175 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 |
| 6176 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 6177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6178 | else |
| 6179 | cat >conftest.$ac_ext <<_ACEOF |
| 6180 | /* confdefs.h. */ |
| 6181 | _ACEOF |
| 6182 | cat confdefs.h >>conftest.$ac_ext |
| 6183 | cat >>conftest.$ac_ext <<_ACEOF |
| 6184 | /* end confdefs.h. */ |
| 6185 | #include <wchar.h> |
| 6186 | wint_t foo = (wchar_t)'\0'; |
| 6187 | int |
| 6188 | main () |
| 6189 | { |
| 6190 | |
| 6191 | ; |
| 6192 | return 0; |
| 6193 | } |
| 6194 | _ACEOF |
| 6195 | rm -f conftest.$ac_objext |
| 6196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6197 | (eval $ac_compile) 2>conftest.er1 |
| 6198 | ac_status=$? |
| 6199 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6200 | rm -f conftest.er1 |
| 6201 | cat conftest.err >&5 |
| 6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6203 | (exit $ac_status); } && |
| 6204 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6205 | || test ! -s conftest.err' |
| 6206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6207 | (eval $ac_try) 2>&5 |
| 6208 | ac_status=$? |
| 6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6210 | (exit $ac_status); }; } && |
| 6211 | { ac_try='test -s conftest.$ac_objext' |
| 6212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6213 | (eval $ac_try) 2>&5 |
| 6214 | ac_status=$? |
| 6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6216 | (exit $ac_status); }; }; then |
| 6217 | gt_cv_c_wint_t=yes |
| 6218 | else |
| 6219 | echo "$as_me: failed program was:" >&5 |
| 6220 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6221 | |
| 6222 | gt_cv_c_wint_t=no |
| 6223 | fi |
| 6224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6225 | fi |
| 6226 | echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 6227 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6 |
| 6228 | if test $gt_cv_c_wint_t = yes; then |
| 6229 | |
| 6230 | cat >>confdefs.h <<\_ACEOF |
| 6231 | #define HAVE_WINT_T 1 |
| 6232 | _ACEOF |
| 6233 | |
| 6234 | fi |
| 6235 | |
| 6236 | |
| 6237 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6238 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
| 6239 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 6240 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6241 | else |
| 6242 | cat >conftest.$ac_ext <<_ACEOF |
| 6243 | /* confdefs.h. */ |
| 6244 | _ACEOF |
| 6245 | cat confdefs.h >>conftest.$ac_ext |
| 6246 | cat >>conftest.$ac_ext <<_ACEOF |
| 6247 | /* end confdefs.h. */ |
| 6248 | #include <sys/types.h> |
| 6249 | #include <inttypes.h> |
| 6250 | int |
| 6251 | main () |
| 6252 | { |
| 6253 | uintmax_t i = (uintmax_t) -1; |
| 6254 | ; |
| 6255 | return 0; |
| 6256 | } |
| 6257 | _ACEOF |
| 6258 | rm -f conftest.$ac_objext |
| 6259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6260 | (eval $ac_compile) 2>conftest.er1 |
| 6261 | ac_status=$? |
| 6262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6263 | rm -f conftest.er1 |
| 6264 | cat conftest.err >&5 |
| 6265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6266 | (exit $ac_status); } && |
| 6267 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6268 | || test ! -s conftest.err' |
| 6269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6270 | (eval $ac_try) 2>&5 |
| 6271 | ac_status=$? |
| 6272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6273 | (exit $ac_status); }; } && |
| 6274 | { ac_try='test -s conftest.$ac_objext' |
| 6275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6276 | (eval $ac_try) 2>&5 |
| 6277 | ac_status=$? |
| 6278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6279 | (exit $ac_status); }; }; then |
| 6280 | jm_ac_cv_header_inttypes_h=yes |
| 6281 | else |
| 6282 | echo "$as_me: failed program was:" >&5 |
| 6283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6284 | |
| 6285 | jm_ac_cv_header_inttypes_h=no |
| 6286 | fi |
| 6287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6288 | fi |
| 6289 | echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 6290 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6 |
| 6291 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6292 | |
| 6293 | cat >>confdefs.h <<_ACEOF |
| 6294 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6295 | _ACEOF |
| 6296 | |
| 6297 | fi |
| 6298 | |
| 6299 | |
| 6300 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 6301 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
| 6302 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 6303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6304 | else |
| 6305 | cat >conftest.$ac_ext <<_ACEOF |
| 6306 | /* confdefs.h. */ |
| 6307 | _ACEOF |
| 6308 | cat confdefs.h >>conftest.$ac_ext |
| 6309 | cat >>conftest.$ac_ext <<_ACEOF |
| 6310 | /* end confdefs.h. */ |
| 6311 | #include <sys/types.h> |
| 6312 | #include <stdint.h> |
| 6313 | int |
| 6314 | main () |
| 6315 | { |
| 6316 | uintmax_t i = (uintmax_t) -1; |
| 6317 | ; |
| 6318 | return 0; |
| 6319 | } |
| 6320 | _ACEOF |
| 6321 | rm -f conftest.$ac_objext |
| 6322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6323 | (eval $ac_compile) 2>conftest.er1 |
| 6324 | ac_status=$? |
| 6325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6326 | rm -f conftest.er1 |
| 6327 | cat conftest.err >&5 |
| 6328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6329 | (exit $ac_status); } && |
| 6330 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6331 | || test ! -s conftest.err' |
| 6332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6333 | (eval $ac_try) 2>&5 |
| 6334 | ac_status=$? |
| 6335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6336 | (exit $ac_status); }; } && |
| 6337 | { ac_try='test -s conftest.$ac_objext' |
| 6338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6339 | (eval $ac_try) 2>&5 |
| 6340 | ac_status=$? |
| 6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6342 | (exit $ac_status); }; }; then |
| 6343 | jm_ac_cv_header_stdint_h=yes |
| 6344 | else |
| 6345 | echo "$as_me: failed program was:" >&5 |
| 6346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6347 | |
| 6348 | jm_ac_cv_header_stdint_h=no |
| 6349 | fi |
| 6350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6351 | fi |
| 6352 | echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 6353 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6 |
| 6354 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6355 | |
| 6356 | cat >>confdefs.h <<_ACEOF |
| 6357 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6358 | _ACEOF |
| 6359 | |
| 6360 | fi |
| 6361 | |
| 6362 | |
| 6363 | |
| 6364 | |
| 6365 | echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 6366 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 |
| 6367 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 6368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6369 | else |
| 6370 | cat >conftest.$ac_ext <<_ACEOF |
| 6371 | /* confdefs.h. */ |
| 6372 | _ACEOF |
| 6373 | cat confdefs.h >>conftest.$ac_ext |
| 6374 | cat >>conftest.$ac_ext <<_ACEOF |
| 6375 | /* end confdefs.h. */ |
| 6376 | |
| 6377 | #include <stddef.h> |
| 6378 | #include <stdlib.h> |
| 6379 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6380 | #include <stdint.h> |
| 6381 | #endif |
| 6382 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6383 | #include <inttypes.h> |
| 6384 | #endif |
| 6385 | |
| 6386 | int |
| 6387 | main () |
| 6388 | { |
| 6389 | intmax_t x = -1; |
| 6390 | ; |
| 6391 | return 0; |
| 6392 | } |
| 6393 | _ACEOF |
| 6394 | rm -f conftest.$ac_objext |
| 6395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6396 | (eval $ac_compile) 2>conftest.er1 |
| 6397 | ac_status=$? |
| 6398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6399 | rm -f conftest.er1 |
| 6400 | cat conftest.err >&5 |
| 6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6402 | (exit $ac_status); } && |
| 6403 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6404 | || test ! -s conftest.err' |
| 6405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6406 | (eval $ac_try) 2>&5 |
| 6407 | ac_status=$? |
| 6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6409 | (exit $ac_status); }; } && |
| 6410 | { ac_try='test -s conftest.$ac_objext' |
| 6411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6412 | (eval $ac_try) 2>&5 |
| 6413 | ac_status=$? |
| 6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6415 | (exit $ac_status); }; }; then |
| 6416 | gt_cv_c_intmax_t=yes |
| 6417 | else |
| 6418 | echo "$as_me: failed program was:" >&5 |
| 6419 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6420 | |
| 6421 | gt_cv_c_intmax_t=no |
| 6422 | fi |
| 6423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6424 | fi |
| 6425 | echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 6426 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 |
| 6427 | if test $gt_cv_c_intmax_t = yes; then |
| 6428 | |
| 6429 | cat >>confdefs.h <<\_ACEOF |
| 6430 | #define HAVE_INTMAX_T 1 |
| 6431 | _ACEOF |
| 6432 | |
| 6433 | fi |
| 6434 | |
| 6435 | |
| 6436 | |
| 6437 | echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 6438 | echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 |
| 6439 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 6440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6441 | else |
| 6442 | |
| 6443 | if test "$cross_compiling" = yes; then |
| 6444 | |
| 6445 | cat >conftest.$ac_ext <<_ACEOF |
| 6446 | /* confdefs.h. */ |
| 6447 | _ACEOF |
| 6448 | cat confdefs.h >>conftest.$ac_ext |
| 6449 | cat >>conftest.$ac_ext <<_ACEOF |
| 6450 | /* end confdefs.h. */ |
| 6451 | |
| 6452 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6453 | notposix |
| 6454 | #endif |
| 6455 | |
| 6456 | _ACEOF |
| 6457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6458 | $EGREP "notposix" >/dev/null 2>&1; then |
| 6459 | gt_cv_func_printf_posix="guessing no" |
| 6460 | else |
| 6461 | gt_cv_func_printf_posix="guessing yes" |
| 6462 | fi |
| 6463 | rm -f conftest* |
| 6464 | |
| 6465 | |
| 6466 | else |
| 6467 | cat >conftest.$ac_ext <<_ACEOF |
| 6468 | /* confdefs.h. */ |
| 6469 | _ACEOF |
| 6470 | cat confdefs.h >>conftest.$ac_ext |
| 6471 | cat >>conftest.$ac_ext <<_ACEOF |
| 6472 | /* end confdefs.h. */ |
| 6473 | |
| 6474 | #include <stdio.h> |
| 6475 | #include <string.h> |
| 6476 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6477 | dollar expansion (possibly an autoconf bug). */ |
| 6478 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6479 | static char buf[100]; |
| 6480 | int main () |
| 6481 | { |
| 6482 | sprintf (buf, format, 33, 55); |
| 6483 | return (strcmp (buf, "55 33") != 0); |
| 6484 | } |
| 6485 | _ACEOF |
| 6486 | rm -f conftest$ac_exeext |
| 6487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6488 | (eval $ac_link) 2>&5 |
| 6489 | ac_status=$? |
| 6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6491 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6493 | (eval $ac_try) 2>&5 |
| 6494 | ac_status=$? |
| 6495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6496 | (exit $ac_status); }; }; then |
| 6497 | gt_cv_func_printf_posix=yes |
| 6498 | else |
| 6499 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6500 | echo "$as_me: failed program was:" >&5 |
| 6501 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6502 | |
| 6503 | ( exit $ac_status ) |
| 6504 | gt_cv_func_printf_posix=no |
| 6505 | fi |
| 6506 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6507 | fi |
| 6508 | |
| 6509 | fi |
| 6510 | echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 6511 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 |
| 6512 | case $gt_cv_func_printf_posix in |
| 6513 | *yes) |
| 6514 | |
| 6515 | cat >>confdefs.h <<\_ACEOF |
| 6516 | #define HAVE_POSIX_PRINTF 1 |
| 6517 | _ACEOF |
| 6518 | |
| 6519 | ;; |
| 6520 | esac |
| 6521 | |
| 6522 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6523 | # for constant arguments. Useless! |
| 6524 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 6525 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 6526 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 6527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6528 | else |
| 6529 | cat >conftest.$ac_ext <<_ACEOF |
| 6530 | /* confdefs.h. */ |
| 6531 | _ACEOF |
| 6532 | cat confdefs.h >>conftest.$ac_ext |
| 6533 | cat >>conftest.$ac_ext <<_ACEOF |
| 6534 | /* end confdefs.h. */ |
| 6535 | #include <alloca.h> |
| 6536 | int |
| 6537 | main () |
| 6538 | { |
| 6539 | char *p = (char *) alloca (2 * sizeof (int)); |
| 6540 | ; |
| 6541 | return 0; |
| 6542 | } |
| 6543 | _ACEOF |
| 6544 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6546 | (eval $ac_link) 2>conftest.er1 |
| 6547 | ac_status=$? |
| 6548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6549 | rm -f conftest.er1 |
| 6550 | cat conftest.err >&5 |
| 6551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6552 | (exit $ac_status); } && |
| 6553 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6554 | || test ! -s conftest.err' |
| 6555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6556 | (eval $ac_try) 2>&5 |
| 6557 | ac_status=$? |
| 6558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6559 | (exit $ac_status); }; } && |
| 6560 | { ac_try='test -s conftest$ac_exeext' |
| 6561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6562 | (eval $ac_try) 2>&5 |
| 6563 | ac_status=$? |
| 6564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6565 | (exit $ac_status); }; }; then |
| 6566 | ac_cv_working_alloca_h=yes |
| 6567 | else |
| 6568 | echo "$as_me: failed program was:" >&5 |
| 6569 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6570 | |
| 6571 | ac_cv_working_alloca_h=no |
| 6572 | fi |
| 6573 | rm -f conftest.err conftest.$ac_objext \ |
| 6574 | conftest$ac_exeext conftest.$ac_ext |
| 6575 | fi |
| 6576 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 6577 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 6578 | if test $ac_cv_working_alloca_h = yes; then |
| 6579 | |
| 6580 | cat >>confdefs.h <<\_ACEOF |
| 6581 | #define HAVE_ALLOCA_H 1 |
| 6582 | _ACEOF |
| 6583 | |
| 6584 | fi |
| 6585 | |
| 6586 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 6587 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 6588 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 6589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6590 | else |
| 6591 | cat >conftest.$ac_ext <<_ACEOF |
| 6592 | /* confdefs.h. */ |
| 6593 | _ACEOF |
| 6594 | cat confdefs.h >>conftest.$ac_ext |
| 6595 | cat >>conftest.$ac_ext <<_ACEOF |
| 6596 | /* end confdefs.h. */ |
| 6597 | #ifdef __GNUC__ |
| 6598 | # define alloca __builtin_alloca |
| 6599 | #else |
| 6600 | # ifdef _MSC_VER |
| 6601 | # include <malloc.h> |
| 6602 | # define alloca _alloca |
| 6603 | # else |
| 6604 | # if HAVE_ALLOCA_H |
| 6605 | # include <alloca.h> |
| 6606 | # else |
| 6607 | # ifdef _AIX |
| 6608 | #pragma alloca |
| 6609 | # else |
| 6610 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6611 | char *alloca (); |
| 6612 | # endif |
| 6613 | # endif |
| 6614 | # endif |
| 6615 | # endif |
| 6616 | #endif |
| 6617 | |
| 6618 | int |
| 6619 | main () |
| 6620 | { |
| 6621 | char *p = (char *) alloca (1); |
| 6622 | ; |
| 6623 | return 0; |
| 6624 | } |
| 6625 | _ACEOF |
| 6626 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6628 | (eval $ac_link) 2>conftest.er1 |
| 6629 | ac_status=$? |
| 6630 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6631 | rm -f conftest.er1 |
| 6632 | cat conftest.err >&5 |
| 6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6634 | (exit $ac_status); } && |
| 6635 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6636 | || test ! -s conftest.err' |
| 6637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6638 | (eval $ac_try) 2>&5 |
| 6639 | ac_status=$? |
| 6640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6641 | (exit $ac_status); }; } && |
| 6642 | { ac_try='test -s conftest$ac_exeext' |
| 6643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6644 | (eval $ac_try) 2>&5 |
| 6645 | ac_status=$? |
| 6646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6647 | (exit $ac_status); }; }; then |
| 6648 | ac_cv_func_alloca_works=yes |
| 6649 | else |
| 6650 | echo "$as_me: failed program was:" >&5 |
| 6651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6652 | |
| 6653 | ac_cv_func_alloca_works=no |
| 6654 | fi |
| 6655 | rm -f conftest.err conftest.$ac_objext \ |
| 6656 | conftest$ac_exeext conftest.$ac_ext |
| 6657 | fi |
| 6658 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 6659 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 6660 | |
| 6661 | if test $ac_cv_func_alloca_works = yes; then |
| 6662 | |
| 6663 | cat >>confdefs.h <<\_ACEOF |
| 6664 | #define HAVE_ALLOCA 1 |
| 6665 | _ACEOF |
| 6666 | |
| 6667 | else |
| 6668 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6669 | # that cause trouble. Some versions do not even contain alloca or |
| 6670 | # contain a buggy version. If you still want to use their alloca, |
| 6671 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6672 | |
| 6673 | ALLOCA=alloca.$ac_objext |
| 6674 | |
| 6675 | cat >>confdefs.h <<\_ACEOF |
| 6676 | #define C_ALLOCA 1 |
| 6677 | _ACEOF |
| 6678 | |
| 6679 | |
| 6680 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 6681 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 6682 | if test "${ac_cv_os_cray+set}" = set; then |
| 6683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6684 | else |
| 6685 | cat >conftest.$ac_ext <<_ACEOF |
| 6686 | /* confdefs.h. */ |
| 6687 | _ACEOF |
| 6688 | cat confdefs.h >>conftest.$ac_ext |
| 6689 | cat >>conftest.$ac_ext <<_ACEOF |
| 6690 | /* end confdefs.h. */ |
| 6691 | #if defined(CRAY) && ! defined(CRAY2) |
| 6692 | webecray |
| 6693 | #else |
| 6694 | wenotbecray |
| 6695 | #endif |
| 6696 | |
| 6697 | _ACEOF |
| 6698 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6699 | $EGREP "webecray" >/dev/null 2>&1; then |
| 6700 | ac_cv_os_cray=yes |
| 6701 | else |
| 6702 | ac_cv_os_cray=no |
| 6703 | fi |
| 6704 | rm -f conftest* |
| 6705 | |
| 6706 | fi |
| 6707 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 6708 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 6709 | if test $ac_cv_os_cray = yes; then |
| 6710 | for ac_func in _getb67 GETB67 getb67; do |
| 6711 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 6712 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6713 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6714 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 6715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6716 | else |
| 6717 | cat >conftest.$ac_ext <<_ACEOF |
| 6718 | /* confdefs.h. */ |
| 6719 | _ACEOF |
| 6720 | cat confdefs.h >>conftest.$ac_ext |
| 6721 | cat >>conftest.$ac_ext <<_ACEOF |
| 6722 | /* end confdefs.h. */ |
| 6723 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6724 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6725 | #define $ac_func innocuous_$ac_func |
| 6726 | |
| 6727 | /* System header to define __stub macros and hopefully few prototypes, |
| 6728 | which can conflict with char $ac_func (); below. |
| 6729 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6730 | <limits.h> exists even on freestanding compilers. */ |
| 6731 | |
| 6732 | #ifdef __STDC__ |
| 6733 | # include <limits.h> |
| 6734 | #else |
| 6735 | # include <assert.h> |
| 6736 | #endif |
| 6737 | |
| 6738 | #undef $ac_func |
| 6739 | |
| 6740 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6741 | #ifdef __cplusplus |
| 6742 | extern "C" |
| 6743 | { |
| 6744 | #endif |
| 6745 | /* We use char because int might match the return type of a gcc2 |
| 6746 | builtin and then its argument prototype would still apply. */ |
| 6747 | char $ac_func (); |
| 6748 | /* The GNU C library defines this for functions which it implements |
| 6749 | to always fail with ENOSYS. Some functions are actually named |
| 6750 | something starting with __ and the normal name is an alias. */ |
| 6751 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6752 | choke me |
| 6753 | #else |
| 6754 | char (*f) () = $ac_func; |
| 6755 | #endif |
| 6756 | #ifdef __cplusplus |
| 6757 | } |
| 6758 | #endif |
| 6759 | |
| 6760 | int |
| 6761 | main () |
| 6762 | { |
| 6763 | return f != $ac_func; |
| 6764 | ; |
| 6765 | return 0; |
| 6766 | } |
| 6767 | _ACEOF |
| 6768 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 6769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6770 | (eval $ac_link) 2>conftest.er1 |
| 6771 | ac_status=$? |
| 6772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6773 | rm -f conftest.er1 |
| 6774 | cat conftest.err >&5 |
| 6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6776 | (exit $ac_status); } && |
| 6777 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6778 | || test ! -s conftest.err' |
| 6779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6780 | (eval $ac_try) 2>&5 |
| 6781 | ac_status=$? |
| 6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6783 | (exit $ac_status); }; } && |
| 6784 | { ac_try='test -s conftest$ac_exeext' |
| 6785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6786 | (eval $ac_try) 2>&5 |
| 6787 | ac_status=$? |
| 6788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6789 | (exit $ac_status); }; }; then |
| 6790 | eval "$as_ac_var=yes" |
| 6791 | else |
| 6792 | echo "$as_me: failed program was:" >&5 |
| 6793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6794 | |
| 6795 | eval "$as_ac_var=no" |
| 6796 | fi |
| 6797 | rm -f conftest.err conftest.$ac_objext \ |
| 6798 | conftest$ac_exeext conftest.$ac_ext |
| 6799 | fi |
| 6800 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 6801 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6802 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6803 | |
| 6804 | cat >>confdefs.h <<_ACEOF |
| 6805 | #define CRAY_STACKSEG_END $ac_func |
| 6806 | _ACEOF |
| 6807 | |
| 6808 | break |
| 6809 | fi |
| 6810 | |
| 6811 | done |
| 6812 | fi |
| 6813 | |
| 6814 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6815 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 6816 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6818 | else |
| 6819 | if test "$cross_compiling" = yes; then |
| 6820 | ac_cv_c_stack_direction=0 |
| 6821 | else |
| 6822 | cat >conftest.$ac_ext <<_ACEOF |
| 6823 | /* confdefs.h. */ |
| 6824 | _ACEOF |
| 6825 | cat confdefs.h >>conftest.$ac_ext |
| 6826 | cat >>conftest.$ac_ext <<_ACEOF |
| 6827 | /* end confdefs.h. */ |
| 6828 | int |
| 6829 | find_stack_direction () |
| 6830 | { |
| 6831 | static char *addr = 0; |
| 6832 | auto char dummy; |
| 6833 | if (addr == 0) |
| 6834 | { |
| 6835 | addr = &dummy; |
| 6836 | return find_stack_direction (); |
| 6837 | } |
| 6838 | else |
| 6839 | return (&dummy > addr) ? 1 : -1; |
| 6840 | } |
| 6841 | |
| 6842 | int |
| 6843 | main () |
| 6844 | { |
| 6845 | exit (find_stack_direction () < 0); |
| 6846 | } |
| 6847 | _ACEOF |
| 6848 | rm -f conftest$ac_exeext |
| 6849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6850 | (eval $ac_link) 2>&5 |
| 6851 | ac_status=$? |
| 6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6853 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6855 | (eval $ac_try) 2>&5 |
| 6856 | ac_status=$? |
| 6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6858 | (exit $ac_status); }; }; then |
| 6859 | ac_cv_c_stack_direction=1 |
| 6860 | else |
| 6861 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6862 | echo "$as_me: failed program was:" >&5 |
| 6863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6864 | |
| 6865 | ( exit $ac_status ) |
| 6866 | ac_cv_c_stack_direction=-1 |
| 6867 | fi |
| 6868 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6869 | fi |
| 6870 | fi |
| 6871 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6872 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 6873 | |
| 6874 | cat >>confdefs.h <<_ACEOF |
| 6875 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 6876 | _ACEOF |
| 6877 | |
| 6878 | |
| 6879 | fi |
| 6880 | |
| 6881 | |
| 6882 | |
| 6883 | for ac_header in stdlib.h unistd.h |
| 6884 | do |
| 6885 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6886 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6887 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6888 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6891 | fi |
| 6892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6894 | else |
| 6895 | # Is the header compilable? |
| 6896 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6897 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6898 | cat >conftest.$ac_ext <<_ACEOF |
| 6899 | /* confdefs.h. */ |
| 6900 | _ACEOF |
| 6901 | cat confdefs.h >>conftest.$ac_ext |
| 6902 | cat >>conftest.$ac_ext <<_ACEOF |
| 6903 | /* end confdefs.h. */ |
| 6904 | $ac_includes_default |
| 6905 | #include <$ac_header> |
| 6906 | _ACEOF |
| 6907 | rm -f conftest.$ac_objext |
| 6908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6909 | (eval $ac_compile) 2>conftest.er1 |
| 6910 | ac_status=$? |
| 6911 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6912 | rm -f conftest.er1 |
| 6913 | cat conftest.err >&5 |
| 6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6915 | (exit $ac_status); } && |
| 6916 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 6917 | || test ! -s conftest.err' |
| 6918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6919 | (eval $ac_try) 2>&5 |
| 6920 | ac_status=$? |
| 6921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6922 | (exit $ac_status); }; } && |
| 6923 | { ac_try='test -s conftest.$ac_objext' |
| 6924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6925 | (eval $ac_try) 2>&5 |
| 6926 | ac_status=$? |
| 6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6928 | (exit $ac_status); }; }; then |
| 6929 | ac_header_compiler=yes |
| 6930 | else |
| 6931 | echo "$as_me: failed program was:" >&5 |
| 6932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6933 | |
| 6934 | ac_header_compiler=no |
| 6935 | fi |
| 6936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6937 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6938 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6939 | |
| 6940 | # Is the header present? |
| 6941 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6942 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6943 | cat >conftest.$ac_ext <<_ACEOF |
| 6944 | /* confdefs.h. */ |
| 6945 | _ACEOF |
| 6946 | cat confdefs.h >>conftest.$ac_ext |
| 6947 | cat >>conftest.$ac_ext <<_ACEOF |
| 6948 | /* end confdefs.h. */ |
| 6949 | #include <$ac_header> |
| 6950 | _ACEOF |
| 6951 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6952 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6953 | ac_status=$? |
| 6954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6955 | rm -f conftest.er1 |
| 6956 | cat conftest.err >&5 |
| 6957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6958 | (exit $ac_status); } >/dev/null; then |
| 6959 | if test -s conftest.err; then |
| 6960 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6961 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6962 | else |
| 6963 | ac_cpp_err= |
| 6964 | fi |
| 6965 | else |
| 6966 | ac_cpp_err=yes |
| 6967 | fi |
| 6968 | if test -z "$ac_cpp_err"; then |
| 6969 | ac_header_preproc=yes |
| 6970 | else |
| 6971 | echo "$as_me: failed program was:" >&5 |
| 6972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6973 | |
| 6974 | ac_header_preproc=no |
| 6975 | fi |
| 6976 | rm -f conftest.err conftest.$ac_ext |
| 6977 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6978 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6979 | |
| 6980 | # So? What about this header? |
| 6981 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 6982 | yes:no: ) |
| 6983 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6984 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6986 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6987 | ac_header_preproc=yes |
| 6988 | ;; |
| 6989 | no:yes:* ) |
| 6990 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6991 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6992 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6993 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6994 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6995 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6996 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6997 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6999 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7000 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7001 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7002 | ( |
| 7003 | cat <<\_ASBOX |
| 7004 | ## ------------------------------------------ ## |
| 7005 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7006 | ## ------------------------------------------ ## |
| 7007 | _ASBOX |
| 7008 | ) | |
| 7009 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7010 | ;; |
| 7011 | esac |
| 7012 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7016 | else |
| 7017 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7018 | fi |
| 7019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7020 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7021 | |
| 7022 | fi |
| 7023 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7024 | cat >>confdefs.h <<_ACEOF |
| 7025 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7026 | _ACEOF |
| 7027 | |
| 7028 | fi |
| 7029 | |
| 7030 | done |
| 7031 | |
| 7032 | |
| 7033 | for ac_func in getpagesize |
| 7034 | do |
| 7035 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 7036 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 7037 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7038 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 7039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7040 | else |
| 7041 | cat >conftest.$ac_ext <<_ACEOF |
| 7042 | /* confdefs.h. */ |
| 7043 | _ACEOF |
| 7044 | cat confdefs.h >>conftest.$ac_ext |
| 7045 | cat >>conftest.$ac_ext <<_ACEOF |
| 7046 | /* end confdefs.h. */ |
| 7047 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 7048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 7049 | #define $ac_func innocuous_$ac_func |
| 7050 | |
| 7051 | /* System header to define __stub macros and hopefully few prototypes, |
| 7052 | which can conflict with char $ac_func (); below. |
| 7053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7054 | <limits.h> exists even on freestanding compilers. */ |
| 7055 | |
| 7056 | #ifdef __STDC__ |
| 7057 | # include <limits.h> |
| 7058 | #else |
| 7059 | # include <assert.h> |
| 7060 | #endif |
| 7061 | |
| 7062 | #undef $ac_func |
| 7063 | |
| 7064 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7065 | #ifdef __cplusplus |
| 7066 | extern "C" |
| 7067 | { |
| 7068 | #endif |
| 7069 | /* We use char because int might match the return type of a gcc2 |
| 7070 | builtin and then its argument prototype would still apply. */ |
| 7071 | char $ac_func (); |
| 7072 | /* The GNU C library defines this for functions which it implements |
| 7073 | to always fail with ENOSYS. Some functions are actually named |
| 7074 | something starting with __ and the normal name is an alias. */ |
| 7075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7076 | choke me |
| 7077 | #else |
| 7078 | char (*f) () = $ac_func; |
| 7079 | #endif |
| 7080 | #ifdef __cplusplus |
| 7081 | } |
| 7082 | #endif |
| 7083 | |
| 7084 | int |
| 7085 | main () |
| 7086 | { |
| 7087 | return f != $ac_func; |
| 7088 | ; |
| 7089 | return 0; |
| 7090 | } |
| 7091 | _ACEOF |
| 7092 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7094 | (eval $ac_link) 2>conftest.er1 |
| 7095 | ac_status=$? |
| 7096 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7097 | rm -f conftest.er1 |
| 7098 | cat conftest.err >&5 |
| 7099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7100 | (exit $ac_status); } && |
| 7101 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7102 | || test ! -s conftest.err' |
| 7103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7104 | (eval $ac_try) 2>&5 |
| 7105 | ac_status=$? |
| 7106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7107 | (exit $ac_status); }; } && |
| 7108 | { ac_try='test -s conftest$ac_exeext' |
| 7109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7110 | (eval $ac_try) 2>&5 |
| 7111 | ac_status=$? |
| 7112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7113 | (exit $ac_status); }; }; then |
| 7114 | eval "$as_ac_var=yes" |
| 7115 | else |
| 7116 | echo "$as_me: failed program was:" >&5 |
| 7117 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7118 | |
| 7119 | eval "$as_ac_var=no" |
| 7120 | fi |
| 7121 | rm -f conftest.err conftest.$ac_objext \ |
| 7122 | conftest$ac_exeext conftest.$ac_ext |
| 7123 | fi |
| 7124 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 7125 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 7126 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 7127 | cat >>confdefs.h <<_ACEOF |
| 7128 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 7129 | _ACEOF |
| 7130 | |
| 7131 | fi |
| 7132 | done |
| 7133 | |
| 7134 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 7135 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 7136 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 7137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7138 | else |
| 7139 | if test "$cross_compiling" = yes; then |
| 7140 | ac_cv_func_mmap_fixed_mapped=no |
| 7141 | else |
| 7142 | cat >conftest.$ac_ext <<_ACEOF |
| 7143 | /* confdefs.h. */ |
| 7144 | _ACEOF |
| 7145 | cat confdefs.h >>conftest.$ac_ext |
| 7146 | cat >>conftest.$ac_ext <<_ACEOF |
| 7147 | /* end confdefs.h. */ |
| 7148 | $ac_includes_default |
| 7149 | /* malloc might have been renamed as rpl_malloc. */ |
| 7150 | #undef malloc |
| 7151 | |
| 7152 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7153 | Here is a matrix of mmap possibilities: |
| 7154 | mmap private not fixed |
| 7155 | mmap private fixed at somewhere currently unmapped |
| 7156 | mmap private fixed at somewhere already mapped |
| 7157 | mmap shared not fixed |
| 7158 | mmap shared fixed at somewhere currently unmapped |
| 7159 | mmap shared fixed at somewhere already mapped |
| 7160 | For private mappings, we should verify that changes cannot be read() |
| 7161 | back from the file, nor mmap's back from the file at a different |
| 7162 | address. (There have been systems where private was not correctly |
| 7163 | implemented like the infamous i386 svr4.0, and systems where the |
| 7164 | VM page cache was not coherent with the file system buffer cache |
| 7165 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7166 | For shared mappings, we should conversely verify that changes get |
| 7167 | propagated back to all the places they're supposed to be. |
| 7168 | |
| 7169 | Grep wants private fixed already mapped. |
| 7170 | The main things grep needs to know about mmap are: |
| 7171 | * does it exist and is it safe to write into the mmap'd area |
| 7172 | * how to use it (BSD variants) */ |
| 7173 | |
| 7174 | #include <fcntl.h> |
| 7175 | #include <sys/mman.h> |
| 7176 | |
| 7177 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 7178 | char *malloc (); |
| 7179 | #endif |
| 7180 | |
| 7181 | /* This mess was copied from the GNU getpagesize.h. */ |
| 7182 | #if !HAVE_GETPAGESIZE |
| 7183 | /* Assume that all systems that can run configure have sys/param.h. */ |
| 7184 | # if !HAVE_SYS_PARAM_H |
| 7185 | # define HAVE_SYS_PARAM_H 1 |
| 7186 | # endif |
| 7187 | |
| 7188 | # ifdef _SC_PAGESIZE |
| 7189 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7190 | # else /* no _SC_PAGESIZE */ |
| 7191 | # if HAVE_SYS_PARAM_H |
| 7192 | # include <sys/param.h> |
| 7193 | # ifdef EXEC_PAGESIZE |
| 7194 | # define getpagesize() EXEC_PAGESIZE |
| 7195 | # else /* no EXEC_PAGESIZE */ |
| 7196 | # ifdef NBPG |
| 7197 | # define getpagesize() NBPG * CLSIZE |
| 7198 | # ifndef CLSIZE |
| 7199 | # define CLSIZE 1 |
| 7200 | # endif /* no CLSIZE */ |
| 7201 | # else /* no NBPG */ |
| 7202 | # ifdef NBPC |
| 7203 | # define getpagesize() NBPC |
| 7204 | # else /* no NBPC */ |
| 7205 | # ifdef PAGESIZE |
| 7206 | # define getpagesize() PAGESIZE |
| 7207 | # endif /* PAGESIZE */ |
| 7208 | # endif /* no NBPC */ |
| 7209 | # endif /* no NBPG */ |
| 7210 | # endif /* no EXEC_PAGESIZE */ |
| 7211 | # else /* no HAVE_SYS_PARAM_H */ |
| 7212 | # define getpagesize() 8192 /* punt totally */ |
| 7213 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7214 | # endif /* no _SC_PAGESIZE */ |
| 7215 | |
| 7216 | #endif /* no HAVE_GETPAGESIZE */ |
| 7217 | |
| 7218 | int |
| 7219 | main () |
| 7220 | { |
| 7221 | char *data, *data2, *data3; |
| 7222 | int i, pagesize; |
| 7223 | int fd; |
| 7224 | |
| 7225 | pagesize = getpagesize (); |
| 7226 | |
| 7227 | /* First, make a file with some known garbage in it. */ |
| 7228 | data = (char *) malloc (pagesize); |
| 7229 | if (!data) |
| 7230 | exit (1); |
| 7231 | for (i = 0; i < pagesize; ++i) |
| 7232 | *(data + i) = rand (); |
| 7233 | umask (0); |
| 7234 | fd = creat ("conftest.mmap", 0600); |
| 7235 | if (fd < 0) |
| 7236 | exit (1); |
| 7237 | if (write (fd, data, pagesize) != pagesize) |
| 7238 | exit (1); |
| 7239 | close (fd); |
| 7240 | |
| 7241 | /* Next, try to mmap the file at a fixed address which already has |
| 7242 | something else allocated at it. If we can, also make sure that |
| 7243 | we see the same garbage. */ |
| 7244 | fd = open ("conftest.mmap", O_RDWR); |
| 7245 | if (fd < 0) |
| 7246 | exit (1); |
| 7247 | data2 = (char *) malloc (2 * pagesize); |
| 7248 | if (!data2) |
| 7249 | exit (1); |
| 7250 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
| 7251 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7252 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 7253 | exit (1); |
| 7254 | for (i = 0; i < pagesize; ++i) |
| 7255 | if (*(data + i) != *(data2 + i)) |
| 7256 | exit (1); |
| 7257 | |
| 7258 | /* Finally, make sure that changes to the mapped area do not |
| 7259 | percolate back to the file as seen by read(). (This is a bug on |
| 7260 | some variants of i386 svr4.0.) */ |
| 7261 | for (i = 0; i < pagesize; ++i) |
| 7262 | *(data2 + i) = *(data2 + i) + 1; |
| 7263 | data3 = (char *) malloc (pagesize); |
| 7264 | if (!data3) |
| 7265 | exit (1); |
| 7266 | if (read (fd, data3, pagesize) != pagesize) |
| 7267 | exit (1); |
| 7268 | for (i = 0; i < pagesize; ++i) |
| 7269 | if (*(data + i) != *(data3 + i)) |
| 7270 | exit (1); |
| 7271 | close (fd); |
| 7272 | exit (0); |
| 7273 | } |
| 7274 | _ACEOF |
| 7275 | rm -f conftest$ac_exeext |
| 7276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7277 | (eval $ac_link) 2>&5 |
| 7278 | ac_status=$? |
| 7279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7280 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7282 | (eval $ac_try) 2>&5 |
| 7283 | ac_status=$? |
| 7284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7285 | (exit $ac_status); }; }; then |
| 7286 | ac_cv_func_mmap_fixed_mapped=yes |
| 7287 | else |
| 7288 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7289 | echo "$as_me: failed program was:" >&5 |
| 7290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7291 | |
| 7292 | ( exit $ac_status ) |
| 7293 | ac_cv_func_mmap_fixed_mapped=no |
| 7294 | fi |
| 7295 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7296 | fi |
| 7297 | fi |
| 7298 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 7299 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 7300 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 7301 | |
| 7302 | cat >>confdefs.h <<\_ACEOF |
| 7303 | #define HAVE_MMAP 1 |
| 7304 | _ACEOF |
| 7305 | |
| 7306 | fi |
| 7307 | rm -f conftest.mmap |
| 7308 | |
| 7309 | |
| 7310 | echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 7311 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 |
| 7312 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 7313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7314 | else |
| 7315 | cat >conftest.$ac_ext <<_ACEOF |
| 7316 | /* confdefs.h. */ |
| 7317 | _ACEOF |
| 7318 | cat confdefs.h >>conftest.$ac_ext |
| 7319 | cat >>conftest.$ac_ext <<_ACEOF |
| 7320 | /* end confdefs.h. */ |
| 7321 | |
| 7322 | #include <features.h> |
| 7323 | #ifdef __GNU_LIBRARY__ |
| 7324 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7325 | Lucky GNU user |
| 7326 | #endif |
| 7327 | #endif |
| 7328 | |
| 7329 | _ACEOF |
| 7330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7331 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
| 7332 | ac_cv_gnu_library_2_1=yes |
| 7333 | else |
| 7334 | ac_cv_gnu_library_2_1=no |
| 7335 | fi |
| 7336 | rm -f conftest* |
| 7337 | |
| 7338 | |
| 7339 | |
| 7340 | fi |
| 7341 | echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 7342 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 |
| 7343 | |
| 7344 | GLIBC21="$ac_cv_gnu_library_2_1" |
| 7345 | |
| 7346 | |
| 7347 | |
| 7348 | |
| 7349 | echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 7350 | echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 |
| 7351 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 7352 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7353 | else |
| 7354 | |
| 7355 | if test "$cross_compiling" = yes; then |
| 7356 | |
| 7357 | # Guess based on the CPU. |
| 7358 | case "$host_cpu" in |
| 7359 | alpha* | i3456786 | m68k | s390*) |
| 7360 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7361 | *) |
| 7362 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7363 | esac |
| 7364 | |
| 7365 | else |
| 7366 | cat >conftest.$ac_ext <<_ACEOF |
| 7367 | /* confdefs.h. */ |
| 7368 | _ACEOF |
| 7369 | cat confdefs.h >>conftest.$ac_ext |
| 7370 | cat >>conftest.$ac_ext <<_ACEOF |
| 7371 | /* end confdefs.h. */ |
| 7372 | |
| 7373 | #include <stdlib.h> |
| 7374 | #include <signal.h> |
| 7375 | |
| 7376 | static void |
| 7377 | #ifdef __cplusplus |
| 7378 | sigfpe_handler (int sig) |
| 7379 | #else |
| 7380 | sigfpe_handler (sig) int sig; |
| 7381 | #endif |
| 7382 | { |
| 7383 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7384 | exit (sig != SIGFPE); |
| 7385 | } |
| 7386 | |
| 7387 | int x = 1; |
| 7388 | int y = 0; |
| 7389 | int z; |
| 7390 | int nan; |
| 7391 | |
| 7392 | int main () |
| 7393 | { |
| 7394 | signal (SIGFPE, sigfpe_handler); |
| 7395 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7396 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7397 | signal (SIGTRAP, sigfpe_handler); |
| 7398 | #endif |
| 7399 | /* Linux/SPARC yields signal SIGILL. */ |
| 7400 | #if defined (__sparc__) && defined (__linux__) |
| 7401 | signal (SIGILL, sigfpe_handler); |
| 7402 | #endif |
| 7403 | |
| 7404 | z = x / y; |
| 7405 | nan = y / y; |
| 7406 | exit (1); |
| 7407 | } |
| 7408 | |
| 7409 | _ACEOF |
| 7410 | rm -f conftest$ac_exeext |
| 7411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7412 | (eval $ac_link) 2>&5 |
| 7413 | ac_status=$? |
| 7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7417 | (eval $ac_try) 2>&5 |
| 7418 | ac_status=$? |
| 7419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7420 | (exit $ac_status); }; }; then |
| 7421 | gt_cv_int_divbyzero_sigfpe=yes |
| 7422 | else |
| 7423 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7424 | echo "$as_me: failed program was:" >&5 |
| 7425 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7426 | |
| 7427 | ( exit $ac_status ) |
| 7428 | gt_cv_int_divbyzero_sigfpe=no |
| 7429 | fi |
| 7430 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7431 | fi |
| 7432 | |
| 7433 | fi |
| 7434 | echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 7435 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 |
| 7436 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7437 | *yes) value=1;; |
| 7438 | *) value=0;; |
| 7439 | esac |
| 7440 | |
| 7441 | cat >>confdefs.h <<_ACEOF |
| 7442 | #define INTDIV0_RAISES_SIGFPE $value |
| 7443 | _ACEOF |
| 7444 | |
| 7445 | |
| 7446 | |
| 7447 | echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 7448 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 |
| 7449 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 7450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7451 | else |
| 7452 | cat >conftest.$ac_ext <<_ACEOF |
| 7453 | /* confdefs.h. */ |
| 7454 | _ACEOF |
| 7455 | cat confdefs.h >>conftest.$ac_ext |
| 7456 | cat >>conftest.$ac_ext <<_ACEOF |
| 7457 | /* end confdefs.h. */ |
| 7458 | unsigned long long ull = 1ULL; int i = 63; |
| 7459 | int |
| 7460 | main () |
| 7461 | { |
| 7462 | unsigned long long ullmax = (unsigned long long) -1; |
| 7463 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7464 | ; |
| 7465 | return 0; |
| 7466 | } |
| 7467 | _ACEOF |
| 7468 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 7469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7470 | (eval $ac_link) 2>conftest.er1 |
| 7471 | ac_status=$? |
| 7472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7473 | rm -f conftest.er1 |
| 7474 | cat conftest.err >&5 |
| 7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7476 | (exit $ac_status); } && |
| 7477 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7478 | || test ! -s conftest.err' |
| 7479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7480 | (eval $ac_try) 2>&5 |
| 7481 | ac_status=$? |
| 7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7483 | (exit $ac_status); }; } && |
| 7484 | { ac_try='test -s conftest$ac_exeext' |
| 7485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7486 | (eval $ac_try) 2>&5 |
| 7487 | ac_status=$? |
| 7488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7489 | (exit $ac_status); }; }; then |
| 7490 | ac_cv_type_unsigned_long_long=yes |
| 7491 | else |
| 7492 | echo "$as_me: failed program was:" >&5 |
| 7493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7494 | |
| 7495 | ac_cv_type_unsigned_long_long=no |
| 7496 | fi |
| 7497 | rm -f conftest.err conftest.$ac_objext \ |
| 7498 | conftest$ac_exeext conftest.$ac_ext |
| 7499 | fi |
| 7500 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 7501 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 |
| 7502 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7503 | |
| 7504 | cat >>confdefs.h <<\_ACEOF |
| 7505 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 7506 | _ACEOF |
| 7507 | |
| 7508 | fi |
| 7509 | |
| 7510 | |
| 7511 | |
| 7512 | |
| 7513 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
| 7514 | |
| 7515 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7516 | && ac_type='unsigned long long' \ |
| 7517 | || ac_type='unsigned long' |
| 7518 | |
| 7519 | cat >>confdefs.h <<_ACEOF |
| 7520 | #define uintmax_t $ac_type |
| 7521 | _ACEOF |
| 7522 | |
| 7523 | else |
| 7524 | |
| 7525 | cat >>confdefs.h <<\_ACEOF |
| 7526 | #define HAVE_UINTMAX_T 1 |
| 7527 | _ACEOF |
| 7528 | |
| 7529 | fi |
| 7530 | |
| 7531 | |
| 7532 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 7533 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
| 7534 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 7535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7536 | else |
| 7537 | |
| 7538 | cat >conftest.$ac_ext <<_ACEOF |
| 7539 | /* confdefs.h. */ |
| 7540 | _ACEOF |
| 7541 | cat confdefs.h >>conftest.$ac_ext |
| 7542 | cat >>conftest.$ac_ext <<_ACEOF |
| 7543 | /* end confdefs.h. */ |
| 7544 | #include <sys/types.h> |
| 7545 | #include <inttypes.h> |
| 7546 | int |
| 7547 | main () |
| 7548 | { |
| 7549 | |
| 7550 | ; |
| 7551 | return 0; |
| 7552 | } |
| 7553 | _ACEOF |
| 7554 | rm -f conftest.$ac_objext |
| 7555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7556 | (eval $ac_compile) 2>conftest.er1 |
| 7557 | ac_status=$? |
| 7558 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7559 | rm -f conftest.er1 |
| 7560 | cat conftest.err >&5 |
| 7561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7562 | (exit $ac_status); } && |
| 7563 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7564 | || test ! -s conftest.err' |
| 7565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7566 | (eval $ac_try) 2>&5 |
| 7567 | ac_status=$? |
| 7568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7569 | (exit $ac_status); }; } && |
| 7570 | { ac_try='test -s conftest.$ac_objext' |
| 7571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7572 | (eval $ac_try) 2>&5 |
| 7573 | ac_status=$? |
| 7574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7575 | (exit $ac_status); }; }; then |
| 7576 | gt_cv_header_inttypes_h=yes |
| 7577 | else |
| 7578 | echo "$as_me: failed program was:" >&5 |
| 7579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7580 | |
| 7581 | gt_cv_header_inttypes_h=no |
| 7582 | fi |
| 7583 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7584 | |
| 7585 | fi |
| 7586 | echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 7587 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 |
| 7588 | if test $gt_cv_header_inttypes_h = yes; then |
| 7589 | |
| 7590 | cat >>confdefs.h <<_ACEOF |
| 7591 | #define HAVE_INTTYPES_H 1 |
| 7592 | _ACEOF |
| 7593 | |
| 7594 | fi |
| 7595 | |
| 7596 | |
| 7597 | |
| 7598 | if test $gt_cv_header_inttypes_h = yes; then |
| 7599 | echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7600 | echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 |
| 7601 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 7602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7603 | else |
| 7604 | |
| 7605 | cat >conftest.$ac_ext <<_ACEOF |
| 7606 | /* confdefs.h. */ |
| 7607 | _ACEOF |
| 7608 | cat confdefs.h >>conftest.$ac_ext |
| 7609 | cat >>conftest.$ac_ext <<_ACEOF |
| 7610 | /* end confdefs.h. */ |
| 7611 | #include <inttypes.h> |
| 7612 | #ifdef PRId32 |
| 7613 | char *p = PRId32; |
| 7614 | #endif |
| 7615 | |
| 7616 | int |
| 7617 | main () |
| 7618 | { |
| 7619 | |
| 7620 | ; |
| 7621 | return 0; |
| 7622 | } |
| 7623 | _ACEOF |
| 7624 | rm -f conftest.$ac_objext |
| 7625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7626 | (eval $ac_compile) 2>conftest.er1 |
| 7627 | ac_status=$? |
| 7628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7629 | rm -f conftest.er1 |
| 7630 | cat conftest.err >&5 |
| 7631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7632 | (exit $ac_status); } && |
| 7633 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7634 | || test ! -s conftest.err' |
| 7635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7636 | (eval $ac_try) 2>&5 |
| 7637 | ac_status=$? |
| 7638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7639 | (exit $ac_status); }; } && |
| 7640 | { ac_try='test -s conftest.$ac_objext' |
| 7641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7642 | (eval $ac_try) 2>&5 |
| 7643 | ac_status=$? |
| 7644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7645 | (exit $ac_status); }; }; then |
| 7646 | gt_cv_inttypes_pri_broken=no |
| 7647 | else |
| 7648 | echo "$as_me: failed program was:" >&5 |
| 7649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7650 | |
| 7651 | gt_cv_inttypes_pri_broken=yes |
| 7652 | fi |
| 7653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7654 | |
| 7655 | fi |
| 7656 | echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7657 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 |
| 7658 | fi |
| 7659 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
| 7660 | |
| 7661 | cat >>confdefs.h <<_ACEOF |
| 7662 | #define PRI_MACROS_BROKEN 1 |
| 7663 | _ACEOF |
| 7664 | |
| 7665 | fi |
| 7666 | |
| 7667 | |
| 7668 | |
| 7669 | for ac_header in stdint.h |
| 7670 | do |
| 7671 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7672 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7673 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7674 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7675 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7677 | fi |
| 7678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7679 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7680 | else |
| 7681 | # Is the header compilable? |
| 7682 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7683 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7684 | cat >conftest.$ac_ext <<_ACEOF |
| 7685 | /* confdefs.h. */ |
| 7686 | _ACEOF |
| 7687 | cat confdefs.h >>conftest.$ac_ext |
| 7688 | cat >>conftest.$ac_ext <<_ACEOF |
| 7689 | /* end confdefs.h. */ |
| 7690 | $ac_includes_default |
| 7691 | #include <$ac_header> |
| 7692 | _ACEOF |
| 7693 | rm -f conftest.$ac_objext |
| 7694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7695 | (eval $ac_compile) 2>conftest.er1 |
| 7696 | ac_status=$? |
| 7697 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7698 | rm -f conftest.er1 |
| 7699 | cat conftest.err >&5 |
| 7700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7701 | (exit $ac_status); } && |
| 7702 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7703 | || test ! -s conftest.err' |
| 7704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7705 | (eval $ac_try) 2>&5 |
| 7706 | ac_status=$? |
| 7707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7708 | (exit $ac_status); }; } && |
| 7709 | { ac_try='test -s conftest.$ac_objext' |
| 7710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7711 | (eval $ac_try) 2>&5 |
| 7712 | ac_status=$? |
| 7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7714 | (exit $ac_status); }; }; then |
| 7715 | ac_header_compiler=yes |
| 7716 | else |
| 7717 | echo "$as_me: failed program was:" >&5 |
| 7718 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7719 | |
| 7720 | ac_header_compiler=no |
| 7721 | fi |
| 7722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7723 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7724 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7725 | |
| 7726 | # Is the header present? |
| 7727 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7728 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7729 | cat >conftest.$ac_ext <<_ACEOF |
| 7730 | /* confdefs.h. */ |
| 7731 | _ACEOF |
| 7732 | cat confdefs.h >>conftest.$ac_ext |
| 7733 | cat >>conftest.$ac_ext <<_ACEOF |
| 7734 | /* end confdefs.h. */ |
| 7735 | #include <$ac_header> |
| 7736 | _ACEOF |
| 7737 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7738 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7739 | ac_status=$? |
| 7740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7741 | rm -f conftest.er1 |
| 7742 | cat conftest.err >&5 |
| 7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7744 | (exit $ac_status); } >/dev/null; then |
| 7745 | if test -s conftest.err; then |
| 7746 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 7747 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 7748 | else |
| 7749 | ac_cpp_err= |
| 7750 | fi |
| 7751 | else |
| 7752 | ac_cpp_err=yes |
| 7753 | fi |
| 7754 | if test -z "$ac_cpp_err"; then |
| 7755 | ac_header_preproc=yes |
| 7756 | else |
| 7757 | echo "$as_me: failed program was:" >&5 |
| 7758 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7759 | |
| 7760 | ac_header_preproc=no |
| 7761 | fi |
| 7762 | rm -f conftest.err conftest.$ac_ext |
| 7763 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7764 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7765 | |
| 7766 | # So? What about this header? |
| 7767 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 7768 | yes:no: ) |
| 7769 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7770 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7772 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7773 | ac_header_preproc=yes |
| 7774 | ;; |
| 7775 | no:yes:* ) |
| 7776 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7777 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7778 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7779 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7780 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7781 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7782 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7783 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7784 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7785 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7786 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7787 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7788 | ( |
| 7789 | cat <<\_ASBOX |
| 7790 | ## ------------------------------------------ ## |
| 7791 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7792 | ## ------------------------------------------ ## |
| 7793 | _ASBOX |
| 7794 | ) | |
| 7795 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7796 | ;; |
| 7797 | esac |
| 7798 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7802 | else |
| 7803 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7804 | fi |
| 7805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7806 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7807 | |
| 7808 | fi |
| 7809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7810 | cat >>confdefs.h <<_ACEOF |
| 7811 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7812 | _ACEOF |
| 7813 | |
| 7814 | fi |
| 7815 | |
| 7816 | done |
| 7817 | |
| 7818 | echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7819 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 |
| 7820 | result= |
| 7821 | cat >conftest.$ac_ext <<_ACEOF |
| 7822 | /* confdefs.h. */ |
| 7823 | _ACEOF |
| 7824 | cat confdefs.h >>conftest.$ac_ext |
| 7825 | cat >>conftest.$ac_ext <<_ACEOF |
| 7826 | /* end confdefs.h. */ |
| 7827 | |
| 7828 | #include <limits.h> |
| 7829 | #if HAVE_STDINT_H |
| 7830 | #include <stdint.h> |
| 7831 | #endif |
| 7832 | #ifdef SIZE_MAX |
| 7833 | Found it |
| 7834 | #endif |
| 7835 | |
| 7836 | _ACEOF |
| 7837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7838 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7839 | result=yes |
| 7840 | fi |
| 7841 | rm -f conftest* |
| 7842 | |
| 7843 | if test -z "$result"; then |
| 7844 | if test "$cross_compiling" = yes; then |
| 7845 | # Depending upon the size, compute the lo and hi bounds. |
| 7846 | cat >conftest.$ac_ext <<_ACEOF |
| 7847 | /* confdefs.h. */ |
| 7848 | _ACEOF |
| 7849 | cat confdefs.h >>conftest.$ac_ext |
| 7850 | cat >>conftest.$ac_ext <<_ACEOF |
| 7851 | /* end confdefs.h. */ |
| 7852 | #include <stddef.h> |
| 7853 | int |
| 7854 | main () |
| 7855 | { |
| 7856 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7857 | test_array [0] = 0 |
| 7858 | |
| 7859 | ; |
| 7860 | return 0; |
| 7861 | } |
| 7862 | _ACEOF |
| 7863 | rm -f conftest.$ac_objext |
| 7864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7865 | (eval $ac_compile) 2>conftest.er1 |
| 7866 | ac_status=$? |
| 7867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7868 | rm -f conftest.er1 |
| 7869 | cat conftest.err >&5 |
| 7870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7871 | (exit $ac_status); } && |
| 7872 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7873 | || test ! -s conftest.err' |
| 7874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7875 | (eval $ac_try) 2>&5 |
| 7876 | ac_status=$? |
| 7877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7878 | (exit $ac_status); }; } && |
| 7879 | { ac_try='test -s conftest.$ac_objext' |
| 7880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7881 | (eval $ac_try) 2>&5 |
| 7882 | ac_status=$? |
| 7883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7884 | (exit $ac_status); }; }; then |
| 7885 | ac_lo=0 ac_mid=0 |
| 7886 | while :; do |
| 7887 | cat >conftest.$ac_ext <<_ACEOF |
| 7888 | /* confdefs.h. */ |
| 7889 | _ACEOF |
| 7890 | cat confdefs.h >>conftest.$ac_ext |
| 7891 | cat >>conftest.$ac_ext <<_ACEOF |
| 7892 | /* end confdefs.h. */ |
| 7893 | #include <stddef.h> |
| 7894 | int |
| 7895 | main () |
| 7896 | { |
| 7897 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7898 | test_array [0] = 0 |
| 7899 | |
| 7900 | ; |
| 7901 | return 0; |
| 7902 | } |
| 7903 | _ACEOF |
| 7904 | rm -f conftest.$ac_objext |
| 7905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7906 | (eval $ac_compile) 2>conftest.er1 |
| 7907 | ac_status=$? |
| 7908 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7909 | rm -f conftest.er1 |
| 7910 | cat conftest.err >&5 |
| 7911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7912 | (exit $ac_status); } && |
| 7913 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7914 | || test ! -s conftest.err' |
| 7915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7916 | (eval $ac_try) 2>&5 |
| 7917 | ac_status=$? |
| 7918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7919 | (exit $ac_status); }; } && |
| 7920 | { ac_try='test -s conftest.$ac_objext' |
| 7921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7922 | (eval $ac_try) 2>&5 |
| 7923 | ac_status=$? |
| 7924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7925 | (exit $ac_status); }; }; then |
| 7926 | ac_hi=$ac_mid; break |
| 7927 | else |
| 7928 | echo "$as_me: failed program was:" >&5 |
| 7929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7930 | |
| 7931 | ac_lo=`expr $ac_mid + 1` |
| 7932 | if test $ac_lo -le $ac_mid; then |
| 7933 | ac_lo= ac_hi= |
| 7934 | break |
| 7935 | fi |
| 7936 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7937 | fi |
| 7938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7939 | done |
| 7940 | else |
| 7941 | echo "$as_me: failed program was:" >&5 |
| 7942 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7943 | |
| 7944 | cat >conftest.$ac_ext <<_ACEOF |
| 7945 | /* confdefs.h. */ |
| 7946 | _ACEOF |
| 7947 | cat confdefs.h >>conftest.$ac_ext |
| 7948 | cat >>conftest.$ac_ext <<_ACEOF |
| 7949 | /* end confdefs.h. */ |
| 7950 | #include <stddef.h> |
| 7951 | int |
| 7952 | main () |
| 7953 | { |
| 7954 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7955 | test_array [0] = 0 |
| 7956 | |
| 7957 | ; |
| 7958 | return 0; |
| 7959 | } |
| 7960 | _ACEOF |
| 7961 | rm -f conftest.$ac_objext |
| 7962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7963 | (eval $ac_compile) 2>conftest.er1 |
| 7964 | ac_status=$? |
| 7965 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7966 | rm -f conftest.er1 |
| 7967 | cat conftest.err >&5 |
| 7968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7969 | (exit $ac_status); } && |
| 7970 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 7971 | || test ! -s conftest.err' |
| 7972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7973 | (eval $ac_try) 2>&5 |
| 7974 | ac_status=$? |
| 7975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7976 | (exit $ac_status); }; } && |
| 7977 | { ac_try='test -s conftest.$ac_objext' |
| 7978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7979 | (eval $ac_try) 2>&5 |
| 7980 | ac_status=$? |
| 7981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7982 | (exit $ac_status); }; }; then |
| 7983 | ac_hi=-1 ac_mid=-1 |
| 7984 | while :; do |
| 7985 | cat >conftest.$ac_ext <<_ACEOF |
| 7986 | /* confdefs.h. */ |
| 7987 | _ACEOF |
| 7988 | cat confdefs.h >>conftest.$ac_ext |
| 7989 | cat >>conftest.$ac_ext <<_ACEOF |
| 7990 | /* end confdefs.h. */ |
| 7991 | #include <stddef.h> |
| 7992 | int |
| 7993 | main () |
| 7994 | { |
| 7995 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7996 | test_array [0] = 0 |
| 7997 | |
| 7998 | ; |
| 7999 | return 0; |
| 8000 | } |
| 8001 | _ACEOF |
| 8002 | rm -f conftest.$ac_objext |
| 8003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8004 | (eval $ac_compile) 2>conftest.er1 |
| 8005 | ac_status=$? |
| 8006 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8007 | rm -f conftest.er1 |
| 8008 | cat conftest.err >&5 |
| 8009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8010 | (exit $ac_status); } && |
| 8011 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8012 | || test ! -s conftest.err' |
| 8013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8014 | (eval $ac_try) 2>&5 |
| 8015 | ac_status=$? |
| 8016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8017 | (exit $ac_status); }; } && |
| 8018 | { ac_try='test -s conftest.$ac_objext' |
| 8019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8020 | (eval $ac_try) 2>&5 |
| 8021 | ac_status=$? |
| 8022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8023 | (exit $ac_status); }; }; then |
| 8024 | ac_lo=$ac_mid; break |
| 8025 | else |
| 8026 | echo "$as_me: failed program was:" >&5 |
| 8027 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8028 | |
| 8029 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8030 | if test $ac_mid -le $ac_hi; then |
| 8031 | ac_lo= ac_hi= |
| 8032 | break |
| 8033 | fi |
| 8034 | ac_mid=`expr 2 '*' $ac_mid` |
| 8035 | fi |
| 8036 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8037 | done |
| 8038 | else |
| 8039 | echo "$as_me: failed program was:" >&5 |
| 8040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8041 | |
| 8042 | ac_lo= ac_hi= |
| 8043 | fi |
| 8044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8045 | fi |
| 8046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8047 | # Binary search between lo and hi bounds. |
| 8048 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8049 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8050 | cat >conftest.$ac_ext <<_ACEOF |
| 8051 | /* confdefs.h. */ |
| 8052 | _ACEOF |
| 8053 | cat confdefs.h >>conftest.$ac_ext |
| 8054 | cat >>conftest.$ac_ext <<_ACEOF |
| 8055 | /* end confdefs.h. */ |
| 8056 | #include <stddef.h> |
| 8057 | int |
| 8058 | main () |
| 8059 | { |
| 8060 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 8061 | test_array [0] = 0 |
| 8062 | |
| 8063 | ; |
| 8064 | return 0; |
| 8065 | } |
| 8066 | _ACEOF |
| 8067 | rm -f conftest.$ac_objext |
| 8068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8069 | (eval $ac_compile) 2>conftest.er1 |
| 8070 | ac_status=$? |
| 8071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8072 | rm -f conftest.er1 |
| 8073 | cat conftest.err >&5 |
| 8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8075 | (exit $ac_status); } && |
| 8076 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8077 | || test ! -s conftest.err' |
| 8078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8079 | (eval $ac_try) 2>&5 |
| 8080 | ac_status=$? |
| 8081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8082 | (exit $ac_status); }; } && |
| 8083 | { ac_try='test -s conftest.$ac_objext' |
| 8084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8085 | (eval $ac_try) 2>&5 |
| 8086 | ac_status=$? |
| 8087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8088 | (exit $ac_status); }; }; then |
| 8089 | ac_hi=$ac_mid |
| 8090 | else |
| 8091 | echo "$as_me: failed program was:" >&5 |
| 8092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8093 | |
| 8094 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8095 | fi |
| 8096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8097 | done |
| 8098 | case $ac_lo in |
| 8099 | ?*) res_hi=$ac_lo;; |
| 8100 | '') result=? ;; |
| 8101 | esac |
| 8102 | else |
| 8103 | if test "$cross_compiling" = yes; then |
| 8104 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8105 | See \`config.log' for more details." >&5 |
| 8106 | echo "$as_me: error: cannot run test program while cross compiling |
| 8107 | See \`config.log' for more details." >&2;} |
| 8108 | { (exit 1); exit 1; }; } |
| 8109 | else |
| 8110 | cat >conftest.$ac_ext <<_ACEOF |
| 8111 | /* confdefs.h. */ |
| 8112 | _ACEOF |
| 8113 | cat confdefs.h >>conftest.$ac_ext |
| 8114 | cat >>conftest.$ac_ext <<_ACEOF |
| 8115 | /* end confdefs.h. */ |
| 8116 | #include <stddef.h> |
| 8117 | long longval () { return ~(size_t)0 / 10; } |
| 8118 | unsigned long ulongval () { return ~(size_t)0 / 10; } |
| 8119 | #include <stdio.h> |
| 8120 | #include <stdlib.h> |
| 8121 | int |
| 8122 | main () |
| 8123 | { |
| 8124 | |
| 8125 | FILE *f = fopen ("conftest.val", "w"); |
| 8126 | if (! f) |
| 8127 | exit (1); |
| 8128 | if ((~(size_t)0 / 10) < 0) |
| 8129 | { |
| 8130 | long i = longval (); |
| 8131 | if (i != (~(size_t)0 / 10)) |
| 8132 | exit (1); |
| 8133 | fprintf (f, "%ld\n", i); |
| 8134 | } |
| 8135 | else |
| 8136 | { |
| 8137 | unsigned long i = ulongval (); |
| 8138 | if (i != (~(size_t)0 / 10)) |
| 8139 | exit (1); |
| 8140 | fprintf (f, "%lu\n", i); |
| 8141 | } |
| 8142 | exit (ferror (f) || fclose (f) != 0); |
| 8143 | |
| 8144 | ; |
| 8145 | return 0; |
| 8146 | } |
| 8147 | _ACEOF |
| 8148 | rm -f conftest$ac_exeext |
| 8149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8150 | (eval $ac_link) 2>&5 |
| 8151 | ac_status=$? |
| 8152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8153 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8155 | (eval $ac_try) 2>&5 |
| 8156 | ac_status=$? |
| 8157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8158 | (exit $ac_status); }; }; then |
| 8159 | res_hi=`cat conftest.val` |
| 8160 | else |
| 8161 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8162 | echo "$as_me: failed program was:" >&5 |
| 8163 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8164 | |
| 8165 | ( exit $ac_status ) |
| 8166 | result=? |
| 8167 | fi |
| 8168 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8169 | fi |
| 8170 | fi |
| 8171 | rm -f conftest.val |
| 8172 | if test "$cross_compiling" = yes; then |
| 8173 | # Depending upon the size, compute the lo and hi bounds. |
| 8174 | cat >conftest.$ac_ext <<_ACEOF |
| 8175 | /* confdefs.h. */ |
| 8176 | _ACEOF |
| 8177 | cat confdefs.h >>conftest.$ac_ext |
| 8178 | cat >>conftest.$ac_ext <<_ACEOF |
| 8179 | /* end confdefs.h. */ |
| 8180 | #include <stddef.h> |
| 8181 | int |
| 8182 | main () |
| 8183 | { |
| 8184 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 8185 | test_array [0] = 0 |
| 8186 | |
| 8187 | ; |
| 8188 | return 0; |
| 8189 | } |
| 8190 | _ACEOF |
| 8191 | rm -f conftest.$ac_objext |
| 8192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8193 | (eval $ac_compile) 2>conftest.er1 |
| 8194 | ac_status=$? |
| 8195 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8196 | rm -f conftest.er1 |
| 8197 | cat conftest.err >&5 |
| 8198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8199 | (exit $ac_status); } && |
| 8200 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8201 | || test ! -s conftest.err' |
| 8202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8203 | (eval $ac_try) 2>&5 |
| 8204 | ac_status=$? |
| 8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8206 | (exit $ac_status); }; } && |
| 8207 | { ac_try='test -s conftest.$ac_objext' |
| 8208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8209 | (eval $ac_try) 2>&5 |
| 8210 | ac_status=$? |
| 8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8212 | (exit $ac_status); }; }; then |
| 8213 | ac_lo=0 ac_mid=0 |
| 8214 | while :; do |
| 8215 | cat >conftest.$ac_ext <<_ACEOF |
| 8216 | /* confdefs.h. */ |
| 8217 | _ACEOF |
| 8218 | cat confdefs.h >>conftest.$ac_ext |
| 8219 | cat >>conftest.$ac_ext <<_ACEOF |
| 8220 | /* end confdefs.h. */ |
| 8221 | #include <stddef.h> |
| 8222 | int |
| 8223 | main () |
| 8224 | { |
| 8225 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8226 | test_array [0] = 0 |
| 8227 | |
| 8228 | ; |
| 8229 | return 0; |
| 8230 | } |
| 8231 | _ACEOF |
| 8232 | rm -f conftest.$ac_objext |
| 8233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8234 | (eval $ac_compile) 2>conftest.er1 |
| 8235 | ac_status=$? |
| 8236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8237 | rm -f conftest.er1 |
| 8238 | cat conftest.err >&5 |
| 8239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8240 | (exit $ac_status); } && |
| 8241 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8242 | || test ! -s conftest.err' |
| 8243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8244 | (eval $ac_try) 2>&5 |
| 8245 | ac_status=$? |
| 8246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8247 | (exit $ac_status); }; } && |
| 8248 | { ac_try='test -s conftest.$ac_objext' |
| 8249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8250 | (eval $ac_try) 2>&5 |
| 8251 | ac_status=$? |
| 8252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8253 | (exit $ac_status); }; }; then |
| 8254 | ac_hi=$ac_mid; break |
| 8255 | else |
| 8256 | echo "$as_me: failed program was:" >&5 |
| 8257 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8258 | |
| 8259 | ac_lo=`expr $ac_mid + 1` |
| 8260 | if test $ac_lo -le $ac_mid; then |
| 8261 | ac_lo= ac_hi= |
| 8262 | break |
| 8263 | fi |
| 8264 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8265 | fi |
| 8266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8267 | done |
| 8268 | else |
| 8269 | echo "$as_me: failed program was:" >&5 |
| 8270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8271 | |
| 8272 | cat >conftest.$ac_ext <<_ACEOF |
| 8273 | /* confdefs.h. */ |
| 8274 | _ACEOF |
| 8275 | cat confdefs.h >>conftest.$ac_ext |
| 8276 | cat >>conftest.$ac_ext <<_ACEOF |
| 8277 | /* end confdefs.h. */ |
| 8278 | #include <stddef.h> |
| 8279 | int |
| 8280 | main () |
| 8281 | { |
| 8282 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 8283 | test_array [0] = 0 |
| 8284 | |
| 8285 | ; |
| 8286 | return 0; |
| 8287 | } |
| 8288 | _ACEOF |
| 8289 | rm -f conftest.$ac_objext |
| 8290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8291 | (eval $ac_compile) 2>conftest.er1 |
| 8292 | ac_status=$? |
| 8293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8294 | rm -f conftest.er1 |
| 8295 | cat conftest.err >&5 |
| 8296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8297 | (exit $ac_status); } && |
| 8298 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8299 | || test ! -s conftest.err' |
| 8300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8301 | (eval $ac_try) 2>&5 |
| 8302 | ac_status=$? |
| 8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8304 | (exit $ac_status); }; } && |
| 8305 | { ac_try='test -s conftest.$ac_objext' |
| 8306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8307 | (eval $ac_try) 2>&5 |
| 8308 | ac_status=$? |
| 8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8310 | (exit $ac_status); }; }; then |
| 8311 | ac_hi=-1 ac_mid=-1 |
| 8312 | while :; do |
| 8313 | cat >conftest.$ac_ext <<_ACEOF |
| 8314 | /* confdefs.h. */ |
| 8315 | _ACEOF |
| 8316 | cat confdefs.h >>conftest.$ac_ext |
| 8317 | cat >>conftest.$ac_ext <<_ACEOF |
| 8318 | /* end confdefs.h. */ |
| 8319 | #include <stddef.h> |
| 8320 | int |
| 8321 | main () |
| 8322 | { |
| 8323 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 8324 | test_array [0] = 0 |
| 8325 | |
| 8326 | ; |
| 8327 | return 0; |
| 8328 | } |
| 8329 | _ACEOF |
| 8330 | rm -f conftest.$ac_objext |
| 8331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8332 | (eval $ac_compile) 2>conftest.er1 |
| 8333 | ac_status=$? |
| 8334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8335 | rm -f conftest.er1 |
| 8336 | cat conftest.err >&5 |
| 8337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8338 | (exit $ac_status); } && |
| 8339 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8340 | || test ! -s conftest.err' |
| 8341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8342 | (eval $ac_try) 2>&5 |
| 8343 | ac_status=$? |
| 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8345 | (exit $ac_status); }; } && |
| 8346 | { ac_try='test -s conftest.$ac_objext' |
| 8347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8348 | (eval $ac_try) 2>&5 |
| 8349 | ac_status=$? |
| 8350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8351 | (exit $ac_status); }; }; then |
| 8352 | ac_lo=$ac_mid; break |
| 8353 | else |
| 8354 | echo "$as_me: failed program was:" >&5 |
| 8355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8356 | |
| 8357 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8358 | if test $ac_mid -le $ac_hi; then |
| 8359 | ac_lo= ac_hi= |
| 8360 | break |
| 8361 | fi |
| 8362 | ac_mid=`expr 2 '*' $ac_mid` |
| 8363 | fi |
| 8364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8365 | done |
| 8366 | else |
| 8367 | echo "$as_me: failed program was:" >&5 |
| 8368 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8369 | |
| 8370 | ac_lo= ac_hi= |
| 8371 | fi |
| 8372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8373 | fi |
| 8374 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8375 | # Binary search between lo and hi bounds. |
| 8376 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8377 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8378 | cat >conftest.$ac_ext <<_ACEOF |
| 8379 | /* confdefs.h. */ |
| 8380 | _ACEOF |
| 8381 | cat confdefs.h >>conftest.$ac_ext |
| 8382 | cat >>conftest.$ac_ext <<_ACEOF |
| 8383 | /* end confdefs.h. */ |
| 8384 | #include <stddef.h> |
| 8385 | int |
| 8386 | main () |
| 8387 | { |
| 8388 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 8389 | test_array [0] = 0 |
| 8390 | |
| 8391 | ; |
| 8392 | return 0; |
| 8393 | } |
| 8394 | _ACEOF |
| 8395 | rm -f conftest.$ac_objext |
| 8396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8397 | (eval $ac_compile) 2>conftest.er1 |
| 8398 | ac_status=$? |
| 8399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8400 | rm -f conftest.er1 |
| 8401 | cat conftest.err >&5 |
| 8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8403 | (exit $ac_status); } && |
| 8404 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8405 | || test ! -s conftest.err' |
| 8406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8407 | (eval $ac_try) 2>&5 |
| 8408 | ac_status=$? |
| 8409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8410 | (exit $ac_status); }; } && |
| 8411 | { ac_try='test -s conftest.$ac_objext' |
| 8412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8413 | (eval $ac_try) 2>&5 |
| 8414 | ac_status=$? |
| 8415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8416 | (exit $ac_status); }; }; then |
| 8417 | ac_hi=$ac_mid |
| 8418 | else |
| 8419 | echo "$as_me: failed program was:" >&5 |
| 8420 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8421 | |
| 8422 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8423 | fi |
| 8424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8425 | done |
| 8426 | case $ac_lo in |
| 8427 | ?*) res_lo=$ac_lo;; |
| 8428 | '') result=? ;; |
| 8429 | esac |
| 8430 | else |
| 8431 | if test "$cross_compiling" = yes; then |
| 8432 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8433 | See \`config.log' for more details." >&5 |
| 8434 | echo "$as_me: error: cannot run test program while cross compiling |
| 8435 | See \`config.log' for more details." >&2;} |
| 8436 | { (exit 1); exit 1; }; } |
| 8437 | else |
| 8438 | cat >conftest.$ac_ext <<_ACEOF |
| 8439 | /* confdefs.h. */ |
| 8440 | _ACEOF |
| 8441 | cat confdefs.h >>conftest.$ac_ext |
| 8442 | cat >>conftest.$ac_ext <<_ACEOF |
| 8443 | /* end confdefs.h. */ |
| 8444 | #include <stddef.h> |
| 8445 | long longval () { return ~(size_t)0 % 10; } |
| 8446 | unsigned long ulongval () { return ~(size_t)0 % 10; } |
| 8447 | #include <stdio.h> |
| 8448 | #include <stdlib.h> |
| 8449 | int |
| 8450 | main () |
| 8451 | { |
| 8452 | |
| 8453 | FILE *f = fopen ("conftest.val", "w"); |
| 8454 | if (! f) |
| 8455 | exit (1); |
| 8456 | if ((~(size_t)0 % 10) < 0) |
| 8457 | { |
| 8458 | long i = longval (); |
| 8459 | if (i != (~(size_t)0 % 10)) |
| 8460 | exit (1); |
| 8461 | fprintf (f, "%ld\n", i); |
| 8462 | } |
| 8463 | else |
| 8464 | { |
| 8465 | unsigned long i = ulongval (); |
| 8466 | if (i != (~(size_t)0 % 10)) |
| 8467 | exit (1); |
| 8468 | fprintf (f, "%lu\n", i); |
| 8469 | } |
| 8470 | exit (ferror (f) || fclose (f) != 0); |
| 8471 | |
| 8472 | ; |
| 8473 | return 0; |
| 8474 | } |
| 8475 | _ACEOF |
| 8476 | rm -f conftest$ac_exeext |
| 8477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8478 | (eval $ac_link) 2>&5 |
| 8479 | ac_status=$? |
| 8480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8481 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8483 | (eval $ac_try) 2>&5 |
| 8484 | ac_status=$? |
| 8485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8486 | (exit $ac_status); }; }; then |
| 8487 | res_lo=`cat conftest.val` |
| 8488 | else |
| 8489 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8490 | echo "$as_me: failed program was:" >&5 |
| 8491 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8492 | |
| 8493 | ( exit $ac_status ) |
| 8494 | result=? |
| 8495 | fi |
| 8496 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8497 | fi |
| 8498 | fi |
| 8499 | rm -f conftest.val |
| 8500 | if test "$cross_compiling" = yes; then |
| 8501 | # Depending upon the size, compute the lo and hi bounds. |
| 8502 | cat >conftest.$ac_ext <<_ACEOF |
| 8503 | /* confdefs.h. */ |
| 8504 | _ACEOF |
| 8505 | cat confdefs.h >>conftest.$ac_ext |
| 8506 | cat >>conftest.$ac_ext <<_ACEOF |
| 8507 | /* end confdefs.h. */ |
| 8508 | #include <stddef.h> |
| 8509 | int |
| 8510 | main () |
| 8511 | { |
| 8512 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 8513 | test_array [0] = 0 |
| 8514 | |
| 8515 | ; |
| 8516 | return 0; |
| 8517 | } |
| 8518 | _ACEOF |
| 8519 | rm -f conftest.$ac_objext |
| 8520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8521 | (eval $ac_compile) 2>conftest.er1 |
| 8522 | ac_status=$? |
| 8523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8524 | rm -f conftest.er1 |
| 8525 | cat conftest.err >&5 |
| 8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8527 | (exit $ac_status); } && |
| 8528 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8529 | || test ! -s conftest.err' |
| 8530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8531 | (eval $ac_try) 2>&5 |
| 8532 | ac_status=$? |
| 8533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8534 | (exit $ac_status); }; } && |
| 8535 | { ac_try='test -s conftest.$ac_objext' |
| 8536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8537 | (eval $ac_try) 2>&5 |
| 8538 | ac_status=$? |
| 8539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8540 | (exit $ac_status); }; }; then |
| 8541 | ac_lo=0 ac_mid=0 |
| 8542 | while :; do |
| 8543 | cat >conftest.$ac_ext <<_ACEOF |
| 8544 | /* confdefs.h. */ |
| 8545 | _ACEOF |
| 8546 | cat confdefs.h >>conftest.$ac_ext |
| 8547 | cat >>conftest.$ac_ext <<_ACEOF |
| 8548 | /* end confdefs.h. */ |
| 8549 | #include <stddef.h> |
| 8550 | int |
| 8551 | main () |
| 8552 | { |
| 8553 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8554 | test_array [0] = 0 |
| 8555 | |
| 8556 | ; |
| 8557 | return 0; |
| 8558 | } |
| 8559 | _ACEOF |
| 8560 | rm -f conftest.$ac_objext |
| 8561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8562 | (eval $ac_compile) 2>conftest.er1 |
| 8563 | ac_status=$? |
| 8564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8565 | rm -f conftest.er1 |
| 8566 | cat conftest.err >&5 |
| 8567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8568 | (exit $ac_status); } && |
| 8569 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8570 | || test ! -s conftest.err' |
| 8571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8572 | (eval $ac_try) 2>&5 |
| 8573 | ac_status=$? |
| 8574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8575 | (exit $ac_status); }; } && |
| 8576 | { ac_try='test -s conftest.$ac_objext' |
| 8577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8578 | (eval $ac_try) 2>&5 |
| 8579 | ac_status=$? |
| 8580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8581 | (exit $ac_status); }; }; then |
| 8582 | ac_hi=$ac_mid; break |
| 8583 | else |
| 8584 | echo "$as_me: failed program was:" >&5 |
| 8585 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8586 | |
| 8587 | ac_lo=`expr $ac_mid + 1` |
| 8588 | if test $ac_lo -le $ac_mid; then |
| 8589 | ac_lo= ac_hi= |
| 8590 | break |
| 8591 | fi |
| 8592 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8593 | fi |
| 8594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8595 | done |
| 8596 | else |
| 8597 | echo "$as_me: failed program was:" >&5 |
| 8598 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8599 | |
| 8600 | cat >conftest.$ac_ext <<_ACEOF |
| 8601 | /* confdefs.h. */ |
| 8602 | _ACEOF |
| 8603 | cat confdefs.h >>conftest.$ac_ext |
| 8604 | cat >>conftest.$ac_ext <<_ACEOF |
| 8605 | /* end confdefs.h. */ |
| 8606 | #include <stddef.h> |
| 8607 | int |
| 8608 | main () |
| 8609 | { |
| 8610 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 8611 | test_array [0] = 0 |
| 8612 | |
| 8613 | ; |
| 8614 | return 0; |
| 8615 | } |
| 8616 | _ACEOF |
| 8617 | rm -f conftest.$ac_objext |
| 8618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8619 | (eval $ac_compile) 2>conftest.er1 |
| 8620 | ac_status=$? |
| 8621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8622 | rm -f conftest.er1 |
| 8623 | cat conftest.err >&5 |
| 8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8625 | (exit $ac_status); } && |
| 8626 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8627 | || test ! -s conftest.err' |
| 8628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8629 | (eval $ac_try) 2>&5 |
| 8630 | ac_status=$? |
| 8631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8632 | (exit $ac_status); }; } && |
| 8633 | { ac_try='test -s conftest.$ac_objext' |
| 8634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8635 | (eval $ac_try) 2>&5 |
| 8636 | ac_status=$? |
| 8637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8638 | (exit $ac_status); }; }; then |
| 8639 | ac_hi=-1 ac_mid=-1 |
| 8640 | while :; do |
| 8641 | cat >conftest.$ac_ext <<_ACEOF |
| 8642 | /* confdefs.h. */ |
| 8643 | _ACEOF |
| 8644 | cat confdefs.h >>conftest.$ac_ext |
| 8645 | cat >>conftest.$ac_ext <<_ACEOF |
| 8646 | /* end confdefs.h. */ |
| 8647 | #include <stddef.h> |
| 8648 | int |
| 8649 | main () |
| 8650 | { |
| 8651 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 8652 | test_array [0] = 0 |
| 8653 | |
| 8654 | ; |
| 8655 | return 0; |
| 8656 | } |
| 8657 | _ACEOF |
| 8658 | rm -f conftest.$ac_objext |
| 8659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8660 | (eval $ac_compile) 2>conftest.er1 |
| 8661 | ac_status=$? |
| 8662 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8663 | rm -f conftest.er1 |
| 8664 | cat conftest.err >&5 |
| 8665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8666 | (exit $ac_status); } && |
| 8667 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8668 | || test ! -s conftest.err' |
| 8669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8670 | (eval $ac_try) 2>&5 |
| 8671 | ac_status=$? |
| 8672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8673 | (exit $ac_status); }; } && |
| 8674 | { ac_try='test -s conftest.$ac_objext' |
| 8675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8676 | (eval $ac_try) 2>&5 |
| 8677 | ac_status=$? |
| 8678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8679 | (exit $ac_status); }; }; then |
| 8680 | ac_lo=$ac_mid; break |
| 8681 | else |
| 8682 | echo "$as_me: failed program was:" >&5 |
| 8683 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8684 | |
| 8685 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8686 | if test $ac_mid -le $ac_hi; then |
| 8687 | ac_lo= ac_hi= |
| 8688 | break |
| 8689 | fi |
| 8690 | ac_mid=`expr 2 '*' $ac_mid` |
| 8691 | fi |
| 8692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8693 | done |
| 8694 | else |
| 8695 | echo "$as_me: failed program was:" >&5 |
| 8696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8697 | |
| 8698 | ac_lo= ac_hi= |
| 8699 | fi |
| 8700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8701 | fi |
| 8702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8703 | # Binary search between lo and hi bounds. |
| 8704 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8705 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8706 | cat >conftest.$ac_ext <<_ACEOF |
| 8707 | /* confdefs.h. */ |
| 8708 | _ACEOF |
| 8709 | cat confdefs.h >>conftest.$ac_ext |
| 8710 | cat >>conftest.$ac_ext <<_ACEOF |
| 8711 | /* end confdefs.h. */ |
| 8712 | #include <stddef.h> |
| 8713 | int |
| 8714 | main () |
| 8715 | { |
| 8716 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8717 | test_array [0] = 0 |
| 8718 | |
| 8719 | ; |
| 8720 | return 0; |
| 8721 | } |
| 8722 | _ACEOF |
| 8723 | rm -f conftest.$ac_objext |
| 8724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8725 | (eval $ac_compile) 2>conftest.er1 |
| 8726 | ac_status=$? |
| 8727 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8728 | rm -f conftest.er1 |
| 8729 | cat conftest.err >&5 |
| 8730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8731 | (exit $ac_status); } && |
| 8732 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8733 | || test ! -s conftest.err' |
| 8734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8735 | (eval $ac_try) 2>&5 |
| 8736 | ac_status=$? |
| 8737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8738 | (exit $ac_status); }; } && |
| 8739 | { ac_try='test -s conftest.$ac_objext' |
| 8740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8741 | (eval $ac_try) 2>&5 |
| 8742 | ac_status=$? |
| 8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8744 | (exit $ac_status); }; }; then |
| 8745 | ac_hi=$ac_mid |
| 8746 | else |
| 8747 | echo "$as_me: failed program was:" >&5 |
| 8748 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8749 | |
| 8750 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8751 | fi |
| 8752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8753 | done |
| 8754 | case $ac_lo in |
| 8755 | ?*) fits_in_uint=$ac_lo;; |
| 8756 | '') result=? ;; |
| 8757 | esac |
| 8758 | else |
| 8759 | if test "$cross_compiling" = yes; then |
| 8760 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
| 8761 | See \`config.log' for more details." >&5 |
| 8762 | echo "$as_me: error: cannot run test program while cross compiling |
| 8763 | See \`config.log' for more details." >&2;} |
| 8764 | { (exit 1); exit 1; }; } |
| 8765 | else |
| 8766 | cat >conftest.$ac_ext <<_ACEOF |
| 8767 | /* confdefs.h. */ |
| 8768 | _ACEOF |
| 8769 | cat confdefs.h >>conftest.$ac_ext |
| 8770 | cat >>conftest.$ac_ext <<_ACEOF |
| 8771 | /* end confdefs.h. */ |
| 8772 | #include <stddef.h> |
| 8773 | long longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8774 | unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8775 | #include <stdio.h> |
| 8776 | #include <stdlib.h> |
| 8777 | int |
| 8778 | main () |
| 8779 | { |
| 8780 | |
| 8781 | FILE *f = fopen ("conftest.val", "w"); |
| 8782 | if (! f) |
| 8783 | exit (1); |
| 8784 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 8785 | { |
| 8786 | long i = longval (); |
| 8787 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 8788 | exit (1); |
| 8789 | fprintf (f, "%ld\n", i); |
| 8790 | } |
| 8791 | else |
| 8792 | { |
| 8793 | unsigned long i = ulongval (); |
| 8794 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 8795 | exit (1); |
| 8796 | fprintf (f, "%lu\n", i); |
| 8797 | } |
| 8798 | exit (ferror (f) || fclose (f) != 0); |
| 8799 | |
| 8800 | ; |
| 8801 | return 0; |
| 8802 | } |
| 8803 | _ACEOF |
| 8804 | rm -f conftest$ac_exeext |
| 8805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8806 | (eval $ac_link) 2>&5 |
| 8807 | ac_status=$? |
| 8808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8809 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8811 | (eval $ac_try) 2>&5 |
| 8812 | ac_status=$? |
| 8813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8814 | (exit $ac_status); }; }; then |
| 8815 | fits_in_uint=`cat conftest.val` |
| 8816 | else |
| 8817 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8818 | echo "$as_me: failed program was:" >&5 |
| 8819 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8820 | |
| 8821 | ( exit $ac_status ) |
| 8822 | result=? |
| 8823 | fi |
| 8824 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8825 | fi |
| 8826 | fi |
| 8827 | rm -f conftest.val |
| 8828 | if test "$fits_in_uint" = 1; then |
| 8829 | cat >conftest.$ac_ext <<_ACEOF |
| 8830 | /* confdefs.h. */ |
| 8831 | _ACEOF |
| 8832 | cat confdefs.h >>conftest.$ac_ext |
| 8833 | cat >>conftest.$ac_ext <<_ACEOF |
| 8834 | /* end confdefs.h. */ |
| 8835 | #include <stddef.h> |
| 8836 | extern size_t foo; |
| 8837 | extern unsigned long foo; |
| 8838 | |
| 8839 | int |
| 8840 | main () |
| 8841 | { |
| 8842 | |
| 8843 | ; |
| 8844 | return 0; |
| 8845 | } |
| 8846 | _ACEOF |
| 8847 | rm -f conftest.$ac_objext |
| 8848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8849 | (eval $ac_compile) 2>conftest.er1 |
| 8850 | ac_status=$? |
| 8851 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8852 | rm -f conftest.er1 |
| 8853 | cat conftest.err >&5 |
| 8854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8855 | (exit $ac_status); } && |
| 8856 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8857 | || test ! -s conftest.err' |
| 8858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8859 | (eval $ac_try) 2>&5 |
| 8860 | ac_status=$? |
| 8861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8862 | (exit $ac_status); }; } && |
| 8863 | { ac_try='test -s conftest.$ac_objext' |
| 8864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8865 | (eval $ac_try) 2>&5 |
| 8866 | ac_status=$? |
| 8867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8868 | (exit $ac_status); }; }; then |
| 8869 | fits_in_uint=0 |
| 8870 | else |
| 8871 | echo "$as_me: failed program was:" >&5 |
| 8872 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8873 | |
| 8874 | fi |
| 8875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8876 | fi |
| 8877 | if test -z "$result"; then |
| 8878 | if test "$fits_in_uint" = 1; then |
| 8879 | result="$res_hi$res_lo"U |
| 8880 | else |
| 8881 | result="$res_hi$res_lo"UL |
| 8882 | fi |
| 8883 | else |
| 8884 | result='~(size_t)0' |
| 8885 | fi |
| 8886 | fi |
| 8887 | echo "$as_me:$LINENO: result: $result" >&5 |
| 8888 | echo "${ECHO_T}$result" >&6 |
| 8889 | if test "$result" != yes; then |
| 8890 | |
| 8891 | cat >>confdefs.h <<_ACEOF |
| 8892 | #define SIZE_MAX $result |
| 8893 | _ACEOF |
| 8894 | |
| 8895 | fi |
| 8896 | |
| 8897 | |
| 8898 | |
| 8899 | |
| 8900 | for ac_header in stdint.h |
| 8901 | do |
| 8902 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8908 | fi |
| 8909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8911 | else |
| 8912 | # Is the header compilable? |
| 8913 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8914 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8915 | cat >conftest.$ac_ext <<_ACEOF |
| 8916 | /* confdefs.h. */ |
| 8917 | _ACEOF |
| 8918 | cat confdefs.h >>conftest.$ac_ext |
| 8919 | cat >>conftest.$ac_ext <<_ACEOF |
| 8920 | /* end confdefs.h. */ |
| 8921 | $ac_includes_default |
| 8922 | #include <$ac_header> |
| 8923 | _ACEOF |
| 8924 | rm -f conftest.$ac_objext |
| 8925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8926 | (eval $ac_compile) 2>conftest.er1 |
| 8927 | ac_status=$? |
| 8928 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8929 | rm -f conftest.er1 |
| 8930 | cat conftest.err >&5 |
| 8931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8932 | (exit $ac_status); } && |
| 8933 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 8934 | || test ! -s conftest.err' |
| 8935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8936 | (eval $ac_try) 2>&5 |
| 8937 | ac_status=$? |
| 8938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8939 | (exit $ac_status); }; } && |
| 8940 | { ac_try='test -s conftest.$ac_objext' |
| 8941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8942 | (eval $ac_try) 2>&5 |
| 8943 | ac_status=$? |
| 8944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8945 | (exit $ac_status); }; }; then |
| 8946 | ac_header_compiler=yes |
| 8947 | else |
| 8948 | echo "$as_me: failed program was:" >&5 |
| 8949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8950 | |
| 8951 | ac_header_compiler=no |
| 8952 | fi |
| 8953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8954 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8955 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8956 | |
| 8957 | # Is the header present? |
| 8958 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8959 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8960 | cat >conftest.$ac_ext <<_ACEOF |
| 8961 | /* confdefs.h. */ |
| 8962 | _ACEOF |
| 8963 | cat confdefs.h >>conftest.$ac_ext |
| 8964 | cat >>conftest.$ac_ext <<_ACEOF |
| 8965 | /* end confdefs.h. */ |
| 8966 | #include <$ac_header> |
| 8967 | _ACEOF |
| 8968 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8969 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8970 | ac_status=$? |
| 8971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8972 | rm -f conftest.er1 |
| 8973 | cat conftest.err >&5 |
| 8974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8975 | (exit $ac_status); } >/dev/null; then |
| 8976 | if test -s conftest.err; then |
| 8977 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 8978 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 8979 | else |
| 8980 | ac_cpp_err= |
| 8981 | fi |
| 8982 | else |
| 8983 | ac_cpp_err=yes |
| 8984 | fi |
| 8985 | if test -z "$ac_cpp_err"; then |
| 8986 | ac_header_preproc=yes |
| 8987 | else |
| 8988 | echo "$as_me: failed program was:" >&5 |
| 8989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8990 | |
| 8991 | ac_header_preproc=no |
| 8992 | fi |
| 8993 | rm -f conftest.err conftest.$ac_ext |
| 8994 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8995 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8996 | |
| 8997 | # So? What about this header? |
| 8998 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 8999 | yes:no: ) |
| 9000 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9001 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9003 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9004 | ac_header_preproc=yes |
| 9005 | ;; |
| 9006 | no:yes:* ) |
| 9007 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9008 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9009 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9010 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9011 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9012 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9013 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9014 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9015 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9016 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9017 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9018 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9019 | ( |
| 9020 | cat <<\_ASBOX |
| 9021 | ## ------------------------------------------ ## |
| 9022 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9023 | ## ------------------------------------------ ## |
| 9024 | _ASBOX |
| 9025 | ) | |
| 9026 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9027 | ;; |
| 9028 | esac |
| 9029 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9033 | else |
| 9034 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9035 | fi |
| 9036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9037 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9038 | |
| 9039 | fi |
| 9040 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9041 | cat >>confdefs.h <<_ACEOF |
| 9042 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9043 | _ACEOF |
| 9044 | |
| 9045 | fi |
| 9046 | |
| 9047 | done |
| 9048 | |
| 9049 | |
| 9050 | |
| 9051 | if test "X$prefix" = "XNONE"; then |
| 9052 | acl_final_prefix="$ac_default_prefix" |
| 9053 | else |
| 9054 | acl_final_prefix="$prefix" |
| 9055 | fi |
| 9056 | if test "X$exec_prefix" = "XNONE"; then |
| 9057 | acl_final_exec_prefix='${prefix}' |
| 9058 | else |
| 9059 | acl_final_exec_prefix="$exec_prefix" |
| 9060 | fi |
| 9061 | acl_save_prefix="$prefix" |
| 9062 | prefix="$acl_final_prefix" |
| 9063 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 9064 | prefix="$acl_save_prefix" |
| 9065 | |
| 9066 | |
| 9067 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 9068 | if test "${with_gnu_ld+set}" = set; then |
| 9069 | withval="$with_gnu_ld" |
| 9070 | test "$withval" = no || with_gnu_ld=yes |
| 9071 | else |
| 9072 | with_gnu_ld=no |
| 9073 | fi; |
| 9074 | # Prepare PATH_SEPARATOR. |
| 9075 | # The user is always right. |
| 9076 | if test "${PATH_SEPARATOR+set}" != set; then |
| 9077 | echo "#! /bin/sh" >conf$$.sh |
| 9078 | echo "exit 0" >>conf$$.sh |
| 9079 | chmod +x conf$$.sh |
| 9080 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 9081 | PATH_SEPARATOR=';' |
| 9082 | else |
| 9083 | PATH_SEPARATOR=: |
| 9084 | fi |
| 9085 | rm -f conf$$.sh |
| 9086 | fi |
| 9087 | ac_prog=ld |
| 9088 | if test "$GCC" = yes; then |
| 9089 | # Check if gcc -print-prog-name=ld gives a path. |
| 9090 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 9091 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 9092 | case $host in |
| 9093 | *-*-mingw*) |
| 9094 | # gcc leaves a trailing carriage return which upsets mingw |
| 9095 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 9096 | *) |
| 9097 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 9098 | esac |
| 9099 | case $ac_prog in |
| 9100 | # Accept absolute paths. |
| 9101 | [\\/]* | [A-Za-z]:[\\/]*) |
| 9102 | re_direlt='/[^/][^/]*/\.\./' |
| 9103 | # Canonicalize the path of ld |
| 9104 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 9105 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 9106 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 9107 | done |
| 9108 | test -z "$LD" && LD="$ac_prog" |
| 9109 | ;; |
| 9110 | "") |
| 9111 | # If it fails, then pretend we aren't using GCC. |
| 9112 | ac_prog=ld |
| 9113 | ;; |
| 9114 | *) |
| 9115 | # If it is relative, then search for the first ld in PATH. |
| 9116 | with_gnu_ld=unknown |
| 9117 | ;; |
| 9118 | esac |
| 9119 | elif test "$with_gnu_ld" = yes; then |
| 9120 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 9121 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 9122 | else |
| 9123 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 9124 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 9125 | fi |
| 9126 | if test "${acl_cv_path_LD+set}" = set; then |
| 9127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9128 | else |
| 9129 | if test -z "$LD"; then |
| 9130 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 9131 | for ac_dir in $PATH; do |
| 9132 | test -z "$ac_dir" && ac_dir=. |
| 9133 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 9134 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 9135 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 9136 | # but apparently some GNU ld's only accept -v. |
| 9137 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 9138 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 9139 | *GNU* | *'with BFD'*) |
| 9140 | test "$with_gnu_ld" != no && break ;; |
| 9141 | *) |
| 9142 | test "$with_gnu_ld" != yes && break ;; |
| 9143 | esac |
| 9144 | fi |
| 9145 | done |
| 9146 | IFS="$ac_save_ifs" |
| 9147 | else |
| 9148 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 9149 | fi |
| 9150 | fi |
| 9151 | |
| 9152 | LD="$acl_cv_path_LD" |
| 9153 | if test -n "$LD"; then |
| 9154 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 9155 | echo "${ECHO_T}$LD" >&6 |
| 9156 | else |
| 9157 | echo "$as_me:$LINENO: result: no" >&5 |
| 9158 | echo "${ECHO_T}no" >&6 |
| 9159 | fi |
| 9160 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 9161 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 9162 | { (exit 1); exit 1; }; } |
| 9163 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 9164 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 9165 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 9166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9167 | else |
| 9168 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 9169 | case `$LD -v 2>&1 </dev/null` in |
| 9170 | *GNU* | *'with BFD'*) |
| 9171 | acl_cv_prog_gnu_ld=yes ;; |
| 9172 | *) |
| 9173 | acl_cv_prog_gnu_ld=no ;; |
| 9174 | esac |
| 9175 | fi |
| 9176 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 9177 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
| 9178 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 9179 | |
| 9180 | |
| 9181 | |
| 9182 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 9183 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
| 9184 | if test "${acl_cv_rpath+set}" = set; then |
| 9185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9186 | else |
| 9187 | |
| 9188 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 9189 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 9190 | . ./conftest.sh |
| 9191 | rm -f ./conftest.sh |
| 9192 | acl_cv_rpath=done |
| 9193 | |
| 9194 | fi |
| 9195 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 9196 | echo "${ECHO_T}$acl_cv_rpath" >&6 |
| 9197 | wl="$acl_cv_wl" |
| 9198 | libext="$acl_cv_libext" |
| 9199 | shlibext="$acl_cv_shlibext" |
| 9200 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 9201 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 9202 | hardcode_direct="$acl_cv_hardcode_direct" |
| 9203 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 9204 | # Check whether --enable-rpath or --disable-rpath was given. |
| 9205 | if test "${enable_rpath+set}" = set; then |
| 9206 | enableval="$enable_rpath" |
| 9207 | : |
| 9208 | else |
| 9209 | enable_rpath=yes |
| 9210 | fi; |
| 9211 | |
| 9212 | |
| 9213 | |
| 9214 | |
| 9215 | |
| 9216 | |
| 9217 | |
| 9218 | use_additional=yes |
| 9219 | |
| 9220 | acl_save_prefix="$prefix" |
| 9221 | prefix="$acl_final_prefix" |
| 9222 | acl_save_exec_prefix="$exec_prefix" |
| 9223 | exec_prefix="$acl_final_exec_prefix" |
| 9224 | |
| 9225 | eval additional_includedir=\"$includedir\" |
| 9226 | eval additional_libdir=\"$libdir\" |
| 9227 | |
| 9228 | exec_prefix="$acl_save_exec_prefix" |
| 9229 | prefix="$acl_save_prefix" |
| 9230 | |
| 9231 | |
| 9232 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
| 9233 | if test "${with_libiconv_prefix+set}" = set; then |
| 9234 | withval="$with_libiconv_prefix" |
| 9235 | |
| 9236 | if test "X$withval" = "Xno"; then |
| 9237 | use_additional=no |
| 9238 | else |
| 9239 | if test "X$withval" = "X"; then |
| 9240 | |
| 9241 | acl_save_prefix="$prefix" |
| 9242 | prefix="$acl_final_prefix" |
| 9243 | acl_save_exec_prefix="$exec_prefix" |
| 9244 | exec_prefix="$acl_final_exec_prefix" |
| 9245 | |
| 9246 | eval additional_includedir=\"$includedir\" |
| 9247 | eval additional_libdir=\"$libdir\" |
| 9248 | |
| 9249 | exec_prefix="$acl_save_exec_prefix" |
| 9250 | prefix="$acl_save_prefix" |
| 9251 | |
| 9252 | else |
| 9253 | additional_includedir="$withval/include" |
| 9254 | additional_libdir="$withval/lib" |
| 9255 | fi |
| 9256 | fi |
| 9257 | |
| 9258 | fi; |
| 9259 | LIBICONV= |
| 9260 | LTLIBICONV= |
| 9261 | INCICONV= |
| 9262 | rpathdirs= |
| 9263 | ltrpathdirs= |
| 9264 | names_already_handled= |
| 9265 | names_next_round='iconv ' |
| 9266 | while test -n "$names_next_round"; do |
| 9267 | names_this_round="$names_next_round" |
| 9268 | names_next_round= |
| 9269 | for name in $names_this_round; do |
| 9270 | already_handled= |
| 9271 | for n in $names_already_handled; do |
| 9272 | if test "$n" = "$name"; then |
| 9273 | already_handled=yes |
| 9274 | break |
| 9275 | fi |
| 9276 | done |
| 9277 | if test -z "$already_handled"; then |
| 9278 | names_already_handled="$names_already_handled $name" |
| 9279 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 9280 | eval value=\"\$HAVE_LIB$uppername\" |
| 9281 | if test -n "$value"; then |
| 9282 | if test "$value" = yes; then |
| 9283 | eval value=\"\$LIB$uppername\" |
| 9284 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 9285 | eval value=\"\$LTLIB$uppername\" |
| 9286 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 9287 | else |
| 9288 | : |
| 9289 | fi |
| 9290 | else |
| 9291 | found_dir= |
| 9292 | found_la= |
| 9293 | found_so= |
| 9294 | found_a= |
| 9295 | if test $use_additional = yes; then |
| 9296 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 9297 | found_dir="$additional_libdir" |
| 9298 | found_so="$additional_libdir/lib$name.$shlibext" |
| 9299 | if test -f "$additional_libdir/lib$name.la"; then |
| 9300 | found_la="$additional_libdir/lib$name.la" |
| 9301 | fi |
| 9302 | else |
| 9303 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 9304 | found_dir="$additional_libdir" |
| 9305 | found_a="$additional_libdir/lib$name.$libext" |
| 9306 | if test -f "$additional_libdir/lib$name.la"; then |
| 9307 | found_la="$additional_libdir/lib$name.la" |
| 9308 | fi |
| 9309 | fi |
| 9310 | fi |
| 9311 | fi |
| 9312 | if test "X$found_dir" = "X"; then |
| 9313 | for x in $LDFLAGS $LTLIBICONV; do |
| 9314 | |
| 9315 | acl_save_prefix="$prefix" |
| 9316 | prefix="$acl_final_prefix" |
| 9317 | acl_save_exec_prefix="$exec_prefix" |
| 9318 | exec_prefix="$acl_final_exec_prefix" |
| 9319 | eval x=\"$x\" |
| 9320 | exec_prefix="$acl_save_exec_prefix" |
| 9321 | prefix="$acl_save_prefix" |
| 9322 | |
| 9323 | case "$x" in |
| 9324 | -L*) |
| 9325 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9326 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9327 | found_dir="$dir" |
| 9328 | found_so="$dir/lib$name.$shlibext" |
| 9329 | if test -f "$dir/lib$name.la"; then |
| 9330 | found_la="$dir/lib$name.la" |
| 9331 | fi |
| 9332 | else |
| 9333 | if test -f "$dir/lib$name.$libext"; then |
| 9334 | found_dir="$dir" |
| 9335 | found_a="$dir/lib$name.$libext" |
| 9336 | if test -f "$dir/lib$name.la"; then |
| 9337 | found_la="$dir/lib$name.la" |
| 9338 | fi |
| 9339 | fi |
| 9340 | fi |
| 9341 | ;; |
| 9342 | esac |
| 9343 | if test "X$found_dir" != "X"; then |
| 9344 | break |
| 9345 | fi |
| 9346 | done |
| 9347 | fi |
| 9348 | if test "X$found_dir" != "X"; then |
| 9349 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 9350 | if test "X$found_so" != "X"; then |
| 9351 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9352 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9353 | else |
| 9354 | haveit= |
| 9355 | for x in $ltrpathdirs; do |
| 9356 | if test "X$x" = "X$found_dir"; then |
| 9357 | haveit=yes |
| 9358 | break |
| 9359 | fi |
| 9360 | done |
| 9361 | if test -z "$haveit"; then |
| 9362 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9363 | fi |
| 9364 | if test "$hardcode_direct" = yes; then |
| 9365 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9366 | else |
| 9367 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9368 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9369 | haveit= |
| 9370 | for x in $rpathdirs; do |
| 9371 | if test "X$x" = "X$found_dir"; then |
| 9372 | haveit=yes |
| 9373 | break |
| 9374 | fi |
| 9375 | done |
| 9376 | if test -z "$haveit"; then |
| 9377 | rpathdirs="$rpathdirs $found_dir" |
| 9378 | fi |
| 9379 | else |
| 9380 | haveit= |
| 9381 | for x in $LDFLAGS $LIBICONV; do |
| 9382 | |
| 9383 | acl_save_prefix="$prefix" |
| 9384 | prefix="$acl_final_prefix" |
| 9385 | acl_save_exec_prefix="$exec_prefix" |
| 9386 | exec_prefix="$acl_final_exec_prefix" |
| 9387 | eval x=\"$x\" |
| 9388 | exec_prefix="$acl_save_exec_prefix" |
| 9389 | prefix="$acl_save_prefix" |
| 9390 | |
| 9391 | if test "X$x" = "X-L$found_dir"; then |
| 9392 | haveit=yes |
| 9393 | break |
| 9394 | fi |
| 9395 | done |
| 9396 | if test -z "$haveit"; then |
| 9397 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 9398 | fi |
| 9399 | if test "$hardcode_minus_L" != no; then |
| 9400 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 9401 | else |
| 9402 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9403 | fi |
| 9404 | fi |
| 9405 | fi |
| 9406 | fi |
| 9407 | else |
| 9408 | if test "X$found_a" != "X"; then |
| 9409 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 9410 | else |
| 9411 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 9412 | fi |
| 9413 | fi |
| 9414 | additional_includedir= |
| 9415 | case "$found_dir" in |
| 9416 | */lib | */lib/) |
| 9417 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9418 | additional_includedir="$basedir/include" |
| 9419 | ;; |
| 9420 | esac |
| 9421 | if test "X$additional_includedir" != "X"; then |
| 9422 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9423 | haveit= |
| 9424 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9425 | if test -n "$GCC"; then |
| 9426 | case $host_os in |
| 9427 | linux*) haveit=yes;; |
| 9428 | esac |
| 9429 | fi |
| 9430 | fi |
| 9431 | if test -z "$haveit"; then |
| 9432 | for x in $CPPFLAGS $INCICONV; do |
| 9433 | |
| 9434 | acl_save_prefix="$prefix" |
| 9435 | prefix="$acl_final_prefix" |
| 9436 | acl_save_exec_prefix="$exec_prefix" |
| 9437 | exec_prefix="$acl_final_exec_prefix" |
| 9438 | eval x=\"$x\" |
| 9439 | exec_prefix="$acl_save_exec_prefix" |
| 9440 | prefix="$acl_save_prefix" |
| 9441 | |
| 9442 | if test "X$x" = "X-I$additional_includedir"; then |
| 9443 | haveit=yes |
| 9444 | break |
| 9445 | fi |
| 9446 | done |
| 9447 | if test -z "$haveit"; then |
| 9448 | if test -d "$additional_includedir"; then |
| 9449 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 9450 | fi |
| 9451 | fi |
| 9452 | fi |
| 9453 | fi |
| 9454 | fi |
| 9455 | if test -n "$found_la"; then |
| 9456 | save_libdir="$libdir" |
| 9457 | case "$found_la" in |
| 9458 | */* | *\\*) . "$found_la" ;; |
| 9459 | *) . "./$found_la" ;; |
| 9460 | esac |
| 9461 | libdir="$save_libdir" |
| 9462 | for dep in $dependency_libs; do |
| 9463 | case "$dep" in |
| 9464 | -L*) |
| 9465 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9466 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9467 | haveit= |
| 9468 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9469 | if test -n "$GCC"; then |
| 9470 | case $host_os in |
| 9471 | linux*) haveit=yes;; |
| 9472 | esac |
| 9473 | fi |
| 9474 | fi |
| 9475 | if test -z "$haveit"; then |
| 9476 | haveit= |
| 9477 | for x in $LDFLAGS $LIBICONV; do |
| 9478 | |
| 9479 | acl_save_prefix="$prefix" |
| 9480 | prefix="$acl_final_prefix" |
| 9481 | acl_save_exec_prefix="$exec_prefix" |
| 9482 | exec_prefix="$acl_final_exec_prefix" |
| 9483 | eval x=\"$x\" |
| 9484 | exec_prefix="$acl_save_exec_prefix" |
| 9485 | prefix="$acl_save_prefix" |
| 9486 | |
| 9487 | if test "X$x" = "X-L$additional_libdir"; then |
| 9488 | haveit=yes |
| 9489 | break |
| 9490 | fi |
| 9491 | done |
| 9492 | if test -z "$haveit"; then |
| 9493 | if test -d "$additional_libdir"; then |
| 9494 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 9495 | fi |
| 9496 | fi |
| 9497 | haveit= |
| 9498 | for x in $LDFLAGS $LTLIBICONV; do |
| 9499 | |
| 9500 | acl_save_prefix="$prefix" |
| 9501 | prefix="$acl_final_prefix" |
| 9502 | acl_save_exec_prefix="$exec_prefix" |
| 9503 | exec_prefix="$acl_final_exec_prefix" |
| 9504 | eval x=\"$x\" |
| 9505 | exec_prefix="$acl_save_exec_prefix" |
| 9506 | prefix="$acl_save_prefix" |
| 9507 | |
| 9508 | if test "X$x" = "X-L$additional_libdir"; then |
| 9509 | haveit=yes |
| 9510 | break |
| 9511 | fi |
| 9512 | done |
| 9513 | if test -z "$haveit"; then |
| 9514 | if test -d "$additional_libdir"; then |
| 9515 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 9516 | fi |
| 9517 | fi |
| 9518 | fi |
| 9519 | fi |
| 9520 | ;; |
| 9521 | -R*) |
| 9522 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9523 | if test "$enable_rpath" != no; then |
| 9524 | haveit= |
| 9525 | for x in $rpathdirs; do |
| 9526 | if test "X$x" = "X$dir"; then |
| 9527 | haveit=yes |
| 9528 | break |
| 9529 | fi |
| 9530 | done |
| 9531 | if test -z "$haveit"; then |
| 9532 | rpathdirs="$rpathdirs $dir" |
| 9533 | fi |
| 9534 | haveit= |
| 9535 | for x in $ltrpathdirs; do |
| 9536 | if test "X$x" = "X$dir"; then |
| 9537 | haveit=yes |
| 9538 | break |
| 9539 | fi |
| 9540 | done |
| 9541 | if test -z "$haveit"; then |
| 9542 | ltrpathdirs="$ltrpathdirs $dir" |
| 9543 | fi |
| 9544 | fi |
| 9545 | ;; |
| 9546 | -l*) |
| 9547 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9548 | ;; |
| 9549 | *.la) |
| 9550 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9551 | ;; |
| 9552 | *) |
| 9553 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 9554 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 9555 | ;; |
| 9556 | esac |
| 9557 | done |
| 9558 | fi |
| 9559 | else |
| 9560 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 9561 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 9562 | fi |
| 9563 | fi |
| 9564 | fi |
| 9565 | done |
| 9566 | done |
| 9567 | if test "X$rpathdirs" != "X"; then |
| 9568 | if test -n "$hardcode_libdir_separator"; then |
| 9569 | alldirs= |
| 9570 | for found_dir in $rpathdirs; do |
| 9571 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9572 | done |
| 9573 | acl_save_libdir="$libdir" |
| 9574 | libdir="$alldirs" |
| 9575 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9576 | libdir="$acl_save_libdir" |
| 9577 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9578 | else |
| 9579 | for found_dir in $rpathdirs; do |
| 9580 | acl_save_libdir="$libdir" |
| 9581 | libdir="$found_dir" |
| 9582 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9583 | libdir="$acl_save_libdir" |
| 9584 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9585 | done |
| 9586 | fi |
| 9587 | fi |
| 9588 | if test "X$ltrpathdirs" != "X"; then |
| 9589 | for found_dir in $ltrpathdirs; do |
| 9590 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9591 | done |
| 9592 | fi |
| 9593 | |
| 9594 | |
| 9595 | |
| 9596 | |
| 9597 | |
| 9598 | |
| 9599 | |
| 9600 | |
| 9601 | echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 9602 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 |
| 9603 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 9604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9605 | else |
| 9606 | cat >conftest.$ac_ext <<_ACEOF |
| 9607 | /* confdefs.h. */ |
| 9608 | _ACEOF |
| 9609 | cat confdefs.h >>conftest.$ac_ext |
| 9610 | cat >>conftest.$ac_ext <<_ACEOF |
| 9611 | /* end confdefs.h. */ |
| 9612 | $ac_includes_default |
| 9613 | int |
| 9614 | main () |
| 9615 | { |
| 9616 | if ((ptrdiff_t *) 0) |
| 9617 | return 0; |
| 9618 | if (sizeof (ptrdiff_t)) |
| 9619 | return 0; |
| 9620 | ; |
| 9621 | return 0; |
| 9622 | } |
| 9623 | _ACEOF |
| 9624 | rm -f conftest.$ac_objext |
| 9625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9626 | (eval $ac_compile) 2>conftest.er1 |
| 9627 | ac_status=$? |
| 9628 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9629 | rm -f conftest.er1 |
| 9630 | cat conftest.err >&5 |
| 9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9632 | (exit $ac_status); } && |
| 9633 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9634 | || test ! -s conftest.err' |
| 9635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9636 | (eval $ac_try) 2>&5 |
| 9637 | ac_status=$? |
| 9638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9639 | (exit $ac_status); }; } && |
| 9640 | { ac_try='test -s conftest.$ac_objext' |
| 9641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9642 | (eval $ac_try) 2>&5 |
| 9643 | ac_status=$? |
| 9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9645 | (exit $ac_status); }; }; then |
| 9646 | ac_cv_type_ptrdiff_t=yes |
| 9647 | else |
| 9648 | echo "$as_me: failed program was:" >&5 |
| 9649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9650 | |
| 9651 | ac_cv_type_ptrdiff_t=no |
| 9652 | fi |
| 9653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9654 | fi |
| 9655 | echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 9656 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 |
| 9657 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 9658 | : |
| 9659 | else |
| 9660 | |
| 9661 | cat >>confdefs.h <<\_ACEOF |
| 9662 | #define ptrdiff_t long |
| 9663 | _ACEOF |
| 9664 | |
| 9665 | |
| 9666 | fi |
| 9667 | |
| 9668 | |
| 9669 | |
| 9670 | |
| 9671 | |
| 9672 | |
| 9673 | |
| 9674 | |
| 9675 | |
| 9676 | |
| 9677 | |
| 9678 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
| 9679 | stdlib.h string.h unistd.h sys/param.h |
| 9680 | do |
| 9681 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 9682 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9683 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9687 | fi |
| 9688 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9689 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9690 | else |
| 9691 | # Is the header compilable? |
| 9692 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9693 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 9694 | cat >conftest.$ac_ext <<_ACEOF |
| 9695 | /* confdefs.h. */ |
| 9696 | _ACEOF |
| 9697 | cat confdefs.h >>conftest.$ac_ext |
| 9698 | cat >>conftest.$ac_ext <<_ACEOF |
| 9699 | /* end confdefs.h. */ |
| 9700 | $ac_includes_default |
| 9701 | #include <$ac_header> |
| 9702 | _ACEOF |
| 9703 | rm -f conftest.$ac_objext |
| 9704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9705 | (eval $ac_compile) 2>conftest.er1 |
| 9706 | ac_status=$? |
| 9707 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9708 | rm -f conftest.er1 |
| 9709 | cat conftest.err >&5 |
| 9710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9711 | (exit $ac_status); } && |
| 9712 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9713 | || test ! -s conftest.err' |
| 9714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9715 | (eval $ac_try) 2>&5 |
| 9716 | ac_status=$? |
| 9717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9718 | (exit $ac_status); }; } && |
| 9719 | { ac_try='test -s conftest.$ac_objext' |
| 9720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9721 | (eval $ac_try) 2>&5 |
| 9722 | ac_status=$? |
| 9723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9724 | (exit $ac_status); }; }; then |
| 9725 | ac_header_compiler=yes |
| 9726 | else |
| 9727 | echo "$as_me: failed program was:" >&5 |
| 9728 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9729 | |
| 9730 | ac_header_compiler=no |
| 9731 | fi |
| 9732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9733 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9734 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9735 | |
| 9736 | # Is the header present? |
| 9737 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9738 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 9739 | cat >conftest.$ac_ext <<_ACEOF |
| 9740 | /* confdefs.h. */ |
| 9741 | _ACEOF |
| 9742 | cat confdefs.h >>conftest.$ac_ext |
| 9743 | cat >>conftest.$ac_ext <<_ACEOF |
| 9744 | /* end confdefs.h. */ |
| 9745 | #include <$ac_header> |
| 9746 | _ACEOF |
| 9747 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9748 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9749 | ac_status=$? |
| 9750 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9751 | rm -f conftest.er1 |
| 9752 | cat conftest.err >&5 |
| 9753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9754 | (exit $ac_status); } >/dev/null; then |
| 9755 | if test -s conftest.err; then |
| 9756 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 9757 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 9758 | else |
| 9759 | ac_cpp_err= |
| 9760 | fi |
| 9761 | else |
| 9762 | ac_cpp_err=yes |
| 9763 | fi |
| 9764 | if test -z "$ac_cpp_err"; then |
| 9765 | ac_header_preproc=yes |
| 9766 | else |
| 9767 | echo "$as_me: failed program was:" >&5 |
| 9768 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9769 | |
| 9770 | ac_header_preproc=no |
| 9771 | fi |
| 9772 | rm -f conftest.err conftest.$ac_ext |
| 9773 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9774 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9775 | |
| 9776 | # So? What about this header? |
| 9777 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
| 9778 | yes:no: ) |
| 9779 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9780 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9781 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9782 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9783 | ac_header_preproc=yes |
| 9784 | ;; |
| 9785 | no:yes:* ) |
| 9786 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9787 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9788 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9789 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9790 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9791 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9792 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9793 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9795 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9796 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9797 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 9798 | ( |
| 9799 | cat <<\_ASBOX |
| 9800 | ## ------------------------------------------ ## |
| 9801 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 9802 | ## ------------------------------------------ ## |
| 9803 | _ASBOX |
| 9804 | ) | |
| 9805 | sed "s/^/$as_me: WARNING: /" >&2 |
| 9806 | ;; |
| 9807 | esac |
| 9808 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 9811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9812 | else |
| 9813 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9814 | fi |
| 9815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 9816 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9817 | |
| 9818 | fi |
| 9819 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9820 | cat >>confdefs.h <<_ACEOF |
| 9821 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9822 | _ACEOF |
| 9823 | |
| 9824 | fi |
| 9825 | |
| 9826 | done |
| 9827 | |
| 9828 | |
| 9829 | |
| 9830 | |
| 9831 | |
| 9832 | |
| 9833 | |
| 9834 | |
| 9835 | |
| 9836 | |
| 9837 | |
| 9838 | |
| 9839 | |
| 9840 | |
| 9841 | |
| 9842 | |
| 9843 | |
| 9844 | |
| 9845 | |
| 9846 | |
| 9847 | |
| 9848 | |
| 9849 | |
| 9850 | |
| 9851 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9852 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9853 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9854 | __fsetlocking |
| 9855 | do |
| 9856 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 9857 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9858 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9859 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 9860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9861 | else |
| 9862 | cat >conftest.$ac_ext <<_ACEOF |
| 9863 | /* confdefs.h. */ |
| 9864 | _ACEOF |
| 9865 | cat confdefs.h >>conftest.$ac_ext |
| 9866 | cat >>conftest.$ac_ext <<_ACEOF |
| 9867 | /* end confdefs.h. */ |
| 9868 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9869 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9870 | #define $ac_func innocuous_$ac_func |
| 9871 | |
| 9872 | /* System header to define __stub macros and hopefully few prototypes, |
| 9873 | which can conflict with char $ac_func (); below. |
| 9874 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9875 | <limits.h> exists even on freestanding compilers. */ |
| 9876 | |
| 9877 | #ifdef __STDC__ |
| 9878 | # include <limits.h> |
| 9879 | #else |
| 9880 | # include <assert.h> |
| 9881 | #endif |
| 9882 | |
| 9883 | #undef $ac_func |
| 9884 | |
| 9885 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9886 | #ifdef __cplusplus |
| 9887 | extern "C" |
| 9888 | { |
| 9889 | #endif |
| 9890 | /* We use char because int might match the return type of a gcc2 |
| 9891 | builtin and then its argument prototype would still apply. */ |
| 9892 | char $ac_func (); |
| 9893 | /* The GNU C library defines this for functions which it implements |
| 9894 | to always fail with ENOSYS. Some functions are actually named |
| 9895 | something starting with __ and the normal name is an alias. */ |
| 9896 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 9897 | choke me |
| 9898 | #else |
| 9899 | char (*f) () = $ac_func; |
| 9900 | #endif |
| 9901 | #ifdef __cplusplus |
| 9902 | } |
| 9903 | #endif |
| 9904 | |
| 9905 | int |
| 9906 | main () |
| 9907 | { |
| 9908 | return f != $ac_func; |
| 9909 | ; |
| 9910 | return 0; |
| 9911 | } |
| 9912 | _ACEOF |
| 9913 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9915 | (eval $ac_link) 2>conftest.er1 |
| 9916 | ac_status=$? |
| 9917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9918 | rm -f conftest.er1 |
| 9919 | cat conftest.err >&5 |
| 9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9921 | (exit $ac_status); } && |
| 9922 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9923 | || test ! -s conftest.err' |
| 9924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9925 | (eval $ac_try) 2>&5 |
| 9926 | ac_status=$? |
| 9927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9928 | (exit $ac_status); }; } && |
| 9929 | { ac_try='test -s conftest$ac_exeext' |
| 9930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9931 | (eval $ac_try) 2>&5 |
| 9932 | ac_status=$? |
| 9933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9934 | (exit $ac_status); }; }; then |
| 9935 | eval "$as_ac_var=yes" |
| 9936 | else |
| 9937 | echo "$as_me: failed program was:" >&5 |
| 9938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9939 | |
| 9940 | eval "$as_ac_var=no" |
| 9941 | fi |
| 9942 | rm -f conftest.err conftest.$ac_objext \ |
| 9943 | conftest$ac_exeext conftest.$ac_ext |
| 9944 | fi |
| 9945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 9946 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9947 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9948 | cat >>confdefs.h <<_ACEOF |
| 9949 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9950 | _ACEOF |
| 9951 | |
| 9952 | fi |
| 9953 | done |
| 9954 | |
| 9955 | |
| 9956 | |
| 9957 | echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9958 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 |
| 9959 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9961 | else |
| 9962 | cat >conftest.$ac_ext <<_ACEOF |
| 9963 | /* confdefs.h. */ |
| 9964 | _ACEOF |
| 9965 | cat confdefs.h >>conftest.$ac_ext |
| 9966 | cat >>conftest.$ac_ext <<_ACEOF |
| 9967 | /* end confdefs.h. */ |
| 9968 | #include <stdio.h> |
| 9969 | int |
| 9970 | main () |
| 9971 | { |
| 9972 | |
| 9973 | #ifndef _snprintf |
| 9974 | char *p = (char *) _snprintf; |
| 9975 | #endif |
| 9976 | |
| 9977 | ; |
| 9978 | return 0; |
| 9979 | } |
| 9980 | _ACEOF |
| 9981 | rm -f conftest.$ac_objext |
| 9982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9983 | (eval $ac_compile) 2>conftest.er1 |
| 9984 | ac_status=$? |
| 9985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9986 | rm -f conftest.er1 |
| 9987 | cat conftest.err >&5 |
| 9988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9989 | (exit $ac_status); } && |
| 9990 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 9991 | || test ! -s conftest.err' |
| 9992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9993 | (eval $ac_try) 2>&5 |
| 9994 | ac_status=$? |
| 9995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9996 | (exit $ac_status); }; } && |
| 9997 | { ac_try='test -s conftest.$ac_objext' |
| 9998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9999 | (eval $ac_try) 2>&5 |
| 10000 | ac_status=$? |
| 10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10002 | (exit $ac_status); }; }; then |
| 10003 | ac_cv_have_decl__snprintf=yes |
| 10004 | else |
| 10005 | echo "$as_me: failed program was:" >&5 |
| 10006 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10007 | |
| 10008 | ac_cv_have_decl__snprintf=no |
| 10009 | fi |
| 10010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10011 | fi |
| 10012 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 10013 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 |
| 10014 | if test $ac_cv_have_decl__snprintf = yes; then |
| 10015 | gt_value=1 |
| 10016 | else |
| 10017 | gt_value=0 |
| 10018 | fi |
| 10019 | |
| 10020 | cat >>confdefs.h <<_ACEOF |
| 10021 | #define HAVE_DECL__SNPRINTF $gt_value |
| 10022 | _ACEOF |
| 10023 | |
| 10024 | |
| 10025 | |
| 10026 | echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 10027 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 |
| 10028 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 10029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10030 | else |
| 10031 | cat >conftest.$ac_ext <<_ACEOF |
| 10032 | /* confdefs.h. */ |
| 10033 | _ACEOF |
| 10034 | cat confdefs.h >>conftest.$ac_ext |
| 10035 | cat >>conftest.$ac_ext <<_ACEOF |
| 10036 | /* end confdefs.h. */ |
| 10037 | #include <stdio.h> |
| 10038 | int |
| 10039 | main () |
| 10040 | { |
| 10041 | |
| 10042 | #ifndef _snwprintf |
| 10043 | char *p = (char *) _snwprintf; |
| 10044 | #endif |
| 10045 | |
| 10046 | ; |
| 10047 | return 0; |
| 10048 | } |
| 10049 | _ACEOF |
| 10050 | rm -f conftest.$ac_objext |
| 10051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10052 | (eval $ac_compile) 2>conftest.er1 |
| 10053 | ac_status=$? |
| 10054 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10055 | rm -f conftest.er1 |
| 10056 | cat conftest.err >&5 |
| 10057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10058 | (exit $ac_status); } && |
| 10059 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10060 | || test ! -s conftest.err' |
| 10061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10062 | (eval $ac_try) 2>&5 |
| 10063 | ac_status=$? |
| 10064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10065 | (exit $ac_status); }; } && |
| 10066 | { ac_try='test -s conftest.$ac_objext' |
| 10067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10068 | (eval $ac_try) 2>&5 |
| 10069 | ac_status=$? |
| 10070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10071 | (exit $ac_status); }; }; then |
| 10072 | ac_cv_have_decl__snwprintf=yes |
| 10073 | else |
| 10074 | echo "$as_me: failed program was:" >&5 |
| 10075 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10076 | |
| 10077 | ac_cv_have_decl__snwprintf=no |
| 10078 | fi |
| 10079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10080 | fi |
| 10081 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 10082 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 |
| 10083 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 10084 | gt_value=1 |
| 10085 | else |
| 10086 | gt_value=0 |
| 10087 | fi |
| 10088 | |
| 10089 | cat >>confdefs.h <<_ACEOF |
| 10090 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 10091 | _ACEOF |
| 10092 | |
| 10093 | |
| 10094 | |
| 10095 | |
| 10096 | echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 10097 | echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 |
| 10098 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 10099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10100 | else |
| 10101 | cat >conftest.$ac_ext <<_ACEOF |
| 10102 | /* confdefs.h. */ |
| 10103 | _ACEOF |
| 10104 | cat confdefs.h >>conftest.$ac_ext |
| 10105 | cat >>conftest.$ac_ext <<_ACEOF |
| 10106 | /* end confdefs.h. */ |
| 10107 | #include <stdio.h> |
| 10108 | int |
| 10109 | main () |
| 10110 | { |
| 10111 | |
| 10112 | #ifndef feof_unlocked |
| 10113 | char *p = (char *) feof_unlocked; |
| 10114 | #endif |
| 10115 | |
| 10116 | ; |
| 10117 | return 0; |
| 10118 | } |
| 10119 | _ACEOF |
| 10120 | rm -f conftest.$ac_objext |
| 10121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10122 | (eval $ac_compile) 2>conftest.er1 |
| 10123 | ac_status=$? |
| 10124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10125 | rm -f conftest.er1 |
| 10126 | cat conftest.err >&5 |
| 10127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10128 | (exit $ac_status); } && |
| 10129 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10130 | || test ! -s conftest.err' |
| 10131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10132 | (eval $ac_try) 2>&5 |
| 10133 | ac_status=$? |
| 10134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10135 | (exit $ac_status); }; } && |
| 10136 | { ac_try='test -s conftest.$ac_objext' |
| 10137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10138 | (eval $ac_try) 2>&5 |
| 10139 | ac_status=$? |
| 10140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10141 | (exit $ac_status); }; }; then |
| 10142 | ac_cv_have_decl_feof_unlocked=yes |
| 10143 | else |
| 10144 | echo "$as_me: failed program was:" >&5 |
| 10145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10146 | |
| 10147 | ac_cv_have_decl_feof_unlocked=no |
| 10148 | fi |
| 10149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10150 | fi |
| 10151 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 10152 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 |
| 10153 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 10154 | gt_value=1 |
| 10155 | else |
| 10156 | gt_value=0 |
| 10157 | fi |
| 10158 | |
| 10159 | cat >>confdefs.h <<_ACEOF |
| 10160 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 10161 | _ACEOF |
| 10162 | |
| 10163 | |
| 10164 | |
| 10165 | echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 10166 | echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 |
| 10167 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 10168 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10169 | else |
| 10170 | cat >conftest.$ac_ext <<_ACEOF |
| 10171 | /* confdefs.h. */ |
| 10172 | _ACEOF |
| 10173 | cat confdefs.h >>conftest.$ac_ext |
| 10174 | cat >>conftest.$ac_ext <<_ACEOF |
| 10175 | /* end confdefs.h. */ |
| 10176 | #include <stdio.h> |
| 10177 | int |
| 10178 | main () |
| 10179 | { |
| 10180 | |
| 10181 | #ifndef fgets_unlocked |
| 10182 | char *p = (char *) fgets_unlocked; |
| 10183 | #endif |
| 10184 | |
| 10185 | ; |
| 10186 | return 0; |
| 10187 | } |
| 10188 | _ACEOF |
| 10189 | rm -f conftest.$ac_objext |
| 10190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10191 | (eval $ac_compile) 2>conftest.er1 |
| 10192 | ac_status=$? |
| 10193 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10194 | rm -f conftest.er1 |
| 10195 | cat conftest.err >&5 |
| 10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10197 | (exit $ac_status); } && |
| 10198 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10199 | || test ! -s conftest.err' |
| 10200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10201 | (eval $ac_try) 2>&5 |
| 10202 | ac_status=$? |
| 10203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10204 | (exit $ac_status); }; } && |
| 10205 | { ac_try='test -s conftest.$ac_objext' |
| 10206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10207 | (eval $ac_try) 2>&5 |
| 10208 | ac_status=$? |
| 10209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10210 | (exit $ac_status); }; }; then |
| 10211 | ac_cv_have_decl_fgets_unlocked=yes |
| 10212 | else |
| 10213 | echo "$as_me: failed program was:" >&5 |
| 10214 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10215 | |
| 10216 | ac_cv_have_decl_fgets_unlocked=no |
| 10217 | fi |
| 10218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10219 | fi |
| 10220 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 10221 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 |
| 10222 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 10223 | gt_value=1 |
| 10224 | else |
| 10225 | gt_value=0 |
| 10226 | fi |
| 10227 | |
| 10228 | cat >>confdefs.h <<_ACEOF |
| 10229 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 10230 | _ACEOF |
| 10231 | |
| 10232 | |
| 10233 | |
| 10234 | echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 10235 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 |
| 10236 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 10237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10238 | else |
| 10239 | cat >conftest.$ac_ext <<_ACEOF |
| 10240 | /* confdefs.h. */ |
| 10241 | _ACEOF |
| 10242 | cat confdefs.h >>conftest.$ac_ext |
| 10243 | cat >>conftest.$ac_ext <<_ACEOF |
| 10244 | /* end confdefs.h. */ |
| 10245 | #include <stdio.h> |
| 10246 | int |
| 10247 | main () |
| 10248 | { |
| 10249 | |
| 10250 | #ifndef getc_unlocked |
| 10251 | char *p = (char *) getc_unlocked; |
| 10252 | #endif |
| 10253 | |
| 10254 | ; |
| 10255 | return 0; |
| 10256 | } |
| 10257 | _ACEOF |
| 10258 | rm -f conftest.$ac_objext |
| 10259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10260 | (eval $ac_compile) 2>conftest.er1 |
| 10261 | ac_status=$? |
| 10262 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10263 | rm -f conftest.er1 |
| 10264 | cat conftest.err >&5 |
| 10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10266 | (exit $ac_status); } && |
| 10267 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10268 | || test ! -s conftest.err' |
| 10269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10270 | (eval $ac_try) 2>&5 |
| 10271 | ac_status=$? |
| 10272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10273 | (exit $ac_status); }; } && |
| 10274 | { ac_try='test -s conftest.$ac_objext' |
| 10275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10276 | (eval $ac_try) 2>&5 |
| 10277 | ac_status=$? |
| 10278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10279 | (exit $ac_status); }; }; then |
| 10280 | ac_cv_have_decl_getc_unlocked=yes |
| 10281 | else |
| 10282 | echo "$as_me: failed program was:" >&5 |
| 10283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10284 | |
| 10285 | ac_cv_have_decl_getc_unlocked=no |
| 10286 | fi |
| 10287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10288 | fi |
| 10289 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 10290 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 |
| 10291 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 10292 | gt_value=1 |
| 10293 | else |
| 10294 | gt_value=0 |
| 10295 | fi |
| 10296 | |
| 10297 | cat >>confdefs.h <<_ACEOF |
| 10298 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 10299 | _ACEOF |
| 10300 | |
| 10301 | |
| 10302 | |
| 10303 | case $gt_cv_func_printf_posix in |
| 10304 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 10305 | *) HAVE_POSIX_PRINTF=0 ;; |
| 10306 | esac |
| 10307 | |
| 10308 | if test "$ac_cv_func_asprintf" = yes; then |
| 10309 | HAVE_ASPRINTF=1 |
| 10310 | else |
| 10311 | HAVE_ASPRINTF=0 |
| 10312 | fi |
| 10313 | |
| 10314 | if test "$ac_cv_func_snprintf" = yes; then |
| 10315 | HAVE_SNPRINTF=1 |
| 10316 | else |
| 10317 | HAVE_SNPRINTF=0 |
| 10318 | fi |
| 10319 | |
| 10320 | if test "$ac_cv_func_wprintf" = yes; then |
| 10321 | HAVE_WPRINTF=1 |
| 10322 | else |
| 10323 | HAVE_WPRINTF=0 |
| 10324 | fi |
| 10325 | |
| 10326 | |
| 10327 | |
| 10328 | |
| 10329 | |
| 10330 | |
| 10331 | |
| 10332 | am_save_CPPFLAGS="$CPPFLAGS" |
| 10333 | |
| 10334 | for element in $INCICONV; do |
| 10335 | haveit= |
| 10336 | for x in $CPPFLAGS; do |
| 10337 | |
| 10338 | acl_save_prefix="$prefix" |
| 10339 | prefix="$acl_final_prefix" |
| 10340 | acl_save_exec_prefix="$exec_prefix" |
| 10341 | exec_prefix="$acl_final_exec_prefix" |
| 10342 | eval x=\"$x\" |
| 10343 | exec_prefix="$acl_save_exec_prefix" |
| 10344 | prefix="$acl_save_prefix" |
| 10345 | |
| 10346 | if test "X$x" = "X$element"; then |
| 10347 | haveit=yes |
| 10348 | break |
| 10349 | fi |
| 10350 | done |
| 10351 | if test -z "$haveit"; then |
| 10352 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10353 | fi |
| 10354 | done |
| 10355 | |
| 10356 | |
| 10357 | echo "$as_me:$LINENO: checking for iconv" >&5 |
| 10358 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
| 10359 | if test "${am_cv_func_iconv+set}" = set; then |
| 10360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10361 | else |
| 10362 | |
| 10363 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 10364 | am_cv_lib_iconv=no |
| 10365 | cat >conftest.$ac_ext <<_ACEOF |
| 10366 | /* confdefs.h. */ |
| 10367 | _ACEOF |
| 10368 | cat confdefs.h >>conftest.$ac_ext |
| 10369 | cat >>conftest.$ac_ext <<_ACEOF |
| 10370 | /* end confdefs.h. */ |
| 10371 | #include <stdlib.h> |
| 10372 | #include <iconv.h> |
| 10373 | int |
| 10374 | main () |
| 10375 | { |
| 10376 | iconv_t cd = iconv_open("",""); |
| 10377 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10378 | iconv_close(cd); |
| 10379 | ; |
| 10380 | return 0; |
| 10381 | } |
| 10382 | _ACEOF |
| 10383 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10385 | (eval $ac_link) 2>conftest.er1 |
| 10386 | ac_status=$? |
| 10387 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10388 | rm -f conftest.er1 |
| 10389 | cat conftest.err >&5 |
| 10390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10391 | (exit $ac_status); } && |
| 10392 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10393 | || test ! -s conftest.err' |
| 10394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10395 | (eval $ac_try) 2>&5 |
| 10396 | ac_status=$? |
| 10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10398 | (exit $ac_status); }; } && |
| 10399 | { ac_try='test -s conftest$ac_exeext' |
| 10400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10401 | (eval $ac_try) 2>&5 |
| 10402 | ac_status=$? |
| 10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10404 | (exit $ac_status); }; }; then |
| 10405 | am_cv_func_iconv=yes |
| 10406 | else |
| 10407 | echo "$as_me: failed program was:" >&5 |
| 10408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10409 | |
| 10410 | fi |
| 10411 | rm -f conftest.err conftest.$ac_objext \ |
| 10412 | conftest$ac_exeext conftest.$ac_ext |
| 10413 | if test "$am_cv_func_iconv" != yes; then |
| 10414 | am_save_LIBS="$LIBS" |
| 10415 | LIBS="$LIBS $LIBICONV" |
| 10416 | cat >conftest.$ac_ext <<_ACEOF |
| 10417 | /* confdefs.h. */ |
| 10418 | _ACEOF |
| 10419 | cat confdefs.h >>conftest.$ac_ext |
| 10420 | cat >>conftest.$ac_ext <<_ACEOF |
| 10421 | /* end confdefs.h. */ |
| 10422 | #include <stdlib.h> |
| 10423 | #include <iconv.h> |
| 10424 | int |
| 10425 | main () |
| 10426 | { |
| 10427 | iconv_t cd = iconv_open("",""); |
| 10428 | iconv(cd,NULL,NULL,NULL,NULL); |
| 10429 | iconv_close(cd); |
| 10430 | ; |
| 10431 | return 0; |
| 10432 | } |
| 10433 | _ACEOF |
| 10434 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10436 | (eval $ac_link) 2>conftest.er1 |
| 10437 | ac_status=$? |
| 10438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10439 | rm -f conftest.er1 |
| 10440 | cat conftest.err >&5 |
| 10441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10442 | (exit $ac_status); } && |
| 10443 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10444 | || test ! -s conftest.err' |
| 10445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10446 | (eval $ac_try) 2>&5 |
| 10447 | ac_status=$? |
| 10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10449 | (exit $ac_status); }; } && |
| 10450 | { ac_try='test -s conftest$ac_exeext' |
| 10451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10452 | (eval $ac_try) 2>&5 |
| 10453 | ac_status=$? |
| 10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10455 | (exit $ac_status); }; }; then |
| 10456 | am_cv_lib_iconv=yes |
| 10457 | am_cv_func_iconv=yes |
| 10458 | else |
| 10459 | echo "$as_me: failed program was:" >&5 |
| 10460 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10461 | |
| 10462 | fi |
| 10463 | rm -f conftest.err conftest.$ac_objext \ |
| 10464 | conftest$ac_exeext conftest.$ac_ext |
| 10465 | LIBS="$am_save_LIBS" |
| 10466 | fi |
| 10467 | |
| 10468 | fi |
| 10469 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 10470 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
| 10471 | if test "$am_cv_func_iconv" = yes; then |
| 10472 | |
| 10473 | cat >>confdefs.h <<\_ACEOF |
| 10474 | #define HAVE_ICONV 1 |
| 10475 | _ACEOF |
| 10476 | |
| 10477 | fi |
| 10478 | if test "$am_cv_lib_iconv" = yes; then |
| 10479 | echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 10480 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 |
| 10481 | echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 10482 | echo "${ECHO_T}$LIBICONV" >&6 |
| 10483 | else |
| 10484 | CPPFLAGS="$am_save_CPPFLAGS" |
| 10485 | LIBICONV= |
| 10486 | LTLIBICONV= |
| 10487 | fi |
| 10488 | |
| 10489 | |
| 10490 | |
| 10491 | if test "$am_cv_func_iconv" = yes; then |
| 10492 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 10493 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
| 10494 | if test "${am_cv_proto_iconv+set}" = set; then |
| 10495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10496 | else |
| 10497 | |
| 10498 | cat >conftest.$ac_ext <<_ACEOF |
| 10499 | /* confdefs.h. */ |
| 10500 | _ACEOF |
| 10501 | cat confdefs.h >>conftest.$ac_ext |
| 10502 | cat >>conftest.$ac_ext <<_ACEOF |
| 10503 | /* end confdefs.h. */ |
| 10504 | |
| 10505 | #include <stdlib.h> |
| 10506 | #include <iconv.h> |
| 10507 | extern |
| 10508 | #ifdef __cplusplus |
| 10509 | "C" |
| 10510 | #endif |
| 10511 | #if defined(__STDC__) || defined(__cplusplus) |
| 10512 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 10513 | #else |
| 10514 | size_t iconv(); |
| 10515 | #endif |
| 10516 | |
| 10517 | int |
| 10518 | main () |
| 10519 | { |
| 10520 | |
| 10521 | ; |
| 10522 | return 0; |
| 10523 | } |
| 10524 | _ACEOF |
| 10525 | rm -f conftest.$ac_objext |
| 10526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10527 | (eval $ac_compile) 2>conftest.er1 |
| 10528 | ac_status=$? |
| 10529 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10530 | rm -f conftest.er1 |
| 10531 | cat conftest.err >&5 |
| 10532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10533 | (exit $ac_status); } && |
| 10534 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10535 | || test ! -s conftest.err' |
| 10536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10537 | (eval $ac_try) 2>&5 |
| 10538 | ac_status=$? |
| 10539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10540 | (exit $ac_status); }; } && |
| 10541 | { ac_try='test -s conftest.$ac_objext' |
| 10542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10543 | (eval $ac_try) 2>&5 |
| 10544 | ac_status=$? |
| 10545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10546 | (exit $ac_status); }; }; then |
| 10547 | am_cv_proto_iconv_arg1="" |
| 10548 | else |
| 10549 | echo "$as_me: failed program was:" >&5 |
| 10550 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10551 | |
| 10552 | am_cv_proto_iconv_arg1="const" |
| 10553 | fi |
| 10554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10555 | 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);" |
| 10556 | fi |
| 10557 | |
| 10558 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
| 10559 | echo "$as_me:$LINENO: result: ${ac_t:- |
| 10560 | }$am_cv_proto_iconv" >&5 |
| 10561 | echo "${ECHO_T}${ac_t:- |
| 10562 | }$am_cv_proto_iconv" >&6 |
| 10563 | |
| 10564 | cat >>confdefs.h <<_ACEOF |
| 10565 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
| 10566 | _ACEOF |
| 10567 | |
| 10568 | fi |
| 10569 | |
| 10570 | |
| 10571 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 10572 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
| 10573 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 10574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10575 | else |
| 10576 | cat >conftest.$ac_ext <<_ACEOF |
| 10577 | /* confdefs.h. */ |
| 10578 | _ACEOF |
| 10579 | cat confdefs.h >>conftest.$ac_ext |
| 10580 | cat >>conftest.$ac_ext <<_ACEOF |
| 10581 | /* end confdefs.h. */ |
| 10582 | #include <langinfo.h> |
| 10583 | int |
| 10584 | main () |
| 10585 | { |
| 10586 | char* cs = nl_langinfo(CODESET); |
| 10587 | ; |
| 10588 | return 0; |
| 10589 | } |
| 10590 | _ACEOF |
| 10591 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10593 | (eval $ac_link) 2>conftest.er1 |
| 10594 | ac_status=$? |
| 10595 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10596 | rm -f conftest.er1 |
| 10597 | cat conftest.err >&5 |
| 10598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10599 | (exit $ac_status); } && |
| 10600 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10601 | || test ! -s conftest.err' |
| 10602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10603 | (eval $ac_try) 2>&5 |
| 10604 | ac_status=$? |
| 10605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10606 | (exit $ac_status); }; } && |
| 10607 | { ac_try='test -s conftest$ac_exeext' |
| 10608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10609 | (eval $ac_try) 2>&5 |
| 10610 | ac_status=$? |
| 10611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10612 | (exit $ac_status); }; }; then |
| 10613 | am_cv_langinfo_codeset=yes |
| 10614 | else |
| 10615 | echo "$as_me: failed program was:" >&5 |
| 10616 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10617 | |
| 10618 | am_cv_langinfo_codeset=no |
| 10619 | fi |
| 10620 | rm -f conftest.err conftest.$ac_objext \ |
| 10621 | conftest$ac_exeext conftest.$ac_ext |
| 10622 | |
| 10623 | fi |
| 10624 | echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 10625 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 |
| 10626 | if test $am_cv_langinfo_codeset = yes; then |
| 10627 | |
| 10628 | cat >>confdefs.h <<\_ACEOF |
| 10629 | #define HAVE_LANGINFO_CODESET 1 |
| 10630 | _ACEOF |
| 10631 | |
| 10632 | fi |
| 10633 | |
| 10634 | if test $ac_cv_header_locale_h = yes; then |
| 10635 | |
| 10636 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 10637 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
| 10638 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 10639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10640 | else |
| 10641 | cat >conftest.$ac_ext <<_ACEOF |
| 10642 | /* confdefs.h. */ |
| 10643 | _ACEOF |
| 10644 | cat confdefs.h >>conftest.$ac_ext |
| 10645 | cat >>conftest.$ac_ext <<_ACEOF |
| 10646 | /* end confdefs.h. */ |
| 10647 | #include <locale.h> |
| 10648 | int |
| 10649 | main () |
| 10650 | { |
| 10651 | return LC_MESSAGES |
| 10652 | ; |
| 10653 | return 0; |
| 10654 | } |
| 10655 | _ACEOF |
| 10656 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10658 | (eval $ac_link) 2>conftest.er1 |
| 10659 | ac_status=$? |
| 10660 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10661 | rm -f conftest.er1 |
| 10662 | cat conftest.err >&5 |
| 10663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10664 | (exit $ac_status); } && |
| 10665 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10666 | || test ! -s conftest.err' |
| 10667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10668 | (eval $ac_try) 2>&5 |
| 10669 | ac_status=$? |
| 10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10671 | (exit $ac_status); }; } && |
| 10672 | { ac_try='test -s conftest$ac_exeext' |
| 10673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10674 | (eval $ac_try) 2>&5 |
| 10675 | ac_status=$? |
| 10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10677 | (exit $ac_status); }; }; then |
| 10678 | am_cv_val_LC_MESSAGES=yes |
| 10679 | else |
| 10680 | echo "$as_me: failed program was:" >&5 |
| 10681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10682 | |
| 10683 | am_cv_val_LC_MESSAGES=no |
| 10684 | fi |
| 10685 | rm -f conftest.err conftest.$ac_objext \ |
| 10686 | conftest$ac_exeext conftest.$ac_ext |
| 10687 | fi |
| 10688 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 10689 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
| 10690 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 10691 | |
| 10692 | cat >>confdefs.h <<\_ACEOF |
| 10693 | #define HAVE_LC_MESSAGES 1 |
| 10694 | _ACEOF |
| 10695 | |
| 10696 | fi |
| 10697 | |
| 10698 | fi |
| 10699 | |
| 10700 | for ac_prog in bison |
| 10701 | do |
| 10702 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10703 | set dummy $ac_prog; ac_word=$2 |
| 10704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10706 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 10707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10708 | else |
| 10709 | if test -n "$INTLBISON"; then |
| 10710 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 10711 | else |
| 10712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10713 | for as_dir in $PATH |
| 10714 | do |
| 10715 | IFS=$as_save_IFS |
| 10716 | test -z "$as_dir" && as_dir=. |
| 10717 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10719 | ac_cv_prog_INTLBISON="$ac_prog" |
| 10720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10721 | break 2 |
| 10722 | fi |
| 10723 | done |
| 10724 | done |
| 10725 | |
| 10726 | fi |
| 10727 | fi |
| 10728 | INTLBISON=$ac_cv_prog_INTLBISON |
| 10729 | if test -n "$INTLBISON"; then |
| 10730 | echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 10731 | echo "${ECHO_T}$INTLBISON" >&6 |
| 10732 | else |
| 10733 | echo "$as_me:$LINENO: result: no" >&5 |
| 10734 | echo "${ECHO_T}no" >&6 |
| 10735 | fi |
| 10736 | |
| 10737 | test -n "$INTLBISON" && break |
| 10738 | done |
| 10739 | |
| 10740 | if test -z "$INTLBISON"; then |
| 10741 | ac_verc_fail=yes |
| 10742 | else |
| 10743 | echo "$as_me:$LINENO: checking version of bison" >&5 |
| 10744 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6 |
| 10745 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 10746 | case $ac_prog_version in |
| 10747 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 10748 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 10749 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 10750 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 10751 | esac |
| 10752 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 10753 | echo "${ECHO_T}$ac_prog_version" >&6 |
| 10754 | fi |
| 10755 | if test $ac_verc_fail = yes; then |
| 10756 | INTLBISON=: |
| 10757 | fi |
| 10758 | |
| 10759 | |
| 10760 | |
| 10761 | |
| 10762 | |
| 10763 | |
| 10764 | |
| 10765 | |
| 10766 | |
| 10767 | |
| 10768 | |
| 10769 | |
| 10770 | |
| 10771 | |
| 10772 | |
| 10773 | |
| 10774 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10775 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 10776 | # Check whether --enable-nls or --disable-nls was given. |
| 10777 | if test "${enable_nls+set}" = set; then |
| 10778 | enableval="$enable_nls" |
| 10779 | USE_NLS=$enableval |
| 10780 | else |
| 10781 | USE_NLS=yes |
| 10782 | fi; |
| 10783 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10784 | echo "${ECHO_T}$USE_NLS" >&6 |
| 10785 | |
| 10786 | |
| 10787 | |
| 10788 | |
| 10789 | BUILD_INCLUDED_LIBINTL=no |
| 10790 | USE_INCLUDED_LIBINTL=no |
| 10791 | |
| 10792 | LIBINTL= |
| 10793 | LTLIBINTL= |
| 10794 | POSUB= |
| 10795 | |
| 10796 | if test "$USE_NLS" = "yes"; then |
| 10797 | gt_use_preinstalled_gnugettext=no |
| 10798 | |
| 10799 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 10800 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 |
| 10801 | |
| 10802 | # Check whether --with-included-gettext or --without-included-gettext was given. |
| 10803 | if test "${with_included_gettext+set}" = set; then |
| 10804 | withval="$with_included_gettext" |
| 10805 | nls_cv_force_use_gnu_gettext=$withval |
| 10806 | else |
| 10807 | nls_cv_force_use_gnu_gettext=no |
| 10808 | fi; |
| 10809 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 10810 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 |
| 10811 | |
| 10812 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10813 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
| 10814 | |
| 10815 | |
| 10816 | |
| 10817 | |
| 10818 | |
| 10819 | |
| 10820 | echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 10821 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 |
| 10822 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 10823 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10824 | else |
| 10825 | cat >conftest.$ac_ext <<_ACEOF |
| 10826 | /* confdefs.h. */ |
| 10827 | _ACEOF |
| 10828 | cat confdefs.h >>conftest.$ac_ext |
| 10829 | cat >>conftest.$ac_ext <<_ACEOF |
| 10830 | /* end confdefs.h. */ |
| 10831 | #include <libintl.h> |
| 10832 | extern int _nl_msg_cat_cntr; |
| 10833 | extern int *_nl_domain_bindings; |
| 10834 | int |
| 10835 | main () |
| 10836 | { |
| 10837 | bindtextdomain ("", ""); |
| 10838 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
| 10839 | ; |
| 10840 | return 0; |
| 10841 | } |
| 10842 | _ACEOF |
| 10843 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10845 | (eval $ac_link) 2>conftest.er1 |
| 10846 | ac_status=$? |
| 10847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10848 | rm -f conftest.er1 |
| 10849 | cat conftest.err >&5 |
| 10850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10851 | (exit $ac_status); } && |
| 10852 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 10853 | || test ! -s conftest.err' |
| 10854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10855 | (eval $ac_try) 2>&5 |
| 10856 | ac_status=$? |
| 10857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10858 | (exit $ac_status); }; } && |
| 10859 | { ac_try='test -s conftest$ac_exeext' |
| 10860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10861 | (eval $ac_try) 2>&5 |
| 10862 | ac_status=$? |
| 10863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10864 | (exit $ac_status); }; }; then |
| 10865 | gt_cv_func_gnugettext1_libc=yes |
| 10866 | else |
| 10867 | echo "$as_me: failed program was:" >&5 |
| 10868 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10869 | |
| 10870 | gt_cv_func_gnugettext1_libc=no |
| 10871 | fi |
| 10872 | rm -f conftest.err conftest.$ac_objext \ |
| 10873 | conftest$ac_exeext conftest.$ac_ext |
| 10874 | fi |
| 10875 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 10876 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 |
| 10877 | |
| 10878 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
| 10879 | |
| 10880 | |
| 10881 | |
| 10882 | use_additional=yes |
| 10883 | |
| 10884 | acl_save_prefix="$prefix" |
| 10885 | prefix="$acl_final_prefix" |
| 10886 | acl_save_exec_prefix="$exec_prefix" |
| 10887 | exec_prefix="$acl_final_exec_prefix" |
| 10888 | |
| 10889 | eval additional_includedir=\"$includedir\" |
| 10890 | eval additional_libdir=\"$libdir\" |
| 10891 | |
| 10892 | exec_prefix="$acl_save_exec_prefix" |
| 10893 | prefix="$acl_save_prefix" |
| 10894 | |
| 10895 | |
| 10896 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
| 10897 | if test "${with_libintl_prefix+set}" = set; then |
| 10898 | withval="$with_libintl_prefix" |
| 10899 | |
| 10900 | if test "X$withval" = "Xno"; then |
| 10901 | use_additional=no |
| 10902 | else |
| 10903 | if test "X$withval" = "X"; then |
| 10904 | |
| 10905 | acl_save_prefix="$prefix" |
| 10906 | prefix="$acl_final_prefix" |
| 10907 | acl_save_exec_prefix="$exec_prefix" |
| 10908 | exec_prefix="$acl_final_exec_prefix" |
| 10909 | |
| 10910 | eval additional_includedir=\"$includedir\" |
| 10911 | eval additional_libdir=\"$libdir\" |
| 10912 | |
| 10913 | exec_prefix="$acl_save_exec_prefix" |
| 10914 | prefix="$acl_save_prefix" |
| 10915 | |
| 10916 | else |
| 10917 | additional_includedir="$withval/include" |
| 10918 | additional_libdir="$withval/lib" |
| 10919 | fi |
| 10920 | fi |
| 10921 | |
| 10922 | fi; |
| 10923 | LIBINTL= |
| 10924 | LTLIBINTL= |
| 10925 | INCINTL= |
| 10926 | rpathdirs= |
| 10927 | ltrpathdirs= |
| 10928 | names_already_handled= |
| 10929 | names_next_round='intl ' |
| 10930 | while test -n "$names_next_round"; do |
| 10931 | names_this_round="$names_next_round" |
| 10932 | names_next_round= |
| 10933 | for name in $names_this_round; do |
| 10934 | already_handled= |
| 10935 | for n in $names_already_handled; do |
| 10936 | if test "$n" = "$name"; then |
| 10937 | already_handled=yes |
| 10938 | break |
| 10939 | fi |
| 10940 | done |
| 10941 | if test -z "$already_handled"; then |
| 10942 | names_already_handled="$names_already_handled $name" |
| 10943 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10944 | eval value=\"\$HAVE_LIB$uppername\" |
| 10945 | if test -n "$value"; then |
| 10946 | if test "$value" = yes; then |
| 10947 | eval value=\"\$LIB$uppername\" |
| 10948 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10949 | eval value=\"\$LTLIB$uppername\" |
| 10950 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10951 | else |
| 10952 | : |
| 10953 | fi |
| 10954 | else |
| 10955 | found_dir= |
| 10956 | found_la= |
| 10957 | found_so= |
| 10958 | found_a= |
| 10959 | if test $use_additional = yes; then |
| 10960 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10961 | found_dir="$additional_libdir" |
| 10962 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10963 | if test -f "$additional_libdir/lib$name.la"; then |
| 10964 | found_la="$additional_libdir/lib$name.la" |
| 10965 | fi |
| 10966 | else |
| 10967 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10968 | found_dir="$additional_libdir" |
| 10969 | found_a="$additional_libdir/lib$name.$libext" |
| 10970 | if test -f "$additional_libdir/lib$name.la"; then |
| 10971 | found_la="$additional_libdir/lib$name.la" |
| 10972 | fi |
| 10973 | fi |
| 10974 | fi |
| 10975 | fi |
| 10976 | if test "X$found_dir" = "X"; then |
| 10977 | for x in $LDFLAGS $LTLIBINTL; do |
| 10978 | |
| 10979 | acl_save_prefix="$prefix" |
| 10980 | prefix="$acl_final_prefix" |
| 10981 | acl_save_exec_prefix="$exec_prefix" |
| 10982 | exec_prefix="$acl_final_exec_prefix" |
| 10983 | eval x=\"$x\" |
| 10984 | exec_prefix="$acl_save_exec_prefix" |
| 10985 | prefix="$acl_save_prefix" |
| 10986 | |
| 10987 | case "$x" in |
| 10988 | -L*) |
| 10989 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10990 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10991 | found_dir="$dir" |
| 10992 | found_so="$dir/lib$name.$shlibext" |
| 10993 | if test -f "$dir/lib$name.la"; then |
| 10994 | found_la="$dir/lib$name.la" |
| 10995 | fi |
| 10996 | else |
| 10997 | if test -f "$dir/lib$name.$libext"; then |
| 10998 | found_dir="$dir" |
| 10999 | found_a="$dir/lib$name.$libext" |
| 11000 | if test -f "$dir/lib$name.la"; then |
| 11001 | found_la="$dir/lib$name.la" |
| 11002 | fi |
| 11003 | fi |
| 11004 | fi |
| 11005 | ;; |
| 11006 | esac |
| 11007 | if test "X$found_dir" != "X"; then |
| 11008 | break |
| 11009 | fi |
| 11010 | done |
| 11011 | fi |
| 11012 | if test "X$found_dir" != "X"; then |
| 11013 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 11014 | if test "X$found_so" != "X"; then |
| 11015 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 11016 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11017 | else |
| 11018 | haveit= |
| 11019 | for x in $ltrpathdirs; do |
| 11020 | if test "X$x" = "X$found_dir"; then |
| 11021 | haveit=yes |
| 11022 | break |
| 11023 | fi |
| 11024 | done |
| 11025 | if test -z "$haveit"; then |
| 11026 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 11027 | fi |
| 11028 | if test "$hardcode_direct" = yes; then |
| 11029 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11030 | else |
| 11031 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 11032 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11033 | haveit= |
| 11034 | for x in $rpathdirs; do |
| 11035 | if test "X$x" = "X$found_dir"; then |
| 11036 | haveit=yes |
| 11037 | break |
| 11038 | fi |
| 11039 | done |
| 11040 | if test -z "$haveit"; then |
| 11041 | rpathdirs="$rpathdirs $found_dir" |
| 11042 | fi |
| 11043 | else |
| 11044 | haveit= |
| 11045 | for x in $LDFLAGS $LIBINTL; do |
| 11046 | |
| 11047 | acl_save_prefix="$prefix" |
| 11048 | prefix="$acl_final_prefix" |
| 11049 | acl_save_exec_prefix="$exec_prefix" |
| 11050 | exec_prefix="$acl_final_exec_prefix" |
| 11051 | eval x=\"$x\" |
| 11052 | exec_prefix="$acl_save_exec_prefix" |
| 11053 | prefix="$acl_save_prefix" |
| 11054 | |
| 11055 | if test "X$x" = "X-L$found_dir"; then |
| 11056 | haveit=yes |
| 11057 | break |
| 11058 | fi |
| 11059 | done |
| 11060 | if test -z "$haveit"; then |
| 11061 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 11062 | fi |
| 11063 | if test "$hardcode_minus_L" != no; then |
| 11064 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 11065 | else |
| 11066 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11067 | fi |
| 11068 | fi |
| 11069 | fi |
| 11070 | fi |
| 11071 | else |
| 11072 | if test "X$found_a" != "X"; then |
| 11073 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 11074 | else |
| 11075 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 11076 | fi |
| 11077 | fi |
| 11078 | additional_includedir= |
| 11079 | case "$found_dir" in |
| 11080 | */lib | */lib/) |
| 11081 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 11082 | additional_includedir="$basedir/include" |
| 11083 | ;; |
| 11084 | esac |
| 11085 | if test "X$additional_includedir" != "X"; then |
| 11086 | if test "X$additional_includedir" != "X/usr/include"; then |
| 11087 | haveit= |
| 11088 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 11089 | if test -n "$GCC"; then |
| 11090 | case $host_os in |
| 11091 | linux*) haveit=yes;; |
| 11092 | esac |
| 11093 | fi |
| 11094 | fi |
| 11095 | if test -z "$haveit"; then |
| 11096 | for x in $CPPFLAGS $INCINTL; do |
| 11097 | |
| 11098 | acl_save_prefix="$prefix" |
| 11099 | prefix="$acl_final_prefix" |
| 11100 | acl_save_exec_prefix="$exec_prefix" |
| 11101 | exec_prefix="$acl_final_exec_prefix" |
| 11102 | eval x=\"$x\" |
| 11103 | exec_prefix="$acl_save_exec_prefix" |
| 11104 | prefix="$acl_save_prefix" |
| 11105 | |
| 11106 | if test "X$x" = "X-I$additional_includedir"; then |
| 11107 | haveit=yes |
| 11108 | break |
| 11109 | fi |
| 11110 | done |
| 11111 | if test -z "$haveit"; then |
| 11112 | if test -d "$additional_includedir"; then |
| 11113 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 11114 | fi |
| 11115 | fi |
| 11116 | fi |
| 11117 | fi |
| 11118 | fi |
| 11119 | if test -n "$found_la"; then |
| 11120 | save_libdir="$libdir" |
| 11121 | case "$found_la" in |
| 11122 | */* | *\\*) . "$found_la" ;; |
| 11123 | *) . "./$found_la" ;; |
| 11124 | esac |
| 11125 | libdir="$save_libdir" |
| 11126 | for dep in $dependency_libs; do |
| 11127 | case "$dep" in |
| 11128 | -L*) |
| 11129 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 11130 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 11131 | haveit= |
| 11132 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 11133 | if test -n "$GCC"; then |
| 11134 | case $host_os in |
| 11135 | linux*) haveit=yes;; |
| 11136 | esac |
| 11137 | fi |
| 11138 | fi |
| 11139 | if test -z "$haveit"; then |
| 11140 | haveit= |
| 11141 | for x in $LDFLAGS $LIBINTL; do |
| 11142 | |
| 11143 | acl_save_prefix="$prefix" |
| 11144 | prefix="$acl_final_prefix" |
| 11145 | acl_save_exec_prefix="$exec_prefix" |
| 11146 | exec_prefix="$acl_final_exec_prefix" |
| 11147 | eval x=\"$x\" |
| 11148 | exec_prefix="$acl_save_exec_prefix" |
| 11149 | prefix="$acl_save_prefix" |
| 11150 | |
| 11151 | if test "X$x" = "X-L$additional_libdir"; then |
| 11152 | haveit=yes |
| 11153 | break |
| 11154 | fi |
| 11155 | done |
| 11156 | if test -z "$haveit"; then |
| 11157 | if test -d "$additional_libdir"; then |
| 11158 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 11159 | fi |
| 11160 | fi |
| 11161 | haveit= |
| 11162 | for x in $LDFLAGS $LTLIBINTL; do |
| 11163 | |
| 11164 | acl_save_prefix="$prefix" |
| 11165 | prefix="$acl_final_prefix" |
| 11166 | acl_save_exec_prefix="$exec_prefix" |
| 11167 | exec_prefix="$acl_final_exec_prefix" |
| 11168 | eval x=\"$x\" |
| 11169 | exec_prefix="$acl_save_exec_prefix" |
| 11170 | prefix="$acl_save_prefix" |
| 11171 | |
| 11172 | if test "X$x" = "X-L$additional_libdir"; then |
| 11173 | haveit=yes |
| 11174 | break |
| 11175 | fi |
| 11176 | done |
| 11177 | if test -z "$haveit"; then |
| 11178 | if test -d "$additional_libdir"; then |
| 11179 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 11180 | fi |
| 11181 | fi |
| 11182 | fi |
| 11183 | fi |
| 11184 | ;; |
| 11185 | -R*) |
| 11186 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 11187 | if test "$enable_rpath" != no; then |
| 11188 | haveit= |
| 11189 | for x in $rpathdirs; do |
| 11190 | if test "X$x" = "X$dir"; then |
| 11191 | haveit=yes |
| 11192 | break |
| 11193 | fi |
| 11194 | done |
| 11195 | if test -z "$haveit"; then |
| 11196 | rpathdirs="$rpathdirs $dir" |
| 11197 | fi |
| 11198 | haveit= |
| 11199 | for x in $ltrpathdirs; do |
| 11200 | if test "X$x" = "X$dir"; then |
| 11201 | haveit=yes |
| 11202 | break |
| 11203 | fi |
| 11204 | done |
| 11205 | if test -z "$haveit"; then |
| 11206 | ltrpathdirs="$ltrpathdirs $dir" |
| 11207 | fi |
| 11208 | fi |
| 11209 | ;; |
| 11210 | -l*) |
| 11211 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 11212 | ;; |
| 11213 | *.la) |
| 11214 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 11215 | ;; |
| 11216 | *) |
| 11217 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 11218 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 11219 | ;; |
| 11220 | esac |
| 11221 | done |
| 11222 | fi |
| 11223 | else |
| 11224 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 11225 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 11226 | fi |
| 11227 | fi |
| 11228 | fi |
| 11229 | done |
| 11230 | done |
| 11231 | if test "X$rpathdirs" != "X"; then |
| 11232 | if test -n "$hardcode_libdir_separator"; then |
| 11233 | alldirs= |
| 11234 | for found_dir in $rpathdirs; do |
| 11235 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 11236 | done |
| 11237 | acl_save_libdir="$libdir" |
| 11238 | libdir="$alldirs" |
| 11239 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11240 | libdir="$acl_save_libdir" |
| 11241 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11242 | else |
| 11243 | for found_dir in $rpathdirs; do |
| 11244 | acl_save_libdir="$libdir" |
| 11245 | libdir="$found_dir" |
| 11246 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 11247 | libdir="$acl_save_libdir" |
| 11248 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 11249 | done |
| 11250 | fi |
| 11251 | fi |
| 11252 | if test "X$ltrpathdirs" != "X"; then |
| 11253 | for found_dir in $ltrpathdirs; do |
| 11254 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 11255 | done |
| 11256 | fi |
| 11257 | |
| 11258 | echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 11259 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 |
| 11260 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 11261 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11262 | else |
| 11263 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 11264 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 11265 | gt_save_LIBS="$LIBS" |
| 11266 | LIBS="$LIBS $LIBINTL" |
| 11267 | cat >conftest.$ac_ext <<_ACEOF |
| 11268 | /* confdefs.h. */ |
| 11269 | _ACEOF |
| 11270 | cat confdefs.h >>conftest.$ac_ext |
| 11271 | cat >>conftest.$ac_ext <<_ACEOF |
| 11272 | /* end confdefs.h. */ |
| 11273 | #include <libintl.h> |
| 11274 | extern int _nl_msg_cat_cntr; |
| 11275 | extern |
| 11276 | #ifdef __cplusplus |
| 11277 | "C" |
| 11278 | #endif |
| 11279 | const char *_nl_expand_alias (); |
| 11280 | int |
| 11281 | main () |
| 11282 | { |
| 11283 | bindtextdomain ("", ""); |
| 11284 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 11285 | ; |
| 11286 | return 0; |
| 11287 | } |
| 11288 | _ACEOF |
| 11289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11291 | (eval $ac_link) 2>conftest.er1 |
| 11292 | ac_status=$? |
| 11293 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11294 | rm -f conftest.er1 |
| 11295 | cat conftest.err >&5 |
| 11296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11297 | (exit $ac_status); } && |
| 11298 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11299 | || test ! -s conftest.err' |
| 11300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11301 | (eval $ac_try) 2>&5 |
| 11302 | ac_status=$? |
| 11303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11304 | (exit $ac_status); }; } && |
| 11305 | { ac_try='test -s conftest$ac_exeext' |
| 11306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11307 | (eval $ac_try) 2>&5 |
| 11308 | ac_status=$? |
| 11309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11310 | (exit $ac_status); }; }; then |
| 11311 | gt_cv_func_gnugettext1_libintl=yes |
| 11312 | else |
| 11313 | echo "$as_me: failed program was:" >&5 |
| 11314 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11315 | |
| 11316 | gt_cv_func_gnugettext1_libintl=no |
| 11317 | fi |
| 11318 | rm -f conftest.err conftest.$ac_objext \ |
| 11319 | conftest$ac_exeext conftest.$ac_ext |
| 11320 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 11321 | LIBS="$LIBS $LIBICONV" |
| 11322 | cat >conftest.$ac_ext <<_ACEOF |
| 11323 | /* confdefs.h. */ |
| 11324 | _ACEOF |
| 11325 | cat confdefs.h >>conftest.$ac_ext |
| 11326 | cat >>conftest.$ac_ext <<_ACEOF |
| 11327 | /* end confdefs.h. */ |
| 11328 | #include <libintl.h> |
| 11329 | extern int _nl_msg_cat_cntr; |
| 11330 | extern |
| 11331 | #ifdef __cplusplus |
| 11332 | "C" |
| 11333 | #endif |
| 11334 | const char *_nl_expand_alias (); |
| 11335 | int |
| 11336 | main () |
| 11337 | { |
| 11338 | bindtextdomain ("", ""); |
| 11339 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
| 11340 | ; |
| 11341 | return 0; |
| 11342 | } |
| 11343 | _ACEOF |
| 11344 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11346 | (eval $ac_link) 2>conftest.er1 |
| 11347 | ac_status=$? |
| 11348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11349 | rm -f conftest.er1 |
| 11350 | cat conftest.err >&5 |
| 11351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11352 | (exit $ac_status); } && |
| 11353 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 11354 | || test ! -s conftest.err' |
| 11355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11356 | (eval $ac_try) 2>&5 |
| 11357 | ac_status=$? |
| 11358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11359 | (exit $ac_status); }; } && |
| 11360 | { ac_try='test -s conftest$ac_exeext' |
| 11361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11362 | (eval $ac_try) 2>&5 |
| 11363 | ac_status=$? |
| 11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11365 | (exit $ac_status); }; }; then |
| 11366 | LIBINTL="$LIBINTL $LIBICONV" |
| 11367 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 11368 | gt_cv_func_gnugettext1_libintl=yes |
| 11369 | |
| 11370 | else |
| 11371 | echo "$as_me: failed program was:" >&5 |
| 11372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11373 | |
| 11374 | fi |
| 11375 | rm -f conftest.err conftest.$ac_objext \ |
| 11376 | conftest$ac_exeext conftest.$ac_ext |
| 11377 | fi |
| 11378 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 11379 | LIBS="$gt_save_LIBS" |
| 11380 | fi |
| 11381 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 11382 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 |
| 11383 | fi |
| 11384 | |
| 11385 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 11386 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 11387 | && test "$PACKAGE" != gettext-runtime \ |
| 11388 | && test "$PACKAGE" != gettext-tools; }; then |
| 11389 | gt_use_preinstalled_gnugettext=yes |
| 11390 | else |
| 11391 | LIBINTL= |
| 11392 | LTLIBINTL= |
| 11393 | INCINTL= |
| 11394 | fi |
| 11395 | |
| 11396 | |
| 11397 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 11398 | nls_cv_use_gnu_gettext=yes |
| 11399 | fi |
| 11400 | fi |
| 11401 | |
| 11402 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11403 | BUILD_INCLUDED_LIBINTL=yes |
| 11404 | USE_INCLUDED_LIBINTL=yes |
| 11405 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 11406 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 11407 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
| 11408 | fi |
| 11409 | |
| 11410 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11411 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11412 | CATOBJEXT=.gmo |
| 11413 | fi |
| 11414 | |
| 11415 | |
| 11416 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 11417 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 11418 | |
| 11419 | cat >>confdefs.h <<\_ACEOF |
| 11420 | #define ENABLE_NLS 1 |
| 11421 | _ACEOF |
| 11422 | |
| 11423 | else |
| 11424 | USE_NLS=no |
| 11425 | fi |
| 11426 | fi |
| 11427 | |
| 11428 | echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 11429 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 |
| 11430 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 11431 | echo "${ECHO_T}$USE_NLS" >&6 |
| 11432 | if test "$USE_NLS" = "yes"; then |
| 11433 | echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 11434 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 |
| 11435 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11436 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 11437 | gt_source="external libintl" |
| 11438 | else |
| 11439 | gt_source="libc" |
| 11440 | fi |
| 11441 | else |
| 11442 | gt_source="included intl directory" |
| 11443 | fi |
| 11444 | echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 11445 | echo "${ECHO_T}$gt_source" >&6 |
| 11446 | fi |
| 11447 | |
| 11448 | if test "$USE_NLS" = "yes"; then |
| 11449 | |
| 11450 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 11451 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 11452 | echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 11453 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 |
| 11454 | echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 11455 | echo "${ECHO_T}$LIBINTL" >&6 |
| 11456 | |
| 11457 | for element in $INCINTL; do |
| 11458 | haveit= |
| 11459 | for x in $CPPFLAGS; do |
| 11460 | |
| 11461 | acl_save_prefix="$prefix" |
| 11462 | prefix="$acl_final_prefix" |
| 11463 | acl_save_exec_prefix="$exec_prefix" |
| 11464 | exec_prefix="$acl_final_exec_prefix" |
| 11465 | eval x=\"$x\" |
| 11466 | exec_prefix="$acl_save_exec_prefix" |
| 11467 | prefix="$acl_save_prefix" |
| 11468 | |
| 11469 | if test "X$x" = "X$element"; then |
| 11470 | haveit=yes |
| 11471 | break |
| 11472 | fi |
| 11473 | done |
| 11474 | if test -z "$haveit"; then |
| 11475 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 11476 | fi |
| 11477 | done |
| 11478 | |
| 11479 | fi |
| 11480 | |
| 11481 | |
| 11482 | cat >>confdefs.h <<\_ACEOF |
| 11483 | #define HAVE_GETTEXT 1 |
| 11484 | _ACEOF |
| 11485 | |
| 11486 | |
| 11487 | cat >>confdefs.h <<\_ACEOF |
| 11488 | #define HAVE_DCGETTEXT 1 |
| 11489 | _ACEOF |
| 11490 | |
| 11491 | fi |
| 11492 | |
| 11493 | POSUB=po |
| 11494 | fi |
| 11495 | |
| 11496 | |
| 11497 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
| 11498 | BUILD_INCLUDED_LIBINTL=yes |
| 11499 | fi |
| 11500 | |
| 11501 | |
| 11502 | |
| 11503 | |
| 11504 | |
| 11505 | nls_cv_header_intl= |
| 11506 | nls_cv_header_libgt= |
| 11507 | |
| 11508 | DATADIRNAME=share |
| 11509 | |
| 11510 | |
| 11511 | INSTOBJEXT=.mo |
| 11512 | |
| 11513 | |
| 11514 | GENCAT=gencat |
| 11515 | |
| 11516 | |
| 11517 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 11518 | INTLOBJS="\$(GETTOBJS)" |
| 11519 | fi |
| 11520 | |
| 11521 | |
| 11522 | INTL_LIBTOOL_SUFFIX_PREFIX= |
| 11523 | |
| 11524 | |
| 11525 | |
| 11526 | INTLLIBS="$LIBINTL" |
| 11527 | |
| 11528 | |
| 11529 | |
| 11530 | |
| 11531 | |
| 11532 | |
| 11533 | |
| 11534 | BOILERPLATE=boilerplate.mk |
| 11535 | |
| 11536 | if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then |
| 11537 | if sh -c "vncmkdepend" >/dev/null 2>&1; then |
| 11538 | BOILERPLATE="$BOILERPLATE:depend.mk" |
| 11539 | fi |
| 11540 | fi |
| 11541 | |
Constantin Kaplinsky | 97ac555 | 2006-06-02 04:13:14 +0000 | [diff] [blame] | 11542 | ac_config_files="$ac_config_files Makefile:common.mk:Makefile.in:$BOILERPLATE tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE intl/Makefile po/Makefile.in" |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 11543 | cat >confcache <<\_ACEOF |
| 11544 | # This file is a shell script that caches the results of configure |
| 11545 | # tests run on this system so they can be shared between configure |
| 11546 | # scripts and configure runs, see configure's option --config-cache. |
| 11547 | # It is not useful on other systems. If it contains results you don't |
| 11548 | # want to keep, you may remove or edit it. |
| 11549 | # |
| 11550 | # config.status only pays attention to the cache file if you give it |
| 11551 | # the --recheck option to rerun configure. |
| 11552 | # |
| 11553 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11554 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11555 | # following values. |
| 11556 | |
| 11557 | _ACEOF |
| 11558 | |
| 11559 | # The following way of writing the cache mishandles newlines in values, |
| 11560 | # but we know of no workaround that is simple, portable, and efficient. |
| 11561 | # So, don't put newlines in cache variables' values. |
| 11562 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11563 | # and sets the high bit in the cache file unless we assign to the vars. |
| 11564 | { |
| 11565 | (set) 2>&1 | |
| 11566 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 11567 | *ac_space=\ *) |
| 11568 | # `set' does not quote correctly, so add quotes (double-quote |
| 11569 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 11570 | sed -n \ |
| 11571 | "s/'/'\\\\''/g; |
| 11572 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 11573 | ;; |
| 11574 | *) |
| 11575 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 11576 | sed -n \ |
| 11577 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 11578 | ;; |
| 11579 | esac; |
| 11580 | } | |
| 11581 | sed ' |
| 11582 | t clear |
| 11583 | : clear |
| 11584 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11585 | t end |
| 11586 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11587 | : end' >>confcache |
| 11588 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 11589 | if test -w $cache_file; then |
| 11590 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 11591 | cat confcache >$cache_file |
| 11592 | else |
| 11593 | echo "not updating unwritable cache $cache_file" |
| 11594 | fi |
| 11595 | fi |
| 11596 | rm -f confcache |
| 11597 | |
| 11598 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11599 | # Let make expand exec_prefix. |
| 11600 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11601 | |
| 11602 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 11603 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 11604 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 11605 | # (actually we leave an empty line to preserve line numbers). |
| 11606 | if test "x$srcdir" = x.; then |
| 11607 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 11608 | s/:*\$(srcdir):*/:/; |
| 11609 | s/:*\${srcdir}:*/:/; |
| 11610 | s/:*@srcdir@:*/:/; |
| 11611 | s/^\([^=]*=[ ]*\):*/\1/; |
| 11612 | s/:*$//; |
| 11613 | s/^[^=]*=[ ]*$//; |
| 11614 | }' |
| 11615 | fi |
| 11616 | |
| 11617 | # Transform confdefs.h into DEFS. |
| 11618 | # Protect against shell expansion while executing Makefile rules. |
| 11619 | # Protect against Makefile macro expansion. |
| 11620 | # |
| 11621 | # If the first sed substitution is executed (which looks for macros that |
| 11622 | # take arguments), then we branch to the quote section. Otherwise, |
| 11623 | # look for a macro that doesn't take arguments. |
| 11624 | cat >confdef2opt.sed <<\_ACEOF |
| 11625 | t clear |
| 11626 | : clear |
| 11627 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
| 11628 | t quote |
| 11629 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
| 11630 | t quote |
| 11631 | d |
| 11632 | : quote |
| 11633 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
| 11634 | s,\[,\\&,g |
| 11635 | s,\],\\&,g |
| 11636 | s,\$,$$,g |
| 11637 | p |
| 11638 | _ACEOF |
| 11639 | # We use echo to avoid assuming a particular line-breaking character. |
| 11640 | # The extra dot is to prevent the shell from consuming trailing |
| 11641 | # line-breaks from the sub-command output. A line-break within |
| 11642 | # single-quotes doesn't work because, if this script is created in a |
| 11643 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
| 11644 | # would break. |
| 11645 | ac_LF_and_DOT=`echo; echo .` |
| 11646 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 11647 | rm -f confdef2opt.sed |
| 11648 | |
| 11649 | |
| 11650 | ac_libobjs= |
| 11651 | ac_ltlibobjs= |
| 11652 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11653 | # 1. Remove the extension, and $U if already installed. |
| 11654 | ac_i=`echo "$ac_i" | |
| 11655 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 11656 | # 2. Add them. |
| 11657 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 11658 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 11659 | done |
| 11660 | LIBOBJS=$ac_libobjs |
| 11661 | |
| 11662 | LTLIBOBJS=$ac_ltlibobjs |
| 11663 | |
| 11664 | |
| 11665 | |
| 11666 | : ${CONFIG_STATUS=./config.status} |
| 11667 | ac_clean_files_save=$ac_clean_files |
| 11668 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 11669 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 11670 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11671 | cat >$CONFIG_STATUS <<_ACEOF |
| 11672 | #! $SHELL |
| 11673 | # Generated by $as_me. |
| 11674 | # Run this file to recreate the current configuration. |
| 11675 | # Compiler output produced by configure, useful for debugging |
| 11676 | # configure, is in config.log if it exists. |
| 11677 | |
| 11678 | debug=false |
| 11679 | ac_cs_recheck=false |
| 11680 | ac_cs_silent=false |
| 11681 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11682 | _ACEOF |
| 11683 | |
| 11684 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11685 | ## --------------------- ## |
| 11686 | ## M4sh Initialization. ## |
| 11687 | ## --------------------- ## |
| 11688 | |
| 11689 | # Be Bourne compatible |
| 11690 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 11691 | emulate sh |
| 11692 | NULLCMD=: |
| 11693 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 11694 | # is contrary to our usage. Disable this feature. |
| 11695 | alias -g '${1+"$@"}'='"$@"' |
| 11696 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 11697 | set -o posix |
| 11698 | fi |
| 11699 | DUALCASE=1; export DUALCASE # for MKS sh |
| 11700 | |
| 11701 | # Support unset when possible. |
| 11702 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 11703 | as_unset=unset |
| 11704 | else |
| 11705 | as_unset=false |
| 11706 | fi |
| 11707 | |
| 11708 | |
| 11709 | # Work around bugs in pre-3.0 UWIN ksh. |
| 11710 | $as_unset ENV MAIL MAILPATH |
| 11711 | PS1='$ ' |
| 11712 | PS2='> ' |
| 11713 | PS4='+ ' |
| 11714 | |
| 11715 | # NLS nuisances. |
| 11716 | for as_var in \ |
| 11717 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 11718 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 11719 | LC_TELEPHONE LC_TIME |
| 11720 | do |
| 11721 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 11722 | eval $as_var=C; export $as_var |
| 11723 | else |
| 11724 | $as_unset $as_var |
| 11725 | fi |
| 11726 | done |
| 11727 | |
| 11728 | # Required to use basename. |
| 11729 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11730 | as_expr=expr |
| 11731 | else |
| 11732 | as_expr=false |
| 11733 | fi |
| 11734 | |
| 11735 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 11736 | as_basename=basename |
| 11737 | else |
| 11738 | as_basename=false |
| 11739 | fi |
| 11740 | |
| 11741 | |
| 11742 | # Name of the executable. |
| 11743 | as_me=`$as_basename "$0" || |
| 11744 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11745 | X"$0" : 'X\(//\)$' \| \ |
| 11746 | X"$0" : 'X\(/\)$' \| \ |
| 11747 | . : '\(.\)' 2>/dev/null || |
| 11748 | echo X/"$0" | |
| 11749 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 11750 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 11751 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 11752 | s/.*/./; q'` |
| 11753 | |
| 11754 | |
| 11755 | # PATH needs CR, and LINENO needs CR and PATH. |
| 11756 | # Avoid depending upon Character Ranges. |
| 11757 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11758 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11759 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11760 | as_cr_digits='0123456789' |
| 11761 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11762 | |
| 11763 | # The user is always right. |
| 11764 | if test "${PATH_SEPARATOR+set}" != set; then |
| 11765 | echo "#! /bin/sh" >conf$$.sh |
| 11766 | echo "exit 0" >>conf$$.sh |
| 11767 | chmod +x conf$$.sh |
| 11768 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 11769 | PATH_SEPARATOR=';' |
| 11770 | else |
| 11771 | PATH_SEPARATOR=: |
| 11772 | fi |
| 11773 | rm -f conf$$.sh |
| 11774 | fi |
| 11775 | |
| 11776 | |
| 11777 | as_lineno_1=$LINENO |
| 11778 | as_lineno_2=$LINENO |
| 11779 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11780 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11781 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 11782 | # Find who we are. Look in the path if we contain no path at all |
| 11783 | # relative or not. |
| 11784 | case $0 in |
| 11785 | *[\\/]* ) as_myself=$0 ;; |
| 11786 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11787 | for as_dir in $PATH |
| 11788 | do |
| 11789 | IFS=$as_save_IFS |
| 11790 | test -z "$as_dir" && as_dir=. |
| 11791 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11792 | done |
| 11793 | |
| 11794 | ;; |
| 11795 | esac |
| 11796 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11797 | # in which case we are not to be found in the path. |
| 11798 | if test "x$as_myself" = x; then |
| 11799 | as_myself=$0 |
| 11800 | fi |
| 11801 | if test ! -f "$as_myself"; then |
| 11802 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 11803 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 11804 | { (exit 1); exit 1; }; } |
| 11805 | fi |
| 11806 | case $CONFIG_SHELL in |
| 11807 | '') |
| 11808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11809 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 11810 | do |
| 11811 | IFS=$as_save_IFS |
| 11812 | test -z "$as_dir" && as_dir=. |
| 11813 | for as_base in sh bash ksh sh5; do |
| 11814 | case $as_dir in |
| 11815 | /*) |
| 11816 | if ("$as_dir/$as_base" -c ' |
| 11817 | as_lineno_1=$LINENO |
| 11818 | as_lineno_2=$LINENO |
| 11819 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 11820 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 11821 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 11822 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 11823 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 11824 | CONFIG_SHELL=$as_dir/$as_base |
| 11825 | export CONFIG_SHELL |
| 11826 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 11827 | fi;; |
| 11828 | esac |
| 11829 | done |
| 11830 | done |
| 11831 | ;; |
| 11832 | esac |
| 11833 | |
| 11834 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 11835 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 11836 | # line-number line before each line; the second 'sed' does the real |
| 11837 | # work. The second script uses 'N' to pair each line-number line |
| 11838 | # with the numbered line, and appends trailing '-' during |
| 11839 | # substitution so that $LINENO is not a special case at line end. |
| 11840 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 11841 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 11842 | sed '=' <$as_myself | |
| 11843 | sed ' |
| 11844 | N |
| 11845 | s,$,-, |
| 11846 | : loop |
| 11847 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 11848 | t loop |
| 11849 | s,-$,, |
| 11850 | s,^['$as_cr_digits']*\n,, |
| 11851 | ' >$as_me.lineno && |
| 11852 | chmod +x $as_me.lineno || |
| 11853 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 11854 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 11855 | { (exit 1); exit 1; }; } |
| 11856 | |
| 11857 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 11858 | # (the dirname of $[0] is not the place where we might find the |
| 11859 | # original and so on. Autoconf is especially sensible to this). |
| 11860 | . ./$as_me.lineno |
| 11861 | # Exit status is that of the last command. |
| 11862 | exit |
| 11863 | } |
| 11864 | |
| 11865 | |
| 11866 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 11867 | *c*,-n*) ECHO_N= ECHO_C=' |
| 11868 | ' ECHO_T=' ' ;; |
| 11869 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 11870 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 11871 | esac |
| 11872 | |
| 11873 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 11874 | as_expr=expr |
| 11875 | else |
| 11876 | as_expr=false |
| 11877 | fi |
| 11878 | |
| 11879 | rm -f conf$$ conf$$.exe conf$$.file |
| 11880 | echo >conf$$.file |
| 11881 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11882 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 11883 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 11884 | if test -f conf$$.exe; then |
| 11885 | # Don't use ln at all; we don't have any links |
| 11886 | as_ln_s='cp -p' |
| 11887 | else |
| 11888 | as_ln_s='ln -s' |
| 11889 | fi |
| 11890 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11891 | as_ln_s=ln |
| 11892 | else |
| 11893 | as_ln_s='cp -p' |
| 11894 | fi |
| 11895 | rm -f conf$$ conf$$.exe conf$$.file |
| 11896 | |
| 11897 | if mkdir -p . 2>/dev/null; then |
| 11898 | as_mkdir_p=: |
| 11899 | else |
| 11900 | test -d ./-p && rmdir ./-p |
| 11901 | as_mkdir_p=false |
| 11902 | fi |
| 11903 | |
| 11904 | as_executable_p="test -f" |
| 11905 | |
| 11906 | # Sed expression to map a string onto a valid CPP name. |
| 11907 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11908 | |
| 11909 | # Sed expression to map a string onto a valid variable name. |
| 11910 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11911 | |
| 11912 | |
| 11913 | # IFS |
| 11914 | # We need space, tab and new line, in precisely that order. |
| 11915 | as_nl=' |
| 11916 | ' |
| 11917 | IFS=" $as_nl" |
| 11918 | |
| 11919 | # CDPATH. |
| 11920 | $as_unset CDPATH |
| 11921 | |
| 11922 | exec 6>&1 |
| 11923 | |
| 11924 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 11925 | # report actual input values of CONFIG_FILES etc. instead of their |
| 11926 | # values after options handling. Logging --version etc. is OK. |
| 11927 | exec 5>>config.log |
| 11928 | { |
| 11929 | echo |
| 11930 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11931 | ## Running $as_me. ## |
| 11932 | _ASBOX |
| 11933 | } >&5 |
| 11934 | cat >&5 <<_CSEOF |
| 11935 | |
| 11936 | This file was extended by $as_me, which was |
| 11937 | generated by GNU Autoconf 2.59. Invocation command line was |
| 11938 | |
| 11939 | CONFIG_FILES = $CONFIG_FILES |
| 11940 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11941 | CONFIG_LINKS = $CONFIG_LINKS |
| 11942 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11943 | $ $0 $@ |
| 11944 | |
| 11945 | _CSEOF |
| 11946 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 11947 | echo >&5 |
| 11948 | _ACEOF |
| 11949 | |
| 11950 | # Files that config.status was made for. |
| 11951 | if test -n "$ac_config_files"; then |
| 11952 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 11953 | fi |
| 11954 | |
| 11955 | if test -n "$ac_config_headers"; then |
| 11956 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 11957 | fi |
| 11958 | |
| 11959 | if test -n "$ac_config_links"; then |
| 11960 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 11961 | fi |
| 11962 | |
| 11963 | if test -n "$ac_config_commands"; then |
| 11964 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 11965 | fi |
| 11966 | |
| 11967 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 11968 | |
| 11969 | ac_cs_usage="\ |
| 11970 | \`$as_me' instantiates files from templates according to the |
| 11971 | current configuration. |
| 11972 | |
| 11973 | Usage: $0 [OPTIONS] [FILE]... |
| 11974 | |
| 11975 | -h, --help print this help, then exit |
| 11976 | -V, --version print version number, then exit |
| 11977 | -q, --quiet do not print progress messages |
| 11978 | -d, --debug don't remove temporary files |
| 11979 | --recheck update $as_me by reconfiguring in the same conditions |
| 11980 | --file=FILE[:TEMPLATE] |
| 11981 | instantiate the configuration file FILE |
| 11982 | |
| 11983 | Configuration files: |
| 11984 | $config_files |
| 11985 | |
| 11986 | Configuration commands: |
| 11987 | $config_commands |
| 11988 | |
| 11989 | Report bugs to <bug-autoconf@gnu.org>." |
| 11990 | _ACEOF |
| 11991 | |
| 11992 | cat >>$CONFIG_STATUS <<_ACEOF |
| 11993 | ac_cs_version="\\ |
| 11994 | config.status |
| 11995 | configured by $0, generated by GNU Autoconf 2.59, |
| 11996 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 11997 | |
| 11998 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 11999 | This config.status script is free software; the Free Software Foundation |
| 12000 | gives unlimited permission to copy, distribute and modify it." |
| 12001 | srcdir=$srcdir |
| 12002 | INSTALL="$INSTALL" |
| 12003 | _ACEOF |
| 12004 | |
| 12005 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12006 | # If no file are specified by the user, then we need to provide default |
| 12007 | # value. By we need to know if files were specified by the user. |
| 12008 | ac_need_defaults=: |
| 12009 | while test $# != 0 |
| 12010 | do |
| 12011 | case $1 in |
| 12012 | --*=*) |
| 12013 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 12014 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 12015 | ac_shift=: |
| 12016 | ;; |
| 12017 | -*) |
| 12018 | ac_option=$1 |
| 12019 | ac_optarg=$2 |
| 12020 | ac_shift=shift |
| 12021 | ;; |
| 12022 | *) # This is not an option, so the user has probably given explicit |
| 12023 | # arguments. |
| 12024 | ac_option=$1 |
| 12025 | ac_need_defaults=false;; |
| 12026 | esac |
| 12027 | |
| 12028 | case $ac_option in |
| 12029 | # Handling of the options. |
| 12030 | _ACEOF |
| 12031 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12032 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 12033 | ac_cs_recheck=: ;; |
| 12034 | --version | --vers* | -V ) |
| 12035 | echo "$ac_cs_version"; exit 0 ;; |
| 12036 | --he | --h) |
| 12037 | # Conflict between --help and --header |
| 12038 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 12039 | Try \`$0 --help' for more information." >&5 |
| 12040 | echo "$as_me: error: ambiguous option: $1 |
| 12041 | Try \`$0 --help' for more information." >&2;} |
| 12042 | { (exit 1); exit 1; }; };; |
| 12043 | --help | --hel | -h ) |
| 12044 | echo "$ac_cs_usage"; exit 0 ;; |
| 12045 | --debug | --d* | -d ) |
| 12046 | debug=: ;; |
| 12047 | --file | --fil | --fi | --f ) |
| 12048 | $ac_shift |
| 12049 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 12050 | ac_need_defaults=false;; |
| 12051 | --header | --heade | --head | --hea ) |
| 12052 | $ac_shift |
| 12053 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 12054 | ac_need_defaults=false;; |
| 12055 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12056 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12057 | ac_cs_silent=: ;; |
| 12058 | |
| 12059 | # This is an error. |
| 12060 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 12061 | Try \`$0 --help' for more information." >&5 |
| 12062 | echo "$as_me: error: unrecognized option: $1 |
| 12063 | Try \`$0 --help' for more information." >&2;} |
| 12064 | { (exit 1); exit 1; }; } ;; |
| 12065 | |
| 12066 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 12067 | |
| 12068 | esac |
| 12069 | shift |
| 12070 | done |
| 12071 | |
| 12072 | ac_configure_extra_args= |
| 12073 | |
| 12074 | if $ac_cs_silent; then |
| 12075 | exec 6>/dev/null |
| 12076 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12077 | fi |
| 12078 | |
| 12079 | _ACEOF |
| 12080 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12081 | if \$ac_cs_recheck; then |
| 12082 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 12083 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 12084 | fi |
| 12085 | |
| 12086 | _ACEOF |
| 12087 | |
| 12088 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12089 | # |
| 12090 | # INIT-COMMANDS section. |
| 12091 | # |
| 12092 | |
| 12093 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 12094 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
| 12095 | # from automake. |
| 12096 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
| 12097 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 12098 | LINGUAS="${LINGUAS-%UNSET%}" |
| 12099 | |
| 12100 | |
| 12101 | _ACEOF |
| 12102 | |
| 12103 | |
| 12104 | |
| 12105 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12106 | for ac_config_target in $ac_config_targets |
| 12107 | do |
| 12108 | case "$ac_config_target" in |
| 12109 | # Handling of arguments. |
Constantin Kaplinsky | 97ac555 | 2006-06-02 04:13:14 +0000 | [diff] [blame] | 12110 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:common.mk:Makefile.in:$BOILERPLATE" ;; |
| 12111 | "tx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE" ;; |
| 12112 | "x0vncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE" ;; |
| 12113 | "vncviewer/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE" ;; |
| 12114 | "vncconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE" ;; |
| 12115 | "vncpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE" ;; |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 12116 | "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; |
| 12117 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 12118 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 12119 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 12120 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 12121 | { (exit 1); exit 1; }; };; |
| 12122 | esac |
| 12123 | done |
| 12124 | |
| 12125 | # If the user did not use the arguments to specify the items to instantiate, |
| 12126 | # then the envvar interface is used. Set only those that are not. |
| 12127 | # We use the long form for the default assignment because of an extremely |
| 12128 | # bizarre bug on SunOS 4.1.3. |
| 12129 | if $ac_need_defaults; then |
| 12130 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 12131 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12132 | fi |
| 12133 | |
| 12134 | # Have a temporary directory for convenience. Make it in the build tree |
| 12135 | # simply because there is no reason to put it here, and in addition, |
| 12136 | # creating and moving files from /tmp can sometimes cause problems. |
| 12137 | # Create a temporary directory, and hook for its removal unless debugging. |
| 12138 | $debug || |
| 12139 | { |
| 12140 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 12141 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 12142 | } |
| 12143 | |
| 12144 | # Create a (secure) tmp directory for tmp files. |
| 12145 | |
| 12146 | { |
| 12147 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 12148 | test -n "$tmp" && test -d "$tmp" |
| 12149 | } || |
| 12150 | { |
| 12151 | tmp=./confstat$$-$RANDOM |
| 12152 | (umask 077 && mkdir $tmp) |
| 12153 | } || |
| 12154 | { |
| 12155 | echo "$me: cannot create a temporary directory in ." >&2 |
| 12156 | { (exit 1); exit 1; } |
| 12157 | } |
| 12158 | |
| 12159 | _ACEOF |
| 12160 | |
| 12161 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12162 | |
| 12163 | # |
| 12164 | # CONFIG_FILES section. |
| 12165 | # |
| 12166 | |
| 12167 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 12168 | # This happens for instance when ./config.status config.h |
| 12169 | if test -n "\$CONFIG_FILES"; then |
| 12170 | # Protect against being on the right side of a sed subst in config.status. |
| 12171 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 12172 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 12173 | s,@SHELL@,$SHELL,;t t |
| 12174 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 12175 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 12176 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 12177 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 12178 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 12179 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 12180 | s,@exec_prefix@,$exec_prefix,;t t |
| 12181 | s,@prefix@,$prefix,;t t |
| 12182 | s,@program_transform_name@,$program_transform_name,;t t |
| 12183 | s,@bindir@,$bindir,;t t |
| 12184 | s,@sbindir@,$sbindir,;t t |
| 12185 | s,@libexecdir@,$libexecdir,;t t |
| 12186 | s,@datadir@,$datadir,;t t |
| 12187 | s,@sysconfdir@,$sysconfdir,;t t |
| 12188 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 12189 | s,@localstatedir@,$localstatedir,;t t |
| 12190 | s,@libdir@,$libdir,;t t |
| 12191 | s,@includedir@,$includedir,;t t |
| 12192 | s,@oldincludedir@,$oldincludedir,;t t |
| 12193 | s,@infodir@,$infodir,;t t |
| 12194 | s,@mandir@,$mandir,;t t |
| 12195 | s,@build_alias@,$build_alias,;t t |
| 12196 | s,@host_alias@,$host_alias,;t t |
| 12197 | s,@target_alias@,$target_alias,;t t |
| 12198 | s,@DEFS@,$DEFS,;t t |
| 12199 | s,@ECHO_C@,$ECHO_C,;t t |
| 12200 | s,@ECHO_N@,$ECHO_N,;t t |
| 12201 | s,@ECHO_T@,$ECHO_T,;t t |
| 12202 | s,@LIBS@,$LIBS,;t t |
| 12203 | s,@PACKAGE@,$PACKAGE,;t t |
| 12204 | s,@VERSION@,$VERSION,;t t |
| 12205 | s,@CC@,$CC,;t t |
| 12206 | s,@CFLAGS@,$CFLAGS,;t t |
| 12207 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 12208 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 12209 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 12210 | s,@EXEEXT@,$EXEEXT,;t t |
| 12211 | s,@OBJEXT@,$OBJEXT,;t t |
| 12212 | s,@CXX@,$CXX,;t t |
| 12213 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
| 12214 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
| 12215 | s,@RANLIB@,$RANLIB,;t t |
| 12216 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 12217 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 12218 | s,@MITSHM_DEFINE@,$MITSHM_DEFINE,;t t |
Constantin Kaplinsky | a874881 | 2007-09-05 09:29:06 +0000 | [diff] [blame^] | 12219 | s,@DMEDIA_LIB@,$DMEDIA_LIB,;t t |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 12220 | s,@CXXCPP@,$CXXCPP,;t t |
| 12221 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
| 12222 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
| 12223 | s,@X_LIBS@,$X_LIBS,;t t |
| 12224 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
| 12225 | s,@ZLIB_DIR@,$ZLIB_DIR,;t t |
| 12226 | s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t |
| 12227 | s,@ZLIB_LIB@,$ZLIB_LIB,;t t |
| 12228 | s,@JPEG_DIR@,$JPEG_DIR,;t t |
| 12229 | s,@JPEG_INCLUDE@,$JPEG_INCLUDE,;t t |
| 12230 | s,@JPEG_LIB@,$JPEG_LIB,;t t |
| 12231 | s,@VNCCONFIG_DIR@,$VNCCONFIG_DIR,;t t |
| 12232 | s,@XTEST_DEFINE@,$XTEST_DEFINE,;t t |
| 12233 | s,@XTEST_LIB@,$XTEST_LIB,;t t |
| 12234 | s,@READDISPLAY_DEFINE@,$READDISPLAY_DEFINE,;t t |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 12235 | s,@INET_LIB@,$INET_LIB,;t t |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 12236 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 12237 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 12238 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 12239 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
| 12240 | s,@USE_NLS@,$USE_NLS,;t t |
| 12241 | s,@MSGFMT@,$MSGFMT,;t t |
| 12242 | s,@GMSGFMT@,$GMSGFMT,;t t |
| 12243 | s,@XGETTEXT@,$XGETTEXT,;t t |
| 12244 | s,@MSGMERGE@,$MSGMERGE,;t t |
| 12245 | s,@build@,$build,;t t |
| 12246 | s,@build_cpu@,$build_cpu,;t t |
| 12247 | s,@build_vendor@,$build_vendor,;t t |
| 12248 | s,@build_os@,$build_os,;t t |
| 12249 | s,@host@,$host,;t t |
| 12250 | s,@host_cpu@,$host_cpu,;t t |
| 12251 | s,@host_vendor@,$host_vendor,;t t |
| 12252 | s,@host_os@,$host_os,;t t |
| 12253 | s,@EGREP@,$EGREP,;t t |
| 12254 | s,@ALLOCA@,$ALLOCA,;t t |
| 12255 | s,@GLIBC21@,$GLIBC21,;t t |
| 12256 | s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t |
| 12257 | s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t |
| 12258 | s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t |
| 12259 | s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t |
| 12260 | s,@LIBICONV@,$LIBICONV,;t t |
| 12261 | s,@LTLIBICONV@,$LTLIBICONV,;t t |
| 12262 | s,@INTLBISON@,$INTLBISON,;t t |
| 12263 | s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t |
| 12264 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t |
| 12265 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
| 12266 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
| 12267 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
| 12268 | s,@GENCAT@,$GENCAT,;t t |
| 12269 | s,@INTLOBJS@,$INTLOBJS,;t t |
| 12270 | s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t |
| 12271 | s,@INTLLIBS@,$INTLLIBS,;t t |
| 12272 | s,@LIBINTL@,$LIBINTL,;t t |
| 12273 | s,@LTLIBINTL@,$LTLIBINTL,;t t |
| 12274 | s,@POSUB@,$POSUB,;t t |
| 12275 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 12276 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 12277 | CEOF |
| 12278 | |
| 12279 | _ACEOF |
| 12280 | |
| 12281 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12282 | # Split the substitutions into bite-sized pieces for seds with |
| 12283 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 12284 | ac_max_sed_lines=48 |
| 12285 | ac_sed_frag=1 # Number of current file. |
| 12286 | ac_beg=1 # First line for current file. |
| 12287 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 12288 | ac_more_lines=: |
| 12289 | ac_sed_cmds= |
| 12290 | while $ac_more_lines; do |
| 12291 | if test $ac_beg -gt 1; then |
| 12292 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 12293 | else |
| 12294 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 12295 | fi |
| 12296 | if test ! -s $tmp/subs.frag; then |
| 12297 | ac_more_lines=false |
| 12298 | else |
| 12299 | # The purpose of the label and of the branching condition is to |
| 12300 | # speed up the sed processing (if there are no `@' at all, there |
| 12301 | # is no need to browse any of the substitutions). |
| 12302 | # These are the two extra sed commands mentioned above. |
| 12303 | (echo ':t |
| 12304 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 12305 | if test -z "$ac_sed_cmds"; then |
| 12306 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 12307 | else |
| 12308 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 12309 | fi |
| 12310 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 12311 | ac_beg=$ac_end |
| 12312 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 12313 | fi |
| 12314 | done |
| 12315 | if test -z "$ac_sed_cmds"; then |
| 12316 | ac_sed_cmds=cat |
| 12317 | fi |
| 12318 | fi # test -n "$CONFIG_FILES" |
| 12319 | |
| 12320 | _ACEOF |
| 12321 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12322 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 12323 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 12324 | case $ac_file in |
| 12325 | - | *:- | *:-:* ) # input from stdin |
| 12326 | cat >$tmp/stdin |
| 12327 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12328 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 12329 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12330 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 12331 | * ) ac_file_in=$ac_file.in ;; |
| 12332 | esac |
| 12333 | |
| 12334 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 12335 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 12336 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12337 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12338 | X"$ac_file" : 'X\(//\)$' \| \ |
| 12339 | X"$ac_file" : 'X\(/\)' \| \ |
| 12340 | . : '\(.\)' 2>/dev/null || |
| 12341 | echo X"$ac_file" | |
| 12342 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12343 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12344 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12345 | /^X\(\/\).*/{ s//\1/; q; } |
| 12346 | s/.*/./; q'` |
| 12347 | { if $as_mkdir_p; then |
| 12348 | mkdir -p "$ac_dir" |
| 12349 | else |
| 12350 | as_dir="$ac_dir" |
| 12351 | as_dirs= |
| 12352 | while test ! -d "$as_dir"; do |
| 12353 | as_dirs="$as_dir $as_dirs" |
| 12354 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 12355 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12356 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12357 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12358 | X"$as_dir" : 'X\(/\)' \| \ |
| 12359 | . : '\(.\)' 2>/dev/null || |
| 12360 | echo X"$as_dir" | |
| 12361 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12362 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12363 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12364 | /^X\(\/\).*/{ s//\1/; q; } |
| 12365 | s/.*/./; q'` |
| 12366 | done |
| 12367 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 12368 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 12369 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 12370 | { (exit 1); exit 1; }; }; } |
| 12371 | |
| 12372 | ac_builddir=. |
| 12373 | |
| 12374 | if test "$ac_dir" != .; then |
| 12375 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 12376 | # A "../" for each directory in $ac_dir_suffix. |
| 12377 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 12378 | else |
| 12379 | ac_dir_suffix= ac_top_builddir= |
| 12380 | fi |
| 12381 | |
| 12382 | case $srcdir in |
| 12383 | .) # No --srcdir option. We are building in place. |
| 12384 | ac_srcdir=. |
| 12385 | if test -z "$ac_top_builddir"; then |
| 12386 | ac_top_srcdir=. |
| 12387 | else |
| 12388 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 12389 | fi ;; |
| 12390 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 12391 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 12392 | ac_top_srcdir=$srcdir ;; |
| 12393 | *) # Relative path. |
| 12394 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 12395 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 12396 | esac |
| 12397 | |
| 12398 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 12399 | # the directories may not exist. |
| 12400 | case `pwd` in |
| 12401 | .) ac_abs_builddir="$ac_dir";; |
| 12402 | *) |
| 12403 | case "$ac_dir" in |
| 12404 | .) ac_abs_builddir=`pwd`;; |
| 12405 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 12406 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 12407 | esac;; |
| 12408 | esac |
| 12409 | case $ac_abs_builddir in |
| 12410 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12411 | *) |
| 12412 | case ${ac_top_builddir}. in |
| 12413 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 12414 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12415 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 12416 | esac;; |
| 12417 | esac |
| 12418 | case $ac_abs_builddir in |
| 12419 | .) ac_abs_srcdir=$ac_srcdir;; |
| 12420 | *) |
| 12421 | case $ac_srcdir in |
| 12422 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 12423 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 12424 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 12425 | esac;; |
| 12426 | esac |
| 12427 | case $ac_abs_builddir in |
| 12428 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12429 | *) |
| 12430 | case $ac_top_srcdir in |
| 12431 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 12432 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12433 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 12434 | esac;; |
| 12435 | esac |
| 12436 | |
| 12437 | |
| 12438 | case $INSTALL in |
| 12439 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 12440 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 12441 | esac |
| 12442 | |
| 12443 | if test x"$ac_file" != x-; then |
| 12444 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 12445 | echo "$as_me: creating $ac_file" >&6;} |
| 12446 | rm -f "$ac_file" |
| 12447 | fi |
| 12448 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12449 | # use $as_me), people would be surprised to read: |
| 12450 | # /* config.h. Generated by config.status. */ |
| 12451 | if test x"$ac_file" = x-; then |
| 12452 | configure_input= |
| 12453 | else |
| 12454 | configure_input="$ac_file. " |
| 12455 | fi |
| 12456 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 12457 | sed 's,.*/,,'` by configure." |
| 12458 | |
| 12459 | # First look for the input files in the build tree, otherwise in the |
| 12460 | # src tree. |
| 12461 | ac_file_inputs=`IFS=: |
| 12462 | for f in $ac_file_in; do |
| 12463 | case $f in |
| 12464 | -) echo $tmp/stdin ;; |
| 12465 | [\\/$]*) |
| 12466 | # Absolute (can't be DOS-style, as IFS=:) |
| 12467 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12468 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12469 | { (exit 1); exit 1; }; } |
| 12470 | echo "$f";; |
| 12471 | *) # Relative |
| 12472 | if test -f "$f"; then |
| 12473 | # Build tree |
| 12474 | echo "$f" |
| 12475 | elif test -f "$srcdir/$f"; then |
| 12476 | # Source tree |
| 12477 | echo "$srcdir/$f" |
| 12478 | else |
| 12479 | # /dev/null tree |
| 12480 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 12481 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12482 | { (exit 1); exit 1; }; } |
| 12483 | fi;; |
| 12484 | esac |
| 12485 | done` || { (exit 1); exit 1; } |
| 12486 | _ACEOF |
| 12487 | cat >>$CONFIG_STATUS <<_ACEOF |
| 12488 | sed "$ac_vpsub |
| 12489 | $extrasub |
| 12490 | _ACEOF |
| 12491 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12492 | :t |
| 12493 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 12494 | s,@configure_input@,$configure_input,;t t |
| 12495 | s,@srcdir@,$ac_srcdir,;t t |
| 12496 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 12497 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 12498 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 12499 | s,@builddir@,$ac_builddir,;t t |
| 12500 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 12501 | s,@top_builddir@,$ac_top_builddir,;t t |
| 12502 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 12503 | s,@INSTALL@,$ac_INSTALL,;t t |
| 12504 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 12505 | rm -f $tmp/stdin |
| 12506 | if test x"$ac_file" != x-; then |
| 12507 | mv $tmp/out $ac_file |
| 12508 | else |
| 12509 | cat $tmp/out |
| 12510 | rm -f $tmp/out |
| 12511 | fi |
| 12512 | |
| 12513 | done |
| 12514 | _ACEOF |
| 12515 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12516 | |
| 12517 | # |
| 12518 | # CONFIG_COMMANDS section. |
| 12519 | # |
| 12520 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 12521 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 12522 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 12523 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 12524 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12525 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 12526 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 12527 | X"$ac_dest" : 'X\(/\)' \| \ |
| 12528 | . : '\(.\)' 2>/dev/null || |
| 12529 | echo X"$ac_dest" | |
| 12530 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12531 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12532 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12533 | /^X\(\/\).*/{ s//\1/; q; } |
| 12534 | s/.*/./; q'` |
| 12535 | { if $as_mkdir_p; then |
| 12536 | mkdir -p "$ac_dir" |
| 12537 | else |
| 12538 | as_dir="$ac_dir" |
| 12539 | as_dirs= |
| 12540 | while test ! -d "$as_dir"; do |
| 12541 | as_dirs="$as_dir $as_dirs" |
| 12542 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 12543 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12544 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12545 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12546 | X"$as_dir" : 'X\(/\)' \| \ |
| 12547 | . : '\(.\)' 2>/dev/null || |
| 12548 | echo X"$as_dir" | |
| 12549 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 12550 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 12551 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 12552 | /^X\(\/\).*/{ s//\1/; q; } |
| 12553 | s/.*/./; q'` |
| 12554 | done |
| 12555 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 12556 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 12557 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 12558 | { (exit 1); exit 1; }; }; } |
| 12559 | |
| 12560 | ac_builddir=. |
| 12561 | |
| 12562 | if test "$ac_dir" != .; then |
| 12563 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 12564 | # A "../" for each directory in $ac_dir_suffix. |
| 12565 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 12566 | else |
| 12567 | ac_dir_suffix= ac_top_builddir= |
| 12568 | fi |
| 12569 | |
| 12570 | case $srcdir in |
| 12571 | .) # No --srcdir option. We are building in place. |
| 12572 | ac_srcdir=. |
| 12573 | if test -z "$ac_top_builddir"; then |
| 12574 | ac_top_srcdir=. |
| 12575 | else |
| 12576 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 12577 | fi ;; |
| 12578 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 12579 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 12580 | ac_top_srcdir=$srcdir ;; |
| 12581 | *) # Relative path. |
| 12582 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 12583 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 12584 | esac |
| 12585 | |
| 12586 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 12587 | # the directories may not exist. |
| 12588 | case `pwd` in |
| 12589 | .) ac_abs_builddir="$ac_dir";; |
| 12590 | *) |
| 12591 | case "$ac_dir" in |
| 12592 | .) ac_abs_builddir=`pwd`;; |
| 12593 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 12594 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 12595 | esac;; |
| 12596 | esac |
| 12597 | case $ac_abs_builddir in |
| 12598 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12599 | *) |
| 12600 | case ${ac_top_builddir}. in |
| 12601 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 12602 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 12603 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 12604 | esac;; |
| 12605 | esac |
| 12606 | case $ac_abs_builddir in |
| 12607 | .) ac_abs_srcdir=$ac_srcdir;; |
| 12608 | *) |
| 12609 | case $ac_srcdir in |
| 12610 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 12611 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 12612 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 12613 | esac;; |
| 12614 | esac |
| 12615 | case $ac_abs_builddir in |
| 12616 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12617 | *) |
| 12618 | case $ac_top_srcdir in |
| 12619 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 12620 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 12621 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 12622 | esac;; |
| 12623 | esac |
| 12624 | |
| 12625 | |
| 12626 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 12627 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 12628 | case $ac_dest in |
| 12629 | default-1 ) |
| 12630 | for ac_file in $CONFIG_FILES; do |
| 12631 | # Support "outfile[:infile[:infile...]]" |
| 12632 | case "$ac_file" in |
| 12633 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 12634 | esac |
| 12635 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12636 | case "$ac_file" in */Makefile.in) |
| 12637 | # Adjust a relative srcdir. |
| 12638 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12639 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12640 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12641 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12642 | # In autoconf-2.50 it is called $srcdir. |
| 12643 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12644 | case "$ac_given_srcdir" in |
| 12645 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12646 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12647 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12648 | esac |
| 12649 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12650 | rm -f "$ac_dir/POTFILES" |
| 12651 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12652 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 12653 | POMAKEFILEDEPS="POTFILES.in" |
| 12654 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
| 12655 | # on $ac_dir but don't depend on user-specified configuration |
| 12656 | # parameters. |
| 12657 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12658 | # The LINGUAS file contains the set of available languages. |
| 12659 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
| 12660 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12661 | fi |
| 12662 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12663 | # Hide the ALL_LINGUAS assigment from automake. |
| 12664 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 12665 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12666 | else |
| 12667 | # The set of available languages was given in configure.in. |
| 12668 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
| 12669 | fi |
| 12670 | # Compute POFILES |
| 12671 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12672 | # Compute UPDATEPOFILES |
| 12673 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12674 | # Compute DUMMYPOFILES |
| 12675 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12676 | # Compute GMOFILES |
| 12677 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
| 12678 | case "$ac_given_srcdir" in |
| 12679 | .) srcdirpre= ;; |
| 12680 | *) srcdirpre='$(srcdir)/' ;; |
| 12681 | esac |
| 12682 | POFILES= |
| 12683 | UPDATEPOFILES= |
| 12684 | DUMMYPOFILES= |
| 12685 | GMOFILES= |
| 12686 | for lang in $ALL_LINGUAS; do |
| 12687 | POFILES="$POFILES $srcdirpre$lang.po" |
| 12688 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12689 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 12690 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 12691 | done |
| 12692 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12693 | # environment variable. |
| 12694 | INST_LINGUAS= |
| 12695 | if test -n "$ALL_LINGUAS"; then |
| 12696 | for presentlang in $ALL_LINGUAS; do |
| 12697 | useit=no |
| 12698 | if test "%UNSET%" != "$LINGUAS"; then |
| 12699 | desiredlanguages="$LINGUAS" |
| 12700 | else |
| 12701 | desiredlanguages="$ALL_LINGUAS" |
| 12702 | fi |
| 12703 | for desiredlang in $desiredlanguages; do |
| 12704 | # Use the presentlang catalog if desiredlang is |
| 12705 | # a. equal to presentlang, or |
| 12706 | # b. a variant of presentlang (because in this case, |
| 12707 | # presentlang can be used as a fallback for messages |
| 12708 | # which are not translated in the desiredlang catalog). |
| 12709 | case "$desiredlang" in |
| 12710 | "$presentlang"*) useit=yes;; |
| 12711 | esac |
| 12712 | done |
| 12713 | if test $useit = yes; then |
| 12714 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12715 | fi |
| 12716 | done |
| 12717 | fi |
| 12718 | CATALOGS= |
| 12719 | if test -n "$INST_LINGUAS"; then |
| 12720 | for lang in $INST_LINGUAS; do |
| 12721 | CATALOGS="$CATALOGS $lang.gmo" |
| 12722 | done |
| 12723 | fi |
| 12724 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 12725 | 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" |
| 12726 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12727 | if test -f "$f"; then |
| 12728 | case "$f" in |
| 12729 | *.orig | *.bak | *~) ;; |
| 12730 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12731 | esac |
| 12732 | fi |
| 12733 | done |
| 12734 | fi |
| 12735 | ;; |
| 12736 | esac |
| 12737 | done ;; |
| 12738 | esac |
| 12739 | done |
| 12740 | _ACEOF |
| 12741 | |
| 12742 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 12743 | |
| 12744 | { (exit 0); exit 0; } |
| 12745 | _ACEOF |
| 12746 | chmod +x $CONFIG_STATUS |
| 12747 | ac_clean_files=$ac_clean_files_save |
| 12748 | |
| 12749 | |
| 12750 | # configure is writing to config.log, and then calls config.status. |
| 12751 | # config.status does its own redirection, appending to config.log. |
| 12752 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12753 | # by configure, so config.status won't be able to write to it; its |
| 12754 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12755 | # effectively closing config.log, so it can be properly (re)opened and |
| 12756 | # appended to by config.status. When coming back to configure, we |
| 12757 | # need to make the FD available again. |
| 12758 | if test "$no_create" != yes; then |
| 12759 | ac_cs_success=: |
| 12760 | ac_config_status_args= |
| 12761 | test "$silent" = yes && |
| 12762 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12763 | exec 5>/dev/null |
| 12764 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12765 | exec 5>>config.log |
| 12766 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12767 | # would make configure fail if this is the last instruction. |
| 12768 | $ac_cs_success || { (exit 1); exit 1; } |
| 12769 | fi |
| 12770 | |