[204] | 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="src/RpLibraryTclInterface.cc" |
---|
[225] | 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os CYGPATH TCL_INCLUDES TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIBS TCL_DEFS TCL_SHLIB_LD_LIBS TCL_EXTRA_CFLAGS TCL_LD_FLAGS TCL_STUB_LIB_FILE TCL_LIB_SPEC TCL_BUILD_LIB_SPEC TCL_STUB_LIB_SPEC TCL_BUILD_STUB_LIB_SPEC BLT_SRC_DIR CLEANFILES CC CFLAGS ac_ct_CC CFLAGS_DEBUG CFLAGS_OPTIMIZE STLIB_LD SHLIB_LD SHLIB_CFLAGS SHLIB_LDFLAGS TCL_DBGX CFLAGS_DEFAULT LDFLAGS_DEFAULT MAKE_LIB MAKE_SHARED_LIB MAKE_STATIC_LIB Rappture_LIB_FILE SHLIB_LD_LIBS TCLSH_PROG PACKAGE VERSION PATCHLEVEL EXACT_VERSION NODOT_VERSION LIBOBJS LTLIBOBJS' |
---|
[204] | 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_CXX_set=${CXX+set} |
---|
| 717 | ac_env_CXX_value=$CXX |
---|
| 718 | ac_cv_env_CXX_set=${CXX+set} |
---|
| 719 | ac_cv_env_CXX_value=$CXX |
---|
| 720 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 721 | ac_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 722 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} |
---|
| 723 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS |
---|
| 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_CC_set=${CC+set} |
---|
| 733 | ac_env_CC_value=$CC |
---|
| 734 | ac_cv_env_CC_set=${CC+set} |
---|
| 735 | ac_cv_env_CC_value=$CC |
---|
| 736 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 737 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 738 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 739 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 740 | |
---|
| 741 | # |
---|
| 742 | # Report the --help message. |
---|
| 743 | # |
---|
| 744 | if test "$ac_init_help" = "long"; then |
---|
| 745 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 746 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 747 | cat <<_ACEOF |
---|
| 748 | \`configure' configures this package to adapt to many kinds of systems. |
---|
| 749 | |
---|
| 750 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 751 | |
---|
| 752 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 753 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 754 | |
---|
| 755 | Defaults for the options are specified in brackets. |
---|
| 756 | |
---|
| 757 | Configuration: |
---|
| 758 | -h, --help display this help and exit |
---|
| 759 | --help=short display options specific to this package |
---|
| 760 | --help=recursive display the short help of all the included packages |
---|
| 761 | -V, --version display version information and exit |
---|
| 762 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 763 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 764 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 765 | -n, --no-create do not create output files |
---|
| 766 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 767 | |
---|
| 768 | _ACEOF |
---|
| 769 | |
---|
| 770 | cat <<_ACEOF |
---|
| 771 | Installation directories: |
---|
| 772 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 773 | [$ac_default_prefix] |
---|
| 774 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 775 | [PREFIX] |
---|
| 776 | |
---|
| 777 | By default, \`make install' will install all the files in |
---|
| 778 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 779 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 780 | for instance \`--prefix=\$HOME'. |
---|
| 781 | |
---|
| 782 | For better control, use the options below. |
---|
| 783 | |
---|
| 784 | Fine tuning of the installation directories: |
---|
| 785 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 786 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 787 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 788 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 789 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 790 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 791 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 792 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 793 | --includedir=DIR C header files [PREFIX/include] |
---|
| 794 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 795 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 796 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 797 | _ACEOF |
---|
| 798 | |
---|
| 799 | cat <<\_ACEOF |
---|
| 800 | |
---|
| 801 | System types: |
---|
| 802 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 803 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 804 | _ACEOF |
---|
| 805 | fi |
---|
| 806 | |
---|
| 807 | if test -n "$ac_init_help"; then |
---|
| 808 | |
---|
| 809 | cat <<\_ACEOF |
---|
| 810 | |
---|
| 811 | Optional Features: |
---|
| 812 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 813 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 814 | --enable-threads build with threads |
---|
| 815 | --enable-shared build and link with shared libraries --enable-shared |
---|
| 816 | --enable-symbols build with debugging symbols --disable-symbols |
---|
| 817 | |
---|
| 818 | Optional Packages: |
---|
| 819 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 820 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 821 | --with-tclinclude directory containing the public Tcl header files. |
---|
| 822 | --with-tcl directory containing tcl configuration (tclConfig.sh) |
---|
| 823 | |
---|
| 824 | Some influential environment variables: |
---|
| 825 | CXX C++ compiler command |
---|
| 826 | CXXFLAGS C++ compiler flags |
---|
| 827 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 828 | nonstandard directory <lib dir> |
---|
| 829 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 830 | headers in a nonstandard directory <include dir> |
---|
| 831 | CC C compiler command |
---|
| 832 | CFLAGS C compiler flags |
---|
| 833 | |
---|
| 834 | Use these variables to override the choices made by `configure' or to help |
---|
| 835 | it to find libraries and programs with nonstandard names/locations. |
---|
| 836 | |
---|
| 837 | _ACEOF |
---|
| 838 | fi |
---|
| 839 | |
---|
| 840 | if test "$ac_init_help" = "recursive"; then |
---|
| 841 | # If there are subdirs, report their specific --help. |
---|
| 842 | ac_popdir=`pwd` |
---|
| 843 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 844 | test -d $ac_dir || continue |
---|
| 845 | ac_builddir=. |
---|
| 846 | |
---|
| 847 | if test "$ac_dir" != .; then |
---|
| 848 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 849 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 850 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 851 | else |
---|
| 852 | ac_dir_suffix= ac_top_builddir= |
---|
| 853 | fi |
---|
| 854 | |
---|
| 855 | case $srcdir in |
---|
| 856 | .) # No --srcdir option. We are building in place. |
---|
| 857 | ac_srcdir=. |
---|
| 858 | if test -z "$ac_top_builddir"; then |
---|
| 859 | ac_top_srcdir=. |
---|
| 860 | else |
---|
| 861 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 862 | fi ;; |
---|
| 863 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 864 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 865 | ac_top_srcdir=$srcdir ;; |
---|
| 866 | *) # Relative path. |
---|
| 867 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 868 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 869 | esac |
---|
| 870 | |
---|
| 871 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 872 | # the directories may not exist. |
---|
| 873 | case `pwd` in |
---|
| 874 | .) ac_abs_builddir="$ac_dir";; |
---|
| 875 | *) |
---|
| 876 | case "$ac_dir" in |
---|
| 877 | .) ac_abs_builddir=`pwd`;; |
---|
| 878 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 879 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 880 | esac;; |
---|
| 881 | esac |
---|
| 882 | case $ac_abs_builddir in |
---|
| 883 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 884 | *) |
---|
| 885 | case ${ac_top_builddir}. in |
---|
| 886 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 887 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 888 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 889 | esac;; |
---|
| 890 | esac |
---|
| 891 | case $ac_abs_builddir in |
---|
| 892 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 893 | *) |
---|
| 894 | case $ac_srcdir in |
---|
| 895 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 896 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 897 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 898 | esac;; |
---|
| 899 | esac |
---|
| 900 | case $ac_abs_builddir in |
---|
| 901 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 902 | *) |
---|
| 903 | case $ac_top_srcdir in |
---|
| 904 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 905 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 906 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 907 | esac;; |
---|
| 908 | esac |
---|
| 909 | |
---|
| 910 | cd $ac_dir |
---|
| 911 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 912 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 913 | echo |
---|
| 914 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 915 | elif test -f $ac_srcdir/configure; then |
---|
| 916 | echo |
---|
| 917 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 918 | elif test -f $ac_srcdir/configure.ac || |
---|
| 919 | test -f $ac_srcdir/configure.in; then |
---|
| 920 | echo |
---|
| 921 | $ac_configure --help |
---|
| 922 | else |
---|
| 923 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 924 | fi |
---|
| 925 | cd "$ac_popdir" |
---|
| 926 | done |
---|
| 927 | fi |
---|
| 928 | |
---|
| 929 | test -n "$ac_init_help" && exit 0 |
---|
| 930 | if $ac_init_version; then |
---|
| 931 | cat <<\_ACEOF |
---|
| 932 | |
---|
| 933 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 934 | This configure script is free software; the Free Software Foundation |
---|
| 935 | gives unlimited permission to copy, distribute and modify it. |
---|
| 936 | _ACEOF |
---|
| 937 | exit 0 |
---|
| 938 | fi |
---|
| 939 | exec 5>config.log |
---|
| 940 | cat >&5 <<_ACEOF |
---|
| 941 | This file contains any messages produced by compilers while |
---|
| 942 | running configure, to aid debugging if configure makes a mistake. |
---|
| 943 | |
---|
| 944 | It was created by $as_me, which was |
---|
| 945 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 946 | |
---|
| 947 | $ $0 $@ |
---|
| 948 | |
---|
| 949 | _ACEOF |
---|
| 950 | { |
---|
| 951 | cat <<_ASUNAME |
---|
| 952 | ## --------- ## |
---|
| 953 | ## Platform. ## |
---|
| 954 | ## --------- ## |
---|
| 955 | |
---|
| 956 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 957 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 958 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 959 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 960 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 961 | |
---|
| 962 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 963 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 964 | |
---|
| 965 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 966 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 967 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 968 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 969 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 970 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 971 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 972 | |
---|
| 973 | _ASUNAME |
---|
| 974 | |
---|
| 975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 976 | for as_dir in $PATH |
---|
| 977 | do |
---|
| 978 | IFS=$as_save_IFS |
---|
| 979 | test -z "$as_dir" && as_dir=. |
---|
| 980 | echo "PATH: $as_dir" |
---|
| 981 | done |
---|
| 982 | |
---|
| 983 | } >&5 |
---|
| 984 | |
---|
| 985 | cat >&5 <<_ACEOF |
---|
| 986 | |
---|
| 987 | |
---|
| 988 | ## ----------- ## |
---|
| 989 | ## Core tests. ## |
---|
| 990 | ## ----------- ## |
---|
| 991 | |
---|
| 992 | _ACEOF |
---|
| 993 | |
---|
| 994 | |
---|
| 995 | # Keep a trace of the command line. |
---|
| 996 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 997 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 998 | # Also quote any args containing shell meta-characters. |
---|
| 999 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1000 | ac_configure_args= |
---|
| 1001 | ac_configure_args0= |
---|
| 1002 | ac_configure_args1= |
---|
| 1003 | ac_sep= |
---|
| 1004 | ac_must_keep_next=false |
---|
| 1005 | for ac_pass in 1 2 |
---|
| 1006 | do |
---|
| 1007 | for ac_arg |
---|
| 1008 | do |
---|
| 1009 | case $ac_arg in |
---|
| 1010 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1012 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1013 | continue ;; |
---|
| 1014 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1015 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1016 | esac |
---|
| 1017 | case $ac_pass in |
---|
| 1018 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1019 | 2) |
---|
| 1020 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1021 | if test $ac_must_keep_next = true; then |
---|
| 1022 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1023 | else |
---|
| 1024 | case $ac_arg in |
---|
| 1025 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1026 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1027 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1028 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1029 | case "$ac_configure_args0 " in |
---|
| 1030 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1031 | esac |
---|
| 1032 | ;; |
---|
| 1033 | -* ) ac_must_keep_next=true ;; |
---|
| 1034 | esac |
---|
| 1035 | fi |
---|
| 1036 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1037 | # Get rid of the leading space. |
---|
| 1038 | ac_sep=" " |
---|
| 1039 | ;; |
---|
| 1040 | esac |
---|
| 1041 | done |
---|
| 1042 | done |
---|
| 1043 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1044 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1045 | |
---|
| 1046 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1047 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1048 | # would cause problems or look ugly. |
---|
| 1049 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1050 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1051 | trap 'exit_status=$? |
---|
| 1052 | # Save into config.log some information that might help in debugging. |
---|
| 1053 | { |
---|
| 1054 | echo |
---|
| 1055 | |
---|
| 1056 | cat <<\_ASBOX |
---|
| 1057 | ## ---------------- ## |
---|
| 1058 | ## Cache variables. ## |
---|
| 1059 | ## ---------------- ## |
---|
| 1060 | _ASBOX |
---|
| 1061 | echo |
---|
| 1062 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1063 | { |
---|
| 1064 | (set) 2>&1 | |
---|
| 1065 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1066 | *ac_space=\ *) |
---|
| 1067 | sed -n \ |
---|
| 1068 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1069 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1070 | ;; |
---|
| 1071 | *) |
---|
| 1072 | sed -n \ |
---|
| 1073 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1074 | ;; |
---|
| 1075 | esac; |
---|
| 1076 | } |
---|
| 1077 | echo |
---|
| 1078 | |
---|
| 1079 | cat <<\_ASBOX |
---|
| 1080 | ## ----------------- ## |
---|
| 1081 | ## Output variables. ## |
---|
| 1082 | ## ----------------- ## |
---|
| 1083 | _ASBOX |
---|
| 1084 | echo |
---|
| 1085 | for ac_var in $ac_subst_vars |
---|
| 1086 | do |
---|
| 1087 | eval ac_val=$`echo $ac_var` |
---|
| 1088 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1089 | done | sort |
---|
| 1090 | echo |
---|
| 1091 | |
---|
| 1092 | if test -n "$ac_subst_files"; then |
---|
| 1093 | cat <<\_ASBOX |
---|
| 1094 | ## ------------- ## |
---|
| 1095 | ## Output files. ## |
---|
| 1096 | ## ------------- ## |
---|
| 1097 | _ASBOX |
---|
| 1098 | echo |
---|
| 1099 | for ac_var in $ac_subst_files |
---|
| 1100 | do |
---|
| 1101 | eval ac_val=$`echo $ac_var` |
---|
| 1102 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1103 | done | sort |
---|
| 1104 | echo |
---|
| 1105 | fi |
---|
| 1106 | |
---|
| 1107 | if test -s confdefs.h; then |
---|
| 1108 | cat <<\_ASBOX |
---|
| 1109 | ## ----------- ## |
---|
| 1110 | ## confdefs.h. ## |
---|
| 1111 | ## ----------- ## |
---|
| 1112 | _ASBOX |
---|
| 1113 | echo |
---|
| 1114 | sed "/^$/d" confdefs.h | sort |
---|
| 1115 | echo |
---|
| 1116 | fi |
---|
| 1117 | test "$ac_signal" != 0 && |
---|
| 1118 | echo "$as_me: caught signal $ac_signal" |
---|
| 1119 | echo "$as_me: exit $exit_status" |
---|
| 1120 | } >&5 |
---|
| 1121 | rm -f core *.core && |
---|
| 1122 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1123 | exit $exit_status |
---|
| 1124 | ' 0 |
---|
| 1125 | for ac_signal in 1 2 13 15; do |
---|
| 1126 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1127 | done |
---|
| 1128 | ac_signal=0 |
---|
| 1129 | |
---|
| 1130 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1131 | rm -rf conftest* confdefs.h |
---|
| 1132 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1133 | echo >confdefs.h |
---|
| 1134 | |
---|
| 1135 | # Predefined preprocessor variables. |
---|
| 1136 | |
---|
| 1137 | cat >>confdefs.h <<_ACEOF |
---|
| 1138 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1139 | _ACEOF |
---|
| 1140 | |
---|
| 1141 | |
---|
| 1142 | cat >>confdefs.h <<_ACEOF |
---|
| 1143 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1144 | _ACEOF |
---|
| 1145 | |
---|
| 1146 | |
---|
| 1147 | cat >>confdefs.h <<_ACEOF |
---|
| 1148 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1149 | _ACEOF |
---|
| 1150 | |
---|
| 1151 | |
---|
| 1152 | cat >>confdefs.h <<_ACEOF |
---|
| 1153 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1154 | _ACEOF |
---|
| 1155 | |
---|
| 1156 | |
---|
| 1157 | cat >>confdefs.h <<_ACEOF |
---|
| 1158 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1159 | _ACEOF |
---|
| 1160 | |
---|
| 1161 | |
---|
| 1162 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1163 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1164 | if test -z "$CONFIG_SITE"; then |
---|
| 1165 | if test "x$prefix" != xNONE; then |
---|
| 1166 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1167 | else |
---|
| 1168 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1169 | fi |
---|
| 1170 | fi |
---|
| 1171 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1172 | if test -r "$ac_site_file"; then |
---|
| 1173 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1174 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1175 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1176 | . "$ac_site_file" |
---|
| 1177 | fi |
---|
| 1178 | done |
---|
| 1179 | |
---|
| 1180 | if test -r "$cache_file"; then |
---|
| 1181 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1182 | # files actually), so we avoid doing that. |
---|
| 1183 | if test -f "$cache_file"; then |
---|
| 1184 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1185 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1186 | case $cache_file in |
---|
| 1187 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1188 | *) . ./$cache_file;; |
---|
| 1189 | esac |
---|
| 1190 | fi |
---|
| 1191 | else |
---|
| 1192 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1193 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1194 | >$cache_file |
---|
| 1195 | fi |
---|
| 1196 | |
---|
| 1197 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1198 | # value. |
---|
| 1199 | ac_cache_corrupted=false |
---|
| 1200 | for ac_var in `(set) 2>&1 | |
---|
| 1201 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1202 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1203 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1204 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1205 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1206 | case $ac_old_set,$ac_new_set in |
---|
| 1207 | set,) |
---|
| 1208 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1209 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1210 | ac_cache_corrupted=: ;; |
---|
| 1211 | ,set) |
---|
| 1212 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1213 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1214 | ac_cache_corrupted=: ;; |
---|
| 1215 | ,);; |
---|
| 1216 | *) |
---|
| 1217 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1218 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1219 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1220 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1221 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1222 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1223 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1224 | ac_cache_corrupted=: |
---|
| 1225 | fi;; |
---|
| 1226 | esac |
---|
| 1227 | # Pass precious variables to config.status. |
---|
| 1228 | if test "$ac_new_set" = set; then |
---|
| 1229 | case $ac_new_val in |
---|
| 1230 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1231 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1232 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1233 | esac |
---|
| 1234 | case " $ac_configure_args " in |
---|
| 1235 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1236 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1237 | esac |
---|
| 1238 | fi |
---|
| 1239 | done |
---|
| 1240 | if $ac_cache_corrupted; then |
---|
| 1241 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1242 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1243 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1244 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1245 | { (exit 1); exit 1; }; } |
---|
| 1246 | fi |
---|
| 1247 | |
---|
| 1248 | ac_ext=c |
---|
| 1249 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1253 | |
---|
| 1254 | |
---|
| 1255 | |
---|
| 1256 | |
---|
| 1257 | |
---|
| 1258 | |
---|
| 1259 | |
---|
| 1260 | |
---|
| 1261 | |
---|
| 1262 | |
---|
| 1263 | |
---|
| 1264 | |
---|
| 1265 | |
---|
| 1266 | |
---|
| 1267 | |
---|
| 1268 | |
---|
| 1269 | |
---|
| 1270 | |
---|
| 1271 | |
---|
| 1272 | ac_aux_dir= |
---|
| 1273 | for ac_dir in cf $srcdir/cf; do |
---|
| 1274 | if test -f $ac_dir/install-sh; then |
---|
| 1275 | ac_aux_dir=$ac_dir |
---|
| 1276 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1277 | break |
---|
| 1278 | elif test -f $ac_dir/install.sh; then |
---|
| 1279 | ac_aux_dir=$ac_dir |
---|
| 1280 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1281 | break |
---|
| 1282 | elif test -f $ac_dir/shtool; then |
---|
| 1283 | ac_aux_dir=$ac_dir |
---|
| 1284 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1285 | break |
---|
| 1286 | fi |
---|
| 1287 | done |
---|
| 1288 | if test -z "$ac_aux_dir"; then |
---|
| 1289 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cf $srcdir/cf" >&5 |
---|
| 1290 | echo "$as_me: error: cannot find install-sh or install.sh in cf $srcdir/cf" >&2;} |
---|
| 1291 | { (exit 1); exit 1; }; } |
---|
| 1292 | fi |
---|
| 1293 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1294 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1295 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1296 | |
---|
| 1297 | |
---|
| 1298 | #-------------------------------------------------------------------- |
---|
| 1299 | # __CHANGE__ |
---|
| 1300 | # Set your package name and version numbers here. The NODOT_VERSION is |
---|
| 1301 | # required for constructing the library name on systems that don't like |
---|
| 1302 | # dots in library names (Windows). The VERSION variable is used on the |
---|
| 1303 | # other systems. |
---|
| 1304 | #-------------------------------------------------------------------- |
---|
| 1305 | |
---|
[207] | 1306 | PACKAGE=Rappture |
---|
[204] | 1307 | |
---|
| 1308 | MAJOR_VERSION=1 |
---|
[207] | 1309 | MINOR_VERSION=1 |
---|
[204] | 1310 | VERSION=${MAJOR_VERSION}.${MINOR_VERSION} |
---|
| 1311 | |
---|
| 1312 | #-------------------------------------------------------------------- |
---|
| 1313 | # Extra build options |
---|
| 1314 | #-------------------------------------------------------------------- |
---|
| 1315 | #AC_ARG_WITH(blt, [ --with-blt=DIR Find bltInt.h in DIR], |
---|
| 1316 | # blt_source_dir=$withval) |
---|
| 1317 | |
---|
| 1318 | #-------------------------------------------------------------------- |
---|
| 1319 | # We put this here so that you can compile with -DVERSION="1.2" to |
---|
| 1320 | # encode the package version directly into the source files. |
---|
| 1321 | #-------------------------------------------------------------------- |
---|
| 1322 | |
---|
| 1323 | eval cat >>confdefs.h <<_ACEOF |
---|
| 1324 | #define VERSION "${VERSION}" |
---|
| 1325 | _ACEOF |
---|
| 1326 | |
---|
| 1327 | |
---|
| 1328 | #-------------------------------------------------------------------- |
---|
| 1329 | # Check whether --enable-gcc or --disable-gcc was given. Do this |
---|
| 1330 | # before AC_CYGWIN is called so the compiler can |
---|
| 1331 | # be fully tested by built-in autoconf tools. |
---|
| 1332 | # This macro also calls AC_PROG_CC to set the compiler if --enable-gcc |
---|
| 1333 | # was not used. |
---|
| 1334 | #-------------------------------------------------------------------- |
---|
| 1335 | |
---|
| 1336 | #SC_ENABLE_GCC |
---|
| 1337 | ac_ext=cc |
---|
| 1338 | ac_cpp='$CXXCPP $CPPFLAGS' |
---|
| 1339 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1340 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1341 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
---|
| 1342 | if test -n "$ac_tool_prefix"; then |
---|
| 1343 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1344 | do |
---|
| 1345 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1346 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1347 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1348 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1349 | if test "${ac_cv_prog_CXX+set}" = set; then |
---|
| 1350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1351 | else |
---|
| 1352 | if test -n "$CXX"; then |
---|
| 1353 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
---|
| 1354 | else |
---|
| 1355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1356 | for as_dir in $PATH |
---|
| 1357 | do |
---|
| 1358 | IFS=$as_save_IFS |
---|
| 1359 | test -z "$as_dir" && as_dir=. |
---|
| 1360 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1361 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1362 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
---|
| 1363 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1364 | break 2 |
---|
| 1365 | fi |
---|
| 1366 | done |
---|
| 1367 | done |
---|
| 1368 | |
---|
| 1369 | fi |
---|
| 1370 | fi |
---|
| 1371 | CXX=$ac_cv_prog_CXX |
---|
| 1372 | if test -n "$CXX"; then |
---|
| 1373 | echo "$as_me:$LINENO: result: $CXX" >&5 |
---|
| 1374 | echo "${ECHO_T}$CXX" >&6 |
---|
| 1375 | else |
---|
| 1376 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1377 | echo "${ECHO_T}no" >&6 |
---|
| 1378 | fi |
---|
| 1379 | |
---|
| 1380 | test -n "$CXX" && break |
---|
| 1381 | done |
---|
| 1382 | fi |
---|
| 1383 | if test -z "$CXX"; then |
---|
| 1384 | ac_ct_CXX=$CXX |
---|
| 1385 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
---|
| 1386 | do |
---|
| 1387 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1388 | set dummy $ac_prog; ac_word=$2 |
---|
| 1389 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1390 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1391 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
---|
| 1392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1393 | else |
---|
| 1394 | if test -n "$ac_ct_CXX"; then |
---|
| 1395 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
---|
| 1396 | else |
---|
| 1397 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1398 | for as_dir in $PATH |
---|
| 1399 | do |
---|
| 1400 | IFS=$as_save_IFS |
---|
| 1401 | test -z "$as_dir" && as_dir=. |
---|
| 1402 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1403 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1404 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
---|
| 1405 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1406 | break 2 |
---|
| 1407 | fi |
---|
| 1408 | done |
---|
| 1409 | done |
---|
| 1410 | |
---|
| 1411 | fi |
---|
| 1412 | fi |
---|
| 1413 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
---|
| 1414 | if test -n "$ac_ct_CXX"; then |
---|
| 1415 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
---|
| 1416 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
---|
| 1417 | else |
---|
| 1418 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1419 | echo "${ECHO_T}no" >&6 |
---|
| 1420 | fi |
---|
| 1421 | |
---|
| 1422 | test -n "$ac_ct_CXX" && break |
---|
| 1423 | done |
---|
| 1424 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
---|
| 1425 | |
---|
| 1426 | CXX=$ac_ct_CXX |
---|
| 1427 | fi |
---|
| 1428 | |
---|
| 1429 | |
---|
| 1430 | # Provide some information about the compiler. |
---|
| 1431 | echo "$as_me:$LINENO:" \ |
---|
| 1432 | "checking for C++ compiler version" >&5 |
---|
| 1433 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1434 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1435 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1436 | ac_status=$? |
---|
| 1437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1438 | (exit $ac_status); } |
---|
| 1439 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1440 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1441 | ac_status=$? |
---|
| 1442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1443 | (exit $ac_status); } |
---|
| 1444 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1445 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1446 | ac_status=$? |
---|
| 1447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1448 | (exit $ac_status); } |
---|
| 1449 | |
---|
| 1450 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1451 | /* confdefs.h. */ |
---|
| 1452 | _ACEOF |
---|
| 1453 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1454 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1455 | /* end confdefs.h. */ |
---|
| 1456 | |
---|
| 1457 | int |
---|
| 1458 | main () |
---|
| 1459 | { |
---|
| 1460 | |
---|
| 1461 | ; |
---|
| 1462 | return 0; |
---|
| 1463 | } |
---|
| 1464 | _ACEOF |
---|
| 1465 | ac_clean_files_save=$ac_clean_files |
---|
| 1466 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1467 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1468 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1469 | # of exeext. |
---|
| 1470 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 |
---|
| 1471 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6 |
---|
| 1472 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1473 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1474 | (eval $ac_link_default) 2>&5 |
---|
| 1475 | ac_status=$? |
---|
| 1476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1477 | (exit $ac_status); }; then |
---|
| 1478 | # Find the output, starting from the most likely. This scheme is |
---|
| 1479 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1480 | # resort. |
---|
| 1481 | |
---|
| 1482 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1483 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1484 | ac_cv_exeext= |
---|
| 1485 | # b.out is created by i960 compilers. |
---|
| 1486 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1487 | do |
---|
| 1488 | test -f "$ac_file" || continue |
---|
| 1489 | case $ac_file in |
---|
| 1490 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 1491 | ;; |
---|
| 1492 | conftest.$ac_ext ) |
---|
| 1493 | # This is the source file. |
---|
| 1494 | ;; |
---|
| 1495 | [ab].out ) |
---|
| 1496 | # We found the default executable, but exeext='' is most |
---|
| 1497 | # certainly right. |
---|
| 1498 | break;; |
---|
| 1499 | *.* ) |
---|
| 1500 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1501 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 1502 | # but it would be cool to find out if it's true. Does anybody |
---|
| 1503 | # maintain Libtool? --akim. |
---|
| 1504 | export ac_cv_exeext |
---|
| 1505 | break;; |
---|
| 1506 | * ) |
---|
| 1507 | break;; |
---|
| 1508 | esac |
---|
| 1509 | done |
---|
| 1510 | else |
---|
| 1511 | echo "$as_me: failed program was:" >&5 |
---|
| 1512 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1513 | |
---|
| 1514 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables |
---|
| 1515 | See \`config.log' for more details." >&5 |
---|
| 1516 | echo "$as_me: error: C++ compiler cannot create executables |
---|
| 1517 | See \`config.log' for more details." >&2;} |
---|
| 1518 | { (exit 77); exit 77; }; } |
---|
| 1519 | fi |
---|
| 1520 | |
---|
| 1521 | ac_exeext=$ac_cv_exeext |
---|
| 1522 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 1523 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 1524 | |
---|
| 1525 | # Check the compiler produces executables we can run. If not, either |
---|
| 1526 | # the compiler is broken, or we cross compile. |
---|
| 1527 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
---|
| 1528 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
---|
| 1529 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 1530 | # If not cross compiling, check that we can run a simple program. |
---|
| 1531 | if test "$cross_compiling" != yes; then |
---|
| 1532 | if { ac_try='./$ac_file' |
---|
| 1533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1534 | (eval $ac_try) 2>&5 |
---|
| 1535 | ac_status=$? |
---|
| 1536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1537 | (exit $ac_status); }; }; then |
---|
| 1538 | cross_compiling=no |
---|
| 1539 | else |
---|
| 1540 | if test "$cross_compiling" = maybe; then |
---|
| 1541 | cross_compiling=yes |
---|
| 1542 | else |
---|
| 1543 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
---|
| 1544 | If you meant to cross compile, use \`--host'. |
---|
| 1545 | See \`config.log' for more details." >&5 |
---|
| 1546 | echo "$as_me: error: cannot run C++ compiled programs. |
---|
| 1547 | If you meant to cross compile, use \`--host'. |
---|
| 1548 | See \`config.log' for more details." >&2;} |
---|
| 1549 | { (exit 1); exit 1; }; } |
---|
| 1550 | fi |
---|
| 1551 | fi |
---|
| 1552 | fi |
---|
| 1553 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1554 | echo "${ECHO_T}yes" >&6 |
---|
| 1555 | |
---|
| 1556 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 1557 | ac_clean_files=$ac_clean_files_save |
---|
| 1558 | # Check the compiler produces executables we can run. If not, either |
---|
| 1559 | # the compiler is broken, or we cross compile. |
---|
| 1560 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 1561 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 1562 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 1563 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 1564 | |
---|
| 1565 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 1566 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 1567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 1568 | (eval $ac_link) 2>&5 |
---|
| 1569 | ac_status=$? |
---|
| 1570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1571 | (exit $ac_status); }; then |
---|
| 1572 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 1573 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 1574 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 1575 | # `rm'. |
---|
| 1576 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 1577 | test -f "$ac_file" || continue |
---|
| 1578 | case $ac_file in |
---|
| 1579 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 1580 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1581 | export ac_cv_exeext |
---|
| 1582 | break;; |
---|
| 1583 | * ) break;; |
---|
| 1584 | esac |
---|
| 1585 | done |
---|
| 1586 | else |
---|
| 1587 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1588 | See \`config.log' for more details." >&5 |
---|
| 1589 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 1590 | See \`config.log' for more details." >&2;} |
---|
| 1591 | { (exit 1); exit 1; }; } |
---|
| 1592 | fi |
---|
| 1593 | |
---|
| 1594 | rm -f conftest$ac_cv_exeext |
---|
| 1595 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 1596 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 1597 | |
---|
| 1598 | rm -f conftest.$ac_ext |
---|
| 1599 | EXEEXT=$ac_cv_exeext |
---|
| 1600 | ac_exeext=$EXEEXT |
---|
| 1601 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 1602 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 1603 | if test "${ac_cv_objext+set}" = set; then |
---|
| 1604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1605 | else |
---|
| 1606 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1607 | /* confdefs.h. */ |
---|
| 1608 | _ACEOF |
---|
| 1609 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1610 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1611 | /* end confdefs.h. */ |
---|
| 1612 | |
---|
| 1613 | int |
---|
| 1614 | main () |
---|
| 1615 | { |
---|
| 1616 | |
---|
| 1617 | ; |
---|
| 1618 | return 0; |
---|
| 1619 | } |
---|
| 1620 | _ACEOF |
---|
| 1621 | rm -f conftest.o conftest.obj |
---|
| 1622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1623 | (eval $ac_compile) 2>&5 |
---|
| 1624 | ac_status=$? |
---|
| 1625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1626 | (exit $ac_status); }; then |
---|
| 1627 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 1628 | case $ac_file in |
---|
| 1629 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 1630 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 1631 | break;; |
---|
| 1632 | esac |
---|
| 1633 | done |
---|
| 1634 | else |
---|
| 1635 | echo "$as_me: failed program was:" >&5 |
---|
| 1636 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1637 | |
---|
| 1638 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 1639 | See \`config.log' for more details." >&5 |
---|
| 1640 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 1641 | See \`config.log' for more details." >&2;} |
---|
| 1642 | { (exit 1); exit 1; }; } |
---|
| 1643 | fi |
---|
| 1644 | |
---|
| 1645 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 1646 | fi |
---|
| 1647 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 1648 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 1649 | OBJEXT=$ac_cv_objext |
---|
| 1650 | ac_objext=$OBJEXT |
---|
| 1651 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
---|
| 1652 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
---|
| 1653 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
---|
| 1654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1655 | else |
---|
| 1656 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1657 | /* confdefs.h. */ |
---|
| 1658 | _ACEOF |
---|
| 1659 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1660 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1661 | /* end confdefs.h. */ |
---|
| 1662 | |
---|
| 1663 | int |
---|
| 1664 | main () |
---|
| 1665 | { |
---|
| 1666 | #ifndef __GNUC__ |
---|
| 1667 | choke me |
---|
| 1668 | #endif |
---|
| 1669 | |
---|
| 1670 | ; |
---|
| 1671 | return 0; |
---|
| 1672 | } |
---|
| 1673 | _ACEOF |
---|
| 1674 | rm -f conftest.$ac_objext |
---|
| 1675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1676 | (eval $ac_compile) 2>conftest.er1 |
---|
| 1677 | ac_status=$? |
---|
| 1678 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1679 | rm -f conftest.er1 |
---|
| 1680 | cat conftest.err >&5 |
---|
| 1681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1682 | (exit $ac_status); } && |
---|
| 1683 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
| 1684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1685 | (eval $ac_try) 2>&5 |
---|
| 1686 | ac_status=$? |
---|
| 1687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1688 | (exit $ac_status); }; } && |
---|
| 1689 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1691 | (eval $ac_try) 2>&5 |
---|
| 1692 | ac_status=$? |
---|
| 1693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1694 | (exit $ac_status); }; }; then |
---|
| 1695 | ac_compiler_gnu=yes |
---|
| 1696 | else |
---|
| 1697 | echo "$as_me: failed program was:" >&5 |
---|
| 1698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1699 | |
---|
| 1700 | ac_compiler_gnu=no |
---|
| 1701 | fi |
---|
| 1702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1703 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
---|
| 1704 | |
---|
| 1705 | fi |
---|
| 1706 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
---|
| 1707 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
---|
| 1708 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 1709 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
---|
| 1710 | ac_save_CXXFLAGS=$CXXFLAGS |
---|
| 1711 | CXXFLAGS="-g" |
---|
| 1712 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
---|
| 1713 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
---|
| 1714 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
---|
| 1715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1716 | else |
---|
| 1717 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1718 | /* confdefs.h. */ |
---|
| 1719 | _ACEOF |
---|
| 1720 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1721 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1722 | /* end confdefs.h. */ |
---|
| 1723 | |
---|
| 1724 | int |
---|
| 1725 | main () |
---|
| 1726 | { |
---|
| 1727 | |
---|
| 1728 | ; |
---|
| 1729 | return 0; |
---|
| 1730 | } |
---|
| 1731 | _ACEOF |
---|
| 1732 | rm -f conftest.$ac_objext |
---|
| 1733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1734 | (eval $ac_compile) 2>conftest.er1 |
---|
| 1735 | ac_status=$? |
---|
| 1736 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1737 | rm -f conftest.er1 |
---|
| 1738 | cat conftest.err >&5 |
---|
| 1739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1740 | (exit $ac_status); } && |
---|
| 1741 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
| 1742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1743 | (eval $ac_try) 2>&5 |
---|
| 1744 | ac_status=$? |
---|
| 1745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1746 | (exit $ac_status); }; } && |
---|
| 1747 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1749 | (eval $ac_try) 2>&5 |
---|
| 1750 | ac_status=$? |
---|
| 1751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1752 | (exit $ac_status); }; }; then |
---|
| 1753 | ac_cv_prog_cxx_g=yes |
---|
| 1754 | else |
---|
| 1755 | echo "$as_me: failed program was:" >&5 |
---|
| 1756 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1757 | |
---|
| 1758 | ac_cv_prog_cxx_g=no |
---|
| 1759 | fi |
---|
| 1760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1761 | fi |
---|
| 1762 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
---|
| 1763 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
---|
| 1764 | if test "$ac_test_CXXFLAGS" = set; then |
---|
| 1765 | CXXFLAGS=$ac_save_CXXFLAGS |
---|
| 1766 | elif test $ac_cv_prog_cxx_g = yes; then |
---|
| 1767 | if test "$GXX" = yes; then |
---|
| 1768 | CXXFLAGS="-g -O2" |
---|
| 1769 | else |
---|
| 1770 | CXXFLAGS="-g" |
---|
| 1771 | fi |
---|
| 1772 | else |
---|
| 1773 | if test "$GXX" = yes; then |
---|
| 1774 | CXXFLAGS="-O2" |
---|
| 1775 | else |
---|
| 1776 | CXXFLAGS= |
---|
| 1777 | fi |
---|
| 1778 | fi |
---|
| 1779 | for ac_declaration in \ |
---|
| 1780 | '' \ |
---|
| 1781 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 1782 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 1783 | 'extern "C" void exit (int) throw ();' \ |
---|
| 1784 | 'extern "C" void exit (int);' \ |
---|
| 1785 | 'void exit (int);' |
---|
| 1786 | do |
---|
| 1787 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1788 | /* confdefs.h. */ |
---|
| 1789 | _ACEOF |
---|
| 1790 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1791 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1792 | /* end confdefs.h. */ |
---|
| 1793 | $ac_declaration |
---|
| 1794 | #include <stdlib.h> |
---|
| 1795 | int |
---|
| 1796 | main () |
---|
| 1797 | { |
---|
| 1798 | exit (42); |
---|
| 1799 | ; |
---|
| 1800 | return 0; |
---|
| 1801 | } |
---|
| 1802 | _ACEOF |
---|
| 1803 | rm -f conftest.$ac_objext |
---|
| 1804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1805 | (eval $ac_compile) 2>conftest.er1 |
---|
| 1806 | ac_status=$? |
---|
| 1807 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1808 | rm -f conftest.er1 |
---|
| 1809 | cat conftest.err >&5 |
---|
| 1810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1811 | (exit $ac_status); } && |
---|
| 1812 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
| 1813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1814 | (eval $ac_try) 2>&5 |
---|
| 1815 | ac_status=$? |
---|
| 1816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1817 | (exit $ac_status); }; } && |
---|
| 1818 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1820 | (eval $ac_try) 2>&5 |
---|
| 1821 | ac_status=$? |
---|
| 1822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1823 | (exit $ac_status); }; }; then |
---|
| 1824 | : |
---|
| 1825 | else |
---|
| 1826 | echo "$as_me: failed program was:" >&5 |
---|
| 1827 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1828 | |
---|
| 1829 | continue |
---|
| 1830 | fi |
---|
| 1831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1832 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1833 | /* confdefs.h. */ |
---|
| 1834 | _ACEOF |
---|
| 1835 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1836 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1837 | /* end confdefs.h. */ |
---|
| 1838 | $ac_declaration |
---|
| 1839 | int |
---|
| 1840 | main () |
---|
| 1841 | { |
---|
| 1842 | exit (42); |
---|
| 1843 | ; |
---|
| 1844 | return 0; |
---|
| 1845 | } |
---|
| 1846 | _ACEOF |
---|
| 1847 | rm -f conftest.$ac_objext |
---|
| 1848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 1849 | (eval $ac_compile) 2>conftest.er1 |
---|
| 1850 | ac_status=$? |
---|
| 1851 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 1852 | rm -f conftest.er1 |
---|
| 1853 | cat conftest.err >&5 |
---|
| 1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1855 | (exit $ac_status); } && |
---|
| 1856 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
---|
| 1857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1858 | (eval $ac_try) 2>&5 |
---|
| 1859 | ac_status=$? |
---|
| 1860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1861 | (exit $ac_status); }; } && |
---|
| 1862 | { ac_try='test -s conftest.$ac_objext' |
---|
| 1863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 1864 | (eval $ac_try) 2>&5 |
---|
| 1865 | ac_status=$? |
---|
| 1866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1867 | (exit $ac_status); }; }; then |
---|
| 1868 | break |
---|
| 1869 | else |
---|
| 1870 | echo "$as_me: failed program was:" >&5 |
---|
| 1871 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 1872 | |
---|
| 1873 | fi |
---|
| 1874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 1875 | done |
---|
| 1876 | rm -f conftest* |
---|
| 1877 | if test -n "$ac_declaration"; then |
---|
| 1878 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 1879 | echo $ac_declaration >>confdefs.h |
---|
| 1880 | echo '#endif' >>confdefs.h |
---|
| 1881 | fi |
---|
| 1882 | |
---|
| 1883 | ac_ext=c |
---|
| 1884 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1888 | |
---|
| 1889 | # Find a good install program. We prefer a C program (faster), |
---|
| 1890 | # so one script is as good as another. But avoid the broken or |
---|
| 1891 | # incompatible versions: |
---|
| 1892 | # SysV /etc/install, /usr/sbin/install |
---|
| 1893 | # SunOS /usr/etc/install |
---|
| 1894 | # IRIX /sbin/install |
---|
| 1895 | # AIX /bin/install |
---|
| 1896 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1897 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1898 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1899 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1900 | # OS/2's system install, which has a completely different semantic |
---|
| 1901 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1902 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1903 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1904 | if test -z "$INSTALL"; then |
---|
| 1905 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1907 | else |
---|
| 1908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1909 | for as_dir in $PATH |
---|
| 1910 | do |
---|
| 1911 | IFS=$as_save_IFS |
---|
| 1912 | test -z "$as_dir" && as_dir=. |
---|
| 1913 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1914 | case $as_dir/ in |
---|
| 1915 | ./ | .// | /cC/* | \ |
---|
| 1916 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1917 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1918 | /usr/ucb/* ) ;; |
---|
| 1919 | *) |
---|
| 1920 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1921 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1922 | # by default. |
---|
| 1923 | for ac_prog in ginstall scoinst install; do |
---|
| 1924 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1925 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1926 | if test $ac_prog = install && |
---|
| 1927 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1928 | # AIX install. It has an incompatible calling convention. |
---|
| 1929 | : |
---|
| 1930 | elif test $ac_prog = install && |
---|
| 1931 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1932 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1933 | : |
---|
| 1934 | else |
---|
| 1935 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1936 | break 3 |
---|
| 1937 | fi |
---|
| 1938 | fi |
---|
| 1939 | done |
---|
| 1940 | done |
---|
| 1941 | ;; |
---|
| 1942 | esac |
---|
| 1943 | done |
---|
| 1944 | |
---|
| 1945 | |
---|
| 1946 | fi |
---|
| 1947 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1948 | INSTALL=$ac_cv_path_install |
---|
| 1949 | else |
---|
| 1950 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1951 | # path for INSTALL within a source directory, because that will |
---|
| 1952 | # break other packages using the cache if that directory is |
---|
| 1953 | # removed, or if the path is relative. |
---|
| 1954 | INSTALL=$ac_install_sh |
---|
| 1955 | fi |
---|
| 1956 | fi |
---|
| 1957 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1958 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1959 | |
---|
| 1960 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1961 | # It thinks the first close brace ends the variable substitution. |
---|
| 1962 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1963 | |
---|
| 1964 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1965 | |
---|
| 1966 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1967 | |
---|
| 1968 | |
---|
| 1969 | #-------------------------------------------------------------------- |
---|
| 1970 | # Checks to see if the make program sets the $MAKE variable. |
---|
| 1971 | #-------------------------------------------------------------------- |
---|
| 1972 | |
---|
| 1973 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 1974 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 1975 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 1976 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 1977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1978 | else |
---|
| 1979 | cat >conftest.make <<\_ACEOF |
---|
| 1980 | all: |
---|
| 1981 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 1982 | _ACEOF |
---|
| 1983 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 1984 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 1985 | if test -n "$ac_maketemp"; then |
---|
| 1986 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 1987 | else |
---|
| 1988 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 1989 | fi |
---|
| 1990 | rm -f conftest.make |
---|
| 1991 | fi |
---|
| 1992 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 1993 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 1994 | echo "${ECHO_T}yes" >&6 |
---|
| 1995 | SET_MAKE= |
---|
| 1996 | else |
---|
| 1997 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1998 | echo "${ECHO_T}no" >&6 |
---|
| 1999 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 2000 | fi |
---|
| 2001 | |
---|
| 2002 | |
---|
| 2003 | #-------------------------------------------------------------------- |
---|
| 2004 | # Find ranlib |
---|
| 2005 | #-------------------------------------------------------------------- |
---|
| 2006 | |
---|
| 2007 | if test -n "$ac_tool_prefix"; then |
---|
| 2008 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 2009 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 2010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2012 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2014 | else |
---|
| 2015 | if test -n "$RANLIB"; then |
---|
| 2016 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 2017 | else |
---|
| 2018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2019 | for as_dir in $PATH |
---|
| 2020 | do |
---|
| 2021 | IFS=$as_save_IFS |
---|
| 2022 | test -z "$as_dir" && as_dir=. |
---|
| 2023 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2024 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2025 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 2026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2027 | break 2 |
---|
| 2028 | fi |
---|
| 2029 | done |
---|
| 2030 | done |
---|
| 2031 | |
---|
| 2032 | fi |
---|
| 2033 | fi |
---|
| 2034 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 2035 | if test -n "$RANLIB"; then |
---|
| 2036 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 2037 | echo "${ECHO_T}$RANLIB" >&6 |
---|
| 2038 | else |
---|
| 2039 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2040 | echo "${ECHO_T}no" >&6 |
---|
| 2041 | fi |
---|
| 2042 | |
---|
| 2043 | fi |
---|
| 2044 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 2045 | ac_ct_RANLIB=$RANLIB |
---|
| 2046 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 2047 | set dummy ranlib; ac_word=$2 |
---|
| 2048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2050 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2052 | else |
---|
| 2053 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2054 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 2055 | else |
---|
| 2056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2057 | for as_dir in $PATH |
---|
| 2058 | do |
---|
| 2059 | IFS=$as_save_IFS |
---|
| 2060 | test -z "$as_dir" && as_dir=. |
---|
| 2061 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2063 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 2064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2065 | break 2 |
---|
| 2066 | fi |
---|
| 2067 | done |
---|
| 2068 | done |
---|
| 2069 | |
---|
| 2070 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
| 2071 | fi |
---|
| 2072 | fi |
---|
| 2073 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 2074 | if test -n "$ac_ct_RANLIB"; then |
---|
| 2075 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 2076 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
| 2077 | else |
---|
| 2078 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2079 | echo "${ECHO_T}no" >&6 |
---|
| 2080 | fi |
---|
| 2081 | |
---|
| 2082 | RANLIB=$ac_ct_RANLIB |
---|
| 2083 | else |
---|
| 2084 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 2085 | fi |
---|
| 2086 | |
---|
| 2087 | |
---|
| 2088 | #-------------------------------------------------------------------- |
---|
| 2089 | # This macro performs additional compiler tests. |
---|
| 2090 | #-------------------------------------------------------------------- |
---|
| 2091 | |
---|
| 2092 | # Make sure we can run config.sub. |
---|
| 2093 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 2094 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 2095 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 2096 | { (exit 1); exit 1; }; } |
---|
| 2097 | |
---|
| 2098 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 2099 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 2100 | if test "${ac_cv_build+set}" = set; then |
---|
| 2101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2102 | else |
---|
| 2103 | ac_cv_build_alias=$build_alias |
---|
| 2104 | test -z "$ac_cv_build_alias" && |
---|
| 2105 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 2106 | test -z "$ac_cv_build_alias" && |
---|
| 2107 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 2108 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 2109 | { (exit 1); exit 1; }; } |
---|
| 2110 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 2111 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 2112 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 2113 | { (exit 1); exit 1; }; } |
---|
| 2114 | |
---|
| 2115 | fi |
---|
| 2116 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 2117 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 2118 | build=$ac_cv_build |
---|
| 2119 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 2120 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 2121 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 2122 | |
---|
| 2123 | |
---|
| 2124 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 2125 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 2126 | if test "${ac_cv_host+set}" = set; then |
---|
| 2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2128 | else |
---|
| 2129 | ac_cv_host_alias=$host_alias |
---|
| 2130 | test -z "$ac_cv_host_alias" && |
---|
| 2131 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 2132 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 2133 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 2134 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 2135 | { (exit 1); exit 1; }; } |
---|
| 2136 | |
---|
| 2137 | fi |
---|
| 2138 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 2139 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 2140 | host=$ac_cv_host |
---|
| 2141 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 2142 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 2143 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 2144 | |
---|
| 2145 | |
---|
| 2146 | case $host_os in |
---|
| 2147 | *cygwin* ) CYGWIN=yes;; |
---|
| 2148 | * ) CYGWIN=no;; |
---|
| 2149 | esac |
---|
| 2150 | |
---|
| 2151 | |
---|
| 2152 | #-------------------------------------------------------------------- |
---|
| 2153 | # Determines the correct binary file extension (.o, .obj, .exe etc.) |
---|
| 2154 | #-------------------------------------------------------------------- |
---|
| 2155 | |
---|
| 2156 | |
---|
| 2157 | |
---|
| 2158 | |
---|
| 2159 | #-------------------------------------------------------------------- |
---|
| 2160 | # "cygpath" is used on windows to generate native path names for include |
---|
| 2161 | # files. |
---|
| 2162 | # These variables should only be used with the compiler and linker since |
---|
| 2163 | # they generate native path names. |
---|
| 2164 | # |
---|
| 2165 | # Unix tclConfig.sh points SRC_DIR at the top-level directory of |
---|
| 2166 | # the Tcl sources, while the Windows tclConfig.sh points SRC_DIR at |
---|
| 2167 | # the win subdirectory. Hence the different usages of SRC_DIR below. |
---|
| 2168 | # |
---|
| 2169 | # This must be done before calling SC_PUBLIC_TCL_HEADERS |
---|
| 2170 | #-------------------------------------------------------------------- |
---|
| 2171 | |
---|
| 2172 | case "`uname -s`" in |
---|
| 2173 | *win32* | *WIN32* | *CYGWIN_NT*) |
---|
| 2174 | CYGPATH="cygpath -w" |
---|
| 2175 | ;; |
---|
| 2176 | *) |
---|
| 2177 | CYGPATH=echo |
---|
| 2178 | ;; |
---|
| 2179 | esac |
---|
| 2180 | |
---|
| 2181 | |
---|
| 2182 | |
---|
| 2183 | #-------------------------------------------------------------------- |
---|
| 2184 | # __CHANGE__ |
---|
| 2185 | # Choose which headers you need. Extension authors should try very |
---|
| 2186 | # hard to only rely on the Tcl public header files. Internal headers |
---|
| 2187 | # contain private data structures and are subject to change without |
---|
| 2188 | # notice. |
---|
| 2189 | # This MUST be called before SC_PATH_TCLCONFIG/SC_LOAD_TCLCONFIG |
---|
| 2190 | #-------------------------------------------------------------------- |
---|
| 2191 | |
---|
| 2192 | |
---|
| 2193 | echo "$as_me:$LINENO: checking for Tcl public headers" >&5 |
---|
| 2194 | echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6 |
---|
| 2195 | |
---|
| 2196 | |
---|
| 2197 | # Check whether --with-tclinclude or --without-tclinclude was given. |
---|
| 2198 | if test "${with_tclinclude+set}" = set; then |
---|
| 2199 | withval="$with_tclinclude" |
---|
| 2200 | with_tclinclude=${withval} |
---|
| 2201 | fi; |
---|
| 2202 | |
---|
| 2203 | if test x"${with_tclinclude}" != x ; then |
---|
| 2204 | if test -f "${with_tclinclude}/tcl.h" ; then |
---|
| 2205 | ac_cv_c_tclh=${with_tclinclude} |
---|
| 2206 | else |
---|
| 2207 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&5 |
---|
| 2208 | echo "$as_me: error: ${with_tclinclude} directory does not contain Tcl public header file tcl.h" >&2;} |
---|
| 2209 | { (exit 1); exit 1; }; } |
---|
| 2210 | fi |
---|
| 2211 | else |
---|
| 2212 | if test "${ac_cv_c_tclh+set}" = set; then |
---|
| 2213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2214 | else |
---|
| 2215 | |
---|
| 2216 | # Use the value from --with-tclinclude, if it was given |
---|
| 2217 | |
---|
| 2218 | if test x"${with_tclinclude}" != x ; then |
---|
| 2219 | ac_cv_c_tclh=${with_tclinclude} |
---|
| 2220 | else |
---|
| 2221 | # Check in the includedir, if --prefix was specified |
---|
| 2222 | |
---|
| 2223 | eval "temp_includedir=${includedir}" |
---|
| 2224 | for i in \ |
---|
| 2225 | `ls -d ${temp_includedir} 2>/dev/null` \ |
---|
| 2226 | /usr/local/include /usr/include ; do |
---|
| 2227 | if test -f "$i/tcl.h" ; then |
---|
| 2228 | ac_cv_c_tclh=$i |
---|
| 2229 | break |
---|
| 2230 | fi |
---|
| 2231 | done |
---|
| 2232 | fi |
---|
| 2233 | |
---|
| 2234 | fi |
---|
| 2235 | |
---|
| 2236 | fi |
---|
| 2237 | |
---|
| 2238 | # Print a message based on how we determined the include path |
---|
| 2239 | |
---|
| 2240 | if test x"${ac_cv_c_tclh}" = x ; then |
---|
| 2241 | { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 |
---|
| 2242 | echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} |
---|
| 2243 | { (exit 1); exit 1; }; } |
---|
| 2244 | else |
---|
| 2245 | echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 |
---|
| 2246 | echo "${ECHO_T}${ac_cv_c_tclh}" >&6 |
---|
| 2247 | fi |
---|
| 2248 | |
---|
| 2249 | # Convert to a native path and substitute into the output files. |
---|
| 2250 | |
---|
| 2251 | INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` |
---|
| 2252 | |
---|
| 2253 | TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" |
---|
| 2254 | |
---|
| 2255 | |
---|
| 2256 | |
---|
| 2257 | #SC_PRIVATE_TCL_HEADERS |
---|
| 2258 | |
---|
| 2259 | #-------------------------------------------------------------------- |
---|
| 2260 | # Load the tclConfig.sh file |
---|
| 2261 | #-------------------------------------------------------------------- |
---|
| 2262 | |
---|
| 2263 | |
---|
| 2264 | # |
---|
| 2265 | # Ok, lets find the tcl configuration |
---|
| 2266 | # First, look for one uninstalled. |
---|
| 2267 | # the alternative search directory is invoked by --with-tcl |
---|
| 2268 | # |
---|
| 2269 | |
---|
| 2270 | if test x"${no_tcl}" = x ; then |
---|
| 2271 | # we reset no_tcl in case something fails here |
---|
| 2272 | no_tcl=true |
---|
| 2273 | |
---|
| 2274 | # Check whether --with-tcl or --without-tcl was given. |
---|
| 2275 | if test "${with_tcl+set}" = set; then |
---|
| 2276 | withval="$with_tcl" |
---|
| 2277 | with_tclconfig=${withval} |
---|
| 2278 | fi; |
---|
| 2279 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 |
---|
| 2280 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 |
---|
| 2281 | if test "${ac_cv_c_tclconfig+set}" = set; then |
---|
| 2282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2283 | else |
---|
| 2284 | |
---|
| 2285 | |
---|
| 2286 | # First check to see if --with-tcl was specified. |
---|
| 2287 | if test x"${with_tclconfig}" != x ; then |
---|
| 2288 | if test -f "${with_tclconfig}/tclConfig.sh" ; then |
---|
| 2289 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` |
---|
| 2290 | else |
---|
| 2291 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
---|
| 2292 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} |
---|
| 2293 | { (exit 1); exit 1; }; } |
---|
| 2294 | fi |
---|
| 2295 | fi |
---|
| 2296 | |
---|
| 2297 | # then check for a private Tcl installation |
---|
| 2298 | if test x"${ac_cv_c_tclconfig}" = x ; then |
---|
| 2299 | for i in \ |
---|
| 2300 | ../tcl \ |
---|
| 2301 | `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ |
---|
| 2302 | ../../tcl \ |
---|
| 2303 | `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ |
---|
| 2304 | ../../../tcl \ |
---|
| 2305 | `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do |
---|
| 2306 | if test -f "$i/unix/tclConfig.sh" ; then |
---|
| 2307 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
---|
| 2308 | break |
---|
| 2309 | fi |
---|
| 2310 | done |
---|
| 2311 | fi |
---|
| 2312 | |
---|
| 2313 | # check in a few common install locations |
---|
| 2314 | if test x"${ac_cv_c_tclconfig}" = x ; then |
---|
| 2315 | for i in `ls -d ${prefix}/lib 2>/dev/null` \ |
---|
| 2316 | `ls -d /usr/local/lib 2>/dev/null` ; do |
---|
| 2317 | if test -f "$i/tclConfig.sh" ; then |
---|
| 2318 | ac_cv_c_tclconfig=`(cd $i; pwd)` |
---|
| 2319 | break |
---|
| 2320 | fi |
---|
| 2321 | done |
---|
| 2322 | fi |
---|
| 2323 | |
---|
| 2324 | # check in a few other private locations |
---|
| 2325 | if test x"${ac_cv_c_tclconfig}" = x ; then |
---|
| 2326 | for i in \ |
---|
| 2327 | ${srcdir}/../tcl \ |
---|
| 2328 | `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do |
---|
| 2329 | if test -f "$i/unix/tclConfig.sh" ; then |
---|
| 2330 | ac_cv_c_tclconfig=`(cd $i/unix; pwd)` |
---|
| 2331 | break |
---|
| 2332 | fi |
---|
| 2333 | done |
---|
| 2334 | fi |
---|
| 2335 | |
---|
| 2336 | fi |
---|
| 2337 | |
---|
| 2338 | |
---|
| 2339 | if test x"${ac_cv_c_tclconfig}" = x ; then |
---|
| 2340 | TCL_BIN_DIR="# no Tcl configs found" |
---|
| 2341 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
---|
| 2342 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} |
---|
| 2343 | exit 0 |
---|
| 2344 | else |
---|
| 2345 | no_tcl= |
---|
| 2346 | TCL_BIN_DIR=${ac_cv_c_tclconfig} |
---|
| 2347 | echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5 |
---|
| 2348 | echo "${ECHO_T}found $TCL_BIN_DIR/tclConfig.sh" >&6 |
---|
| 2349 | fi |
---|
| 2350 | fi |
---|
| 2351 | |
---|
| 2352 | |
---|
| 2353 | echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5 |
---|
| 2354 | echo $ECHO_N "checking for existence of $TCL_BIN_DIR/tclConfig.sh... $ECHO_C" >&6 |
---|
| 2355 | |
---|
| 2356 | if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then |
---|
| 2357 | echo "$as_me:$LINENO: result: loading" >&5 |
---|
| 2358 | echo "${ECHO_T}loading" >&6 |
---|
| 2359 | . $TCL_BIN_DIR/tclConfig.sh |
---|
| 2360 | else |
---|
| 2361 | echo "$as_me:$LINENO: result: file not found" >&5 |
---|
| 2362 | echo "${ECHO_T}file not found" >&6 |
---|
| 2363 | fi |
---|
| 2364 | |
---|
| 2365 | # |
---|
| 2366 | # The eval is required to do the TCL_DBGX substitution in the |
---|
| 2367 | # TCL_LIB_FILE variable |
---|
| 2368 | # |
---|
| 2369 | |
---|
| 2370 | eval TCL_LIB_FILE=${TCL_LIB_FILE} |
---|
| 2371 | eval TCL_LIB_FLAG=${TCL_LIB_FLAG} |
---|
| 2372 | |
---|
| 2373 | |
---|
| 2374 | |
---|
| 2375 | |
---|
| 2376 | |
---|
| 2377 | |
---|
| 2378 | |
---|
| 2379 | |
---|
| 2380 | |
---|
| 2381 | |
---|
| 2382 | |
---|
| 2383 | |
---|
| 2384 | |
---|
| 2385 | |
---|
| 2386 | |
---|
| 2387 | |
---|
| 2388 | |
---|
| 2389 | #-------------------------------------------------------------------- |
---|
| 2390 | # Look for bltInt.h on the normal include path. If not found, look |
---|
| 2391 | # for it in the --with-blt directory. |
---|
| 2392 | #-------------------------------------------------------------------- |
---|
[225] | 2393 | echo "$as_me:$LINENO: checking for bltInt.h" >&5 |
---|
| 2394 | echo $ECHO_N "checking for bltInt.h... $ECHO_C" >&6 |
---|
| 2395 | BLT_SRC_DIR="" |
---|
| 2396 | if test "x$blt_source_dir" != "x" ; then |
---|
| 2397 | # |
---|
| 2398 | # Verify that a tclConfig.sh file exists in the directory specified |
---|
| 2399 | # by --with-blt. |
---|
| 2400 | # |
---|
| 2401 | if test -r "$blt_source_dir/bltInt.h" ; then |
---|
| 2402 | BLT_SRC_DIR="$blt_source_dir" |
---|
| 2403 | elif test -r "$blt_source_dir/src/bltInt.h" ; then |
---|
| 2404 | BLT_SRC_DIR="$blt_source_dir/src" |
---|
| 2405 | fi |
---|
| 2406 | else |
---|
| 2407 | # |
---|
| 2408 | # Otherwise, search for the bltInt.h include file... |
---|
| 2409 | # 1. Search previously named locations. |
---|
| 2410 | # |
---|
| 2411 | for dir in \ |
---|
| 2412 | $prefix \ |
---|
| 2413 | $exec_prefix |
---|
| 2414 | do |
---|
| 2415 | if test -r "$dir/bltInt.h" ; then |
---|
| 2416 | BLT_SRC_DIR="$dir" |
---|
| 2417 | break |
---|
| 2418 | elif test -r "$dir/include/bltInt.h" ; then |
---|
| 2419 | BLT_SRC_DIR="$dir/lib" |
---|
| 2420 | break |
---|
| 2421 | fi |
---|
| 2422 | done |
---|
| 2423 | # |
---|
| 2424 | # 2. Search source directories. |
---|
| 2425 | # |
---|
| 2426 | if test "x$BLT_SRC_DIR" = "x" ; then |
---|
| 2427 | for dir in \ |
---|
| 2428 | `ls -dr ../blt[2-3].[0-9]* 2>/dev/null` \ |
---|
| 2429 | ../blt \ |
---|
| 2430 | `ls -dr ../../blt[2-3].[0-9]* 2>/dev/null` \ |
---|
| 2431 | ../../blt \ |
---|
| 2432 | `ls -dr ../../../blt[2-3].[0-9]* 2>/dev/null` \ |
---|
| 2433 | ../../../blt |
---|
| 2434 | do |
---|
| 2435 | if test -r "$dir/bltInt.h" ; then |
---|
| 2436 | tclConfigFile="$dir/bltInt.h" |
---|
| 2437 | break |
---|
| 2438 | fi |
---|
| 2439 | done |
---|
| 2440 | fi |
---|
| 2441 | fi |
---|
[204] | 2442 | |
---|
[225] | 2443 | echo "$as_me:$LINENO: result: ${BLT_SRC_DIR}" >&5 |
---|
| 2444 | echo "${ECHO_T}${BLT_SRC_DIR}" >&6 |
---|
| 2445 | |
---|
| 2446 | if test "x$BLT_SRC_DIR" = "x" ; then |
---|
| 2447 | echo "can't find BLT include file \"bltInt.h\"" |
---|
| 2448 | echo "use --with-blt=DIR to specify the location of the BLT sources" |
---|
| 2449 | exit 1 |
---|
| 2450 | fi |
---|
| 2451 | |
---|
| 2452 | |
---|
| 2453 | |
---|
[204] | 2454 | #-------------------------------------------------------------------- |
---|
| 2455 | # __CHANGE__ |
---|
| 2456 | # A few miscellaneous platform-specific items: |
---|
| 2457 | # |
---|
| 2458 | # Define a special symbol for Windows (BUILD_exampleA in this case) so |
---|
| 2459 | # that we create the export library with the dll. See sha1.h on how |
---|
| 2460 | # to use this. |
---|
| 2461 | # |
---|
| 2462 | # Windows creates a few extra files that need to be cleaned up. |
---|
| 2463 | # You can add more files to clean if your extension creates any extra |
---|
| 2464 | # files. |
---|
| 2465 | # |
---|
| 2466 | # Define any extra compiler flags in the PACKAGE_CFLAGS variable. |
---|
| 2467 | # These will be appended to the current set of compiler flags for |
---|
| 2468 | # your system. |
---|
| 2469 | #-------------------------------------------------------------------- |
---|
| 2470 | |
---|
| 2471 | case "`uname -s`" in |
---|
| 2472 | *win32* | *WIN32* | *CYGWIN_NT*) |
---|
| 2473 | cat >>confdefs.h <<\_ACEOF |
---|
[207] | 2474 | #define BUILD_Rappture 1 |
---|
[204] | 2475 | _ACEOF |
---|
| 2476 | |
---|
| 2477 | CLEANFILES="*.lib *.dll *.exp *.ilk *.pdb vc50.pch" |
---|
| 2478 | |
---|
| 2479 | ;; |
---|
| 2480 | *) |
---|
| 2481 | CLEANFILES= |
---|
| 2482 | ;; |
---|
| 2483 | esac |
---|
| 2484 | |
---|
| 2485 | #-------------------------------------------------------------------- |
---|
| 2486 | # Check whether --enable-threads or --disable-threads was given. |
---|
| 2487 | # So far only Tcl responds to this one. |
---|
| 2488 | #-------------------------------------------------------------------- |
---|
| 2489 | |
---|
| 2490 | ac_ext=c |
---|
| 2491 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2495 | if test -n "$ac_tool_prefix"; then |
---|
| 2496 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 2497 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 2498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2500 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2502 | else |
---|
| 2503 | if test -n "$CC"; then |
---|
| 2504 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2505 | else |
---|
| 2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2507 | for as_dir in $PATH |
---|
| 2508 | do |
---|
| 2509 | IFS=$as_save_IFS |
---|
| 2510 | test -z "$as_dir" && as_dir=. |
---|
| 2511 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2513 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 2514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2515 | break 2 |
---|
| 2516 | fi |
---|
| 2517 | done |
---|
| 2518 | done |
---|
| 2519 | |
---|
| 2520 | fi |
---|
| 2521 | fi |
---|
| 2522 | CC=$ac_cv_prog_CC |
---|
| 2523 | if test -n "$CC"; then |
---|
| 2524 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2525 | echo "${ECHO_T}$CC" >&6 |
---|
| 2526 | else |
---|
| 2527 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2528 | echo "${ECHO_T}no" >&6 |
---|
| 2529 | fi |
---|
| 2530 | |
---|
| 2531 | fi |
---|
| 2532 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2533 | ac_ct_CC=$CC |
---|
| 2534 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 2535 | set dummy gcc; ac_word=$2 |
---|
| 2536 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2537 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2538 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2540 | else |
---|
| 2541 | if test -n "$ac_ct_CC"; then |
---|
| 2542 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2543 | else |
---|
| 2544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2545 | for as_dir in $PATH |
---|
| 2546 | do |
---|
| 2547 | IFS=$as_save_IFS |
---|
| 2548 | test -z "$as_dir" && as_dir=. |
---|
| 2549 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2551 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 2552 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2553 | break 2 |
---|
| 2554 | fi |
---|
| 2555 | done |
---|
| 2556 | done |
---|
| 2557 | |
---|
| 2558 | fi |
---|
| 2559 | fi |
---|
| 2560 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2561 | if test -n "$ac_ct_CC"; then |
---|
| 2562 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2563 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2564 | else |
---|
| 2565 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2566 | echo "${ECHO_T}no" >&6 |
---|
| 2567 | fi |
---|
| 2568 | |
---|
| 2569 | CC=$ac_ct_CC |
---|
| 2570 | else |
---|
| 2571 | CC="$ac_cv_prog_CC" |
---|
| 2572 | fi |
---|
| 2573 | |
---|
| 2574 | if test -z "$CC"; then |
---|
| 2575 | if test -n "$ac_tool_prefix"; then |
---|
| 2576 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 2577 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 2578 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2579 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2580 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2582 | else |
---|
| 2583 | if test -n "$CC"; then |
---|
| 2584 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2585 | else |
---|
| 2586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2587 | for as_dir in $PATH |
---|
| 2588 | do |
---|
| 2589 | IFS=$as_save_IFS |
---|
| 2590 | test -z "$as_dir" && as_dir=. |
---|
| 2591 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2592 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2593 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 2594 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2595 | break 2 |
---|
| 2596 | fi |
---|
| 2597 | done |
---|
| 2598 | done |
---|
| 2599 | |
---|
| 2600 | fi |
---|
| 2601 | fi |
---|
| 2602 | CC=$ac_cv_prog_CC |
---|
| 2603 | if test -n "$CC"; then |
---|
| 2604 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2605 | echo "${ECHO_T}$CC" >&6 |
---|
| 2606 | else |
---|
| 2607 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2608 | echo "${ECHO_T}no" >&6 |
---|
| 2609 | fi |
---|
| 2610 | |
---|
| 2611 | fi |
---|
| 2612 | if test -z "$ac_cv_prog_CC"; then |
---|
| 2613 | ac_ct_CC=$CC |
---|
| 2614 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2615 | set dummy cc; ac_word=$2 |
---|
| 2616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2618 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2620 | else |
---|
| 2621 | if test -n "$ac_ct_CC"; then |
---|
| 2622 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2623 | else |
---|
| 2624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2625 | for as_dir in $PATH |
---|
| 2626 | do |
---|
| 2627 | IFS=$as_save_IFS |
---|
| 2628 | test -z "$as_dir" && as_dir=. |
---|
| 2629 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2630 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2631 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 2632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2633 | break 2 |
---|
| 2634 | fi |
---|
| 2635 | done |
---|
| 2636 | done |
---|
| 2637 | |
---|
| 2638 | fi |
---|
| 2639 | fi |
---|
| 2640 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2641 | if test -n "$ac_ct_CC"; then |
---|
| 2642 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2643 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2644 | else |
---|
| 2645 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2646 | echo "${ECHO_T}no" >&6 |
---|
| 2647 | fi |
---|
| 2648 | |
---|
| 2649 | CC=$ac_ct_CC |
---|
| 2650 | else |
---|
| 2651 | CC="$ac_cv_prog_CC" |
---|
| 2652 | fi |
---|
| 2653 | |
---|
| 2654 | fi |
---|
| 2655 | if test -z "$CC"; then |
---|
| 2656 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 2657 | set dummy cc; ac_word=$2 |
---|
| 2658 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2660 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2662 | else |
---|
| 2663 | if test -n "$CC"; then |
---|
| 2664 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2665 | else |
---|
| 2666 | ac_prog_rejected=no |
---|
| 2667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2668 | for as_dir in $PATH |
---|
| 2669 | do |
---|
| 2670 | IFS=$as_save_IFS |
---|
| 2671 | test -z "$as_dir" && as_dir=. |
---|
| 2672 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2673 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2674 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 2675 | ac_prog_rejected=yes |
---|
| 2676 | continue |
---|
| 2677 | fi |
---|
| 2678 | ac_cv_prog_CC="cc" |
---|
| 2679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2680 | break 2 |
---|
| 2681 | fi |
---|
| 2682 | done |
---|
| 2683 | done |
---|
| 2684 | |
---|
| 2685 | if test $ac_prog_rejected = yes; then |
---|
| 2686 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2687 | set dummy $ac_cv_prog_CC |
---|
| 2688 | shift |
---|
| 2689 | if test $# != 0; then |
---|
| 2690 | # We chose a different compiler from the bogus one. |
---|
| 2691 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2692 | # first if we set CC to just the basename; use the full file name. |
---|
| 2693 | shift |
---|
| 2694 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2695 | fi |
---|
| 2696 | fi |
---|
| 2697 | fi |
---|
| 2698 | fi |
---|
| 2699 | CC=$ac_cv_prog_CC |
---|
| 2700 | if test -n "$CC"; then |
---|
| 2701 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2702 | echo "${ECHO_T}$CC" >&6 |
---|
| 2703 | else |
---|
| 2704 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2705 | echo "${ECHO_T}no" >&6 |
---|
| 2706 | fi |
---|
| 2707 | |
---|
| 2708 | fi |
---|
| 2709 | if test -z "$CC"; then |
---|
| 2710 | if test -n "$ac_tool_prefix"; then |
---|
| 2711 | for ac_prog in cl |
---|
| 2712 | do |
---|
| 2713 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2714 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2715 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2716 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2717 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2719 | else |
---|
| 2720 | if test -n "$CC"; then |
---|
| 2721 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2722 | else |
---|
| 2723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2724 | for as_dir in $PATH |
---|
| 2725 | do |
---|
| 2726 | IFS=$as_save_IFS |
---|
| 2727 | test -z "$as_dir" && as_dir=. |
---|
| 2728 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2729 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2730 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2731 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2732 | break 2 |
---|
| 2733 | fi |
---|
| 2734 | done |
---|
| 2735 | done |
---|
| 2736 | |
---|
| 2737 | fi |
---|
| 2738 | fi |
---|
| 2739 | CC=$ac_cv_prog_CC |
---|
| 2740 | if test -n "$CC"; then |
---|
| 2741 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2742 | echo "${ECHO_T}$CC" >&6 |
---|
| 2743 | else |
---|
| 2744 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2745 | echo "${ECHO_T}no" >&6 |
---|
| 2746 | fi |
---|
| 2747 | |
---|
| 2748 | test -n "$CC" && break |
---|
| 2749 | done |
---|
| 2750 | fi |
---|
| 2751 | if test -z "$CC"; then |
---|
| 2752 | ac_ct_CC=$CC |
---|
| 2753 | for ac_prog in cl |
---|
| 2754 | do |
---|
| 2755 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2756 | set dummy $ac_prog; ac_word=$2 |
---|
| 2757 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2758 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2759 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2760 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2761 | else |
---|
| 2762 | if test -n "$ac_ct_CC"; then |
---|
| 2763 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2764 | else |
---|
| 2765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2766 | for as_dir in $PATH |
---|
| 2767 | do |
---|
| 2768 | IFS=$as_save_IFS |
---|
| 2769 | test -z "$as_dir" && as_dir=. |
---|
| 2770 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2771 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2772 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2773 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2774 | break 2 |
---|
| 2775 | fi |
---|
| 2776 | done |
---|
| 2777 | done |
---|
| 2778 | |
---|
| 2779 | fi |
---|
| 2780 | fi |
---|
| 2781 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2782 | if test -n "$ac_ct_CC"; then |
---|
| 2783 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2784 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2785 | else |
---|
| 2786 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2787 | echo "${ECHO_T}no" >&6 |
---|
| 2788 | fi |
---|
| 2789 | |
---|
| 2790 | test -n "$ac_ct_CC" && break |
---|
| 2791 | done |
---|
| 2792 | |
---|
| 2793 | CC=$ac_ct_CC |
---|
| 2794 | fi |
---|
| 2795 | |
---|
| 2796 | fi |
---|
| 2797 | |
---|
| 2798 | |
---|
| 2799 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2800 | See \`config.log' for more details." >&5 |
---|
| 2801 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2802 | See \`config.log' for more details." >&2;} |
---|
| 2803 | { (exit 1); exit 1; }; } |
---|
| 2804 | |
---|
| 2805 | # Provide some information about the compiler. |
---|
| 2806 | echo "$as_me:$LINENO:" \ |
---|
| 2807 | "checking for C compiler version" >&5 |
---|
| 2808 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2809 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2810 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2811 | ac_status=$? |
---|
| 2812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2813 | (exit $ac_status); } |
---|
| 2814 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2815 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2816 | ac_status=$? |
---|
| 2817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2818 | (exit $ac_status); } |
---|
| 2819 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2820 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2821 | ac_status=$? |
---|
| 2822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2823 | (exit $ac_status); } |
---|
| 2824 | |
---|
| 2825 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2826 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2827 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2829 | else |
---|
| 2830 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2831 | /* confdefs.h. */ |
---|
| 2832 | _ACEOF |
---|
| 2833 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2834 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2835 | /* end confdefs.h. */ |
---|
| 2836 | |
---|
| 2837 | int |
---|
| 2838 | main () |
---|
| 2839 | { |
---|
| 2840 | #ifndef __GNUC__ |
---|
| 2841 | choke me |
---|
| 2842 | #endif |
---|
| 2843 | |
---|
| 2844 | ; |
---|
| 2845 | return 0; |
---|
| 2846 | } |
---|
| 2847 | _ACEOF |
---|
| 2848 | rm -f conftest.$ac_objext |
---|
| 2849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2850 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2851 | ac_status=$? |
---|
| 2852 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2853 | rm -f conftest.er1 |
---|
| 2854 | cat conftest.err >&5 |
---|
| 2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2856 | (exit $ac_status); } && |
---|
| 2857 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 2858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2859 | (eval $ac_try) 2>&5 |
---|
| 2860 | ac_status=$? |
---|
| 2861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2862 | (exit $ac_status); }; } && |
---|
| 2863 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2865 | (eval $ac_try) 2>&5 |
---|
| 2866 | ac_status=$? |
---|
| 2867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2868 | (exit $ac_status); }; }; then |
---|
| 2869 | ac_compiler_gnu=yes |
---|
| 2870 | else |
---|
| 2871 | echo "$as_me: failed program was:" >&5 |
---|
| 2872 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2873 | |
---|
| 2874 | ac_compiler_gnu=no |
---|
| 2875 | fi |
---|
| 2876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2877 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2878 | |
---|
| 2879 | fi |
---|
| 2880 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2881 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2882 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2883 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2884 | ac_save_CFLAGS=$CFLAGS |
---|
| 2885 | CFLAGS="-g" |
---|
| 2886 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2887 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2888 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2889 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2890 | else |
---|
| 2891 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2892 | /* confdefs.h. */ |
---|
| 2893 | _ACEOF |
---|
| 2894 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2895 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2896 | /* end confdefs.h. */ |
---|
| 2897 | |
---|
| 2898 | int |
---|
| 2899 | main () |
---|
| 2900 | { |
---|
| 2901 | |
---|
| 2902 | ; |
---|
| 2903 | return 0; |
---|
| 2904 | } |
---|
| 2905 | _ACEOF |
---|
| 2906 | rm -f conftest.$ac_objext |
---|
| 2907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2908 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2909 | ac_status=$? |
---|
| 2910 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2911 | rm -f conftest.er1 |
---|
| 2912 | cat conftest.err >&5 |
---|
| 2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2914 | (exit $ac_status); } && |
---|
| 2915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 2916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2917 | (eval $ac_try) 2>&5 |
---|
| 2918 | ac_status=$? |
---|
| 2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2920 | (exit $ac_status); }; } && |
---|
| 2921 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2923 | (eval $ac_try) 2>&5 |
---|
| 2924 | ac_status=$? |
---|
| 2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2926 | (exit $ac_status); }; }; then |
---|
| 2927 | ac_cv_prog_cc_g=yes |
---|
| 2928 | else |
---|
| 2929 | echo "$as_me: failed program was:" >&5 |
---|
| 2930 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2931 | |
---|
| 2932 | ac_cv_prog_cc_g=no |
---|
| 2933 | fi |
---|
| 2934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2935 | fi |
---|
| 2936 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2937 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 2938 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2939 | CFLAGS=$ac_save_CFLAGS |
---|
| 2940 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2941 | if test "$GCC" = yes; then |
---|
| 2942 | CFLAGS="-g -O2" |
---|
| 2943 | else |
---|
| 2944 | CFLAGS="-g" |
---|
| 2945 | fi |
---|
| 2946 | else |
---|
| 2947 | if test "$GCC" = yes; then |
---|
| 2948 | CFLAGS="-O2" |
---|
| 2949 | else |
---|
| 2950 | CFLAGS= |
---|
| 2951 | fi |
---|
| 2952 | fi |
---|
| 2953 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 2954 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 2955 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2957 | else |
---|
| 2958 | ac_cv_prog_cc_stdc=no |
---|
| 2959 | ac_save_CC=$CC |
---|
| 2960 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2961 | /* confdefs.h. */ |
---|
| 2962 | _ACEOF |
---|
| 2963 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2964 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2965 | /* end confdefs.h. */ |
---|
| 2966 | #include <stdarg.h> |
---|
| 2967 | #include <stdio.h> |
---|
| 2968 | #include <sys/types.h> |
---|
| 2969 | #include <sys/stat.h> |
---|
| 2970 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2971 | struct buf { int x; }; |
---|
| 2972 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2973 | static char *e (p, i) |
---|
| 2974 | char **p; |
---|
| 2975 | int i; |
---|
| 2976 | { |
---|
| 2977 | return p[i]; |
---|
| 2978 | } |
---|
| 2979 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2980 | { |
---|
| 2981 | char *s; |
---|
| 2982 | va_list v; |
---|
| 2983 | va_start (v,p); |
---|
| 2984 | s = g (p, va_arg (v,int)); |
---|
| 2985 | va_end (v); |
---|
| 2986 | return s; |
---|
| 2987 | } |
---|
| 2988 | |
---|
| 2989 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2990 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 2991 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 2992 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 2993 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 2994 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 2995 | that's true only with -std1. */ |
---|
| 2996 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 2997 | |
---|
| 2998 | int test (int i, double x); |
---|
| 2999 | struct s1 {int (*f) (int a);}; |
---|
| 3000 | struct s2 {int (*f) (double a);}; |
---|
| 3001 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 3002 | int argc; |
---|
| 3003 | char **argv; |
---|
| 3004 | int |
---|
| 3005 | main () |
---|
| 3006 | { |
---|
| 3007 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 3008 | ; |
---|
| 3009 | return 0; |
---|
| 3010 | } |
---|
| 3011 | _ACEOF |
---|
| 3012 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 3013 | # breaks some systems' header files. |
---|
| 3014 | # AIX -qlanglvl=ansi |
---|
| 3015 | # Ultrix and OSF/1 -std1 |
---|
| 3016 | # HP-UX 10.20 and later -Ae |
---|
| 3017 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 3018 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 3019 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 3020 | do |
---|
| 3021 | CC="$ac_save_CC $ac_arg" |
---|
| 3022 | rm -f conftest.$ac_objext |
---|
| 3023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3024 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3025 | ac_status=$? |
---|
| 3026 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3027 | rm -f conftest.er1 |
---|
| 3028 | cat conftest.err >&5 |
---|
| 3029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3030 | (exit $ac_status); } && |
---|
| 3031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3033 | (eval $ac_try) 2>&5 |
---|
| 3034 | ac_status=$? |
---|
| 3035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3036 | (exit $ac_status); }; } && |
---|
| 3037 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3039 | (eval $ac_try) 2>&5 |
---|
| 3040 | ac_status=$? |
---|
| 3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3042 | (exit $ac_status); }; }; then |
---|
| 3043 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 3044 | break |
---|
| 3045 | else |
---|
| 3046 | echo "$as_me: failed program was:" >&5 |
---|
| 3047 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3048 | |
---|
| 3049 | fi |
---|
| 3050 | rm -f conftest.err conftest.$ac_objext |
---|
| 3051 | done |
---|
| 3052 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 3053 | CC=$ac_save_CC |
---|
| 3054 | |
---|
| 3055 | fi |
---|
| 3056 | |
---|
| 3057 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 3058 | x|xno) |
---|
| 3059 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 3060 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 3061 | *) |
---|
| 3062 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 3063 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 3064 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 3065 | esac |
---|
| 3066 | |
---|
| 3067 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 3068 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 3069 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 3070 | # the declaration of exit, since it's the most demanding environment. |
---|
| 3071 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3072 | #ifndef __cplusplus |
---|
| 3073 | choke me |
---|
| 3074 | #endif |
---|
| 3075 | _ACEOF |
---|
| 3076 | rm -f conftest.$ac_objext |
---|
| 3077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3078 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3079 | ac_status=$? |
---|
| 3080 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3081 | rm -f conftest.er1 |
---|
| 3082 | cat conftest.err >&5 |
---|
| 3083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3084 | (exit $ac_status); } && |
---|
| 3085 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3087 | (eval $ac_try) 2>&5 |
---|
| 3088 | ac_status=$? |
---|
| 3089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3090 | (exit $ac_status); }; } && |
---|
| 3091 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3093 | (eval $ac_try) 2>&5 |
---|
| 3094 | ac_status=$? |
---|
| 3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3096 | (exit $ac_status); }; }; then |
---|
| 3097 | for ac_declaration in \ |
---|
| 3098 | '' \ |
---|
| 3099 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 3100 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 3101 | 'extern "C" void exit (int) throw ();' \ |
---|
| 3102 | 'extern "C" void exit (int);' \ |
---|
| 3103 | 'void exit (int);' |
---|
| 3104 | do |
---|
| 3105 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3106 | /* confdefs.h. */ |
---|
| 3107 | _ACEOF |
---|
| 3108 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3109 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3110 | /* end confdefs.h. */ |
---|
| 3111 | $ac_declaration |
---|
| 3112 | #include <stdlib.h> |
---|
| 3113 | int |
---|
| 3114 | main () |
---|
| 3115 | { |
---|
| 3116 | exit (42); |
---|
| 3117 | ; |
---|
| 3118 | return 0; |
---|
| 3119 | } |
---|
| 3120 | _ACEOF |
---|
| 3121 | rm -f conftest.$ac_objext |
---|
| 3122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3123 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3124 | ac_status=$? |
---|
| 3125 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3126 | rm -f conftest.er1 |
---|
| 3127 | cat conftest.err >&5 |
---|
| 3128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3129 | (exit $ac_status); } && |
---|
| 3130 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3132 | (eval $ac_try) 2>&5 |
---|
| 3133 | ac_status=$? |
---|
| 3134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3135 | (exit $ac_status); }; } && |
---|
| 3136 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3138 | (eval $ac_try) 2>&5 |
---|
| 3139 | ac_status=$? |
---|
| 3140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3141 | (exit $ac_status); }; }; then |
---|
| 3142 | : |
---|
| 3143 | else |
---|
| 3144 | echo "$as_me: failed program was:" >&5 |
---|
| 3145 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3146 | |
---|
| 3147 | continue |
---|
| 3148 | fi |
---|
| 3149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3150 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3151 | /* confdefs.h. */ |
---|
| 3152 | _ACEOF |
---|
| 3153 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3154 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3155 | /* end confdefs.h. */ |
---|
| 3156 | $ac_declaration |
---|
| 3157 | int |
---|
| 3158 | main () |
---|
| 3159 | { |
---|
| 3160 | exit (42); |
---|
| 3161 | ; |
---|
| 3162 | return 0; |
---|
| 3163 | } |
---|
| 3164 | _ACEOF |
---|
| 3165 | rm -f conftest.$ac_objext |
---|
| 3166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3167 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3168 | ac_status=$? |
---|
| 3169 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3170 | rm -f conftest.er1 |
---|
| 3171 | cat conftest.err >&5 |
---|
| 3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3173 | (exit $ac_status); } && |
---|
| 3174 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3176 | (eval $ac_try) 2>&5 |
---|
| 3177 | ac_status=$? |
---|
| 3178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3179 | (exit $ac_status); }; } && |
---|
| 3180 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3182 | (eval $ac_try) 2>&5 |
---|
| 3183 | ac_status=$? |
---|
| 3184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3185 | (exit $ac_status); }; }; then |
---|
| 3186 | break |
---|
| 3187 | else |
---|
| 3188 | echo "$as_me: failed program was:" >&5 |
---|
| 3189 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3190 | |
---|
| 3191 | fi |
---|
| 3192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3193 | done |
---|
| 3194 | rm -f conftest* |
---|
| 3195 | if test -n "$ac_declaration"; then |
---|
| 3196 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 3197 | echo $ac_declaration >>confdefs.h |
---|
| 3198 | echo '#endif' >>confdefs.h |
---|
| 3199 | fi |
---|
| 3200 | |
---|
| 3201 | else |
---|
| 3202 | echo "$as_me: failed program was:" >&5 |
---|
| 3203 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3204 | |
---|
| 3205 | fi |
---|
| 3206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3207 | ac_ext=c |
---|
| 3208 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3212 | |
---|
| 3213 | |
---|
| 3214 | |
---|
| 3215 | echo "$as_me:$LINENO: checking for building with threads" >&5 |
---|
| 3216 | echo $ECHO_N "checking for building with threads... $ECHO_C" >&6 |
---|
| 3217 | # Check whether --enable-threads or --disable-threads was given. |
---|
| 3218 | if test "${enable_threads+set}" = set; then |
---|
| 3219 | enableval="$enable_threads" |
---|
| 3220 | tcl_ok=$enableval |
---|
| 3221 | else |
---|
| 3222 | tcl_ok=no |
---|
| 3223 | fi; |
---|
| 3224 | |
---|
| 3225 | if test "$tcl_ok" = "yes"; then |
---|
| 3226 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3227 | echo "${ECHO_T}yes" >&6 |
---|
| 3228 | TCL_THREADS=1 |
---|
| 3229 | cat >>confdefs.h <<\_ACEOF |
---|
| 3230 | #define TCL_THREADS 1 |
---|
| 3231 | _ACEOF |
---|
| 3232 | |
---|
| 3233 | cat >>confdefs.h <<\_ACEOF |
---|
| 3234 | #define _REENTRANT 1 |
---|
| 3235 | _ACEOF |
---|
| 3236 | |
---|
| 3237 | |
---|
| 3238 | echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 |
---|
| 3239 | echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6 |
---|
| 3240 | if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then |
---|
| 3241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3242 | else |
---|
| 3243 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3244 | LIBS="-lpthread $LIBS" |
---|
| 3245 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3246 | /* confdefs.h. */ |
---|
| 3247 | _ACEOF |
---|
| 3248 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3249 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3250 | /* end confdefs.h. */ |
---|
| 3251 | |
---|
| 3252 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3253 | #ifdef __cplusplus |
---|
| 3254 | extern "C" |
---|
| 3255 | #endif |
---|
| 3256 | /* We use char because int might match the return type of a gcc2 |
---|
| 3257 | builtin and then its argument prototype would still apply. */ |
---|
| 3258 | char pthread_mutex_init (); |
---|
| 3259 | int |
---|
| 3260 | main () |
---|
| 3261 | { |
---|
| 3262 | pthread_mutex_init (); |
---|
| 3263 | ; |
---|
| 3264 | return 0; |
---|
| 3265 | } |
---|
| 3266 | _ACEOF |
---|
| 3267 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3269 | (eval $ac_link) 2>conftest.er1 |
---|
| 3270 | ac_status=$? |
---|
| 3271 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3272 | rm -f conftest.er1 |
---|
| 3273 | cat conftest.err >&5 |
---|
| 3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3275 | (exit $ac_status); } && |
---|
| 3276 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
---|
| 3277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3278 | (eval $ac_try) 2>&5 |
---|
| 3279 | ac_status=$? |
---|
| 3280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3281 | (exit $ac_status); }; } && |
---|
| 3282 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3284 | (eval $ac_try) 2>&5 |
---|
| 3285 | ac_status=$? |
---|
| 3286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3287 | (exit $ac_status); }; }; then |
---|
| 3288 | ac_cv_lib_pthread_pthread_mutex_init=yes |
---|
| 3289 | else |
---|
| 3290 | echo "$as_me: failed program was:" >&5 |
---|
| 3291 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3292 | |
---|
| 3293 | ac_cv_lib_pthread_pthread_mutex_init=no |
---|
| 3294 | fi |
---|
| 3295 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 3296 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3297 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3298 | fi |
---|
| 3299 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
---|
| 3300 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6 |
---|
| 3301 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
---|
| 3302 | tcl_ok=yes |
---|
| 3303 | else |
---|
| 3304 | tcl_ok=no |
---|
| 3305 | fi |
---|
| 3306 | |
---|
| 3307 | if test "$tcl_ok" = "yes"; then |
---|
| 3308 | # The space is needed |
---|
| 3309 | THREADS_LIBS=" -lpthread" |
---|
| 3310 | else |
---|
| 3311 | TCL_THREADS=0 |
---|
| 3312 | { echo "$as_me:$LINENO: WARNING: \"Don t know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...\"" >&5 |
---|
| 3313 | echo "$as_me: WARNING: \"Don t know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile...\"" >&2;} |
---|
| 3314 | fi |
---|
| 3315 | else |
---|
| 3316 | TCL_THREADS=0 |
---|
| 3317 | echo "$as_me:$LINENO: result: no (default)" >&5 |
---|
| 3318 | echo "${ECHO_T}no (default)" >&6 |
---|
| 3319 | fi |
---|
| 3320 | |
---|
| 3321 | |
---|
| 3322 | |
---|
| 3323 | #-------------------------------------------------------------------- |
---|
| 3324 | # The statement below defines a collection of symbols related to |
---|
| 3325 | # building as a shared library instead of a static library. |
---|
| 3326 | #-------------------------------------------------------------------- |
---|
| 3327 | |
---|
| 3328 | |
---|
| 3329 | echo "$as_me:$LINENO: checking how to build libraries" >&5 |
---|
| 3330 | echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6 |
---|
| 3331 | # Check whether --enable-shared or --disable-shared was given. |
---|
| 3332 | if test "${enable_shared+set}" = set; then |
---|
| 3333 | enableval="$enable_shared" |
---|
| 3334 | tcl_ok=$enableval |
---|
| 3335 | else |
---|
| 3336 | tcl_ok=yes |
---|
| 3337 | fi; |
---|
| 3338 | |
---|
| 3339 | if test "${enable_shared+set}" = set; then |
---|
| 3340 | enableval="$enable_shared" |
---|
| 3341 | tcl_ok=$enableval |
---|
| 3342 | else |
---|
| 3343 | tcl_ok=yes |
---|
| 3344 | fi |
---|
| 3345 | |
---|
| 3346 | if test "$tcl_ok" = "yes" ; then |
---|
| 3347 | echo "$as_me:$LINENO: result: shared" >&5 |
---|
| 3348 | echo "${ECHO_T}shared" >&6 |
---|
| 3349 | SHARED_BUILD=1 |
---|
| 3350 | else |
---|
| 3351 | echo "$as_me:$LINENO: result: static" >&5 |
---|
| 3352 | echo "${ECHO_T}static" >&6 |
---|
| 3353 | SHARED_BUILD=0 |
---|
| 3354 | cat >>confdefs.h <<\_ACEOF |
---|
| 3355 | #define STATIC_BUILD 1 |
---|
| 3356 | _ACEOF |
---|
| 3357 | |
---|
| 3358 | fi |
---|
| 3359 | |
---|
| 3360 | |
---|
| 3361 | #-------------------------------------------------------------------- |
---|
| 3362 | # This macro figures out what flags to use with the compiler/linker |
---|
| 3363 | # when building shared/static debug/optimized objects. This information |
---|
| 3364 | # is all taken from the tclConfig.sh file. |
---|
| 3365 | #-------------------------------------------------------------------- |
---|
| 3366 | |
---|
| 3367 | CFLAGS_DEBUG=${TCL_CFLAGS_DEBUG} |
---|
| 3368 | CFLAGS_OPTIMIZE=${TCL_CFLAGS_OPTIMIZE} |
---|
| 3369 | LDFLAGS_DEBUG=${TCL_LDFLAGS_DEBUG} |
---|
| 3370 | LDFLAGS_OPTIMIZE=${TCL_LDFLAGS_OPTIMIZE} |
---|
| 3371 | SHLIB_LD=${TCL_SHLIB_LD} |
---|
| 3372 | STLIB_LD=${TCL_STLIB_LD} |
---|
| 3373 | SHLIB_CFLAGS=${TCL_SHLIB_CFLAGS} |
---|
| 3374 | |
---|
| 3375 | |
---|
| 3376 | |
---|
| 3377 | |
---|
| 3378 | |
---|
| 3379 | |
---|
| 3380 | |
---|
| 3381 | |
---|
| 3382 | #-------------------------------------------------------------------- |
---|
| 3383 | # Set the default compiler switches based on the --enable-symbols |
---|
| 3384 | # option. |
---|
| 3385 | #-------------------------------------------------------------------- |
---|
| 3386 | |
---|
| 3387 | |
---|
| 3388 | case "`uname -s`" in |
---|
| 3389 | *win32* | *WIN32* | *CYGWIN_NT*) |
---|
| 3390 | tcl_dbgx=d |
---|
| 3391 | ;; |
---|
| 3392 | *) |
---|
| 3393 | tcl_dbgx=g |
---|
| 3394 | ;; |
---|
| 3395 | esac |
---|
| 3396 | |
---|
| 3397 | echo "$as_me:$LINENO: checking for build with symbols" >&5 |
---|
| 3398 | echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6 |
---|
| 3399 | # Check whether --enable-symbols or --disable-symbols was given. |
---|
| 3400 | if test "${enable_symbols+set}" = set; then |
---|
| 3401 | enableval="$enable_symbols" |
---|
| 3402 | tcl_ok=$enableval |
---|
| 3403 | else |
---|
| 3404 | tcl_ok=no |
---|
| 3405 | fi; |
---|
| 3406 | if test "$tcl_ok" = "yes"; then |
---|
| 3407 | CFLAGS_DEFAULT="${CFLAGS_DEBUG}" |
---|
| 3408 | LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" |
---|
| 3409 | DBGX=${tcl_dbgx} |
---|
| 3410 | TCL_DBGX=${tcl_dbgx} |
---|
| 3411 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3412 | echo "${ECHO_T}yes" >&6 |
---|
| 3413 | else |
---|
| 3414 | CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" |
---|
| 3415 | LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" |
---|
| 3416 | DBGX="" |
---|
| 3417 | TCL_DBGX="" |
---|
| 3418 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3419 | echo "${ECHO_T}no" >&6 |
---|
| 3420 | fi |
---|
| 3421 | |
---|
| 3422 | |
---|
| 3423 | |
---|
| 3424 | |
---|
| 3425 | |
---|
| 3426 | |
---|
| 3427 | if test "${SHARED_BUILD}" = "1" ; then |
---|
| 3428 | CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS}' |
---|
| 3429 | else |
---|
| 3430 | CFLAGS='${CFLAGS_DEFAULT} ${CFLAGS_WARNING}' |
---|
| 3431 | fi |
---|
| 3432 | |
---|
| 3433 | #-------------------------------------------------------------------- |
---|
| 3434 | # Everyone should be linking against the Tcl stub library. If you |
---|
| 3435 | # can't for some reason, remove this definition. If you aren't using |
---|
| 3436 | # stubs, you also need to modify the SHLIB_LD_LIBS setting below to |
---|
| 3437 | # link against the non-stubbed Tcl library. |
---|
| 3438 | #-------------------------------------------------------------------- |
---|
| 3439 | |
---|
| 3440 | cat >>confdefs.h <<\_ACEOF |
---|
| 3441 | #define USE_TCL_STUBS 1 |
---|
| 3442 | _ACEOF |
---|
| 3443 | |
---|
| 3444 | |
---|
| 3445 | #-------------------------------------------------------------------- |
---|
| 3446 | # This macro generates a line to use when building a library. It |
---|
| 3447 | # depends on values set by the SC_ENABLE_SHARED, SC_ENABLE_SYMBOLS, |
---|
| 3448 | # and SC_LOAD_TCLCONFIG macros above. |
---|
| 3449 | #-------------------------------------------------------------------- |
---|
| 3450 | |
---|
| 3451 | |
---|
| 3452 | case "`uname -s`" in |
---|
| 3453 | *win32* | *WIN32* | *CYGWIN_NT*) |
---|
| 3454 | if test "${CC-cc}" = "cl"; then |
---|
| 3455 | MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(\$@_OBJECTS) " |
---|
| 3456 | MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LDFLAGS} \${SHLIB_LD_LIBS} \$(LDFLAGS) -out:\$@ \$(\$@_OBJECTS) " |
---|
| 3457 | fi |
---|
| 3458 | ;; |
---|
| 3459 | *) |
---|
| 3460 | MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(\$@_OBJECTS)" |
---|
| 3461 | MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(\$@_OBJECTS) \${SHLIB_LDFLAGS} \${SHLIB_LD_LIBS}" |
---|
| 3462 | ;; |
---|
| 3463 | esac |
---|
| 3464 | |
---|
| 3465 | if test "${SHARED_BUILD}" = "1" ; then |
---|
| 3466 | MAKE_LIB=${MAKE_SHARED_LIB} |
---|
| 3467 | else |
---|
| 3468 | MAKE_LIB=${MAKE_STATIC_LIB} |
---|
| 3469 | fi |
---|
| 3470 | |
---|
| 3471 | |
---|
| 3472 | |
---|
| 3473 | |
---|
| 3474 | |
---|
| 3475 | |
---|
| 3476 | #-------------------------------------------------------------------- |
---|
| 3477 | # eval these two values to dereference the ${DBGX} variable. |
---|
| 3478 | #-------------------------------------------------------------------- |
---|
| 3479 | |
---|
| 3480 | eval "SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}" |
---|
| 3481 | eval "UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}" |
---|
| 3482 | |
---|
| 3483 | #-------------------------------------------------------------------- |
---|
| 3484 | # Shared libraries and static libraries have different names. |
---|
| 3485 | #-------------------------------------------------------------------- |
---|
| 3486 | |
---|
| 3487 | case "`uname -s`" in |
---|
| 3488 | *win32* | *WIN32* | *CYGWIN_NT*) |
---|
| 3489 | if test "${SHARED_BUILD}" = "1" ; then |
---|
| 3490 | SHLIB_LD_LIBS="\"`cygpath -w ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\" ${TCL_SHLIB_LD_LIBS}" |
---|
| 3491 | eval "${PACKAGE}_LIB_FILE=${PACKAGE}${SHARED_LIB_SUFFIX}" |
---|
| 3492 | RANLIB=: |
---|
| 3493 | else |
---|
| 3494 | eval "${PACKAGE}_LIB_FILE=${PACKAGE}${UNSHARED_LIB_SUFFIX}" |
---|
| 3495 | fi |
---|
| 3496 | ;; |
---|
| 3497 | *) |
---|
| 3498 | if test "${SHARED_BUILD}" = "1" ; then |
---|
| 3499 | SHLIB_LD_LIBS="${TCL_STUB_LIB_SPEC}" |
---|
| 3500 | eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${SHARED_LIB_SUFFIX}" |
---|
| 3501 | RANLIB=: |
---|
| 3502 | else |
---|
| 3503 | eval "${PACKAGE}_LIB_FILE=lib${PACKAGE}${UNSHARED_LIB_SUFFIX}" |
---|
| 3504 | fi |
---|
| 3505 | ;; |
---|
| 3506 | esac |
---|
| 3507 | |
---|
| 3508 | #-------------------------------------------------------------------- |
---|
| 3509 | # __CHANGE__ |
---|
| 3510 | # Change the name from exampeA_LIB_FILE to match your package name. |
---|
| 3511 | #-------------------------------------------------------------------- |
---|
| 3512 | |
---|
| 3513 | |
---|
| 3514 | |
---|
| 3515 | |
---|
| 3516 | #-------------------------------------------------------------------- |
---|
| 3517 | # Find tclsh so that we can run pkg_mkIndex to generate the pkgIndex.tcl |
---|
| 3518 | # file during the install process. Don't run the TCLSH_PROG through |
---|
| 3519 | # ${CYGPATH} because it's being used directly by make. |
---|
| 3520 | # Require that we use a tclsh shell version 8.2 or later since earlier |
---|
| 3521 | # versions have bugs in the pkg_mkIndex routine. |
---|
| 3522 | #-------------------------------------------------------------------- |
---|
| 3523 | |
---|
| 3524 | for ac_prog in tclsh8.4${EXEEXT} tclsh84${EXEEXT} tclsh${EXEEXT} |
---|
| 3525 | do |
---|
| 3526 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3527 | set dummy $ac_prog; ac_word=$2 |
---|
| 3528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3530 | if test "${ac_cv_path_TCLSH_PROG+set}" = set; then |
---|
| 3531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3532 | else |
---|
| 3533 | case $TCLSH_PROG in |
---|
| 3534 | [\\/]* | ?:[\\/]*) |
---|
| 3535 | ac_cv_path_TCLSH_PROG="$TCLSH_PROG" # Let the user override the test with a path. |
---|
| 3536 | ;; |
---|
| 3537 | *) |
---|
| 3538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3539 | as_dummy="${exec_prefix}:${PATH}" |
---|
| 3540 | for as_dir in $as_dummy |
---|
| 3541 | do |
---|
| 3542 | IFS=$as_save_IFS |
---|
| 3543 | test -z "$as_dir" && as_dir=. |
---|
| 3544 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3545 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3546 | ac_cv_path_TCLSH_PROG="$as_dir/$ac_word$ac_exec_ext" |
---|
| 3547 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3548 | break 2 |
---|
| 3549 | fi |
---|
| 3550 | done |
---|
| 3551 | done |
---|
| 3552 | |
---|
| 3553 | ;; |
---|
| 3554 | esac |
---|
| 3555 | fi |
---|
| 3556 | TCLSH_PROG=$ac_cv_path_TCLSH_PROG |
---|
| 3557 | |
---|
| 3558 | if test -n "$TCLSH_PROG"; then |
---|
| 3559 | echo "$as_me:$LINENO: result: $TCLSH_PROG" >&5 |
---|
| 3560 | echo "${ECHO_T}$TCLSH_PROG" >&6 |
---|
| 3561 | else |
---|
| 3562 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3563 | echo "${ECHO_T}no" >&6 |
---|
| 3564 | fi |
---|
| 3565 | |
---|
| 3566 | test -n "$TCLSH_PROG" && break |
---|
| 3567 | done |
---|
| 3568 | test -n "$TCLSH_PROG" || TCLSH_PROG=":" |
---|
| 3569 | |
---|
| 3570 | |
---|
| 3571 | if test "x${TCLSH_PROG}" = "x:" ; then |
---|
| 3572 | { echo "$as_me:$LINENO: WARNING: No tclsh executable found. You will have to build the pkgIndex.tcl file manually." >&5 |
---|
| 3573 | echo "$as_me: WARNING: No tclsh executable found. You will have to build the pkgIndex.tcl file manually." >&2;} |
---|
| 3574 | fi |
---|
| 3575 | |
---|
| 3576 | |
---|
| 3577 | #-------------------------------------------------------------------- |
---|
| 3578 | # Finalize patchlevel and version info |
---|
| 3579 | #-------------------------------------------------------------------- |
---|
| 3580 | PATCHLEVEL=`${TCLSH_PROG} cf/patchlevel.tcl` |
---|
| 3581 | EXACT_VERSION=${MAJOR_VERSION}.${MINOR_VERSION}-${PATCHLEVEL} |
---|
| 3582 | NODOT_VERSION=${MAJOR_VERSION}${MINOR_VERSION} |
---|
| 3583 | |
---|
| 3584 | |
---|
| 3585 | |
---|
| 3586 | |
---|
| 3587 | |
---|
| 3588 | |
---|
| 3589 | |
---|
| 3590 | |
---|
| 3591 | #-------------------------------------------------------------------- |
---|
| 3592 | # Finally, substitute all of the various values into the Makefile. |
---|
| 3593 | #-------------------------------------------------------------------- |
---|
| 3594 | |
---|
| 3595 | ac_config_files="$ac_config_files Makefile pkgIndex.tcl init.tcl" |
---|
| 3596 | cat >confcache <<\_ACEOF |
---|
| 3597 | # This file is a shell script that caches the results of configure |
---|
| 3598 | # tests run on this system so they can be shared between configure |
---|
| 3599 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 3600 | # It is not useful on other systems. If it contains results you don't |
---|
| 3601 | # want to keep, you may remove or edit it. |
---|
| 3602 | # |
---|
| 3603 | # config.status only pays attention to the cache file if you give it |
---|
| 3604 | # the --recheck option to rerun configure. |
---|
| 3605 | # |
---|
| 3606 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 3607 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 3608 | # following values. |
---|
| 3609 | |
---|
| 3610 | _ACEOF |
---|
| 3611 | |
---|
| 3612 | # The following way of writing the cache mishandles newlines in values, |
---|
| 3613 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 3614 | # So, don't put newlines in cache variables' values. |
---|
| 3615 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 3616 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 3617 | { |
---|
| 3618 | (set) 2>&1 | |
---|
| 3619 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 3620 | *ac_space=\ *) |
---|
| 3621 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 3622 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 3623 | sed -n \ |
---|
| 3624 | "s/'/'\\\\''/g; |
---|
| 3625 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 3626 | ;; |
---|
| 3627 | *) |
---|
| 3628 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 3629 | sed -n \ |
---|
| 3630 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 3631 | ;; |
---|
| 3632 | esac; |
---|
| 3633 | } | |
---|
| 3634 | sed ' |
---|
| 3635 | t clear |
---|
| 3636 | : clear |
---|
| 3637 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 3638 | t end |
---|
| 3639 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 3640 | : end' >>confcache |
---|
| 3641 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 3642 | if test -w $cache_file; then |
---|
| 3643 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 3644 | cat confcache >$cache_file |
---|
| 3645 | else |
---|
| 3646 | echo "not updating unwritable cache $cache_file" |
---|
| 3647 | fi |
---|
| 3648 | fi |
---|
| 3649 | rm -f confcache |
---|
| 3650 | |
---|
| 3651 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 3652 | # Let make expand exec_prefix. |
---|
| 3653 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 3654 | |
---|
| 3655 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 3656 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 3657 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 3658 | # (actually we leave an empty line to preserve line numbers). |
---|
| 3659 | if test "x$srcdir" = x.; then |
---|
| 3660 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 3661 | s/:*\$(srcdir):*/:/; |
---|
| 3662 | s/:*\${srcdir}:*/:/; |
---|
| 3663 | s/:*@srcdir@:*/:/; |
---|
| 3664 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 3665 | s/:*$//; |
---|
| 3666 | s/^[^=]*=[ ]*$//; |
---|
| 3667 | }' |
---|
| 3668 | fi |
---|
| 3669 | |
---|
| 3670 | # Transform confdefs.h into DEFS. |
---|
| 3671 | # Protect against shell expansion while executing Makefile rules. |
---|
| 3672 | # Protect against Makefile macro expansion. |
---|
| 3673 | # |
---|
| 3674 | # If the first sed substitution is executed (which looks for macros that |
---|
| 3675 | # take arguments), then we branch to the quote section. Otherwise, |
---|
| 3676 | # look for a macro that doesn't take arguments. |
---|
| 3677 | cat >confdef2opt.sed <<\_ACEOF |
---|
| 3678 | t clear |
---|
| 3679 | : clear |
---|
| 3680 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
| 3681 | t quote |
---|
| 3682 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
| 3683 | t quote |
---|
| 3684 | d |
---|
| 3685 | : quote |
---|
| 3686 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
| 3687 | s,\[,\\&,g |
---|
| 3688 | s,\],\\&,g |
---|
| 3689 | s,\$,$$,g |
---|
| 3690 | p |
---|
| 3691 | _ACEOF |
---|
| 3692 | # We use echo to avoid assuming a particular line-breaking character. |
---|
| 3693 | # The extra dot is to prevent the shell from consuming trailing |
---|
| 3694 | # line-breaks from the sub-command output. A line-break within |
---|
| 3695 | # single-quotes doesn't work because, if this script is created in a |
---|
| 3696 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
| 3697 | # would break. |
---|
| 3698 | ac_LF_and_DOT=`echo; echo .` |
---|
| 3699 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
| 3700 | rm -f confdef2opt.sed |
---|
| 3701 | |
---|
| 3702 | |
---|
| 3703 | ac_libobjs= |
---|
| 3704 | ac_ltlibobjs= |
---|
| 3705 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 3706 | # 1. Remove the extension, and $U if already installed. |
---|
| 3707 | ac_i=`echo "$ac_i" | |
---|
| 3708 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 3709 | # 2. Add them. |
---|
| 3710 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 3711 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 3712 | done |
---|
| 3713 | LIBOBJS=$ac_libobjs |
---|
| 3714 | |
---|
| 3715 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 3716 | |
---|
| 3717 | |
---|
| 3718 | |
---|
| 3719 | : ${CONFIG_STATUS=./config.status} |
---|
| 3720 | ac_clean_files_save=$ac_clean_files |
---|
| 3721 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 3722 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 3723 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 3724 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 3725 | #! $SHELL |
---|
| 3726 | # Generated by $as_me. |
---|
| 3727 | # Run this file to recreate the current configuration. |
---|
| 3728 | # Compiler output produced by configure, useful for debugging |
---|
| 3729 | # configure, is in config.log if it exists. |
---|
| 3730 | |
---|
| 3731 | debug=false |
---|
| 3732 | ac_cs_recheck=false |
---|
| 3733 | ac_cs_silent=false |
---|
| 3734 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 3735 | _ACEOF |
---|
| 3736 | |
---|
| 3737 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 3738 | ## --------------------- ## |
---|
| 3739 | ## M4sh Initialization. ## |
---|
| 3740 | ## --------------------- ## |
---|
| 3741 | |
---|
| 3742 | # Be Bourne compatible |
---|
| 3743 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 3744 | emulate sh |
---|
| 3745 | NULLCMD=: |
---|
| 3746 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 3747 | # is contrary to our usage. Disable this feature. |
---|
| 3748 | alias -g '${1+"$@"}'='"$@"' |
---|
| 3749 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 3750 | set -o posix |
---|
| 3751 | fi |
---|
| 3752 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 3753 | |
---|
| 3754 | # Support unset when possible. |
---|
| 3755 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 3756 | as_unset=unset |
---|
| 3757 | else |
---|
| 3758 | as_unset=false |
---|
| 3759 | fi |
---|
| 3760 | |
---|
| 3761 | |
---|
| 3762 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 3763 | $as_unset ENV MAIL MAILPATH |
---|
| 3764 | PS1='$ ' |
---|
| 3765 | PS2='> ' |
---|
| 3766 | PS4='+ ' |
---|
| 3767 | |
---|
| 3768 | # NLS nuisances. |
---|
| 3769 | for as_var in \ |
---|
| 3770 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 3771 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 3772 | LC_TELEPHONE LC_TIME |
---|
| 3773 | do |
---|
| 3774 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 3775 | eval $as_var=C; export $as_var |
---|
| 3776 | else |
---|
| 3777 | $as_unset $as_var |
---|
| 3778 | fi |
---|
| 3779 | done |
---|
| 3780 | |
---|
| 3781 | # Required to use basename. |
---|
| 3782 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 3783 | as_expr=expr |
---|
| 3784 | else |
---|
| 3785 | as_expr=false |
---|
| 3786 | fi |
---|
| 3787 | |
---|
| 3788 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 3789 | as_basename=basename |
---|
| 3790 | else |
---|
| 3791 | as_basename=false |
---|
| 3792 | fi |
---|
| 3793 | |
---|
| 3794 | |
---|
| 3795 | # Name of the executable. |
---|
| 3796 | as_me=`$as_basename "$0" || |
---|
| 3797 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 3798 | X"$0" : 'X\(//\)$' \| \ |
---|
| 3799 | X"$0" : 'X\(/\)$' \| \ |
---|
| 3800 | . : '\(.\)' 2>/dev/null || |
---|
| 3801 | echo X/"$0" | |
---|
| 3802 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 3803 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 3804 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 3805 | s/.*/./; q'` |
---|
| 3806 | |
---|
| 3807 | |
---|
| 3808 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 3809 | # Avoid depending upon Character Ranges. |
---|
| 3810 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 3811 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 3812 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 3813 | as_cr_digits='0123456789' |
---|
| 3814 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 3815 | |
---|
| 3816 | # The user is always right. |
---|
| 3817 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 3818 | echo "#! /bin/sh" >conf$$.sh |
---|
| 3819 | echo "exit 0" >>conf$$.sh |
---|
| 3820 | chmod +x conf$$.sh |
---|
| 3821 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 3822 | PATH_SEPARATOR=';' |
---|
| 3823 | else |
---|
| 3824 | PATH_SEPARATOR=: |
---|
| 3825 | fi |
---|
| 3826 | rm -f conf$$.sh |
---|
| 3827 | fi |
---|
| 3828 | |
---|
| 3829 | |
---|
| 3830 | as_lineno_1=$LINENO |
---|
| 3831 | as_lineno_2=$LINENO |
---|
| 3832 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 3833 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 3834 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 3835 | # Find who we are. Look in the path if we contain no path at all |
---|
| 3836 | # relative or not. |
---|
| 3837 | case $0 in |
---|
| 3838 | *[\\/]* ) as_myself=$0 ;; |
---|
| 3839 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3840 | for as_dir in $PATH |
---|
| 3841 | do |
---|
| 3842 | IFS=$as_save_IFS |
---|
| 3843 | test -z "$as_dir" && as_dir=. |
---|
| 3844 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 3845 | done |
---|
| 3846 | |
---|
| 3847 | ;; |
---|
| 3848 | esac |
---|
| 3849 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 3850 | # in which case we are not to be found in the path. |
---|
| 3851 | if test "x$as_myself" = x; then |
---|
| 3852 | as_myself=$0 |
---|
| 3853 | fi |
---|
| 3854 | if test ! -f "$as_myself"; then |
---|
| 3855 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 3856 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 3857 | { (exit 1); exit 1; }; } |
---|
| 3858 | fi |
---|
| 3859 | case $CONFIG_SHELL in |
---|
| 3860 | '') |
---|
| 3861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3862 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 3863 | do |
---|
| 3864 | IFS=$as_save_IFS |
---|
| 3865 | test -z "$as_dir" && as_dir=. |
---|
| 3866 | for as_base in sh bash ksh sh5; do |
---|
| 3867 | case $as_dir in |
---|
| 3868 | /*) |
---|
| 3869 | if ("$as_dir/$as_base" -c ' |
---|
| 3870 | as_lineno_1=$LINENO |
---|
| 3871 | as_lineno_2=$LINENO |
---|
| 3872 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 3873 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 3874 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 3875 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 3876 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 3877 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 3878 | export CONFIG_SHELL |
---|
| 3879 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 3880 | fi;; |
---|
| 3881 | esac |
---|
| 3882 | done |
---|
| 3883 | done |
---|
| 3884 | ;; |
---|
| 3885 | esac |
---|
| 3886 | |
---|
| 3887 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 3888 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 3889 | # line-number line before each line; the second 'sed' does the real |
---|
| 3890 | # work. The second script uses 'N' to pair each line-number line |
---|
| 3891 | # with the numbered line, and appends trailing '-' during |
---|
| 3892 | # substitution so that $LINENO is not a special case at line end. |
---|
| 3893 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 3894 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 3895 | sed '=' <$as_myself | |
---|
| 3896 | sed ' |
---|
| 3897 | N |
---|
| 3898 | s,$,-, |
---|
| 3899 | : loop |
---|
| 3900 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 3901 | t loop |
---|
| 3902 | s,-$,, |
---|
| 3903 | s,^['$as_cr_digits']*\n,, |
---|
| 3904 | ' >$as_me.lineno && |
---|
| 3905 | chmod +x $as_me.lineno || |
---|
| 3906 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 3907 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 3908 | { (exit 1); exit 1; }; } |
---|
| 3909 | |
---|
| 3910 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 3911 | # (the dirname of $[0] is not the place where we might find the |
---|
| 3912 | # original and so on. Autoconf is especially sensible to this). |
---|
| 3913 | . ./$as_me.lineno |
---|
| 3914 | # Exit status is that of the last command. |
---|
| 3915 | exit |
---|
| 3916 | } |
---|
| 3917 | |
---|
| 3918 | |
---|
| 3919 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 3920 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 3921 | ' ECHO_T=' ' ;; |
---|
| 3922 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 3923 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 3924 | esac |
---|
| 3925 | |
---|
| 3926 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 3927 | as_expr=expr |
---|
| 3928 | else |
---|
| 3929 | as_expr=false |
---|
| 3930 | fi |
---|
| 3931 | |
---|
| 3932 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 3933 | echo >conf$$.file |
---|
| 3934 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 3935 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 3936 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 3937 | if test -f conf$$.exe; then |
---|
| 3938 | # Don't use ln at all; we don't have any links |
---|
| 3939 | as_ln_s='cp -p' |
---|
| 3940 | else |
---|
| 3941 | as_ln_s='ln -s' |
---|
| 3942 | fi |
---|
| 3943 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 3944 | as_ln_s=ln |
---|
| 3945 | else |
---|
| 3946 | as_ln_s='cp -p' |
---|
| 3947 | fi |
---|
| 3948 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 3949 | |
---|
| 3950 | if mkdir -p . 2>/dev/null; then |
---|
| 3951 | as_mkdir_p=: |
---|
| 3952 | else |
---|
| 3953 | test -d ./-p && rmdir ./-p |
---|
| 3954 | as_mkdir_p=false |
---|
| 3955 | fi |
---|
| 3956 | |
---|
| 3957 | as_executable_p="test -f" |
---|
| 3958 | |
---|
| 3959 | # Sed expression to map a string onto a valid CPP name. |
---|
| 3960 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 3961 | |
---|
| 3962 | # Sed expression to map a string onto a valid variable name. |
---|
| 3963 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 3964 | |
---|
| 3965 | |
---|
| 3966 | # IFS |
---|
| 3967 | # We need space, tab and new line, in precisely that order. |
---|
| 3968 | as_nl=' |
---|
| 3969 | ' |
---|
| 3970 | IFS=" $as_nl" |
---|
| 3971 | |
---|
| 3972 | # CDPATH. |
---|
| 3973 | $as_unset CDPATH |
---|
| 3974 | |
---|
| 3975 | exec 6>&1 |
---|
| 3976 | |
---|
| 3977 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 3978 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 3979 | # values after options handling. Logging --version etc. is OK. |
---|
| 3980 | exec 5>>config.log |
---|
| 3981 | { |
---|
| 3982 | echo |
---|
| 3983 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 3984 | ## Running $as_me. ## |
---|
| 3985 | _ASBOX |
---|
| 3986 | } >&5 |
---|
| 3987 | cat >&5 <<_CSEOF |
---|
| 3988 | |
---|
| 3989 | This file was extended by $as_me, which was |
---|
| 3990 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 3991 | |
---|
| 3992 | CONFIG_FILES = $CONFIG_FILES |
---|
| 3993 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 3994 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 3995 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 3996 | $ $0 $@ |
---|
| 3997 | |
---|
| 3998 | _CSEOF |
---|
| 3999 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 4000 | echo >&5 |
---|
| 4001 | _ACEOF |
---|
| 4002 | |
---|
| 4003 | # Files that config.status was made for. |
---|
| 4004 | if test -n "$ac_config_files"; then |
---|
| 4005 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 4006 | fi |
---|
| 4007 | |
---|
| 4008 | if test -n "$ac_config_headers"; then |
---|
| 4009 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 4010 | fi |
---|
| 4011 | |
---|
| 4012 | if test -n "$ac_config_links"; then |
---|
| 4013 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 4014 | fi |
---|
| 4015 | |
---|
| 4016 | if test -n "$ac_config_commands"; then |
---|
| 4017 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 4018 | fi |
---|
| 4019 | |
---|
| 4020 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4021 | |
---|
| 4022 | ac_cs_usage="\ |
---|
| 4023 | \`$as_me' instantiates files from templates according to the |
---|
| 4024 | current configuration. |
---|
| 4025 | |
---|
| 4026 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 4027 | |
---|
| 4028 | -h, --help print this help, then exit |
---|
| 4029 | -V, --version print version number, then exit |
---|
| 4030 | -q, --quiet do not print progress messages |
---|
| 4031 | -d, --debug don't remove temporary files |
---|
| 4032 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 4033 | --file=FILE[:TEMPLATE] |
---|
| 4034 | instantiate the configuration file FILE |
---|
| 4035 | |
---|
| 4036 | Configuration files: |
---|
| 4037 | $config_files |
---|
| 4038 | |
---|
| 4039 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 4040 | _ACEOF |
---|
| 4041 | |
---|
| 4042 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 4043 | ac_cs_version="\\ |
---|
| 4044 | config.status |
---|
| 4045 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 4046 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 4047 | |
---|
| 4048 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 4049 | This config.status script is free software; the Free Software Foundation |
---|
| 4050 | gives unlimited permission to copy, distribute and modify it." |
---|
| 4051 | srcdir=$srcdir |
---|
| 4052 | INSTALL="$INSTALL" |
---|
| 4053 | _ACEOF |
---|
| 4054 | |
---|
| 4055 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4056 | # If no file are specified by the user, then we need to provide default |
---|
| 4057 | # value. By we need to know if files were specified by the user. |
---|
| 4058 | ac_need_defaults=: |
---|
| 4059 | while test $# != 0 |
---|
| 4060 | do |
---|
| 4061 | case $1 in |
---|
| 4062 | --*=*) |
---|
| 4063 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 4064 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 4065 | ac_shift=: |
---|
| 4066 | ;; |
---|
| 4067 | -*) |
---|
| 4068 | ac_option=$1 |
---|
| 4069 | ac_optarg=$2 |
---|
| 4070 | ac_shift=shift |
---|
| 4071 | ;; |
---|
| 4072 | *) # This is not an option, so the user has probably given explicit |
---|
| 4073 | # arguments. |
---|
| 4074 | ac_option=$1 |
---|
| 4075 | ac_need_defaults=false;; |
---|
| 4076 | esac |
---|
| 4077 | |
---|
| 4078 | case $ac_option in |
---|
| 4079 | # Handling of the options. |
---|
| 4080 | _ACEOF |
---|
| 4081 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4082 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 4083 | ac_cs_recheck=: ;; |
---|
| 4084 | --version | --vers* | -V ) |
---|
| 4085 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 4086 | --he | --h) |
---|
| 4087 | # Conflict between --help and --header |
---|
| 4088 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 4089 | Try \`$0 --help' for more information." >&5 |
---|
| 4090 | echo "$as_me: error: ambiguous option: $1 |
---|
| 4091 | Try \`$0 --help' for more information." >&2;} |
---|
| 4092 | { (exit 1); exit 1; }; };; |
---|
| 4093 | --help | --hel | -h ) |
---|
| 4094 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 4095 | --debug | --d* | -d ) |
---|
| 4096 | debug=: ;; |
---|
| 4097 | --file | --fil | --fi | --f ) |
---|
| 4098 | $ac_shift |
---|
| 4099 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 4100 | ac_need_defaults=false;; |
---|
| 4101 | --header | --heade | --head | --hea ) |
---|
| 4102 | $ac_shift |
---|
| 4103 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 4104 | ac_need_defaults=false;; |
---|
| 4105 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 4106 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 4107 | ac_cs_silent=: ;; |
---|
| 4108 | |
---|
| 4109 | # This is an error. |
---|
| 4110 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 4111 | Try \`$0 --help' for more information." >&5 |
---|
| 4112 | echo "$as_me: error: unrecognized option: $1 |
---|
| 4113 | Try \`$0 --help' for more information." >&2;} |
---|
| 4114 | { (exit 1); exit 1; }; } ;; |
---|
| 4115 | |
---|
| 4116 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 4117 | |
---|
| 4118 | esac |
---|
| 4119 | shift |
---|
| 4120 | done |
---|
| 4121 | |
---|
| 4122 | ac_configure_extra_args= |
---|
| 4123 | |
---|
| 4124 | if $ac_cs_silent; then |
---|
| 4125 | exec 6>/dev/null |
---|
| 4126 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 4127 | fi |
---|
| 4128 | |
---|
| 4129 | _ACEOF |
---|
| 4130 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 4131 | if \$ac_cs_recheck; then |
---|
| 4132 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 4133 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 4134 | fi |
---|
| 4135 | |
---|
| 4136 | _ACEOF |
---|
| 4137 | |
---|
| 4138 | |
---|
| 4139 | |
---|
| 4140 | |
---|
| 4141 | |
---|
| 4142 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4143 | for ac_config_target in $ac_config_targets |
---|
| 4144 | do |
---|
| 4145 | case "$ac_config_target" in |
---|
| 4146 | # Handling of arguments. |
---|
| 4147 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 4148 | "pkgIndex.tcl" ) CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; |
---|
| 4149 | "init.tcl" ) CONFIG_FILES="$CONFIG_FILES init.tcl" ;; |
---|
| 4150 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 4151 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 4152 | { (exit 1); exit 1; }; };; |
---|
| 4153 | esac |
---|
| 4154 | done |
---|
| 4155 | |
---|
| 4156 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 4157 | # then the envvar interface is used. Set only those that are not. |
---|
| 4158 | # We use the long form for the default assignment because of an extremely |
---|
| 4159 | # bizarre bug on SunOS 4.1.3. |
---|
| 4160 | if $ac_need_defaults; then |
---|
| 4161 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 4162 | fi |
---|
| 4163 | |
---|
| 4164 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 4165 | # simply because there is no reason to put it here, and in addition, |
---|
| 4166 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 4167 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 4168 | $debug || |
---|
| 4169 | { |
---|
| 4170 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 4171 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 4172 | } |
---|
| 4173 | |
---|
| 4174 | # Create a (secure) tmp directory for tmp files. |
---|
| 4175 | |
---|
| 4176 | { |
---|
| 4177 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 4178 | test -n "$tmp" && test -d "$tmp" |
---|
| 4179 | } || |
---|
| 4180 | { |
---|
| 4181 | tmp=./confstat$$-$RANDOM |
---|
| 4182 | (umask 077 && mkdir $tmp) |
---|
| 4183 | } || |
---|
| 4184 | { |
---|
| 4185 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 4186 | { (exit 1); exit 1; } |
---|
| 4187 | } |
---|
| 4188 | |
---|
| 4189 | _ACEOF |
---|
| 4190 | |
---|
| 4191 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 4192 | |
---|
| 4193 | # |
---|
| 4194 | # CONFIG_FILES section. |
---|
| 4195 | # |
---|
| 4196 | |
---|
| 4197 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 4198 | # This happens for instance when ./config.status config.h |
---|
| 4199 | if test -n "\$CONFIG_FILES"; then |
---|
| 4200 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 4201 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 4202 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 4203 | s,@SHELL@,$SHELL,;t t |
---|
| 4204 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 4205 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 4206 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 4207 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 4208 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 4209 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 4210 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 4211 | s,@prefix@,$prefix,;t t |
---|
| 4212 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 4213 | s,@bindir@,$bindir,;t t |
---|
| 4214 | s,@sbindir@,$sbindir,;t t |
---|
| 4215 | s,@libexecdir@,$libexecdir,;t t |
---|
| 4216 | s,@datadir@,$datadir,;t t |
---|
| 4217 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 4218 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 4219 | s,@localstatedir@,$localstatedir,;t t |
---|
| 4220 | s,@libdir@,$libdir,;t t |
---|
| 4221 | s,@includedir@,$includedir,;t t |
---|
| 4222 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 4223 | s,@infodir@,$infodir,;t t |
---|
| 4224 | s,@mandir@,$mandir,;t t |
---|
| 4225 | s,@build_alias@,$build_alias,;t t |
---|
| 4226 | s,@host_alias@,$host_alias,;t t |
---|
| 4227 | s,@target_alias@,$target_alias,;t t |
---|
| 4228 | s,@DEFS@,$DEFS,;t t |
---|
| 4229 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 4230 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 4231 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 4232 | s,@LIBS@,$LIBS,;t t |
---|
| 4233 | s,@CXX@,$CXX,;t t |
---|
| 4234 | s,@CXXFLAGS@,$CXXFLAGS,;t t |
---|
| 4235 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 4236 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 4237 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
---|
| 4238 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 4239 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 4240 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 4241 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 4242 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 4243 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 4244 | s,@RANLIB@,$RANLIB,;t t |
---|
| 4245 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
| 4246 | s,@build@,$build,;t t |
---|
| 4247 | s,@build_cpu@,$build_cpu,;t t |
---|
| 4248 | s,@build_vendor@,$build_vendor,;t t |
---|
| 4249 | s,@build_os@,$build_os,;t t |
---|
| 4250 | s,@host@,$host,;t t |
---|
| 4251 | s,@host_cpu@,$host_cpu,;t t |
---|
| 4252 | s,@host_vendor@,$host_vendor,;t t |
---|
| 4253 | s,@host_os@,$host_os,;t t |
---|
| 4254 | s,@CYGPATH@,$CYGPATH,;t t |
---|
| 4255 | s,@TCL_INCLUDES@,$TCL_INCLUDES,;t t |
---|
| 4256 | s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t |
---|
| 4257 | s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t |
---|
| 4258 | s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t |
---|
| 4259 | s,@TCL_LIBS@,$TCL_LIBS,;t t |
---|
| 4260 | s,@TCL_DEFS@,$TCL_DEFS,;t t |
---|
| 4261 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t |
---|
| 4262 | s,@TCL_EXTRA_CFLAGS@,$TCL_EXTRA_CFLAGS,;t t |
---|
| 4263 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t |
---|
| 4264 | s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t |
---|
| 4265 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t |
---|
| 4266 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t |
---|
| 4267 | s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t |
---|
| 4268 | s,@TCL_BUILD_STUB_LIB_SPEC@,$TCL_BUILD_STUB_LIB_SPEC,;t t |
---|
[225] | 4269 | s,@BLT_SRC_DIR@,$BLT_SRC_DIR,;t t |
---|
[204] | 4270 | s,@CLEANFILES@,$CLEANFILES,;t t |
---|
| 4271 | s,@CC@,$CC,;t t |
---|
| 4272 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 4273 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 4274 | s,@CFLAGS_DEBUG@,$CFLAGS_DEBUG,;t t |
---|
| 4275 | s,@CFLAGS_OPTIMIZE@,$CFLAGS_OPTIMIZE,;t t |
---|
| 4276 | s,@STLIB_LD@,$STLIB_LD,;t t |
---|
| 4277 | s,@SHLIB_LD@,$SHLIB_LD,;t t |
---|
| 4278 | s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t |
---|
| 4279 | s,@SHLIB_LDFLAGS@,$SHLIB_LDFLAGS,;t t |
---|
| 4280 | s,@TCL_DBGX@,$TCL_DBGX,;t t |
---|
| 4281 | s,@CFLAGS_DEFAULT@,$CFLAGS_DEFAULT,;t t |
---|
| 4282 | s,@LDFLAGS_DEFAULT@,$LDFLAGS_DEFAULT,;t t |
---|
| 4283 | s,@MAKE_LIB@,$MAKE_LIB,;t t |
---|
| 4284 | s,@MAKE_SHARED_LIB@,$MAKE_SHARED_LIB,;t t |
---|
| 4285 | s,@MAKE_STATIC_LIB@,$MAKE_STATIC_LIB,;t t |
---|
[207] | 4286 | s,@Rappture_LIB_FILE@,$Rappture_LIB_FILE,;t t |
---|
[204] | 4287 | s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t |
---|
| 4288 | s,@TCLSH_PROG@,$TCLSH_PROG,;t t |
---|
| 4289 | s,@PACKAGE@,$PACKAGE,;t t |
---|
| 4290 | s,@VERSION@,$VERSION,;t t |
---|
| 4291 | s,@PATCHLEVEL@,$PATCHLEVEL,;t t |
---|
| 4292 | s,@EXACT_VERSION@,$EXACT_VERSION,;t t |
---|
| 4293 | s,@NODOT_VERSION@,$NODOT_VERSION,;t t |
---|
| 4294 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 4295 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 4296 | CEOF |
---|
| 4297 | |
---|
| 4298 | _ACEOF |
---|
| 4299 | |
---|
| 4300 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4301 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 4302 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 4303 | ac_max_sed_lines=48 |
---|
| 4304 | ac_sed_frag=1 # Number of current file. |
---|
| 4305 | ac_beg=1 # First line for current file. |
---|
| 4306 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 4307 | ac_more_lines=: |
---|
| 4308 | ac_sed_cmds= |
---|
| 4309 | while $ac_more_lines; do |
---|
| 4310 | if test $ac_beg -gt 1; then |
---|
| 4311 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 4312 | else |
---|
| 4313 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 4314 | fi |
---|
| 4315 | if test ! -s $tmp/subs.frag; then |
---|
| 4316 | ac_more_lines=false |
---|
| 4317 | else |
---|
| 4318 | # The purpose of the label and of the branching condition is to |
---|
| 4319 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 4320 | # is no need to browse any of the substitutions). |
---|
| 4321 | # These are the two extra sed commands mentioned above. |
---|
| 4322 | (echo ':t |
---|
| 4323 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 4324 | if test -z "$ac_sed_cmds"; then |
---|
| 4325 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 4326 | else |
---|
| 4327 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 4328 | fi |
---|
| 4329 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 4330 | ac_beg=$ac_end |
---|
| 4331 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 4332 | fi |
---|
| 4333 | done |
---|
| 4334 | if test -z "$ac_sed_cmds"; then |
---|
| 4335 | ac_sed_cmds=cat |
---|
| 4336 | fi |
---|
| 4337 | fi # test -n "$CONFIG_FILES" |
---|
| 4338 | |
---|
| 4339 | _ACEOF |
---|
| 4340 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4341 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 4342 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 4343 | case $ac_file in |
---|
| 4344 | - | *:- | *:-:* ) # input from stdin |
---|
| 4345 | cat >$tmp/stdin |
---|
| 4346 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 4347 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 4348 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 4349 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 4350 | * ) ac_file_in=$ac_file.in ;; |
---|
| 4351 | esac |
---|
| 4352 | |
---|
| 4353 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 4354 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 4355 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 4356 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 4357 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 4358 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 4359 | . : '\(.\)' 2>/dev/null || |
---|
| 4360 | echo X"$ac_file" | |
---|
| 4361 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 4362 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 4363 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 4364 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 4365 | s/.*/./; q'` |
---|
| 4366 | { if $as_mkdir_p; then |
---|
| 4367 | mkdir -p "$ac_dir" |
---|
| 4368 | else |
---|
| 4369 | as_dir="$ac_dir" |
---|
| 4370 | as_dirs= |
---|
| 4371 | while test ! -d "$as_dir"; do |
---|
| 4372 | as_dirs="$as_dir $as_dirs" |
---|
| 4373 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 4374 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 4375 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 4376 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 4377 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 4378 | . : '\(.\)' 2>/dev/null || |
---|
| 4379 | echo X"$as_dir" | |
---|
| 4380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 4381 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 4382 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 4383 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 4384 | s/.*/./; q'` |
---|
| 4385 | done |
---|
| 4386 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 4387 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 4388 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 4389 | { (exit 1); exit 1; }; }; } |
---|
| 4390 | |
---|
| 4391 | ac_builddir=. |
---|
| 4392 | |
---|
| 4393 | if test "$ac_dir" != .; then |
---|
| 4394 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 4395 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 4396 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 4397 | else |
---|
| 4398 | ac_dir_suffix= ac_top_builddir= |
---|
| 4399 | fi |
---|
| 4400 | |
---|
| 4401 | case $srcdir in |
---|
| 4402 | .) # No --srcdir option. We are building in place. |
---|
| 4403 | ac_srcdir=. |
---|
| 4404 | if test -z "$ac_top_builddir"; then |
---|
| 4405 | ac_top_srcdir=. |
---|
| 4406 | else |
---|
| 4407 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 4408 | fi ;; |
---|
| 4409 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 4410 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 4411 | ac_top_srcdir=$srcdir ;; |
---|
| 4412 | *) # Relative path. |
---|
| 4413 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 4414 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 4415 | esac |
---|
| 4416 | |
---|
| 4417 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 4418 | # the directories may not exist. |
---|
| 4419 | case `pwd` in |
---|
| 4420 | .) ac_abs_builddir="$ac_dir";; |
---|
| 4421 | *) |
---|
| 4422 | case "$ac_dir" in |
---|
| 4423 | .) ac_abs_builddir=`pwd`;; |
---|
| 4424 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 4425 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 4426 | esac;; |
---|
| 4427 | esac |
---|
| 4428 | case $ac_abs_builddir in |
---|
| 4429 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 4430 | *) |
---|
| 4431 | case ${ac_top_builddir}. in |
---|
| 4432 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 4433 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 4434 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 4435 | esac;; |
---|
| 4436 | esac |
---|
| 4437 | case $ac_abs_builddir in |
---|
| 4438 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 4439 | *) |
---|
| 4440 | case $ac_srcdir in |
---|
| 4441 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 4442 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 4443 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 4444 | esac;; |
---|
| 4445 | esac |
---|
| 4446 | case $ac_abs_builddir in |
---|
| 4447 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 4448 | *) |
---|
| 4449 | case $ac_top_srcdir in |
---|
| 4450 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 4451 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 4452 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 4453 | esac;; |
---|
| 4454 | esac |
---|
| 4455 | |
---|
| 4456 | |
---|
| 4457 | case $INSTALL in |
---|
| 4458 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 4459 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 4460 | esac |
---|
| 4461 | |
---|
| 4462 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 4463 | # use $as_me), people would be surprised to read: |
---|
| 4464 | # /* config.h. Generated by config.status. */ |
---|
| 4465 | if test x"$ac_file" = x-; then |
---|
| 4466 | configure_input= |
---|
| 4467 | else |
---|
| 4468 | configure_input="$ac_file. " |
---|
| 4469 | fi |
---|
| 4470 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 4471 | sed 's,.*/,,'` by configure." |
---|
| 4472 | |
---|
| 4473 | # First look for the input files in the build tree, otherwise in the |
---|
| 4474 | # src tree. |
---|
| 4475 | ac_file_inputs=`IFS=: |
---|
| 4476 | for f in $ac_file_in; do |
---|
| 4477 | case $f in |
---|
| 4478 | -) echo $tmp/stdin ;; |
---|
| 4479 | [\\/$]*) |
---|
| 4480 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 4481 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 4482 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 4483 | { (exit 1); exit 1; }; } |
---|
| 4484 | echo "$f";; |
---|
| 4485 | *) # Relative |
---|
| 4486 | if test -f "$f"; then |
---|
| 4487 | # Build tree |
---|
| 4488 | echo "$f" |
---|
| 4489 | elif test -f "$srcdir/$f"; then |
---|
| 4490 | # Source tree |
---|
| 4491 | echo "$srcdir/$f" |
---|
| 4492 | else |
---|
| 4493 | # /dev/null tree |
---|
| 4494 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 4495 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 4496 | { (exit 1); exit 1; }; } |
---|
| 4497 | fi;; |
---|
| 4498 | esac |
---|
| 4499 | done` || { (exit 1); exit 1; } |
---|
| 4500 | |
---|
| 4501 | if test x"$ac_file" != x-; then |
---|
| 4502 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 4503 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 4504 | rm -f "$ac_file" |
---|
| 4505 | fi |
---|
| 4506 | _ACEOF |
---|
| 4507 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 4508 | sed "$ac_vpsub |
---|
| 4509 | $extrasub |
---|
| 4510 | _ACEOF |
---|
| 4511 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4512 | :t |
---|
| 4513 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 4514 | s,@configure_input@,$configure_input,;t t |
---|
| 4515 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 4516 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 4517 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 4518 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 4519 | s,@builddir@,$ac_builddir,;t t |
---|
| 4520 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 4521 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 4522 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 4523 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 4524 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 4525 | rm -f $tmp/stdin |
---|
| 4526 | if test x"$ac_file" != x-; then |
---|
| 4527 | mv $tmp/out $ac_file |
---|
| 4528 | else |
---|
| 4529 | cat $tmp/out |
---|
| 4530 | rm -f $tmp/out |
---|
| 4531 | fi |
---|
| 4532 | |
---|
| 4533 | done |
---|
| 4534 | _ACEOF |
---|
| 4535 | |
---|
| 4536 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 4537 | |
---|
| 4538 | { (exit 0); exit 0; } |
---|
| 4539 | _ACEOF |
---|
| 4540 | chmod +x $CONFIG_STATUS |
---|
| 4541 | ac_clean_files=$ac_clean_files_save |
---|
| 4542 | |
---|
| 4543 | |
---|
| 4544 | # configure is writing to config.log, and then calls config.status. |
---|
| 4545 | # config.status does its own redirection, appending to config.log. |
---|
| 4546 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 4547 | # by configure, so config.status won't be able to write to it; its |
---|
| 4548 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 4549 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 4550 | # appended to by config.status. When coming back to configure, we |
---|
| 4551 | # need to make the FD available again. |
---|
| 4552 | if test "$no_create" != yes; then |
---|
| 4553 | ac_cs_success=: |
---|
| 4554 | ac_config_status_args= |
---|
| 4555 | test "$silent" = yes && |
---|
| 4556 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 4557 | exec 5>/dev/null |
---|
| 4558 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 4559 | exec 5>>config.log |
---|
| 4560 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 4561 | # would make configure fail if this is the last instruction. |
---|
| 4562 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 4563 | fi |
---|
| 4564 | |
---|