| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.59 for msort 8.53. |
| 4 | # |
| 5 | # Report bugs to <[email protected]>. |
| 6 | # |
| 7 | # Copyright (C) 2003 Free Software Foundation, Inc. |
| 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
| 10 | ## --------------------- ## |
| 11 | ## M4sh Initialization. ## |
| 12 | ## --------------------- ## |
| 13 | |
| 14 | # Be Bourne compatible |
| 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
| 21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 22 | set -o posix |
| 23 | fi |
| 24 | DUALCASE=1; export DUALCASE # for MKS sh |
| 25 | |
| 26 | # Support unset when possible. |
| 27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 28 | as_unset=unset |
| 29 | else |
| 30 | as_unset=false |
| 31 | fi |
| 32 | |
| 33 | |
| 34 | # Work around bugs in pre-3.0 UWIN ksh. |
| 35 | $as_unset ENV MAIL MAILPATH |
| 36 | PS1='$ ' |
| 37 | PS2='> ' |
| 38 | PS4='+ ' |
| 39 | |
| 40 | # NLS nuisances. |
| 41 | for as_var in \ |
| 42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 44 | LC_TELEPHONE LC_TIME |
| 45 | do |
| 46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 47 | eval $as_var=C; export $as_var |
| 48 | else |
| 49 | $as_unset $as_var |
| 50 | fi |
| 51 | done |
| 52 | |
| 53 | # Required to use basename. |
| 54 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 55 | as_expr=expr |
| 56 | else |
| 57 | as_expr=false |
| 58 | fi |
| 59 | |
| 60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 61 | as_basename=basename |
| 62 | else |
| 63 | as_basename=false |
| 64 | fi |
| 65 | |
| 66 | |
| 67 | # Name of the executable. |
| 68 | as_me=`$as_basename "$0" || |
| 69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 70 | X"$0" : 'X\(//\)$' \| \ |
| 71 | X"$0" : 'X\(/\)$' \| \ |
| 72 | . : '\(.\)' 2>/dev/null || |
| 73 | echo X/"$0" | |
| 74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 75 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 76 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 77 | s/.*/./; q'` |
| 78 | |
| 79 | |
| 80 | # PATH needs CR, and LINENO needs CR and PATH. |
| 81 | # Avoid depending upon Character Ranges. |
| 82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 85 | as_cr_digits='0123456789' |
| 86 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 87 | |
| 88 | # The user is always right. |
| 89 | if test "${PATH_SEPARATOR+set}" != set; then |
| 90 | echo "#! /bin/sh" >conf$$.sh |
| 91 | echo "exit 0" >>conf$$.sh |
| 92 | chmod +x conf$$.sh |
| 93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 94 | PATH_SEPARATOR=';' |
| 95 | else |
| 96 | PATH_SEPARATOR=: |
| 97 | fi |
| 98 | rm -f conf$$.sh |
| 99 | fi |
| 100 | |
| 101 | |
| 102 | as_lineno_1=$LINENO |
| 103 | as_lineno_2=$LINENO |
| 104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 105 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 106 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 107 | # Find who we are. Look in the path if we contain no path at all |
| 108 | # relative or not. |
| 109 | case $0 in |
| 110 | *[\\/]* ) as_myself=$0 ;; |
| 111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 112 | for as_dir in $PATH |
| 113 | do |
| 114 | IFS=$as_save_IFS |
| 115 | test -z "$as_dir" && as_dir=. |
| 116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 117 | done |
| 118 | |
| 119 | ;; |
| 120 | esac |
| 121 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 122 | # in which case we are not to be found in the path. |
| 123 | if test "x$as_myself" = x; then |
| 124 | as_myself=$0 |
| 125 | fi |
| 126 | if test ! -f "$as_myself"; then |
| 127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 128 | { (exit 1); exit 1; }; } |
| 129 | fi |
| 130 | case $CONFIG_SHELL in |
| 131 | '') |
| 132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 134 | do |
| 135 | IFS=$as_save_IFS |
| 136 | test -z "$as_dir" && as_dir=. |
| 137 | for as_base in sh bash ksh sh5; do |
| 138 | case $as_dir in |
| 139 | /*) |
| 140 | if ("$as_dir/$as_base" -c ' |
| 141 | as_lineno_1=$LINENO |
| 142 | as_lineno_2=$LINENO |
| 143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 144 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 148 | CONFIG_SHELL=$as_dir/$as_base |
| 149 | export CONFIG_SHELL |
| 150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 151 | fi;; |
| 152 | esac |
| 153 | done |
| 154 | done |
| 155 | ;; |
| 156 | esac |
| 157 | |
| 158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 159 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 160 | # line-number line before each line; the second 'sed' does the real |
| 161 | # work. The second script uses 'N' to pair each line-number line |
| 162 | # with the numbered line, and appends trailing '-' during |
| 163 | # substitution so that $LINENO is not a special case at line end. |
| 164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 166 | sed '=' <$as_myself | |
| 167 | sed ' |
| 168 | N |
| 169 | s,$,-, |
| 170 | : loop |
| 171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 172 | t loop |
| 173 | s,-$,, |
| 174 | s,^['$as_cr_digits']*\n,, |
| 175 | ' >$as_me.lineno && |
| 176 | chmod +x $as_me.lineno || |
| 177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 178 | { (exit 1); exit 1; }; } |
| 179 | |
| 180 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 181 | # (the dirname of $[0] is not the place where we might find the |
| 182 | # original and so on. Autoconf is especially sensible to this). |
| 183 | . ./$as_me.lineno |
| 184 | # Exit status is that of the last command. |
| 185 | exit |
| 186 | } |
| 187 | |
| 188 | |
| 189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 190 | *c*,-n*) ECHO_N= ECHO_C=' |
| 191 | ' ECHO_T=' ' ;; |
| 192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 194 | esac |
| 195 | |
| 196 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 197 | as_expr=expr |
| 198 | else |
| 199 | as_expr=false |
| 200 | fi |
| 201 | |
| 202 | rm -f conf$$ conf$$.exe conf$$.file |
| 203 | echo >conf$$.file |
| 204 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 205 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 207 | if test -f conf$$.exe; then |
| 208 | # Don't use ln at all; we don't have any links |
| 209 | as_ln_s='cp -p' |
| 210 | else |
| 211 | as_ln_s='ln -s' |
| 212 | fi |
| 213 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 214 | as_ln_s=ln |
| 215 | else |
| 216 | as_ln_s='cp -p' |
| 217 | fi |
| 218 | rm -f conf$$ conf$$.exe conf$$.file |
| 219 | |
| 220 | if mkdir -p . 2>/dev/null; then |
| 221 | as_mkdir_p=: |
| 222 | else |
| 223 | test -d ./-p && rmdir ./-p |
| 224 | as_mkdir_p=false |
| 225 | fi |
| 226 | |
| 227 | as_executable_p="test -f" |
| 228 | |
| 229 | # Sed expression to map a string onto a valid CPP name. |
| 230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 231 | |
| 232 | # Sed expression to map a string onto a valid variable name. |
| 233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 234 | |
| 235 | |
| 236 | # IFS |
| 237 | # We need space, tab and new line, in precisely that order. |
| 238 | as_nl=' |
| 239 | ' |
| 240 | IFS=" $as_nl" |
| 241 | |
| 242 | # CDPATH. |
| 243 | $as_unset CDPATH |
| 244 | |
| 245 | |
| 246 | # Name of the host. |
| 247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 248 | # so uname gets run too. |
| 249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 250 | |
| 251 | exec 6>&1 |
| 252 | |
| 253 | # |
| 254 | # Initializations. |
| 255 | # |
| 256 | ac_default_prefix=/usr/local |
| 257 | ac_config_libobj_dir=. |
| 258 | cross_compiling=no |
| 259 | subdirs= |
| 260 | MFLAGS= |
| 261 | MAKEFLAGS= |
| 262 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 263 | |
| 264 | # Maximum number of lines to put in a shell here document. |
| 265 | # This variable seems obsolete. It should probably be removed, and |
| 266 | # only ac_max_sed_lines should be used. |
| 267 | : ${ac_max_here_lines=38} |
| 268 | |
| 269 | # Identity of this package. |
| 270 | PACKAGE_NAME='msort' |
| 271 | PACKAGE_TARNAME='msort' |
| 272 | PACKAGE_VERSION='8.53' |
| 273 | PACKAGE_STRING='msort 8.53' |
| 274 | PACKAGE_BUGREPORT='[email protected]' |
| 275 | |
| 276 | # Factoring default headers for most tests. |
| 277 | ac_includes_default="\ |
| 278 | #include <stdio.h> |
| 279 | #if HAVE_SYS_TYPES_H |
| 280 | # include <sys/types.h> |
| 281 | #endif |
| 282 | #if HAVE_SYS_STAT_H |
| 283 | # include <sys/stat.h> |
| 284 | #endif |
| 285 | #if STDC_HEADERS |
| 286 | # include <stdlib.h> |
| 287 | # include <stddef.h> |
| 288 | #else |
| 289 | # if HAVE_STDLIB_H |
| 290 | # include <stdlib.h> |
| 291 | # endif |
| 292 | #endif |
| 293 | #if HAVE_STRING_H |
| 294 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 295 | # include <memory.h> |
| 296 | # endif |
| 297 | # include <string.h> |
| 298 | #endif |
| 299 | #if HAVE_STRINGS_H |
| 300 | # include <strings.h> |
| 301 | #endif |
| 302 | #if HAVE_INTTYPES_H |
| 303 | # include <inttypes.h> |
| 304 | #else |
| 305 | # if HAVE_STDINT_H |
| 306 | # include <stdint.h> |
| 307 | # endif |
| 308 | #endif |
| 309 | #if HAVE_UNISTD_H |
| 310 | # include <unistd.h> |
| 311 | #endif" |
| 312 | |
| 313 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar NOCOMPARISONCNT_TRUE NOCOMPARISONCNT_FALSE ALLOCAOK_TRUE ALLOCAOK_FALSE UNINUMOK_TRUE UNINUMOK_FALSE UTF8PROCOK_TRUE UTF8PROCOK_FALSE DEBUGBUILD_TRUE DEBUGBUILD_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS' |
| 314 | ac_subst_files='' |
| 315 | |
| 316 | # Initialize some variables set by options. |
| 317 | ac_init_help= |
| 318 | ac_init_version=false |
| 319 | # The variables have the same names as the options, with |
| 320 | # dashes changed to underlines. |
| 321 | cache_file=/dev/null |
| 322 | exec_prefix=NONE |
| 323 | no_create= |
| 324 | no_recursion= |
| 325 | prefix=NONE |
| 326 | program_prefix=NONE |
| 327 | program_suffix=NONE |
| 328 | program_transform_name=s,x,x, |
| 329 | silent= |
| 330 | site= |
| 331 | srcdir= |
| 332 | verbose= |
| 333 | x_includes=NONE |
| 334 | x_libraries=NONE |
| 335 | |
| 336 | # Installation directory options. |
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 338 | # and all the variables that are supposed to be based on exec_prefix |
| 339 | # by default will actually change. |
| 340 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 341 | bindir='${exec_prefix}/bin' |
| 342 | sbindir='${exec_prefix}/sbin' |
| 343 | libexecdir='${exec_prefix}/libexec' |
| 344 | datadir='${prefix}/share' |
| 345 | sysconfdir='${prefix}/etc' |
| 346 | sharedstatedir='${prefix}/com' |
| 347 | localstatedir='${prefix}/var' |
| 348 | libdir='${exec_prefix}/lib' |
| 349 | includedir='${prefix}/include' |
| 350 | oldincludedir='/usr/include' |
| 351 | infodir='${prefix}/info' |
| 352 | mandir='${prefix}/man' |
| 353 | |
| 354 | ac_prev= |
| 355 | for ac_option |
| 356 | do |
| 357 | # If the previous option needs an argument, assign it. |
| 358 | if test -n "$ac_prev"; then |
| 359 | eval "$ac_prev=\$ac_option" |
| 360 | ac_prev= |
| 361 | continue |
| 362 | fi |
| 363 | |
| 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 365 | |
| 366 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 367 | |
| 368 | case $ac_option in |
| 369 | |
| 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 371 | ac_prev=bindir ;; |
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 373 | bindir=$ac_optarg ;; |
| 374 | |
| 375 | -build | --build | --buil | --bui | --bu) |
| 376 | ac_prev=build_alias ;; |
| 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 378 | build_alias=$ac_optarg ;; |
| 379 | |
| 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 382 | ac_prev=cache_file ;; |
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 385 | cache_file=$ac_optarg ;; |
| 386 | |
| 387 | --config-cache | -C) |
| 388 | cache_file=config.cache ;; |
| 389 | |
| 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 391 | ac_prev=datadir ;; |
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 393 | | --da=*) |
| 394 | datadir=$ac_optarg ;; |
| 395 | |
| 396 | -disable-* | --disable-*) |
| 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 398 | # Reject names that are not valid shell variable names. |
| 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 401 | { (exit 1); exit 1; }; } |
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 403 | eval "enable_$ac_feature=no" ;; |
| 404 | |
| 405 | -enable-* | --enable-*) |
| 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 407 | # Reject names that are not valid shell variable names. |
| 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 410 | { (exit 1); exit 1; }; } |
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 412 | case $ac_option in |
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 414 | *) ac_optarg=yes ;; |
| 415 | esac |
| 416 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 417 | |
| 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 420 | | --exec | --exe | --ex) |
| 421 | ac_prev=exec_prefix ;; |
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 424 | | --exec=* | --exe=* | --ex=*) |
| 425 | exec_prefix=$ac_optarg ;; |
| 426 | |
| 427 | -gas | --gas | --ga | --g) |
| 428 | # Obsolete; use --with-gas. |
| 429 | with_gas=yes ;; |
| 430 | |
| 431 | -help | --help | --hel | --he | -h) |
| 432 | ac_init_help=long ;; |
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 434 | ac_init_help=recursive ;; |
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 436 | ac_init_help=short ;; |
| 437 | |
| 438 | -host | --host | --hos | --ho) |
| 439 | ac_prev=host_alias ;; |
| 440 | -host=* | --host=* | --hos=* | --ho=*) |
| 441 | host_alias=$ac_optarg ;; |
| 442 | |
| 443 | -includedir | --includedir | --includedi | --included | --include \ |
| 444 | | --includ | --inclu | --incl | --inc) |
| 445 | ac_prev=includedir ;; |
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 448 | includedir=$ac_optarg ;; |
| 449 | |
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 451 | ac_prev=infodir ;; |
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 453 | infodir=$ac_optarg ;; |
| 454 | |
| 455 | -libdir | --libdir | --libdi | --libd) |
| 456 | ac_prev=libdir ;; |
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 458 | libdir=$ac_optarg ;; |
| 459 | |
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 461 | | --libexe | --libex | --libe) |
| 462 | ac_prev=libexecdir ;; |
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 464 | | --libexe=* | --libex=* | --libe=*) |
| 465 | libexecdir=$ac_optarg ;; |
| 466 | |
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 468 | | --localstate | --localstat | --localsta | --localst \ |
| 469 | | --locals | --local | --loca | --loc | --lo) |
| 470 | ac_prev=localstatedir ;; |
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 474 | localstatedir=$ac_optarg ;; |
| 475 | |
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 477 | ac_prev=mandir ;; |
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 479 | mandir=$ac_optarg ;; |
| 480 | |
| 481 | -nfp | --nfp | --nf) |
| 482 | # Obsolete; use --without-fp. |
| 483 | with_fp=no ;; |
| 484 | |
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 486 | | --no-cr | --no-c | -n) |
| 487 | no_create=yes ;; |
| 488 | |
| 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 491 | no_recursion=yes ;; |
| 492 | |
| 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 495 | | --oldin | --oldi | --old | --ol | --o) |
| 496 | ac_prev=oldincludedir ;; |
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 500 | oldincludedir=$ac_optarg ;; |
| 501 | |
| 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 503 | ac_prev=prefix ;; |
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 505 | prefix=$ac_optarg ;; |
| 506 | |
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 508 | | --program-pre | --program-pr | --program-p) |
| 509 | ac_prev=program_prefix ;; |
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 512 | program_prefix=$ac_optarg ;; |
| 513 | |
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 515 | | --program-suf | --program-su | --program-s) |
| 516 | ac_prev=program_suffix ;; |
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 519 | program_suffix=$ac_optarg ;; |
| 520 | |
| 521 | -program-transform-name | --program-transform-name \ |
| 522 | | --program-transform-nam | --program-transform-na \ |
| 523 | | --program-transform-n | --program-transform- \ |
| 524 | | --program-transform | --program-transfor \ |
| 525 | | --program-transfo | --program-transf \ |
| 526 | | --program-trans | --program-tran \ |
| 527 | | --progr-tra | --program-tr | --program-t) |
| 528 | ac_prev=program_transform_name ;; |
| 529 | -program-transform-name=* | --program-transform-name=* \ |
| 530 | | --program-transform-nam=* | --program-transform-na=* \ |
| 531 | | --program-transform-n=* | --program-transform-=* \ |
| 532 | | --program-transform=* | --program-transfor=* \ |
| 533 | | --program-transfo=* | --program-transf=* \ |
| 534 | | --program-trans=* | --program-tran=* \ |
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 536 | program_transform_name=$ac_optarg ;; |
| 537 | |
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 539 | | -silent | --silent | --silen | --sile | --sil) |
| 540 | silent=yes ;; |
| 541 | |
| 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 543 | ac_prev=sbindir ;; |
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 545 | | --sbi=* | --sb=*) |
| 546 | sbindir=$ac_optarg ;; |
| 547 | |
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 550 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 551 | | --sha | --sh) |
| 552 | ac_prev=sharedstatedir ;; |
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 556 | | --sha=* | --sh=*) |
| 557 | sharedstatedir=$ac_optarg ;; |
| 558 | |
| 559 | -site | --site | --sit) |
| 560 | ac_prev=site ;; |
| 561 | -site=* | --site=* | --sit=*) |
| 562 | site=$ac_optarg ;; |
| 563 | |
| 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 565 | ac_prev=srcdir ;; |
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 567 | srcdir=$ac_optarg ;; |
| 568 | |
| 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 570 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 571 | ac_prev=sysconfdir ;; |
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 574 | sysconfdir=$ac_optarg ;; |
| 575 | |
| 576 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 577 | ac_prev=target_alias ;; |
| 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 579 | target_alias=$ac_optarg ;; |
| 580 | |
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 582 | verbose=yes ;; |
| 583 | |
| 584 | -version | --version | --versio | --versi | --vers | -V) |
| 585 | ac_init_version=: ;; |
| 586 | |
| 587 | -with-* | --with-*) |
| 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 589 | # Reject names that are not valid shell variable names. |
| 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 592 | { (exit 1); exit 1; }; } |
| 593 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 594 | case $ac_option in |
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 596 | *) ac_optarg=yes ;; |
| 597 | esac |
| 598 | eval "with_$ac_package='$ac_optarg'" ;; |
| 599 | |
| 600 | -without-* | --without-*) |
| 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 602 | # Reject names that are not valid shell variable names. |
| 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 605 | { (exit 1); exit 1; }; } |
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 607 | eval "with_$ac_package=no" ;; |
| 608 | |
| 609 | --x) |
| 610 | # Obsolete; use --with-x. |
| 611 | with_x=yes ;; |
| 612 | |
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 614 | | --x-incl | --x-inc | --x-in | --x-i) |
| 615 | ac_prev=x_includes ;; |
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 618 | x_includes=$ac_optarg ;; |
| 619 | |
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 622 | ac_prev=x_libraries ;; |
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 625 | x_libraries=$ac_optarg ;; |
| 626 | |
| 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 628 | Try \`$0 --help' for more information." >&2 |
| 629 | { (exit 1); exit 1; }; } |
| 630 | ;; |
| 631 | |
| 632 | *=*) |
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 634 | # Reject names that are not valid shell variable names. |
| 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 637 | { (exit 1); exit 1; }; } |
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 639 | eval "$ac_envvar='$ac_optarg'" |
| 640 | export $ac_envvar ;; |
| 641 | |
| 642 | *) |
| 643 | # FIXME: should be removed in autoconf 3.0. |
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 648 | ;; |
| 649 | |
| 650 | esac |
| 651 | done |
| 652 | |
| 653 | if test -n "$ac_prev"; then |
| 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 656 | { (exit 1); exit 1; }; } |
| 657 | fi |
| 658 | |
| 659 | # Be sure to have absolute paths. |
| 660 | for ac_var in exec_prefix prefix |
| 661 | do |
| 662 | eval ac_val=$`echo $ac_var` |
| 663 | case $ac_val in |
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 666 | { (exit 1); exit 1; }; };; |
| 667 | esac |
| 668 | done |
| 669 | |
| 670 | # Be sure to have absolute paths. |
| 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 672 | localstatedir libdir includedir oldincludedir infodir mandir |
| 673 | do |
| 674 | eval ac_val=$`echo $ac_var` |
| 675 | case $ac_val in |
| 676 | [\\/$]* | ?:[\\/]* ) ;; |
| 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 678 | { (exit 1); exit 1; }; };; |
| 679 | esac |
| 680 | done |
| 681 | |
| 682 | # There might be people who depend on the old broken behavior: `$host' |
| 683 | # used to hold the argument of --host etc. |
| 684 | # FIXME: To remove some day. |
| 685 | build=$build_alias |
| 686 | host=$host_alias |
| 687 | target=$target_alias |
| 688 | |
| 689 | # FIXME: To remove some day. |
| 690 | if test "x$host_alias" != x; then |
| 691 | if test "x$build_alias" = x; then |
| 692 | cross_compiling=maybe |
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 695 | elif test "x$build_alias" != "x$host_alias"; then |
| 696 | cross_compiling=yes |
| 697 | fi |
| 698 | fi |
| 699 | |
| 700 | ac_tool_prefix= |
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 702 | |
| 703 | test "$silent" = yes && exec 6>/dev/null |
| 704 | |
| 705 | |
| 706 | # Find the source files, if location was not specified. |
| 707 | if test -z "$srcdir"; then |
| 708 | ac_srcdir_defaulted=yes |
| 709 | # Try the directory containing this script, then its parent. |
| 710 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 712 | X"$0" : 'X\(//\)[^/]' \| \ |
| 713 | X"$0" : 'X\(//\)$' \| \ |
| 714 | X"$0" : 'X\(/\)' \| \ |
| 715 | . : '\(.\)' 2>/dev/null || |
| 716 | echo X"$0" | |
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 719 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 720 | /^X\(\/\).*/{ s//\1/; q; } |
| 721 | s/.*/./; q'` |
| 722 | srcdir=$ac_confdir |
| 723 | if test ! -r $srcdir/$ac_unique_file; then |
| 724 | srcdir=.. |
| 725 | fi |
| 726 | else |
| 727 | ac_srcdir_defaulted=no |
| 728 | fi |
| 729 | if test ! -r $srcdir/$ac_unique_file; then |
| 730 | if test "$ac_srcdir_defaulted" = yes; then |
| 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 732 | { (exit 1); exit 1; }; } |
| 733 | else |
| 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 735 | { (exit 1); exit 1; }; } |
| 736 | fi |
| 737 | fi |
| 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 740 | { (exit 1); exit 1; }; } |
| 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 742 | ac_env_build_alias_set=${build_alias+set} |
| 743 | ac_env_build_alias_value=$build_alias |
| 744 | ac_cv_env_build_alias_set=${build_alias+set} |
| 745 | ac_cv_env_build_alias_value=$build_alias |
| 746 | ac_env_host_alias_set=${host_alias+set} |
| 747 | ac_env_host_alias_value=$host_alias |
| 748 | ac_cv_env_host_alias_set=${host_alias+set} |
| 749 | ac_cv_env_host_alias_value=$host_alias |
| 750 | ac_env_target_alias_set=${target_alias+set} |
| 751 | ac_env_target_alias_value=$target_alias |
| 752 | ac_cv_env_target_alias_set=${target_alias+set} |
| 753 | ac_cv_env_target_alias_value=$target_alias |
| 754 | ac_env_CC_set=${CC+set} |
| 755 | ac_env_CC_value=$CC |
| 756 | ac_cv_env_CC_set=${CC+set} |
| 757 | ac_cv_env_CC_value=$CC |
| 758 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_env_CFLAGS_value=$CFLAGS |
| 760 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 761 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 770 | ac_env_CPP_set=${CPP+set} |
| 771 | ac_env_CPP_value=$CPP |
| 772 | ac_cv_env_CPP_set=${CPP+set} |
| 773 | ac_cv_env_CPP_value=$CPP |
| 774 | |
| 775 | # |
| 776 | # Report the --help message. |
| 777 | # |
| 778 | if test "$ac_init_help" = "long"; then |
| 779 | # Omit some internal or obsolete options to make the list less imposing. |
| 780 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 781 | cat <<_ACEOF |
| 782 | \`configure' configures msort 8.53 to adapt to many kinds of systems. |
| 783 | |
| 784 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 785 | |
| 786 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 787 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 788 | |
| 789 | Defaults for the options are specified in brackets. |
| 790 | |
| 791 | Configuration: |
| 792 | -h, --help display this help and exit |
| 793 | --help=short display options specific to this package |
| 794 | --help=recursive display the short help of all the included packages |
| 795 | -V, --version display version information and exit |
| 796 | -q, --quiet, --silent do not print \`checking...' messages |
| 797 | --cache-file=FILE cache test results in FILE [disabled] |
| 798 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 799 | -n, --no-create do not create output files |
| 800 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 801 | |
| 802 | _ACEOF |
| 803 | |
| 804 | cat <<_ACEOF |
| 805 | Installation directories: |
| 806 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 807 | [$ac_default_prefix] |
| 808 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 809 | [PREFIX] |
| 810 | |
| 811 | By default, \`make install' will install all the files in |
| 812 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 813 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 814 | for instance \`--prefix=\$HOME'. |
| 815 | |
| 816 | For better control, use the options below. |
| 817 | |
| 818 | Fine tuning of the installation directories: |
| 819 | --bindir=DIR user executables [EPREFIX/bin] |
| 820 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 821 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 822 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 823 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 824 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 825 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 826 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 827 | --includedir=DIR C header files [PREFIX/include] |
| 828 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 829 | --infodir=DIR info documentation [PREFIX/info] |
| 830 | --mandir=DIR man documentation [PREFIX/man] |
| 831 | _ACEOF |
| 832 | |
| 833 | cat <<\_ACEOF |
| 834 | |
| 835 | Program names: |
| 836 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 837 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 838 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 839 | _ACEOF |
| 840 | fi |
| 841 | |
| 842 | if test -n "$ac_init_help"; then |
| 843 | case $ac_init_help in |
| 844 | short | recursive ) echo "Configuration of msort 8.53:";; |
| 845 | esac |
| 846 | cat <<\_ACEOF |
| 847 | |
| 848 | Optional Features: |
| 849 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 850 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 851 | --disable-comparisoncount Do not count comparisons. |
| 852 | --disable-allocaok Do not use alloca - use heap instead. |
| 853 | --disable-uninum. Do not link uninum library. |
| 854 | --disable-utf8proc. Use the icu library instead of utf8proc. |
| 855 | --enable-debugbuild. Compile for debugging. |
| 856 | --disable-dependency-tracking speeds up one-time build |
| 857 | --enable-dependency-tracking do not reject slow dependency extractors |
| 858 | |
| 859 | Some influential environment variables: |
| 860 | CC C compiler command |
| 861 | CFLAGS C compiler flags |
| 862 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 863 | nonstandard directory <lib dir> |
| 864 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 865 | headers in a nonstandard directory <include dir> |
| 866 | CPP C preprocessor |
| 867 | |
| 868 | Use these variables to override the choices made by `configure' or to help |
| 869 | it to find libraries and programs with nonstandard names/locations. |
| 870 | |
| 871 | Report bugs to <[email protected]>. |
| 872 | _ACEOF |
| 873 | fi |
| 874 | |
| 875 | if test "$ac_init_help" = "recursive"; then |
| 876 | # If there are subdirs, report their specific --help. |
| 877 | ac_popdir=`pwd` |
| 878 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 879 | test -d $ac_dir || continue |
| 880 | ac_builddir=. |
| 881 | |
| 882 | if test "$ac_dir" != .; then |
| 883 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 884 | # A "../" for each directory in $ac_dir_suffix. |
| 885 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 886 | else |
| 887 | ac_dir_suffix= ac_top_builddir= |
| 888 | fi |
| 889 | |
| 890 | case $srcdir in |
| 891 | .) # No --srcdir option. We are building in place. |
| 892 | ac_srcdir=. |
| 893 | if test -z "$ac_top_builddir"; then |
| 894 | ac_top_srcdir=. |
| 895 | else |
| 896 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 897 | fi ;; |
| 898 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 899 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 900 | ac_top_srcdir=$srcdir ;; |
| 901 | *) # Relative path. |
| 902 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 903 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 904 | esac |
| 905 | |
| 906 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 907 | # the directories may not exist. |
| 908 | case `pwd` in |
| 909 | .) ac_abs_builddir="$ac_dir";; |
| 910 | *) |
| 911 | case "$ac_dir" in |
| 912 | .) ac_abs_builddir=`pwd`;; |
| 913 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 914 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 915 | esac;; |
| 916 | esac |
| 917 | case $ac_abs_builddir in |
| 918 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 919 | *) |
| 920 | case ${ac_top_builddir}. in |
| 921 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 922 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 923 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 924 | esac;; |
| 925 | esac |
| 926 | case $ac_abs_builddir in |
| 927 | .) ac_abs_srcdir=$ac_srcdir;; |
| 928 | *) |
| 929 | case $ac_srcdir in |
| 930 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 931 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 932 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 933 | esac;; |
| 934 | esac |
| 935 | case $ac_abs_builddir in |
| 936 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 937 | *) |
| 938 | case $ac_top_srcdir in |
| 939 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 940 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 941 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 942 | esac;; |
| 943 | esac |
| 944 | |
| 945 | cd $ac_dir |
| 946 | # Check for guested configure; otherwise get Cygnus style configure. |
| 947 | if test -f $ac_srcdir/configure.gnu; then |
| 948 | echo |
| 949 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 950 | elif test -f $ac_srcdir/configure; then |
| 951 | echo |
| 952 | $SHELL $ac_srcdir/configure --help=recursive |
| 953 | elif test -f $ac_srcdir/configure.ac || |
| 954 | test -f $ac_srcdir/configure.in; then |
| 955 | echo |
| 956 | $ac_configure --help |
| 957 | else |
| 958 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 959 | fi |
| 960 | cd "$ac_popdir" |
| 961 | done |
| 962 | fi |
| 963 | |
| 964 | test -n "$ac_init_help" && exit 0 |
| 965 | if $ac_init_version; then |
| 966 | cat <<\_ACEOF |
| 967 | msort configure 8.53 |
| 968 | generated by GNU Autoconf 2.59 |
| 969 | |
| 970 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 971 | This configure script is free software; the Free Software Foundation |
| 972 | gives unlimited permission to copy, distribute and modify it. |
| 973 | _ACEOF |
| 974 | exit 0 |
| 975 | fi |
| 976 | exec 5>config.log |
| 977 | cat >&5 <<_ACEOF |
| 978 | This file contains any messages produced by compilers while |
| 979 | running configure, to aid debugging if configure makes a mistake. |
| 980 | |
| 981 | It was created by msort $as_me 8.53, which was |
| 982 | generated by GNU Autoconf 2.59. Invocation command line was |
| 983 | |
| 984 | $ $0 $@ |
| 985 | |
| 986 | _ACEOF |
| 987 | { |
| 988 | cat <<_ASUNAME |
| 989 | ## --------- ## |
| 990 | ## Platform. ## |
| 991 | ## --------- ## |
| 992 | |
| 993 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 994 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 995 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 996 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 997 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 998 | |
| 999 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1000 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1001 | |
| 1002 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1003 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1004 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1005 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1006 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1007 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1008 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1009 | |
| 1010 | _ASUNAME |
| 1011 | |
| 1012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1013 | for as_dir in $PATH |
| 1014 | do |
| 1015 | IFS=$as_save_IFS |
| 1016 | test -z "$as_dir" && as_dir=. |
| 1017 | echo "PATH: $as_dir" |
| 1018 | done |
| 1019 | |
| 1020 | } >&5 |
| 1021 | |
| 1022 | cat >&5 <<_ACEOF |
| 1023 | |
| 1024 | |
| 1025 | ## ----------- ## |
| 1026 | ## Core tests. ## |
| 1027 | ## ----------- ## |
| 1028 | |
| 1029 | _ACEOF |
| 1030 | |
| 1031 | |
| 1032 | # Keep a trace of the command line. |
| 1033 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1034 | # Strip out --silent because we don't want to record it for future runs. |
| 1035 | # Also quote any args containing shell meta-characters. |
| 1036 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1037 | ac_configure_args= |
| 1038 | ac_configure_args0= |
| 1039 | ac_configure_args1= |
| 1040 | ac_sep= |
| 1041 | ac_must_keep_next=false |
| 1042 | for ac_pass in 1 2 |
| 1043 | do |
| 1044 | for ac_arg |
| 1045 | do |
| 1046 | case $ac_arg in |
| 1047 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1049 | | -silent | --silent | --silen | --sile | --sil) |
| 1050 | continue ;; |
| 1051 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1052 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1053 | esac |
| 1054 | case $ac_pass in |
| 1055 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1056 | 2) |
| 1057 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1058 | if test $ac_must_keep_next = true; then |
| 1059 | ac_must_keep_next=false # Got value, back to normal. |
| 1060 | else |
| 1061 | case $ac_arg in |
| 1062 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1063 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1064 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1065 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1066 | case "$ac_configure_args0 " in |
| 1067 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1068 | esac |
| 1069 | ;; |
| 1070 | -* ) ac_must_keep_next=true ;; |
| 1071 | esac |
| 1072 | fi |
| 1073 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1074 | # Get rid of the leading space. |
| 1075 | ac_sep=" " |
| 1076 | ;; |
| 1077 | esac |
| 1078 | done |
| 1079 | done |
| 1080 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1081 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1082 | |
| 1083 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1084 | # config.log. We remove comments because anyway the quotes in there |
| 1085 | # would cause problems or look ugly. |
| 1086 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1087 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1088 | trap 'exit_status=$? |
| 1089 | # Save into config.log some information that might help in debugging. |
| 1090 | { |
| 1091 | echo |
| 1092 | |
| 1093 | cat <<\_ASBOX |
| 1094 | ## ---------------- ## |
| 1095 | ## Cache variables. ## |
| 1096 | ## ---------------- ## |
| 1097 | _ASBOX |
| 1098 | echo |
| 1099 | # The following way of writing the cache mishandles newlines in values, |
| 1100 | { |
| 1101 | (set) 2>&1 | |
| 1102 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1103 | *ac_space=\ *) |
| 1104 | sed -n \ |
| 1105 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1106 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1107 | ;; |
| 1108 | *) |
| 1109 | sed -n \ |
| 1110 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1111 | ;; |
| 1112 | esac; |
| 1113 | } |
| 1114 | echo |
| 1115 | |
| 1116 | cat <<\_ASBOX |
| 1117 | ## ----------------- ## |
| 1118 | ## Output variables. ## |
| 1119 | ## ----------------- ## |
| 1120 | _ASBOX |
| 1121 | echo |
| 1122 | for ac_var in $ac_subst_vars |
| 1123 | do |
| 1124 | eval ac_val=$`echo $ac_var` |
| 1125 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1126 | done | sort |
| 1127 | echo |
| 1128 | |
| 1129 | if test -n "$ac_subst_files"; then |
| 1130 | cat <<\_ASBOX |
| 1131 | ## ------------- ## |
| 1132 | ## Output files. ## |
| 1133 | ## ------------- ## |
| 1134 | _ASBOX |
| 1135 | echo |
| 1136 | for ac_var in $ac_subst_files |
| 1137 | do |
| 1138 | eval ac_val=$`echo $ac_var` |
| 1139 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1140 | done | sort |
| 1141 | echo |
| 1142 | fi |
| 1143 | |
| 1144 | if test -s confdefs.h; then |
| 1145 | cat <<\_ASBOX |
| 1146 | ## ----------- ## |
| 1147 | ## confdefs.h. ## |
| 1148 | ## ----------- ## |
| 1149 | _ASBOX |
| 1150 | echo |
| 1151 | sed "/^$/d" confdefs.h | sort |
| 1152 | echo |
| 1153 | fi |
| 1154 | test "$ac_signal" != 0 && |
| 1155 | echo "$as_me: caught signal $ac_signal" |
| 1156 | echo "$as_me: exit $exit_status" |
| 1157 | } >&5 |
| 1158 | rm -f core *.core && |
| 1159 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1160 | exit $exit_status |
| 1161 | ' 0 |
| 1162 | for ac_signal in 1 2 13 15; do |
| 1163 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1164 | done |
| 1165 | ac_signal=0 |
| 1166 | |
| 1167 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1168 | rm -rf conftest* confdefs.h |
| 1169 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1170 | echo >confdefs.h |
| 1171 | |
| 1172 | # Predefined preprocessor variables. |
| 1173 | |
| 1174 | cat >>confdefs.h <<_ACEOF |
| 1175 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1176 | _ACEOF |
| 1177 | |
| 1178 | |
| 1179 | cat >>confdefs.h <<_ACEOF |
| 1180 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1181 | _ACEOF |
| 1182 | |
| 1183 | |
| 1184 | cat >>confdefs.h <<_ACEOF |
| 1185 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1186 | _ACEOF |
| 1187 | |
| 1188 | |
| 1189 | cat >>confdefs.h <<_ACEOF |
| 1190 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1191 | _ACEOF |
| 1192 | |
| 1193 | |
| 1194 | cat >>confdefs.h <<_ACEOF |
| 1195 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1196 | _ACEOF |
| 1197 | |
| 1198 | |
| 1199 | # Let the site file select an alternate cache file if it wants to. |
| 1200 | # Prefer explicitly selected file to automatically selected ones. |
| 1201 | if test -z "$CONFIG_SITE"; then |
| 1202 | if test "x$prefix" != xNONE; then |
| 1203 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1204 | else |
| 1205 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1206 | fi |
| 1207 | fi |
| 1208 | for ac_site_file in $CONFIG_SITE; do |
| 1209 | if test -r "$ac_site_file"; then |
| 1210 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1211 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1212 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1213 | . "$ac_site_file" |
| 1214 | fi |
| 1215 | done |
| 1216 | |
| 1217 | if test -r "$cache_file"; then |
| 1218 | # Some versions of bash will fail to source /dev/null (special |
| 1219 | # files actually), so we avoid doing that. |
| 1220 | if test -f "$cache_file"; then |
| 1221 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1222 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1223 | case $cache_file in |
| 1224 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1225 | *) . ./$cache_file;; |
| 1226 | esac |
| 1227 | fi |
| 1228 | else |
| 1229 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1230 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1231 | >$cache_file |
| 1232 | fi |
| 1233 | |
| 1234 | # Check that the precious variables saved in the cache have kept the same |
| 1235 | # value. |
| 1236 | ac_cache_corrupted=false |
| 1237 | for ac_var in `(set) 2>&1 | |
| 1238 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1239 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1240 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1241 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1242 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1243 | case $ac_old_set,$ac_new_set in |
| 1244 | set,) |
| 1245 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1246 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1247 | ac_cache_corrupted=: ;; |
| 1248 | ,set) |
| 1249 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1250 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1251 | ac_cache_corrupted=: ;; |
| 1252 | ,);; |
| 1253 | *) |
| 1254 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1255 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1256 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1257 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1258 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1259 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1260 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1261 | ac_cache_corrupted=: |
| 1262 | fi;; |
| 1263 | esac |
| 1264 | # Pass precious variables to config.status. |
| 1265 | if test "$ac_new_set" = set; then |
| 1266 | case $ac_new_val in |
| 1267 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1268 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1269 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1270 | esac |
| 1271 | case " $ac_configure_args " in |
| 1272 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1273 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1274 | esac |
| 1275 | fi |
| 1276 | done |
| 1277 | if $ac_cache_corrupted; then |
| 1278 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1279 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1280 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1281 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1282 | { (exit 1); exit 1; }; } |
| 1283 | fi |
| 1284 | |
| 1285 | ac_ext=c |
| 1286 | ac_cpp='$CPP $CPPFLAGS' |
| 1287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1290 | |
| 1291 | |
| 1292 | |
| 1293 | |
| 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
| 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
| 1302 | |
| 1303 | |
| 1304 | |
| 1305 | |
| 1306 | |
| 1307 | |
| 1308 | |
| 1309 | |
| 1310 | |
| 1311 | |
| 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | ac_config_headers="$ac_config_headers config.h" |
| 1318 | |
| 1319 | am__api_version="1.9" |
| 1320 | ac_aux_dir= |
| 1321 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1322 | if test -f $ac_dir/install-sh; then |
| 1323 | ac_aux_dir=$ac_dir |
| 1324 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1325 | break |
| 1326 | elif test -f $ac_dir/install.sh; then |
| 1327 | ac_aux_dir=$ac_dir |
| 1328 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1329 | break |
| 1330 | elif test -f $ac_dir/shtool; then |
| 1331 | ac_aux_dir=$ac_dir |
| 1332 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1333 | break |
| 1334 | fi |
| 1335 | done |
| 1336 | if test -z "$ac_aux_dir"; then |
| 1337 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1338 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1339 | { (exit 1); exit 1; }; } |
| 1340 | fi |
| 1341 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1342 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1343 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1344 | |
| 1345 | # Find a good install program. We prefer a C program (faster), |
| 1346 | # so one script is as good as another. But avoid the broken or |
| 1347 | # incompatible versions: |
| 1348 | # SysV /etc/install, /usr/sbin/install |
| 1349 | # SunOS /usr/etc/install |
| 1350 | # IRIX /sbin/install |
| 1351 | # AIX /bin/install |
| 1352 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1353 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1354 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1355 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1356 | # OS/2's system install, which has a completely different semantic |
| 1357 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1358 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1359 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1360 | if test -z "$INSTALL"; then |
| 1361 | if test "${ac_cv_path_install+set}" = set; then |
| 1362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1363 | else |
| 1364 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1365 | for as_dir in $PATH |
| 1366 | do |
| 1367 | IFS=$as_save_IFS |
| 1368 | test -z "$as_dir" && as_dir=. |
| 1369 | # Account for people who put trailing slashes in PATH elements. |
| 1370 | case $as_dir/ in |
| 1371 | ./ | .// | /cC/* | \ |
| 1372 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1373 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 1374 | /usr/ucb/* ) ;; |
| 1375 | *) |
| 1376 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1377 | # Don't use installbsd from OSF since it installs stuff as root |
| 1378 | # by default. |
| 1379 | for ac_prog in ginstall scoinst install; do |
| 1380 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1381 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1382 | if test $ac_prog = install && |
| 1383 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1384 | # AIX install. It has an incompatible calling convention. |
| 1385 | : |
| 1386 | elif test $ac_prog = install && |
| 1387 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1388 | # program-specific install script used by HP pwplus--don't use. |
| 1389 | : |
| 1390 | else |
| 1391 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1392 | break 3 |
| 1393 | fi |
| 1394 | fi |
| 1395 | done |
| 1396 | done |
| 1397 | ;; |
| 1398 | esac |
| 1399 | done |
| 1400 | |
| 1401 | |
| 1402 | fi |
| 1403 | if test "${ac_cv_path_install+set}" = set; then |
| 1404 | INSTALL=$ac_cv_path_install |
| 1405 | else |
| 1406 | # As a last resort, use the slow shell script. We don't cache a |
| 1407 | # path for INSTALL within a source directory, because that will |
| 1408 | # break other packages using the cache if that directory is |
| 1409 | # removed, or if the path is relative. |
| 1410 | INSTALL=$ac_install_sh |
| 1411 | fi |
| 1412 | fi |
| 1413 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1414 | echo "${ECHO_T}$INSTALL" >&6 |
| 1415 | |
| 1416 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1417 | # It thinks the first close brace ends the variable substitution. |
| 1418 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1419 | |
| 1420 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1421 | |
| 1422 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1423 | |
| 1424 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1425 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1426 | # Just in case |
| 1427 | sleep 1 |
| 1428 | echo timestamp > conftest.file |
| 1429 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1430 | # arguments. Must try -L first in case configure is actually a |
| 1431 | # symlink; some systems play weird games with the mod time of symlinks |
| 1432 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1433 | # directory). |
| 1434 | if ( |
| 1435 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1436 | if test "$*" = "X"; then |
| 1437 | # -L didn't work. |
| 1438 | set X `ls -t $srcdir/configure conftest.file` |
| 1439 | fi |
| 1440 | rm -f conftest.file |
| 1441 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1442 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1443 | |
| 1444 | # If neither matched, then we have a broken ls. This can happen |
| 1445 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1446 | # broken ls alias from the environment. This has actually |
| 1447 | # happened. Such a system could not be considered "sane". |
| 1448 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1449 | alias in your environment" >&5 |
| 1450 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1451 | alias in your environment" >&2;} |
| 1452 | { (exit 1); exit 1; }; } |
| 1453 | fi |
| 1454 | |
| 1455 | test "$2" = conftest.file |
| 1456 | ) |
| 1457 | then |
| 1458 | # Ok. |
| 1459 | : |
| 1460 | else |
| 1461 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1462 | Check your system clock" >&5 |
| 1463 | echo "$as_me: error: newly created file is older than distributed files! |
| 1464 | Check your system clock" >&2;} |
| 1465 | { (exit 1); exit 1; }; } |
| 1466 | fi |
| 1467 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1468 | echo "${ECHO_T}yes" >&6 |
| 1469 | test "$program_prefix" != NONE && |
| 1470 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1471 | # Use a double $ so make ignores it. |
| 1472 | test "$program_suffix" != NONE && |
| 1473 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1474 | # Double any \ or $. echo might interpret backslashes. |
| 1475 | # By default was `s,x,x', remove it if useless. |
| 1476 | cat <<\_ACEOF >conftest.sed |
| 1477 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1478 | _ACEOF |
| 1479 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1480 | rm conftest.sed |
| 1481 | |
| 1482 | # expand $ac_aux_dir to an absolute path |
| 1483 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1484 | |
| 1485 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1486 | # Use eval to expand $SHELL |
| 1487 | if eval "$MISSING --run true"; then |
| 1488 | am_missing_run="$MISSING --run " |
| 1489 | else |
| 1490 | am_missing_run= |
| 1491 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
| 1492 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1493 | fi |
| 1494 | |
| 1495 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
| 1496 | # We used to keeping the `.' as first argument, in order to |
| 1497 | # allow $(mkdir_p) to be used without argument. As in |
| 1498 | # $(mkdir_p) $(somedir) |
| 1499 | # where $(somedir) is conditionally defined. However this is wrong |
| 1500 | # for two reasons: |
| 1501 | # 1. if the package is installed by a user who cannot write `.' |
| 1502 | # make install will fail, |
| 1503 | # 2. the above comment should most certainly read |
| 1504 | # $(mkdir_p) $(DESTDIR)$(somedir) |
| 1505 | # so it does not work when $(somedir) is undefined and |
| 1506 | # $(DESTDIR) is not. |
| 1507 | # To support the latter case, we have to write |
| 1508 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
| 1509 | # so the `.' trick is pointless. |
| 1510 | mkdir_p='mkdir -p --' |
| 1511 | else |
| 1512 | # On NextStep and OpenStep, the `mkdir' command does not |
| 1513 | # recognize any option. It will interpret all options as |
| 1514 | # directories to create, and then abort because `.' already |
| 1515 | # exists. |
| 1516 | for d in ./-p ./--version; |
| 1517 | do |
| 1518 | test -d $d && rmdir $d |
| 1519 | done |
| 1520 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
| 1521 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
| 1522 | mkdir_p='$(mkinstalldirs)' |
| 1523 | else |
| 1524 | mkdir_p='$(install_sh) -d' |
| 1525 | fi |
| 1526 | fi |
| 1527 | |
| 1528 | for ac_prog in gawk mawk nawk awk |
| 1529 | do |
| 1530 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1531 | set dummy $ac_prog; ac_word=$2 |
| 1532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1534 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1536 | else |
| 1537 | if test -n "$AWK"; then |
| 1538 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1539 | else |
| 1540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1541 | for as_dir in $PATH |
| 1542 | do |
| 1543 | IFS=$as_save_IFS |
| 1544 | test -z "$as_dir" && as_dir=. |
| 1545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1547 | ac_cv_prog_AWK="$ac_prog" |
| 1548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1549 | break 2 |
| 1550 | fi |
| 1551 | done |
| 1552 | done |
| 1553 | |
| 1554 | fi |
| 1555 | fi |
| 1556 | AWK=$ac_cv_prog_AWK |
| 1557 | if test -n "$AWK"; then |
| 1558 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1559 | echo "${ECHO_T}$AWK" >&6 |
| 1560 | else |
| 1561 | echo "$as_me:$LINENO: result: no" >&5 |
| 1562 | echo "${ECHO_T}no" >&6 |
| 1563 | fi |
| 1564 | |
| 1565 | test -n "$AWK" && break |
| 1566 | done |
| 1567 | |
| 1568 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1569 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1570 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 1571 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1573 | else |
| 1574 | cat >conftest.make <<\_ACEOF |
| 1575 | all: |
| 1576 | @echo 'ac_maketemp="$(MAKE)"' |
| 1577 | _ACEOF |
| 1578 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1579 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1580 | if test -n "$ac_maketemp"; then |
| 1581 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1582 | else |
| 1583 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1584 | fi |
| 1585 | rm -f conftest.make |
| 1586 | fi |
| 1587 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1588 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1589 | echo "${ECHO_T}yes" >&6 |
| 1590 | SET_MAKE= |
| 1591 | else |
| 1592 | echo "$as_me:$LINENO: result: no" >&5 |
| 1593 | echo "${ECHO_T}no" >&6 |
| 1594 | SET_MAKE="MAKE=${MAKE-make}" |
| 1595 | fi |
| 1596 | |
| 1597 | rm -rf .tst 2>/dev/null |
| 1598 | mkdir .tst 2>/dev/null |
| 1599 | if test -d .tst; then |
| 1600 | am__leading_dot=. |
| 1601 | else |
| 1602 | am__leading_dot=_ |
| 1603 | fi |
| 1604 | rmdir .tst 2>/dev/null |
| 1605 | |
| 1606 | # test to see if srcdir already configured |
| 1607 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
| 1608 | test -f $srcdir/config.status; then |
| 1609 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1610 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1611 | { (exit 1); exit 1; }; } |
| 1612 | fi |
| 1613 | |
| 1614 | # test whether we have cygpath |
| 1615 | if test -z "$CYGPATH_W"; then |
| 1616 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 1617 | CYGPATH_W='cygpath -w' |
| 1618 | else |
| 1619 | CYGPATH_W=echo |
| 1620 | fi |
| 1621 | fi |
| 1622 | |
| 1623 | |
| 1624 | # Define the identity of the package. |
| 1625 | PACKAGE='msort' |
| 1626 | VERSION='8.53' |
| 1627 | |
| 1628 | |
| 1629 | cat >>confdefs.h <<_ACEOF |
| 1630 | #define PACKAGE "$PACKAGE" |
| 1631 | _ACEOF |
| 1632 | |
| 1633 | |
| 1634 | cat >>confdefs.h <<_ACEOF |
| 1635 | #define VERSION "$VERSION" |
| 1636 | _ACEOF |
| 1637 | |
| 1638 | # Some tools Automake needs. |
| 1639 | |
| 1640 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 1641 | |
| 1642 | |
| 1643 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1644 | |
| 1645 | |
| 1646 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 1647 | |
| 1648 | |
| 1649 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1650 | |
| 1651 | |
| 1652 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1653 | |
| 1654 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1655 | |
| 1656 | # Installed binaries are usually stripped using `strip' when the user |
| 1657 | # run `make install-strip'. However `strip' might not be the right |
| 1658 | # tool to use in cross-compilation environments, therefore Automake |
| 1659 | # will honor the `STRIP' environment variable to overrule this program. |
| 1660 | if test "$cross_compiling" != no; then |
| 1661 | if test -n "$ac_tool_prefix"; then |
| 1662 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1663 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1664 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1666 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 1667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1668 | else |
| 1669 | if test -n "$STRIP"; then |
| 1670 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1671 | else |
| 1672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1673 | for as_dir in $PATH |
| 1674 | do |
| 1675 | IFS=$as_save_IFS |
| 1676 | test -z "$as_dir" && as_dir=. |
| 1677 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1678 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1679 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 1680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1681 | break 2 |
| 1682 | fi |
| 1683 | done |
| 1684 | done |
| 1685 | |
| 1686 | fi |
| 1687 | fi |
| 1688 | STRIP=$ac_cv_prog_STRIP |
| 1689 | if test -n "$STRIP"; then |
| 1690 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 1691 | echo "${ECHO_T}$STRIP" >&6 |
| 1692 | else |
| 1693 | echo "$as_me:$LINENO: result: no" >&5 |
| 1694 | echo "${ECHO_T}no" >&6 |
| 1695 | fi |
| 1696 | |
| 1697 | fi |
| 1698 | if test -z "$ac_cv_prog_STRIP"; then |
| 1699 | ac_ct_STRIP=$STRIP |
| 1700 | # Extract the first word of "strip", so it can be a program name with args. |
| 1701 | set dummy strip; ac_word=$2 |
| 1702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1704 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 1705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1706 | else |
| 1707 | if test -n "$ac_ct_STRIP"; then |
| 1708 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 1709 | else |
| 1710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1711 | for as_dir in $PATH |
| 1712 | do |
| 1713 | IFS=$as_save_IFS |
| 1714 | test -z "$as_dir" && as_dir=. |
| 1715 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1717 | ac_cv_prog_ac_ct_STRIP="strip" |
| 1718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1719 | break 2 |
| 1720 | fi |
| 1721 | done |
| 1722 | done |
| 1723 | |
| 1724 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 1725 | fi |
| 1726 | fi |
| 1727 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 1728 | if test -n "$ac_ct_STRIP"; then |
| 1729 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 1730 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 1731 | else |
| 1732 | echo "$as_me:$LINENO: result: no" >&5 |
| 1733 | echo "${ECHO_T}no" >&6 |
| 1734 | fi |
| 1735 | |
| 1736 | STRIP=$ac_ct_STRIP |
| 1737 | else |
| 1738 | STRIP="$ac_cv_prog_STRIP" |
| 1739 | fi |
| 1740 | |
| 1741 | fi |
| 1742 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1743 | |
| 1744 | # We need awk for the "check" target. The system "awk" is bad on |
| 1745 | # some platforms. |
| 1746 | # Always define AMTAR for backward compatibility. |
| 1747 | |
| 1748 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1749 | |
| 1750 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 1751 | |
| 1752 | |
| 1753 | |
| 1754 | |
| 1755 | |
| 1756 | |
| 1757 | |
| 1758 | |
| 1759 | |
| 1760 | |
| 1761 | # Check whether --enable-nocomparisoncount or --disable-nocomparisoncount was given. |
| 1762 | if test "${enable_nocomparisoncount+set}" = set; then |
| 1763 | enableval="$enable_nocomparisoncount" |
| 1764 | case "${enableval}" in |
| 1765 | yes) nocomparisoncount=true ;; |
| 1766 | no) nocomparisoncount=false ;; |
| 1767 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-comparisoncount" >&5 |
| 1768 | echo "$as_me: error: bad value ${enableval} for --enable-comparisoncount" >&2;} |
| 1769 | { (exit 1); exit 1; }; } ;; |
| 1770 | esac |
| 1771 | else |
| 1772 | nocomparisoncount=true |
| 1773 | fi; |
| 1774 | |
| 1775 | |
| 1776 | |
| 1777 | if test "$nocomparisoncount" = false; then |
| 1778 | NOCOMPARISONCNT_TRUE= |
| 1779 | NOCOMPARISONCNT_FALSE='#' |
| 1780 | else |
| 1781 | NOCOMPARISONCNT_TRUE='#' |
| 1782 | NOCOMPARISONCNT_FALSE= |
| 1783 | fi |
| 1784 | |
| 1785 | |
| 1786 | # Check whether --enable-allocaok or --disable-allocaok was given. |
| 1787 | if test "${enable_allocaok+set}" = set; then |
| 1788 | enableval="$enable_allocaok" |
| 1789 | case "${enableval}" in |
| 1790 | yes) allocaok=true ;; |
| 1791 | no) allocaok=false ;; |
| 1792 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-allocaok" >&5 |
| 1793 | echo "$as_me: error: bad value ${enableval} for --enable-allocaok" >&2;} |
| 1794 | { (exit 1); exit 1; }; } ;; |
| 1795 | esac |
| 1796 | else |
| 1797 | allocaok=true |
| 1798 | fi; |
| 1799 | |
| 1800 | |
| 1801 | |
| 1802 | if test "$allocaok" = true; then |
| 1803 | ALLOCAOK_TRUE= |
| 1804 | ALLOCAOK_FALSE='#' |
| 1805 | else |
| 1806 | ALLOCAOK_TRUE='#' |
| 1807 | ALLOCAOK_FALSE= |
| 1808 | fi |
| 1809 | |
| 1810 | |
| 1811 | # Check whether --enable-uninum or --disable-uninum was given. |
| 1812 | if test "${enable_uninum+set}" = set; then |
| 1813 | enableval="$enable_uninum" |
| 1814 | case "${enableval}" in |
| 1815 | yes) uninum=true ;; |
| 1816 | no) uninum=false ;; |
| 1817 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-uninum" >&5 |
| 1818 | echo "$as_me: error: bad value ${enableval} for --enable-uninum" >&2;} |
| 1819 | { (exit 1); exit 1; }; } ;; |
| 1820 | esac |
| 1821 | else |
| 1822 | uninum=true |
| 1823 | fi; |
| 1824 | |
| 1825 | |
| 1826 | |
| 1827 | if test "$uninum" = true; then |
| 1828 | UNINUMOK_TRUE= |
| 1829 | UNINUMOK_FALSE='#' |
| 1830 | else |
| 1831 | UNINUMOK_TRUE='#' |
| 1832 | UNINUMOK_FALSE= |
| 1833 | fi |
| 1834 | |
| 1835 | |
| 1836 | # Check whether --enable-utf8proc or --disable-utf8proc was given. |
| 1837 | if test "${enable_utf8proc+set}" = set; then |
| 1838 | enableval="$enable_utf8proc" |
| 1839 | case "${enableval}" in |
| 1840 | yes) utf8proc=true ;; |
| 1841 | no) utf8proc=false ;; |
| 1842 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-utf8proc" >&5 |
| 1843 | echo "$as_me: error: bad value ${enableval} for --enable-utf8proc" >&2;} |
| 1844 | { (exit 1); exit 1; }; } ;; |
| 1845 | esac |
| 1846 | else |
| 1847 | utf8proc=true |
| 1848 | fi; |
| 1849 | |
| 1850 | |
| 1851 | |
| 1852 | if test "$utf8proc" = true; then |
| 1853 | UTF8PROCOK_TRUE= |
| 1854 | UTF8PROCOK_FALSE='#' |
| 1855 | else |
| 1856 | UTF8PROCOK_TRUE='#' |
| 1857 | UTF8PROCOK_FALSE= |
| 1858 | fi |
| 1859 | |
| 1860 | |
| 1861 | # Check whether --enable-debugbuild or --disable-debugbuild was given. |
| 1862 | if test "${enable_debugbuild+set}" = set; then |
| 1863 | enableval="$enable_debugbuild" |
| 1864 | case "${enableval}" in |
| 1865 | yes) debugbuild=true ;; |
| 1866 | no) debugbuild=false ;; |
| 1867 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debugbuild" >&5 |
| 1868 | echo "$as_me: error: bad value ${enableval} for --enable-debugbuild" >&2;} |
| 1869 | { (exit 1); exit 1; }; } ;; |
| 1870 | esac |
| 1871 | else |
| 1872 | debugbuild=false |
| 1873 | fi; |
| 1874 | |
| 1875 | |
| 1876 | |
| 1877 | if test "$debugbuild" = true; then |
| 1878 | DEBUGBUILD_TRUE= |
| 1879 | DEBUGBUILD_FALSE='#' |
| 1880 | else |
| 1881 | DEBUGBUILD_TRUE='#' |
| 1882 | DEBUGBUILD_FALSE= |
| 1883 | fi |
| 1884 | |
| 1885 | |
| 1886 | # Checks for programs. |
| 1887 | ac_ext=c |
| 1888 | ac_cpp='$CPP $CPPFLAGS' |
| 1889 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1890 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1891 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1892 | if test -n "$ac_tool_prefix"; then |
| 1893 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1894 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1897 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1899 | else |
| 1900 | if test -n "$CC"; then |
| 1901 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1902 | else |
| 1903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1904 | for as_dir in $PATH |
| 1905 | do |
| 1906 | IFS=$as_save_IFS |
| 1907 | test -z "$as_dir" && as_dir=. |
| 1908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1910 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1912 | break 2 |
| 1913 | fi |
| 1914 | done |
| 1915 | done |
| 1916 | |
| 1917 | fi |
| 1918 | fi |
| 1919 | CC=$ac_cv_prog_CC |
| 1920 | if test -n "$CC"; then |
| 1921 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1922 | echo "${ECHO_T}$CC" >&6 |
| 1923 | else |
| 1924 | echo "$as_me:$LINENO: result: no" >&5 |
| 1925 | echo "${ECHO_T}no" >&6 |
| 1926 | fi |
| 1927 | |
| 1928 | fi |
| 1929 | if test -z "$ac_cv_prog_CC"; then |
| 1930 | ac_ct_CC=$CC |
| 1931 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1932 | set dummy gcc; ac_word=$2 |
| 1933 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1935 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1937 | else |
| 1938 | if test -n "$ac_ct_CC"; then |
| 1939 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1940 | else |
| 1941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1942 | for as_dir in $PATH |
| 1943 | do |
| 1944 | IFS=$as_save_IFS |
| 1945 | test -z "$as_dir" && as_dir=. |
| 1946 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1947 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1948 | ac_cv_prog_ac_ct_CC="gcc" |
| 1949 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1950 | break 2 |
| 1951 | fi |
| 1952 | done |
| 1953 | done |
| 1954 | |
| 1955 | fi |
| 1956 | fi |
| 1957 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1958 | if test -n "$ac_ct_CC"; then |
| 1959 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1960 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1961 | else |
| 1962 | echo "$as_me:$LINENO: result: no" >&5 |
| 1963 | echo "${ECHO_T}no" >&6 |
| 1964 | fi |
| 1965 | |
| 1966 | CC=$ac_ct_CC |
| 1967 | else |
| 1968 | CC="$ac_cv_prog_CC" |
| 1969 | fi |
| 1970 | |
| 1971 | if test -z "$CC"; then |
| 1972 | if test -n "$ac_tool_prefix"; then |
| 1973 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1974 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1975 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1977 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1979 | else |
| 1980 | if test -n "$CC"; then |
| 1981 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1982 | else |
| 1983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1984 | for as_dir in $PATH |
| 1985 | do |
| 1986 | IFS=$as_save_IFS |
| 1987 | test -z "$as_dir" && as_dir=. |
| 1988 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1989 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1990 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1991 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1992 | break 2 |
| 1993 | fi |
| 1994 | done |
| 1995 | done |
| 1996 | |
| 1997 | fi |
| 1998 | fi |
| 1999 | CC=$ac_cv_prog_CC |
| 2000 | if test -n "$CC"; then |
| 2001 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2002 | echo "${ECHO_T}$CC" >&6 |
| 2003 | else |
| 2004 | echo "$as_me:$LINENO: result: no" >&5 |
| 2005 | echo "${ECHO_T}no" >&6 |
| 2006 | fi |
| 2007 | |
| 2008 | fi |
| 2009 | if test -z "$ac_cv_prog_CC"; then |
| 2010 | ac_ct_CC=$CC |
| 2011 | # Extract the first word of "cc", so it can be a program name with args. |
| 2012 | set dummy cc; ac_word=$2 |
| 2013 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2015 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2017 | else |
| 2018 | if test -n "$ac_ct_CC"; then |
| 2019 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2020 | else |
| 2021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2022 | for as_dir in $PATH |
| 2023 | do |
| 2024 | IFS=$as_save_IFS |
| 2025 | test -z "$as_dir" && as_dir=. |
| 2026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2027 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2028 | ac_cv_prog_ac_ct_CC="cc" |
| 2029 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2030 | break 2 |
| 2031 | fi |
| 2032 | done |
| 2033 | done |
| 2034 | |
| 2035 | fi |
| 2036 | fi |
| 2037 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2038 | if test -n "$ac_ct_CC"; then |
| 2039 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2040 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2041 | else |
| 2042 | echo "$as_me:$LINENO: result: no" >&5 |
| 2043 | echo "${ECHO_T}no" >&6 |
| 2044 | fi |
| 2045 | |
| 2046 | CC=$ac_ct_CC |
| 2047 | else |
| 2048 | CC="$ac_cv_prog_CC" |
| 2049 | fi |
| 2050 | |
| 2051 | fi |
| 2052 | if test -z "$CC"; then |
| 2053 | # Extract the first word of "cc", so it can be a program name with args. |
| 2054 | set dummy cc; ac_word=$2 |
| 2055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2057 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2059 | else |
| 2060 | if test -n "$CC"; then |
| 2061 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2062 | else |
| 2063 | ac_prog_rejected=no |
| 2064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2065 | for as_dir in $PATH |
| 2066 | do |
| 2067 | IFS=$as_save_IFS |
| 2068 | test -z "$as_dir" && as_dir=. |
| 2069 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2070 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2071 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2072 | ac_prog_rejected=yes |
| 2073 | continue |
| 2074 | fi |
| 2075 | ac_cv_prog_CC="cc" |
| 2076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2077 | break 2 |
| 2078 | fi |
| 2079 | done |
| 2080 | done |
| 2081 | |
| 2082 | if test $ac_prog_rejected = yes; then |
| 2083 | # We found a bogon in the path, so make sure we never use it. |
| 2084 | set dummy $ac_cv_prog_CC |
| 2085 | shift |
| 2086 | if test $# != 0; then |
| 2087 | # We chose a different compiler from the bogus one. |
| 2088 | # However, it has the same basename, so the bogon will be chosen |
| 2089 | # first if we set CC to just the basename; use the full file name. |
| 2090 | shift |
| 2091 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2092 | fi |
| 2093 | fi |
| 2094 | fi |
| 2095 | fi |
| 2096 | CC=$ac_cv_prog_CC |
| 2097 | if test -n "$CC"; then |
| 2098 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2099 | echo "${ECHO_T}$CC" >&6 |
| 2100 | else |
| 2101 | echo "$as_me:$LINENO: result: no" >&5 |
| 2102 | echo "${ECHO_T}no" >&6 |
| 2103 | fi |
| 2104 | |
| 2105 | fi |
| 2106 | if test -z "$CC"; then |
| 2107 | if test -n "$ac_tool_prefix"; then |
| 2108 | for ac_prog in cl |
| 2109 | do |
| 2110 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2111 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2112 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2113 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2114 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2116 | else |
| 2117 | if test -n "$CC"; then |
| 2118 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2119 | else |
| 2120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2121 | for as_dir in $PATH |
| 2122 | do |
| 2123 | IFS=$as_save_IFS |
| 2124 | test -z "$as_dir" && as_dir=. |
| 2125 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2126 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2127 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2128 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2129 | break 2 |
| 2130 | fi |
| 2131 | done |
| 2132 | done |
| 2133 | |
| 2134 | fi |
| 2135 | fi |
| 2136 | CC=$ac_cv_prog_CC |
| 2137 | if test -n "$CC"; then |
| 2138 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2139 | echo "${ECHO_T}$CC" >&6 |
| 2140 | else |
| 2141 | echo "$as_me:$LINENO: result: no" >&5 |
| 2142 | echo "${ECHO_T}no" >&6 |
| 2143 | fi |
| 2144 | |
| 2145 | test -n "$CC" && break |
| 2146 | done |
| 2147 | fi |
| 2148 | if test -z "$CC"; then |
| 2149 | ac_ct_CC=$CC |
| 2150 | for ac_prog in cl |
| 2151 | do |
| 2152 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2153 | set dummy $ac_prog; ac_word=$2 |
| 2154 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2155 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2156 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2158 | else |
| 2159 | if test -n "$ac_ct_CC"; then |
| 2160 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2161 | else |
| 2162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2163 | for as_dir in $PATH |
| 2164 | do |
| 2165 | IFS=$as_save_IFS |
| 2166 | test -z "$as_dir" && as_dir=. |
| 2167 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2168 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2169 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2171 | break 2 |
| 2172 | fi |
| 2173 | done |
| 2174 | done |
| 2175 | |
| 2176 | fi |
| 2177 | fi |
| 2178 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2179 | if test -n "$ac_ct_CC"; then |
| 2180 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2181 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2182 | else |
| 2183 | echo "$as_me:$LINENO: result: no" >&5 |
| 2184 | echo "${ECHO_T}no" >&6 |
| 2185 | fi |
| 2186 | |
| 2187 | test -n "$ac_ct_CC" && break |
| 2188 | done |
| 2189 | |
| 2190 | CC=$ac_ct_CC |
| 2191 | fi |
| 2192 | |
| 2193 | fi |
| 2194 | |
| 2195 | |
| 2196 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2197 | See \`config.log' for more details." >&5 |
| 2198 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2199 | See \`config.log' for more details." >&2;} |
| 2200 | { (exit 1); exit 1; }; } |
| 2201 | |
| 2202 | # Provide some information about the compiler. |
| 2203 | echo "$as_me:$LINENO:" \ |
| 2204 | "checking for C compiler version" >&5 |
| 2205 | ac_compiler=`set X $ac_compile; echo $2` |
| 2206 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2207 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2208 | ac_status=$? |
| 2209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2210 | (exit $ac_status); } |
| 2211 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2212 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2213 | ac_status=$? |
| 2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2215 | (exit $ac_status); } |
| 2216 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2217 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2218 | ac_status=$? |
| 2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2220 | (exit $ac_status); } |
| 2221 | |
| 2222 | cat >conftest.$ac_ext <<_ACEOF |
| 2223 | /* confdefs.h. */ |
| 2224 | _ACEOF |
| 2225 | cat confdefs.h >>conftest.$ac_ext |
| 2226 | cat >>conftest.$ac_ext <<_ACEOF |
| 2227 | /* end confdefs.h. */ |
| 2228 | |
| 2229 | int |
| 2230 | main () |
| 2231 | { |
| 2232 | |
| 2233 | ; |
| 2234 | return 0; |
| 2235 | } |
| 2236 | _ACEOF |
| 2237 | ac_clean_files_save=$ac_clean_files |
| 2238 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2239 | # Try to create an executable without -o first, disregard a.out. |
| 2240 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2241 | # of exeext. |
| 2242 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2243 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 2244 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2245 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2246 | (eval $ac_link_default) 2>&5 |
| 2247 | ac_status=$? |
| 2248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2249 | (exit $ac_status); }; then |
| 2250 | # Find the output, starting from the most likely. This scheme is |
| 2251 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2252 | # resort. |
| 2253 | |
| 2254 | # Be careful to initialize this variable, since it used to be cached. |
| 2255 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2256 | ac_cv_exeext= |
| 2257 | # b.out is created by i960 compilers. |
| 2258 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2259 | do |
| 2260 | test -f "$ac_file" || continue |
| 2261 | case $ac_file in |
| 2262 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2263 | ;; |
| 2264 | conftest.$ac_ext ) |
| 2265 | # This is the source file. |
| 2266 | ;; |
| 2267 | [ab].out ) |
| 2268 | # We found the default executable, but exeext='' is most |
| 2269 | # certainly right. |
| 2270 | break;; |
| 2271 | *.* ) |
| 2272 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2273 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2274 | # but it would be cool to find out if it's true. Does anybody |
| 2275 | # maintain Libtool? --akim. |
| 2276 | export ac_cv_exeext |
| 2277 | break;; |
| 2278 | * ) |
| 2279 | break;; |
| 2280 | esac |
| 2281 | done |
| 2282 | else |
| 2283 | echo "$as_me: failed program was:" >&5 |
| 2284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2285 | |
| 2286 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2287 | See \`config.log' for more details." >&5 |
| 2288 | echo "$as_me: error: C compiler cannot create executables |
| 2289 | See \`config.log' for more details." >&2;} |
| 2290 | { (exit 77); exit 77; }; } |
| 2291 | fi |
| 2292 | |
| 2293 | ac_exeext=$ac_cv_exeext |
| 2294 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2295 | echo "${ECHO_T}$ac_file" >&6 |
| 2296 | |
| 2297 | # Check the compiler produces executables we can run. If not, either |
| 2298 | # the compiler is broken, or we cross compile. |
| 2299 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2300 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2301 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2302 | # If not cross compiling, check that we can run a simple program. |
| 2303 | if test "$cross_compiling" != yes; then |
| 2304 | if { ac_try='./$ac_file' |
| 2305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2306 | (eval $ac_try) 2>&5 |
| 2307 | ac_status=$? |
| 2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2309 | (exit $ac_status); }; }; then |
| 2310 | cross_compiling=no |
| 2311 | else |
| 2312 | if test "$cross_compiling" = maybe; then |
| 2313 | cross_compiling=yes |
| 2314 | else |
| 2315 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2316 | If you meant to cross compile, use \`--host'. |
| 2317 | See \`config.log' for more details." >&5 |
| 2318 | echo "$as_me: error: cannot run C compiled programs. |
| 2319 | If you meant to cross compile, use \`--host'. |
| 2320 | See \`config.log' for more details." >&2;} |
| 2321 | { (exit 1); exit 1; }; } |
| 2322 | fi |
| 2323 | fi |
| 2324 | fi |
| 2325 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2326 | echo "${ECHO_T}yes" >&6 |
| 2327 | |
| 2328 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2329 | ac_clean_files=$ac_clean_files_save |
| 2330 | # Check the compiler produces executables we can run. If not, either |
| 2331 | # the compiler is broken, or we cross compile. |
| 2332 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2333 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2334 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2335 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2336 | |
| 2337 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2338 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2340 | (eval $ac_link) 2>&5 |
| 2341 | ac_status=$? |
| 2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2343 | (exit $ac_status); }; then |
| 2344 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2345 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2346 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2347 | # `rm'. |
| 2348 | for ac_file in conftest.exe conftest conftest.*; do |
| 2349 | test -f "$ac_file" || continue |
| 2350 | case $ac_file in |
| 2351 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2352 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2353 | export ac_cv_exeext |
| 2354 | break;; |
| 2355 | * ) break;; |
| 2356 | esac |
| 2357 | done |
| 2358 | else |
| 2359 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2360 | See \`config.log' for more details." >&5 |
| 2361 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2362 | See \`config.log' for more details." >&2;} |
| 2363 | { (exit 1); exit 1; }; } |
| 2364 | fi |
| 2365 | |
| 2366 | rm -f conftest$ac_cv_exeext |
| 2367 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2368 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2369 | |
| 2370 | rm -f conftest.$ac_ext |
| 2371 | EXEEXT=$ac_cv_exeext |
| 2372 | ac_exeext=$EXEEXT |
| 2373 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2374 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2375 | if test "${ac_cv_objext+set}" = set; then |
| 2376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2377 | else |
| 2378 | cat >conftest.$ac_ext <<_ACEOF |
| 2379 | /* confdefs.h. */ |
| 2380 | _ACEOF |
| 2381 | cat confdefs.h >>conftest.$ac_ext |
| 2382 | cat >>conftest.$ac_ext <<_ACEOF |
| 2383 | /* end confdefs.h. */ |
| 2384 | |
| 2385 | int |
| 2386 | main () |
| 2387 | { |
| 2388 | |
| 2389 | ; |
| 2390 | return 0; |
| 2391 | } |
| 2392 | _ACEOF |
| 2393 | rm -f conftest.o conftest.obj |
| 2394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2395 | (eval $ac_compile) 2>&5 |
| 2396 | ac_status=$? |
| 2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2398 | (exit $ac_status); }; then |
| 2399 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2400 | case $ac_file in |
| 2401 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2402 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2403 | break;; |
| 2404 | esac |
| 2405 | done |
| 2406 | else |
| 2407 | echo "$as_me: failed program was:" >&5 |
| 2408 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2409 | |
| 2410 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2411 | See \`config.log' for more details." >&5 |
| 2412 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2413 | See \`config.log' for more details." >&2;} |
| 2414 | { (exit 1); exit 1; }; } |
| 2415 | fi |
| 2416 | |
| 2417 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2418 | fi |
| 2419 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2420 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2421 | OBJEXT=$ac_cv_objext |
| 2422 | ac_objext=$OBJEXT |
| 2423 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2424 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2425 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2427 | else |
| 2428 | cat >conftest.$ac_ext <<_ACEOF |
| 2429 | /* confdefs.h. */ |
| 2430 | _ACEOF |
| 2431 | cat confdefs.h >>conftest.$ac_ext |
| 2432 | cat >>conftest.$ac_ext <<_ACEOF |
| 2433 | /* end confdefs.h. */ |
| 2434 | |
| 2435 | int |
| 2436 | main () |
| 2437 | { |
| 2438 | #ifndef __GNUC__ |
| 2439 | choke me |
| 2440 | #endif |
| 2441 | |
| 2442 | ; |
| 2443 | return 0; |
| 2444 | } |
| 2445 | _ACEOF |
| 2446 | rm -f conftest.$ac_objext |
| 2447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2448 | (eval $ac_compile) 2>conftest.er1 |
| 2449 | ac_status=$? |
| 2450 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2451 | rm -f conftest.er1 |
| 2452 | cat conftest.err >&5 |
| 2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2454 | (exit $ac_status); } && |
| 2455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2457 | (eval $ac_try) 2>&5 |
| 2458 | ac_status=$? |
| 2459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2460 | (exit $ac_status); }; } && |
| 2461 | { ac_try='test -s conftest.$ac_objext' |
| 2462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2463 | (eval $ac_try) 2>&5 |
| 2464 | ac_status=$? |
| 2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2466 | (exit $ac_status); }; }; then |
| 2467 | ac_compiler_gnu=yes |
| 2468 | else |
| 2469 | echo "$as_me: failed program was:" >&5 |
| 2470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2471 | |
| 2472 | ac_compiler_gnu=no |
| 2473 | fi |
| 2474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2475 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2476 | |
| 2477 | fi |
| 2478 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2479 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2480 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2481 | ac_test_CFLAGS=${CFLAGS+set} |
| 2482 | ac_save_CFLAGS=$CFLAGS |
| 2483 | CFLAGS="-g" |
| 2484 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2485 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2486 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2488 | else |
| 2489 | cat >conftest.$ac_ext <<_ACEOF |
| 2490 | /* confdefs.h. */ |
| 2491 | _ACEOF |
| 2492 | cat confdefs.h >>conftest.$ac_ext |
| 2493 | cat >>conftest.$ac_ext <<_ACEOF |
| 2494 | /* end confdefs.h. */ |
| 2495 | |
| 2496 | int |
| 2497 | main () |
| 2498 | { |
| 2499 | |
| 2500 | ; |
| 2501 | return 0; |
| 2502 | } |
| 2503 | _ACEOF |
| 2504 | rm -f conftest.$ac_objext |
| 2505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2506 | (eval $ac_compile) 2>conftest.er1 |
| 2507 | ac_status=$? |
| 2508 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2509 | rm -f conftest.er1 |
| 2510 | cat conftest.err >&5 |
| 2511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2512 | (exit $ac_status); } && |
| 2513 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2515 | (eval $ac_try) 2>&5 |
| 2516 | ac_status=$? |
| 2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2518 | (exit $ac_status); }; } && |
| 2519 | { ac_try='test -s conftest.$ac_objext' |
| 2520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2521 | (eval $ac_try) 2>&5 |
| 2522 | ac_status=$? |
| 2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2524 | (exit $ac_status); }; }; then |
| 2525 | ac_cv_prog_cc_g=yes |
| 2526 | else |
| 2527 | echo "$as_me: failed program was:" >&5 |
| 2528 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2529 | |
| 2530 | ac_cv_prog_cc_g=no |
| 2531 | fi |
| 2532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2533 | fi |
| 2534 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2535 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2536 | if test "$ac_test_CFLAGS" = set; then |
| 2537 | CFLAGS=$ac_save_CFLAGS |
| 2538 | elif test $ac_cv_prog_cc_g = yes; then |
| 2539 | if test "$GCC" = yes; then |
| 2540 | CFLAGS="-g -O2" |
| 2541 | else |
| 2542 | CFLAGS="-g" |
| 2543 | fi |
| 2544 | else |
| 2545 | if test "$GCC" = yes; then |
| 2546 | CFLAGS="-O2" |
| 2547 | else |
| 2548 | CFLAGS= |
| 2549 | fi |
| 2550 | fi |
| 2551 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2552 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2553 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2555 | else |
| 2556 | ac_cv_prog_cc_stdc=no |
| 2557 | ac_save_CC=$CC |
| 2558 | cat >conftest.$ac_ext <<_ACEOF |
| 2559 | /* confdefs.h. */ |
| 2560 | _ACEOF |
| 2561 | cat confdefs.h >>conftest.$ac_ext |
| 2562 | cat >>conftest.$ac_ext <<_ACEOF |
| 2563 | /* end confdefs.h. */ |
| 2564 | #include <stdarg.h> |
| 2565 | #include <stdio.h> |
| 2566 | #include <sys/types.h> |
| 2567 | #include <sys/stat.h> |
| 2568 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2569 | struct buf { int x; }; |
| 2570 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2571 | static char *e (p, i) |
| 2572 | char **p; |
| 2573 | int i; |
| 2574 | { |
| 2575 | return p[i]; |
| 2576 | } |
| 2577 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2578 | { |
| 2579 | char *s; |
| 2580 | va_list v; |
| 2581 | va_start (v,p); |
| 2582 | s = g (p, va_arg (v,int)); |
| 2583 | va_end (v); |
| 2584 | return s; |
| 2585 | } |
| 2586 | |
| 2587 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2588 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2589 | These don't provoke an error unfortunately, instead are silently treated |
| 2590 | as 'x'. The following induces an error, until -std1 is added to get |
| 2591 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2592 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2593 | that's true only with -std1. */ |
| 2594 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2595 | |
| 2596 | int test (int i, double x); |
| 2597 | struct s1 {int (*f) (int a);}; |
| 2598 | struct s2 {int (*f) (double a);}; |
| 2599 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2600 | int argc; |
| 2601 | char **argv; |
| 2602 | int |
| 2603 | main () |
| 2604 | { |
| 2605 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2606 | ; |
| 2607 | return 0; |
| 2608 | } |
| 2609 | _ACEOF |
| 2610 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2611 | # breaks some systems' header files. |
| 2612 | # AIX -qlanglvl=ansi |
| 2613 | # Ultrix and OSF/1 -std1 |
| 2614 | # HP-UX 10.20 and later -Ae |
| 2615 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2616 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2617 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2618 | do |
| 2619 | CC="$ac_save_CC $ac_arg" |
| 2620 | rm -f conftest.$ac_objext |
| 2621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2622 | (eval $ac_compile) 2>conftest.er1 |
| 2623 | ac_status=$? |
| 2624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2625 | rm -f conftest.er1 |
| 2626 | cat conftest.err >&5 |
| 2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2628 | (exit $ac_status); } && |
| 2629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2631 | (eval $ac_try) 2>&5 |
| 2632 | ac_status=$? |
| 2633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2634 | (exit $ac_status); }; } && |
| 2635 | { ac_try='test -s conftest.$ac_objext' |
| 2636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2637 | (eval $ac_try) 2>&5 |
| 2638 | ac_status=$? |
| 2639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2640 | (exit $ac_status); }; }; then |
| 2641 | ac_cv_prog_cc_stdc=$ac_arg |
| 2642 | break |
| 2643 | else |
| 2644 | echo "$as_me: failed program was:" >&5 |
| 2645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2646 | |
| 2647 | fi |
| 2648 | rm -f conftest.err conftest.$ac_objext |
| 2649 | done |
| 2650 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2651 | CC=$ac_save_CC |
| 2652 | |
| 2653 | fi |
| 2654 | |
| 2655 | case "x$ac_cv_prog_cc_stdc" in |
| 2656 | x|xno) |
| 2657 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2658 | echo "${ECHO_T}none needed" >&6 ;; |
| 2659 | *) |
| 2660 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2661 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2662 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2663 | esac |
| 2664 | |
| 2665 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2666 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2667 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2668 | # the declaration of exit, since it's the most demanding environment. |
| 2669 | cat >conftest.$ac_ext <<_ACEOF |
| 2670 | #ifndef __cplusplus |
| 2671 | choke me |
| 2672 | #endif |
| 2673 | _ACEOF |
| 2674 | rm -f conftest.$ac_objext |
| 2675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2676 | (eval $ac_compile) 2>conftest.er1 |
| 2677 | ac_status=$? |
| 2678 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2679 | rm -f conftest.er1 |
| 2680 | cat conftest.err >&5 |
| 2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2682 | (exit $ac_status); } && |
| 2683 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2685 | (eval $ac_try) 2>&5 |
| 2686 | ac_status=$? |
| 2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2688 | (exit $ac_status); }; } && |
| 2689 | { ac_try='test -s conftest.$ac_objext' |
| 2690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2691 | (eval $ac_try) 2>&5 |
| 2692 | ac_status=$? |
| 2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2694 | (exit $ac_status); }; }; then |
| 2695 | for ac_declaration in \ |
| 2696 | '' \ |
| 2697 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2698 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2699 | 'extern "C" void exit (int) throw ();' \ |
| 2700 | 'extern "C" void exit (int);' \ |
| 2701 | 'void exit (int);' |
| 2702 | do |
| 2703 | cat >conftest.$ac_ext <<_ACEOF |
| 2704 | /* confdefs.h. */ |
| 2705 | _ACEOF |
| 2706 | cat confdefs.h >>conftest.$ac_ext |
| 2707 | cat >>conftest.$ac_ext <<_ACEOF |
| 2708 | /* end confdefs.h. */ |
| 2709 | $ac_declaration |
| 2710 | #include <stdlib.h> |
| 2711 | int |
| 2712 | main () |
| 2713 | { |
| 2714 | exit (42); |
| 2715 | ; |
| 2716 | return 0; |
| 2717 | } |
| 2718 | _ACEOF |
| 2719 | rm -f conftest.$ac_objext |
| 2720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2721 | (eval $ac_compile) 2>conftest.er1 |
| 2722 | ac_status=$? |
| 2723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2724 | rm -f conftest.er1 |
| 2725 | cat conftest.err >&5 |
| 2726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2727 | (exit $ac_status); } && |
| 2728 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2730 | (eval $ac_try) 2>&5 |
| 2731 | ac_status=$? |
| 2732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2733 | (exit $ac_status); }; } && |
| 2734 | { ac_try='test -s conftest.$ac_objext' |
| 2735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2736 | (eval $ac_try) 2>&5 |
| 2737 | ac_status=$? |
| 2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2739 | (exit $ac_status); }; }; then |
| 2740 | : |
| 2741 | else |
| 2742 | echo "$as_me: failed program was:" >&5 |
| 2743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2744 | |
| 2745 | continue |
| 2746 | fi |
| 2747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2748 | cat >conftest.$ac_ext <<_ACEOF |
| 2749 | /* confdefs.h. */ |
| 2750 | _ACEOF |
| 2751 | cat confdefs.h >>conftest.$ac_ext |
| 2752 | cat >>conftest.$ac_ext <<_ACEOF |
| 2753 | /* end confdefs.h. */ |
| 2754 | $ac_declaration |
| 2755 | int |
| 2756 | main () |
| 2757 | { |
| 2758 | exit (42); |
| 2759 | ; |
| 2760 | return 0; |
| 2761 | } |
| 2762 | _ACEOF |
| 2763 | rm -f conftest.$ac_objext |
| 2764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2765 | (eval $ac_compile) 2>conftest.er1 |
| 2766 | ac_status=$? |
| 2767 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2768 | rm -f conftest.er1 |
| 2769 | cat conftest.err >&5 |
| 2770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2771 | (exit $ac_status); } && |
| 2772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2774 | (eval $ac_try) 2>&5 |
| 2775 | ac_status=$? |
| 2776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2777 | (exit $ac_status); }; } && |
| 2778 | { ac_try='test -s conftest.$ac_objext' |
| 2779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2780 | (eval $ac_try) 2>&5 |
| 2781 | ac_status=$? |
| 2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2783 | (exit $ac_status); }; }; then |
| 2784 | break |
| 2785 | else |
| 2786 | echo "$as_me: failed program was:" >&5 |
| 2787 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2788 | |
| 2789 | fi |
| 2790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2791 | done |
| 2792 | rm -f conftest* |
| 2793 | if test -n "$ac_declaration"; then |
| 2794 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2795 | echo $ac_declaration >>confdefs.h |
| 2796 | echo '#endif' >>confdefs.h |
| 2797 | fi |
| 2798 | |
| 2799 | else |
| 2800 | echo "$as_me: failed program was:" >&5 |
| 2801 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2802 | |
| 2803 | fi |
| 2804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2805 | ac_ext=c |
| 2806 | ac_cpp='$CPP $CPPFLAGS' |
| 2807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2810 | DEPDIR="${am__leading_dot}deps" |
| 2811 | |
| 2812 | ac_config_commands="$ac_config_commands depfiles" |
| 2813 | |
| 2814 | |
| 2815 | am_make=${MAKE-make} |
| 2816 | cat > confinc << 'END' |
| 2817 | am__doit: |
| 2818 | @echo done |
| 2819 | .PHONY: am__doit |
| 2820 | END |
| 2821 | # If we don't find an include directive, just comment out the code. |
| 2822 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 2823 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 2824 | am__include="#" |
| 2825 | am__quote= |
| 2826 | _am_result=none |
| 2827 | # First try GNU make style include. |
| 2828 | echo "include confinc" > confmf |
| 2829 | # We grep out `Entering directory' and `Leaving directory' |
| 2830 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 2831 | # In particular we don't look at `^make:' because GNU make might |
| 2832 | # be invoked under some other name (usually "gmake"), in which |
| 2833 | # case it prints its new name instead of `make'. |
| 2834 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
| 2835 | am__include=include |
| 2836 | am__quote= |
| 2837 | _am_result=GNU |
| 2838 | fi |
| 2839 | # Now try BSD make style include. |
| 2840 | if test "$am__include" = "#"; then |
| 2841 | echo '.include "confinc"' > confmf |
| 2842 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 2843 | am__include=.include |
| 2844 | am__quote="\"" |
| 2845 | _am_result=BSD |
| 2846 | fi |
| 2847 | fi |
| 2848 | |
| 2849 | |
| 2850 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 2851 | echo "${ECHO_T}$_am_result" >&6 |
| 2852 | rm -f confinc confmf |
| 2853 | |
| 2854 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 2855 | if test "${enable_dependency_tracking+set}" = set; then |
| 2856 | enableval="$enable_dependency_tracking" |
| 2857 | |
| 2858 | fi; |
| 2859 | if test "x$enable_dependency_tracking" != xno; then |
| 2860 | am_depcomp="$ac_aux_dir/depcomp" |
| 2861 | AMDEPBACKSLASH='\' |
| 2862 | fi |
| 2863 | |
| 2864 | |
| 2865 | if test "x$enable_dependency_tracking" != xno; then |
| 2866 | AMDEP_TRUE= |
| 2867 | AMDEP_FALSE='#' |
| 2868 | else |
| 2869 | AMDEP_TRUE='#' |
| 2870 | AMDEP_FALSE= |
| 2871 | fi |
| 2872 | |
| 2873 | |
| 2874 | |
| 2875 | |
| 2876 | depcc="$CC" am_compiler_list= |
| 2877 | |
| 2878 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2879 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2880 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2882 | else |
| 2883 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2884 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2885 | # making bogus files that we don't know about and never remove. For |
| 2886 | # instance it was reported that on HP-UX the gcc test will end up |
| 2887 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2888 | # in D'. |
| 2889 | mkdir conftest.dir |
| 2890 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2891 | # using a relative directory. |
| 2892 | cp "$am_depcomp" conftest.dir |
| 2893 | cd conftest.dir |
| 2894 | # We will build objects and dependencies in a subdirectory because |
| 2895 | # it helps to detect inapplicable dependency modes. For instance |
| 2896 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 2897 | # side effect of compilation, but ICC will put the dependencies in |
| 2898 | # the current directory while Tru64 will put them in the object |
| 2899 | # directory. |
| 2900 | mkdir sub |
| 2901 | |
| 2902 | am_cv_CC_dependencies_compiler_type=none |
| 2903 | if test "$am_compiler_list" = ""; then |
| 2904 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2905 | fi |
| 2906 | for depmode in $am_compiler_list; do |
| 2907 | # Setup a source with many dependencies, because some compilers |
| 2908 | # like to wrap large dependency lists on column 80 (with \), and |
| 2909 | # we should not choose a depcomp mode which is confused by this. |
| 2910 | # |
| 2911 | # We need to recreate these files for each test, as the compiler may |
| 2912 | # overwrite some of them when testing with obscure command lines. |
| 2913 | # This happens at least with the AIX C compiler. |
| 2914 | : > sub/conftest.c |
| 2915 | for i in 1 2 3 4 5 6; do |
| 2916 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 2917 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 2918 | # Solaris 8's {/usr,}/bin/sh. |
| 2919 | touch sub/conftst$i.h |
| 2920 | done |
| 2921 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 2922 | |
| 2923 | case $depmode in |
| 2924 | nosideeffect) |
| 2925 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2926 | # only be used when explicitly requested |
| 2927 | if test "x$enable_dependency_tracking" = xyes; then |
| 2928 | continue |
| 2929 | else |
| 2930 | break |
| 2931 | fi |
| 2932 | ;; |
| 2933 | none) break ;; |
| 2934 | esac |
| 2935 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2936 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2937 | # handle `-M -o', and we need to detect this. |
| 2938 | if depmode=$depmode \ |
| 2939 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 2940 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 2941 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 2942 | >/dev/null 2>conftest.err && |
| 2943 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 2944 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 2945 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2946 | # icc doesn't choke on unknown options, it will just issue warnings |
| 2947 | # or remarks (even with -Werror). So we grep stderr for any message |
| 2948 | # that says an option was ignored or not supported. |
| 2949 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 2950 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 2951 | # The diagnosis changed in icc 8.0: |
| 2952 | # icc: Command line remark: option '-MP' not supported |
| 2953 | if (grep 'ignoring option' conftest.err || |
| 2954 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 2955 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2956 | break |
| 2957 | fi |
| 2958 | fi |
| 2959 | done |
| 2960 | |
| 2961 | cd .. |
| 2962 | rm -rf conftest.dir |
| 2963 | else |
| 2964 | am_cv_CC_dependencies_compiler_type=none |
| 2965 | fi |
| 2966 | |
| 2967 | fi |
| 2968 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2969 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2970 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 2971 | |
| 2972 | |
| 2973 | |
| 2974 | if |
| 2975 | test "x$enable_dependency_tracking" != xno \ |
| 2976 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 2977 | am__fastdepCC_TRUE= |
| 2978 | am__fastdepCC_FALSE='#' |
| 2979 | else |
| 2980 | am__fastdepCC_TRUE='#' |
| 2981 | am__fastdepCC_FALSE= |
| 2982 | fi |
| 2983 | |
| 2984 | |
| 2985 | if ${debugbuild}; then |
| 2986 | CFLAGS="-ggdb -g3" |
| 2987 | else |
| 2988 | CFLAGS="-g -O2" |
| 2989 | fi |
| 2990 | |
| 2991 | # Find a good install program. We prefer a C program (faster), |
| 2992 | # so one script is as good as another. But avoid the broken or |
| 2993 | # incompatible versions: |
| 2994 | # SysV /etc/install, /usr/sbin/install |
| 2995 | # SunOS /usr/etc/install |
| 2996 | # IRIX /sbin/install |
| 2997 | # AIX /bin/install |
| 2998 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2999 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3000 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3001 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3002 | # OS/2's system install, which has a completely different semantic |
| 3003 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3004 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3005 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 3006 | if test -z "$INSTALL"; then |
| 3007 | if test "${ac_cv_path_install+set}" = set; then |
| 3008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3009 | else |
| 3010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3011 | for as_dir in $PATH |
| 3012 | do |
| 3013 | IFS=$as_save_IFS |
| 3014 | test -z "$as_dir" && as_dir=. |
| 3015 | # Account for people who put trailing slashes in PATH elements. |
| 3016 | case $as_dir/ in |
| 3017 | ./ | .// | /cC/* | \ |
| 3018 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3019 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 3020 | /usr/ucb/* ) ;; |
| 3021 | *) |
| 3022 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3023 | # Don't use installbsd from OSF since it installs stuff as root |
| 3024 | # by default. |
| 3025 | for ac_prog in ginstall scoinst install; do |
| 3026 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3027 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3028 | if test $ac_prog = install && |
| 3029 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3030 | # AIX install. It has an incompatible calling convention. |
| 3031 | : |
| 3032 | elif test $ac_prog = install && |
| 3033 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3034 | # program-specific install script used by HP pwplus--don't use. |
| 3035 | : |
| 3036 | else |
| 3037 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3038 | break 3 |
| 3039 | fi |
| 3040 | fi |
| 3041 | done |
| 3042 | done |
| 3043 | ;; |
| 3044 | esac |
| 3045 | done |
| 3046 | |
| 3047 | |
| 3048 | fi |
| 3049 | if test "${ac_cv_path_install+set}" = set; then |
| 3050 | INSTALL=$ac_cv_path_install |
| 3051 | else |
| 3052 | # As a last resort, use the slow shell script. We don't cache a |
| 3053 | # path for INSTALL within a source directory, because that will |
| 3054 | # break other packages using the cache if that directory is |
| 3055 | # removed, or if the path is relative. |
| 3056 | INSTALL=$ac_install_sh |
| 3057 | fi |
| 3058 | fi |
| 3059 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3060 | echo "${ECHO_T}$INSTALL" >&6 |
| 3061 | |
| 3062 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3063 | # It thinks the first close brace ends the variable substitution. |
| 3064 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3065 | |
| 3066 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3067 | |
| 3068 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3069 | |
| 3070 | |
| 3071 | # Checks for libraries. |
| 3072 | |
| 3073 | |
| 3074 | echo "$as_me:$LINENO: checking for tre_regwcomp in -ltre" >&5 |
| 3075 | echo $ECHO_N "checking for tre_regwcomp in -ltre... $ECHO_C" >&6 |
| 3076 | if test "${ac_cv_lib_tre_tre_regwcomp+set}" = set; then |
| 3077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3078 | else |
| 3079 | ac_check_lib_save_LIBS=$LIBS |
| 3080 | LIBS="-ltre $LIBS" |
| 3081 | cat >conftest.$ac_ext <<_ACEOF |
| 3082 | /* confdefs.h. */ |
| 3083 | _ACEOF |
| 3084 | cat confdefs.h >>conftest.$ac_ext |
| 3085 | cat >>conftest.$ac_ext <<_ACEOF |
| 3086 | /* end confdefs.h. */ |
| 3087 | |
| 3088 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3089 | #ifdef __cplusplus |
| 3090 | extern "C" |
| 3091 | #endif |
| 3092 | /* We use char because int might match the return type of a gcc2 |
| 3093 | builtin and then its argument prototype would still apply. */ |
| 3094 | char tre_regwcomp (); |
| 3095 | int |
| 3096 | main () |
| 3097 | { |
| 3098 | tre_regwcomp (); |
| 3099 | ; |
| 3100 | return 0; |
| 3101 | } |
| 3102 | _ACEOF |
| 3103 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3105 | (eval $ac_link) 2>conftest.er1 |
| 3106 | ac_status=$? |
| 3107 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3108 | rm -f conftest.er1 |
| 3109 | cat conftest.err >&5 |
| 3110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3111 | (exit $ac_status); } && |
| 3112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3114 | (eval $ac_try) 2>&5 |
| 3115 | ac_status=$? |
| 3116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3117 | (exit $ac_status); }; } && |
| 3118 | { ac_try='test -s conftest$ac_exeext' |
| 3119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3120 | (eval $ac_try) 2>&5 |
| 3121 | ac_status=$? |
| 3122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3123 | (exit $ac_status); }; }; then |
| 3124 | ac_cv_lib_tre_tre_regwcomp=yes |
| 3125 | else |
| 3126 | echo "$as_me: failed program was:" >&5 |
| 3127 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3128 | |
| 3129 | ac_cv_lib_tre_tre_regwcomp=no |
| 3130 | fi |
| 3131 | rm -f conftest.err conftest.$ac_objext \ |
| 3132 | conftest$ac_exeext conftest.$ac_ext |
| 3133 | LIBS=$ac_check_lib_save_LIBS |
| 3134 | fi |
| 3135 | echo "$as_me:$LINENO: result: $ac_cv_lib_tre_tre_regwcomp" >&5 |
| 3136 | echo "${ECHO_T}$ac_cv_lib_tre_tre_regwcomp" >&6 |
| 3137 | if test $ac_cv_lib_tre_tre_regwcomp = yes; then |
| 3138 | cat >>confdefs.h <<_ACEOF |
| 3139 | #define HAVE_LIBTRE 1 |
| 3140 | _ACEOF |
| 3141 | |
| 3142 | LIBS="-ltre $LIBS" |
| 3143 | |
| 3144 | else |
| 3145 | { { echo "$as_me:$LINENO: error: libtre not found. see http://laurikari.net/tre/" >&5 |
| 3146 | echo "$as_me: error: libtre not found. see http://laurikari.net/tre/" >&2;} |
| 3147 | { (exit 1); exit 1; }; } |
| 3148 | fi |
| 3149 | |
| 3150 | echo "$as_me:$LINENO: checking for gettext in -lintl" >&5 |
| 3151 | echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6 |
| 3152 | if test "${ac_cv_lib_intl_gettext+set}" = set; then |
| 3153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3154 | else |
| 3155 | ac_check_lib_save_LIBS=$LIBS |
| 3156 | LIBS="-lintl $LIBS" |
| 3157 | cat >conftest.$ac_ext <<_ACEOF |
| 3158 | /* confdefs.h. */ |
| 3159 | _ACEOF |
| 3160 | cat confdefs.h >>conftest.$ac_ext |
| 3161 | cat >>conftest.$ac_ext <<_ACEOF |
| 3162 | /* end confdefs.h. */ |
| 3163 | |
| 3164 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3165 | #ifdef __cplusplus |
| 3166 | extern "C" |
| 3167 | #endif |
| 3168 | /* We use char because int might match the return type of a gcc2 |
| 3169 | builtin and then its argument prototype would still apply. */ |
| 3170 | char gettext (); |
| 3171 | int |
| 3172 | main () |
| 3173 | { |
| 3174 | gettext (); |
| 3175 | ; |
| 3176 | return 0; |
| 3177 | } |
| 3178 | _ACEOF |
| 3179 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3181 | (eval $ac_link) 2>conftest.er1 |
| 3182 | ac_status=$? |
| 3183 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3184 | rm -f conftest.er1 |
| 3185 | cat conftest.err >&5 |
| 3186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3187 | (exit $ac_status); } && |
| 3188 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3190 | (eval $ac_try) 2>&5 |
| 3191 | ac_status=$? |
| 3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3193 | (exit $ac_status); }; } && |
| 3194 | { ac_try='test -s conftest$ac_exeext' |
| 3195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3196 | (eval $ac_try) 2>&5 |
| 3197 | ac_status=$? |
| 3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3199 | (exit $ac_status); }; }; then |
| 3200 | ac_cv_lib_intl_gettext=yes |
| 3201 | else |
| 3202 | echo "$as_me: failed program was:" >&5 |
| 3203 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3204 | |
| 3205 | ac_cv_lib_intl_gettext=no |
| 3206 | fi |
| 3207 | rm -f conftest.err conftest.$ac_objext \ |
| 3208 | conftest$ac_exeext conftest.$ac_ext |
| 3209 | LIBS=$ac_check_lib_save_LIBS |
| 3210 | fi |
| 3211 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5 |
| 3212 | echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6 |
| 3213 | if test $ac_cv_lib_intl_gettext = yes; then |
| 3214 | |
| 3215 | cat >>confdefs.h <<\_ACEOF |
| 3216 | #define HAVE_LIBINTL 1 |
| 3217 | _ACEOF |
| 3218 | |
| 3219 | fi |
| 3220 | |
| 3221 | #AM_GNU_GETTEXT |
| 3222 | |
| 3223 | # Checks for header files. |
| 3224 | ac_ext=c |
| 3225 | ac_cpp='$CPP $CPPFLAGS' |
| 3226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3229 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 3230 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 3231 | # On Suns, sometimes $CPP names a directory. |
| 3232 | if test -n "$CPP" && test -d "$CPP"; then |
| 3233 | CPP= |
| 3234 | fi |
| 3235 | if test -z "$CPP"; then |
| 3236 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 3237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3238 | else |
| 3239 | # Double quotes because CPP needs to be expanded |
| 3240 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3241 | do |
| 3242 | ac_preproc_ok=false |
| 3243 | for ac_c_preproc_warn_flag in '' yes |
| 3244 | do |
| 3245 | # Use a header file that comes with gcc, so configuring glibc |
| 3246 | # with a fresh cross-compiler works. |
| 3247 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3248 | # <limits.h> exists even on freestanding compilers. |
| 3249 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3250 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3251 | cat >conftest.$ac_ext <<_ACEOF |
| 3252 | /* confdefs.h. */ |
| 3253 | _ACEOF |
| 3254 | cat confdefs.h >>conftest.$ac_ext |
| 3255 | cat >>conftest.$ac_ext <<_ACEOF |
| 3256 | /* end confdefs.h. */ |
| 3257 | #ifdef __STDC__ |
| 3258 | # include <limits.h> |
| 3259 | #else |
| 3260 | # include <assert.h> |
| 3261 | #endif |
| 3262 | Syntax error |
| 3263 | _ACEOF |
| 3264 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3265 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3266 | ac_status=$? |
| 3267 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3268 | rm -f conftest.er1 |
| 3269 | cat conftest.err >&5 |
| 3270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3271 | (exit $ac_status); } >/dev/null; then |
| 3272 | if test -s conftest.err; then |
| 3273 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3274 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3275 | else |
| 3276 | ac_cpp_err= |
| 3277 | fi |
| 3278 | else |
| 3279 | ac_cpp_err=yes |
| 3280 | fi |
| 3281 | if test -z "$ac_cpp_err"; then |
| 3282 | : |
| 3283 | else |
| 3284 | echo "$as_me: failed program was:" >&5 |
| 3285 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3286 | |
| 3287 | # Broken: fails on valid input. |
| 3288 | continue |
| 3289 | fi |
| 3290 | rm -f conftest.err conftest.$ac_ext |
| 3291 | |
| 3292 | # OK, works on sane cases. Now check whether non-existent headers |
| 3293 | # can be detected and how. |
| 3294 | cat >conftest.$ac_ext <<_ACEOF |
| 3295 | /* confdefs.h. */ |
| 3296 | _ACEOF |
| 3297 | cat confdefs.h >>conftest.$ac_ext |
| 3298 | cat >>conftest.$ac_ext <<_ACEOF |
| 3299 | /* end confdefs.h. */ |
| 3300 | #include <ac_nonexistent.h> |
| 3301 | _ACEOF |
| 3302 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3303 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3304 | ac_status=$? |
| 3305 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3306 | rm -f conftest.er1 |
| 3307 | cat conftest.err >&5 |
| 3308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3309 | (exit $ac_status); } >/dev/null; then |
| 3310 | if test -s conftest.err; then |
| 3311 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3312 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3313 | else |
| 3314 | ac_cpp_err= |
| 3315 | fi |
| 3316 | else |
| 3317 | ac_cpp_err=yes |
| 3318 | fi |
| 3319 | if test -z "$ac_cpp_err"; then |
| 3320 | # Broken: success on invalid input. |
| 3321 | continue |
| 3322 | else |
| 3323 | echo "$as_me: failed program was:" >&5 |
| 3324 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3325 | |
| 3326 | # Passes both tests. |
| 3327 | ac_preproc_ok=: |
| 3328 | break |
| 3329 | fi |
| 3330 | rm -f conftest.err conftest.$ac_ext |
| 3331 | |
| 3332 | done |
| 3333 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3334 | rm -f conftest.err conftest.$ac_ext |
| 3335 | if $ac_preproc_ok; then |
| 3336 | break |
| 3337 | fi |
| 3338 | |
| 3339 | done |
| 3340 | ac_cv_prog_CPP=$CPP |
| 3341 | |
| 3342 | fi |
| 3343 | CPP=$ac_cv_prog_CPP |
| 3344 | else |
| 3345 | ac_cv_prog_CPP=$CPP |
| 3346 | fi |
| 3347 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3348 | echo "${ECHO_T}$CPP" >&6 |
| 3349 | ac_preproc_ok=false |
| 3350 | for ac_c_preproc_warn_flag in '' yes |
| 3351 | do |
| 3352 | # Use a header file that comes with gcc, so configuring glibc |
| 3353 | # with a fresh cross-compiler works. |
| 3354 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3355 | # <limits.h> exists even on freestanding compilers. |
| 3356 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3357 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3358 | cat >conftest.$ac_ext <<_ACEOF |
| 3359 | /* confdefs.h. */ |
| 3360 | _ACEOF |
| 3361 | cat confdefs.h >>conftest.$ac_ext |
| 3362 | cat >>conftest.$ac_ext <<_ACEOF |
| 3363 | /* end confdefs.h. */ |
| 3364 | #ifdef __STDC__ |
| 3365 | # include <limits.h> |
| 3366 | #else |
| 3367 | # include <assert.h> |
| 3368 | #endif |
| 3369 | Syntax error |
| 3370 | _ACEOF |
| 3371 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3372 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3373 | ac_status=$? |
| 3374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3375 | rm -f conftest.er1 |
| 3376 | cat conftest.err >&5 |
| 3377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3378 | (exit $ac_status); } >/dev/null; then |
| 3379 | if test -s conftest.err; then |
| 3380 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3381 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3382 | else |
| 3383 | ac_cpp_err= |
| 3384 | fi |
| 3385 | else |
| 3386 | ac_cpp_err=yes |
| 3387 | fi |
| 3388 | if test -z "$ac_cpp_err"; then |
| 3389 | : |
| 3390 | else |
| 3391 | echo "$as_me: failed program was:" >&5 |
| 3392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3393 | |
| 3394 | # Broken: fails on valid input. |
| 3395 | continue |
| 3396 | fi |
| 3397 | rm -f conftest.err conftest.$ac_ext |
| 3398 | |
| 3399 | # OK, works on sane cases. Now check whether non-existent headers |
| 3400 | # can be detected and how. |
| 3401 | cat >conftest.$ac_ext <<_ACEOF |
| 3402 | /* confdefs.h. */ |
| 3403 | _ACEOF |
| 3404 | cat confdefs.h >>conftest.$ac_ext |
| 3405 | cat >>conftest.$ac_ext <<_ACEOF |
| 3406 | /* end confdefs.h. */ |
| 3407 | #include <ac_nonexistent.h> |
| 3408 | _ACEOF |
| 3409 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3410 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3411 | ac_status=$? |
| 3412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3413 | rm -f conftest.er1 |
| 3414 | cat conftest.err >&5 |
| 3415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3416 | (exit $ac_status); } >/dev/null; then |
| 3417 | if test -s conftest.err; then |
| 3418 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3419 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3420 | else |
| 3421 | ac_cpp_err= |
| 3422 | fi |
| 3423 | else |
| 3424 | ac_cpp_err=yes |
| 3425 | fi |
| 3426 | if test -z "$ac_cpp_err"; then |
| 3427 | # Broken: success on invalid input. |
| 3428 | continue |
| 3429 | else |
| 3430 | echo "$as_me: failed program was:" >&5 |
| 3431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3432 | |
| 3433 | # Passes both tests. |
| 3434 | ac_preproc_ok=: |
| 3435 | break |
| 3436 | fi |
| 3437 | rm -f conftest.err conftest.$ac_ext |
| 3438 | |
| 3439 | done |
| 3440 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3441 | rm -f conftest.err conftest.$ac_ext |
| 3442 | if $ac_preproc_ok; then |
| 3443 | : |
| 3444 | else |
| 3445 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3446 | See \`config.log' for more details." >&5 |
| 3447 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3448 | See \`config.log' for more details." >&2;} |
| 3449 | { (exit 1); exit 1; }; } |
| 3450 | fi |
| 3451 | |
| 3452 | ac_ext=c |
| 3453 | ac_cpp='$CPP $CPPFLAGS' |
| 3454 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3455 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3456 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3457 | |
| 3458 | |
| 3459 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3460 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 3461 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 3462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3463 | else |
| 3464 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 3465 | then ac_cv_prog_egrep='grep -E' |
| 3466 | else ac_cv_prog_egrep='egrep' |
| 3467 | fi |
| 3468 | fi |
| 3469 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 3470 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 3471 | EGREP=$ac_cv_prog_egrep |
| 3472 | |
| 3473 | |
| 3474 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3475 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3476 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3478 | else |
| 3479 | cat >conftest.$ac_ext <<_ACEOF |
| 3480 | /* confdefs.h. */ |
| 3481 | _ACEOF |
| 3482 | cat confdefs.h >>conftest.$ac_ext |
| 3483 | cat >>conftest.$ac_ext <<_ACEOF |
| 3484 | /* end confdefs.h. */ |
| 3485 | #include <stdlib.h> |
| 3486 | #include <stdarg.h> |
| 3487 | #include <string.h> |
| 3488 | #include <float.h> |
| 3489 | |
| 3490 | int |
| 3491 | main () |
| 3492 | { |
| 3493 | |
| 3494 | ; |
| 3495 | return 0; |
| 3496 | } |
| 3497 | _ACEOF |
| 3498 | rm -f conftest.$ac_objext |
| 3499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3500 | (eval $ac_compile) 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_c_werror_flag" || test ! -s conftest.err' |
| 3508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3509 | (eval $ac_try) 2>&5 |
| 3510 | ac_status=$? |
| 3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3512 | (exit $ac_status); }; } && |
| 3513 | { ac_try='test -s conftest.$ac_objext' |
| 3514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3515 | (eval $ac_try) 2>&5 |
| 3516 | ac_status=$? |
| 3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3518 | (exit $ac_status); }; }; then |
| 3519 | ac_cv_header_stdc=yes |
| 3520 | else |
| 3521 | echo "$as_me: failed program was:" >&5 |
| 3522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3523 | |
| 3524 | ac_cv_header_stdc=no |
| 3525 | fi |
| 3526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3527 | |
| 3528 | if test $ac_cv_header_stdc = yes; then |
| 3529 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3530 | cat >conftest.$ac_ext <<_ACEOF |
| 3531 | /* confdefs.h. */ |
| 3532 | _ACEOF |
| 3533 | cat confdefs.h >>conftest.$ac_ext |
| 3534 | cat >>conftest.$ac_ext <<_ACEOF |
| 3535 | /* end confdefs.h. */ |
| 3536 | #include <string.h> |
| 3537 | |
| 3538 | _ACEOF |
| 3539 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3540 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3541 | : |
| 3542 | else |
| 3543 | ac_cv_header_stdc=no |
| 3544 | fi |
| 3545 | rm -f conftest* |
| 3546 | |
| 3547 | fi |
| 3548 | |
| 3549 | if test $ac_cv_header_stdc = yes; then |
| 3550 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3551 | cat >conftest.$ac_ext <<_ACEOF |
| 3552 | /* confdefs.h. */ |
| 3553 | _ACEOF |
| 3554 | cat confdefs.h >>conftest.$ac_ext |
| 3555 | cat >>conftest.$ac_ext <<_ACEOF |
| 3556 | /* end confdefs.h. */ |
| 3557 | #include <stdlib.h> |
| 3558 | |
| 3559 | _ACEOF |
| 3560 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3561 | $EGREP "free" >/dev/null 2>&1; then |
| 3562 | : |
| 3563 | else |
| 3564 | ac_cv_header_stdc=no |
| 3565 | fi |
| 3566 | rm -f conftest* |
| 3567 | |
| 3568 | fi |
| 3569 | |
| 3570 | if test $ac_cv_header_stdc = yes; then |
| 3571 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3572 | if test "$cross_compiling" = yes; then |
| 3573 | : |
| 3574 | else |
| 3575 | cat >conftest.$ac_ext <<_ACEOF |
| 3576 | /* confdefs.h. */ |
| 3577 | _ACEOF |
| 3578 | cat confdefs.h >>conftest.$ac_ext |
| 3579 | cat >>conftest.$ac_ext <<_ACEOF |
| 3580 | /* end confdefs.h. */ |
| 3581 | #include <ctype.h> |
| 3582 | #if ((' ' & 0x0FF) == 0x020) |
| 3583 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3584 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3585 | #else |
| 3586 | # define ISLOWER(c) \ |
| 3587 | (('a' <= (c) && (c) <= 'i') \ |
| 3588 | || ('j' <= (c) && (c) <= 'r') \ |
| 3589 | || ('s' <= (c) && (c) <= 'z')) |
| 3590 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3591 | #endif |
| 3592 | |
| 3593 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3594 | int |
| 3595 | main () |
| 3596 | { |
| 3597 | int i; |
| 3598 | for (i = 0; i < 256; i++) |
| 3599 | if (XOR (islower (i), ISLOWER (i)) |
| 3600 | || toupper (i) != TOUPPER (i)) |
| 3601 | exit(2); |
| 3602 | exit (0); |
| 3603 | } |
| 3604 | _ACEOF |
| 3605 | rm -f conftest$ac_exeext |
| 3606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3607 | (eval $ac_link) 2>&5 |
| 3608 | ac_status=$? |
| 3609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3610 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3612 | (eval $ac_try) 2>&5 |
| 3613 | ac_status=$? |
| 3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3615 | (exit $ac_status); }; }; then |
| 3616 | : |
| 3617 | else |
| 3618 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3619 | echo "$as_me: failed program was:" >&5 |
| 3620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3621 | |
| 3622 | ( exit $ac_status ) |
| 3623 | ac_cv_header_stdc=no |
| 3624 | fi |
| 3625 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3626 | fi |
| 3627 | fi |
| 3628 | fi |
| 3629 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3630 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 3631 | if test $ac_cv_header_stdc = yes; then |
| 3632 | |
| 3633 | cat >>confdefs.h <<\_ACEOF |
| 3634 | #define STDC_HEADERS 1 |
| 3635 | _ACEOF |
| 3636 | |
| 3637 | fi |
| 3638 | |
| 3639 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3640 | |
| 3641 | |
| 3642 | |
| 3643 | |
| 3644 | |
| 3645 | |
| 3646 | |
| 3647 | |
| 3648 | |
| 3649 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3650 | inttypes.h stdint.h unistd.h |
| 3651 | do |
| 3652 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3653 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3657 | else |
| 3658 | cat >conftest.$ac_ext <<_ACEOF |
| 3659 | /* confdefs.h. */ |
| 3660 | _ACEOF |
| 3661 | cat confdefs.h >>conftest.$ac_ext |
| 3662 | cat >>conftest.$ac_ext <<_ACEOF |
| 3663 | /* end confdefs.h. */ |
| 3664 | $ac_includes_default |
| 3665 | |
| 3666 | #include <$ac_header> |
| 3667 | _ACEOF |
| 3668 | rm -f conftest.$ac_objext |
| 3669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3670 | (eval $ac_compile) 2>conftest.er1 |
| 3671 | ac_status=$? |
| 3672 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3673 | rm -f conftest.er1 |
| 3674 | cat conftest.err >&5 |
| 3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3676 | (exit $ac_status); } && |
| 3677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3679 | (eval $ac_try) 2>&5 |
| 3680 | ac_status=$? |
| 3681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3682 | (exit $ac_status); }; } && |
| 3683 | { ac_try='test -s conftest.$ac_objext' |
| 3684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3685 | (eval $ac_try) 2>&5 |
| 3686 | ac_status=$? |
| 3687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3688 | (exit $ac_status); }; }; then |
| 3689 | eval "$as_ac_Header=yes" |
| 3690 | else |
| 3691 | echo "$as_me: failed program was:" >&5 |
| 3692 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3693 | |
| 3694 | eval "$as_ac_Header=no" |
| 3695 | fi |
| 3696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3697 | fi |
| 3698 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3699 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3700 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3701 | cat >>confdefs.h <<_ACEOF |
| 3702 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3703 | _ACEOF |
| 3704 | |
| 3705 | fi |
| 3706 | |
| 3707 | done |
| 3708 | |
| 3709 | |
| 3710 | |
| 3711 | |
| 3712 | |
| 3713 | |
| 3714 | |
| 3715 | |
| 3716 | |
| 3717 | |
| 3718 | |
| 3719 | |
| 3720 | |
| 3721 | |
| 3722 | |
| 3723 | |
| 3724 | |
| 3725 | |
| 3726 | |
| 3727 | |
| 3728 | |
| 3729 | |
| 3730 | |
| 3731 | |
| 3732 | |
| 3733 | |
| 3734 | |
| 3735 | for ac_header in alloca.h ctype.h errno.h gnu/libc-version.h langinfo.h libintl.h limits.h locale.h stdargs.h stddef.h stdint.h stdlib.h string.h sys/file.h sys/stat.h time.h tre/tre.h unicode/umachine.h unicode/unorm.h uninum/unicode.h uninum/nsdefs.h uninum/uninum.h unistd.h wchar.h wctype.h |
| 3736 | do |
| 3737 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3739 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3740 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3741 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3743 | fi |
| 3744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3745 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3746 | else |
| 3747 | # Is the header compilable? |
| 3748 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3749 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3750 | cat >conftest.$ac_ext <<_ACEOF |
| 3751 | /* confdefs.h. */ |
| 3752 | _ACEOF |
| 3753 | cat confdefs.h >>conftest.$ac_ext |
| 3754 | cat >>conftest.$ac_ext <<_ACEOF |
| 3755 | /* end confdefs.h. */ |
| 3756 | $ac_includes_default |
| 3757 | #include <$ac_header> |
| 3758 | _ACEOF |
| 3759 | rm -f conftest.$ac_objext |
| 3760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3761 | (eval $ac_compile) 2>conftest.er1 |
| 3762 | ac_status=$? |
| 3763 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3764 | rm -f conftest.er1 |
| 3765 | cat conftest.err >&5 |
| 3766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3767 | (exit $ac_status); } && |
| 3768 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3770 | (eval $ac_try) 2>&5 |
| 3771 | ac_status=$? |
| 3772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3773 | (exit $ac_status); }; } && |
| 3774 | { ac_try='test -s conftest.$ac_objext' |
| 3775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3776 | (eval $ac_try) 2>&5 |
| 3777 | ac_status=$? |
| 3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3779 | (exit $ac_status); }; }; then |
| 3780 | ac_header_compiler=yes |
| 3781 | else |
| 3782 | echo "$as_me: failed program was:" >&5 |
| 3783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3784 | |
| 3785 | ac_header_compiler=no |
| 3786 | fi |
| 3787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3788 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3789 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3790 | |
| 3791 | # Is the header present? |
| 3792 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3793 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3794 | cat >conftest.$ac_ext <<_ACEOF |
| 3795 | /* confdefs.h. */ |
| 3796 | _ACEOF |
| 3797 | cat confdefs.h >>conftest.$ac_ext |
| 3798 | cat >>conftest.$ac_ext <<_ACEOF |
| 3799 | /* end confdefs.h. */ |
| 3800 | #include <$ac_header> |
| 3801 | _ACEOF |
| 3802 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3803 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3804 | ac_status=$? |
| 3805 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3806 | rm -f conftest.er1 |
| 3807 | cat conftest.err >&5 |
| 3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3809 | (exit $ac_status); } >/dev/null; then |
| 3810 | if test -s conftest.err; then |
| 3811 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3812 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3813 | else |
| 3814 | ac_cpp_err= |
| 3815 | fi |
| 3816 | else |
| 3817 | ac_cpp_err=yes |
| 3818 | fi |
| 3819 | if test -z "$ac_cpp_err"; then |
| 3820 | ac_header_preproc=yes |
| 3821 | else |
| 3822 | echo "$as_me: failed program was:" >&5 |
| 3823 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3824 | |
| 3825 | ac_header_preproc=no |
| 3826 | fi |
| 3827 | rm -f conftest.err conftest.$ac_ext |
| 3828 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3829 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3830 | |
| 3831 | # So? What about this header? |
| 3832 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3833 | yes:no: ) |
| 3834 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3835 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3836 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 3837 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 3838 | ac_header_preproc=yes |
| 3839 | ;; |
| 3840 | no:yes:* ) |
| 3841 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3842 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3843 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3844 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3845 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 3846 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 3847 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 3848 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3849 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3850 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 3851 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 3852 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 3853 | ( |
| 3854 | cat <<\_ASBOX |
| 3855 | ## ------------------------------------- ## |
| 3856 | ## Report this to [email protected] ## |
| 3857 | ## ------------------------------------- ## |
| 3858 | _ASBOX |
| 3859 | ) | |
| 3860 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3861 | ;; |
| 3862 | esac |
| 3863 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3864 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3865 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3867 | else |
| 3868 | eval "$as_ac_Header=\$ac_header_preproc" |
| 3869 | fi |
| 3870 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3871 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3872 | |
| 3873 | fi |
| 3874 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3875 | cat >>confdefs.h <<_ACEOF |
| 3876 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3877 | _ACEOF |
| 3878 | |
| 3879 | fi |
| 3880 | |
| 3881 | done |
| 3882 | |
| 3883 | |
| 3884 | if ${utf8proc}; then |
| 3885 | if test "${ac_cv_header_utf8proc_h+set}" = set; then |
| 3886 | echo "$as_me:$LINENO: checking for utf8proc.h" >&5 |
| 3887 | echo $ECHO_N "checking for utf8proc.h... $ECHO_C" >&6 |
| 3888 | if test "${ac_cv_header_utf8proc_h+set}" = set; then |
| 3889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3890 | fi |
| 3891 | echo "$as_me:$LINENO: result: $ac_cv_header_utf8proc_h" >&5 |
| 3892 | echo "${ECHO_T}$ac_cv_header_utf8proc_h" >&6 |
| 3893 | else |
| 3894 | # Is the header compilable? |
| 3895 | echo "$as_me:$LINENO: checking utf8proc.h usability" >&5 |
| 3896 | echo $ECHO_N "checking utf8proc.h usability... $ECHO_C" >&6 |
| 3897 | cat >conftest.$ac_ext <<_ACEOF |
| 3898 | /* confdefs.h. */ |
| 3899 | _ACEOF |
| 3900 | cat confdefs.h >>conftest.$ac_ext |
| 3901 | cat >>conftest.$ac_ext <<_ACEOF |
| 3902 | /* end confdefs.h. */ |
| 3903 | $ac_includes_default |
| 3904 | #include <utf8proc.h> |
| 3905 | _ACEOF |
| 3906 | rm -f conftest.$ac_objext |
| 3907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3908 | (eval $ac_compile) 2>conftest.er1 |
| 3909 | ac_status=$? |
| 3910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3911 | rm -f conftest.er1 |
| 3912 | cat conftest.err >&5 |
| 3913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3914 | (exit $ac_status); } && |
| 3915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 3916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3917 | (eval $ac_try) 2>&5 |
| 3918 | ac_status=$? |
| 3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3920 | (exit $ac_status); }; } && |
| 3921 | { ac_try='test -s conftest.$ac_objext' |
| 3922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3923 | (eval $ac_try) 2>&5 |
| 3924 | ac_status=$? |
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3926 | (exit $ac_status); }; }; then |
| 3927 | ac_header_compiler=yes |
| 3928 | else |
| 3929 | echo "$as_me: failed program was:" >&5 |
| 3930 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3931 | |
| 3932 | ac_header_compiler=no |
| 3933 | fi |
| 3934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3935 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3936 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3937 | |
| 3938 | # Is the header present? |
| 3939 | echo "$as_me:$LINENO: checking utf8proc.h presence" >&5 |
| 3940 | echo $ECHO_N "checking utf8proc.h presence... $ECHO_C" >&6 |
| 3941 | cat >conftest.$ac_ext <<_ACEOF |
| 3942 | /* confdefs.h. */ |
| 3943 | _ACEOF |
| 3944 | cat confdefs.h >>conftest.$ac_ext |
| 3945 | cat >>conftest.$ac_ext <<_ACEOF |
| 3946 | /* end confdefs.h. */ |
| 3947 | #include <utf8proc.h> |
| 3948 | _ACEOF |
| 3949 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3950 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3951 | ac_status=$? |
| 3952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3953 | rm -f conftest.er1 |
| 3954 | cat conftest.err >&5 |
| 3955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3956 | (exit $ac_status); } >/dev/null; then |
| 3957 | if test -s conftest.err; then |
| 3958 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3959 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 3960 | else |
| 3961 | ac_cpp_err= |
| 3962 | fi |
| 3963 | else |
| 3964 | ac_cpp_err=yes |
| 3965 | fi |
| 3966 | if test -z "$ac_cpp_err"; then |
| 3967 | ac_header_preproc=yes |
| 3968 | else |
| 3969 | echo "$as_me: failed program was:" >&5 |
| 3970 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3971 | |
| 3972 | ac_header_preproc=no |
| 3973 | fi |
| 3974 | rm -f conftest.err conftest.$ac_ext |
| 3975 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3976 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3977 | |
| 3978 | # So? What about this header? |
| 3979 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3980 | yes:no: ) |
| 3981 | { echo "$as_me:$LINENO: WARNING: utf8proc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3982 | echo "$as_me: WARNING: utf8proc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3983 | { echo "$as_me:$LINENO: WARNING: utf8proc.h: proceeding with the compiler's result" >&5 |
| 3984 | echo "$as_me: WARNING: utf8proc.h: proceeding with the compiler's result" >&2;} |
| 3985 | ac_header_preproc=yes |
| 3986 | ;; |
| 3987 | no:yes:* ) |
| 3988 | { echo "$as_me:$LINENO: WARNING: utf8proc.h: present but cannot be compiled" >&5 |
| 3989 | echo "$as_me: WARNING: utf8proc.h: present but cannot be compiled" >&2;} |
| 3990 | { echo "$as_me:$LINENO: WARNING: utf8proc.h: check for missing prerequisite headers?" >&5 |
| 3991 | echo "$as_me: WARNING: utf8proc.h: check for missing prerequisite headers?" >&2;} |
| 3992 | { echo "$as_me:$LINENO: WARNING: utf8proc.h: see the Autoconf documentation" >&5 |
| 3993 | echo "$as_me: WARNING: utf8proc.h: see the Autoconf documentation" >&2;} |
| 3994 | { echo "$as_me:$LINENO: WARNING: utf8proc.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3995 | echo "$as_me: WARNING: utf8proc.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3996 | { echo "$as_me:$LINENO: WARNING: utf8proc.h: proceeding with the preprocessor's result" >&5 |
| 3997 | echo "$as_me: WARNING: utf8proc.h: proceeding with the preprocessor's result" >&2;} |
| 3998 | { echo "$as_me:$LINENO: WARNING: utf8proc.h: in the future, the compiler will take precedence" >&5 |
| 3999 | echo "$as_me: WARNING: utf8proc.h: in the future, the compiler will take precedence" >&2;} |
| 4000 | ( |
| 4001 | cat <<\_ASBOX |
| 4002 | ## ------------------------------------- ## |
| 4003 | ## Report this to [email protected] ## |
| 4004 | ## ------------------------------------- ## |
| 4005 | _ASBOX |
| 4006 | ) | |
| 4007 | sed "s/^/$as_me: WARNING: /" >&2 |
| 4008 | ;; |
| 4009 | esac |
| 4010 | echo "$as_me:$LINENO: checking for utf8proc.h" >&5 |
| 4011 | echo $ECHO_N "checking for utf8proc.h... $ECHO_C" >&6 |
| 4012 | if test "${ac_cv_header_utf8proc_h+set}" = set; then |
| 4013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4014 | else |
| 4015 | ac_cv_header_utf8proc_h=$ac_header_preproc |
| 4016 | fi |
| 4017 | echo "$as_me:$LINENO: result: $ac_cv_header_utf8proc_h" >&5 |
| 4018 | echo "${ECHO_T}$ac_cv_header_utf8proc_h" >&6 |
| 4019 | |
| 4020 | fi |
| 4021 | if test $ac_cv_header_utf8proc_h = yes; then |
| 4022 | |
| 4023 | cat >>confdefs.h <<\_ACEOF |
| 4024 | #define HAVE_UTF8PROC_H 1 |
| 4025 | _ACEOF |
| 4026 | |
| 4027 | else |
| 4028 | { { echo "$as_me:$LINENO: error: LIB UTF8PROC and its header is obligatory. See http://www.flexiguided.de/publications.utf8proc.en.html" >&5 |
| 4029 | echo "$as_me: error: LIB UTF8PROC and its header is obligatory. See http://www.flexiguided.de/publications.utf8proc.en.html" >&2;} |
| 4030 | { (exit 1); exit 1; }; } |
| 4031 | fi |
| 4032 | |
| 4033 | |
| 4034 | fi |
| 4035 | |
| 4036 | if ${uninum}; then |
| 4037 | |
| 4038 | echo "$as_me:$LINENO: checking for uninum_version in -luninum" >&5 |
| 4039 | echo $ECHO_N "checking for uninum_version in -luninum... $ECHO_C" >&6 |
| 4040 | if test "${ac_cv_lib_uninum_uninum_version+set}" = set; then |
| 4041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4042 | else |
| 4043 | ac_check_lib_save_LIBS=$LIBS |
| 4044 | LIBS="-luninum $LIBS" |
| 4045 | cat >conftest.$ac_ext <<_ACEOF |
| 4046 | /* confdefs.h. */ |
| 4047 | _ACEOF |
| 4048 | cat confdefs.h >>conftest.$ac_ext |
| 4049 | cat >>conftest.$ac_ext <<_ACEOF |
| 4050 | /* end confdefs.h. */ |
| 4051 | |
| 4052 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4053 | #ifdef __cplusplus |
| 4054 | extern "C" |
| 4055 | #endif |
| 4056 | /* We use char because int might match the return type of a gcc2 |
| 4057 | builtin and then its argument prototype would still apply. */ |
| 4058 | char uninum_version (); |
| 4059 | int |
| 4060 | main () |
| 4061 | { |
| 4062 | uninum_version (); |
| 4063 | ; |
| 4064 | return 0; |
| 4065 | } |
| 4066 | _ACEOF |
| 4067 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4069 | (eval $ac_link) 2>conftest.er1 |
| 4070 | ac_status=$? |
| 4071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4072 | rm -f conftest.er1 |
| 4073 | cat conftest.err >&5 |
| 4074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4075 | (exit $ac_status); } && |
| 4076 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4078 | (eval $ac_try) 2>&5 |
| 4079 | ac_status=$? |
| 4080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4081 | (exit $ac_status); }; } && |
| 4082 | { ac_try='test -s conftest$ac_exeext' |
| 4083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4084 | (eval $ac_try) 2>&5 |
| 4085 | ac_status=$? |
| 4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4087 | (exit $ac_status); }; }; then |
| 4088 | ac_cv_lib_uninum_uninum_version=yes |
| 4089 | else |
| 4090 | echo "$as_me: failed program was:" >&5 |
| 4091 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4092 | |
| 4093 | ac_cv_lib_uninum_uninum_version=no |
| 4094 | fi |
| 4095 | rm -f conftest.err conftest.$ac_objext \ |
| 4096 | conftest$ac_exeext conftest.$ac_ext |
| 4097 | LIBS=$ac_check_lib_save_LIBS |
| 4098 | fi |
| 4099 | echo "$as_me:$LINENO: result: $ac_cv_lib_uninum_uninum_version" >&5 |
| 4100 | echo "${ECHO_T}$ac_cv_lib_uninum_uninum_version" >&6 |
| 4101 | if test $ac_cv_lib_uninum_uninum_version = yes; then |
| 4102 | cat >>confdefs.h <<_ACEOF |
| 4103 | #define HAVE_LIBUNINUM 1 |
| 4104 | _ACEOF |
| 4105 | |
| 4106 | LIBS="-luninum $LIBS" |
| 4107 | |
| 4108 | else |
| 4109 | { { echo "$as_me:$LINENO: error: libuninum not found" >&5 |
| 4110 | echo "$as_me: error: libuninum not found" >&2;} |
| 4111 | { (exit 1); exit 1; }; } |
| 4112 | fi |
| 4113 | |
| 4114 | fi |
| 4115 | |
| 4116 | # Checks for typedefs, structures, and compiler characteristics. |
| 4117 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4118 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 4119 | if test "${ac_cv_c_const+set}" = set; then |
| 4120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4121 | else |
| 4122 | cat >conftest.$ac_ext <<_ACEOF |
| 4123 | /* confdefs.h. */ |
| 4124 | _ACEOF |
| 4125 | cat confdefs.h >>conftest.$ac_ext |
| 4126 | cat >>conftest.$ac_ext <<_ACEOF |
| 4127 | /* end confdefs.h. */ |
| 4128 | |
| 4129 | int |
| 4130 | main () |
| 4131 | { |
| 4132 | /* FIXME: Include the comments suggested by Paul. */ |
| 4133 | #ifndef __cplusplus |
| 4134 | /* Ultrix mips cc rejects this. */ |
| 4135 | typedef int charset[2]; |
| 4136 | const charset x; |
| 4137 | /* SunOS 4.1.1 cc rejects this. */ |
| 4138 | char const *const *ccp; |
| 4139 | char **p; |
| 4140 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4141 | struct point {int x, y;}; |
| 4142 | static struct point const zero = {0,0}; |
| 4143 | /* AIX XL C 1.02.0.0 rejects this. |
| 4144 | It does not let you subtract one const X* pointer from another in |
| 4145 | an arm of an if-expression whose if-part is not a constant |
| 4146 | expression */ |
| 4147 | const char *g = "string"; |
| 4148 | ccp = &g + (g ? g-g : 0); |
| 4149 | /* HPUX 7.0 cc rejects these. */ |
| 4150 | ++ccp; |
| 4151 | p = (char**) ccp; |
| 4152 | ccp = (char const *const *) p; |
| 4153 | { /* SCO 3.2v4 cc rejects this. */ |
| 4154 | char *t; |
| 4155 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4156 | |
| 4157 | *t++ = 0; |
| 4158 | } |
| 4159 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4160 | int x[] = {25, 17}; |
| 4161 | const int *foo = &x[0]; |
| 4162 | ++foo; |
| 4163 | } |
| 4164 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4165 | typedef const int *iptr; |
| 4166 | iptr p = 0; |
| 4167 | ++p; |
| 4168 | } |
| 4169 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4170 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4171 | struct s { int j; const int *ap[3]; }; |
| 4172 | struct s *b; b->j = 5; |
| 4173 | } |
| 4174 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4175 | const int foo = 10; |
| 4176 | } |
| 4177 | #endif |
| 4178 | |
| 4179 | ; |
| 4180 | return 0; |
| 4181 | } |
| 4182 | _ACEOF |
| 4183 | rm -f conftest.$ac_objext |
| 4184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4185 | (eval $ac_compile) 2>conftest.er1 |
| 4186 | ac_status=$? |
| 4187 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4188 | rm -f conftest.er1 |
| 4189 | cat conftest.err >&5 |
| 4190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4191 | (exit $ac_status); } && |
| 4192 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4194 | (eval $ac_try) 2>&5 |
| 4195 | ac_status=$? |
| 4196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4197 | (exit $ac_status); }; } && |
| 4198 | { ac_try='test -s conftest.$ac_objext' |
| 4199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4200 | (eval $ac_try) 2>&5 |
| 4201 | ac_status=$? |
| 4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4203 | (exit $ac_status); }; }; then |
| 4204 | ac_cv_c_const=yes |
| 4205 | else |
| 4206 | echo "$as_me: failed program was:" >&5 |
| 4207 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4208 | |
| 4209 | ac_cv_c_const=no |
| 4210 | fi |
| 4211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4212 | fi |
| 4213 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 4214 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 4215 | if test $ac_cv_c_const = no; then |
| 4216 | |
| 4217 | cat >>confdefs.h <<\_ACEOF |
| 4218 | #define const |
| 4219 | _ACEOF |
| 4220 | |
| 4221 | fi |
| 4222 | |
| 4223 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 4224 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 4225 | if test "${ac_cv_c_inline+set}" = set; then |
| 4226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4227 | else |
| 4228 | ac_cv_c_inline=no |
| 4229 | for ac_kw in inline __inline__ __inline; do |
| 4230 | cat >conftest.$ac_ext <<_ACEOF |
| 4231 | /* confdefs.h. */ |
| 4232 | _ACEOF |
| 4233 | cat confdefs.h >>conftest.$ac_ext |
| 4234 | cat >>conftest.$ac_ext <<_ACEOF |
| 4235 | /* end confdefs.h. */ |
| 4236 | #ifndef __cplusplus |
| 4237 | typedef int foo_t; |
| 4238 | static $ac_kw foo_t static_foo () {return 0; } |
| 4239 | $ac_kw foo_t foo () {return 0; } |
| 4240 | #endif |
| 4241 | |
| 4242 | _ACEOF |
| 4243 | rm -f conftest.$ac_objext |
| 4244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4245 | (eval $ac_compile) 2>conftest.er1 |
| 4246 | ac_status=$? |
| 4247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4248 | rm -f conftest.er1 |
| 4249 | cat conftest.err >&5 |
| 4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4251 | (exit $ac_status); } && |
| 4252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4254 | (eval $ac_try) 2>&5 |
| 4255 | ac_status=$? |
| 4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4257 | (exit $ac_status); }; } && |
| 4258 | { ac_try='test -s conftest.$ac_objext' |
| 4259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4260 | (eval $ac_try) 2>&5 |
| 4261 | ac_status=$? |
| 4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4263 | (exit $ac_status); }; }; then |
| 4264 | ac_cv_c_inline=$ac_kw; break |
| 4265 | else |
| 4266 | echo "$as_me: failed program was:" >&5 |
| 4267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4268 | |
| 4269 | fi |
| 4270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4271 | done |
| 4272 | |
| 4273 | fi |
| 4274 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 4275 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 4276 | |
| 4277 | |
| 4278 | case $ac_cv_c_inline in |
| 4279 | inline | yes) ;; |
| 4280 | *) |
| 4281 | case $ac_cv_c_inline in |
| 4282 | no) ac_val=;; |
| 4283 | *) ac_val=$ac_cv_c_inline;; |
| 4284 | esac |
| 4285 | cat >>confdefs.h <<_ACEOF |
| 4286 | #ifndef __cplusplus |
| 4287 | #define inline $ac_val |
| 4288 | #endif |
| 4289 | _ACEOF |
| 4290 | ;; |
| 4291 | esac |
| 4292 | |
| 4293 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4294 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4295 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4297 | else |
| 4298 | cat >conftest.$ac_ext <<_ACEOF |
| 4299 | /* confdefs.h. */ |
| 4300 | _ACEOF |
| 4301 | cat confdefs.h >>conftest.$ac_ext |
| 4302 | cat >>conftest.$ac_ext <<_ACEOF |
| 4303 | /* end confdefs.h. */ |
| 4304 | $ac_includes_default |
| 4305 | int |
| 4306 | main () |
| 4307 | { |
| 4308 | if ((size_t *) 0) |
| 4309 | return 0; |
| 4310 | if (sizeof (size_t)) |
| 4311 | return 0; |
| 4312 | ; |
| 4313 | return 0; |
| 4314 | } |
| 4315 | _ACEOF |
| 4316 | rm -f conftest.$ac_objext |
| 4317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4318 | (eval $ac_compile) 2>conftest.er1 |
| 4319 | ac_status=$? |
| 4320 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4321 | rm -f conftest.er1 |
| 4322 | cat conftest.err >&5 |
| 4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4324 | (exit $ac_status); } && |
| 4325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4327 | (eval $ac_try) 2>&5 |
| 4328 | ac_status=$? |
| 4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4330 | (exit $ac_status); }; } && |
| 4331 | { ac_try='test -s conftest.$ac_objext' |
| 4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4333 | (eval $ac_try) 2>&5 |
| 4334 | ac_status=$? |
| 4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4336 | (exit $ac_status); }; }; then |
| 4337 | ac_cv_type_size_t=yes |
| 4338 | else |
| 4339 | echo "$as_me: failed program was:" >&5 |
| 4340 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4341 | |
| 4342 | ac_cv_type_size_t=no |
| 4343 | fi |
| 4344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4345 | fi |
| 4346 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4347 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4348 | if test $ac_cv_type_size_t = yes; then |
| 4349 | : |
| 4350 | else |
| 4351 | |
| 4352 | cat >>confdefs.h <<_ACEOF |
| 4353 | #define size_t unsigned |
| 4354 | _ACEOF |
| 4355 | |
| 4356 | fi |
| 4357 | |
| 4358 | echo "$as_me:$LINENO: checking for long long int" >&5 |
| 4359 | echo $ECHO_N "checking for long long int... $ECHO_C" >&6 |
| 4360 | if test "${ac_cv_c_long_long+set}" = set; then |
| 4361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4362 | else |
| 4363 | if test "$GCC" = yes; then |
| 4364 | ac_cv_c_long_long=yes |
| 4365 | else |
| 4366 | cat >conftest.$ac_ext <<_ACEOF |
| 4367 | /* confdefs.h. */ |
| 4368 | _ACEOF |
| 4369 | cat confdefs.h >>conftest.$ac_ext |
| 4370 | cat >>conftest.$ac_ext <<_ACEOF |
| 4371 | /* end confdefs.h. */ |
| 4372 | |
| 4373 | int |
| 4374 | main () |
| 4375 | { |
| 4376 | long long int i; |
| 4377 | ; |
| 4378 | return 0; |
| 4379 | } |
| 4380 | _ACEOF |
| 4381 | rm -f conftest.$ac_objext |
| 4382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4383 | (eval $ac_compile) 2>conftest.er1 |
| 4384 | ac_status=$? |
| 4385 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4386 | rm -f conftest.er1 |
| 4387 | cat conftest.err >&5 |
| 4388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4389 | (exit $ac_status); } && |
| 4390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4392 | (eval $ac_try) 2>&5 |
| 4393 | ac_status=$? |
| 4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4395 | (exit $ac_status); }; } && |
| 4396 | { ac_try='test -s conftest.$ac_objext' |
| 4397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4398 | (eval $ac_try) 2>&5 |
| 4399 | ac_status=$? |
| 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4401 | (exit $ac_status); }; }; then |
| 4402 | ac_cv_c_long_long=yes |
| 4403 | else |
| 4404 | echo "$as_me: failed program was:" >&5 |
| 4405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4406 | |
| 4407 | ac_cv_c_long_long=no |
| 4408 | fi |
| 4409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4410 | fi |
| 4411 | fi |
| 4412 | echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5 |
| 4413 | echo "${ECHO_T}$ac_cv_c_long_long" >&6 |
| 4414 | if test $ac_cv_c_long_long = yes; then |
| 4415 | |
| 4416 | cat >>confdefs.h <<\_ACEOF |
| 4417 | #define HAVE_LONG_LONG 1 |
| 4418 | _ACEOF |
| 4419 | |
| 4420 | fi |
| 4421 | |
| 4422 | echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5 |
| 4423 | echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6 |
| 4424 | if test "${ac_cv_c_long_double+set}" = set; then |
| 4425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4426 | else |
| 4427 | cat >conftest.$ac_ext <<_ACEOF |
| 4428 | /* confdefs.h. */ |
| 4429 | _ACEOF |
| 4430 | cat confdefs.h >>conftest.$ac_ext |
| 4431 | cat >>conftest.$ac_ext <<_ACEOF |
| 4432 | /* end confdefs.h. */ |
| 4433 | #include <float.h> |
| 4434 | long double foo = 0.0; |
| 4435 | int |
| 4436 | main () |
| 4437 | { |
| 4438 | static int test_array [1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */ |
| 4439 | (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON) |
| 4440 | | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))]; |
| 4441 | test_array [0] = 0 |
| 4442 | |
| 4443 | ; |
| 4444 | return 0; |
| 4445 | } |
| 4446 | _ACEOF |
| 4447 | rm -f conftest.$ac_objext |
| 4448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4449 | (eval $ac_compile) 2>conftest.er1 |
| 4450 | ac_status=$? |
| 4451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4452 | rm -f conftest.er1 |
| 4453 | cat conftest.err >&5 |
| 4454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4455 | (exit $ac_status); } && |
| 4456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4458 | (eval $ac_try) 2>&5 |
| 4459 | ac_status=$? |
| 4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4461 | (exit $ac_status); }; } && |
| 4462 | { ac_try='test -s conftest.$ac_objext' |
| 4463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4464 | (eval $ac_try) 2>&5 |
| 4465 | ac_status=$? |
| 4466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4467 | (exit $ac_status); }; }; then |
| 4468 | ac_cv_c_long_double=yes |
| 4469 | else |
| 4470 | echo "$as_me: failed program was:" >&5 |
| 4471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4472 | |
| 4473 | ac_cv_c_long_double=no |
| 4474 | fi |
| 4475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4476 | fi |
| 4477 | echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5 |
| 4478 | echo "${ECHO_T}$ac_cv_c_long_double" >&6 |
| 4479 | if test $ac_cv_c_long_double = yes; then |
| 4480 | |
| 4481 | cat >>confdefs.h <<\_ACEOF |
| 4482 | #define HAVE_LONG_DOUBLE 1 |
| 4483 | _ACEOF |
| 4484 | |
| 4485 | fi |
| 4486 | |
| 4487 | cat >conftest.$ac_ext <<_ACEOF |
| 4488 | /* confdefs.h. */ |
| 4489 | _ACEOF |
| 4490 | cat confdefs.h >>conftest.$ac_ext |
| 4491 | cat >>conftest.$ac_ext <<_ACEOF |
| 4492 | /* end confdefs.h. */ |
| 4493 | |
| 4494 | int |
| 4495 | main () |
| 4496 | { |
| 4497 | printf("%'2d",101); |
| 4498 | ; |
| 4499 | return 0; |
| 4500 | } |
| 4501 | _ACEOF |
| 4502 | rm -f conftest.$ac_objext |
| 4503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4504 | (eval $ac_compile) 2>conftest.er1 |
| 4505 | ac_status=$? |
| 4506 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4507 | rm -f conftest.er1 |
| 4508 | cat conftest.err >&5 |
| 4509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4510 | (exit $ac_status); } && |
| 4511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4513 | (eval $ac_try) 2>&5 |
| 4514 | ac_status=$? |
| 4515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4516 | (exit $ac_status); }; } && |
| 4517 | { ac_try='test -s conftest.$ac_objext' |
| 4518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4519 | (eval $ac_try) 2>&5 |
| 4520 | ac_status=$? |
| 4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4522 | (exit $ac_status); }; }; then |
| 4523 | ac_cv_c_printf_thsep=yes |
| 4524 | else |
| 4525 | echo "$as_me: failed program was:" >&5 |
| 4526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4527 | |
| 4528 | ac_cv_c_printf_thsep=no |
| 4529 | fi |
| 4530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4531 | if test $ac_cv_c_printf_thsep = yes; then |
| 4532 | |
| 4533 | cat >>confdefs.h <<\_ACEOF |
| 4534 | #define HAVE_PRINTF_THSEP 1 |
| 4535 | _ACEOF |
| 4536 | |
| 4537 | fi |
| 4538 | |
| 4539 | |
| 4540 | # Checks for library functions. |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | |
| 4545 | |
| 4546 | |
| 4547 | |
| 4548 | |
| 4549 | |
| 4550 | |
| 4551 | |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | for ac_func in getopt_long malloc mbstowcs nl_langinfo realloc regwcomp regwexec setlocale strchr strrchr strtod strtol uninum_gmp_version wcschr wcscmp wcscasecmp wcsxfrm |
| 4559 | do |
| 4560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 4561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 4562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 4563 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4565 | else |
| 4566 | cat >conftest.$ac_ext <<_ACEOF |
| 4567 | /* confdefs.h. */ |
| 4568 | _ACEOF |
| 4569 | cat confdefs.h >>conftest.$ac_ext |
| 4570 | cat >>conftest.$ac_ext <<_ACEOF |
| 4571 | /* end confdefs.h. */ |
| 4572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 4573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 4574 | #define $ac_func innocuous_$ac_func |
| 4575 | |
| 4576 | /* System header to define __stub macros and hopefully few prototypes, |
| 4577 | which can conflict with char $ac_func (); below. |
| 4578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4579 | <limits.h> exists even on freestanding compilers. */ |
| 4580 | |
| 4581 | #ifdef __STDC__ |
| 4582 | # include <limits.h> |
| 4583 | #else |
| 4584 | # include <assert.h> |
| 4585 | #endif |
| 4586 | |
| 4587 | #undef $ac_func |
| 4588 | |
| 4589 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4590 | #ifdef __cplusplus |
| 4591 | extern "C" |
| 4592 | { |
| 4593 | #endif |
| 4594 | /* We use char because int might match the return type of a gcc2 |
| 4595 | builtin and then its argument prototype would still apply. */ |
| 4596 | char $ac_func (); |
| 4597 | /* The GNU C library defines this for functions which it implements |
| 4598 | to always fail with ENOSYS. Some functions are actually named |
| 4599 | something starting with __ and the normal name is an alias. */ |
| 4600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 4601 | choke me |
| 4602 | #else |
| 4603 | char (*f) () = $ac_func; |
| 4604 | #endif |
| 4605 | #ifdef __cplusplus |
| 4606 | } |
| 4607 | #endif |
| 4608 | |
| 4609 | int |
| 4610 | main () |
| 4611 | { |
| 4612 | return f != $ac_func; |
| 4613 | ; |
| 4614 | return 0; |
| 4615 | } |
| 4616 | _ACEOF |
| 4617 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4619 | (eval $ac_link) 2>conftest.er1 |
| 4620 | ac_status=$? |
| 4621 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4622 | rm -f conftest.er1 |
| 4623 | cat conftest.err >&5 |
| 4624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4625 | (exit $ac_status); } && |
| 4626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4628 | (eval $ac_try) 2>&5 |
| 4629 | ac_status=$? |
| 4630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4631 | (exit $ac_status); }; } && |
| 4632 | { ac_try='test -s conftest$ac_exeext' |
| 4633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4634 | (eval $ac_try) 2>&5 |
| 4635 | ac_status=$? |
| 4636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4637 | (exit $ac_status); }; }; then |
| 4638 | eval "$as_ac_var=yes" |
| 4639 | else |
| 4640 | echo "$as_me: failed program was:" >&5 |
| 4641 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4642 | |
| 4643 | eval "$as_ac_var=no" |
| 4644 | fi |
| 4645 | rm -f conftest.err conftest.$ac_objext \ |
| 4646 | conftest$ac_exeext conftest.$ac_ext |
| 4647 | fi |
| 4648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 4649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 4650 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 4651 | cat >>confdefs.h <<_ACEOF |
| 4652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 4653 | _ACEOF |
| 4654 | |
| 4655 | fi |
| 4656 | done |
| 4657 | |
| 4658 | ac_config_files="$ac_config_files Makefile" |
| 4659 | |
| 4660 | cat >confcache <<\_ACEOF |
| 4661 | # This file is a shell script that caches the results of configure |
| 4662 | # tests run on this system so they can be shared between configure |
| 4663 | # scripts and configure runs, see configure's option --config-cache. |
| 4664 | # It is not useful on other systems. If it contains results you don't |
| 4665 | # want to keep, you may remove or edit it. |
| 4666 | # |
| 4667 | # config.status only pays attention to the cache file if you give it |
| 4668 | # the --recheck option to rerun configure. |
| 4669 | # |
| 4670 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 4671 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 4672 | # following values. |
| 4673 | |
| 4674 | _ACEOF |
| 4675 | |
| 4676 | # The following way of writing the cache mishandles newlines in values, |
| 4677 | # but we know of no workaround that is simple, portable, and efficient. |
| 4678 | # So, don't put newlines in cache variables' values. |
| 4679 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 4680 | # and sets the high bit in the cache file unless we assign to the vars. |
| 4681 | { |
| 4682 | (set) 2>&1 | |
| 4683 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 4684 | *ac_space=\ *) |
| 4685 | # `set' does not quote correctly, so add quotes (double-quote |
| 4686 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 4687 | sed -n \ |
| 4688 | "s/'/'\\\\''/g; |
| 4689 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 4690 | ;; |
| 4691 | *) |
| 4692 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 4693 | sed -n \ |
| 4694 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 4695 | ;; |
| 4696 | esac; |
| 4697 | } | |
| 4698 | sed ' |
| 4699 | t clear |
| 4700 | : clear |
| 4701 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 4702 | t end |
| 4703 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 4704 | : end' >>confcache |
| 4705 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 4706 | if test -w $cache_file; then |
| 4707 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 4708 | cat confcache >$cache_file |
| 4709 | else |
| 4710 | echo "not updating unwritable cache $cache_file" |
| 4711 | fi |
| 4712 | fi |
| 4713 | rm -f confcache |
| 4714 | |
| 4715 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4716 | # Let make expand exec_prefix. |
| 4717 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4718 | |
| 4719 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 4720 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 4721 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 4722 | # (actually we leave an empty line to preserve line numbers). |
| 4723 | if test "x$srcdir" = x.; then |
| 4724 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 4725 | s/:*\$(srcdir):*/:/; |
| 4726 | s/:*\${srcdir}:*/:/; |
| 4727 | s/:*@srcdir@:*/:/; |
| 4728 | s/^\([^=]*=[ ]*\):*/\1/; |
| 4729 | s/:*$//; |
| 4730 | s/^[^=]*=[ ]*$//; |
| 4731 | }' |
| 4732 | fi |
| 4733 | |
| 4734 | DEFS=-DHAVE_CONFIG_H |
| 4735 | |
| 4736 | ac_libobjs= |
| 4737 | ac_ltlibobjs= |
| 4738 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 4739 | # 1. Remove the extension, and $U if already installed. |
| 4740 | ac_i=`echo "$ac_i" | |
| 4741 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 4742 | # 2. Add them. |
| 4743 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 4744 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 4745 | done |
| 4746 | LIBOBJS=$ac_libobjs |
| 4747 | |
| 4748 | LTLIBOBJS=$ac_ltlibobjs |
| 4749 | |
| 4750 | |
| 4751 | if test -z "${NOCOMPARISONCNT_TRUE}" && test -z "${NOCOMPARISONCNT_FALSE}"; then |
| 4752 | { { echo "$as_me:$LINENO: error: conditional \"NOCOMPARISONCNT\" was never defined. |
| 4753 | Usually this means the macro was only invoked conditionally." >&5 |
| 4754 | echo "$as_me: error: conditional \"NOCOMPARISONCNT\" was never defined. |
| 4755 | Usually this means the macro was only invoked conditionally." >&2;} |
| 4756 | { (exit 1); exit 1; }; } |
| 4757 | fi |
| 4758 | if test -z "${ALLOCAOK_TRUE}" && test -z "${ALLOCAOK_FALSE}"; then |
| 4759 | { { echo "$as_me:$LINENO: error: conditional \"ALLOCAOK\" was never defined. |
| 4760 | Usually this means the macro was only invoked conditionally." >&5 |
| 4761 | echo "$as_me: error: conditional \"ALLOCAOK\" was never defined. |
| 4762 | Usually this means the macro was only invoked conditionally." >&2;} |
| 4763 | { (exit 1); exit 1; }; } |
| 4764 | fi |
| 4765 | if test -z "${UNINUMOK_TRUE}" && test -z "${UNINUMOK_FALSE}"; then |
| 4766 | { { echo "$as_me:$LINENO: error: conditional \"UNINUMOK\" was never defined. |
| 4767 | Usually this means the macro was only invoked conditionally." >&5 |
| 4768 | echo "$as_me: error: conditional \"UNINUMOK\" was never defined. |
| 4769 | Usually this means the macro was only invoked conditionally." >&2;} |
| 4770 | { (exit 1); exit 1; }; } |
| 4771 | fi |
| 4772 | if test -z "${UTF8PROCOK_TRUE}" && test -z "${UTF8PROCOK_FALSE}"; then |
| 4773 | { { echo "$as_me:$LINENO: error: conditional \"UTF8PROCOK\" was never defined. |
| 4774 | Usually this means the macro was only invoked conditionally." >&5 |
| 4775 | echo "$as_me: error: conditional \"UTF8PROCOK\" was never defined. |
| 4776 | Usually this means the macro was only invoked conditionally." >&2;} |
| 4777 | { (exit 1); exit 1; }; } |
| 4778 | fi |
| 4779 | if test -z "${DEBUGBUILD_TRUE}" && test -z "${DEBUGBUILD_FALSE}"; then |
| 4780 | { { echo "$as_me:$LINENO: error: conditional \"DEBUGBUILD\" was never defined. |
| 4781 | Usually this means the macro was only invoked conditionally." >&5 |
| 4782 | echo "$as_me: error: conditional \"DEBUGBUILD\" was never defined. |
| 4783 | Usually this means the macro was only invoked conditionally." >&2;} |
| 4784 | { (exit 1); exit 1; }; } |
| 4785 | fi |
| 4786 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 4787 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
| 4788 | Usually this means the macro was only invoked conditionally." >&5 |
| 4789 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
| 4790 | Usually this means the macro was only invoked conditionally." >&2;} |
| 4791 | { (exit 1); exit 1; }; } |
| 4792 | fi |
| 4793 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 4794 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
| 4795 | Usually this means the macro was only invoked conditionally." >&5 |
| 4796 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
| 4797 | Usually this means the macro was only invoked conditionally." >&2;} |
| 4798 | { (exit 1); exit 1; }; } |
| 4799 | fi |
| 4800 | |
| 4801 | : ${CONFIG_STATUS=./config.status} |
| 4802 | ac_clean_files_save=$ac_clean_files |
| 4803 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 4804 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 4805 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 4806 | cat >$CONFIG_STATUS <<_ACEOF |
| 4807 | #! $SHELL |
| 4808 | # Generated by $as_me. |
| 4809 | # Run this file to recreate the current configuration. |
| 4810 | # Compiler output produced by configure, useful for debugging |
| 4811 | # configure, is in config.log if it exists. |
| 4812 | |
| 4813 | debug=false |
| 4814 | ac_cs_recheck=false |
| 4815 | ac_cs_silent=false |
| 4816 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 4817 | _ACEOF |
| 4818 | |
| 4819 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 4820 | ## --------------------- ## |
| 4821 | ## M4sh Initialization. ## |
| 4822 | ## --------------------- ## |
| 4823 | |
| 4824 | # Be Bourne compatible |
| 4825 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 4826 | emulate sh |
| 4827 | NULLCMD=: |
| 4828 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 4829 | # is contrary to our usage. Disable this feature. |
| 4830 | alias -g '${1+"$@"}'='"$@"' |
| 4831 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 4832 | set -o posix |
| 4833 | fi |
| 4834 | DUALCASE=1; export DUALCASE # for MKS sh |
| 4835 | |
| 4836 | # Support unset when possible. |
| 4837 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 4838 | as_unset=unset |
| 4839 | else |
| 4840 | as_unset=false |
| 4841 | fi |
| 4842 | |
| 4843 | |
| 4844 | # Work around bugs in pre-3.0 UWIN ksh. |
| 4845 | $as_unset ENV MAIL MAILPATH |
| 4846 | PS1='$ ' |
| 4847 | PS2='> ' |
| 4848 | PS4='+ ' |
| 4849 | |
| 4850 | # NLS nuisances. |
| 4851 | for as_var in \ |
| 4852 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 4853 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 4854 | LC_TELEPHONE LC_TIME |
| 4855 | do |
| 4856 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 4857 | eval $as_var=C; export $as_var |
| 4858 | else |
| 4859 | $as_unset $as_var |
| 4860 | fi |
| 4861 | done |
| 4862 | |
| 4863 | # Required to use basename. |
| 4864 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 4865 | as_expr=expr |
| 4866 | else |
| 4867 | as_expr=false |
| 4868 | fi |
| 4869 | |
| 4870 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 4871 | as_basename=basename |
| 4872 | else |
| 4873 | as_basename=false |
| 4874 | fi |
| 4875 | |
| 4876 | |
| 4877 | # Name of the executable. |
| 4878 | as_me=`$as_basename "$0" || |
| 4879 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 4880 | X"$0" : 'X\(//\)$' \| \ |
| 4881 | X"$0" : 'X\(/\)$' \| \ |
| 4882 | . : '\(.\)' 2>/dev/null || |
| 4883 | echo X/"$0" | |
| 4884 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 4885 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 4886 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 4887 | s/.*/./; q'` |
| 4888 | |
| 4889 | |
| 4890 | # PATH needs CR, and LINENO needs CR and PATH. |
| 4891 | # Avoid depending upon Character Ranges. |
| 4892 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 4893 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 4894 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 4895 | as_cr_digits='0123456789' |
| 4896 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 4897 | |
| 4898 | # The user is always right. |
| 4899 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4900 | echo "#! /bin/sh" >conf$$.sh |
| 4901 | echo "exit 0" >>conf$$.sh |
| 4902 | chmod +x conf$$.sh |
| 4903 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4904 | PATH_SEPARATOR=';' |
| 4905 | else |
| 4906 | PATH_SEPARATOR=: |
| 4907 | fi |
| 4908 | rm -f conf$$.sh |
| 4909 | fi |
| 4910 | |
| 4911 | |
| 4912 | as_lineno_1=$LINENO |
| 4913 | as_lineno_2=$LINENO |
| 4914 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 4915 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 4916 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 4917 | # Find who we are. Look in the path if we contain no path at all |
| 4918 | # relative or not. |
| 4919 | case $0 in |
| 4920 | *[\\/]* ) as_myself=$0 ;; |
| 4921 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4922 | for as_dir in $PATH |
| 4923 | do |
| 4924 | IFS=$as_save_IFS |
| 4925 | test -z "$as_dir" && as_dir=. |
| 4926 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 4927 | done |
| 4928 | |
| 4929 | ;; |
| 4930 | esac |
| 4931 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 4932 | # in which case we are not to be found in the path. |
| 4933 | if test "x$as_myself" = x; then |
| 4934 | as_myself=$0 |
| 4935 | fi |
| 4936 | if test ! -f "$as_myself"; then |
| 4937 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 4938 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 4939 | { (exit 1); exit 1; }; } |
| 4940 | fi |
| 4941 | case $CONFIG_SHELL in |
| 4942 | '') |
| 4943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4944 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 4945 | do |
| 4946 | IFS=$as_save_IFS |
| 4947 | test -z "$as_dir" && as_dir=. |
| 4948 | for as_base in sh bash ksh sh5; do |
| 4949 | case $as_dir in |
| 4950 | /*) |
| 4951 | if ("$as_dir/$as_base" -c ' |
| 4952 | as_lineno_1=$LINENO |
| 4953 | as_lineno_2=$LINENO |
| 4954 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 4955 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 4956 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 4957 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 4958 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 4959 | CONFIG_SHELL=$as_dir/$as_base |
| 4960 | export CONFIG_SHELL |
| 4961 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 4962 | fi;; |
| 4963 | esac |
| 4964 | done |
| 4965 | done |
| 4966 | ;; |
| 4967 | esac |
| 4968 | |
| 4969 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 4970 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 4971 | # line-number line before each line; the second 'sed' does the real |
| 4972 | # work. The second script uses 'N' to pair each line-number line |
| 4973 | # with the numbered line, and appends trailing '-' during |
| 4974 | # substitution so that $LINENO is not a special case at line end. |
| 4975 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 4976 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 4977 | sed '=' <$as_myself | |
| 4978 | sed ' |
| 4979 | N |
| 4980 | s,$,-, |
| 4981 | : loop |
| 4982 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 4983 | t loop |
| 4984 | s,-$,, |
| 4985 | s,^['$as_cr_digits']*\n,, |
| 4986 | ' >$as_me.lineno && |
| 4987 | chmod +x $as_me.lineno || |
| 4988 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 4989 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 4990 | { (exit 1); exit 1; }; } |
| 4991 | |
| 4992 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 4993 | # (the dirname of $[0] is not the place where we might find the |
| 4994 | # original and so on. Autoconf is especially sensible to this). |
| 4995 | . ./$as_me.lineno |
| 4996 | # Exit status is that of the last command. |
| 4997 | exit |
| 4998 | } |
| 4999 | |
| 5000 | |
| 5001 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 5002 | *c*,-n*) ECHO_N= ECHO_C=' |
| 5003 | ' ECHO_T=' ' ;; |
| 5004 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 5005 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 5006 | esac |
| 5007 | |
| 5008 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 5009 | as_expr=expr |
| 5010 | else |
| 5011 | as_expr=false |
| 5012 | fi |
| 5013 | |
| 5014 | rm -f conf$$ conf$$.exe conf$$.file |
| 5015 | echo >conf$$.file |
| 5016 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5017 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 5018 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 5019 | if test -f conf$$.exe; then |
| 5020 | # Don't use ln at all; we don't have any links |
| 5021 | as_ln_s='cp -p' |
| 5022 | else |
| 5023 | as_ln_s='ln -s' |
| 5024 | fi |
| 5025 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5026 | as_ln_s=ln |
| 5027 | else |
| 5028 | as_ln_s='cp -p' |
| 5029 | fi |
| 5030 | rm -f conf$$ conf$$.exe conf$$.file |
| 5031 | |
| 5032 | if mkdir -p . 2>/dev/null; then |
| 5033 | as_mkdir_p=: |
| 5034 | else |
| 5035 | test -d ./-p && rmdir ./-p |
| 5036 | as_mkdir_p=false |
| 5037 | fi |
| 5038 | |
| 5039 | as_executable_p="test -f" |
| 5040 | |
| 5041 | # Sed expression to map a string onto a valid CPP name. |
| 5042 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 5043 | |
| 5044 | # Sed expression to map a string onto a valid variable name. |
| 5045 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 5046 | |
| 5047 | |
| 5048 | # IFS |
| 5049 | # We need space, tab and new line, in precisely that order. |
| 5050 | as_nl=' |
| 5051 | ' |
| 5052 | IFS=" $as_nl" |
| 5053 | |
| 5054 | # CDPATH. |
| 5055 | $as_unset CDPATH |
| 5056 | |
| 5057 | exec 6>&1 |
| 5058 | |
| 5059 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 5060 | # report actual input values of CONFIG_FILES etc. instead of their |
| 5061 | # values after options handling. Logging --version etc. is OK. |
| 5062 | exec 5>>config.log |
| 5063 | { |
| 5064 | echo |
| 5065 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 5066 | ## Running $as_me. ## |
| 5067 | _ASBOX |
| 5068 | } >&5 |
| 5069 | cat >&5 <<_CSEOF |
| 5070 | |
| 5071 | This file was extended by msort $as_me 8.53, which was |
| 5072 | generated by GNU Autoconf 2.59. Invocation command line was |
| 5073 | |
| 5074 | CONFIG_FILES = $CONFIG_FILES |
| 5075 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 5076 | CONFIG_LINKS = $CONFIG_LINKS |
| 5077 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 5078 | $ $0 $@ |
| 5079 | |
| 5080 | _CSEOF |
| 5081 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 5082 | echo >&5 |
| 5083 | _ACEOF |
| 5084 | |
| 5085 | # Files that config.status was made for. |
| 5086 | if test -n "$ac_config_files"; then |
| 5087 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 5088 | fi |
| 5089 | |
| 5090 | if test -n "$ac_config_headers"; then |
| 5091 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 5092 | fi |
| 5093 | |
| 5094 | if test -n "$ac_config_links"; then |
| 5095 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 5096 | fi |
| 5097 | |
| 5098 | if test -n "$ac_config_commands"; then |
| 5099 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 5100 | fi |
| 5101 | |
| 5102 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5103 | |
| 5104 | ac_cs_usage="\ |
| 5105 | \`$as_me' instantiates files from templates according to the |
| 5106 | current configuration. |
| 5107 | |
| 5108 | Usage: $0 [OPTIONS] [FILE]... |
| 5109 | |
| 5110 | -h, --help print this help, then exit |
| 5111 | -V, --version print version number, then exit |
| 5112 | -q, --quiet do not print progress messages |
| 5113 | -d, --debug don't remove temporary files |
| 5114 | --recheck update $as_me by reconfiguring in the same conditions |
| 5115 | --file=FILE[:TEMPLATE] |
| 5116 | instantiate the configuration file FILE |
| 5117 | --header=FILE[:TEMPLATE] |
| 5118 | instantiate the configuration header FILE |
| 5119 | |
| 5120 | Configuration files: |
| 5121 | $config_files |
| 5122 | |
| 5123 | Configuration headers: |
| 5124 | $config_headers |
| 5125 | |
| 5126 | Configuration commands: |
| 5127 | $config_commands |
| 5128 | |
| 5129 | Report bugs to <[email protected]>." |
| 5130 | _ACEOF |
| 5131 | |
| 5132 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5133 | ac_cs_version="\\ |
| 5134 | msort config.status 8.53 |
| 5135 | configured by $0, generated by GNU Autoconf 2.59, |
| 5136 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 5137 | |
| 5138 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 5139 | This config.status script is free software; the Free Software Foundation |
| 5140 | gives unlimited permission to copy, distribute and modify it." |
| 5141 | srcdir=$srcdir |
| 5142 | INSTALL="$INSTALL" |
| 5143 | _ACEOF |
| 5144 | |
| 5145 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5146 | # If no file are specified by the user, then we need to provide default |
| 5147 | # value. By we need to know if files were specified by the user. |
| 5148 | ac_need_defaults=: |
| 5149 | while test $# != 0 |
| 5150 | do |
| 5151 | case $1 in |
| 5152 | --*=*) |
| 5153 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 5154 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 5155 | ac_shift=: |
| 5156 | ;; |
| 5157 | -*) |
| 5158 | ac_option=$1 |
| 5159 | ac_optarg=$2 |
| 5160 | ac_shift=shift |
| 5161 | ;; |
| 5162 | *) # This is not an option, so the user has probably given explicit |
| 5163 | # arguments. |
| 5164 | ac_option=$1 |
| 5165 | ac_need_defaults=false;; |
| 5166 | esac |
| 5167 | |
| 5168 | case $ac_option in |
| 5169 | # Handling of the options. |
| 5170 | _ACEOF |
| 5171 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5172 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 5173 | ac_cs_recheck=: ;; |
| 5174 | --version | --vers* | -V ) |
| 5175 | echo "$ac_cs_version"; exit 0 ;; |
| 5176 | --he | --h) |
| 5177 | # Conflict between --help and --header |
| 5178 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 5179 | Try \`$0 --help' for more information." >&5 |
| 5180 | echo "$as_me: error: ambiguous option: $1 |
| 5181 | Try \`$0 --help' for more information." >&2;} |
| 5182 | { (exit 1); exit 1; }; };; |
| 5183 | --help | --hel | -h ) |
| 5184 | echo "$ac_cs_usage"; exit 0 ;; |
| 5185 | --debug | --d* | -d ) |
| 5186 | debug=: ;; |
| 5187 | --file | --fil | --fi | --f ) |
| 5188 | $ac_shift |
| 5189 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 5190 | ac_need_defaults=false;; |
| 5191 | --header | --heade | --head | --hea ) |
| 5192 | $ac_shift |
| 5193 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 5194 | ac_need_defaults=false;; |
| 5195 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 5196 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 5197 | ac_cs_silent=: ;; |
| 5198 | |
| 5199 | # This is an error. |
| 5200 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 5201 | Try \`$0 --help' for more information." >&5 |
| 5202 | echo "$as_me: error: unrecognized option: $1 |
| 5203 | Try \`$0 --help' for more information." >&2;} |
| 5204 | { (exit 1); exit 1; }; } ;; |
| 5205 | |
| 5206 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 5207 | |
| 5208 | esac |
| 5209 | shift |
| 5210 | done |
| 5211 | |
| 5212 | ac_configure_extra_args= |
| 5213 | |
| 5214 | if $ac_cs_silent; then |
| 5215 | exec 6>/dev/null |
| 5216 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 5217 | fi |
| 5218 | |
| 5219 | _ACEOF |
| 5220 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5221 | if \$ac_cs_recheck; then |
| 5222 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 5223 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 5224 | fi |
| 5225 | |
| 5226 | _ACEOF |
| 5227 | |
| 5228 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5229 | # |
| 5230 | # INIT-COMMANDS section. |
| 5231 | # |
| 5232 | |
| 5233 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 5234 | |
| 5235 | _ACEOF |
| 5236 | |
| 5237 | |
| 5238 | |
| 5239 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5240 | for ac_config_target in $ac_config_targets |
| 5241 | do |
| 5242 | case "$ac_config_target" in |
| 5243 | # Handling of arguments. |
| 5244 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 5245 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 5246 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 5247 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 5248 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 5249 | { (exit 1); exit 1; }; };; |
| 5250 | esac |
| 5251 | done |
| 5252 | |
| 5253 | # If the user did not use the arguments to specify the items to instantiate, |
| 5254 | # then the envvar interface is used. Set only those that are not. |
| 5255 | # We use the long form for the default assignment because of an extremely |
| 5256 | # bizarre bug on SunOS 4.1.3. |
| 5257 | if $ac_need_defaults; then |
| 5258 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 5259 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 5260 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 5261 | fi |
| 5262 | |
| 5263 | # Have a temporary directory for convenience. Make it in the build tree |
| 5264 | # simply because there is no reason to put it here, and in addition, |
| 5265 | # creating and moving files from /tmp can sometimes cause problems. |
| 5266 | # Create a temporary directory, and hook for its removal unless debugging. |
| 5267 | $debug || |
| 5268 | { |
| 5269 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 5270 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 5271 | } |
| 5272 | |
| 5273 | # Create a (secure) tmp directory for tmp files. |
| 5274 | |
| 5275 | { |
| 5276 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 5277 | test -n "$tmp" && test -d "$tmp" |
| 5278 | } || |
| 5279 | { |
| 5280 | tmp=./confstat$$-$RANDOM |
| 5281 | (umask 077 && mkdir $tmp) |
| 5282 | } || |
| 5283 | { |
| 5284 | echo "$me: cannot create a temporary directory in ." >&2 |
| 5285 | { (exit 1); exit 1; } |
| 5286 | } |
| 5287 | |
| 5288 | _ACEOF |
| 5289 | |
| 5290 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5291 | |
| 5292 | # |
| 5293 | # CONFIG_FILES section. |
| 5294 | # |
| 5295 | |
| 5296 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 5297 | # This happens for instance when ./config.status config.h |
| 5298 | if test -n "\$CONFIG_FILES"; then |
| 5299 | # Protect against being on the right side of a sed subst in config.status. |
| 5300 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 5301 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 5302 | s,@SHELL@,$SHELL,;t t |
| 5303 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 5304 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 5305 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 5306 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 5307 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 5308 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 5309 | s,@exec_prefix@,$exec_prefix,;t t |
| 5310 | s,@prefix@,$prefix,;t t |
| 5311 | s,@program_transform_name@,$program_transform_name,;t t |
| 5312 | s,@bindir@,$bindir,;t t |
| 5313 | s,@sbindir@,$sbindir,;t t |
| 5314 | s,@libexecdir@,$libexecdir,;t t |
| 5315 | s,@datadir@,$datadir,;t t |
| 5316 | s,@sysconfdir@,$sysconfdir,;t t |
| 5317 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 5318 | s,@localstatedir@,$localstatedir,;t t |
| 5319 | s,@libdir@,$libdir,;t t |
| 5320 | s,@includedir@,$includedir,;t t |
| 5321 | s,@oldincludedir@,$oldincludedir,;t t |
| 5322 | s,@infodir@,$infodir,;t t |
| 5323 | s,@mandir@,$mandir,;t t |
| 5324 | s,@build_alias@,$build_alias,;t t |
| 5325 | s,@host_alias@,$host_alias,;t t |
| 5326 | s,@target_alias@,$target_alias,;t t |
| 5327 | s,@DEFS@,$DEFS,;t t |
| 5328 | s,@ECHO_C@,$ECHO_C,;t t |
| 5329 | s,@ECHO_N@,$ECHO_N,;t t |
| 5330 | s,@ECHO_T@,$ECHO_T,;t t |
| 5331 | s,@LIBS@,$LIBS,;t t |
| 5332 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 5333 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 5334 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 5335 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
| 5336 | s,@PACKAGE@,$PACKAGE,;t t |
| 5337 | s,@VERSION@,$VERSION,;t t |
| 5338 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 5339 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 5340 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 5341 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 5342 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 5343 | s,@install_sh@,$install_sh,;t t |
| 5344 | s,@STRIP@,$STRIP,;t t |
| 5345 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 5346 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 5347 | s,@mkdir_p@,$mkdir_p,;t t |
| 5348 | s,@AWK@,$AWK,;t t |
| 5349 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 5350 | s,@am__leading_dot@,$am__leading_dot,;t t |
| 5351 | s,@AMTAR@,$AMTAR,;t t |
| 5352 | s,@am__tar@,$am__tar,;t t |
| 5353 | s,@am__untar@,$am__untar,;t t |
| 5354 | s,@NOCOMPARISONCNT_TRUE@,$NOCOMPARISONCNT_TRUE,;t t |
| 5355 | s,@NOCOMPARISONCNT_FALSE@,$NOCOMPARISONCNT_FALSE,;t t |
| 5356 | s,@ALLOCAOK_TRUE@,$ALLOCAOK_TRUE,;t t |
| 5357 | s,@ALLOCAOK_FALSE@,$ALLOCAOK_FALSE,;t t |
| 5358 | s,@UNINUMOK_TRUE@,$UNINUMOK_TRUE,;t t |
| 5359 | s,@UNINUMOK_FALSE@,$UNINUMOK_FALSE,;t t |
| 5360 | s,@UTF8PROCOK_TRUE@,$UTF8PROCOK_TRUE,;t t |
| 5361 | s,@UTF8PROCOK_FALSE@,$UTF8PROCOK_FALSE,;t t |
| 5362 | s,@DEBUGBUILD_TRUE@,$DEBUGBUILD_TRUE,;t t |
| 5363 | s,@DEBUGBUILD_FALSE@,$DEBUGBUILD_FALSE,;t t |
| 5364 | s,@CC@,$CC,;t t |
| 5365 | s,@CFLAGS@,$CFLAGS,;t t |
| 5366 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 5367 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 5368 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 5369 | s,@EXEEXT@,$EXEEXT,;t t |
| 5370 | s,@OBJEXT@,$OBJEXT,;t t |
| 5371 | s,@DEPDIR@,$DEPDIR,;t t |
| 5372 | s,@am__include@,$am__include,;t t |
| 5373 | s,@am__quote@,$am__quote,;t t |
| 5374 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 5375 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 5376 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 5377 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 5378 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
| 5379 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t |
| 5380 | s,@CPP@,$CPP,;t t |
| 5381 | s,@EGREP@,$EGREP,;t t |
| 5382 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 5383 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 5384 | CEOF |
| 5385 | |
| 5386 | _ACEOF |
| 5387 | |
| 5388 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5389 | # Split the substitutions into bite-sized pieces for seds with |
| 5390 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 5391 | ac_max_sed_lines=48 |
| 5392 | ac_sed_frag=1 # Number of current file. |
| 5393 | ac_beg=1 # First line for current file. |
| 5394 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 5395 | ac_more_lines=: |
| 5396 | ac_sed_cmds= |
| 5397 | while $ac_more_lines; do |
| 5398 | if test $ac_beg -gt 1; then |
| 5399 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 5400 | else |
| 5401 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 5402 | fi |
| 5403 | if test ! -s $tmp/subs.frag; then |
| 5404 | ac_more_lines=false |
| 5405 | else |
| 5406 | # The purpose of the label and of the branching condition is to |
| 5407 | # speed up the sed processing (if there are no `@' at all, there |
| 5408 | # is no need to browse any of the substitutions). |
| 5409 | # These are the two extra sed commands mentioned above. |
| 5410 | (echo ':t |
| 5411 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 5412 | if test -z "$ac_sed_cmds"; then |
| 5413 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 5414 | else |
| 5415 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 5416 | fi |
| 5417 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 5418 | ac_beg=$ac_end |
| 5419 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 5420 | fi |
| 5421 | done |
| 5422 | if test -z "$ac_sed_cmds"; then |
| 5423 | ac_sed_cmds=cat |
| 5424 | fi |
| 5425 | fi # test -n "$CONFIG_FILES" |
| 5426 | |
| 5427 | _ACEOF |
| 5428 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5429 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 5430 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 5431 | case $ac_file in |
| 5432 | - | *:- | *:-:* ) # input from stdin |
| 5433 | cat >$tmp/stdin |
| 5434 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 5435 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 5436 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 5437 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 5438 | * ) ac_file_in=$ac_file.in ;; |
| 5439 | esac |
| 5440 | |
| 5441 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 5442 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 5443 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5444 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 5445 | X"$ac_file" : 'X\(//\)$' \| \ |
| 5446 | X"$ac_file" : 'X\(/\)' \| \ |
| 5447 | . : '\(.\)' 2>/dev/null || |
| 5448 | echo X"$ac_file" | |
| 5449 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 5450 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 5451 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 5452 | /^X\(\/\).*/{ s//\1/; q; } |
| 5453 | s/.*/./; q'` |
| 5454 | { if $as_mkdir_p; then |
| 5455 | mkdir -p "$ac_dir" |
| 5456 | else |
| 5457 | as_dir="$ac_dir" |
| 5458 | as_dirs= |
| 5459 | while test ! -d "$as_dir"; do |
| 5460 | as_dirs="$as_dir $as_dirs" |
| 5461 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 5462 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5463 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5464 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5465 | X"$as_dir" : 'X\(/\)' \| \ |
| 5466 | . : '\(.\)' 2>/dev/null || |
| 5467 | echo X"$as_dir" | |
| 5468 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 5469 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 5470 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 5471 | /^X\(\/\).*/{ s//\1/; q; } |
| 5472 | s/.*/./; q'` |
| 5473 | done |
| 5474 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 5475 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 5476 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 5477 | { (exit 1); exit 1; }; }; } |
| 5478 | |
| 5479 | ac_builddir=. |
| 5480 | |
| 5481 | if test "$ac_dir" != .; then |
| 5482 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 5483 | # A "../" for each directory in $ac_dir_suffix. |
| 5484 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 5485 | else |
| 5486 | ac_dir_suffix= ac_top_builddir= |
| 5487 | fi |
| 5488 | |
| 5489 | case $srcdir in |
| 5490 | .) # No --srcdir option. We are building in place. |
| 5491 | ac_srcdir=. |
| 5492 | if test -z "$ac_top_builddir"; then |
| 5493 | ac_top_srcdir=. |
| 5494 | else |
| 5495 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 5496 | fi ;; |
| 5497 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 5498 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 5499 | ac_top_srcdir=$srcdir ;; |
| 5500 | *) # Relative path. |
| 5501 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 5502 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 5503 | esac |
| 5504 | |
| 5505 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 5506 | # the directories may not exist. |
| 5507 | case `pwd` in |
| 5508 | .) ac_abs_builddir="$ac_dir";; |
| 5509 | *) |
| 5510 | case "$ac_dir" in |
| 5511 | .) ac_abs_builddir=`pwd`;; |
| 5512 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 5513 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 5514 | esac;; |
| 5515 | esac |
| 5516 | case $ac_abs_builddir in |
| 5517 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 5518 | *) |
| 5519 | case ${ac_top_builddir}. in |
| 5520 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 5521 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 5522 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 5523 | esac;; |
| 5524 | esac |
| 5525 | case $ac_abs_builddir in |
| 5526 | .) ac_abs_srcdir=$ac_srcdir;; |
| 5527 | *) |
| 5528 | case $ac_srcdir in |
| 5529 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 5530 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 5531 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 5532 | esac;; |
| 5533 | esac |
| 5534 | case $ac_abs_builddir in |
| 5535 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 5536 | *) |
| 5537 | case $ac_top_srcdir in |
| 5538 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 5539 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 5540 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 5541 | esac;; |
| 5542 | esac |
| 5543 | |
| 5544 | |
| 5545 | case $INSTALL in |
| 5546 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 5547 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 5548 | esac |
| 5549 | |
| 5550 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 5551 | # use $as_me), people would be surprised to read: |
| 5552 | # /* config.h. Generated by config.status. */ |
| 5553 | if test x"$ac_file" = x-; then |
| 5554 | configure_input= |
| 5555 | else |
| 5556 | configure_input="$ac_file. " |
| 5557 | fi |
| 5558 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 5559 | sed 's,.*/,,'` by configure." |
| 5560 | |
| 5561 | # First look for the input files in the build tree, otherwise in the |
| 5562 | # src tree. |
| 5563 | ac_file_inputs=`IFS=: |
| 5564 | for f in $ac_file_in; do |
| 5565 | case $f in |
| 5566 | -) echo $tmp/stdin ;; |
| 5567 | [\\/$]*) |
| 5568 | # Absolute (can't be DOS-style, as IFS=:) |
| 5569 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 5570 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 5571 | { (exit 1); exit 1; }; } |
| 5572 | echo "$f";; |
| 5573 | *) # Relative |
| 5574 | if test -f "$f"; then |
| 5575 | # Build tree |
| 5576 | echo "$f" |
| 5577 | elif test -f "$srcdir/$f"; then |
| 5578 | # Source tree |
| 5579 | echo "$srcdir/$f" |
| 5580 | else |
| 5581 | # /dev/null tree |
| 5582 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 5583 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 5584 | { (exit 1); exit 1; }; } |
| 5585 | fi;; |
| 5586 | esac |
| 5587 | done` || { (exit 1); exit 1; } |
| 5588 | |
| 5589 | if test x"$ac_file" != x-; then |
| 5590 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 5591 | echo "$as_me: creating $ac_file" >&6;} |
| 5592 | rm -f "$ac_file" |
| 5593 | fi |
| 5594 | _ACEOF |
| 5595 | cat >>$CONFIG_STATUS <<_ACEOF |
| 5596 | sed "$ac_vpsub |
| 5597 | $extrasub |
| 5598 | _ACEOF |
| 5599 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5600 | :t |
| 5601 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 5602 | s,@configure_input@,$configure_input,;t t |
| 5603 | s,@srcdir@,$ac_srcdir,;t t |
| 5604 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 5605 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 5606 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 5607 | s,@builddir@,$ac_builddir,;t t |
| 5608 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 5609 | s,@top_builddir@,$ac_top_builddir,;t t |
| 5610 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 5611 | s,@INSTALL@,$ac_INSTALL,;t t |
| 5612 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 5613 | rm -f $tmp/stdin |
| 5614 | if test x"$ac_file" != x-; then |
| 5615 | mv $tmp/out $ac_file |
| 5616 | else |
| 5617 | cat $tmp/out |
| 5618 | rm -f $tmp/out |
| 5619 | fi |
| 5620 | |
| 5621 | done |
| 5622 | _ACEOF |
| 5623 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5624 | |
| 5625 | # |
| 5626 | # CONFIG_HEADER section. |
| 5627 | # |
| 5628 | |
| 5629 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 5630 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 5631 | # |
| 5632 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 5633 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 5634 | ac_dB='[ ].*$,\1#\2' |
| 5635 | ac_dC=' ' |
| 5636 | ac_dD=',;t' |
| 5637 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 5638 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 5639 | ac_uB='$,\1#\2define\3' |
| 5640 | ac_uC=' ' |
| 5641 | ac_uD=',;t' |
| 5642 | |
| 5643 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 5644 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 5645 | case $ac_file in |
| 5646 | - | *:- | *:-:* ) # input from stdin |
| 5647 | cat >$tmp/stdin |
| 5648 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 5649 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 5650 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 5651 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 5652 | * ) ac_file_in=$ac_file.in ;; |
| 5653 | esac |
| 5654 | |
| 5655 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 5656 | echo "$as_me: creating $ac_file" >&6;} |
| 5657 | |
| 5658 | # First look for the input files in the build tree, otherwise in the |
| 5659 | # src tree. |
| 5660 | ac_file_inputs=`IFS=: |
| 5661 | for f in $ac_file_in; do |
| 5662 | case $f in |
| 5663 | -) echo $tmp/stdin ;; |
| 5664 | [\\/$]*) |
| 5665 | # Absolute (can't be DOS-style, as IFS=:) |
| 5666 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 5667 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 5668 | { (exit 1); exit 1; }; } |
| 5669 | # Do quote $f, to prevent DOS paths from being IFS'd. |
| 5670 | echo "$f";; |
| 5671 | *) # Relative |
| 5672 | if test -f "$f"; then |
| 5673 | # Build tree |
| 5674 | echo "$f" |
| 5675 | elif test -f "$srcdir/$f"; then |
| 5676 | # Source tree |
| 5677 | echo "$srcdir/$f" |
| 5678 | else |
| 5679 | # /dev/null tree |
| 5680 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 5681 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 5682 | { (exit 1); exit 1; }; } |
| 5683 | fi;; |
| 5684 | esac |
| 5685 | done` || { (exit 1); exit 1; } |
| 5686 | # Remove the trailing spaces. |
| 5687 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 5688 | |
| 5689 | _ACEOF |
| 5690 | |
| 5691 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 5692 | # `conftest.undefs', that substitutes the proper values into |
| 5693 | # config.h.in to produce config.h. The first handles `#define' |
| 5694 | # templates, and the second `#undef' templates. |
| 5695 | # And first: Protect against being on the right side of a sed subst in |
| 5696 | # config.status. Protect against being in an unquoted here document |
| 5697 | # in config.status. |
| 5698 | rm -f conftest.defines conftest.undefs |
| 5699 | # Using a here document instead of a string reduces the quoting nightmare. |
| 5700 | # Putting comments in sed scripts is not portable. |
| 5701 | # |
| 5702 | # `end' is used to avoid that the second main sed command (meant for |
| 5703 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 5704 | # See the Autoconf documentation for `clear'. |
| 5705 | cat >confdef2sed.sed <<\_ACEOF |
| 5706 | s/[\\&,]/\\&/g |
| 5707 | s,[\\$`],\\&,g |
| 5708 | t clear |
| 5709 | : clear |
| 5710 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 5711 | t end |
| 5712 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 5713 | : end |
| 5714 | _ACEOF |
| 5715 | # If some macros were called several times there might be several times |
| 5716 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 5717 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 5718 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 5719 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 5720 | rm -f confdef2sed.sed |
| 5721 | |
| 5722 | # This sed command replaces #undef with comments. This is necessary, for |
| 5723 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 5724 | # on some systems where configure will not decide to define it. |
| 5725 | cat >>conftest.undefs <<\_ACEOF |
| 5726 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 5727 | _ACEOF |
| 5728 | |
| 5729 | # Break up conftest.defines because some shells have a limit on the size |
| 5730 | # of here documents, and old seds have small limits too (100 cmds). |
| 5731 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 5732 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 5733 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 5734 | echo ' :' >>$CONFIG_STATUS |
| 5735 | rm -f conftest.tail |
| 5736 | while grep . conftest.defines >/dev/null |
| 5737 | do |
| 5738 | # Write a limited-size here document to $tmp/defines.sed. |
| 5739 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 5740 | # Speed up: don't consider the non `#define' lines. |
| 5741 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 5742 | # Work around the forget-to-reset-the-flag bug. |
| 5743 | echo 't clr' >>$CONFIG_STATUS |
| 5744 | echo ': clr' >>$CONFIG_STATUS |
| 5745 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 5746 | echo 'CEOF |
| 5747 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 5748 | rm -f $tmp/in |
| 5749 | mv $tmp/out $tmp/in |
| 5750 | ' >>$CONFIG_STATUS |
| 5751 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 5752 | rm -f conftest.defines |
| 5753 | mv conftest.tail conftest.defines |
| 5754 | done |
| 5755 | rm -f conftest.defines |
| 5756 | echo ' fi # grep' >>$CONFIG_STATUS |
| 5757 | echo >>$CONFIG_STATUS |
| 5758 | |
| 5759 | # Break up conftest.undefs because some shells have a limit on the size |
| 5760 | # of here documents, and old seds have small limits too (100 cmds). |
| 5761 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 5762 | rm -f conftest.tail |
| 5763 | while grep . conftest.undefs >/dev/null |
| 5764 | do |
| 5765 | # Write a limited-size here document to $tmp/undefs.sed. |
| 5766 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 5767 | # Speed up: don't consider the non `#undef' |
| 5768 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 5769 | # Work around the forget-to-reset-the-flag bug. |
| 5770 | echo 't clr' >>$CONFIG_STATUS |
| 5771 | echo ': clr' >>$CONFIG_STATUS |
| 5772 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 5773 | echo 'CEOF |
| 5774 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 5775 | rm -f $tmp/in |
| 5776 | mv $tmp/out $tmp/in |
| 5777 | ' >>$CONFIG_STATUS |
| 5778 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 5779 | rm -f conftest.undefs |
| 5780 | mv conftest.tail conftest.undefs |
| 5781 | done |
| 5782 | rm -f conftest.undefs |
| 5783 | |
| 5784 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5785 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 5786 | # use $as_me), people would be surprised to read: |
| 5787 | # /* config.h. Generated by config.status. */ |
| 5788 | if test x"$ac_file" = x-; then |
| 5789 | echo "/* Generated by configure. */" >$tmp/config.h |
| 5790 | else |
| 5791 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 5792 | fi |
| 5793 | cat $tmp/in >>$tmp/config.h |
| 5794 | rm -f $tmp/in |
| 5795 | if test x"$ac_file" != x-; then |
| 5796 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 5797 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 5798 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 5799 | else |
| 5800 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 5801 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5802 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 5803 | X"$ac_file" : 'X\(//\)$' \| \ |
| 5804 | X"$ac_file" : 'X\(/\)' \| \ |
| 5805 | . : '\(.\)' 2>/dev/null || |
| 5806 | echo X"$ac_file" | |
| 5807 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 5808 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 5809 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 5810 | /^X\(\/\).*/{ s//\1/; q; } |
| 5811 | s/.*/./; q'` |
| 5812 | { if $as_mkdir_p; then |
| 5813 | mkdir -p "$ac_dir" |
| 5814 | else |
| 5815 | as_dir="$ac_dir" |
| 5816 | as_dirs= |
| 5817 | while test ! -d "$as_dir"; do |
| 5818 | as_dirs="$as_dir $as_dirs" |
| 5819 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 5820 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5821 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5822 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5823 | X"$as_dir" : 'X\(/\)' \| \ |
| 5824 | . : '\(.\)' 2>/dev/null || |
| 5825 | echo X"$as_dir" | |
| 5826 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 5827 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 5828 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 5829 | /^X\(\/\).*/{ s//\1/; q; } |
| 5830 | s/.*/./; q'` |
| 5831 | done |
| 5832 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 5833 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 5834 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 5835 | { (exit 1); exit 1; }; }; } |
| 5836 | |
| 5837 | rm -f $ac_file |
| 5838 | mv $tmp/config.h $ac_file |
| 5839 | fi |
| 5840 | else |
| 5841 | cat $tmp/config.h |
| 5842 | rm -f $tmp/config.h |
| 5843 | fi |
| 5844 | # Compute $ac_file's index in $config_headers. |
| 5845 | _am_stamp_count=1 |
| 5846 | for _am_header in $config_headers :; do |
| 5847 | case $_am_header in |
| 5848 | $ac_file | $ac_file:* ) |
| 5849 | break ;; |
| 5850 | * ) |
| 5851 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 5852 | esac |
| 5853 | done |
| 5854 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
| 5855 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5856 | X$ac_file : 'X\(//\)[^/]' \| \ |
| 5857 | X$ac_file : 'X\(//\)$' \| \ |
| 5858 | X$ac_file : 'X\(/\)' \| \ |
| 5859 | . : '\(.\)' 2>/dev/null || |
| 5860 | echo X$ac_file | |
| 5861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 5862 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 5863 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 5864 | /^X\(\/\).*/{ s//\1/; q; } |
| 5865 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 5866 | done |
| 5867 | _ACEOF |
| 5868 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5869 | |
| 5870 | # |
| 5871 | # CONFIG_COMMANDS section. |
| 5872 | # |
| 5873 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 5874 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 5875 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 5876 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 5877 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5878 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 5879 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 5880 | X"$ac_dest" : 'X\(/\)' \| \ |
| 5881 | . : '\(.\)' 2>/dev/null || |
| 5882 | echo X"$ac_dest" | |
| 5883 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 5884 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 5885 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 5886 | /^X\(\/\).*/{ s//\1/; q; } |
| 5887 | s/.*/./; q'` |
| 5888 | { if $as_mkdir_p; then |
| 5889 | mkdir -p "$ac_dir" |
| 5890 | else |
| 5891 | as_dir="$ac_dir" |
| 5892 | as_dirs= |
| 5893 | while test ! -d "$as_dir"; do |
| 5894 | as_dirs="$as_dir $as_dirs" |
| 5895 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 5896 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5897 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5898 | X"$as_dir" : 'X\(//\)$' \| \ |
| 5899 | X"$as_dir" : 'X\(/\)' \| \ |
| 5900 | . : '\(.\)' 2>/dev/null || |
| 5901 | echo X"$as_dir" | |
| 5902 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 5903 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 5904 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 5905 | /^X\(\/\).*/{ s//\1/; q; } |
| 5906 | s/.*/./; q'` |
| 5907 | done |
| 5908 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 5909 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 5910 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 5911 | { (exit 1); exit 1; }; }; } |
| 5912 | |
| 5913 | ac_builddir=. |
| 5914 | |
| 5915 | if test "$ac_dir" != .; then |
| 5916 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 5917 | # A "../" for each directory in $ac_dir_suffix. |
| 5918 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 5919 | else |
| 5920 | ac_dir_suffix= ac_top_builddir= |
| 5921 | fi |
| 5922 | |
| 5923 | case $srcdir in |
| 5924 | .) # No --srcdir option. We are building in place. |
| 5925 | ac_srcdir=. |
| 5926 | if test -z "$ac_top_builddir"; then |
| 5927 | ac_top_srcdir=. |
| 5928 | else |
| 5929 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 5930 | fi ;; |
| 5931 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 5932 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 5933 | ac_top_srcdir=$srcdir ;; |
| 5934 | *) # Relative path. |
| 5935 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 5936 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 5937 | esac |
| 5938 | |
| 5939 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 5940 | # the directories may not exist. |
| 5941 | case `pwd` in |
| 5942 | .) ac_abs_builddir="$ac_dir";; |
| 5943 | *) |
| 5944 | case "$ac_dir" in |
| 5945 | .) ac_abs_builddir=`pwd`;; |
| 5946 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 5947 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 5948 | esac;; |
| 5949 | esac |
| 5950 | case $ac_abs_builddir in |
| 5951 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 5952 | *) |
| 5953 | case ${ac_top_builddir}. in |
| 5954 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 5955 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 5956 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 5957 | esac;; |
| 5958 | esac |
| 5959 | case $ac_abs_builddir in |
| 5960 | .) ac_abs_srcdir=$ac_srcdir;; |
| 5961 | *) |
| 5962 | case $ac_srcdir in |
| 5963 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 5964 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 5965 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 5966 | esac;; |
| 5967 | esac |
| 5968 | case $ac_abs_builddir in |
| 5969 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 5970 | *) |
| 5971 | case $ac_top_srcdir in |
| 5972 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 5973 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 5974 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 5975 | esac;; |
| 5976 | esac |
| 5977 | |
| 5978 | |
| 5979 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 5980 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 5981 | case $ac_dest in |
| 5982 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
| 5983 | # Strip MF so we end up with the name of the file. |
| 5984 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 5985 | # Check whether this is an Automake generated Makefile or not. |
| 5986 | # We used to match only the files named `Makefile.in', but |
| 5987 | # some people rename them; so instead we look at the file content. |
| 5988 | # Grep'ing the first line is not enough: some people post-process |
| 5989 | # each Makefile.in and add a new line on top of each file to say so. |
| 5990 | # So let's grep whole file. |
| 5991 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
| 5992 | dirpart=`(dirname "$mf") 2>/dev/null || |
| 5993 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5994 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 5995 | X"$mf" : 'X\(//\)$' \| \ |
| 5996 | X"$mf" : 'X\(/\)' \| \ |
| 5997 | . : '\(.\)' 2>/dev/null || |
| 5998 | echo X"$mf" | |
| 5999 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6000 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6001 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6002 | /^X\(\/\).*/{ s//\1/; q; } |
| 6003 | s/.*/./; q'` |
| 6004 | else |
| 6005 | continue |
| 6006 | fi |
| 6007 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 6008 | # from the Makefile without running `make'. |
| 6009 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 6010 | test -z "$DEPDIR" && continue |
| 6011 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 6012 | test -z "am__include" && continue |
| 6013 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 6014 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 6015 | U=`sed -n 's/^U = //p' < "$mf"` |
| 6016 | # Find all dependency output files, they are included files with |
| 6017 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 6018 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 6019 | # expansion. |
| 6020 | for file in `sed -n " |
| 6021 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 6022 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 6023 | # Make sure the directory exists. |
| 6024 | test -f "$dirpart/$file" && continue |
| 6025 | fdir=`(dirname "$file") 2>/dev/null || |
| 6026 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6027 | X"$file" : 'X\(//\)[^/]' \| \ |
| 6028 | X"$file" : 'X\(//\)$' \| \ |
| 6029 | X"$file" : 'X\(/\)' \| \ |
| 6030 | . : '\(.\)' 2>/dev/null || |
| 6031 | echo X"$file" | |
| 6032 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6033 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6034 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6035 | /^X\(\/\).*/{ s//\1/; q; } |
| 6036 | s/.*/./; q'` |
| 6037 | { if $as_mkdir_p; then |
| 6038 | mkdir -p $dirpart/$fdir |
| 6039 | else |
| 6040 | as_dir=$dirpart/$fdir |
| 6041 | as_dirs= |
| 6042 | while test ! -d "$as_dir"; do |
| 6043 | as_dirs="$as_dir $as_dirs" |
| 6044 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 6045 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6046 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6047 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6048 | X"$as_dir" : 'X\(/\)' \| \ |
| 6049 | . : '\(.\)' 2>/dev/null || |
| 6050 | echo X"$as_dir" | |
| 6051 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6052 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6053 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6054 | /^X\(\/\).*/{ s//\1/; q; } |
| 6055 | s/.*/./; q'` |
| 6056 | done |
| 6057 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 6058 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 |
| 6059 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} |
| 6060 | { (exit 1); exit 1; }; }; } |
| 6061 | |
| 6062 | # echo "creating $dirpart/$file" |
| 6063 | echo '# dummy' > "$dirpart/$file" |
| 6064 | done |
| 6065 | done |
| 6066 | ;; |
| 6067 | esac |
| 6068 | done |
| 6069 | _ACEOF |
| 6070 | |
| 6071 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6072 | |
| 6073 | { (exit 0); exit 0; } |
| 6074 | _ACEOF |
| 6075 | chmod +x $CONFIG_STATUS |
| 6076 | ac_clean_files=$ac_clean_files_save |
| 6077 | |
| 6078 | |
| 6079 | # configure is writing to config.log, and then calls config.status. |
| 6080 | # config.status does its own redirection, appending to config.log. |
| 6081 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6082 | # by configure, so config.status won't be able to write to it; its |
| 6083 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6084 | # effectively closing config.log, so it can be properly (re)opened and |
| 6085 | # appended to by config.status. When coming back to configure, we |
| 6086 | # need to make the FD available again. |
| 6087 | if test "$no_create" != yes; then |
| 6088 | ac_cs_success=: |
| 6089 | ac_config_status_args= |
| 6090 | test "$silent" = yes && |
| 6091 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6092 | exec 5>/dev/null |
| 6093 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6094 | exec 5>>config.log |
| 6095 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6096 | # would make configure fail if this is the last instruction. |
| 6097 | $ac_cs_success || { (exit 1); exit 1; } |
| 6098 | fi |
| 6099 |