[25] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.59. |
---|
| 4 | # |
---|
| 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 6 | # This configure script is free software; the Free Software Foundation |
---|
| 7 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 8 | ## --------------------- ## |
---|
| 9 | ## M4sh Initialization. ## |
---|
| 10 | ## --------------------- ## |
---|
| 11 | |
---|
| 12 | # Be Bourne compatible |
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 14 | emulate sh |
---|
| 15 | NULLCMD=: |
---|
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 17 | # is contrary to our usage. Disable this feature. |
---|
| 18 | alias -g '${1+"$@"}'='"$@"' |
---|
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 20 | set -o posix |
---|
| 21 | fi |
---|
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 23 | |
---|
| 24 | # Support unset when possible. |
---|
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 26 | as_unset=unset |
---|
| 27 | else |
---|
| 28 | as_unset=false |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 33 | $as_unset ENV MAIL MAILPATH |
---|
| 34 | PS1='$ ' |
---|
| 35 | PS2='> ' |
---|
| 36 | PS4='+ ' |
---|
| 37 | |
---|
| 38 | # NLS nuisances. |
---|
| 39 | for as_var in \ |
---|
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 42 | LC_TELEPHONE LC_TIME |
---|
| 43 | do |
---|
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 45 | eval $as_var=C; export $as_var |
---|
| 46 | else |
---|
| 47 | $as_unset $as_var |
---|
| 48 | fi |
---|
| 49 | done |
---|
| 50 | |
---|
| 51 | # Required to use basename. |
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 53 | as_expr=expr |
---|
| 54 | else |
---|
| 55 | as_expr=false |
---|
| 56 | fi |
---|
| 57 | |
---|
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 59 | as_basename=basename |
---|
| 60 | else |
---|
| 61 | as_basename=false |
---|
| 62 | fi |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | # Name of the executable. |
---|
| 66 | as_me=`$as_basename "$0" || |
---|
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 68 | X"$0" : 'X\(//\)$' \| \ |
---|
| 69 | X"$0" : 'X\(/\)$' \| \ |
---|
| 70 | . : '\(.\)' 2>/dev/null || |
---|
| 71 | echo X/"$0" | |
---|
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 75 | s/.*/./; q'` |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 79 | # Avoid depending upon Character Ranges. |
---|
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 83 | as_cr_digits='0123456789' |
---|
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 85 | |
---|
| 86 | # The user is always right. |
---|
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 88 | echo "#! /bin/sh" >conf$$.sh |
---|
| 89 | echo "exit 0" >>conf$$.sh |
---|
| 90 | chmod +x conf$$.sh |
---|
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 92 | PATH_SEPARATOR=';' |
---|
| 93 | else |
---|
| 94 | PATH_SEPARATOR=: |
---|
| 95 | fi |
---|
| 96 | rm -f conf$$.sh |
---|
| 97 | fi |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | as_lineno_1=$LINENO |
---|
| 101 | as_lineno_2=$LINENO |
---|
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 105 | # Find who we are. Look in the path if we contain no path at all |
---|
| 106 | # relative or not. |
---|
| 107 | case $0 in |
---|
| 108 | *[\\/]* ) as_myself=$0 ;; |
---|
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 110 | for as_dir in $PATH |
---|
| 111 | do |
---|
| 112 | IFS=$as_save_IFS |
---|
| 113 | test -z "$as_dir" && as_dir=. |
---|
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 115 | done |
---|
| 116 | |
---|
| 117 | ;; |
---|
| 118 | esac |
---|
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 120 | # in which case we are not to be found in the path. |
---|
| 121 | if test "x$as_myself" = x; then |
---|
| 122 | as_myself=$0 |
---|
| 123 | fi |
---|
| 124 | if test ! -f "$as_myself"; then |
---|
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
| 126 | { (exit 1); exit 1; }; } |
---|
| 127 | fi |
---|
| 128 | case $CONFIG_SHELL in |
---|
| 129 | '') |
---|
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 132 | do |
---|
| 133 | IFS=$as_save_IFS |
---|
| 134 | test -z "$as_dir" && as_dir=. |
---|
| 135 | for as_base in sh bash ksh sh5; do |
---|
| 136 | case $as_dir in |
---|
| 137 | /*) |
---|
| 138 | if ("$as_dir/$as_base" -c ' |
---|
| 139 | as_lineno_1=$LINENO |
---|
| 140 | as_lineno_2=$LINENO |
---|
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 146 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 147 | export CONFIG_SHELL |
---|
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 149 | fi;; |
---|
| 150 | esac |
---|
| 151 | done |
---|
| 152 | done |
---|
| 153 | ;; |
---|
| 154 | esac |
---|
| 155 | |
---|
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 158 | # line-number line before each line; the second 'sed' does the real |
---|
| 159 | # work. The second script uses 'N' to pair each line-number line |
---|
| 160 | # with the numbered line, and appends trailing '-' during |
---|
| 161 | # substitution so that $LINENO is not a special case at line end. |
---|
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 164 | sed '=' <$as_myself | |
---|
| 165 | sed ' |
---|
| 166 | N |
---|
| 167 | s,$,-, |
---|
| 168 | : loop |
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 170 | t loop |
---|
| 171 | s,-$,, |
---|
| 172 | s,^['$as_cr_digits']*\n,, |
---|
| 173 | ' >$as_me.lineno && |
---|
| 174 | chmod +x $as_me.lineno || |
---|
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 176 | { (exit 1); exit 1; }; } |
---|
| 177 | |
---|
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 179 | # (the dirname of $[0] is not the place where we might find the |
---|
| 180 | # original and so on. Autoconf is especially sensible to this). |
---|
| 181 | . ./$as_me.lineno |
---|
| 182 | # Exit status is that of the last command. |
---|
| 183 | exit |
---|
| 184 | } |
---|
| 185 | |
---|
| 186 | |
---|
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 189 | ' ECHO_T=' ' ;; |
---|
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 192 | esac |
---|
| 193 | |
---|
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 195 | as_expr=expr |
---|
| 196 | else |
---|
| 197 | as_expr=false |
---|
| 198 | fi |
---|
| 199 | |
---|
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 201 | echo >conf$$.file |
---|
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 205 | if test -f conf$$.exe; then |
---|
| 206 | # Don't use ln at all; we don't have any links |
---|
| 207 | as_ln_s='cp -p' |
---|
| 208 | else |
---|
| 209 | as_ln_s='ln -s' |
---|
| 210 | fi |
---|
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 212 | as_ln_s=ln |
---|
| 213 | else |
---|
| 214 | as_ln_s='cp -p' |
---|
| 215 | fi |
---|
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 217 | |
---|
| 218 | if mkdir -p . 2>/dev/null; then |
---|
| 219 | as_mkdir_p=: |
---|
| 220 | else |
---|
| 221 | test -d ./-p && rmdir ./-p |
---|
| 222 | as_mkdir_p=false |
---|
| 223 | fi |
---|
| 224 | |
---|
| 225 | as_executable_p="test -f" |
---|
| 226 | |
---|
| 227 | # Sed expression to map a string onto a valid CPP name. |
---|
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 229 | |
---|
| 230 | # Sed expression to map a string onto a valid variable name. |
---|
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 232 | |
---|
| 233 | |
---|
| 234 | # IFS |
---|
| 235 | # We need space, tab and new line, in precisely that order. |
---|
| 236 | as_nl=' |
---|
| 237 | ' |
---|
| 238 | IFS=" $as_nl" |
---|
| 239 | |
---|
| 240 | # CDPATH. |
---|
| 241 | $as_unset CDPATH |
---|
| 242 | |
---|
| 243 | |
---|
| 244 | # Name of the host. |
---|
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 246 | # so uname gets run too. |
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 248 | |
---|
| 249 | exec 6>&1 |
---|
| 250 | |
---|
| 251 | # |
---|
| 252 | # Initializations. |
---|
| 253 | # |
---|
| 254 | ac_default_prefix=/usr/local |
---|
| 255 | ac_config_libobj_dir=. |
---|
| 256 | cross_compiling=no |
---|
| 257 | subdirs= |
---|
| 258 | MFLAGS= |
---|
| 259 | MAKEFLAGS= |
---|
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 261 | |
---|
| 262 | # Maximum number of lines to put in a shell here document. |
---|
| 263 | # This variable seems obsolete. It should probably be removed, and |
---|
| 264 | # only ac_max_sed_lines should be used. |
---|
| 265 | : ${ac_max_here_lines=38} |
---|
| 266 | |
---|
| 267 | # Identity of this package. |
---|
| 268 | PACKAGE_NAME= |
---|
| 269 | PACKAGE_TARNAME= |
---|
| 270 | PACKAGE_VERSION= |
---|
| 271 | PACKAGE_STRING= |
---|
| 272 | PACKAGE_BUGREPORT= |
---|
| 273 | |
---|
| 274 | ac_unique_file="../generic/tcl.h" |
---|
| 275 | 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AR RANLIB RC SET_MAKE TCL_THREADS CYGPATH CELIB_DIR DL_LIBS CFLAGS_DEBUG CFLAGS_OPTIMIZE CFLAGS_WARNING CFLAGS_DEFAULT LDFLAGS_DEFAULT TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_PATCH_LEVEL TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_STUB_LIB_PATH TCL_INCLUDE_SPEC TCL_BUILD_STUB_LIB_SPEC TCL_BUILD_STUB_LIB_PATH TCL_DLL_FILE TCL_SRC_DIR TCL_BIN_DIR TCL_DBGX CFG_TCL_SHARED_LIB_SUFFIX CFG_TCL_UNSHARED_LIB_SUFFIX CFG_TCL_EXPORT_FILE_SUFFIX EXTRA_CFLAGS DEPARG CC_OBJNAME CC_EXENAME LDFLAGS_DEBUG LDFLAGS_OPTIMIZE LDFLAGS_CONSOLE LDFLAGS_WINDOW STLIB_LD SHLIB_LD SHLIB_LD_LIBS SHLIB_CFLAGS SHLIB_SUFFIX TCL_SHARED_BUILD LIBS_GUI DLLSUFFIX LIBPREFIX LIBSUFFIX EXESUFFIX LIBRARIES MAKE_LIB POST_MAKE_LIB MAKE_DLL MAKE_EXE TCL_BUILD_LIB_SPEC TCL_LD_SEARCH_FLAGS TCL_NEEDS_EXP_FILE TCL_BUILD_EXP_FILE TCL_EXP_FILE TCL_LIB_VERSIONS_OK TCL_PACKAGE_PATH TCL_DDE_VERSION TCL_DDE_MAJOR_VERSION TCL_DDE_MINOR_VERSION TCL_DDE_PATCH_LEVEL TCL_REG_VERSION TCL_REG_MAJOR_VERSION TCL_REG_MINOR_VERSION TCL_REG_PATCH_LEVEL RC_OUT RC_TYPE RC_INCLUDE RC_DEFINE RC_DEFINES RES LIBOBJS LTLIBOBJS' |
---|
| 276 | ac_subst_files='' |
---|
| 277 | |
---|
| 278 | # Initialize some variables set by options. |
---|
| 279 | ac_init_help= |
---|
| 280 | ac_init_version=false |
---|
| 281 | # The variables have the same names as the options, with |
---|
| 282 | # dashes changed to underlines. |
---|
| 283 | cache_file=/dev/null |
---|
| 284 | exec_prefix=NONE |
---|
| 285 | no_create= |
---|
| 286 | no_recursion= |
---|
| 287 | prefix=NONE |
---|
| 288 | program_prefix=NONE |
---|
| 289 | program_suffix=NONE |
---|
| 290 | program_transform_name=s,x,x, |
---|
| 291 | silent= |
---|
| 292 | site= |
---|
| 293 | srcdir= |
---|
| 294 | verbose= |
---|
| 295 | x_includes=NONE |
---|
| 296 | x_libraries=NONE |
---|
| 297 | |
---|
| 298 | # Installation directory options. |
---|
| 299 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 300 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 301 | # by default will actually change. |
---|
| 302 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 303 | bindir='${exec_prefix}/bin' |
---|
| 304 | sbindir='${exec_prefix}/sbin' |
---|
| 305 | libexecdir='${exec_prefix}/libexec' |
---|
| 306 | datadir='${prefix}/share' |
---|
| 307 | sysconfdir='${prefix}/etc' |
---|
| 308 | sharedstatedir='${prefix}/com' |
---|
| 309 | localstatedir='${prefix}/var' |
---|
| 310 | libdir='${exec_prefix}/lib' |
---|
| 311 | includedir='${prefix}/include' |
---|
| 312 | oldincludedir='/usr/include' |
---|
| 313 | infodir='${prefix}/info' |
---|
| 314 | mandir='${prefix}/man' |
---|
| 315 | |
---|
| 316 | ac_prev= |
---|
| 317 | for ac_option |
---|
| 318 | do |
---|
| 319 | # If the previous option needs an argument, assign it. |
---|
| 320 | if test -n "$ac_prev"; then |
---|
| 321 | eval "$ac_prev=\$ac_option" |
---|
| 322 | ac_prev= |
---|
| 323 | continue |
---|
| 324 | fi |
---|
| 325 | |
---|
| 326 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 327 | |
---|
| 328 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 329 | |
---|
| 330 | case $ac_option in |
---|
| 331 | |
---|
| 332 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 333 | ac_prev=bindir ;; |
---|
| 334 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 335 | bindir=$ac_optarg ;; |
---|
| 336 | |
---|
| 337 | -build | --build | --buil | --bui | --bu) |
---|
| 338 | ac_prev=build_alias ;; |
---|
| 339 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 340 | build_alias=$ac_optarg ;; |
---|
| 341 | |
---|
| 342 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 343 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 344 | ac_prev=cache_file ;; |
---|
| 345 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 346 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 347 | cache_file=$ac_optarg ;; |
---|
| 348 | |
---|
| 349 | --config-cache | -C) |
---|
| 350 | cache_file=config.cache ;; |
---|
| 351 | |
---|
| 352 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 353 | ac_prev=datadir ;; |
---|
| 354 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 355 | | --da=*) |
---|
| 356 | datadir=$ac_optarg ;; |
---|
| 357 | |
---|
| 358 | -disable-* | --disable-*) |
---|
| 359 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 360 | # Reject names that are not valid shell variable names. |
---|
| 361 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 362 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 363 | { (exit 1); exit 1; }; } |
---|
| 364 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 365 | eval "enable_$ac_feature=no" ;; |
---|
| 366 | |
---|
| 367 | -enable-* | --enable-*) |
---|
| 368 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 369 | # Reject names that are not valid shell variable names. |
---|
| 370 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 371 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 372 | { (exit 1); exit 1; }; } |
---|
| 373 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 374 | case $ac_option in |
---|
| 375 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 376 | *) ac_optarg=yes ;; |
---|
| 377 | esac |
---|
| 378 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 379 | |
---|
| 380 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 381 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 382 | | --exec | --exe | --ex) |
---|
| 383 | ac_prev=exec_prefix ;; |
---|
| 384 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 385 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 386 | | --exec=* | --exe=* | --ex=*) |
---|
| 387 | exec_prefix=$ac_optarg ;; |
---|
| 388 | |
---|
| 389 | -gas | --gas | --ga | --g) |
---|
| 390 | # Obsolete; use --with-gas. |
---|
| 391 | with_gas=yes ;; |
---|
| 392 | |
---|
| 393 | -help | --help | --hel | --he | -h) |
---|
| 394 | ac_init_help=long ;; |
---|
| 395 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 396 | ac_init_help=recursive ;; |
---|
| 397 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 398 | ac_init_help=short ;; |
---|
| 399 | |
---|
| 400 | -host | --host | --hos | --ho) |
---|
| 401 | ac_prev=host_alias ;; |
---|
| 402 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 403 | host_alias=$ac_optarg ;; |
---|
| 404 | |
---|
| 405 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 406 | | --includ | --inclu | --incl | --inc) |
---|
| 407 | ac_prev=includedir ;; |
---|
| 408 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 409 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 410 | includedir=$ac_optarg ;; |
---|
| 411 | |
---|
| 412 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 413 | ac_prev=infodir ;; |
---|
| 414 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 415 | infodir=$ac_optarg ;; |
---|
| 416 | |
---|
| 417 | -libdir | --libdir | --libdi | --libd) |
---|
| 418 | ac_prev=libdir ;; |
---|
| 419 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 420 | libdir=$ac_optarg ;; |
---|
| 421 | |
---|
| 422 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 423 | | --libexe | --libex | --libe) |
---|
| 424 | ac_prev=libexecdir ;; |
---|
| 425 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 426 | | --libexe=* | --libex=* | --libe=*) |
---|
| 427 | libexecdir=$ac_optarg ;; |
---|
| 428 | |
---|
| 429 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 430 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 431 | | --locals | --local | --loca | --loc | --lo) |
---|
| 432 | ac_prev=localstatedir ;; |
---|
| 433 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 434 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 435 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 436 | localstatedir=$ac_optarg ;; |
---|
| 437 | |
---|
| 438 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 439 | ac_prev=mandir ;; |
---|
| 440 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 441 | mandir=$ac_optarg ;; |
---|
| 442 | |
---|
| 443 | -nfp | --nfp | --nf) |
---|
| 444 | # Obsolete; use --without-fp. |
---|
| 445 | with_fp=no ;; |
---|
| 446 | |
---|
| 447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 448 | | --no-cr | --no-c | -n) |
---|
| 449 | no_create=yes ;; |
---|
| 450 | |
---|
| 451 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 452 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 453 | no_recursion=yes ;; |
---|
| 454 | |
---|
| 455 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 456 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 457 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 458 | ac_prev=oldincludedir ;; |
---|
| 459 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 460 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 461 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 462 | oldincludedir=$ac_optarg ;; |
---|
| 463 | |
---|
| 464 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 465 | ac_prev=prefix ;; |
---|
| 466 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 467 | prefix=$ac_optarg ;; |
---|
| 468 | |
---|
| 469 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 470 | | --program-pre | --program-pr | --program-p) |
---|
| 471 | ac_prev=program_prefix ;; |
---|
| 472 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 473 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 474 | program_prefix=$ac_optarg ;; |
---|
| 475 | |
---|
| 476 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 477 | | --program-suf | --program-su | --program-s) |
---|
| 478 | ac_prev=program_suffix ;; |
---|
| 479 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 480 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 481 | program_suffix=$ac_optarg ;; |
---|
| 482 | |
---|
| 483 | -program-transform-name | --program-transform-name \ |
---|
| 484 | | --program-transform-nam | --program-transform-na \ |
---|
| 485 | | --program-transform-n | --program-transform- \ |
---|
| 486 | | --program-transform | --program-transfor \ |
---|
| 487 | | --program-transfo | --program-transf \ |
---|
| 488 | | --program-trans | --program-tran \ |
---|
| 489 | | --progr-tra | --program-tr | --program-t) |
---|
| 490 | ac_prev=program_transform_name ;; |
---|
| 491 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 492 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 493 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 494 | | --program-transform=* | --program-transfor=* \ |
---|
| 495 | | --program-transfo=* | --program-transf=* \ |
---|
| 496 | | --program-trans=* | --program-tran=* \ |
---|
| 497 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 498 | program_transform_name=$ac_optarg ;; |
---|
| 499 | |
---|
| 500 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 501 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 502 | silent=yes ;; |
---|
| 503 | |
---|
| 504 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 505 | ac_prev=sbindir ;; |
---|
| 506 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 507 | | --sbi=* | --sb=*) |
---|
| 508 | sbindir=$ac_optarg ;; |
---|
| 509 | |
---|
| 510 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 511 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 512 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 513 | | --sha | --sh) |
---|
| 514 | ac_prev=sharedstatedir ;; |
---|
| 515 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 516 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 517 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 518 | | --sha=* | --sh=*) |
---|
| 519 | sharedstatedir=$ac_optarg ;; |
---|
| 520 | |
---|
| 521 | -site | --site | --sit) |
---|
| 522 | ac_prev=site ;; |
---|
| 523 | -site=* | --site=* | --sit=*) |
---|
| 524 | site=$ac_optarg ;; |
---|
| 525 | |
---|
| 526 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 527 | ac_prev=srcdir ;; |
---|
| 528 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 529 | srcdir=$ac_optarg ;; |
---|
| 530 | |
---|
| 531 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 532 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 533 | ac_prev=sysconfdir ;; |
---|
| 534 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 535 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 536 | sysconfdir=$ac_optarg ;; |
---|
| 537 | |
---|
| 538 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 539 | ac_prev=target_alias ;; |
---|
| 540 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 541 | target_alias=$ac_optarg ;; |
---|
| 542 | |
---|
| 543 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 544 | verbose=yes ;; |
---|
| 545 | |
---|
| 546 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 547 | ac_init_version=: ;; |
---|
| 548 | |
---|
| 549 | -with-* | --with-*) |
---|
| 550 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 551 | # Reject names that are not valid shell variable names. |
---|
| 552 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 553 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 554 | { (exit 1); exit 1; }; } |
---|
| 555 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 556 | case $ac_option in |
---|
| 557 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 558 | *) ac_optarg=yes ;; |
---|
| 559 | esac |
---|
| 560 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 561 | |
---|
| 562 | -without-* | --without-*) |
---|
| 563 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 564 | # Reject names that are not valid shell variable names. |
---|
| 565 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 566 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 567 | { (exit 1); exit 1; }; } |
---|
| 568 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 569 | eval "with_$ac_package=no" ;; |
---|
| 570 | |
---|
| 571 | --x) |
---|
| 572 | # Obsolete; use --with-x. |
---|
| 573 | with_x=yes ;; |
---|
| 574 | |
---|
| 575 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 576 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 577 | ac_prev=x_includes ;; |
---|
| 578 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 579 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 580 | x_includes=$ac_optarg ;; |
---|
| 581 | |
---|
| 582 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 583 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 584 | ac_prev=x_libraries ;; |
---|
| 585 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 586 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 587 | x_libraries=$ac_optarg ;; |
---|
| 588 | |
---|
| 589 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 590 | Try \`$0 --help' for more information." >&2 |
---|
| 591 | { (exit 1); exit 1; }; } |
---|
| 592 | ;; |
---|
| 593 | |
---|
| 594 | *=*) |
---|
| 595 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 596 | # Reject names that are not valid shell variable names. |
---|
| 597 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 598 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 599 | { (exit 1); exit 1; }; } |
---|
| 600 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 601 | eval "$ac_envvar='$ac_optarg'" |
---|
| 602 | export $ac_envvar ;; |
---|
| 603 | |
---|
| 604 | *) |
---|
| 605 | # FIXME: should be removed in autoconf 3.0. |
---|
| 606 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 607 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 608 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 609 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 610 | ;; |
---|
| 611 | |
---|
| 612 | esac |
---|
| 613 | done |
---|
| 614 | |
---|
| 615 | if test -n "$ac_prev"; then |
---|
| 616 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 617 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 618 | { (exit 1); exit 1; }; } |
---|
| 619 | fi |
---|
| 620 | |
---|
| 621 | # Be sure to have absolute paths. |
---|
| 622 | for ac_var in exec_prefix prefix |
---|
| 623 | do |
---|
| 624 | eval ac_val=$`echo $ac_var` |
---|
| 625 | case $ac_val in |
---|
| 626 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 627 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 628 | { (exit 1); exit 1; }; };; |
---|
| 629 | esac |
---|
| 630 | done |
---|
| 631 | |
---|
| 632 | # Be sure to have absolute paths. |
---|
| 633 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
| 634 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
| 635 | do |
---|
| 636 | eval ac_val=$`echo $ac_var` |
---|
| 637 | case $ac_val in |
---|
| 638 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 639 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 640 | { (exit 1); exit 1; }; };; |
---|
| 641 | esac |
---|
| 642 | done |
---|
| 643 | |
---|
| 644 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 645 | # used to hold the argument of --host etc. |
---|
| 646 | # FIXME: To remove some day. |
---|
| 647 | build=$build_alias |
---|
| 648 | host=$host_alias |
---|
| 649 | target=$target_alias |
---|
| 650 | |
---|
| 651 | # FIXME: To remove some day. |
---|
| 652 | if test "x$host_alias" != x; then |
---|
| 653 | if test "x$build_alias" = x; then |
---|
| 654 | cross_compiling=maybe |
---|
| 655 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 656 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 657 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 658 | cross_compiling=yes |
---|
| 659 | fi |
---|
| 660 | fi |
---|
| 661 | |
---|
| 662 | ac_tool_prefix= |
---|
| 663 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 664 | |
---|
| 665 | test "$silent" = yes && exec 6>/dev/null |
---|
| 666 | |
---|
| 667 | |
---|
| 668 | # Find the source files, if location was not specified. |
---|
| 669 | if test -z "$srcdir"; then |
---|
| 670 | ac_srcdir_defaulted=yes |
---|
| 671 | # Try the directory containing this script, then its parent. |
---|
| 672 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 673 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 674 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 675 | X"$0" : 'X\(//\)$' \| \ |
---|
| 676 | X"$0" : 'X\(/\)' \| \ |
---|
| 677 | . : '\(.\)' 2>/dev/null || |
---|
| 678 | echo X"$0" | |
---|
| 679 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 680 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 681 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 682 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 683 | s/.*/./; q'` |
---|
| 684 | srcdir=$ac_confdir |
---|
| 685 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 686 | srcdir=.. |
---|
| 687 | fi |
---|
| 688 | else |
---|
| 689 | ac_srcdir_defaulted=no |
---|
| 690 | fi |
---|
| 691 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 692 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 693 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 694 | { (exit 1); exit 1; }; } |
---|
| 695 | else |
---|
| 696 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 697 | { (exit 1); exit 1; }; } |
---|
| 698 | fi |
---|
| 699 | fi |
---|
| 700 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 701 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 702 | { (exit 1); exit 1; }; } |
---|
| 703 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 704 | ac_env_build_alias_set=${build_alias+set} |
---|
| 705 | ac_env_build_alias_value=$build_alias |
---|
| 706 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 707 | ac_cv_env_build_alias_value=$build_alias |
---|
| 708 | ac_env_host_alias_set=${host_alias+set} |
---|
| 709 | ac_env_host_alias_value=$host_alias |
---|
| 710 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 711 | ac_cv_env_host_alias_value=$host_alias |
---|
| 712 | ac_env_target_alias_set=${target_alias+set} |
---|
| 713 | ac_env_target_alias_value=$target_alias |
---|
| 714 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 715 | ac_cv_env_target_alias_value=$target_alias |
---|
| 716 | ac_env_CC_set=${CC+set} |
---|
| 717 | ac_env_CC_value=$CC |
---|
| 718 | ac_cv_env_CC_set=${CC+set} |
---|
| 719 | ac_cv_env_CC_value=$CC |
---|
| 720 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 721 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 722 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 723 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 724 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 725 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 726 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 727 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 728 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 729 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 730 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 731 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 732 | ac_env_CPP_set=${CPP+set} |
---|
| 733 | ac_env_CPP_value=$CPP |
---|
| 734 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 735 | ac_cv_env_CPP_value=$CPP |
---|
| 736 | |
---|
| 737 | # |
---|
| 738 | # Report the --help message. |
---|
| 739 | # |
---|
| 740 | if test "$ac_init_help" = "long"; then |
---|
| 741 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 742 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 743 | cat <<_ACEOF |
---|
| 744 | \`configure' configures this package to adapt to many kinds of systems. |
---|
| 745 | |
---|
| 746 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 747 | |
---|
| 748 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 749 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 750 | |
---|
| 751 | Defaults for the options are specified in brackets. |
---|
| 752 | |
---|
| 753 | Configuration: |
---|
| 754 | -h, --help display this help and exit |
---|
| 755 | --help=short display options specific to this package |
---|
| 756 | --help=recursive display the short help of all the included packages |
---|
| 757 | -V, --version display version information and exit |
---|
| 758 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 759 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 760 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 761 | -n, --no-create do not create output files |
---|
| 762 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 763 | |
---|
| 764 | _ACEOF |
---|
| 765 | |
---|
| 766 | cat <<_ACEOF |
---|
| 767 | Installation directories: |
---|
| 768 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 769 | [$ac_default_prefix] |
---|
| 770 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 771 | [PREFIX] |
---|
| 772 | |
---|
| 773 | By default, \`make install' will install all the files in |
---|
| 774 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 775 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 776 | for instance \`--prefix=\$HOME'. |
---|
| 777 | |
---|
| 778 | For better control, use the options below. |
---|
| 779 | |
---|
| 780 | Fine tuning of the installation directories: |
---|
| 781 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 782 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 783 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 784 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 785 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 786 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 787 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 788 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 789 | --includedir=DIR C header files [PREFIX/include] |
---|
| 790 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 791 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 792 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 793 | _ACEOF |
---|
| 794 | |
---|
| 795 | cat <<\_ACEOF |
---|
| 796 | _ACEOF |
---|
| 797 | fi |
---|
| 798 | |
---|
| 799 | if test -n "$ac_init_help"; then |
---|
| 800 | |
---|
| 801 | cat <<\_ACEOF |
---|
| 802 | |
---|
| 803 | Optional Features: |
---|
| 804 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 805 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 806 | --enable-threads build with threads |
---|
| 807 | --enable-shared build and link with shared libraries --enable-shared |
---|
| 808 | --enable-64bit enable 64bit support (where applicable) |
---|
| 809 | --enable-wince enable Win/CE support (where applicable) |
---|
| 810 | --enable-symbols build with debugging symbols --disable-symbols |
---|
| 811 | |
---|
| 812 | Optional Packages: |
---|
| 813 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 814 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 815 | --with-encoding encoding for configuration values |
---|
| 816 | --with-celib=DIR use Windows/CE support library from DIR |
---|
| 817 | |
---|
| 818 | Some influential environment variables: |
---|
| 819 | CC C compiler command |
---|
| 820 | CFLAGS C compiler flags |
---|
| 821 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 822 | nonstandard directory <lib dir> |
---|
| 823 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 824 | headers in a nonstandard directory <include dir> |
---|
| 825 | CPP C preprocessor |
---|
| 826 | |
---|
| 827 | Use these variables to override the choices made by `configure' or to help |
---|
| 828 | it to find libraries and programs with nonstandard names/locations. |
---|
| 829 | |
---|
| 830 | _ACEOF |
---|
| 831 | fi |
---|
| 832 | |
---|
| 833 | if test "$ac_init_help" = "recursive"; then |
---|
| 834 | # If there are subdirs, report their specific --help. |
---|
| 835 | ac_popdir=`pwd` |
---|
| 836 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 837 | test -d $ac_dir || continue |
---|
| 838 | ac_builddir=. |
---|
| 839 | |
---|
| 840 | if test "$ac_dir" != .; then |
---|
| 841 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 842 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 843 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 844 | else |
---|
| 845 | ac_dir_suffix= ac_top_builddir= |
---|
| 846 | fi |
---|
| 847 | |
---|
| 848 | case $srcdir in |
---|
| 849 | .) # No --srcdir option. We are building in place. |
---|
| 850 | ac_srcdir=. |
---|
| 851 | if test -z "$ac_top_builddir"; then |
---|
| 852 | ac_top_srcdir=. |
---|
| 853 | else |
---|
| 854 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 855 | fi ;; |
---|
| 856 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 857 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 858 | ac_top_srcdir=$srcdir ;; |
---|
| 859 | *) # Relative path. |
---|
| 860 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 861 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 862 | esac |
---|
| 863 | |
---|
| 864 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 865 | # the directories may not exist. |
---|
| 866 | case `pwd` in |
---|
| 867 | .) ac_abs_builddir="$ac_dir";; |
---|
| 868 | *) |
---|
| 869 | case "$ac_dir" in |
---|
| 870 | .) ac_abs_builddir=`pwd`;; |
---|
| 871 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 872 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 873 | esac;; |
---|
| 874 | esac |
---|
| 875 | case $ac_abs_builddir in |
---|
| 876 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 877 | *) |
---|
| 878 | case ${ac_top_builddir}. in |
---|
| 879 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 880 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 881 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 882 | esac;; |
---|
| 883 | esac |
---|
| 884 | case $ac_abs_builddir in |
---|
| 885 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 886 | *) |
---|
| 887 | case $ac_srcdir in |
---|
| 888 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 889 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 890 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 891 | esac;; |
---|
| 892 | esac |
---|
| 893 | case $ac_abs_builddir in |
---|
| 894 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 895 | *) |
---|
| 896 | case $ac_top_srcdir in |
---|
| 897 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 898 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 899 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 900 | esac;; |
---|
| 901 | esac |
---|
| 902 | |
---|
| 903 | cd $ac_dir |
---|
| 904 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 905 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 906 | echo |
---|
| 907 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 908 | elif test -f $ac_srcdir/configure; then |
---|
| 909 | echo |
---|
| 910 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 911 | elif test -f $ac_srcdir/configure.ac || |
---|
| 912 | test -f $ac_srcdir/configure.in; then |
---|
| 913 | echo |
---|
| 914 | $ac_configure --help |
---|
| 915 | else |
---|
| 916 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 917 | fi |
---|
| 918 | cd $ac_popdir |
---|
| 919 | done |
---|
| 920 | fi |
---|
| 921 | |
---|
| 922 | test -n "$ac_init_help" && exit 0 |
---|
| 923 | if $ac_init_version; then |
---|
| 924 | cat <<\_ACEOF |
---|
| 925 | |
---|
| 926 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 927 | This configure script is free software; the Free Software Foundation |
---|
| 928 | gives unlimited permission to copy, distribute and modify it. |
---|
| 929 | _ACEOF |
---|
| 930 | exit 0 |
---|
| 931 | fi |
---|
| 932 | exec 5>config.log |
---|
| 933 | cat >&5 <<_ACEOF |
---|
| 934 | This file contains any messages produced by compilers while |
---|
| 935 | running configure, to aid debugging if configure makes a mistake. |
---|
| 936 | |
---|
| 937 | It was created by $as_me, which was |
---|
| 938 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 939 | |
---|
| 940 | $ $0 $@ |
---|
| 941 | |
---|
| 942 | _ACEOF |
---|
| 943 | { |
---|
| 944 | cat <<_ASUNAME |
---|
| 945 | ## --------- ## |
---|
| 946 | ## Platform. ## |
---|
| 947 | ## --------- ## |
---|
| 948 | |
---|
| 949 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 950 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 951 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 952 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 953 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 954 | |
---|
| 955 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 956 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 957 | |
---|
| 958 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 959 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 960 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 961 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 962 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 963 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 964 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 965 | |
---|
| 966 | _ASUNAME |
---|
| 967 | |
---|
| 968 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 969 | for as_dir in $PATH |
---|
| 970 | do |
---|
| 971 | IFS=$as_save_IFS |
---|
| 972 | test -z "$as_dir" && as_dir=. |
---|
| 973 | echo "PATH: $as_dir" |
---|
| 974 | done |
---|
| 975 | |
---|
| 976 | } >&5 |
---|
| 977 | |
---|
| 978 | cat >&5 <<_ACEOF |
---|
| 979 | |
---|
| 980 | |
---|
| 981 | ## ----------- ## |
---|
| 982 | ## Core tests. ## |
---|
| 983 | ## ----------- ## |
---|
| 984 | |
---|
| 985 | _ACEOF |
---|
| 986 | |
---|
| 987 | |
---|
| 988 | # Keep a trace of the command line. |
---|
| 989 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 990 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 991 | # Also quote any args containing shell meta-characters. |
---|
| 992 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 993 | ac_configure_args= |
---|
| 994 | ac_configure_args0= |
---|
| 995 | ac_configure_args1= |
---|
| 996 | ac_sep= |
---|
| 997 | ac_must_keep_next=false |
---|
| 998 | for ac_pass in 1 2 |
---|
| 999 | do |
---|
| 1000 | for ac_arg |
---|
| 1001 | do |
---|
| 1002 | case $ac_arg in |
---|
| 1003 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1004 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1005 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1006 | continue ;; |
---|
| 1007 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1008 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1009 | esac |
---|
| 1010 | case $ac_pass in |
---|
| 1011 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1012 | 2) |
---|
| 1013 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1014 | if test $ac_must_keep_next = true; then |
---|
| 1015 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1016 | else |
---|
| 1017 | case $ac_arg in |
---|
| 1018 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1019 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1020 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1021 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1022 | case "$ac_configure_args0 " in |
---|
| 1023 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1024 | esac |
---|
| 1025 | ;; |
---|
| 1026 | -* ) ac_must_keep_next=true ;; |
---|
| 1027 | esac |
---|
| 1028 | fi |
---|
| 1029 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1030 | # Get rid of the leading space. |
---|
| 1031 | ac_sep=" " |
---|
| 1032 | ;; |
---|
| 1033 | esac |
---|
| 1034 | done |
---|
| 1035 | done |
---|
| 1036 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1037 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1038 | |
---|
| 1039 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1040 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1041 | # would cause problems or look ugly. |
---|
| 1042 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1043 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1044 | trap 'exit_status=$? |
---|
| 1045 | # Save into config.log some information that might help in debugging. |
---|
| 1046 | { |
---|
| 1047 | echo |
---|
| 1048 | |
---|
| 1049 | cat <<\_ASBOX |
---|
| 1050 | ## ---------------- ## |
---|
| 1051 | ## Cache variables. ## |
---|
| 1052 | ## ---------------- ## |
---|
| 1053 | _ASBOX |
---|
| 1054 | echo |
---|
| 1055 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1056 | { |
---|
| 1057 | (set) 2>&1 | |
---|
| 1058 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1059 | *ac_space=\ *) |
---|
| 1060 | sed -n \ |
---|
| 1061 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1062 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1063 | ;; |
---|
| 1064 | *) |
---|
| 1065 | sed -n \ |
---|
| 1066 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1067 | ;; |
---|
| 1068 | esac; |
---|
| 1069 | } |
---|
| 1070 | echo |
---|
| 1071 | |
---|
| 1072 | cat <<\_ASBOX |
---|
| 1073 | ## ----------------- ## |
---|
| 1074 | ## Output variables. ## |
---|
| 1075 | ## ----------------- ## |
---|
| 1076 | _ASBOX |
---|
| 1077 | echo |
---|
| 1078 | for ac_var in $ac_subst_vars |
---|
| 1079 | do |
---|
| 1080 | eval ac_val=$`echo $ac_var` |
---|
| 1081 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1082 | done | sort |
---|
| 1083 | echo |
---|
| 1084 | |
---|
| 1085 | if test -n "$ac_subst_files"; then |
---|
| 1086 | cat <<\_ASBOX |
---|
| 1087 | ## ------------- ## |
---|
| 1088 | ## Output files. ## |
---|
| 1089 | ## ------------- ## |
---|
| 1090 | _ASBOX |
---|
| 1091 | echo |
---|
| 1092 | for ac_var in $ac_subst_files |
---|
| 1093 | do |
---|
| 1094 | eval ac_val=$`echo $ac_var` |
---|
| 1095 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1096 | done | sort |
---|
| 1097 | echo |
---|
| 1098 | fi |
---|
| 1099 | |
---|
| 1100 | if test -s confdefs.h; then |
---|
| 1101 | cat <<\_ASBOX |
---|
| 1102 | ## ----------- ## |
---|
| 1103 | ## confdefs.h. ## |
---|
| 1104 | ## ----------- ## |
---|
| 1105 | _ASBOX |
---|
| 1106 | echo |
---|
| 1107 | sed "/^$/d" confdefs.h | sort |
---|
| 1108 | echo |
---|
| 1109 | fi |
---|
| 1110 | test "$ac_signal" != 0 && |
---|
| 1111 | echo "$as_me: caught signal $ac_signal" |
---|
| 1112 | echo "$as_me: exit $exit_status" |
---|
| 1113 | } >&5 |
---|
| 1114 | rm -f core *.core && |
---|
| 1115 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1116 | exit $exit_status |
---|
| 1117 | ' 0 |
---|
| 1118 | for ac_signal in 1 2 13 15; do |
---|
| 1119 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1120 | done |
---|
| 1121 | ac_signal=0 |
---|
| 1122 | |
---|
| 1123 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1124 | rm -rf conftest* confdefs.h |
---|
| 1125 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1126 | echo >confdefs.h |
---|
| 1127 | |
---|
| 1128 | # Predefined preprocessor variables. |
---|
| 1129 | |
---|
| 1130 | cat >>confdefs.h <<_ACEOF |
---|
| 1131 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1132 | _ACEOF |
---|
| 1133 | |
---|
| 1134 | |
---|
| 1135 | cat >>confdefs.h <<_ACEOF |
---|
| 1136 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1137 | _ACEOF |
---|
| 1138 | |
---|
| 1139 | |
---|
| 1140 | cat >>confdefs.h <<_ACEOF |
---|
| 1141 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1142 | _ACEOF |
---|
| 1143 | |
---|
| 1144 | |
---|
| 1145 | cat >>confdefs.h <<_ACEOF |
---|
| 1146 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1147 | _ACEOF |
---|
| 1148 | |
---|
| 1149 | |
---|
| 1150 | cat >>confdefs.h <<_ACEOF |
---|
| 1151 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1152 | _ACEOF |
---|
| 1153 | |
---|
| 1154 | |
---|
| 1155 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1156 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1157 | if test -z "$CONFIG_SITE"; then |
---|
| 1158 | if test "x$prefix" != xNONE; then |
---|
| 1159 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1160 | else |
---|
| 1161 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1162 | fi |
---|
| 1163 | fi |
---|
| 1164 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1165 | if test -r "$ac_site_file"; then |
---|
| 1166 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1167 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1168 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1169 | . "$ac_site_file" |
---|
| 1170 | fi |
---|
| 1171 | done |
---|
| 1172 | |
---|
| 1173 | if test -r "$cache_file"; then |
---|
| 1174 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1175 | # files actually), so we avoid doing that. |
---|
| 1176 | if test -f "$cache_file"; then |
---|
| 1177 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1178 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1179 | case $cache_file in |
---|
| 1180 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1181 | *) . ./$cache_file;; |
---|
| 1182 | esac |
---|
| 1183 | fi |
---|
| 1184 | else |
---|
| 1185 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1186 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1187 | >$cache_file |
---|
| 1188 | fi |
---|
| 1189 | |
---|
| 1190 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1191 | # value. |
---|
| 1192 | ac_cache_corrupted=false |
---|
| 1193 | for ac_var in `(set) 2>&1 | |
---|
| 1194 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1195 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1196 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1197 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1198 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1199 | case $ac_old_set,$ac_new_set in |
---|
| 1200 | set,) |
---|
| 1201 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1202 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1203 | ac_cache_corrupted=: ;; |
---|
| 1204 | ,set) |
---|
| 1205 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1206 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1207 | ac_cache_corrupted=: ;; |
---|
| 1208 | ,);; |
---|
| 1209 | *) |
---|
| 1210 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1211 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1212 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1213 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1214 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1215 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1216 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1217 | ac_cache_corrupted=: |
---|
| 1218 | fi;; |
---|
| 1219 | esac |
---|
| 1220 | # Pass precious variables to config.status. |
---|
| 1221 | if test "$ac_new_set" = set; then |
---|
| 1222 | case $ac_new_val in |
---|
| 1223 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1224 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1225 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1226 | esac |
---|
| 1227 | case " $ac_configure_args " in |
---|
| 1228 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1229 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1230 | esac |
---|
| 1231 | fi |
---|
| 1232 | done |
---|
| 1233 | if $ac_cache_corrupted; then |
---|
| 1234 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1235 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1236 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1237 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1238 | { (exit 1); exit 1; }; } |
---|
| 1239 | fi |
---|
| 1240 | |
---|
| 1241 | ac_ext=c |
---|
| 1242 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1246 | |
---|
| 1247 | |
---|
| 1248 | |
---|
| 1249 | |
---|
| 1250 | |
---|
| 1251 | |
---|
| 1252 | |
---|
| 1253 | |
---|
| 1254 | |
---|
| 1255 | |
---|
| 1256 | |
---|
| 1257 | |
---|
| 1258 | |
---|
| 1259 | |
---|
| 1260 | |
---|
| 1261 | |
---|
| 1262 | |
---|
| 1263 | |
---|
| 1264 | |
---|
| 1265 | |
---|
| 1266 | |
---|
| 1267 | # The following define is needed when building with Cygwin since newer |
---|
| 1268 | # versions of autoconf incorrectly set SHELL to /bin/bash instead of |
---|
| 1269 | # /bin/sh. The bash shell seems to suffer from some strange failures. |
---|
| 1270 | SHELL=/bin/sh |
---|
| 1271 | |
---|
| 1272 | TCL_VERSION=8.5 |
---|
| 1273 | TCL_MAJOR_VERSION=8 |
---|
| 1274 | TCL_MINOR_VERSION=5 |
---|
| 1275 | TCL_PATCH_LEVEL=".2" |
---|
| 1276 | VER=$TCL_MAJOR_VERSION$TCL_MINOR_VERSION |
---|
| 1277 | |
---|
| 1278 | TCL_DDE_VERSION=1.3 |
---|
| 1279 | TCL_DDE_MAJOR_VERSION=1 |
---|
| 1280 | TCL_DDE_MINOR_VERSION=3 |
---|
| 1281 | TCL_DDE_PATCH_LEVEL="2" |
---|
| 1282 | DDEVER=$TCL_DDE_MAJOR_VERSION$TCL_DDE_MINOR_VERSION |
---|
| 1283 | |
---|
| 1284 | TCL_REG_VERSION=1.2 |
---|
| 1285 | TCL_REG_MAJOR_VERSION=1 |
---|
| 1286 | TCL_REG_MINOR_VERSION=2 |
---|
| 1287 | TCL_REG_PATCH_LEVEL="1" |
---|
| 1288 | REGVER=$TCL_REG_MAJOR_VERSION$TCL_REG_MINOR_VERSION |
---|
| 1289 | |
---|
| 1290 | #------------------------------------------------------------------------ |
---|
| 1291 | # Handle the --prefix=... option |
---|
| 1292 | #------------------------------------------------------------------------ |
---|
| 1293 | |
---|
| 1294 | if test "${prefix}" = "NONE"; then |
---|
| 1295 | prefix=/usr/local |
---|
| 1296 | fi |
---|
| 1297 | if test "${exec_prefix}" = "NONE"; then |
---|
| 1298 | exec_prefix=$prefix |
---|
| 1299 | fi |
---|
| 1300 | # libdir must be a fully qualified path (not ${exec_prefix}/lib) |
---|
| 1301 | eval libdir="$libdir" |
---|
| 1302 | |
---|
| 1303 | #------------------------------------------------------------------------ |
---|
| 1304 | # Standard compiler checks |
---|
| 1305 | #------------------------------------------------------------------------ |
---|
| 1306 | |
---|
| 1307 | # If the user did not set CFLAGS, set it now to keep |
---|
| 1308 | # the AC_PROG_CC macro from adding "-g -O2". |
---|
| 1309 | if test "${CFLAGS+set}" != "set" ; then |
---|
| 1310 | CFLAGS="" |
---|
| 1311 | fi |
---|
| 1312 | |
---|
| 1313 | ac_ext=c |
---|
| 1314 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1318 | if test -n "$ac_tool_prefix"; then |
---|
| 1319 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 1320 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 1321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1323 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1325 | else |
---|
| 1326 | if test -n "$CC"; then |
---|
| 1327 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1328 | else |
---|
| 1329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1330 | for as_dir in $PATH |
---|
| 1331 | do |
---|
| 1332 | IFS=$as_save_IFS |
---|
| 1333 | test -z "$as_dir" && as_dir=. |
---|
| 1334 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1336 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 1337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1338 | break 2 |
---|
| 1339 | fi |
---|
| 1340 | done |
---|
| 1341 | done |
---|
| 1342 | |
---|
| 1343 | fi |
---|
| 1344 | fi |
---|
| 1345 | CC=$ac_cv_prog_CC |
---|
| 1346 | if test -n "$CC"; then |
---|
| 1347 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1348 | echo "${ECHO_T}$CC" >&6 |
---|
| 1349 | else |
---|
| 1350 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1351 | echo "${ECHO_T}no" >&6 |
---|
| 1352 | fi |
---|
| 1353 | |
---|
| 1354 | fi |
---|
| 1355 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1356 | ac_ct_CC=$CC |
---|
| 1357 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 1358 | set dummy gcc; ac_word=$2 |
---|
| 1359 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1361 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1362 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1363 | else |
---|
| 1364 | if test -n "$ac_ct_CC"; then |
---|
| 1365 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1366 | else |
---|
| 1367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1368 | for as_dir in $PATH |
---|
| 1369 | do |
---|
| 1370 | IFS=$as_save_IFS |
---|
| 1371 | test -z "$as_dir" && as_dir=. |
---|
| 1372 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1373 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1374 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 1375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1376 | break 2 |
---|
| 1377 | fi |
---|
| 1378 | done |
---|
| 1379 | done |
---|
| 1380 | |
---|
| 1381 | fi |
---|
| 1382 | fi |
---|
| 1383 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1384 | if test -n "$ac_ct_CC"; then |
---|
| 1385 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1386 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1387 | else |
---|
| 1388 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1389 | echo "${ECHO_T}no" >&6 |
---|
| 1390 | fi |
---|
| 1391 | |
---|
| 1392 | CC=$ac_ct_CC |
---|
| 1393 | else |
---|
| 1394 | CC="$ac_cv_prog_CC" |
---|
| 1395 | fi |
---|
| 1396 | |
---|
| 1397 | if test -z "$CC"; then |
---|
| 1398 | if test -n "$ac_tool_prefix"; then |
---|
| 1399 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 1400 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 1401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1403 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1405 | else |
---|
| 1406 | if test -n "$CC"; then |
---|
| 1407 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1408 | else |
---|
| 1409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1410 | for as_dir in $PATH |
---|
| 1411 | do |
---|
| 1412 | IFS=$as_save_IFS |
---|
| 1413 | test -z "$as_dir" && as_dir=. |
---|
| 1414 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1416 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 1417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1418 | break 2 |
---|
| 1419 | fi |
---|
| 1420 | done |
---|
| 1421 | done |
---|
| 1422 | |
---|
| 1423 | fi |
---|
| 1424 | fi |
---|
| 1425 | CC=$ac_cv_prog_CC |
---|
| 1426 | if test -n "$CC"; then |
---|
| 1427 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1428 | echo "${ECHO_T}$CC" >&6 |
---|
| 1429 | else |
---|
| 1430 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1431 | echo "${ECHO_T}no" >&6 |
---|
| 1432 | fi |
---|
| 1433 | |
---|
| 1434 | fi |
---|
| 1435 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1436 | ac_ct_CC=$CC |
---|
| 1437 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1438 | set dummy cc; ac_word=$2 |
---|
| 1439 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1441 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1443 | else |
---|
| 1444 | if test -n "$ac_ct_CC"; then |
---|
| 1445 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1446 | else |
---|
| 1447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1448 | for as_dir in $PATH |
---|
| 1449 | do |
---|
| 1450 | IFS=$as_save_IFS |
---|
| 1451 | test -z "$as_dir" && as_dir=. |
---|
| 1452 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1454 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 1455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1456 | break 2 |
---|
| 1457 | fi |
---|
| 1458 | done |
---|
| 1459 | done |
---|
| 1460 | |
---|
| 1461 | fi |
---|
| 1462 | fi |
---|
| 1463 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1464 | if test -n "$ac_ct_CC"; then |
---|
| 1465 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1466 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1467 | else |
---|
| 1468 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1469 | echo "${ECHO_T}no" >&6 |
---|
| 1470 | fi |
---|
| 1471 | |
---|
| 1472 | CC=$ac_ct_CC |
---|
| 1473 | else |
---|
| 1474 | CC="$ac_cv_prog_CC" |
---|
| 1475 | fi |
---|
| 1476 | |
---|
| 1477 | fi |
---|
| 1478 | if test -z "$CC"; then |
---|
| 1479 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1480 | set dummy cc; ac_word=$2 |
---|
| 1481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1483 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1485 | else |
---|
| 1486 | if test -n "$CC"; then |
---|
| 1487 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1488 | else |
---|
| 1489 | ac_prog_rejected=no |
---|
| 1490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1491 | for as_dir in $PATH |
---|
| 1492 | do |
---|
| 1493 | IFS=$as_save_IFS |
---|
| 1494 | test -z "$as_dir" && as_dir=. |
---|
| 1495 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1496 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1497 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 1498 | ac_prog_rejected=yes |
---|
| 1499 | continue |
---|
| 1500 | fi |
---|
| 1501 | ac_cv_prog_CC="cc" |
---|
| 1502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1503 | break 2 |
---|
| 1504 | fi |
---|
| 1505 | done |
---|
| 1506 | done |
---|
| 1507 | |
---|
| 1508 | if test $ac_prog_rejected = yes; then |
---|
| 1509 | # We found a bogon in the path, so make sure we never use it. |
---|
| 1510 | set dummy $ac_cv_prog_CC |
---|
| 1511 | shift |
---|
| 1512 | if test $# != 0; then |
---|
| 1513 | # We chose a different compiler from the bogus one. |
---|
| 1514 | # However, it has the same basename, so the bogon will be chosen |
---|
| 1515 | # first if we set CC to just the basename; use the full file name. |
---|
| 1516 | shift |
---|
| 1517 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 1518 | fi |
---|
| 1519 | fi |
---|
| 1520 | fi |
---|
| 1521 | fi |
---|
| 1522 | CC=$ac_cv_prog_CC |
---|
| 1523 | if test -n "$CC"; then |
---|
| 1524 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1525 | echo "${ECHO_T}$CC" >&6 |
---|
| 1526 | else |
---|
| 1527 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1528 | echo "${ECHO_T}no" >&6 |
---|
| 1529 | fi |
---|
| 1530 | |
---|
| 1531 | fi |
---|
| 1532 | if test -z "$CC"; then |
---|
| 1533 | if test -n "$ac_tool_prefix"; then |
---|
| 1534 | for ac_prog in cl |
---|
| 1535 | do |
---|
| 1536 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1537 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1538 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1540 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1542 | else |
---|
| 1543 | if test -n "$CC"; then |
---|
| 1544 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1545 | else |
---|
| 1546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1547 | for as_dir in $PATH |
---|
| 1548 | do |
---|
| 1549 | IFS=$as_save_IFS |
---|
| 1550 | test -z "$as_dir" && as_dir=. |
---|
| 1551 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1552 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1553 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 1554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1555 | break 2 |
---|
| 1556 | fi |
---|
| 1557 | done |
---|
| 1558 | done |
---|
| 1559 | |
---|
| 1560 | fi |
---|
| 1561 | fi |
---|
| 1562 | CC=$ac_cv_prog_CC |
---|
| 1563 | if test -n "$CC"; then |
---|
| 1564 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1565 | echo "${ECHO_T}$CC" >&6 |
---|
| 1566 | else |
---|
| 1567 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1568 | echo "${ECHO_T}no" >&6 |
---|
| 1569 | fi |
---|
| 1570 | |
---|
| 1571 | test -n "$CC" && break |
---|
| 1572 | done |
---|
| 1573 | fi |
---|
| 1574 | if test -z "$CC"; then |
---|
| 1575 | ac_ct_CC=$CC |
---|
| 1576 | for ac_prog in cl |
---|
| 1577 | do |
---|
| 1578 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1579 | set dummy $ac_prog; ac_word=$2 |
---|
| 1580 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1582 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1584 | else |
---|
| 1585 | if test -n "$ac_ct_CC"; then |
---|
| 1586 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1587 | else |
---|
| 1588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1589 | for as_dir in $PATH |
---|
| 1590 | do |
---|
| 1591 | IFS=$as_save_IFS |
---|
| 1592 | test -z "$as_dir" && as_dir=. |
---|
| 1593 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1594 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1595 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 1596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1597 | break 2 |
---|
| 1598 | fi |
---|
| 1599 | done |
---|
| 1600 | done |
---|
| 1601 | |
---|
| 1602 | fi |
---|
| 1603 | fi |
---|
| 1604 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1605 | if test -n "$ac_ct_CC"; then |
---|
| 1606 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1607 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1608 | else |
---|
| 1609 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1610 | echo "${ECHO_T}no" >&6 |
---|
| 1611 | fi |
---|
| 1612 | |
---|
| 1613 | test -n "$ac_ct_CC" && break |
---|
| 1614 | done |
---|
| 1615 | |
---|
| 1616 | CC=$ac_ct_CC |
---|
| 1617 | fi |
---|
| 1618 | |
---|
| 1619 | fi |
---|
| 1620 | |
---|
| 1621 | |
---|
| 1622 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 1623 | See \`config.log' for more details." >&5 |
---|
| 1624 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 1625 | See \`config.log' for more details." >&2;} |
---|
| 1626 | { (exit 1); exit 1; }; } |
---|
| 1627 | |
---|
| 1628 | # Provide some information about the compiler. |
---|
| 1629 | echo "$as_me:$LINENO:" \ |
---|
| 1630 | "checking for C compiler version" >&5 |
---|
| 1631 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1632 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1633 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1634 | ac_status=$? |
---|
| 1635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1636 | (exit $ac_status); } |
---|
| 1637 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1638 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1639 | ac_status=$? |
---|
| 1640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1641 | (exit $ac_status); } |
---|
| 1642 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1643 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1644 | ac_status=$? |
---|
| 1645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1646 | (exit $ac_status); } |
---|
| 1647 | |
---|
| 1648 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1649 | /* confdefs.h. */ |
---|
| 1650 | _ACEOF |
---|
| 1651 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1652 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1653 | /* end confdefs.h. */ |
---|
| 1654 | |
---|
| 1655 | int |
---|
| 1656 | main () |
---|
| 1657 | { |
---|
| 1658 | |
---|
| 1659 | ; |
---|
| 1660 | return 0; |
---|
| 1661 | } |
---|
| 1662 | _ACEOF |
---|
| 1663 | ac_clean_files_save=$ac_clean_files |
---|
| 1664 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1665 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1666 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1667 | # of exeext. |
---|
| 1668 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
| 1669 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
| 1670 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1671 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1672 | (eval $ac_link_default) 2>&5 |
---|
| 1673 | ac_status=$? |
---|
| 1674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1675 | (exit $ac_status); }; then |
---|
| 1676 | # Find the output, starting from the most likely. This scheme is |
---|
| 1677 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1678 | # resort. |
---|
| 1679 | |
---|
| 1680 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1681 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1682 | ac_cv_exeext= |
---|
| 1683 | # b.out is created by i960 compilers. |
---|
| 1684 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1685 | do |
---|
| 1686 | test -f "$ac_file" || continue |
---|
| 1687 | case $ac_file in |
---|
| 1688 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 1689 | ;; |
---|
| 1690 | conftest.$ac_ext ) |
---|
| 1691 | # This is the source file. |
---|
| 1692 | ;; |
---|
| 1693 | [ab].out ) |
---|
| 1694 | # We found the default executable, but exeext='' is most |
---|
| 1695 | # certainly right. |
---|
| 1696 | break;; |
---|
| 1697 | *.* ) |
---|
| 1698 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1699 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 1700 | # but it would be cool to find out if it's true. Does anybody |
---|
| 1701 | # maintain Libtool? --akim. |
---|
| 1702 | export ac_cv_exeext |
---|
| 1703 | break;; |
---|
| 1704 | * ) |
---|
| 1705 | break;; |
---|
| 1706 | esac |
---|
| 1707 | done |
---|
| 1708 | else |
---|
| 1709 | echo "$as_me: failed program was:" >&5 |
---|
| 1710 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1711 | |
---|
| 1712 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
| 1713 | See \`config.log' for more details." >&5 |
---|
| 1714 | echo "$as_me: error: C compiler cannot create executables |
---|
| 1715 | See \`config.log' for more details." >&2;} |
---|
| 1716 | { (exit 77); exit 77; }; } |
---|
| 1717 | fi |
---|
| 1718 | |
---|
| 1719 | ac_exeext=$ac_cv_exeext |
---|
| 1720 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 1721 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 1722 | |
---|
| 1723 | # Check the compiler produces executables we can run. If not, either |
---|
| 1724 | # the compiler is broken, or we cross compile. |
---|
| 1725 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
| 1726 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
| 1727 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 1728 | # If not cross compiling, check that we can run a simple program. |
---|
| 1729 | if test "$cross_compiling" != yes; then |
---|
| 1730 | if { ac_try='./$ac_file' |
---|
| 1731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1732 | (eval $ac_try) 2>&5 |
---|
| 1733 | ac_status=$? |
---|
| 1734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1735 | (exit $ac_status); }; }; then |
---|
| 1736 | cross_compiling=no |
---|
| 1737 | else |
---|
| 1738 | if test "$cross_compiling" = maybe; then |
---|
| 1739 | cross_compiling=yes |
---|
| 1740 | else |
---|
| 1741 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
| 1742 | If you meant to cross compile, use \`--host'. |
---|
| 1743 | See \`config.log' for more details." >&5 |
---|
| 1744 | echo "$as_me: error: cannot run C compiled programs. |
---|
| 1745 | If you meant to cross compile, use \`--host'. |
---|
| 1746 | See \`config.log' for more details." >&2;} |
---|
| 1747 | { (exit 1); exit 1; }; } |
---|
| 1748 | fi |
---|
| 1749 | fi |
---|
| 1750 | fi |
---|
| 1751 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1752 | echo "${ECHO_T}yes" >&6 |
---|
| 1753 | |
---|
| 1754 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 1755 | ac_clean_files=$ac_clean_files_save |
---|
| 1756 | # Check the compiler produces executables we can run. If not, either |
---|
| 1757 | # the compiler is broken, or we cross compile. |
---|
| 1758 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 1759 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 1760 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 1761 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 1762 | |
---|
| 1763 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 1764 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 1765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 1766 | (eval $ac_link) 2>&5 |
---|
| 1767 | ac_status=$? |
---|
| 1768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1769 | (exit $ac_status); }; then |
---|
| 1770 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 1771 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 1772 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 1773 | # `rm'. |
---|
| 1774 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 1775 | test -f "$ac_file" || continue |
---|
| 1776 | case $ac_file in |
---|
| 1777 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 1778 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1779 | export ac_cv_exeext |
---|
| 1780 | break;; |
---|
| 1781 | * ) break;; |
---|
| 1782 | esac |
---|
| 1783 | done |
---|
| 1784 | else |
---|
| 1785 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1786 | See \`config.log' for more details." >&5 |
---|
| 1787 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1788 | See \`config.log' for more details." >&2;} |
---|
| 1789 | { (exit 1); exit 1; }; } |
---|
| 1790 | fi |
---|
| 1791 | |
---|
| 1792 | rm -f conftest$ac_cv_exeext |
---|
| 1793 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 1794 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 1795 | |
---|
| 1796 | rm -f conftest.$ac_ext |
---|
| 1797 | EXEEXT=$ac_cv_exeext |
---|
| 1798 | ac_exeext=$EXEEXT |
---|
| 1799 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 1800 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 1801 | if test "${ac_cv_objext+set}" = set; then |
---|
| 1802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1803 | else |
---|
| 1804 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1805 | /* confdefs.h. */ |
---|
| 1806 | _ACEOF |
---|
| 1807 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1808 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1809 | /* end confdefs.h. */ |
---|
| 1810 | |
---|
| 1811 | int |
---|
| 1812 | main () |
---|
| 1813 | { |
---|
| 1814 | |
---|
| 1815 | ; |
---|
| 1816 | return 0; |
---|
| 1817 | } |
---|
| 1818 | _ACEOF |
---|
| 1819 | rm -f conftest.o conftest.obj |
---|
| 1820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1821 | (eval $ac_compile) 2>&5 |
---|
| 1822 | ac_status=$? |
---|
| 1823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1824 | (exit $ac_status); }; then |
---|
| 1825 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 1826 | case $ac_file in |
---|
| 1827 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 1828 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 1829 | break;; |
---|
| 1830 | esac |
---|
| 1831 | done |
---|
| 1832 | else |
---|
| 1833 | echo "$as_me: failed program was:" >&5 |
---|
| 1834 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1835 | |
---|
| 1836 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 1837 | See \`config.log' for more details." >&5 |
---|
| 1838 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 1839 | See \`config.log' for more details." >&2;} |
---|
| 1840 | { (exit 1); exit 1; }; } |
---|
| 1841 | fi |
---|
| 1842 | |
---|
| 1843 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 1844 | fi |
---|
| 1845 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 1846 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 1847 | OBJEXT=$ac_cv_objext |
---|
| 1848 | ac_objext=$OBJEXT |
---|
| 1849 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 1850 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 1851 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 1852 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1853 | else |
---|
| 1854 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1855 | /* confdefs.h. */ |
---|
| 1856 | _ACEOF |
---|
| 1857 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1858 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1859 | /* end confdefs.h. */ |
---|
| 1860 | |
---|
| 1861 | int |
---|
| 1862 | main () |
---|
| 1863 | { |
---|
| 1864 | #ifndef __GNUC__ |
---|
| 1865 | choke me |
---|
| 1866 | #endif |
---|
| 1867 | |
---|
| 1868 | ; |
---|
| 1869 | return 0; |
---|
| 1870 | } |
---|
| 1871 | _ACEOF |
---|
| 1872 | rm -f conftest.$ac_objext |
---|
| 1873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1874 | (eval $ac_compile) 2>conftest.er1 |
---|
| 1875 | ac_status=$? |
---|
| 1876 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1877 | rm -f conftest.er1 |
---|
| 1878 | cat conftest.err >&5 |
---|
| 1879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1880 | (exit $ac_status); } && |
---|
| 1881 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 1882 | || test ! -s conftest.err' |
---|
| 1883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1884 | (eval $ac_try) 2>&5 |
---|
| 1885 | ac_status=$? |
---|
| 1886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1887 | (exit $ac_status); }; } && |
---|
| 1888 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1890 | (eval $ac_try) 2>&5 |
---|
| 1891 | ac_status=$? |
---|
| 1892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1893 | (exit $ac_status); }; }; then |
---|
| 1894 | ac_compiler_gnu=yes |
---|
| 1895 | else |
---|
| 1896 | echo "$as_me: failed program was:" >&5 |
---|
| 1897 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1898 | |
---|
| 1899 | ac_compiler_gnu=no |
---|
| 1900 | fi |
---|
| 1901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1902 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 1903 | |
---|
| 1904 | fi |
---|
| 1905 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 1906 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 1907 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 1908 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 1909 | ac_save_CFLAGS=$CFLAGS |
---|
| 1910 | CFLAGS="-g" |
---|
| 1911 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 1912 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 1913 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 1914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1915 | else |
---|
| 1916 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1917 | /* confdefs.h. */ |
---|
| 1918 | _ACEOF |
---|
| 1919 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1920 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1921 | /* end confdefs.h. */ |
---|
| 1922 | |
---|
| 1923 | int |
---|
| 1924 | main () |
---|
| 1925 | { |
---|
| 1926 | |
---|
| 1927 | ; |
---|
| 1928 | return 0; |
---|
| 1929 | } |
---|
| 1930 | _ACEOF |
---|
| 1931 | rm -f conftest.$ac_objext |
---|
| 1932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1933 | (eval $ac_compile) 2>conftest.er1 |
---|
| 1934 | ac_status=$? |
---|
| 1935 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1936 | rm -f conftest.er1 |
---|
| 1937 | cat conftest.err >&5 |
---|
| 1938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1939 | (exit $ac_status); } && |
---|
| 1940 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 1941 | || test ! -s conftest.err' |
---|
| 1942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1943 | (eval $ac_try) 2>&5 |
---|
| 1944 | ac_status=$? |
---|
| 1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1946 | (exit $ac_status); }; } && |
---|
| 1947 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1949 | (eval $ac_try) 2>&5 |
---|
| 1950 | ac_status=$? |
---|
| 1951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1952 | (exit $ac_status); }; }; then |
---|
| 1953 | ac_cv_prog_cc_g=yes |
---|
| 1954 | else |
---|
| 1955 | echo "$as_me: failed program was:" >&5 |
---|
| 1956 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1957 | |
---|
| 1958 | ac_cv_prog_cc_g=no |
---|
| 1959 | fi |
---|
| 1960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1961 | fi |
---|
| 1962 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 1963 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 1964 | if test "$ac_test_CFLAGS" = set; then |
---|
| 1965 | CFLAGS=$ac_save_CFLAGS |
---|
| 1966 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 1967 | if test "$GCC" = yes; then |
---|
| 1968 | CFLAGS="-g -O2" |
---|
| 1969 | else |
---|
| 1970 | CFLAGS="-g" |
---|
| 1971 | fi |
---|
| 1972 | else |
---|
| 1973 | if test "$GCC" = yes; then |
---|
| 1974 | CFLAGS="-O2" |
---|
| 1975 | else |
---|
| 1976 | CFLAGS= |
---|
| 1977 | fi |
---|
| 1978 | fi |
---|
| 1979 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 1980 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 1981 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 1982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1983 | else |
---|
| 1984 | ac_cv_prog_cc_stdc=no |
---|
| 1985 | ac_save_CC=$CC |
---|
| 1986 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1987 | /* confdefs.h. */ |
---|
| 1988 | _ACEOF |
---|
| 1989 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1990 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1991 | /* end confdefs.h. */ |
---|
| 1992 | #include <stdarg.h> |
---|
| 1993 | #include <stdio.h> |
---|
| 1994 | #include <sys/types.h> |
---|
| 1995 | #include <sys/stat.h> |
---|
| 1996 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 1997 | struct buf { int x; }; |
---|
| 1998 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 1999 | static char *e (p, i) |
---|
| 2000 | char **p; |
---|
| 2001 | int i; |
---|
| 2002 | { |
---|
| 2003 | return p[i]; |
---|
| 2004 | } |
---|
| 2005 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2006 | { |
---|
| 2007 | char *s; |
---|
| 2008 | va_list v; |
---|
| 2009 | va_start (v,p); |
---|
| 2010 | s = g (p, va_arg (v,int)); |
---|
| 2011 | va_end (v); |
---|
| 2012 | return s; |
---|
| 2013 | } |
---|
| 2014 | |
---|
| 2015 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2016 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 2017 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 2018 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 2019 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 2020 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 2021 | that's true only with -std1. */ |
---|
| 2022 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 2023 | |
---|
| 2024 | int test (int i, double x); |
---|
| 2025 | struct s1 {int (*f) (int a);}; |
---|
| 2026 | struct s2 {int (*f) (double a);}; |
---|
| 2027 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2028 | int argc; |
---|
| 2029 | char **argv; |
---|
| 2030 | int |
---|
| 2031 | main () |
---|
| 2032 | { |
---|
| 2033 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2034 | ; |
---|
| 2035 | return 0; |
---|
| 2036 | } |
---|
| 2037 | _ACEOF |
---|
| 2038 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 2039 | # breaks some systems' header files. |
---|
| 2040 | # AIX -qlanglvl=ansi |
---|
| 2041 | # Ultrix and OSF/1 -std1 |
---|
| 2042 | # HP-UX 10.20 and later -Ae |
---|
| 2043 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 2044 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 2045 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 2046 | do |
---|
| 2047 | CC="$ac_save_CC $ac_arg" |
---|
| 2048 | rm -f conftest.$ac_objext |
---|
| 2049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2050 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2051 | ac_status=$? |
---|
| 2052 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2053 | rm -f conftest.er1 |
---|
| 2054 | cat conftest.err >&5 |
---|
| 2055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2056 | (exit $ac_status); } && |
---|
| 2057 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2058 | || test ! -s conftest.err' |
---|
| 2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2060 | (eval $ac_try) 2>&5 |
---|
| 2061 | ac_status=$? |
---|
| 2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2063 | (exit $ac_status); }; } && |
---|
| 2064 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2066 | (eval $ac_try) 2>&5 |
---|
| 2067 | ac_status=$? |
---|
| 2068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2069 | (exit $ac_status); }; }; then |
---|
| 2070 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 2071 | break |
---|
| 2072 | else |
---|
| 2073 | echo "$as_me: failed program was:" >&5 |
---|
| 2074 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2075 | |
---|
| 2076 | fi |
---|
| 2077 | rm -f conftest.err conftest.$ac_objext |
---|
| 2078 | done |
---|
| 2079 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 2080 | CC=$ac_save_CC |
---|
| 2081 | |
---|
| 2082 | fi |
---|
| 2083 | |
---|
| 2084 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 2085 | x|xno) |
---|
| 2086 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 2087 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 2088 | *) |
---|
| 2089 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 2090 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 2091 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 2092 | esac |
---|
| 2093 | |
---|
| 2094 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 2095 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 2096 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 2097 | # the declaration of exit, since it's the most demanding environment. |
---|
| 2098 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2099 | #ifndef __cplusplus |
---|
| 2100 | choke me |
---|
| 2101 | #endif |
---|
| 2102 | _ACEOF |
---|
| 2103 | rm -f conftest.$ac_objext |
---|
| 2104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2105 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2106 | ac_status=$? |
---|
| 2107 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2108 | rm -f conftest.er1 |
---|
| 2109 | cat conftest.err >&5 |
---|
| 2110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2111 | (exit $ac_status); } && |
---|
| 2112 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2113 | || test ! -s conftest.err' |
---|
| 2114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2115 | (eval $ac_try) 2>&5 |
---|
| 2116 | ac_status=$? |
---|
| 2117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2118 | (exit $ac_status); }; } && |
---|
| 2119 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2121 | (eval $ac_try) 2>&5 |
---|
| 2122 | ac_status=$? |
---|
| 2123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2124 | (exit $ac_status); }; }; then |
---|
| 2125 | for ac_declaration in \ |
---|
| 2126 | '' \ |
---|
| 2127 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2128 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2129 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2130 | 'extern "C" void exit (int);' \ |
---|
| 2131 | 'void exit (int);' |
---|
| 2132 | do |
---|
| 2133 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2134 | /* confdefs.h. */ |
---|
| 2135 | _ACEOF |
---|
| 2136 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2137 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2138 | /* end confdefs.h. */ |
---|
| 2139 | $ac_declaration |
---|
| 2140 | #include <stdlib.h> |
---|
| 2141 | int |
---|
| 2142 | main () |
---|
| 2143 | { |
---|
| 2144 | exit (42); |
---|
| 2145 | ; |
---|
| 2146 | return 0; |
---|
| 2147 | } |
---|
| 2148 | _ACEOF |
---|
| 2149 | rm -f conftest.$ac_objext |
---|
| 2150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2151 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2152 | ac_status=$? |
---|
| 2153 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2154 | rm -f conftest.er1 |
---|
| 2155 | cat conftest.err >&5 |
---|
| 2156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2157 | (exit $ac_status); } && |
---|
| 2158 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2159 | || test ! -s conftest.err' |
---|
| 2160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2161 | (eval $ac_try) 2>&5 |
---|
| 2162 | ac_status=$? |
---|
| 2163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2164 | (exit $ac_status); }; } && |
---|
| 2165 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2167 | (eval $ac_try) 2>&5 |
---|
| 2168 | ac_status=$? |
---|
| 2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2170 | (exit $ac_status); }; }; then |
---|
| 2171 | : |
---|
| 2172 | else |
---|
| 2173 | echo "$as_me: failed program was:" >&5 |
---|
| 2174 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2175 | |
---|
| 2176 | continue |
---|
| 2177 | fi |
---|
| 2178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2179 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2180 | /* confdefs.h. */ |
---|
| 2181 | _ACEOF |
---|
| 2182 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2183 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2184 | /* end confdefs.h. */ |
---|
| 2185 | $ac_declaration |
---|
| 2186 | int |
---|
| 2187 | main () |
---|
| 2188 | { |
---|
| 2189 | exit (42); |
---|
| 2190 | ; |
---|
| 2191 | return 0; |
---|
| 2192 | } |
---|
| 2193 | _ACEOF |
---|
| 2194 | rm -f conftest.$ac_objext |
---|
| 2195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2196 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2197 | ac_status=$? |
---|
| 2198 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2199 | rm -f conftest.er1 |
---|
| 2200 | cat conftest.err >&5 |
---|
| 2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2202 | (exit $ac_status); } && |
---|
| 2203 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2204 | || test ! -s conftest.err' |
---|
| 2205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2206 | (eval $ac_try) 2>&5 |
---|
| 2207 | ac_status=$? |
---|
| 2208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2209 | (exit $ac_status); }; } && |
---|
| 2210 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2212 | (eval $ac_try) 2>&5 |
---|
| 2213 | ac_status=$? |
---|
| 2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2215 | (exit $ac_status); }; }; then |
---|
| 2216 | break |
---|
| 2217 | else |
---|
| 2218 | echo "$as_me: failed program was:" >&5 |
---|
| 2219 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2220 | |
---|
| 2221 | fi |
---|
| 2222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2223 | done |
---|
| 2224 | rm -f conftest* |
---|
| 2225 | if test -n "$ac_declaration"; then |
---|
| 2226 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2227 | echo $ac_declaration >>confdefs.h |
---|
| 2228 | echo '#endif' >>confdefs.h |
---|
| 2229 | fi |
---|
| 2230 | |
---|
| 2231 | else |
---|
| 2232 | echo "$as_me: failed program was:" >&5 |
---|
| 2233 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2234 | |
---|
| 2235 | fi |
---|
| 2236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2237 | ac_ext=c |
---|
| 2238 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2242 | |
---|
| 2243 | |
---|
| 2244 | echo "$as_me:$LINENO: checking for inline" >&5 |
---|
| 2245 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
---|
| 2246 | if test "${ac_cv_c_inline+set}" = set; then |
---|
| 2247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2248 | else |
---|
| 2249 | ac_cv_c_inline=no |
---|
| 2250 | for ac_kw in inline __inline__ __inline; do |
---|
| 2251 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2252 | /* confdefs.h. */ |
---|
| 2253 | _ACEOF |
---|
| 2254 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2255 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2256 | /* end confdefs.h. */ |
---|
| 2257 | #ifndef __cplusplus |
---|
| 2258 | typedef int foo_t; |
---|
| 2259 | static $ac_kw foo_t static_foo () {return 0; } |
---|
| 2260 | $ac_kw foo_t foo () {return 0; } |
---|
| 2261 | #endif |
---|
| 2262 | |
---|
| 2263 | _ACEOF |
---|
| 2264 | rm -f conftest.$ac_objext |
---|
| 2265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2266 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2267 | ac_status=$? |
---|
| 2268 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2269 | rm -f conftest.er1 |
---|
| 2270 | cat conftest.err >&5 |
---|
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2272 | (exit $ac_status); } && |
---|
| 2273 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2274 | || test ! -s conftest.err' |
---|
| 2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2276 | (eval $ac_try) 2>&5 |
---|
| 2277 | ac_status=$? |
---|
| 2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2279 | (exit $ac_status); }; } && |
---|
| 2280 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2282 | (eval $ac_try) 2>&5 |
---|
| 2283 | ac_status=$? |
---|
| 2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2285 | (exit $ac_status); }; }; then |
---|
| 2286 | ac_cv_c_inline=$ac_kw; break |
---|
| 2287 | else |
---|
| 2288 | echo "$as_me: failed program was:" >&5 |
---|
| 2289 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2290 | |
---|
| 2291 | fi |
---|
| 2292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2293 | done |
---|
| 2294 | |
---|
| 2295 | fi |
---|
| 2296 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
---|
| 2297 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
---|
| 2298 | |
---|
| 2299 | |
---|
| 2300 | case $ac_cv_c_inline in |
---|
| 2301 | inline | yes) ;; |
---|
| 2302 | *) |
---|
| 2303 | case $ac_cv_c_inline in |
---|
| 2304 | no) ac_val=;; |
---|
| 2305 | *) ac_val=$ac_cv_c_inline;; |
---|
| 2306 | esac |
---|
| 2307 | cat >>confdefs.h <<_ACEOF |
---|
| 2308 | #ifndef __cplusplus |
---|
| 2309 | #define inline $ac_val |
---|
| 2310 | #endif |
---|
| 2311 | _ACEOF |
---|
| 2312 | ;; |
---|
| 2313 | esac |
---|
| 2314 | |
---|
| 2315 | ac_ext=c |
---|
| 2316 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2317 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2318 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2319 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2320 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 2321 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 2322 | # On Suns, sometimes $CPP names a directory. |
---|
| 2323 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 2324 | CPP= |
---|
| 2325 | fi |
---|
| 2326 | if test -z "$CPP"; then |
---|
| 2327 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
| 2328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2329 | else |
---|
| 2330 | # Double quotes because CPP needs to be expanded |
---|
| 2331 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 2332 | do |
---|
| 2333 | ac_preproc_ok=false |
---|
| 2334 | for ac_c_preproc_warn_flag in '' yes |
---|
| 2335 | do |
---|
| 2336 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 2337 | # with a fresh cross-compiler works. |
---|
| 2338 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 2339 | # <limits.h> exists even on freestanding compilers. |
---|
| 2340 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 2341 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 2342 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2343 | /* confdefs.h. */ |
---|
| 2344 | _ACEOF |
---|
| 2345 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2346 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2347 | /* end confdefs.h. */ |
---|
| 2348 | #ifdef __STDC__ |
---|
| 2349 | # include <limits.h> |
---|
| 2350 | #else |
---|
| 2351 | # include <assert.h> |
---|
| 2352 | #endif |
---|
| 2353 | Syntax error |
---|
| 2354 | _ACEOF |
---|
| 2355 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2356 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2357 | ac_status=$? |
---|
| 2358 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2359 | rm -f conftest.er1 |
---|
| 2360 | cat conftest.err >&5 |
---|
| 2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2362 | (exit $ac_status); } >/dev/null; then |
---|
| 2363 | if test -s conftest.err; then |
---|
| 2364 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 2365 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 2366 | else |
---|
| 2367 | ac_cpp_err= |
---|
| 2368 | fi |
---|
| 2369 | else |
---|
| 2370 | ac_cpp_err=yes |
---|
| 2371 | fi |
---|
| 2372 | if test -z "$ac_cpp_err"; then |
---|
| 2373 | : |
---|
| 2374 | else |
---|
| 2375 | echo "$as_me: failed program was:" >&5 |
---|
| 2376 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2377 | |
---|
| 2378 | # Broken: fails on valid input. |
---|
| 2379 | continue |
---|
| 2380 | fi |
---|
| 2381 | rm -f conftest.err conftest.$ac_ext |
---|
| 2382 | |
---|
| 2383 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 2384 | # can be detected and how. |
---|
| 2385 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2386 | /* confdefs.h. */ |
---|
| 2387 | _ACEOF |
---|
| 2388 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2389 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2390 | /* end confdefs.h. */ |
---|
| 2391 | #include <ac_nonexistent.h> |
---|
| 2392 | _ACEOF |
---|
| 2393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2395 | ac_status=$? |
---|
| 2396 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2397 | rm -f conftest.er1 |
---|
| 2398 | cat conftest.err >&5 |
---|
| 2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2400 | (exit $ac_status); } >/dev/null; then |
---|
| 2401 | if test -s conftest.err; then |
---|
| 2402 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 2403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 2404 | else |
---|
| 2405 | ac_cpp_err= |
---|
| 2406 | fi |
---|
| 2407 | else |
---|
| 2408 | ac_cpp_err=yes |
---|
| 2409 | fi |
---|
| 2410 | if test -z "$ac_cpp_err"; then |
---|
| 2411 | # Broken: success on invalid input. |
---|
| 2412 | continue |
---|
| 2413 | else |
---|
| 2414 | echo "$as_me: failed program was:" >&5 |
---|
| 2415 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2416 | |
---|
| 2417 | # Passes both tests. |
---|
| 2418 | ac_preproc_ok=: |
---|
| 2419 | break |
---|
| 2420 | fi |
---|
| 2421 | rm -f conftest.err conftest.$ac_ext |
---|
| 2422 | |
---|
| 2423 | done |
---|
| 2424 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 2425 | rm -f conftest.err conftest.$ac_ext |
---|
| 2426 | if $ac_preproc_ok; then |
---|
| 2427 | break |
---|
| 2428 | fi |
---|
| 2429 | |
---|
| 2430 | done |
---|
| 2431 | ac_cv_prog_CPP=$CPP |
---|
| 2432 | |
---|
| 2433 | fi |
---|
| 2434 | CPP=$ac_cv_prog_CPP |
---|
| 2435 | else |
---|
| 2436 | ac_cv_prog_CPP=$CPP |
---|
| 2437 | fi |
---|
| 2438 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 2439 | echo "${ECHO_T}$CPP" >&6 |
---|
| 2440 | ac_preproc_ok=false |
---|
| 2441 | for ac_c_preproc_warn_flag in '' yes |
---|
| 2442 | do |
---|
| 2443 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 2444 | # with a fresh cross-compiler works. |
---|
| 2445 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 2446 | # <limits.h> exists even on freestanding compilers. |
---|
| 2447 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 2448 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 2449 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2450 | /* confdefs.h. */ |
---|
| 2451 | _ACEOF |
---|
| 2452 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2453 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2454 | /* end confdefs.h. */ |
---|
| 2455 | #ifdef __STDC__ |
---|
| 2456 | # include <limits.h> |
---|
| 2457 | #else |
---|
| 2458 | # include <assert.h> |
---|
| 2459 | #endif |
---|
| 2460 | Syntax error |
---|
| 2461 | _ACEOF |
---|
| 2462 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2463 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2464 | ac_status=$? |
---|
| 2465 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2466 | rm -f conftest.er1 |
---|
| 2467 | cat conftest.err >&5 |
---|
| 2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2469 | (exit $ac_status); } >/dev/null; then |
---|
| 2470 | if test -s conftest.err; then |
---|
| 2471 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 2472 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 2473 | else |
---|
| 2474 | ac_cpp_err= |
---|
| 2475 | fi |
---|
| 2476 | else |
---|
| 2477 | ac_cpp_err=yes |
---|
| 2478 | fi |
---|
| 2479 | if test -z "$ac_cpp_err"; then |
---|
| 2480 | : |
---|
| 2481 | else |
---|
| 2482 | echo "$as_me: failed program was:" >&5 |
---|
| 2483 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2484 | |
---|
| 2485 | # Broken: fails on valid input. |
---|
| 2486 | continue |
---|
| 2487 | fi |
---|
| 2488 | rm -f conftest.err conftest.$ac_ext |
---|
| 2489 | |
---|
| 2490 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 2491 | # can be detected and how. |
---|
| 2492 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2493 | /* confdefs.h. */ |
---|
| 2494 | _ACEOF |
---|
| 2495 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2496 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2497 | /* end confdefs.h. */ |
---|
| 2498 | #include <ac_nonexistent.h> |
---|
| 2499 | _ACEOF |
---|
| 2500 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2501 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2502 | ac_status=$? |
---|
| 2503 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2504 | rm -f conftest.er1 |
---|
| 2505 | cat conftest.err >&5 |
---|
| 2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2507 | (exit $ac_status); } >/dev/null; then |
---|
| 2508 | if test -s conftest.err; then |
---|
| 2509 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 2510 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 2511 | else |
---|
| 2512 | ac_cpp_err= |
---|
| 2513 | fi |
---|
| 2514 | else |
---|
| 2515 | ac_cpp_err=yes |
---|
| 2516 | fi |
---|
| 2517 | if test -z "$ac_cpp_err"; then |
---|
| 2518 | # Broken: success on invalid input. |
---|
| 2519 | continue |
---|
| 2520 | else |
---|
| 2521 | echo "$as_me: failed program was:" >&5 |
---|
| 2522 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2523 | |
---|
| 2524 | # Passes both tests. |
---|
| 2525 | ac_preproc_ok=: |
---|
| 2526 | break |
---|
| 2527 | fi |
---|
| 2528 | rm -f conftest.err conftest.$ac_ext |
---|
| 2529 | |
---|
| 2530 | done |
---|
| 2531 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 2532 | rm -f conftest.err conftest.$ac_ext |
---|
| 2533 | if $ac_preproc_ok; then |
---|
| 2534 | : |
---|
| 2535 | else |
---|
| 2536 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 2537 | See \`config.log' for more details." >&5 |
---|
| 2538 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 2539 | See \`config.log' for more details." >&2;} |
---|
| 2540 | { (exit 1); exit 1; }; } |
---|
| 2541 | fi |
---|
| 2542 | |
---|
| 2543 | ac_ext=c |
---|
| 2544 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2548 | |
---|
| 2549 | |
---|
| 2550 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 2551 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 2552 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 2553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2554 | else |
---|
| 2555 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 2556 | then ac_cv_prog_egrep='grep -E' |
---|
| 2557 | else ac_cv_prog_egrep='egrep' |
---|
| 2558 | fi |
---|
| 2559 | fi |
---|
| 2560 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 2561 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 2562 | EGREP=$ac_cv_prog_egrep |
---|
| 2563 | |
---|
| 2564 | |
---|
| 2565 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 2566 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 2567 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 2568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2569 | else |
---|
| 2570 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2571 | /* confdefs.h. */ |
---|
| 2572 | _ACEOF |
---|
| 2573 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2574 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2575 | /* end confdefs.h. */ |
---|
| 2576 | #include <stdlib.h> |
---|
| 2577 | #include <stdarg.h> |
---|
| 2578 | #include <string.h> |
---|
| 2579 | #include <float.h> |
---|
| 2580 | |
---|
| 2581 | int |
---|
| 2582 | main () |
---|
| 2583 | { |
---|
| 2584 | |
---|
| 2585 | ; |
---|
| 2586 | return 0; |
---|
| 2587 | } |
---|
| 2588 | _ACEOF |
---|
| 2589 | rm -f conftest.$ac_objext |
---|
| 2590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2591 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2592 | ac_status=$? |
---|
| 2593 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2594 | rm -f conftest.er1 |
---|
| 2595 | cat conftest.err >&5 |
---|
| 2596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2597 | (exit $ac_status); } && |
---|
| 2598 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2599 | || test ! -s conftest.err' |
---|
| 2600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2601 | (eval $ac_try) 2>&5 |
---|
| 2602 | ac_status=$? |
---|
| 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2604 | (exit $ac_status); }; } && |
---|
| 2605 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2607 | (eval $ac_try) 2>&5 |
---|
| 2608 | ac_status=$? |
---|
| 2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2610 | (exit $ac_status); }; }; then |
---|
| 2611 | ac_cv_header_stdc=yes |
---|
| 2612 | else |
---|
| 2613 | echo "$as_me: failed program was:" >&5 |
---|
| 2614 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2615 | |
---|
| 2616 | ac_cv_header_stdc=no |
---|
| 2617 | fi |
---|
| 2618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2619 | |
---|
| 2620 | if test $ac_cv_header_stdc = yes; then |
---|
| 2621 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 2622 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2623 | /* confdefs.h. */ |
---|
| 2624 | _ACEOF |
---|
| 2625 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2626 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2627 | /* end confdefs.h. */ |
---|
| 2628 | #include <string.h> |
---|
| 2629 | |
---|
| 2630 | _ACEOF |
---|
| 2631 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 2632 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 2633 | : |
---|
| 2634 | else |
---|
| 2635 | ac_cv_header_stdc=no |
---|
| 2636 | fi |
---|
| 2637 | rm -f conftest* |
---|
| 2638 | |
---|
| 2639 | fi |
---|
| 2640 | |
---|
| 2641 | if test $ac_cv_header_stdc = yes; then |
---|
| 2642 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 2643 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2644 | /* confdefs.h. */ |
---|
| 2645 | _ACEOF |
---|
| 2646 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2647 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2648 | /* end confdefs.h. */ |
---|
| 2649 | #include <stdlib.h> |
---|
| 2650 | |
---|
| 2651 | _ACEOF |
---|
| 2652 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 2653 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 2654 | : |
---|
| 2655 | else |
---|
| 2656 | ac_cv_header_stdc=no |
---|
| 2657 | fi |
---|
| 2658 | rm -f conftest* |
---|
| 2659 | |
---|
| 2660 | fi |
---|
| 2661 | |
---|
| 2662 | if test $ac_cv_header_stdc = yes; then |
---|
| 2663 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 2664 | if test "$cross_compiling" = yes; then |
---|
| 2665 | : |
---|
| 2666 | else |
---|
| 2667 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2668 | /* confdefs.h. */ |
---|
| 2669 | _ACEOF |
---|
| 2670 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2671 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2672 | /* end confdefs.h. */ |
---|
| 2673 | #include <ctype.h> |
---|
| 2674 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 2675 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 2676 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 2677 | #else |
---|
| 2678 | # define ISLOWER(c) \ |
---|
| 2679 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 2680 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 2681 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 2682 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 2683 | #endif |
---|
| 2684 | |
---|
| 2685 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 2686 | int |
---|
| 2687 | main () |
---|
| 2688 | { |
---|
| 2689 | int i; |
---|
| 2690 | for (i = 0; i < 256; i++) |
---|
| 2691 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 2692 | || toupper (i) != TOUPPER (i)) |
---|
| 2693 | exit(2); |
---|
| 2694 | exit (0); |
---|
| 2695 | } |
---|
| 2696 | _ACEOF |
---|
| 2697 | rm -f conftest$ac_exeext |
---|
| 2698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2699 | (eval $ac_link) 2>&5 |
---|
| 2700 | ac_status=$? |
---|
| 2701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2702 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 2703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2704 | (eval $ac_try) 2>&5 |
---|
| 2705 | ac_status=$? |
---|
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2707 | (exit $ac_status); }; }; then |
---|
| 2708 | : |
---|
| 2709 | else |
---|
| 2710 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 2711 | echo "$as_me: failed program was:" >&5 |
---|
| 2712 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2713 | |
---|
| 2714 | ( exit $ac_status ) |
---|
| 2715 | ac_cv_header_stdc=no |
---|
| 2716 | fi |
---|
| 2717 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 2718 | fi |
---|
| 2719 | fi |
---|
| 2720 | fi |
---|
| 2721 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 2722 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 2723 | if test $ac_cv_header_stdc = yes; then |
---|
| 2724 | |
---|
| 2725 | cat >>confdefs.h <<\_ACEOF |
---|
| 2726 | #define STDC_HEADERS 1 |
---|
| 2727 | _ACEOF |
---|
| 2728 | |
---|
| 2729 | fi |
---|
| 2730 | |
---|
| 2731 | |
---|
| 2732 | # To properly support cross-compilation, one would |
---|
| 2733 | # need to use these tool checks instead of |
---|
| 2734 | # the ones below and reconfigure with |
---|
| 2735 | # autoconf 2.50. You can also just set |
---|
| 2736 | # the CC, AR, RANLIB, and RC environment |
---|
| 2737 | # variables if you want to cross compile. |
---|
| 2738 | |
---|
| 2739 | if test "${GCC}" = "yes" ; then |
---|
| 2740 | # Extract the first word of "ar", so it can be a program name with args. |
---|
| 2741 | set dummy ar; ac_word=$2 |
---|
| 2742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2744 | if test "${ac_cv_prog_AR+set}" = set; then |
---|
| 2745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2746 | else |
---|
| 2747 | if test -n "$AR"; then |
---|
| 2748 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
| 2749 | else |
---|
| 2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2751 | for as_dir in $PATH |
---|
| 2752 | do |
---|
| 2753 | IFS=$as_save_IFS |
---|
| 2754 | test -z "$as_dir" && as_dir=. |
---|
| 2755 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2757 | ac_cv_prog_AR="ar" |
---|
| 2758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2759 | break 2 |
---|
| 2760 | fi |
---|
| 2761 | done |
---|
| 2762 | done |
---|
| 2763 | |
---|
| 2764 | fi |
---|
| 2765 | fi |
---|
| 2766 | AR=$ac_cv_prog_AR |
---|
| 2767 | if test -n "$AR"; then |
---|
| 2768 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
| 2769 | echo "${ECHO_T}$AR" >&6 |
---|
| 2770 | else |
---|
| 2771 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2772 | echo "${ECHO_T}no" >&6 |
---|
| 2773 | fi |
---|
| 2774 | |
---|
| 2775 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 2776 | set dummy ranlib; ac_word=$2 |
---|
| 2777 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2779 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 2780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2781 | else |
---|
| 2782 | if test -n "$RANLIB"; then |
---|
| 2783 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 2784 | else |
---|
| 2785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2786 | for as_dir in $PATH |
---|
| 2787 | do |
---|
| 2788 | IFS=$as_save_IFS |
---|
| 2789 | test -z "$as_dir" && as_dir=. |
---|
| 2790 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2792 | ac_cv_prog_RANLIB="ranlib" |
---|
| 2793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2794 | break 2 |
---|
| 2795 | fi |
---|
| 2796 | done |
---|
| 2797 | done |
---|
| 2798 | |
---|
| 2799 | fi |
---|
| 2800 | fi |
---|
| 2801 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 2802 | if test -n "$RANLIB"; then |
---|
| 2803 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 2804 | echo "${ECHO_T}$RANLIB" >&6 |
---|
| 2805 | else |
---|
| 2806 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2807 | echo "${ECHO_T}no" >&6 |
---|
| 2808 | fi |
---|
| 2809 | |
---|
| 2810 | # Extract the first word of "windres", so it can be a program name with args. |
---|
| 2811 | set dummy windres; ac_word=$2 |
---|
| 2812 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2813 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2814 | if test "${ac_cv_prog_RC+set}" = set; then |
---|
| 2815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2816 | else |
---|
| 2817 | if test -n "$RC"; then |
---|
| 2818 | ac_cv_prog_RC="$RC" # Let the user override the test. |
---|
| 2819 | else |
---|
| 2820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2821 | for as_dir in $PATH |
---|
| 2822 | do |
---|
| 2823 | IFS=$as_save_IFS |
---|
| 2824 | test -z "$as_dir" && as_dir=. |
---|
| 2825 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2826 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2827 | ac_cv_prog_RC="windres" |
---|
| 2828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2829 | break 2 |
---|
| 2830 | fi |
---|
| 2831 | done |
---|
| 2832 | done |
---|
| 2833 | |
---|
| 2834 | fi |
---|
| 2835 | fi |
---|
| 2836 | RC=$ac_cv_prog_RC |
---|
| 2837 | if test -n "$RC"; then |
---|
| 2838 | echo "$as_me:$LINENO: result: $RC" >&5 |
---|
| 2839 | echo "${ECHO_T}$RC" >&6 |
---|
| 2840 | else |
---|
| 2841 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2842 | echo "${ECHO_T}no" >&6 |
---|
| 2843 | fi |
---|
| 2844 | |
---|
| 2845 | |
---|
| 2846 | if test "${AR}" = "" ; then |
---|
| 2847 | { { echo "$as_me:$LINENO: error: Required archive tool 'ar' not found on PATH." >&5 |
---|
| 2848 | echo "$as_me: error: Required archive tool 'ar' not found on PATH." >&2;} |
---|
| 2849 | { (exit 1); exit 1; }; } |
---|
| 2850 | fi |
---|
| 2851 | if test "${RANLIB}" = "" ; then |
---|
| 2852 | { { echo "$as_me:$LINENO: error: Required archive index tool 'ranlib' not found on PATH." >&5 |
---|
| 2853 | echo "$as_me: error: Required archive index tool 'ranlib' not found on PATH." >&2;} |
---|
| 2854 | { (exit 1); exit 1; }; } |
---|
| 2855 | fi |
---|
| 2856 | if test "${RC}" = "" ; then |
---|
| 2857 | { { echo "$as_me:$LINENO: error: Required resource tool 'windres' not found on PATH." >&5 |
---|
| 2858 | echo "$as_me: error: Required resource tool 'windres' not found on PATH." >&2;} |
---|
| 2859 | { (exit 1); exit 1; }; } |
---|
| 2860 | fi |
---|
| 2861 | fi |
---|
| 2862 | |
---|
| 2863 | #-------------------------------------------------------------------- |
---|
| 2864 | # Checks to see if the make program sets the $MAKE variable. |
---|
| 2865 | #-------------------------------------------------------------------- |
---|
| 2866 | |
---|
| 2867 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 2868 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 2869 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 2870 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2872 | else |
---|
| 2873 | cat >conftest.make <<\_ACEOF |
---|
| 2874 | all: |
---|
| 2875 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 2876 | _ACEOF |
---|
| 2877 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 2878 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 2879 | if test -n "$ac_maketemp"; then |
---|
| 2880 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 2881 | else |
---|
| 2882 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 2883 | fi |
---|
| 2884 | rm -f conftest.make |
---|
| 2885 | fi |
---|
| 2886 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 2887 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2888 | echo "${ECHO_T}yes" >&6 |
---|
| 2889 | SET_MAKE= |
---|
| 2890 | else |
---|
| 2891 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2892 | echo "${ECHO_T}no" >&6 |
---|
| 2893 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 2894 | fi |
---|
| 2895 | |
---|
| 2896 | |
---|
| 2897 | #-------------------------------------------------------------------- |
---|
| 2898 | # Perform additinal compiler tests. |
---|
| 2899 | #-------------------------------------------------------------------- |
---|
| 2900 | |
---|
| 2901 | |
---|
| 2902 | echo "$as_me:$LINENO: checking for Cygwin version of gcc" >&5 |
---|
| 2903 | echo $ECHO_N "checking for Cygwin version of gcc... $ECHO_C" >&6 |
---|
| 2904 | if test "${ac_cv_cygwin+set}" = set; then |
---|
| 2905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2906 | else |
---|
| 2907 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2908 | /* confdefs.h. */ |
---|
| 2909 | _ACEOF |
---|
| 2910 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2911 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2912 | /* end confdefs.h. */ |
---|
| 2913 | |
---|
| 2914 | #ifdef __CYGWIN__ |
---|
| 2915 | #error cygwin |
---|
| 2916 | #endif |
---|
| 2917 | |
---|
| 2918 | int |
---|
| 2919 | main () |
---|
| 2920 | { |
---|
| 2921 | |
---|
| 2922 | ; |
---|
| 2923 | return 0; |
---|
| 2924 | } |
---|
| 2925 | _ACEOF |
---|
| 2926 | rm -f conftest.$ac_objext |
---|
| 2927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2928 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2929 | ac_status=$? |
---|
| 2930 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2931 | rm -f conftest.er1 |
---|
| 2932 | cat conftest.err >&5 |
---|
| 2933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2934 | (exit $ac_status); } && |
---|
| 2935 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2936 | || test ! -s conftest.err' |
---|
| 2937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2938 | (eval $ac_try) 2>&5 |
---|
| 2939 | ac_status=$? |
---|
| 2940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2941 | (exit $ac_status); }; } && |
---|
| 2942 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2944 | (eval $ac_try) 2>&5 |
---|
| 2945 | ac_status=$? |
---|
| 2946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2947 | (exit $ac_status); }; }; then |
---|
| 2948 | ac_cv_cygwin=no |
---|
| 2949 | else |
---|
| 2950 | echo "$as_me: failed program was:" >&5 |
---|
| 2951 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2952 | |
---|
| 2953 | ac_cv_cygwin=yes |
---|
| 2954 | fi |
---|
| 2955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2956 | |
---|
| 2957 | fi |
---|
| 2958 | echo "$as_me:$LINENO: result: $ac_cv_cygwin" >&5 |
---|
| 2959 | echo "${ECHO_T}$ac_cv_cygwin" >&6 |
---|
| 2960 | if test "$ac_cv_cygwin" = "yes" ; then |
---|
| 2961 | { { echo "$as_me:$LINENO: error: Compiling under Cygwin is not currently supported. |
---|
| 2962 | A maintainer for the Cygwin port of Tcl/Tk is needed. See the README |
---|
| 2963 | file for information about building with Mingw." >&5 |
---|
| 2964 | echo "$as_me: error: Compiling under Cygwin is not currently supported. |
---|
| 2965 | A maintainer for the Cygwin port of Tcl/Tk is needed. See the README |
---|
| 2966 | file for information about building with Mingw." >&2;} |
---|
| 2967 | { (exit 1); exit 1; }; } |
---|
| 2968 | fi |
---|
| 2969 | |
---|
| 2970 | |
---|
| 2971 | echo "$as_me:$LINENO: checking for SEH support in compiler" >&5 |
---|
| 2972 | echo $ECHO_N "checking for SEH support in compiler... $ECHO_C" >&6 |
---|
| 2973 | if test "${tcl_cv_seh+set}" = set; then |
---|
| 2974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2975 | else |
---|
| 2976 | if test "$cross_compiling" = yes; then |
---|
| 2977 | tcl_cv_seh=no |
---|
| 2978 | else |
---|
| 2979 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2980 | /* confdefs.h. */ |
---|
| 2981 | _ACEOF |
---|
| 2982 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2983 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2984 | /* end confdefs.h. */ |
---|
| 2985 | |
---|
| 2986 | #define WIN32_LEAN_AND_MEAN |
---|
| 2987 | #include <windows.h> |
---|
| 2988 | #undef WIN32_LEAN_AND_MEAN |
---|
| 2989 | |
---|
| 2990 | int main(int argc, char** argv) { |
---|
| 2991 | int a, b = 0; |
---|
| 2992 | __try { |
---|
| 2993 | a = 666 / b; |
---|
| 2994 | } |
---|
| 2995 | __except (EXCEPTION_EXECUTE_HANDLER) { |
---|
| 2996 | return 0; |
---|
| 2997 | } |
---|
| 2998 | return 1; |
---|
| 2999 | } |
---|
| 3000 | |
---|
| 3001 | _ACEOF |
---|
| 3002 | rm -f conftest$ac_exeext |
---|
| 3003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3004 | (eval $ac_link) 2>&5 |
---|
| 3005 | ac_status=$? |
---|
| 3006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3007 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3009 | (eval $ac_try) 2>&5 |
---|
| 3010 | ac_status=$? |
---|
| 3011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3012 | (exit $ac_status); }; }; then |
---|
| 3013 | tcl_cv_seh=yes |
---|
| 3014 | else |
---|
| 3015 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3016 | echo "$as_me: failed program was:" >&5 |
---|
| 3017 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3018 | |
---|
| 3019 | ( exit $ac_status ) |
---|
| 3020 | tcl_cv_seh=no |
---|
| 3021 | fi |
---|
| 3022 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3023 | fi |
---|
| 3024 | |
---|
| 3025 | fi |
---|
| 3026 | echo "$as_me:$LINENO: result: $tcl_cv_seh" >&5 |
---|
| 3027 | echo "${ECHO_T}$tcl_cv_seh" >&6 |
---|
| 3028 | if test "$tcl_cv_seh" = "no" ; then |
---|
| 3029 | |
---|
| 3030 | cat >>confdefs.h <<\_ACEOF |
---|
| 3031 | #define HAVE_NO_SEH 1 |
---|
| 3032 | _ACEOF |
---|
| 3033 | |
---|
| 3034 | fi |
---|
| 3035 | |
---|
| 3036 | # |
---|
| 3037 | # Check to see if the excpt.h include file provided contains the |
---|
| 3038 | # definition for EXCEPTION_DISPOSITION; if not, which is the case |
---|
| 3039 | # with Cygwin's version as of 2002-04-10, define it to be int, |
---|
| 3040 | # sufficient for getting the current code to work. |
---|
| 3041 | # |
---|
| 3042 | echo "$as_me:$LINENO: checking for EXCEPTION_DISPOSITION support in include files" >&5 |
---|
| 3043 | echo $ECHO_N "checking for EXCEPTION_DISPOSITION support in include files... $ECHO_C" >&6 |
---|
| 3044 | if test "${tcl_cv_eh_disposition+set}" = set; then |
---|
| 3045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3046 | else |
---|
| 3047 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3048 | /* confdefs.h. */ |
---|
| 3049 | _ACEOF |
---|
| 3050 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3051 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3052 | /* end confdefs.h. */ |
---|
| 3053 | |
---|
| 3054 | #define WIN32_LEAN_AND_MEAN |
---|
| 3055 | #include <windows.h> |
---|
| 3056 | #undef WIN32_LEAN_AND_MEAN |
---|
| 3057 | |
---|
| 3058 | int |
---|
| 3059 | main () |
---|
| 3060 | { |
---|
| 3061 | |
---|
| 3062 | EXCEPTION_DISPOSITION x; |
---|
| 3063 | |
---|
| 3064 | ; |
---|
| 3065 | return 0; |
---|
| 3066 | } |
---|
| 3067 | _ACEOF |
---|
| 3068 | rm -f conftest.$ac_objext |
---|
| 3069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3070 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3071 | ac_status=$? |
---|
| 3072 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3073 | rm -f conftest.er1 |
---|
| 3074 | cat conftest.err >&5 |
---|
| 3075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3076 | (exit $ac_status); } && |
---|
| 3077 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3078 | || test ! -s conftest.err' |
---|
| 3079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3080 | (eval $ac_try) 2>&5 |
---|
| 3081 | ac_status=$? |
---|
| 3082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3083 | (exit $ac_status); }; } && |
---|
| 3084 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3086 | (eval $ac_try) 2>&5 |
---|
| 3087 | ac_status=$? |
---|
| 3088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3089 | (exit $ac_status); }; }; then |
---|
| 3090 | tcl_cv_eh_disposition=yes |
---|
| 3091 | else |
---|
| 3092 | echo "$as_me: failed program was:" >&5 |
---|
| 3093 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3094 | |
---|
| 3095 | tcl_cv_eh_disposition=no |
---|
| 3096 | fi |
---|
| 3097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3098 | |
---|
| 3099 | fi |
---|
| 3100 | echo "$as_me:$LINENO: result: $tcl_cv_eh_disposition" >&5 |
---|
| 3101 | echo "${ECHO_T}$tcl_cv_eh_disposition" >&6 |
---|
| 3102 | if test "$tcl_cv_eh_disposition" = "no" ; then |
---|
| 3103 | |
---|
| 3104 | cat >>confdefs.h <<\_ACEOF |
---|
| 3105 | #define EXCEPTION_DISPOSITION int |
---|
| 3106 | _ACEOF |
---|
| 3107 | |
---|
| 3108 | fi |
---|
| 3109 | |
---|
| 3110 | |
---|
| 3111 | # Check to see if the winsock2.h include file provided contains |
---|
| 3112 | # typedefs like LPFN_ACCEPT and friends. |
---|
| 3113 | # |
---|
| 3114 | echo "$as_me:$LINENO: checking for LPFN_ACCEPT support in winsock2.h" >&5 |
---|
| 3115 | echo $ECHO_N "checking for LPFN_ACCEPT support in winsock2.h... $ECHO_C" >&6 |
---|
| 3116 | if test "${tcl_cv_lpfn_decls+set}" = set; then |
---|
| 3117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3118 | else |
---|
| 3119 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3120 | /* confdefs.h. */ |
---|
| 3121 | _ACEOF |
---|
| 3122 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3123 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3124 | /* end confdefs.h. */ |
---|
| 3125 | |
---|
| 3126 | #define WIN32_LEAN_AND_MEAN |
---|
| 3127 | #include <windows.h> |
---|
| 3128 | #undef WIN32_LEAN_AND_MEAN |
---|
| 3129 | #include <winsock2.h> |
---|
| 3130 | |
---|
| 3131 | int |
---|
| 3132 | main () |
---|
| 3133 | { |
---|
| 3134 | |
---|
| 3135 | LPFN_ACCEPT accept; |
---|
| 3136 | |
---|
| 3137 | ; |
---|
| 3138 | return 0; |
---|
| 3139 | } |
---|
| 3140 | _ACEOF |
---|
| 3141 | rm -f conftest.$ac_objext |
---|
| 3142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3143 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3144 | ac_status=$? |
---|
| 3145 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3146 | rm -f conftest.er1 |
---|
| 3147 | cat conftest.err >&5 |
---|
| 3148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3149 | (exit $ac_status); } && |
---|
| 3150 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3151 | || test ! -s conftest.err' |
---|
| 3152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3153 | (eval $ac_try) 2>&5 |
---|
| 3154 | ac_status=$? |
---|
| 3155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3156 | (exit $ac_status); }; } && |
---|
| 3157 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3159 | (eval $ac_try) 2>&5 |
---|
| 3160 | ac_status=$? |
---|
| 3161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3162 | (exit $ac_status); }; }; then |
---|
| 3163 | tcl_cv_lpfn_decls=yes |
---|
| 3164 | else |
---|
| 3165 | echo "$as_me: failed program was:" >&5 |
---|
| 3166 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3167 | |
---|
| 3168 | tcl_cv_lpfn_decls=no |
---|
| 3169 | fi |
---|
| 3170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3171 | |
---|
| 3172 | fi |
---|
| 3173 | echo "$as_me:$LINENO: result: $tcl_cv_lpfn_decls" >&5 |
---|
| 3174 | echo "${ECHO_T}$tcl_cv_lpfn_decls" >&6 |
---|
| 3175 | if test "$tcl_cv_lpfn_decls" = "no" ; then |
---|
| 3176 | |
---|
| 3177 | cat >>confdefs.h <<\_ACEOF |
---|
| 3178 | #define HAVE_NO_LPFN_DECLS 1 |
---|
| 3179 | _ACEOF |
---|
| 3180 | |
---|
| 3181 | fi |
---|
| 3182 | |
---|
| 3183 | # Check to see if winnt.h defines CHAR, SHORT, and LONG |
---|
| 3184 | # even if VOID has already been #defined. The win32api |
---|
| 3185 | # used by mingw and cygwin is known to do this. |
---|
| 3186 | |
---|
| 3187 | echo "$as_me:$LINENO: checking for winnt.h that ignores VOID define" >&5 |
---|
| 3188 | echo $ECHO_N "checking for winnt.h that ignores VOID define... $ECHO_C" >&6 |
---|
| 3189 | if test "${tcl_cv_winnt_ignore_void+set}" = set; then |
---|
| 3190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3191 | else |
---|
| 3192 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3193 | /* confdefs.h. */ |
---|
| 3194 | _ACEOF |
---|
| 3195 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3196 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3197 | /* end confdefs.h. */ |
---|
| 3198 | |
---|
| 3199 | #define VOID void |
---|
| 3200 | #define WIN32_LEAN_AND_MEAN |
---|
| 3201 | #include <windows.h> |
---|
| 3202 | #undef WIN32_LEAN_AND_MEAN |
---|
| 3203 | |
---|
| 3204 | int |
---|
| 3205 | main () |
---|
| 3206 | { |
---|
| 3207 | |
---|
| 3208 | CHAR c; |
---|
| 3209 | SHORT s; |
---|
| 3210 | LONG l; |
---|
| 3211 | |
---|
| 3212 | ; |
---|
| 3213 | return 0; |
---|
| 3214 | } |
---|
| 3215 | _ACEOF |
---|
| 3216 | rm -f conftest.$ac_objext |
---|
| 3217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3218 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3219 | ac_status=$? |
---|
| 3220 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3221 | rm -f conftest.er1 |
---|
| 3222 | cat conftest.err >&5 |
---|
| 3223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3224 | (exit $ac_status); } && |
---|
| 3225 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3226 | || test ! -s conftest.err' |
---|
| 3227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3228 | (eval $ac_try) 2>&5 |
---|
| 3229 | ac_status=$? |
---|
| 3230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3231 | (exit $ac_status); }; } && |
---|
| 3232 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3234 | (eval $ac_try) 2>&5 |
---|
| 3235 | ac_status=$? |
---|
| 3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3237 | (exit $ac_status); }; }; then |
---|
| 3238 | tcl_cv_winnt_ignore_void=yes |
---|
| 3239 | else |
---|
| 3240 | echo "$as_me: failed program was:" >&5 |
---|
| 3241 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3242 | |
---|
| 3243 | tcl_cv_winnt_ignore_void=no |
---|
| 3244 | fi |
---|
| 3245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3246 | |
---|
| 3247 | fi |
---|
| 3248 | echo "$as_me:$LINENO: result: $tcl_cv_winnt_ignore_void" >&5 |
---|
| 3249 | echo "${ECHO_T}$tcl_cv_winnt_ignore_void" >&6 |
---|
| 3250 | if test "$tcl_cv_winnt_ignore_void" = "yes" ; then |
---|
| 3251 | |
---|
| 3252 | cat >>confdefs.h <<\_ACEOF |
---|
| 3253 | #define HAVE_WINNT_IGNORE_VOID 1 |
---|
| 3254 | _ACEOF |
---|
| 3255 | |
---|
| 3256 | fi |
---|
| 3257 | |
---|
| 3258 | # Check to see if malloc.h is missing the alloca function |
---|
| 3259 | # declaration. This is known to be a problem with Mingw. |
---|
| 3260 | # If we compiled without the function declaration, it |
---|
| 3261 | # would work but we would get a warning message from gcc. |
---|
| 3262 | # If we add the function declaration ourselves, it |
---|
| 3263 | # would not compile correctly because the _alloca |
---|
| 3264 | # function expects the argument to be passed in a |
---|
| 3265 | # register and not on the stack. Instead, we just |
---|
| 3266 | # call it from inline asm code. |
---|
| 3267 | |
---|
| 3268 | echo "$as_me:$LINENO: checking for alloca declaration in malloc.h" >&5 |
---|
| 3269 | echo $ECHO_N "checking for alloca declaration in malloc.h... $ECHO_C" >&6 |
---|
| 3270 | if test "${tcl_cv_malloc_decl_alloca+set}" = set; then |
---|
| 3271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3272 | else |
---|
| 3273 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3274 | /* confdefs.h. */ |
---|
| 3275 | _ACEOF |
---|
| 3276 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3277 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3278 | /* end confdefs.h. */ |
---|
| 3279 | |
---|
| 3280 | #include <malloc.h> |
---|
| 3281 | |
---|
| 3282 | int |
---|
| 3283 | main () |
---|
| 3284 | { |
---|
| 3285 | |
---|
| 3286 | size_t arg = 0; |
---|
| 3287 | void* ptr; |
---|
| 3288 | ptr = alloca; |
---|
| 3289 | ptr = alloca(arg); |
---|
| 3290 | |
---|
| 3291 | ; |
---|
| 3292 | return 0; |
---|
| 3293 | } |
---|
| 3294 | _ACEOF |
---|
| 3295 | rm -f conftest.$ac_objext |
---|
| 3296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3297 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3298 | ac_status=$? |
---|
| 3299 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3300 | rm -f conftest.er1 |
---|
| 3301 | cat conftest.err >&5 |
---|
| 3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3303 | (exit $ac_status); } && |
---|
| 3304 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3305 | || test ! -s conftest.err' |
---|
| 3306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3307 | (eval $ac_try) 2>&5 |
---|
| 3308 | ac_status=$? |
---|
| 3309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3310 | (exit $ac_status); }; } && |
---|
| 3311 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3313 | (eval $ac_try) 2>&5 |
---|
| 3314 | ac_status=$? |
---|
| 3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3316 | (exit $ac_status); }; }; then |
---|
| 3317 | tcl_cv_malloc_decl_alloca=yes |
---|
| 3318 | else |
---|
| 3319 | echo "$as_me: failed program was:" >&5 |
---|
| 3320 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3321 | |
---|
| 3322 | tcl_cv_malloc_decl_alloca=no |
---|
| 3323 | fi |
---|
| 3324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3325 | |
---|
| 3326 | fi |
---|
| 3327 | echo "$as_me:$LINENO: result: $tcl_cv_malloc_decl_alloca" >&5 |
---|
| 3328 | echo "${ECHO_T}$tcl_cv_malloc_decl_alloca" >&6 |
---|
| 3329 | if test "$tcl_cv_malloc_decl_alloca" = "no" && |
---|
| 3330 | test "${GCC}" = "yes" ; then |
---|
| 3331 | |
---|
| 3332 | cat >>confdefs.h <<\_ACEOF |
---|
| 3333 | #define HAVE_ALLOCA_GCC_INLINE 1 |
---|
| 3334 | _ACEOF |
---|
| 3335 | |
---|
| 3336 | fi |
---|
| 3337 | |
---|
| 3338 | # See if the compiler supports casting to a union type. |
---|
| 3339 | # This is used to stop gcc from printing a compiler |
---|
| 3340 | # warning when initializing a union member. |
---|
| 3341 | |
---|
| 3342 | echo "$as_me:$LINENO: checking for cast to union support" >&5 |
---|
| 3343 | echo $ECHO_N "checking for cast to union support... $ECHO_C" >&6 |
---|
| 3344 | if test "${tcl_cv_cast_to_union+set}" = set; then |
---|
| 3345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3346 | else |
---|
| 3347 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3348 | /* confdefs.h. */ |
---|
| 3349 | _ACEOF |
---|
| 3350 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3351 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3352 | /* end confdefs.h. */ |
---|
| 3353 | |
---|
| 3354 | int |
---|
| 3355 | main () |
---|
| 3356 | { |
---|
| 3357 | |
---|
| 3358 | union foo { int i; double d; }; |
---|
| 3359 | union foo f = (union foo) (int) 0; |
---|
| 3360 | |
---|
| 3361 | ; |
---|
| 3362 | return 0; |
---|
| 3363 | } |
---|
| 3364 | _ACEOF |
---|
| 3365 | rm -f conftest.$ac_objext |
---|
| 3366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3367 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3368 | ac_status=$? |
---|
| 3369 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3370 | rm -f conftest.er1 |
---|
| 3371 | cat conftest.err >&5 |
---|
| 3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3373 | (exit $ac_status); } && |
---|
| 3374 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3375 | || test ! -s conftest.err' |
---|
| 3376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3377 | (eval $ac_try) 2>&5 |
---|
| 3378 | ac_status=$? |
---|
| 3379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3380 | (exit $ac_status); }; } && |
---|
| 3381 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3383 | (eval $ac_try) 2>&5 |
---|
| 3384 | ac_status=$? |
---|
| 3385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3386 | (exit $ac_status); }; }; then |
---|
| 3387 | tcl_cv_cast_to_union=yes |
---|
| 3388 | else |
---|
| 3389 | echo "$as_me: failed program was:" >&5 |
---|
| 3390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3391 | |
---|
| 3392 | tcl_cv_cast_to_union=no |
---|
| 3393 | fi |
---|
| 3394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3395 | |
---|
| 3396 | fi |
---|
| 3397 | echo "$as_me:$LINENO: result: $tcl_cv_cast_to_union" >&5 |
---|
| 3398 | echo "${ECHO_T}$tcl_cv_cast_to_union" >&6 |
---|
| 3399 | if test "$tcl_cv_cast_to_union" = "yes"; then |
---|
| 3400 | |
---|
| 3401 | cat >>confdefs.h <<\_ACEOF |
---|
| 3402 | #define HAVE_CAST_TO_UNION 1 |
---|
| 3403 | _ACEOF |
---|
| 3404 | |
---|
| 3405 | fi |
---|
| 3406 | |
---|
| 3407 | |
---|
| 3408 | # See if declarations like FINDEX_INFO_LEVELS are |
---|
| 3409 | # missing from winbase.h. This is known to be |
---|
| 3410 | # a problem with VC++ 5.2. |
---|
| 3411 | |
---|
| 3412 | echo "$as_me:$LINENO: checking for FINDEX_INFO_LEVELS in winbase.h" >&5 |
---|
| 3413 | echo $ECHO_N "checking for FINDEX_INFO_LEVELS in winbase.h... $ECHO_C" >&6 |
---|
| 3414 | if test "${tcl_cv_findex_enums+set}" = set; then |
---|
| 3415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3416 | else |
---|
| 3417 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3418 | /* confdefs.h. */ |
---|
| 3419 | _ACEOF |
---|
| 3420 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3421 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3422 | /* end confdefs.h. */ |
---|
| 3423 | |
---|
| 3424 | #define WIN32_LEAN_AND_MEAN |
---|
| 3425 | #include <windows.h> |
---|
| 3426 | #undef WIN32_LEAN_AND_MEAN |
---|
| 3427 | |
---|
| 3428 | int |
---|
| 3429 | main () |
---|
| 3430 | { |
---|
| 3431 | |
---|
| 3432 | FINDEX_INFO_LEVELS i; |
---|
| 3433 | FINDEX_SEARCH_OPS j; |
---|
| 3434 | |
---|
| 3435 | ; |
---|
| 3436 | return 0; |
---|
| 3437 | } |
---|
| 3438 | _ACEOF |
---|
| 3439 | rm -f conftest.$ac_objext |
---|
| 3440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3441 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3442 | ac_status=$? |
---|
| 3443 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3444 | rm -f conftest.er1 |
---|
| 3445 | cat conftest.err >&5 |
---|
| 3446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3447 | (exit $ac_status); } && |
---|
| 3448 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3449 | || test ! -s conftest.err' |
---|
| 3450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3451 | (eval $ac_try) 2>&5 |
---|
| 3452 | ac_status=$? |
---|
| 3453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3454 | (exit $ac_status); }; } && |
---|
| 3455 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3457 | (eval $ac_try) 2>&5 |
---|
| 3458 | ac_status=$? |
---|
| 3459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3460 | (exit $ac_status); }; }; then |
---|
| 3461 | tcl_cv_findex_enums=yes |
---|
| 3462 | else |
---|
| 3463 | echo "$as_me: failed program was:" >&5 |
---|
| 3464 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3465 | |
---|
| 3466 | tcl_cv_findex_enums=no |
---|
| 3467 | fi |
---|
| 3468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3469 | |
---|
| 3470 | fi |
---|
| 3471 | echo "$as_me:$LINENO: result: $tcl_cv_findex_enums" >&5 |
---|
| 3472 | echo "${ECHO_T}$tcl_cv_findex_enums" >&6 |
---|
| 3473 | if test "$tcl_cv_findex_enums" = "no"; then |
---|
| 3474 | |
---|
| 3475 | cat >>confdefs.h <<\_ACEOF |
---|
| 3476 | #define HAVE_NO_FINDEX_ENUMS 1 |
---|
| 3477 | _ACEOF |
---|
| 3478 | |
---|
| 3479 | fi |
---|
| 3480 | |
---|
| 3481 | # See if MWMO_ALERTABLE is missing from winuser.h |
---|
| 3482 | # This is known to be a problem with Mingw. |
---|
| 3483 | |
---|
| 3484 | echo "$as_me:$LINENO: checking for MWMO_ALERTABLE in winuser.h" >&5 |
---|
| 3485 | echo $ECHO_N "checking for MWMO_ALERTABLE in winuser.h... $ECHO_C" >&6 |
---|
| 3486 | if test "${tcl_cv_mwmo_alertable+set}" = set; then |
---|
| 3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3488 | else |
---|
| 3489 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3490 | /* confdefs.h. */ |
---|
| 3491 | _ACEOF |
---|
| 3492 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3493 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3494 | /* end confdefs.h. */ |
---|
| 3495 | |
---|
| 3496 | #define WIN32_LEAN_AND_MEAN |
---|
| 3497 | #include <windows.h> |
---|
| 3498 | #undef WIN32_LEAN_AND_MEAN |
---|
| 3499 | |
---|
| 3500 | int |
---|
| 3501 | main () |
---|
| 3502 | { |
---|
| 3503 | |
---|
| 3504 | int i = MWMO_ALERTABLE; |
---|
| 3505 | |
---|
| 3506 | ; |
---|
| 3507 | return 0; |
---|
| 3508 | } |
---|
| 3509 | _ACEOF |
---|
| 3510 | rm -f conftest.$ac_objext |
---|
| 3511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3512 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3513 | ac_status=$? |
---|
| 3514 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3515 | rm -f conftest.er1 |
---|
| 3516 | cat conftest.err >&5 |
---|
| 3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3518 | (exit $ac_status); } && |
---|
| 3519 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3520 | || test ! -s conftest.err' |
---|
| 3521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3522 | (eval $ac_try) 2>&5 |
---|
| 3523 | ac_status=$? |
---|
| 3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3525 | (exit $ac_status); }; } && |
---|
| 3526 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3528 | (eval $ac_try) 2>&5 |
---|
| 3529 | ac_status=$? |
---|
| 3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3531 | (exit $ac_status); }; }; then |
---|
| 3532 | tcl_cv_mwmo_alertable=yes |
---|
| 3533 | else |
---|
| 3534 | echo "$as_me: failed program was:" >&5 |
---|
| 3535 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3536 | |
---|
| 3537 | tcl_cv_mwmo_alertable=no |
---|
| 3538 | fi |
---|
| 3539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3540 | |
---|
| 3541 | fi |
---|
| 3542 | echo "$as_me:$LINENO: result: $tcl_cv_mwmo_alertable" >&5 |
---|
| 3543 | echo "${ECHO_T}$tcl_cv_mwmo_alertable" >&6 |
---|
| 3544 | if test "$tcl_cv_mwmo_alertable" = "no"; then |
---|
| 3545 | |
---|
| 3546 | cat >>confdefs.h <<\_ACEOF |
---|
| 3547 | #define HAVE_NO_MWMO_ALERTABLE 1 |
---|
| 3548 | _ACEOF |
---|
| 3549 | |
---|
| 3550 | fi |
---|
| 3551 | |
---|
| 3552 | #-------------------------------------------------------------------- |
---|
| 3553 | # Determines the correct binary file extension (.o, .obj, .exe etc.) |
---|
| 3554 | #-------------------------------------------------------------------- |
---|
| 3555 | |
---|
| 3556 | |
---|
| 3557 | |
---|
| 3558 | |
---|
| 3559 | #-------------------------------------------------------------------- |
---|
| 3560 | # Check whether --enable-threads or --disable-threads was given. |
---|
| 3561 | #-------------------------------------------------------------------- |
---|
| 3562 | |
---|
| 3563 | |
---|
| 3564 | echo "$as_me:$LINENO: checking for building with threads" >&5 |
---|
| 3565 | echo $ECHO_N "checking for building with threads... $ECHO_C" >&6 |
---|
| 3566 | # Check whether --enable-threads or --disable-threads was given. |
---|
| 3567 | if test "${enable_threads+set}" = set; then |
---|
| 3568 | enableval="$enable_threads" |
---|
| 3569 | tcl_ok=$enableval |
---|
| 3570 | else |
---|
| 3571 | tcl_ok=no |
---|
| 3572 | fi; |
---|
| 3573 | |
---|
| 3574 | if test "$tcl_ok" = "yes"; then |
---|
| 3575 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3576 | echo "${ECHO_T}yes" >&6 |
---|
| 3577 | TCL_THREADS=1 |
---|
| 3578 | cat >>confdefs.h <<\_ACEOF |
---|
| 3579 | #define TCL_THREADS 1 |
---|
| 3580 | _ACEOF |
---|
| 3581 | |
---|
| 3582 | # USE_THREAD_ALLOC tells us to try the special thread-based |
---|
| 3583 | # allocator that significantly reduces lock contention |
---|
| 3584 | cat >>confdefs.h <<\_ACEOF |
---|
| 3585 | #define USE_THREAD_ALLOC 1 |
---|
| 3586 | _ACEOF |
---|
| 3587 | |
---|
| 3588 | else |
---|
| 3589 | TCL_THREADS=0 |
---|
| 3590 | echo "$as_me:$LINENO: result: no (default)" >&5 |
---|
| 3591 | echo "${ECHO_T}no (default)" >&6 |
---|
| 3592 | fi |
---|
| 3593 | |
---|
| 3594 | |
---|
| 3595 | |
---|
| 3596 | #------------------------------------------------------------------------ |
---|
| 3597 | # Embedded configuration information, encoding to use for the values, TIP #59 |
---|
| 3598 | #------------------------------------------------------------------------ |
---|
| 3599 | |
---|
| 3600 | |
---|
| 3601 | |
---|
| 3602 | # Check whether --with-encoding or --without-encoding was given. |
---|
| 3603 | if test "${with_encoding+set}" = set; then |
---|
| 3604 | withval="$with_encoding" |
---|
| 3605 | with_tcencoding=${withval} |
---|
| 3606 | fi; |
---|
| 3607 | |
---|
| 3608 | if test x"${with_tcencoding}" != x ; then |
---|
| 3609 | cat >>confdefs.h <<_ACEOF |
---|
| 3610 | #define TCL_CFGVAL_ENCODING "${with_tcencoding}" |
---|
| 3611 | _ACEOF |
---|
| 3612 | |
---|
| 3613 | else |
---|
| 3614 | # Default encoding on windows is not "iso8859-1" |
---|
| 3615 | cat >>confdefs.h <<\_ACEOF |
---|
| 3616 | #define TCL_CFGVAL_ENCODING "cp1252" |
---|
| 3617 | _ACEOF |
---|
| 3618 | |
---|
| 3619 | fi |
---|
| 3620 | |
---|
| 3621 | |
---|
| 3622 | #-------------------------------------------------------------------- |
---|
| 3623 | # The statements below define a collection of symbols related to |
---|
| 3624 | # building libtcl as a shared library instead of a static library. |
---|
| 3625 | #-------------------------------------------------------------------- |
---|
| 3626 | |
---|
| 3627 | |
---|
| 3628 | echo "$as_me:$LINENO: checking how to build libraries" >&5 |
---|
| 3629 | echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6 |
---|
| 3630 | # Check whether --enable-shared or --disable-shared was given. |
---|
| 3631 | if test "${enable_shared+set}" = set; then |
---|
| 3632 | enableval="$enable_shared" |
---|
| 3633 | tcl_ok=$enableval |
---|
| 3634 | else |
---|
| 3635 | tcl_ok=yes |
---|
| 3636 | fi; |
---|
| 3637 | |
---|
| 3638 | if test "${enable_shared+set}" = set; then |
---|
| 3639 | enableval="$enable_shared" |
---|
| 3640 | tcl_ok=$enableval |
---|
| 3641 | else |
---|
| 3642 | tcl_ok=yes |
---|
| 3643 | fi |
---|
| 3644 | |
---|
| 3645 | if test "$tcl_ok" = "yes" ; then |
---|
| 3646 | echo "$as_me:$LINENO: result: shared" >&5 |
---|
| 3647 | echo "${ECHO_T}shared" >&6 |
---|
| 3648 | SHARED_BUILD=1 |
---|
| 3649 | else |
---|
| 3650 | echo "$as_me:$LINENO: result: static" >&5 |
---|
| 3651 | echo "${ECHO_T}static" >&6 |
---|
| 3652 | SHARED_BUILD=0 |
---|
| 3653 | cat >>confdefs.h <<\_ACEOF |
---|
| 3654 | #define STATIC_BUILD 1 |
---|
| 3655 | _ACEOF |
---|
| 3656 | |
---|
| 3657 | fi |
---|
| 3658 | |
---|
| 3659 | |
---|
| 3660 | #-------------------------------------------------------------------- |
---|
| 3661 | # The statements below define a collection of compile flags. This |
---|
| 3662 | # macro depends on the value of SHARED_BUILD, and should be called |
---|
| 3663 | # after SC_ENABLE_SHARED checks the configure switches. |
---|
| 3664 | #-------------------------------------------------------------------- |
---|
| 3665 | |
---|
| 3666 | |
---|
| 3667 | |
---|
| 3668 | # Step 0: Enable 64 bit support? |
---|
| 3669 | |
---|
| 3670 | echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 |
---|
| 3671 | echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6 |
---|
| 3672 | # Check whether --enable-64bit or --disable-64bit was given. |
---|
| 3673 | if test "${enable_64bit+set}" = set; then |
---|
| 3674 | enableval="$enable_64bit" |
---|
| 3675 | do64bit=$enableval |
---|
| 3676 | else |
---|
| 3677 | do64bit=no |
---|
| 3678 | fi; |
---|
| 3679 | echo "$as_me:$LINENO: result: $do64bit" >&5 |
---|
| 3680 | echo "${ECHO_T}$do64bit" >&6 |
---|
| 3681 | |
---|
| 3682 | # Cross-compiling options for Windows/CE builds |
---|
| 3683 | |
---|
| 3684 | echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 |
---|
| 3685 | echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6 |
---|
| 3686 | # Check whether --enable-wince or --disable-wince was given. |
---|
| 3687 | if test "${enable_wince+set}" = set; then |
---|
| 3688 | enableval="$enable_wince" |
---|
| 3689 | doWince=$enableval |
---|
| 3690 | else |
---|
| 3691 | doWince=no |
---|
| 3692 | fi; |
---|
| 3693 | echo "$as_me:$LINENO: result: $doWince" >&5 |
---|
| 3694 | echo "${ECHO_T}$doWince" >&6 |
---|
| 3695 | |
---|
| 3696 | echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 |
---|
| 3697 | echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6 |
---|
| 3698 | |
---|
| 3699 | # Check whether --with-celib or --without-celib was given. |
---|
| 3700 | if test "${with_celib+set}" = set; then |
---|
| 3701 | withval="$with_celib" |
---|
| 3702 | CELIB_DIR=$withval |
---|
| 3703 | else |
---|
| 3704 | CELIB_DIR=NO_CELIB |
---|
| 3705 | fi; |
---|
| 3706 | echo "$as_me:$LINENO: result: $CELIB_DIR" >&5 |
---|
| 3707 | echo "${ECHO_T}$CELIB_DIR" >&6 |
---|
| 3708 | |
---|
| 3709 | # Set some defaults (may get changed below) |
---|
| 3710 | EXTRA_CFLAGS="" |
---|
| 3711 | |
---|
| 3712 | # Extract the first word of "cygpath", so it can be a program name with args. |
---|
| 3713 | set dummy cygpath; ac_word=$2 |
---|
| 3714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3716 | if test "${ac_cv_prog_CYGPATH+set}" = set; then |
---|
| 3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3718 | else |
---|
| 3719 | if test -n "$CYGPATH"; then |
---|
| 3720 | ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. |
---|
| 3721 | else |
---|
| 3722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3723 | for as_dir in $PATH |
---|
| 3724 | do |
---|
| 3725 | IFS=$as_save_IFS |
---|
| 3726 | test -z "$as_dir" && as_dir=. |
---|
| 3727 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3729 | ac_cv_prog_CYGPATH="cygpath -w" |
---|
| 3730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3731 | break 2 |
---|
| 3732 | fi |
---|
| 3733 | done |
---|
| 3734 | done |
---|
| 3735 | |
---|
| 3736 | test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" |
---|
| 3737 | fi |
---|
| 3738 | fi |
---|
| 3739 | CYGPATH=$ac_cv_prog_CYGPATH |
---|
| 3740 | if test -n "$CYGPATH"; then |
---|
| 3741 | echo "$as_me:$LINENO: result: $CYGPATH" >&5 |
---|
| 3742 | echo "${ECHO_T}$CYGPATH" >&6 |
---|
| 3743 | else |
---|
| 3744 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3745 | echo "${ECHO_T}no" >&6 |
---|
| 3746 | fi |
---|
| 3747 | |
---|
| 3748 | |
---|
| 3749 | SHLIB_SUFFIX=".dll" |
---|
| 3750 | |
---|
| 3751 | # Check for a bug in gcc's windres that causes the |
---|
| 3752 | # compile to fail when a Windows native path is |
---|
| 3753 | # passed into windres. The mingw toolchain requires |
---|
| 3754 | # Windows native paths while Cygwin should work |
---|
| 3755 | # with both. Avoid the bug by passing a POSIX |
---|
| 3756 | # path when using the Cygwin toolchain. |
---|
| 3757 | |
---|
| 3758 | if test "$GCC" = "yes" && test "$CYGPATH" != "echo" ; then |
---|
| 3759 | conftest=/tmp/conftest.rc |
---|
| 3760 | echo "STRINGTABLE BEGIN" > $conftest |
---|
| 3761 | echo "101 \"name\"" >> $conftest |
---|
| 3762 | echo "END" >> $conftest |
---|
| 3763 | |
---|
| 3764 | echo "$as_me:$LINENO: checking for Windows native path bug in windres" >&5 |
---|
| 3765 | echo $ECHO_N "checking for Windows native path bug in windres... $ECHO_C" >&6 |
---|
| 3766 | cyg_conftest=`$CYGPATH $conftest` |
---|
| 3767 | if { ac_try='$RC -o conftest.res.o $cyg_conftest' |
---|
| 3768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3769 | (eval $ac_try) 2>&5 |
---|
| 3770 | ac_status=$? |
---|
| 3771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3772 | (exit $ac_status); }; } ; then |
---|
| 3773 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3774 | echo "${ECHO_T}no" >&6 |
---|
| 3775 | else |
---|
| 3776 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3777 | echo "${ECHO_T}yes" >&6 |
---|
| 3778 | CYGPATH=echo |
---|
| 3779 | fi |
---|
| 3780 | conftest= |
---|
| 3781 | cyg_conftest= |
---|
| 3782 | fi |
---|
| 3783 | |
---|
| 3784 | if test "$CYGPATH" = "echo" || test "$ac_cv_cygwin" = "yes"; then |
---|
| 3785 | DEPARG='"$<"' |
---|
| 3786 | else |
---|
| 3787 | DEPARG='"$(shell $(CYGPATH) $<)"' |
---|
| 3788 | fi |
---|
| 3789 | |
---|
| 3790 | # set various compiler flags depending on whether we are using gcc or cl |
---|
| 3791 | |
---|
| 3792 | echo "$as_me:$LINENO: checking compiler flags" >&5 |
---|
| 3793 | echo $ECHO_N "checking compiler flags... $ECHO_C" >&6 |
---|
| 3794 | if test "${GCC}" = "yes" ; then |
---|
| 3795 | if test "$do64bit" != "no" ; then |
---|
| 3796 | { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on Windows" >&5 |
---|
| 3797 | echo "$as_me: WARNING: 64bit mode not supported with GCC on Windows" >&2;} |
---|
| 3798 | fi |
---|
| 3799 | SHLIB_LD="" |
---|
| 3800 | SHLIB_LD_LIBS="" |
---|
| 3801 | LIBS="-lws2_32" |
---|
| 3802 | # mingw needs to link ole32 and oleaut32 for [send], but MSVC doesn't |
---|
| 3803 | LIBS_GUI="-lgdi32 -lcomdlg32 -limm32 -lcomctl32 -lshell32 -luuid -lole32 -loleaut32" |
---|
| 3804 | STLIB_LD='${AR} cr' |
---|
| 3805 | RC_OUT=-o |
---|
| 3806 | RC_TYPE= |
---|
| 3807 | RC_INCLUDE=--include |
---|
| 3808 | RC_DEFINE=--define |
---|
| 3809 | RES=res.o |
---|
| 3810 | MAKE_LIB="\${STLIB_LD} \$@" |
---|
| 3811 | POST_MAKE_LIB="\${RANLIB} \$@" |
---|
| 3812 | MAKE_EXE="\${CC} -o \$@" |
---|
| 3813 | LIBPREFIX="lib" |
---|
| 3814 | |
---|
| 3815 | #if test "$ac_cv_cygwin" = "yes"; then |
---|
| 3816 | # extra_cflags="-mno-cygwin" |
---|
| 3817 | # extra_ldflags="-mno-cygwin" |
---|
| 3818 | #else |
---|
| 3819 | # extra_cflags="" |
---|
| 3820 | # extra_ldflags="" |
---|
| 3821 | #fi |
---|
| 3822 | |
---|
| 3823 | if test "$ac_cv_cygwin" = "yes"; then |
---|
| 3824 | touch ac$$.c |
---|
| 3825 | if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then |
---|
| 3826 | case "$extra_cflags" in |
---|
| 3827 | *-mwin32*) ;; |
---|
| 3828 | *) extra_cflags="-mwin32 $extra_cflags" ;; |
---|
| 3829 | esac |
---|
| 3830 | case "$extra_ldflags" in |
---|
| 3831 | *-mwin32*) ;; |
---|
| 3832 | *) extra_ldflags="-mwin32 $extra_ldflags" ;; |
---|
| 3833 | esac |
---|
| 3834 | fi |
---|
| 3835 | rm -f ac$$.o ac$$.c |
---|
| 3836 | else |
---|
| 3837 | extra_cflags='' |
---|
| 3838 | extra_ldflags='' |
---|
| 3839 | fi |
---|
| 3840 | |
---|
| 3841 | if test "${SHARED_BUILD}" = "0" ; then |
---|
| 3842 | # static |
---|
| 3843 | echo "$as_me:$LINENO: result: using static flags" >&5 |
---|
| 3844 | echo "${ECHO_T}using static flags" >&6 |
---|
| 3845 | runtime= |
---|
| 3846 | MAKE_DLL="echo " |
---|
| 3847 | LIBSUFFIX="s\${DBGX}.a" |
---|
| 3848 | LIBFLAGSUFFIX="s\${DBGX}" |
---|
| 3849 | LIBRARIES="\${STATIC_LIBRARIES}" |
---|
| 3850 | EXESUFFIX="s\${DBGX}.exe" |
---|
| 3851 | else |
---|
| 3852 | # dynamic |
---|
| 3853 | echo "$as_me:$LINENO: result: using shared flags" >&5 |
---|
| 3854 | echo "${ECHO_T}using shared flags" >&6 |
---|
| 3855 | |
---|
| 3856 | # ad-hoc check to see if CC supports -shared. |
---|
| 3857 | if "${CC}" -shared 2>&1 | egrep ': -shared not supported' >/dev/null; then |
---|
| 3858 | { { echo "$as_me:$LINENO: error: ${CC} does not support the -shared option. |
---|
| 3859 | You will need to upgrade to a newer version of the toolchain." >&5 |
---|
| 3860 | echo "$as_me: error: ${CC} does not support the -shared option. |
---|
| 3861 | You will need to upgrade to a newer version of the toolchain." >&2;} |
---|
| 3862 | { (exit 1); exit 1; }; } |
---|
| 3863 | fi |
---|
| 3864 | |
---|
| 3865 | runtime= |
---|
| 3866 | # Link with gcc since ld does not link to default libs like |
---|
| 3867 | # -luser32 and -lmsvcrt by default. Make sure CFLAGS is |
---|
| 3868 | # included so -mno-cygwin passed the correct libs to the linker. |
---|
| 3869 | SHLIB_LD='${CC} -shared ${CFLAGS}' |
---|
| 3870 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 3871 | # Add SHLIB_LD_LIBS to the Make rule, not here. |
---|
| 3872 | MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -o \$@ ${extra_ldflags} \ |
---|
| 3873 | -Wl,--out-implib,\$(patsubst %.dll,lib%.a,\$@)" |
---|
| 3874 | |
---|
| 3875 | LIBSUFFIX="\${DBGX}.a" |
---|
| 3876 | LIBFLAGSUFFIX="\${DBGX}" |
---|
| 3877 | EXESUFFIX="\${DBGX}.exe" |
---|
| 3878 | LIBRARIES="\${SHARED_LIBRARIES}" |
---|
| 3879 | fi |
---|
| 3880 | # DLLSUFFIX is separate because it is the building block for |
---|
| 3881 | # users of tclConfig.sh that may build shared or static. |
---|
| 3882 | DLLSUFFIX="\${DBGX}.dll" |
---|
| 3883 | SHLIB_SUFFIX=.dll |
---|
| 3884 | |
---|
| 3885 | EXTRA_CFLAGS="${extra_cflags}" |
---|
| 3886 | |
---|
| 3887 | CFLAGS_DEBUG=-g |
---|
| 3888 | CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" |
---|
| 3889 | CFLAGS_WARNING="-Wall" |
---|
| 3890 | LDFLAGS_DEBUG= |
---|
| 3891 | LDFLAGS_OPTIMIZE= |
---|
| 3892 | |
---|
| 3893 | # Specify the CC output file names based on the target name |
---|
| 3894 | CC_OBJNAME="-o \$@" |
---|
| 3895 | CC_EXENAME="-o \$@" |
---|
| 3896 | |
---|
| 3897 | # Specify linker flags depending on the type of app being |
---|
| 3898 | # built -- Console vs. Window. |
---|
| 3899 | # |
---|
| 3900 | # ORIGINAL COMMENT: |
---|
| 3901 | # We need to pass -e _WinMain@16 so that ld will use |
---|
| 3902 | # WinMain() instead of main() as the entry point. We can't |
---|
| 3903 | # use autoconf to check for this case since it would need |
---|
| 3904 | # to run an executable and that does not work when |
---|
| 3905 | # cross compiling. Remove this -e workaround once we |
---|
| 3906 | # require a gcc that does not have this bug. |
---|
| 3907 | # |
---|
| 3908 | # MK NOTE: Tk should use a different mechanism. This causes |
---|
| 3909 | # interesting problems, such as wish dying at startup. |
---|
| 3910 | #LDFLAGS_WINDOW="-mwindows -e _WinMain@16 ${extra_ldflags}" |
---|
| 3911 | LDFLAGS_CONSOLE="-mconsole ${extra_ldflags}" |
---|
| 3912 | LDFLAGS_WINDOW="-mwindows ${extra_ldflags}" |
---|
| 3913 | |
---|
| 3914 | # gcc under Windows supports only 32bit builds |
---|
| 3915 | MACHINE="X86" |
---|
| 3916 | else |
---|
| 3917 | if test "${SHARED_BUILD}" = "0" ; then |
---|
| 3918 | # static |
---|
| 3919 | echo "$as_me:$LINENO: result: using static flags" >&5 |
---|
| 3920 | echo "${ECHO_T}using static flags" >&6 |
---|
| 3921 | runtime=-MT |
---|
| 3922 | MAKE_DLL="echo " |
---|
| 3923 | LIBSUFFIX="s\${DBGX}.lib" |
---|
| 3924 | LIBFLAGSUFFIX="s\${DBGX}" |
---|
| 3925 | LIBRARIES="\${STATIC_LIBRARIES}" |
---|
| 3926 | EXESUFFIX="s\${DBGX}.exe" |
---|
| 3927 | SHLIB_LD_LIBS="" |
---|
| 3928 | else |
---|
| 3929 | # dynamic |
---|
| 3930 | echo "$as_me:$LINENO: result: using shared flags" >&5 |
---|
| 3931 | echo "${ECHO_T}using shared flags" >&6 |
---|
| 3932 | runtime=-MD |
---|
| 3933 | # Add SHLIB_LD_LIBS to the Make rule, not here. |
---|
| 3934 | MAKE_DLL="\${SHLIB_LD} \$(LDFLAGS) -out:\$@" |
---|
| 3935 | LIBSUFFIX="\${DBGX}.lib" |
---|
| 3936 | LIBFLAGSUFFIX="\${DBGX}" |
---|
| 3937 | EXESUFFIX="\${DBGX}.exe" |
---|
| 3938 | LIBRARIES="\${SHARED_LIBRARIES}" |
---|
| 3939 | SHLIB_LD_LIBS='${LIBS}' |
---|
| 3940 | fi |
---|
| 3941 | # DLLSUFFIX is separate because it is the building block for |
---|
| 3942 | # users of tclConfig.sh that may build shared or static. |
---|
| 3943 | DLLSUFFIX="\${DBGX}.dll" |
---|
| 3944 | |
---|
| 3945 | # This is a 2-stage check to make sure we have the 64-bit SDK |
---|
| 3946 | # We have to know where the SDK is installed. |
---|
| 3947 | # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs |
---|
| 3948 | # MACHINE is IX86 for LINK, but this is used by the manifest, |
---|
| 3949 | # which requires x86|amd64|ia64. |
---|
| 3950 | MACHINE="X86" |
---|
| 3951 | if test "$do64bit" != "no" ; then |
---|
| 3952 | if test "x${MSSDK}x" = "xx" ; then |
---|
| 3953 | MSSDK="C:/Progra~1/Microsoft Platform SDK" |
---|
| 3954 | fi |
---|
| 3955 | MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` |
---|
| 3956 | PATH64="" |
---|
| 3957 | case "$do64bit" in |
---|
| 3958 | amd64|x64|yes) |
---|
| 3959 | MACHINE="AMD64" ; # assume AMD64 as default 64-bit build |
---|
| 3960 | PATH64="${MSSDK}/Bin/Win64/x86/AMD64" |
---|
| 3961 | ;; |
---|
| 3962 | ia64) |
---|
| 3963 | MACHINE="IA64" |
---|
| 3964 | PATH64="${MSSDK}/Bin/Win64" |
---|
| 3965 | ;; |
---|
| 3966 | esac |
---|
| 3967 | if test ! -d "${PATH64}" ; then |
---|
| 3968 | { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 |
---|
| 3969 | echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} |
---|
| 3970 | { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 |
---|
| 3971 | echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} |
---|
| 3972 | do64bit="no" |
---|
| 3973 | else |
---|
| 3974 | echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 |
---|
| 3975 | echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6 |
---|
| 3976 | fi |
---|
| 3977 | fi |
---|
| 3978 | |
---|
| 3979 | LIBS="user32.lib advapi32.lib ws2_32.lib" |
---|
| 3980 | if test "$do64bit" != "no" ; then |
---|
| 3981 | # The space-based-path will work for the Makefile, but will |
---|
| 3982 | # not work if AC_TRY_COMPILE is called. TEA has the |
---|
| 3983 | # TEA_PATH_NOSPACE to avoid this issue. |
---|
| 3984 | CC="\"${PATH64}/cl.exe\" -I\"${MSSDK}/Include\" \ |
---|
| 3985 | -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" |
---|
| 3986 | RC="\"${MSSDK}/bin/rc.exe\"" |
---|
| 3987 | CFLAGS_DEBUG="-nologo -Zi -Od ${runtime}d" |
---|
| 3988 | # Do not use -O2 for Win64 - this has proved buggy in code gen. |
---|
| 3989 | CFLAGS_OPTIMIZE="-nologo -O1 ${runtime}" |
---|
| 3990 | lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" |
---|
| 3991 | LINKBIN="\"${PATH64}/link.exe\"" |
---|
| 3992 | # Avoid 'unresolved external symbol __security_cookie' errors. |
---|
| 3993 | # c.f. http://support.microsoft.com/?id=894573 |
---|
| 3994 | LIBS="$LIBS bufferoverflowU.lib" |
---|
| 3995 | else |
---|
| 3996 | RC="rc" |
---|
| 3997 | # -Od - no optimization |
---|
| 3998 | # -WX - warnings as errors |
---|
| 3999 | CFLAGS_DEBUG="-nologo -Z7 -Od -WX ${runtime}d" |
---|
| 4000 | # -O2 - create fast code (/Og /Oi /Ot /Oy /Ob2 /Gs /GF /Gy) |
---|
| 4001 | CFLAGS_OPTIMIZE="-nologo -O2 ${runtime}" |
---|
| 4002 | lflags="-nologo" |
---|
| 4003 | LINKBIN="link" |
---|
| 4004 | fi |
---|
| 4005 | |
---|
| 4006 | if test "$doWince" != "no" ; then |
---|
| 4007 | # Set defaults for common evc4/PPC2003 setup |
---|
| 4008 | # Currently Tcl requires 300+, possibly 420+ for sockets |
---|
| 4009 | CEVERSION=420; # could be 211 300 301 400 420 ... |
---|
| 4010 | TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... |
---|
| 4011 | ARCH=ARM; # could be ARM MIPS X86EM ... |
---|
| 4012 | PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" |
---|
| 4013 | if test "$doWince" != "yes"; then |
---|
| 4014 | # If !yes then the user specified something |
---|
| 4015 | # Reset ARCH to allow user to skip specifying it |
---|
| 4016 | ARCH= |
---|
| 4017 | eval `echo $doWince | awk -F "," '{ \ |
---|
| 4018 | if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ |
---|
| 4019 | if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ |
---|
| 4020 | if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ |
---|
| 4021 | if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ |
---|
| 4022 | if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ |
---|
| 4023 | }'` |
---|
| 4024 | if test "x${ARCH}" = "x" ; then |
---|
| 4025 | ARCH=$TARGETCPU; |
---|
| 4026 | fi |
---|
| 4027 | fi |
---|
| 4028 | OSVERSION=WCE$CEVERSION; |
---|
| 4029 | if test "x${WCEROOT}" = "x" ; then |
---|
| 4030 | WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" |
---|
| 4031 | if test ! -d "${WCEROOT}" ; then |
---|
| 4032 | WCEROOT="C:/Program Files/Microsoft eMbedded Tools" |
---|
| 4033 | fi |
---|
| 4034 | fi |
---|
| 4035 | if test "x${SDKROOT}" = "x" ; then |
---|
| 4036 | SDKROOT="C:/Program Files/Windows CE Tools" |
---|
| 4037 | if test ! -d "${SDKROOT}" ; then |
---|
| 4038 | SDKROOT="C:/Windows CE Tools" |
---|
| 4039 | fi |
---|
| 4040 | fi |
---|
| 4041 | # The space-based-path will work for the Makefile, but will |
---|
| 4042 | # not work if AC_TRY_COMPILE is called. |
---|
| 4043 | WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` |
---|
| 4044 | SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` |
---|
| 4045 | CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` |
---|
| 4046 | if test ! -d "${CELIB_DIR}/inc"; then |
---|
| 4047 | { { echo "$as_me:$LINENO: error: Invalid celib directory \"${CELIB_DIR}\"" >&5 |
---|
| 4048 | echo "$as_me: error: Invalid celib directory \"${CELIB_DIR}\"" >&2;} |
---|
| 4049 | { (exit 1); exit 1; }; } |
---|
| 4050 | fi |
---|
| 4051 | if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}"\ |
---|
| 4052 | -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then |
---|
| 4053 | { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 |
---|
| 4054 | echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} |
---|
| 4055 | { (exit 1); exit 1; }; } |
---|
| 4056 | else |
---|
| 4057 | CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" |
---|
| 4058 | if test -d "${CEINCLUDE}/${TARGETCPU}" ; then |
---|
| 4059 | CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" |
---|
| 4060 | fi |
---|
| 4061 | CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" |
---|
| 4062 | fi |
---|
| 4063 | fi |
---|
| 4064 | |
---|
| 4065 | if test "$doWince" != "no" ; then |
---|
| 4066 | CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" |
---|
| 4067 | if test "${TARGETCPU}" = "X86"; then |
---|
| 4068 | CC="${CEBINROOT}/cl.exe" |
---|
| 4069 | else |
---|
| 4070 | CC="${CEBINROOT}/cl${ARCH}.exe" |
---|
| 4071 | fi |
---|
| 4072 | CC="\"${CC}\" -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" |
---|
| 4073 | RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" |
---|
| 4074 | arch=`echo ${ARCH} | awk '{print tolower($0)}'` |
---|
| 4075 | defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _DLL _WINDOWS" |
---|
| 4076 | for i in $defs ; do |
---|
| 4077 | cat >>confdefs.h <<_ACEOF |
---|
| 4078 | #define $i 1 |
---|
| 4079 | _ACEOF |
---|
| 4080 | |
---|
| 4081 | done |
---|
| 4082 | # if test "${ARCH}" = "X86EM"; then |
---|
| 4083 | # AC_DEFINE_UNQUOTED(_WIN32_WCE_EMULATION) |
---|
| 4084 | # fi |
---|
| 4085 | cat >>confdefs.h <<_ACEOF |
---|
| 4086 | #define _WIN32_WCE $CEVERSION |
---|
| 4087 | _ACEOF |
---|
| 4088 | |
---|
| 4089 | cat >>confdefs.h <<_ACEOF |
---|
| 4090 | #define UNDER_CE $CEVERSION |
---|
| 4091 | _ACEOF |
---|
| 4092 | |
---|
| 4093 | CFLAGS_DEBUG="-nologo -Zi -Od" |
---|
| 4094 | CFLAGS_OPTIMIZE="-nologo -O2" |
---|
| 4095 | lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` |
---|
| 4096 | lflags="-nodefaultlib -MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" |
---|
| 4097 | LINKBIN="\"${CEBINROOT}/link.exe\"" |
---|
| 4098 | |
---|
| 4099 | if test "${CEVERSION}" -lt 400 ; then |
---|
| 4100 | LIBS="coredll.lib corelibc.lib winsock.lib" |
---|
| 4101 | else |
---|
| 4102 | LIBS="coredll.lib corelibc.lib ws2.lib" |
---|
| 4103 | fi |
---|
| 4104 | # celib currently stuck at wce300 status |
---|
| 4105 | #LIBS="$LIBS \${CELIB_DIR}/wince-${ARCH}-pocket-${OSVERSION}-release/celib.lib" |
---|
| 4106 | LIBS="$LIBS \"\${CELIB_DIR}/wince-${ARCH}-pocket-wce300-release/celib.lib\"" |
---|
| 4107 | LIBS_GUI="commctrl.lib commdlg.lib" |
---|
| 4108 | else |
---|
| 4109 | LIBS_GUI="gdi32.lib comdlg32.lib imm32.lib comctl32.lib shell32.lib uuid.lib" |
---|
| 4110 | fi |
---|
| 4111 | |
---|
| 4112 | SHLIB_LD="${LINKBIN} -dll -incremental:no ${lflags}" |
---|
| 4113 | # link -lib only works when -lib is the first arg |
---|
| 4114 | STLIB_LD="${LINKBIN} -lib ${lflags}" |
---|
| 4115 | RC_OUT=-fo |
---|
| 4116 | RC_TYPE=-r |
---|
| 4117 | RC_INCLUDE=-i |
---|
| 4118 | RC_DEFINE=-d |
---|
| 4119 | RES=res |
---|
| 4120 | MAKE_LIB="\${STLIB_LD} -out:\$@" |
---|
| 4121 | POST_MAKE_LIB= |
---|
| 4122 | MAKE_EXE="\${CC} -Fe\$@" |
---|
| 4123 | LIBPREFIX="" |
---|
| 4124 | |
---|
| 4125 | EXTRA_CFLAGS="" |
---|
| 4126 | CFLAGS_WARNING="-W3" |
---|
| 4127 | LDFLAGS_DEBUG="-debug:full" |
---|
| 4128 | LDFLAGS_OPTIMIZE="-release" |
---|
| 4129 | |
---|
| 4130 | # Specify the CC output file names based on the target name |
---|
| 4131 | CC_OBJNAME="-Fo\$@" |
---|
| 4132 | CC_EXENAME="-Fe\"\$(shell \$(CYGPATH) '\$@')\"" |
---|
| 4133 | |
---|
| 4134 | # Specify linker flags depending on the type of app being |
---|
| 4135 | # built -- Console vs. Window. |
---|
| 4136 | if test "$doWince" != "no" -a "${TARGETCPU}" != "X86"; then |
---|
| 4137 | LDFLAGS_CONSOLE="-link ${lflags}" |
---|
| 4138 | LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} |
---|
| 4139 | else |
---|
| 4140 | LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" |
---|
| 4141 | LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" |
---|
| 4142 | fi |
---|
| 4143 | fi |
---|
| 4144 | |
---|
| 4145 | if test "$do64bit" != "no" ; then |
---|
| 4146 | cat >>confdefs.h <<\_ACEOF |
---|
| 4147 | #define TCL_CFG_DO64BIT 1 |
---|
| 4148 | _ACEOF |
---|
| 4149 | |
---|
| 4150 | fi |
---|
| 4151 | |
---|
| 4152 | # DL_LIBS is empty, but then we match the Unix version |
---|
| 4153 | |
---|
| 4154 | |
---|
| 4155 | |
---|
| 4156 | |
---|
| 4157 | |
---|
| 4158 | |
---|
| 4159 | #-------------------------------------------------------------------- |
---|
| 4160 | # Set the default compiler switches based on the --enable-symbols |
---|
| 4161 | # option. This macro depends on C flags, and should be called |
---|
| 4162 | # after SC_CONFIG_CFLAGS macro is called. |
---|
| 4163 | #-------------------------------------------------------------------- |
---|
| 4164 | |
---|
| 4165 | |
---|
| 4166 | echo "$as_me:$LINENO: checking for build with symbols" >&5 |
---|
| 4167 | echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6 |
---|
| 4168 | # Check whether --enable-symbols or --disable-symbols was given. |
---|
| 4169 | if test "${enable_symbols+set}" = set; then |
---|
| 4170 | enableval="$enable_symbols" |
---|
| 4171 | tcl_ok=$enableval |
---|
| 4172 | else |
---|
| 4173 | tcl_ok=no |
---|
| 4174 | fi; |
---|
| 4175 | # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. |
---|
| 4176 | if test "$tcl_ok" = "no"; then |
---|
| 4177 | CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' |
---|
| 4178 | LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' |
---|
| 4179 | DBGX="" |
---|
| 4180 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 4181 | echo "${ECHO_T}no" >&6 |
---|
| 4182 | |
---|
| 4183 | cat >>confdefs.h <<\_ACEOF |
---|
| 4184 | #define TCL_CFG_OPTIMIZED 1 |
---|
| 4185 | _ACEOF |
---|
| 4186 | |
---|
| 4187 | else |
---|
| 4188 | CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' |
---|
| 4189 | LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' |
---|
| 4190 | DBGX=g |
---|
| 4191 | if test "$tcl_ok" = "yes"; then |
---|
| 4192 | echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 |
---|
| 4193 | echo "${ECHO_T}yes (standard debugging)" >&6 |
---|
| 4194 | fi |
---|
| 4195 | fi |
---|
| 4196 | |
---|
| 4197 | |
---|
| 4198 | cat >>confdefs.h <<\_ACEOF |
---|
| 4199 | #define TCL_CFG_DEBUG 1 |
---|
| 4200 | _ACEOF |
---|
| 4201 | |
---|
| 4202 | |
---|
| 4203 | if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then |
---|
| 4204 | cat >>confdefs.h <<\_ACEOF |
---|
| 4205 | #define TCL_MEM_DEBUG 1 |
---|
| 4206 | _ACEOF |
---|
| 4207 | |
---|
| 4208 | fi |
---|
| 4209 | |
---|
| 4210 | if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then |
---|
| 4211 | cat >>confdefs.h <<\_ACEOF |
---|
| 4212 | #define TCL_COMPILE_DEBUG 1 |
---|
| 4213 | _ACEOF |
---|
| 4214 | |
---|
| 4215 | cat >>confdefs.h <<\_ACEOF |
---|
| 4216 | #define TCL_COMPILE_STATS 1 |
---|
| 4217 | _ACEOF |
---|
| 4218 | |
---|
| 4219 | fi |
---|
| 4220 | |
---|
| 4221 | if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then |
---|
| 4222 | if test "$tcl_ok" = "all"; then |
---|
| 4223 | echo "$as_me:$LINENO: result: enabled symbols mem compile debugging" >&5 |
---|
| 4224 | echo "${ECHO_T}enabled symbols mem compile debugging" >&6 |
---|
| 4225 | else |
---|
| 4226 | echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 |
---|
| 4227 | echo "${ECHO_T}enabled $tcl_ok debugging" >&6 |
---|
| 4228 | fi |
---|
| 4229 | fi |
---|
| 4230 | |
---|
| 4231 | |
---|
| 4232 | TCL_DBGX=${DBGX} |
---|
| 4233 | |
---|
| 4234 | #------------------------------------------------------------------------ |
---|
| 4235 | # tclConfig.sh refers to this by a different name |
---|
| 4236 | #------------------------------------------------------------------------ |
---|
| 4237 | |
---|
| 4238 | TCL_SHARED_BUILD=${SHARED_BUILD} |
---|
| 4239 | |
---|
| 4240 | #-------------------------------------------------------------------- |
---|
| 4241 | # Perform final evaluations of variables with possible substitutions. |
---|
| 4242 | #-------------------------------------------------------------------- |
---|
| 4243 | |
---|
| 4244 | TCL_SHARED_LIB_SUFFIX="\${NODOT_VERSION}${DLLSUFFIX}" |
---|
| 4245 | TCL_UNSHARED_LIB_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}" |
---|
| 4246 | TCL_EXPORT_FILE_SUFFIX="\${NODOT_VERSION}${LIBSUFFIX}" |
---|
| 4247 | |
---|
| 4248 | eval "TCL_SRC_DIR=\"`cd $srcdir/..; pwd`\"" |
---|
| 4249 | |
---|
| 4250 | eval "TCL_DLL_FILE=tcl${VER}${DLLSUFFIX}" |
---|
| 4251 | |
---|
| 4252 | eval "TCL_LIB_FILE=${LIBPREFIX}tcl$VER${LIBSUFFIX}" |
---|
| 4253 | |
---|
| 4254 | eval "TCL_LIB_FLAG=\"-ltcl${VER}${LIBFLAGSUFFIX}\"" |
---|
| 4255 | eval "TCL_BUILD_LIB_SPEC=\"-L`pwd` ${TCL_LIB_FLAG}\"" |
---|
| 4256 | eval "TCL_LIB_SPEC=\"-L${libdir} ${TCL_LIB_FLAG}\"" |
---|
| 4257 | |
---|
| 4258 | eval "TCL_STUB_LIB_FILE=\"${LIBPREFIX}tclstub${VER}${LIBSUFFIX}\"" |
---|
| 4259 | eval "TCL_STUB_LIB_FLAG=\"-ltclstub${VER}${LIBFLAGSUFFIX}\"" |
---|
| 4260 | eval "TCL_BUILD_STUB_LIB_SPEC=\"-L`pwd` ${TCL_STUB_LIB_FLAG}\"" |
---|
| 4261 | eval "TCL_STUB_LIB_SPEC=\"-L${libdir} ${TCL_STUB_LIB_FLAG}\"" |
---|
| 4262 | eval "TCL_BUILD_STUB_LIB_PATH=\"`pwd`/${TCL_STUB_LIB_FILE}\"" |
---|
| 4263 | eval "TCL_STUB_LIB_PATH=\"${libdir}/${TCL_STUB_LIB_FILE}\"" |
---|
| 4264 | |
---|
| 4265 | # Install time header dir can be set via --includedir |
---|
| 4266 | eval "TCL_INCLUDE_SPEC=\"-I${includedir}\"" |
---|
| 4267 | |
---|
| 4268 | |
---|
| 4269 | eval "DLLSUFFIX=${DLLSUFFIX}" |
---|
| 4270 | eval "LIBPREFIX=${LIBPREFIX}" |
---|
| 4271 | eval "LIBSUFFIX=${LIBSUFFIX}" |
---|
| 4272 | eval "EXESUFFIX=${EXESUFFIX}" |
---|
| 4273 | |
---|
| 4274 | CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX} |
---|
| 4275 | CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX} |
---|
| 4276 | CFG_TCL_EXPORT_FILE_SUFFIX=${TCL_EXPORT_FILE_SUFFIX} |
---|
| 4277 | |
---|
| 4278 | #-------------------------------------------------------------------- |
---|
| 4279 | # Adjust the defines for how the resources are built depending |
---|
| 4280 | # on symbols and static vs. shared. |
---|
| 4281 | #-------------------------------------------------------------------- |
---|
| 4282 | |
---|
| 4283 | if test ${SHARED_BUILD} = 0 ; then |
---|
| 4284 | if test "${DBGX}" = "g"; then |
---|
| 4285 | RC_DEFINES="${RC_DEFINE} STATIC_BUILD ${RC_DEFINE} DEBUG" |
---|
| 4286 | else |
---|
| 4287 | RC_DEFINES="${RC_DEFINE} STATIC_BUILD" |
---|
| 4288 | fi |
---|
| 4289 | else |
---|
| 4290 | if test "${DBGX}" = "g"; then |
---|
| 4291 | RC_DEFINES="${RC_DEFINE} DEBUG" |
---|
| 4292 | else |
---|
| 4293 | RC_DEFINES="" |
---|
| 4294 | fi |
---|
| 4295 | fi |
---|
| 4296 | |
---|
| 4297 | #-------------------------------------------------------------------- |
---|
| 4298 | # The statements below define the symbol TCL_PACKAGE_PATH, which |
---|
| 4299 | # gives a list of directories that may contain packages. The list |
---|
| 4300 | # consists of one directory for machine-dependent binaries and |
---|
| 4301 | # another for platform-independent scripts. |
---|
| 4302 | #-------------------------------------------------------------------- |
---|
| 4303 | |
---|
| 4304 | if test "$prefix/lib" != "$libdir"; then |
---|
| 4305 | TCL_PACKAGE_PATH="${libdir} ${prefix}/lib" |
---|
| 4306 | else |
---|
| 4307 | TCL_PACKAGE_PATH="${prefix}/lib" |
---|
| 4308 | fi |
---|
| 4309 | |
---|
| 4310 | |
---|
| 4311 | |
---|
| 4312 | |
---|
| 4313 | |
---|
| 4314 | |
---|
| 4315 | |
---|
| 4316 | |
---|
| 4317 | # empty on win |
---|
| 4318 | |
---|
| 4319 | |
---|
| 4320 | |
---|
| 4321 | |
---|
| 4322 | |
---|
| 4323 | |
---|
| 4324 | |
---|
| 4325 | |
---|
| 4326 | |
---|
| 4327 | |
---|
| 4328 | |
---|
| 4329 | |
---|
| 4330 | |
---|
| 4331 | |
---|
| 4332 | |
---|
| 4333 | |
---|
| 4334 | |
---|
| 4335 | # win/tcl.m4 doesn't set (CFLAGS) |
---|
| 4336 | |
---|
| 4337 | |
---|
| 4338 | |
---|
| 4339 | |
---|
| 4340 | |
---|
| 4341 | |
---|
| 4342 | |
---|
| 4343 | # win/tcl.m4 doesn't set (LDFLAGS) |
---|
| 4344 | |
---|
| 4345 | |
---|
| 4346 | |
---|
| 4347 | |
---|
| 4348 | |
---|
| 4349 | |
---|
| 4350 | |
---|
| 4351 | |
---|
| 4352 | |
---|
| 4353 | |
---|
| 4354 | |
---|
| 4355 | |
---|
| 4356 | |
---|
| 4357 | |
---|
| 4358 | |
---|
| 4359 | |
---|
| 4360 | |
---|
| 4361 | |
---|
| 4362 | |
---|
| 4363 | |
---|
| 4364 | |
---|
| 4365 | |
---|
| 4366 | |
---|
| 4367 | |
---|
| 4368 | |
---|
| 4369 | |
---|
| 4370 | |
---|
| 4371 | # empty on win, but needs sub'ing |
---|
| 4372 | |
---|
| 4373 | |
---|
| 4374 | |
---|
| 4375 | |
---|
| 4376 | |
---|
| 4377 | |
---|
| 4378 | |
---|
| 4379 | |
---|
| 4380 | |
---|
| 4381 | # win only |
---|
| 4382 | |
---|
| 4383 | |
---|
| 4384 | |
---|
| 4385 | |
---|
| 4386 | |
---|
| 4387 | |
---|
| 4388 | |
---|
| 4389 | |
---|
| 4390 | |
---|
| 4391 | |
---|
| 4392 | |
---|
| 4393 | |
---|
| 4394 | |
---|
| 4395 | |
---|
| 4396 | |
---|
| 4397 | |
---|
| 4398 | |
---|
| 4399 | ac_config_files="$ac_config_files Makefile tclConfig.sh tcl.hpj" |
---|
| 4400 | cat >confcache <<\_ACEOF |
---|
| 4401 | # This file is a shell script that caches the results of configure |
---|
| 4402 | # tests run on this system so they can be shared between configure |
---|
| 4403 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 4404 | # It is not useful on other systems. If it contains results you don't |
---|
| 4405 | # want to keep, you may remove or edit it. |
---|
| 4406 | # |
---|
| 4407 | # config.status only pays attention to the cache file if you give it |
---|
| 4408 | # the --recheck option to rerun configure. |
---|
| 4409 | # |
---|
| 4410 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 4411 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 4412 | # following values. |
---|
| 4413 | |
---|
| 4414 | _ACEOF |
---|
| 4415 | |
---|
| 4416 | # The following way of writing the cache mishandles newlines in values, |
---|
| 4417 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 4418 | # So, don't put newlines in cache variables' values. |
---|
| 4419 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 4420 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 4421 | { |
---|
| 4422 | (set) 2>&1 | |
---|
| 4423 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 4424 | *ac_space=\ *) |
---|
| 4425 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 4426 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 4427 | sed -n \ |
---|
| 4428 | "s/'/'\\\\''/g; |
---|
| 4429 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 4430 | ;; |
---|
| 4431 | *) |
---|
| 4432 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 4433 | sed -n \ |
---|
| 4434 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 4435 | ;; |
---|
| 4436 | esac; |
---|
| 4437 | } | |
---|
| 4438 | sed ' |
---|
| 4439 | t clear |
---|
| 4440 | : clear |
---|
| 4441 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 4442 | t end |
---|
| 4443 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 4444 | : end' >>confcache |
---|
| 4445 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 4446 | if test -w $cache_file; then |
---|
| 4447 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 4448 | cat confcache >$cache_file |
---|
| 4449 | else |
---|
| 4450 | echo "not updating unwritable cache $cache_file" |
---|
| 4451 | fi |
---|
| 4452 | fi |
---|
| 4453 | rm -f confcache |
---|
| 4454 | |
---|
| 4455 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 4456 | # Let make expand exec_prefix. |
---|
| 4457 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 4458 | |
---|
| 4459 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 4460 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 4461 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 4462 | # (actually we leave an empty line to preserve line numbers). |
---|
| 4463 | if test "x$srcdir" = x.; then |
---|
| 4464 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 4465 | s/:*\$(srcdir):*/:/; |
---|
| 4466 | s/:*\${srcdir}:*/:/; |
---|
| 4467 | s/:*@srcdir@:*/:/; |
---|
| 4468 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 4469 | s/:*$//; |
---|
| 4470 | s/^[^=]*=[ ]*$//; |
---|
| 4471 | }' |
---|
| 4472 | fi |
---|
| 4473 | |
---|
| 4474 | # Transform confdefs.h into DEFS. |
---|
| 4475 | # Protect against shell expansion while executing Makefile rules. |
---|
| 4476 | # Protect against Makefile macro expansion. |
---|
| 4477 | # |
---|
| 4478 | # If the first sed substitution is executed (which looks for macros that |
---|
| 4479 | # take arguments), then we branch to the quote section. Otherwise, |
---|
| 4480 | # look for a macro that doesn't take arguments. |
---|
| 4481 | cat >confdef2opt.sed <<\_ACEOF |
---|
| 4482 | t clear |
---|
| 4483 | : clear |
---|
| 4484 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
| 4485 | t quote |
---|
| 4486 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
| 4487 | t quote |
---|
| 4488 | d |
---|
| 4489 | : quote |
---|
| 4490 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
| 4491 | s,\[,\\&,g |
---|
| 4492 | s,\],\\&,g |
---|
| 4493 | s,\$,$$,g |
---|
| 4494 | p |
---|
| 4495 | _ACEOF |
---|
| 4496 | # We use echo to avoid assuming a particular line-breaking character. |
---|
| 4497 | # The extra dot is to prevent the shell from consuming trailing |
---|
| 4498 | # line-breaks from the sub-command output. A line-break within |
---|
| 4499 | # single-quotes doesn't work because, if this script is created in a |
---|
| 4500 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
| 4501 | # would break. |
---|
| 4502 | ac_LF_and_DOT=`echo; echo .` |
---|
| 4503 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
| 4504 | rm -f confdef2opt.sed |
---|
| 4505 | |
---|
| 4506 | |
---|
| 4507 | ac_libobjs= |
---|
| 4508 | ac_ltlibobjs= |
---|
| 4509 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 4510 | # 1. Remove the extension, and $U if already installed. |
---|
| 4511 | ac_i=`echo "$ac_i" | |
---|
| 4512 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 4513 | # 2. Add them. |
---|
| 4514 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 4515 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 4516 | done |
---|
| 4517 | LIBOBJS=$ac_libobjs |
---|
| 4518 | |
---|
| 4519 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 4520 | |
---|
| 4521 | |
---|
| 4522 | |
---|
| 4523 | : ${CONFIG_STATUS=./config.status} |
---|
| 4524 | ac_clean_files_save=$ac_clean_files |
---|
| 4525 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 4526 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 4527 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 4528 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 4529 | #! $SHELL |
---|
| 4530 | # Generated by $as_me. |
---|
| 4531 | # Run this file to recreate the current configuration. |
---|
| 4532 | # Compiler output produced by configure, useful for debugging |
---|
| 4533 | # configure, is in config.log if it exists. |
---|
| 4534 | |
---|
| 4535 | debug=false |
---|
| 4536 | ac_cs_recheck=false |
---|
| 4537 | ac_cs_silent=false |
---|
| 4538 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 4539 | _ACEOF |
---|
| 4540 | |
---|
| 4541 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4542 | ## --------------------- ## |
---|
| 4543 | ## M4sh Initialization. ## |
---|
| 4544 | ## --------------------- ## |
---|
| 4545 | |
---|
| 4546 | # Be Bourne compatible |
---|
| 4547 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 4548 | emulate sh |
---|
| 4549 | NULLCMD=: |
---|
| 4550 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 4551 | # is contrary to our usage. Disable this feature. |
---|
| 4552 | alias -g '${1+"$@"}'='"$@"' |
---|
| 4553 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 4554 | set -o posix |
---|
| 4555 | fi |
---|
| 4556 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 4557 | |
---|
| 4558 | # Support unset when possible. |
---|
| 4559 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 4560 | as_unset=unset |
---|
| 4561 | else |
---|
| 4562 | as_unset=false |
---|
| 4563 | fi |
---|
| 4564 | |
---|
| 4565 | |
---|
| 4566 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 4567 | $as_unset ENV MAIL MAILPATH |
---|
| 4568 | PS1='$ ' |
---|
| 4569 | PS2='> ' |
---|
| 4570 | PS4='+ ' |
---|
| 4571 | |
---|
| 4572 | # NLS nuisances. |
---|
| 4573 | for as_var in \ |
---|
| 4574 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 4575 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 4576 | LC_TELEPHONE LC_TIME |
---|
| 4577 | do |
---|
| 4578 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 4579 | eval $as_var=C; export $as_var |
---|
| 4580 | else |
---|
| 4581 | $as_unset $as_var |
---|
| 4582 | fi |
---|
| 4583 | done |
---|
| 4584 | |
---|
| 4585 | # Required to use basename. |
---|
| 4586 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 4587 | as_expr=expr |
---|
| 4588 | else |
---|
| 4589 | as_expr=false |
---|
| 4590 | fi |
---|
| 4591 | |
---|
| 4592 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 4593 | as_basename=basename |
---|
| 4594 | else |
---|
| 4595 | as_basename=false |
---|
| 4596 | fi |
---|
| 4597 | |
---|
| 4598 | |
---|
| 4599 | # Name of the executable. |
---|
| 4600 | as_me=`$as_basename "$0" || |
---|
| 4601 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 4602 | X"$0" : 'X\(//\)$' \| \ |
---|
| 4603 | X"$0" : 'X\(/\)$' \| \ |
---|
| 4604 | . : '\(.\)' 2>/dev/null || |
---|
| 4605 | echo X/"$0" | |
---|
| 4606 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 4607 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 4608 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 4609 | s/.*/./; q'` |
---|
| 4610 | |
---|
| 4611 | |
---|
| 4612 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 4613 | # Avoid depending upon Character Ranges. |
---|
| 4614 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 4615 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 4616 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 4617 | as_cr_digits='0123456789' |
---|
| 4618 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 4619 | |
---|
| 4620 | # The user is always right. |
---|
| 4621 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 4622 | echo "#! /bin/sh" >conf$$.sh |
---|
| 4623 | echo "exit 0" >>conf$$.sh |
---|
| 4624 | chmod +x conf$$.sh |
---|
| 4625 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 4626 | PATH_SEPARATOR=';' |
---|
| 4627 | else |
---|
| 4628 | PATH_SEPARATOR=: |
---|
| 4629 | fi |
---|
| 4630 | rm -f conf$$.sh |
---|
| 4631 | fi |
---|
| 4632 | |
---|
| 4633 | |
---|
| 4634 | as_lineno_1=$LINENO |
---|
| 4635 | as_lineno_2=$LINENO |
---|
| 4636 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 4637 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 4638 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 4639 | # Find who we are. Look in the path if we contain no path at all |
---|
| 4640 | # relative or not. |
---|
| 4641 | case $0 in |
---|
| 4642 | *[\\/]* ) as_myself=$0 ;; |
---|
| 4643 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4644 | for as_dir in $PATH |
---|
| 4645 | do |
---|
| 4646 | IFS=$as_save_IFS |
---|
| 4647 | test -z "$as_dir" && as_dir=. |
---|
| 4648 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 4649 | done |
---|
| 4650 | |
---|
| 4651 | ;; |
---|
| 4652 | esac |
---|
| 4653 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 4654 | # in which case we are not to be found in the path. |
---|
| 4655 | if test "x$as_myself" = x; then |
---|
| 4656 | as_myself=$0 |
---|
| 4657 | fi |
---|
| 4658 | if test ! -f "$as_myself"; then |
---|
| 4659 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 4660 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 4661 | { (exit 1); exit 1; }; } |
---|
| 4662 | fi |
---|
| 4663 | case $CONFIG_SHELL in |
---|
| 4664 | '') |
---|
| 4665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 4666 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 4667 | do |
---|
| 4668 | IFS=$as_save_IFS |
---|
| 4669 | test -z "$as_dir" && as_dir=. |
---|
| 4670 | for as_base in sh bash ksh sh5; do |
---|
| 4671 | case $as_dir in |
---|
| 4672 | /*) |
---|
| 4673 | if ("$as_dir/$as_base" -c ' |
---|
| 4674 | as_lineno_1=$LINENO |
---|
| 4675 | as_lineno_2=$LINENO |
---|
| 4676 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 4677 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 4678 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 4679 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 4680 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 4681 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 4682 | export CONFIG_SHELL |
---|
| 4683 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 4684 | fi;; |
---|
| 4685 | esac |
---|
| 4686 | done |
---|
| 4687 | done |
---|
| 4688 | ;; |
---|
| 4689 | esac |
---|
| 4690 | |
---|
| 4691 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 4692 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 4693 | # line-number line before each line; the second 'sed' does the real |
---|
| 4694 | # work. The second script uses 'N' to pair each line-number line |
---|
| 4695 | # with the numbered line, and appends trailing '-' during |
---|
| 4696 | # substitution so that $LINENO is not a special case at line end. |
---|
| 4697 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 4698 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 4699 | sed '=' <$as_myself | |
---|
| 4700 | sed ' |
---|
| 4701 | N |
---|
| 4702 | s,$,-, |
---|
| 4703 | : loop |
---|
| 4704 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 4705 | t loop |
---|
| 4706 | s,-$,, |
---|
| 4707 | s,^['$as_cr_digits']*\n,, |
---|
| 4708 | ' >$as_me.lineno && |
---|
| 4709 | chmod +x $as_me.lineno || |
---|
| 4710 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 4711 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 4712 | { (exit 1); exit 1; }; } |
---|
| 4713 | |
---|
| 4714 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 4715 | # (the dirname of $[0] is not the place where we might find the |
---|
| 4716 | # original and so on. Autoconf is especially sensible to this). |
---|
| 4717 | . ./$as_me.lineno |
---|
| 4718 | # Exit status is that of the last command. |
---|
| 4719 | exit |
---|
| 4720 | } |
---|
| 4721 | |
---|
| 4722 | |
---|
| 4723 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 4724 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 4725 | ' ECHO_T=' ' ;; |
---|
| 4726 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 4727 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 4728 | esac |
---|
| 4729 | |
---|
| 4730 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 4731 | as_expr=expr |
---|
| 4732 | else |
---|
| 4733 | as_expr=false |
---|
| 4734 | fi |
---|
| 4735 | |
---|
| 4736 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 4737 | echo >conf$$.file |
---|
| 4738 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 4739 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 4740 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 4741 | if test -f conf$$.exe; then |
---|
| 4742 | # Don't use ln at all; we don't have any links |
---|
| 4743 | as_ln_s='cp -p' |
---|
| 4744 | else |
---|
| 4745 | as_ln_s='ln -s' |
---|
| 4746 | fi |
---|
| 4747 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 4748 | as_ln_s=ln |
---|
| 4749 | else |
---|
| 4750 | as_ln_s='cp -p' |
---|
| 4751 | fi |
---|
| 4752 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 4753 | |
---|
| 4754 | if mkdir -p . 2>/dev/null; then |
---|
| 4755 | as_mkdir_p=: |
---|
| 4756 | else |
---|
| 4757 | test -d ./-p && rmdir ./-p |
---|
| 4758 | as_mkdir_p=false |
---|
| 4759 | fi |
---|
| 4760 | |
---|
| 4761 | as_executable_p="test -f" |
---|
| 4762 | |
---|
| 4763 | # Sed expression to map a string onto a valid CPP name. |
---|
| 4764 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 4765 | |
---|
| 4766 | # Sed expression to map a string onto a valid variable name. |
---|
| 4767 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 4768 | |
---|
| 4769 | |
---|
| 4770 | # IFS |
---|
| 4771 | # We need space, tab and new line, in precisely that order. |
---|
| 4772 | as_nl=' |
---|
| 4773 | ' |
---|
| 4774 | IFS=" $as_nl" |
---|
| 4775 | |
---|
| 4776 | # CDPATH. |
---|
| 4777 | $as_unset CDPATH |
---|
| 4778 | |
---|
| 4779 | exec 6>&1 |
---|
| 4780 | |
---|
| 4781 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 4782 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 4783 | # values after options handling. Logging --version etc. is OK. |
---|
| 4784 | exec 5>>config.log |
---|
| 4785 | { |
---|
| 4786 | echo |
---|
| 4787 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 4788 | ## Running $as_me. ## |
---|
| 4789 | _ASBOX |
---|
| 4790 | } >&5 |
---|
| 4791 | cat >&5 <<_CSEOF |
---|
| 4792 | |
---|
| 4793 | This file was extended by $as_me, which was |
---|
| 4794 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 4795 | |
---|
| 4796 | CONFIG_FILES = $CONFIG_FILES |
---|
| 4797 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 4798 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 4799 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 4800 | $ $0 $@ |
---|
| 4801 | |
---|
| 4802 | _CSEOF |
---|
| 4803 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 4804 | echo >&5 |
---|
| 4805 | _ACEOF |
---|
| 4806 | |
---|
| 4807 | # Files that config.status was made for. |
---|
| 4808 | if test -n "$ac_config_files"; then |
---|
| 4809 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 4810 | fi |
---|
| 4811 | |
---|
| 4812 | if test -n "$ac_config_headers"; then |
---|
| 4813 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 4814 | fi |
---|
| 4815 | |
---|
| 4816 | if test -n "$ac_config_links"; then |
---|
| 4817 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 4818 | fi |
---|
| 4819 | |
---|
| 4820 | if test -n "$ac_config_commands"; then |
---|
| 4821 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 4822 | fi |
---|
| 4823 | |
---|
| 4824 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4825 | |
---|
| 4826 | ac_cs_usage="\ |
---|
| 4827 | \`$as_me' instantiates files from templates according to the |
---|
| 4828 | current configuration. |
---|
| 4829 | |
---|
| 4830 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 4831 | |
---|
| 4832 | -h, --help print this help, then exit |
---|
| 4833 | -V, --version print version number, then exit |
---|
| 4834 | -q, --quiet do not print progress messages |
---|
| 4835 | -d, --debug don't remove temporary files |
---|
| 4836 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 4837 | --file=FILE[:TEMPLATE] |
---|
| 4838 | instantiate the configuration file FILE |
---|
| 4839 | |
---|
| 4840 | Configuration files: |
---|
| 4841 | $config_files |
---|
| 4842 | |
---|
| 4843 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 4844 | _ACEOF |
---|
| 4845 | |
---|
| 4846 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 4847 | ac_cs_version="\\ |
---|
| 4848 | config.status |
---|
| 4849 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 4850 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 4851 | |
---|
| 4852 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 4853 | This config.status script is free software; the Free Software Foundation |
---|
| 4854 | gives unlimited permission to copy, distribute and modify it." |
---|
| 4855 | srcdir=$srcdir |
---|
| 4856 | _ACEOF |
---|
| 4857 | |
---|
| 4858 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4859 | # If no file are specified by the user, then we need to provide default |
---|
| 4860 | # value. By we need to know if files were specified by the user. |
---|
| 4861 | ac_need_defaults=: |
---|
| 4862 | while test $# != 0 |
---|
| 4863 | do |
---|
| 4864 | case $1 in |
---|
| 4865 | --*=*) |
---|
| 4866 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 4867 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 4868 | ac_shift=: |
---|
| 4869 | ;; |
---|
| 4870 | -*) |
---|
| 4871 | ac_option=$1 |
---|
| 4872 | ac_optarg=$2 |
---|
| 4873 | ac_shift=shift |
---|
| 4874 | ;; |
---|
| 4875 | *) # This is not an option, so the user has probably given explicit |
---|
| 4876 | # arguments. |
---|
| 4877 | ac_option=$1 |
---|
| 4878 | ac_need_defaults=false;; |
---|
| 4879 | esac |
---|
| 4880 | |
---|
| 4881 | case $ac_option in |
---|
| 4882 | # Handling of the options. |
---|
| 4883 | _ACEOF |
---|
| 4884 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4885 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 4886 | ac_cs_recheck=: ;; |
---|
| 4887 | --version | --vers* | -V ) |
---|
| 4888 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 4889 | --he | --h) |
---|
| 4890 | # Conflict between --help and --header |
---|
| 4891 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 4892 | Try \`$0 --help' for more information." >&5 |
---|
| 4893 | echo "$as_me: error: ambiguous option: $1 |
---|
| 4894 | Try \`$0 --help' for more information." >&2;} |
---|
| 4895 | { (exit 1); exit 1; }; };; |
---|
| 4896 | --help | --hel | -h ) |
---|
| 4897 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 4898 | --debug | --d* | -d ) |
---|
| 4899 | debug=: ;; |
---|
| 4900 | --file | --fil | --fi | --f ) |
---|
| 4901 | $ac_shift |
---|
| 4902 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 4903 | ac_need_defaults=false;; |
---|
| 4904 | --header | --heade | --head | --hea ) |
---|
| 4905 | $ac_shift |
---|
| 4906 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 4907 | ac_need_defaults=false;; |
---|
| 4908 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 4909 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 4910 | ac_cs_silent=: ;; |
---|
| 4911 | |
---|
| 4912 | # This is an error. |
---|
| 4913 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 4914 | Try \`$0 --help' for more information." >&5 |
---|
| 4915 | echo "$as_me: error: unrecognized option: $1 |
---|
| 4916 | Try \`$0 --help' for more information." >&2;} |
---|
| 4917 | { (exit 1); exit 1; }; } ;; |
---|
| 4918 | |
---|
| 4919 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 4920 | |
---|
| 4921 | esac |
---|
| 4922 | shift |
---|
| 4923 | done |
---|
| 4924 | |
---|
| 4925 | ac_configure_extra_args= |
---|
| 4926 | |
---|
| 4927 | if $ac_cs_silent; then |
---|
| 4928 | exec 6>/dev/null |
---|
| 4929 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 4930 | fi |
---|
| 4931 | |
---|
| 4932 | _ACEOF |
---|
| 4933 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 4934 | if \$ac_cs_recheck; then |
---|
| 4935 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 4936 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 4937 | fi |
---|
| 4938 | |
---|
| 4939 | _ACEOF |
---|
| 4940 | |
---|
| 4941 | |
---|
| 4942 | |
---|
| 4943 | |
---|
| 4944 | |
---|
| 4945 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4946 | for ac_config_target in $ac_config_targets |
---|
| 4947 | do |
---|
| 4948 | case "$ac_config_target" in |
---|
| 4949 | # Handling of arguments. |
---|
| 4950 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 4951 | "tclConfig.sh" ) CONFIG_FILES="$CONFIG_FILES tclConfig.sh" ;; |
---|
| 4952 | "tcl.hpj" ) CONFIG_FILES="$CONFIG_FILES tcl.hpj" ;; |
---|
| 4953 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 4954 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 4955 | { (exit 1); exit 1; }; };; |
---|
| 4956 | esac |
---|
| 4957 | done |
---|
| 4958 | |
---|
| 4959 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 4960 | # then the envvar interface is used. Set only those that are not. |
---|
| 4961 | # We use the long form for the default assignment because of an extremely |
---|
| 4962 | # bizarre bug on SunOS 4.1.3. |
---|
| 4963 | if $ac_need_defaults; then |
---|
| 4964 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 4965 | fi |
---|
| 4966 | |
---|
| 4967 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 4968 | # simply because there is no reason to put it here, and in addition, |
---|
| 4969 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 4970 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 4971 | $debug || |
---|
| 4972 | { |
---|
| 4973 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 4974 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 4975 | } |
---|
| 4976 | |
---|
| 4977 | # Create a (secure) tmp directory for tmp files. |
---|
| 4978 | |
---|
| 4979 | { |
---|
| 4980 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 4981 | test -n "$tmp" && test -d "$tmp" |
---|
| 4982 | } || |
---|
| 4983 | { |
---|
| 4984 | tmp=./confstat$$-$RANDOM |
---|
| 4985 | (umask 077 && mkdir $tmp) |
---|
| 4986 | } || |
---|
| 4987 | { |
---|
| 4988 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 4989 | { (exit 1); exit 1; } |
---|
| 4990 | } |
---|
| 4991 | |
---|
| 4992 | _ACEOF |
---|
| 4993 | |
---|
| 4994 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 4995 | |
---|
| 4996 | # |
---|
| 4997 | # CONFIG_FILES section. |
---|
| 4998 | # |
---|
| 4999 | |
---|
| 5000 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 5001 | # This happens for instance when ./config.status config.h |
---|
| 5002 | if test -n "\$CONFIG_FILES"; then |
---|
| 5003 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 5004 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 5005 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 5006 | s,@SHELL@,$SHELL,;t t |
---|
| 5007 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 5008 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 5009 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 5010 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 5011 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 5012 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 5013 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 5014 | s,@prefix@,$prefix,;t t |
---|
| 5015 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 5016 | s,@bindir@,$bindir,;t t |
---|
| 5017 | s,@sbindir@,$sbindir,;t t |
---|
| 5018 | s,@libexecdir@,$libexecdir,;t t |
---|
| 5019 | s,@datadir@,$datadir,;t t |
---|
| 5020 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 5021 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 5022 | s,@localstatedir@,$localstatedir,;t t |
---|
| 5023 | s,@libdir@,$libdir,;t t |
---|
| 5024 | s,@includedir@,$includedir,;t t |
---|
| 5025 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 5026 | s,@infodir@,$infodir,;t t |
---|
| 5027 | s,@mandir@,$mandir,;t t |
---|
| 5028 | s,@build_alias@,$build_alias,;t t |
---|
| 5029 | s,@host_alias@,$host_alias,;t t |
---|
| 5030 | s,@target_alias@,$target_alias,;t t |
---|
| 5031 | s,@DEFS@,$DEFS,;t t |
---|
| 5032 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 5033 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 5034 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 5035 | s,@LIBS@,$LIBS,;t t |
---|
| 5036 | s,@CC@,$CC,;t t |
---|
| 5037 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 5038 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 5039 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 5040 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 5041 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 5042 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 5043 | s,@CPP@,$CPP,;t t |
---|
| 5044 | s,@EGREP@,$EGREP,;t t |
---|
| 5045 | s,@AR@,$AR,;t t |
---|
| 5046 | s,@RANLIB@,$RANLIB,;t t |
---|
| 5047 | s,@RC@,$RC,;t t |
---|
| 5048 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 5049 | s,@TCL_THREADS@,$TCL_THREADS,;t t |
---|
| 5050 | s,@CYGPATH@,$CYGPATH,;t t |
---|
| 5051 | s,@CELIB_DIR@,$CELIB_DIR,;t t |
---|
| 5052 | s,@DL_LIBS@,$DL_LIBS,;t t |
---|
| 5053 | s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t |
---|
| 5054 | s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t |
---|
| 5055 | s,@CFLAGS_WARNING@,$CFLAGS_WARNING,;t t |
---|
| 5056 | s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t |
---|
| 5057 | s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t |
---|
| 5058 | s,@TCL_VERSION@,$TCL_VERSION,;t t |
---|
| 5059 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t |
---|
| 5060 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t |
---|
| 5061 | s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t |
---|
| 5062 | s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t |
---|
| 5063 | s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t |
---|
| 5064 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
---|
| 5065 | s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t |
---|
| 5066 | s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t |
---|
| 5067 | s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t |
---|
| 5068 | s,@TCL_STUB_LIB_PATH@,$TCL_STUB_LIB_PATH,;t t |
---|
| 5069 | s,@TCL_INCLUDE_SPEC@,$TCL_INCLUDE_SPEC,;t t |
---|
| 5070 | s,@TCL_BUILD_STUB_LIB_SPEC@,$TCL_BUILD_STUB_LIB_SPEC,;t t |
---|
| 5071 | s,@TCL_BUILD_STUB_LIB_PATH@,$TCL_BUILD_STUB_LIB_PATH,;t t |
---|
| 5072 | s,@TCL_DLL_FILE@,$TCL_DLL_FILE,;t t |
---|
| 5073 | s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t |
---|
| 5074 | s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t |
---|
| 5075 | s,@TCL_DBGX@,$TCL_DBGX,;t t |
---|
| 5076 | s,@CFG_TCL_SHARED_LIB_SUFFIX@,$CFG_TCL_SHARED_LIB_SUFFIX,;t t |
---|
| 5077 | s,@CFG_TCL_UNSHARED_LIB_SUFFIX@,$CFG_TCL_UNSHARED_LIB_SUFFIX,;t t |
---|
| 5078 | s,@CFG_TCL_EXPORT_FILE_SUFFIX@,$CFG_TCL_EXPORT_FILE_SUFFIX,;t t |
---|
| 5079 | s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t |
---|
| 5080 | s,@DEPARG@,$DEPARG,;t t |
---|
| 5081 | s,@CC_OBJNAME@,$CC_OBJNAME,;t t |
---|
| 5082 | s,@CC_EXENAME@,$CC_EXENAME,;t t |
---|
| 5083 | s,@LDFLAGS_DEBUG@,$LDFLAGS_DEBUG,;t t |
---|
| 5084 | s,@LDFLAGS_OPTIMIZE@,$LDFLAGS_OPTIMIZE,;t t |
---|
| 5085 | s,@LDFLAGS_CONSOLE@,$LDFLAGS_CONSOLE,;t t |
---|
| 5086 | s,@LDFLAGS_WINDOW@,$LDFLAGS_WINDOW,;t t |
---|
| 5087 | s,@STLIB_LD@,$STLIB_LD,;t t |
---|
| 5088 | s,@SHLIB_LD@,$SHLIB_LD,;t t |
---|
| 5089 | s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t |
---|
| 5090 | s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t |
---|
| 5091 | s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t |
---|
| 5092 | s,@TCL_SHARED_BUILD@,$TCL_SHARED_BUILD,;t t |
---|
| 5093 | s,@LIBS_GUI@,$LIBS_GUI,;t t |
---|
| 5094 | s,@DLLSUFFIX@,$DLLSUFFIX,;t t |
---|
| 5095 | s,@LIBPREFIX@,$LIBPREFIX,;t t |
---|
| 5096 | s,@LIBSUFFIX@,$LIBSUFFIX,;t t |
---|
| 5097 | s,@EXESUFFIX@,$EXESUFFIX,;t t |
---|
| 5098 | s,@LIBRARIES@,$LIBRARIES,;t t |
---|
| 5099 | s,@MAKE_LIB@,$MAKE_LIB,;t t |
---|
| 5100 | s,@POST_MAKE_LIB@,$POST_MAKE_LIB,;t t |
---|
| 5101 | s,@MAKE_DLL@,$MAKE_DLL,;t t |
---|
| 5102 | s,@MAKE_EXE@,$MAKE_EXE,;t t |
---|
| 5103 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t |
---|
| 5104 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t |
---|
| 5105 | s,@TCL_NEEDS_EXP_FILE@,$TCL_NEEDS_EXP_FILE,;t t |
---|
| 5106 | s,@TCL_BUILD_EXP_FILE@,$TCL_BUILD_EXP_FILE,;t t |
---|
| 5107 | s,@TCL_EXP_FILE@,$TCL_EXP_FILE,;t t |
---|
| 5108 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t |
---|
| 5109 | s,@TCL_PACKAGE_PATH@,$TCL_PACKAGE_PATH,;t t |
---|
| 5110 | s,@TCL_DDE_VERSION@,$TCL_DDE_VERSION,;t t |
---|
| 5111 | s,@TCL_DDE_MAJOR_VERSION@,$TCL_DDE_MAJOR_VERSION,;t t |
---|
| 5112 | s,@TCL_DDE_MINOR_VERSION@,$TCL_DDE_MINOR_VERSION,;t t |
---|
| 5113 | s,@TCL_DDE_PATCH_LEVEL@,$TCL_DDE_PATCH_LEVEL,;t t |
---|
| 5114 | s,@TCL_REG_VERSION@,$TCL_REG_VERSION,;t t |
---|
| 5115 | s,@TCL_REG_MAJOR_VERSION@,$TCL_REG_MAJOR_VERSION,;t t |
---|
| 5116 | s,@TCL_REG_MINOR_VERSION@,$TCL_REG_MINOR_VERSION,;t t |
---|
| 5117 | s,@TCL_REG_PATCH_LEVEL@,$TCL_REG_PATCH_LEVEL,;t t |
---|
| 5118 | s,@RC_OUT@,$RC_OUT,;t t |
---|
| 5119 | s,@RC_TYPE@,$RC_TYPE,;t t |
---|
| 5120 | s,@RC_INCLUDE@,$RC_INCLUDE,;t t |
---|
| 5121 | s,@RC_DEFINE@,$RC_DEFINE,;t t |
---|
| 5122 | s,@RC_DEFINES@,$RC_DEFINES,;t t |
---|
| 5123 | s,@RES@,$RES,;t t |
---|
| 5124 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 5125 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 5126 | CEOF |
---|
| 5127 | |
---|
| 5128 | _ACEOF |
---|
| 5129 | |
---|
| 5130 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5131 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 5132 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 5133 | ac_max_sed_lines=48 |
---|
| 5134 | ac_sed_frag=1 # Number of current file. |
---|
| 5135 | ac_beg=1 # First line for current file. |
---|
| 5136 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 5137 | ac_more_lines=: |
---|
| 5138 | ac_sed_cmds= |
---|
| 5139 | while $ac_more_lines; do |
---|
| 5140 | if test $ac_beg -gt 1; then |
---|
| 5141 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 5142 | else |
---|
| 5143 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 5144 | fi |
---|
| 5145 | if test ! -s $tmp/subs.frag; then |
---|
| 5146 | ac_more_lines=false |
---|
| 5147 | else |
---|
| 5148 | # The purpose of the label and of the branching condition is to |
---|
| 5149 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 5150 | # is no need to browse any of the substitutions). |
---|
| 5151 | # These are the two extra sed commands mentioned above. |
---|
| 5152 | (echo ':t |
---|
| 5153 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 5154 | if test -z "$ac_sed_cmds"; then |
---|
| 5155 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 5156 | else |
---|
| 5157 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 5158 | fi |
---|
| 5159 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 5160 | ac_beg=$ac_end |
---|
| 5161 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 5162 | fi |
---|
| 5163 | done |
---|
| 5164 | if test -z "$ac_sed_cmds"; then |
---|
| 5165 | ac_sed_cmds=cat |
---|
| 5166 | fi |
---|
| 5167 | fi # test -n "$CONFIG_FILES" |
---|
| 5168 | |
---|
| 5169 | _ACEOF |
---|
| 5170 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5171 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 5172 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 5173 | case $ac_file in |
---|
| 5174 | - | *:- | *:-:* ) # input from stdin |
---|
| 5175 | cat >$tmp/stdin |
---|
| 5176 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 5177 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 5178 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 5179 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 5180 | * ) ac_file_in=$ac_file.in ;; |
---|
| 5181 | esac |
---|
| 5182 | |
---|
| 5183 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 5184 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 5185 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5186 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 5187 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 5188 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 5189 | . : '\(.\)' 2>/dev/null || |
---|
| 5190 | echo X"$ac_file" | |
---|
| 5191 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 5192 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 5193 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 5194 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 5195 | s/.*/./; q'` |
---|
| 5196 | { if $as_mkdir_p; then |
---|
| 5197 | mkdir -p "$ac_dir" |
---|
| 5198 | else |
---|
| 5199 | as_dir="$ac_dir" |
---|
| 5200 | as_dirs= |
---|
| 5201 | while test ! -d "$as_dir"; do |
---|
| 5202 | as_dirs="$as_dir $as_dirs" |
---|
| 5203 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 5204 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 5205 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 5206 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 5207 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 5208 | . : '\(.\)' 2>/dev/null || |
---|
| 5209 | echo X"$as_dir" | |
---|
| 5210 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 5211 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 5212 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 5213 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 5214 | s/.*/./; q'` |
---|
| 5215 | done |
---|
| 5216 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 5217 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 5218 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 5219 | { (exit 1); exit 1; }; }; } |
---|
| 5220 | |
---|
| 5221 | ac_builddir=. |
---|
| 5222 | |
---|
| 5223 | if test "$ac_dir" != .; then |
---|
| 5224 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 5225 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 5226 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 5227 | else |
---|
| 5228 | ac_dir_suffix= ac_top_builddir= |
---|
| 5229 | fi |
---|
| 5230 | |
---|
| 5231 | case $srcdir in |
---|
| 5232 | .) # No --srcdir option. We are building in place. |
---|
| 5233 | ac_srcdir=. |
---|
| 5234 | if test -z "$ac_top_builddir"; then |
---|
| 5235 | ac_top_srcdir=. |
---|
| 5236 | else |
---|
| 5237 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 5238 | fi ;; |
---|
| 5239 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 5240 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 5241 | ac_top_srcdir=$srcdir ;; |
---|
| 5242 | *) # Relative path. |
---|
| 5243 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 5244 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 5245 | esac |
---|
| 5246 | |
---|
| 5247 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 5248 | # the directories may not exist. |
---|
| 5249 | case `pwd` in |
---|
| 5250 | .) ac_abs_builddir="$ac_dir";; |
---|
| 5251 | *) |
---|
| 5252 | case "$ac_dir" in |
---|
| 5253 | .) ac_abs_builddir=`pwd`;; |
---|
| 5254 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 5255 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 5256 | esac;; |
---|
| 5257 | esac |
---|
| 5258 | case $ac_abs_builddir in |
---|
| 5259 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 5260 | *) |
---|
| 5261 | case ${ac_top_builddir}. in |
---|
| 5262 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 5263 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 5264 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 5265 | esac;; |
---|
| 5266 | esac |
---|
| 5267 | case $ac_abs_builddir in |
---|
| 5268 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 5269 | *) |
---|
| 5270 | case $ac_srcdir in |
---|
| 5271 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 5272 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 5273 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 5274 | esac;; |
---|
| 5275 | esac |
---|
| 5276 | case $ac_abs_builddir in |
---|
| 5277 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 5278 | *) |
---|
| 5279 | case $ac_top_srcdir in |
---|
| 5280 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 5281 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 5282 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 5283 | esac;; |
---|
| 5284 | esac |
---|
| 5285 | |
---|
| 5286 | |
---|
| 5287 | |
---|
| 5288 | if test x"$ac_file" != x-; then |
---|
| 5289 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 5290 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 5291 | rm -f "$ac_file" |
---|
| 5292 | fi |
---|
| 5293 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 5294 | # use $as_me), people would be surprised to read: |
---|
| 5295 | # /* config.h. Generated by config.status. */ |
---|
| 5296 | if test x"$ac_file" = x-; then |
---|
| 5297 | configure_input= |
---|
| 5298 | else |
---|
| 5299 | configure_input="$ac_file. " |
---|
| 5300 | fi |
---|
| 5301 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 5302 | sed 's,.*/,,'` by configure." |
---|
| 5303 | |
---|
| 5304 | # First look for the input files in the build tree, otherwise in the |
---|
| 5305 | # src tree. |
---|
| 5306 | ac_file_inputs=`IFS=: |
---|
| 5307 | for f in $ac_file_in; do |
---|
| 5308 | case $f in |
---|
| 5309 | -) echo $tmp/stdin ;; |
---|
| 5310 | [\\/$]*) |
---|
| 5311 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 5312 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 5313 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 5314 | { (exit 1); exit 1; }; } |
---|
| 5315 | echo "$f";; |
---|
| 5316 | *) # Relative |
---|
| 5317 | if test -f "$f"; then |
---|
| 5318 | # Build tree |
---|
| 5319 | echo "$f" |
---|
| 5320 | elif test -f "$srcdir/$f"; then |
---|
| 5321 | # Source tree |
---|
| 5322 | echo "$srcdir/$f" |
---|
| 5323 | else |
---|
| 5324 | # /dev/null tree |
---|
| 5325 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 5326 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 5327 | { (exit 1); exit 1; }; } |
---|
| 5328 | fi;; |
---|
| 5329 | esac |
---|
| 5330 | done` || { (exit 1); exit 1; } |
---|
| 5331 | _ACEOF |
---|
| 5332 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5333 | sed "$ac_vpsub |
---|
| 5334 | $extrasub |
---|
| 5335 | _ACEOF |
---|
| 5336 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5337 | :t |
---|
| 5338 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 5339 | s,@configure_input@,$configure_input,;t t |
---|
| 5340 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 5341 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 5342 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 5343 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 5344 | s,@builddir@,$ac_builddir,;t t |
---|
| 5345 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 5346 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 5347 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 5348 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 5349 | rm -f $tmp/stdin |
---|
| 5350 | if test x"$ac_file" != x-; then |
---|
| 5351 | mv $tmp/out $ac_file |
---|
| 5352 | else |
---|
| 5353 | cat $tmp/out |
---|
| 5354 | rm -f $tmp/out |
---|
| 5355 | fi |
---|
| 5356 | |
---|
| 5357 | done |
---|
| 5358 | _ACEOF |
---|
| 5359 | |
---|
| 5360 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5361 | |
---|
| 5362 | { (exit 0); exit 0; } |
---|
| 5363 | _ACEOF |
---|
| 5364 | chmod +x $CONFIG_STATUS |
---|
| 5365 | ac_clean_files=$ac_clean_files_save |
---|
| 5366 | |
---|
| 5367 | |
---|
| 5368 | # configure is writing to config.log, and then calls config.status. |
---|
| 5369 | # config.status does its own redirection, appending to config.log. |
---|
| 5370 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 5371 | # by configure, so config.status won't be able to write to it; its |
---|
| 5372 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 5373 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 5374 | # appended to by config.status. When coming back to configure, we |
---|
| 5375 | # need to make the FD available again. |
---|
| 5376 | if test "$no_create" != yes; then |
---|
| 5377 | ac_cs_success=: |
---|
| 5378 | ac_config_status_args= |
---|
| 5379 | test "$silent" = yes && |
---|
| 5380 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 5381 | exec 5>/dev/null |
---|
| 5382 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 5383 | exec 5>>config.log |
---|
| 5384 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 5385 | # would make configure fail if this is the last instruction. |
---|
| 5386 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 5387 | fi |
---|
| 5388 | |
---|