| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.72 for tcl 8.6. |
| 4 | # |
| 5 | # |
| 6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, |
| 7 | # Inc. |
| 8 | # |
| 9 | # |
| 10 | # This configure script is free software; the Free Software Foundation |
| 11 | # gives unlimited permission to copy, distribute and modify it. |
| 12 | ## -------------------- ## |
| 13 | ## M4sh Initialization. ## |
| 14 | ## -------------------- ## |
| 15 | |
| 16 | # Be more Bourne compatible |
| 17 | DUALCASE=1; export DUALCASE # for MKS sh |
| 18 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 19 | then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else case e in #( |
| 27 | e) case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac ;; |
| 33 | esac |
| 34 | fi |
| 35 | |
| 36 | |
| 37 | |
| 38 | # Reset variables that may have inherited troublesome values from |
| 39 | # the environment. |
| 40 | |
| 41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 43 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 44 | # Quoting is to prevent editors from complaining about space-tab. |
| 45 | as_nl=' |
| 46 | ' |
| 47 | export as_nl |
| 48 | IFS=" "" $as_nl" |
| 49 | |
| 50 | PS1='$ ' |
| 51 | PS2='> ' |
| 52 | PS4='+ ' |
| 53 | |
| 54 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 55 | LC_ALL=C |
| 56 | export LC_ALL |
| 57 | LANGUAGE=C |
| 58 | export LANGUAGE |
| 59 | |
| 60 | # We cannot yet rely on "unset" to work, but we need these variables |
| 61 | # to be unset--not just set to an empty or harmless value--now, to |
| 62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 63 | # also avoids known problems related to "unset" and subshell syntax |
| 64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 66 | do eval test \${$as_var+y} \ |
| 67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 68 | done |
| 69 | |
| 70 | # Ensure that fds 0, 1, and 2 are open. |
| 71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 74 | |
| 75 | # The user is always right. |
| 76 | if ${PATH_SEPARATOR+false} :; then |
| 77 | PATH_SEPARATOR=: |
| 78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 | PATH_SEPARATOR=';' |
| 81 | } |
| 82 | fi |
| 83 | |
| 84 | |
| 85 | # Find who we are. Look in the path if we contain no directory separator. |
| 86 | as_myself= |
| 87 | case $0 in #(( |
| 88 | *[\\/]* ) as_myself=$0 ;; |
| 89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 90 | for as_dir in $PATH |
| 91 | do |
| 92 | IFS=$as_save_IFS |
| 93 | case $as_dir in #((( |
| 94 | '') as_dir=./ ;; |
| 95 | */) ;; |
| 96 | *) as_dir=$as_dir/ ;; |
| 97 | esac |
| 98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 99 | done |
| 100 | IFS=$as_save_IFS |
| 101 | |
| 102 | ;; |
| 103 | esac |
| 104 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 105 | # in which case we are not to be found in the path. |
| 106 | if test "x$as_myself" = x; then |
| 107 | as_myself=$0 |
| 108 | fi |
| 109 | if test ! -f "$as_myself"; then |
| 110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 | exit 1 |
| 112 | fi |
| 113 | |
| 114 | |
| 115 | # Use a proper internal environment variable to ensure we don't fall |
| 116 | # into an infinite loop, continuously re-executing ourselves. |
| 117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 118 | _as_can_reexec=no; export _as_can_reexec; |
| 119 | # We cannot yet assume a decent shell, so we have to provide a |
| 120 | # neutralization value for shells without unset; and this also |
| 121 | # works around shells that cannot unset nonexistent variables. |
| 122 | # Preserve -v and -x to the replacement shell. |
| 123 | BASH_ENV=/dev/null |
| 124 | ENV=/dev/null |
| 125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 126 | case $- in # (((( |
| 127 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 128 | *v* ) as_opts=-v ;; |
| 129 | *x* ) as_opts=-x ;; |
| 130 | * ) as_opts= ;; |
| 131 | esac |
| 132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 133 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 134 | # out after a failed 'exec'. |
| 135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 136 | exit 255 |
| 137 | fi |
| 138 | # We don't want this to propagate to other subprocesses. |
| 139 | { _as_can_reexec=; unset _as_can_reexec;} |
| 140 | if test "x$CONFIG_SHELL" = x; then |
| 141 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 142 | then : |
| 143 | emulate sh |
| 144 | NULLCMD=: |
| 145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 146 | # is contrary to our usage. Disable this feature. |
| 147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 148 | setopt NO_GLOB_SUBST |
| 149 | else case e in #( |
| 150 | e) case \`(set -o) 2>/dev/null\` in #( |
| 151 | *posix*) : |
| 152 | set -o posix ;; #( |
| 153 | *) : |
| 154 | ;; |
| 155 | esac ;; |
| 156 | esac |
| 157 | fi |
| 158 | " |
| 159 | as_required="as_fn_return () { (exit \$1); } |
| 160 | as_fn_success () { as_fn_return 0; } |
| 161 | as_fn_failure () { as_fn_return 1; } |
| 162 | as_fn_ret_success () { return 0; } |
| 163 | as_fn_ret_failure () { return 1; } |
| 164 | |
| 165 | exitcode=0 |
| 166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 171 | then : |
| 172 | |
| 173 | else case e in #( |
| 174 | e) exitcode=1; echo positional parameters were not saved. ;; |
| 175 | esac |
| 176 | fi |
| 177 | test x\$exitcode = x0 || exit 1 |
| 178 | blah=\$(echo \$(echo blah)) |
| 179 | test x\"\$blah\" = xblah || exit 1 |
| 180 | test -x / || exit 1" |
| 181 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 182 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 183 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 184 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 185 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 186 | if (eval "$as_required") 2>/dev/null |
| 187 | then : |
| 188 | as_have_required=yes |
| 189 | else case e in #( |
| 190 | e) as_have_required=no ;; |
| 191 | esac |
| 192 | fi |
| 193 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 194 | then : |
| 195 | |
| 196 | else case e in #( |
| 197 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 198 | as_found=false |
| 199 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 200 | do |
| 201 | IFS=$as_save_IFS |
| 202 | case $as_dir in #((( |
| 203 | '') as_dir=./ ;; |
| 204 | */) ;; |
| 205 | *) as_dir=$as_dir/ ;; |
| 206 | esac |
| 207 | as_found=: |
| 208 | case $as_dir in #( |
| 209 | /*) |
| 210 | for as_base in sh bash ksh sh5; do |
| 211 | # Try only shells that exist, to save several forks. |
| 212 | as_shell=$as_dir$as_base |
| 213 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 214 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 215 | then : |
| 216 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 217 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 218 | then : |
| 219 | break 2 |
| 220 | fi |
| 221 | fi |
| 222 | done;; |
| 223 | esac |
| 224 | as_found=false |
| 225 | done |
| 226 | IFS=$as_save_IFS |
| 227 | if $as_found |
| 228 | then : |
| 229 | |
| 230 | else case e in #( |
| 231 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 233 | then : |
| 234 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 235 | fi ;; |
| 236 | esac |
| 237 | fi |
| 238 | |
| 239 | |
| 240 | if test "x$CONFIG_SHELL" != x |
| 241 | then : |
| 242 | export CONFIG_SHELL |
| 243 | # We cannot yet assume a decent shell, so we have to provide a |
| 244 | # neutralization value for shells without unset; and this also |
| 245 | # works around shells that cannot unset nonexistent variables. |
| 246 | # Preserve -v and -x to the replacement shell. |
| 247 | BASH_ENV=/dev/null |
| 248 | ENV=/dev/null |
| 249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 250 | case $- in # (((( |
| 251 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 252 | *v* ) as_opts=-v ;; |
| 253 | *x* ) as_opts=-x ;; |
| 254 | * ) as_opts= ;; |
| 255 | esac |
| 256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 257 | # Admittedly, this is quite paranoid, since all the known shells bail |
| 258 | # out after a failed 'exec'. |
| 259 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 260 | exit 255 |
| 261 | fi |
| 262 | |
| 263 | if test x$as_have_required = xno |
| 264 | then : |
| 265 | printf "%s\n" "$0: This script requires a shell more modern than all" |
| 266 | printf "%s\n" "$0: the shells that I found on your system." |
| 267 | if test ${ZSH_VERSION+y} ; then |
| 268 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 269 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 270 | else |
| 271 | printf "%s\n" "$0: Please tell [email protected] about your system, |
| 272 | $0: including any error possibly output before this |
| 273 | $0: message. Then install a modern shell, or manually run |
| 274 | $0: the script under such a shell if you do have one." |
| 275 | fi |
| 276 | exit 1 |
| 277 | fi ;; |
| 278 | esac |
| 279 | fi |
| 280 | fi |
| 281 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 282 | export SHELL |
| 283 | # Unset more variables known to interfere with behavior of common tools. |
| 284 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 285 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 286 | |
| 287 | ## --------------------- ## |
| 288 | ## M4sh Shell Functions. ## |
| 289 | ## --------------------- ## |
| 290 | # as_fn_unset VAR |
| 291 | # --------------- |
| 292 | # Portably unset VAR. |
| 293 | as_fn_unset () |
| 294 | { |
| 295 | { eval $1=; unset $1;} |
| 296 | } |
| 297 | as_unset=as_fn_unset |
| 298 | |
| 299 | |
| 300 | # as_fn_set_status STATUS |
| 301 | # ----------------------- |
| 302 | # Set $? to STATUS, without forking. |
| 303 | as_fn_set_status () |
| 304 | { |
| 305 | return $1 |
| 306 | } # as_fn_set_status |
| 307 | |
| 308 | # as_fn_exit STATUS |
| 309 | # ----------------- |
| 310 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 311 | as_fn_exit () |
| 312 | { |
| 313 | set +e |
| 314 | as_fn_set_status $1 |
| 315 | exit $1 |
| 316 | } # as_fn_exit |
| 317 | |
| 318 | # as_fn_mkdir_p |
| 319 | # ------------- |
| 320 | # Create "$as_dir" as a directory, including parents if necessary. |
| 321 | as_fn_mkdir_p () |
| 322 | { |
| 323 | |
| 324 | case $as_dir in #( |
| 325 | -*) as_dir=./$as_dir;; |
| 326 | esac |
| 327 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 328 | as_dirs= |
| 329 | while :; do |
| 330 | case $as_dir in #( |
| 331 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 332 | *) as_qdir=$as_dir;; |
| 333 | esac |
| 334 | as_dirs="'$as_qdir' $as_dirs" |
| 335 | as_dir=`$as_dirname -- "$as_dir" || |
| 336 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 337 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 338 | X"$as_dir" : 'X\(//\)$' \| \ |
| 339 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 340 | printf "%s\n" X"$as_dir" | |
| 341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 342 | s//\1/ |
| 343 | q |
| 344 | } |
| 345 | /^X\(\/\/\)[^/].*/{ |
| 346 | s//\1/ |
| 347 | q |
| 348 | } |
| 349 | /^X\(\/\/\)$/{ |
| 350 | s//\1/ |
| 351 | q |
| 352 | } |
| 353 | /^X\(\/\).*/{ |
| 354 | s//\1/ |
| 355 | q |
| 356 | } |
| 357 | s/.*/./; q'` |
| 358 | test -d "$as_dir" && break |
| 359 | done |
| 360 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 361 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 362 | |
| 363 | |
| 364 | } # as_fn_mkdir_p |
| 365 | |
| 366 | # as_fn_executable_p FILE |
| 367 | # ----------------------- |
| 368 | # Test if FILE is an executable regular file. |
| 369 | as_fn_executable_p () |
| 370 | { |
| 371 | test -f "$1" && test -x "$1" |
| 372 | } # as_fn_executable_p |
| 373 | # as_fn_append VAR VALUE |
| 374 | # ---------------------- |
| 375 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 376 | # advantage of any shell optimizations that allow amortized linear growth over |
| 377 | # repeated appends, instead of the typical quadratic growth present in naive |
| 378 | # implementations. |
| 379 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 380 | then : |
| 381 | eval 'as_fn_append () |
| 382 | { |
| 383 | eval $1+=\$2 |
| 384 | }' |
| 385 | else case e in #( |
| 386 | e) as_fn_append () |
| 387 | { |
| 388 | eval $1=\$$1\$2 |
| 389 | } ;; |
| 390 | esac |
| 391 | fi # as_fn_append |
| 392 | |
| 393 | # as_fn_arith ARG... |
| 394 | # ------------------ |
| 395 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 397 | # must be portable across $(()) and expr. |
| 398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 399 | then : |
| 400 | eval 'as_fn_arith () |
| 401 | { |
| 402 | as_val=$(( $* )) |
| 403 | }' |
| 404 | else case e in #( |
| 405 | e) as_fn_arith () |
| 406 | { |
| 407 | as_val=`expr "$@" || test $? -eq 1` |
| 408 | } ;; |
| 409 | esac |
| 410 | fi # as_fn_arith |
| 411 | |
| 412 | |
| 413 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 414 | # ---------------------------------------- |
| 415 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 416 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 417 | # script with STATUS, using 1 if that was 0. |
| 418 | as_fn_error () |
| 419 | { |
| 420 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 421 | if test "$4"; then |
| 422 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 423 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 424 | fi |
| 425 | printf "%s\n" "$as_me: error: $2" >&2 |
| 426 | as_fn_exit $as_status |
| 427 | } # as_fn_error |
| 428 | |
| 429 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 430 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 431 | as_expr=expr |
| 432 | else |
| 433 | as_expr=false |
| 434 | fi |
| 435 | |
| 436 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 437 | as_basename=basename |
| 438 | else |
| 439 | as_basename=false |
| 440 | fi |
| 441 | |
| 442 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 443 | as_dirname=dirname |
| 444 | else |
| 445 | as_dirname=false |
| 446 | fi |
| 447 | |
| 448 | as_me=`$as_basename -- "$0" || |
| 449 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 450 | X"$0" : 'X\(//\)$' \| \ |
| 451 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 452 | printf "%s\n" X/"$0" | |
| 453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 454 | s//\1/ |
| 455 | q |
| 456 | } |
| 457 | /^X\/\(\/\/\)$/{ |
| 458 | s//\1/ |
| 459 | q |
| 460 | } |
| 461 | /^X\/\(\/\).*/{ |
| 462 | s//\1/ |
| 463 | q |
| 464 | } |
| 465 | s/.*/./; q'` |
| 466 | |
| 467 | # Avoid depending upon Character Ranges. |
| 468 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 469 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 470 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 471 | as_cr_digits='0123456789' |
| 472 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 473 | |
| 474 | |
| 475 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 476 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 477 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 478 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 479 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 480 | sed -n ' |
| 481 | p |
| 482 | /[$]LINENO/= |
| 483 | ' <$as_myself | |
| 484 | sed ' |
| 485 | t clear |
| 486 | :clear |
| 487 | s/[$]LINENO.*/&-/ |
| 488 | t lineno |
| 489 | b |
| 490 | :lineno |
| 491 | N |
| 492 | :loop |
| 493 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 494 | t loop |
| 495 | s/-\n.*// |
| 496 | ' >$as_me.lineno && |
| 497 | chmod +x "$as_me.lineno" || |
| 498 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 499 | |
| 500 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 501 | # already done that, so ensure we don't try to do so again and fall |
| 502 | # in an infinite loop. This has already happened in practice. |
| 503 | _as_can_reexec=no; export _as_can_reexec |
| 504 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 505 | # (the dirname of $[0] is not the place where we might find the |
| 506 | # original and so on. Autoconf is especially sensitive to this). |
| 507 | . "./$as_me.lineno" |
| 508 | # Exit status is that of the last command. |
| 509 | exit |
| 510 | } |
| 511 | |
| 512 | |
| 513 | # Determine whether it's possible to make 'echo' print without a newline. |
| 514 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 515 | # for compatibility with existing Makefiles. |
| 516 | ECHO_C= ECHO_N= ECHO_T= |
| 517 | case `echo -n x` in #((((( |
| 518 | -n*) |
| 519 | case `echo 'xy\c'` in |
| 520 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 521 | xy) ECHO_C='\c';; |
| 522 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 523 | ECHO_T=' ';; |
| 524 | esac;; |
| 525 | *) |
| 526 | ECHO_N='-n';; |
| 527 | esac |
| 528 | |
| 529 | # For backward compatibility with old third-party macros, we provide |
| 530 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 531 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 532 | as_echo='printf %s\n' |
| 533 | as_echo_n='printf %s' |
| 534 | |
| 535 | rm -f conf$$ conf$$.exe conf$$.file |
| 536 | if test -d conf$$.dir; then |
| 537 | rm -f conf$$.dir/conf$$.file |
| 538 | else |
| 539 | rm -f conf$$.dir |
| 540 | mkdir conf$$.dir 2>/dev/null |
| 541 | fi |
| 542 | if (echo >conf$$.file) 2>/dev/null; then |
| 543 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 544 | as_ln_s='ln -s' |
| 545 | # ... but there are two gotchas: |
| 546 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 547 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 548 | # In both cases, we have to default to 'cp -pR'. |
| 549 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 550 | as_ln_s='cp -pR' |
| 551 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 552 | as_ln_s=ln |
| 553 | else |
| 554 | as_ln_s='cp -pR' |
| 555 | fi |
| 556 | else |
| 557 | as_ln_s='cp -pR' |
| 558 | fi |
| 559 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 560 | rmdir conf$$.dir 2>/dev/null |
| 561 | |
| 562 | if mkdir -p . 2>/dev/null; then |
| 563 | as_mkdir_p='mkdir -p "$as_dir"' |
| 564 | else |
| 565 | test -d ./-p && rmdir ./-p |
| 566 | as_mkdir_p=false |
| 567 | fi |
| 568 | |
| 569 | as_test_x='test -x' |
| 570 | as_executable_p=as_fn_executable_p |
| 571 | |
| 572 | # Sed expression to map a string onto a valid CPP name. |
| 573 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 574 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 575 | |
| 576 | # Sed expression to map a string onto a valid variable name. |
| 577 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 578 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 579 | |
| 580 | |
| 581 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 582 | exec 6>&1 |
| 583 | |
| 584 | # Name of the host. |
| 585 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 586 | # so uname gets run too. |
| 587 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 588 | |
| 589 | # |
| 590 | # Initializations. |
| 591 | # |
| 592 | ac_default_prefix=/usr/local |
| 593 | ac_clean_files= |
| 594 | ac_config_libobj_dir=. |
| 595 | LIBOBJS= |
| 596 | cross_compiling=no |
| 597 | subdirs= |
| 598 | MFLAGS= |
| 599 | MAKEFLAGS= |
| 600 | |
| 601 | # Identity of this package. |
| 602 | PACKAGE_NAME='tcl' |
| 603 | PACKAGE_TARNAME='tcl' |
| 604 | PACKAGE_VERSION='8.6' |
| 605 | PACKAGE_STRING='tcl 8.6' |
| 606 | PACKAGE_BUGREPORT='' |
| 607 | PACKAGE_URL='' |
| 608 | |
| 609 | # Factoring default headers for most tests. |
| 610 | ac_includes_default="\ |
| 611 | #include <stddef.h> |
| 612 | #ifdef HAVE_STDIO_H |
| 613 | # include <stdio.h> |
| 614 | #endif |
| 615 | #ifdef HAVE_STDLIB_H |
| 616 | # include <stdlib.h> |
| 617 | #endif |
| 618 | #ifdef HAVE_STRING_H |
| 619 | # include <string.h> |
| 620 | #endif |
| 621 | #ifdef HAVE_INTTYPES_H |
| 622 | # include <inttypes.h> |
| 623 | #endif |
| 624 | #ifdef HAVE_STDINT_H |
| 625 | # include <stdint.h> |
| 626 | #endif |
| 627 | #ifdef HAVE_STRINGS_H |
| 628 | # include <strings.h> |
| 629 | #endif |
| 630 | #ifdef HAVE_SYS_TYPES_H |
| 631 | # include <sys/types.h> |
| 632 | #endif |
| 633 | #ifdef HAVE_SYS_STAT_H |
| 634 | # include <sys/stat.h> |
| 635 | #endif |
| 636 | #ifdef HAVE_UNISTD_H |
| 637 | # include <unistd.h> |
| 638 | #endif" |
| 639 | |
| 640 | ac_header_c_list= |
| 641 | ac_subst_vars='DLTEST_SUFFIX |
| 642 | DLTEST_LD |
| 643 | EXTRA_TCLSH_LIBS |
| 644 | EXTRA_BUILD_HTML |
| 645 | EXTRA_INSTALL_BINARIES |
| 646 | EXTRA_INSTALL |
| 647 | EXTRA_APP_CC_SWITCHES |
| 648 | EXTRA_CC_SWITCHES |
| 649 | PACKAGE_DIR |
| 650 | HTML_DIR |
| 651 | PRIVATE_INCLUDE_DIR |
| 652 | TCL_LIBRARY |
| 653 | TCL_MODULE_PATH |
| 654 | TCL_PACKAGE_PATH |
| 655 | BUILD_DLTEST |
| 656 | MAKEFILE_SHELL |
| 657 | DTRACE_OBJ |
| 658 | DTRACE_HDR |
| 659 | DTRACE_SRC |
| 660 | INSTALL_TZDATA |
| 661 | TCL_HAS_LONGLONG |
| 662 | TCL_UNSHARED_LIB_SUFFIX |
| 663 | TCL_SHARED_LIB_SUFFIX |
| 664 | TCL_LIB_VERSIONS_OK |
| 665 | TCL_BUILD_LIB_SPEC |
| 666 | LD_LIBRARY_PATH_VAR |
| 667 | TCL_SHARED_BUILD |
| 668 | CFG_TCL_UNSHARED_LIB_SUFFIX |
| 669 | CFG_TCL_SHARED_LIB_SUFFIX |
| 670 | TCL_SRC_DIR |
| 671 | TCL_BUILD_STUB_LIB_PATH |
| 672 | TCL_BUILD_STUB_LIB_SPEC |
| 673 | TCL_INCLUDE_SPEC |
| 674 | TCL_STUB_LIB_PATH |
| 675 | TCL_STUB_LIB_SPEC |
| 676 | TCL_STUB_LIB_FLAG |
| 677 | TCL_STUB_LIB_FILE |
| 678 | TCL_LIB_SPEC |
| 679 | TCL_LIB_FLAG |
| 680 | TCL_LIB_FILE |
| 681 | PKG_CFG_ARGS |
| 682 | TCL_YEAR |
| 683 | TCL_PATCH_LEVEL |
| 684 | TCL_MINOR_VERSION |
| 685 | TCL_MAJOR_VERSION |
| 686 | TCL_VERSION |
| 687 | DTRACE |
| 688 | LDFLAGS_DEFAULT |
| 689 | CFLAGS_DEFAULT |
| 690 | INSTALL_STUB_LIB |
| 691 | DLL_INSTALL_DIR |
| 692 | INSTALL_LIB |
| 693 | MAKE_STUB_LIB |
| 694 | MAKE_LIB |
| 695 | SHLIB_SUFFIX |
| 696 | SHLIB_CFLAGS |
| 697 | SHLIB_LD_LIBS |
| 698 | TK_SHLIB_LD_EXTRAS |
| 699 | TCL_SHLIB_LD_EXTRAS |
| 700 | SHLIB_LD |
| 701 | STLIB_LD |
| 702 | LD_SEARCH_FLAGS |
| 703 | CC_SEARCH_FLAGS |
| 704 | LDFLAGS_OPTIMIZE |
| 705 | LDFLAGS_DEBUG |
| 706 | CFLAGS_NOLTO |
| 707 | CFLAGS_WARNING |
| 708 | CFLAGS_OPTIMIZE |
| 709 | CFLAGS_DEBUG |
| 710 | LDAIX_SRC |
| 711 | PLAT_SRCS |
| 712 | PLAT_OBJS |
| 713 | DL_OBJS |
| 714 | DL_LIBS |
| 715 | TCL_LIBS |
| 716 | LIBOBJS |
| 717 | AR |
| 718 | RANLIB |
| 719 | ZLIB_INCLUDE |
| 720 | ZLIB_SRCS |
| 721 | ZLIB_OBJS |
| 722 | TCLSH_PROG |
| 723 | SHARED_BUILD |
| 724 | TCL_THREADS |
| 725 | CPP |
| 726 | OBJEXT |
| 727 | EXEEXT |
| 728 | ac_ct_CC |
| 729 | CPPFLAGS |
| 730 | LDFLAGS |
| 731 | CFLAGS |
| 732 | CC |
| 733 | MAN_FLAGS |
| 734 | target_alias |
| 735 | host_alias |
| 736 | build_alias |
| 737 | LIBS |
| 738 | ECHO_T |
| 739 | ECHO_N |
| 740 | ECHO_C |
| 741 | DEFS |
| 742 | mandir |
| 743 | localedir |
| 744 | libdir |
| 745 | psdir |
| 746 | pdfdir |
| 747 | dvidir |
| 748 | htmldir |
| 749 | infodir |
| 750 | docdir |
| 751 | oldincludedir |
| 752 | includedir |
| 753 | runstatedir |
| 754 | localstatedir |
| 755 | sharedstatedir |
| 756 | sysconfdir |
| 757 | datadir |
| 758 | datarootdir |
| 759 | libexecdir |
| 760 | sbindir |
| 761 | bindir |
| 762 | program_transform_name |
| 763 | prefix |
| 764 | exec_prefix |
| 765 | PACKAGE_URL |
| 766 | PACKAGE_BUGREPORT |
| 767 | PACKAGE_STRING |
| 768 | PACKAGE_VERSION |
| 769 | PACKAGE_TARNAME |
| 770 | PACKAGE_NAME |
| 771 | PATH_SEPARATOR |
| 772 | SHELL' |
| 773 | ac_subst_files='' |
| 774 | ac_user_opts=' |
| 775 | enable_option_checking |
| 776 | enable_man_symlinks |
| 777 | enable_man_compression |
| 778 | enable_man_suffix |
| 779 | enable_threads |
| 780 | with_encoding |
| 781 | enable_shared |
| 782 | enable_64bit |
| 783 | enable_64bit_vis |
| 784 | enable_rpath |
| 785 | enable_corefoundation |
| 786 | enable_load |
| 787 | enable_symbols |
| 788 | enable_langinfo |
| 789 | enable_dll_unloading |
| 790 | with_tzdata |
| 791 | enable_dtrace |
| 792 | enable_framework |
| 793 | ' |
| 794 | ac_precious_vars='build_alias |
| 795 | host_alias |
| 796 | target_alias |
| 797 | CC |
| 798 | CFLAGS |
| 799 | LDFLAGS |
| 800 | LIBS |
| 801 | CPPFLAGS |
| 802 | CPP' |
| 803 | |
| 804 | |
| 805 | # Initialize some variables set by options. |
| 806 | ac_init_help= |
| 807 | ac_init_version=false |
| 808 | ac_unrecognized_opts= |
| 809 | ac_unrecognized_sep= |
| 810 | # The variables have the same names as the options, with |
| 811 | # dashes changed to underlines. |
| 812 | cache_file=/dev/null |
| 813 | exec_prefix=NONE |
| 814 | no_create= |
| 815 | no_recursion= |
| 816 | prefix=NONE |
| 817 | program_prefix=NONE |
| 818 | program_suffix=NONE |
| 819 | program_transform_name=s,x,x, |
| 820 | silent= |
| 821 | site= |
| 822 | srcdir= |
| 823 | verbose= |
| 824 | x_includes=NONE |
| 825 | x_libraries=NONE |
| 826 | |
| 827 | # Installation directory options. |
| 828 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 829 | # and all the variables that are supposed to be based on exec_prefix |
| 830 | # by default will actually change. |
| 831 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 832 | # (The list follows the same order as the GNU Coding Standards.) |
| 833 | bindir='${exec_prefix}/bin' |
| 834 | sbindir='${exec_prefix}/sbin' |
| 835 | libexecdir='${exec_prefix}/libexec' |
| 836 | datarootdir='${prefix}/share' |
| 837 | datadir='${datarootdir}' |
| 838 | sysconfdir='${prefix}/etc' |
| 839 | sharedstatedir='${prefix}/com' |
| 840 | localstatedir='${prefix}/var' |
| 841 | runstatedir='${localstatedir}/run' |
| 842 | includedir='${prefix}/include' |
| 843 | oldincludedir='/usr/include' |
| 844 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 845 | infodir='${datarootdir}/info' |
| 846 | htmldir='${docdir}' |
| 847 | dvidir='${docdir}' |
| 848 | pdfdir='${docdir}' |
| 849 | psdir='${docdir}' |
| 850 | libdir='${exec_prefix}/lib' |
| 851 | localedir='${datarootdir}/locale' |
| 852 | mandir='${datarootdir}/man' |
| 853 | |
| 854 | ac_prev= |
| 855 | ac_dashdash= |
| 856 | for ac_option |
| 857 | do |
| 858 | # If the previous option needs an argument, assign it. |
| 859 | if test -n "$ac_prev"; then |
| 860 | eval $ac_prev=\$ac_option |
| 861 | ac_prev= |
| 862 | continue |
| 863 | fi |
| 864 | |
| 865 | case $ac_option in |
| 866 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 867 | *=) ac_optarg= ;; |
| 868 | *) ac_optarg=yes ;; |
| 869 | esac |
| 870 | |
| 871 | case $ac_dashdash$ac_option in |
| 872 | --) |
| 873 | ac_dashdash=yes ;; |
| 874 | |
| 875 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 876 | ac_prev=bindir ;; |
| 877 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 878 | bindir=$ac_optarg ;; |
| 879 | |
| 880 | -build | --build | --buil | --bui | --bu) |
| 881 | ac_prev=build_alias ;; |
| 882 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 883 | build_alias=$ac_optarg ;; |
| 884 | |
| 885 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 886 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 887 | ac_prev=cache_file ;; |
| 888 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 889 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 890 | cache_file=$ac_optarg ;; |
| 891 | |
| 892 | --config-cache | -C) |
| 893 | cache_file=config.cache ;; |
| 894 | |
| 895 | -datadir | --datadir | --datadi | --datad) |
| 896 | ac_prev=datadir ;; |
| 897 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 898 | datadir=$ac_optarg ;; |
| 899 | |
| 900 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 901 | | --dataroo | --dataro | --datar) |
| 902 | ac_prev=datarootdir ;; |
| 903 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 904 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 905 | datarootdir=$ac_optarg ;; |
| 906 | |
| 907 | -disable-* | --disable-*) |
| 908 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 909 | # Reject names that are not valid shell variable names. |
| 910 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 911 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 912 | ac_useropt_orig=$ac_useropt |
| 913 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 914 | case $ac_user_opts in |
| 915 | *" |
| 916 | "enable_$ac_useropt" |
| 917 | "*) ;; |
| 918 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 919 | ac_unrecognized_sep=', ';; |
| 920 | esac |
| 921 | eval enable_$ac_useropt=no ;; |
| 922 | |
| 923 | -docdir | --docdir | --docdi | --doc | --do) |
| 924 | ac_prev=docdir ;; |
| 925 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 926 | docdir=$ac_optarg ;; |
| 927 | |
| 928 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 929 | ac_prev=dvidir ;; |
| 930 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 931 | dvidir=$ac_optarg ;; |
| 932 | |
| 933 | -enable-* | --enable-*) |
| 934 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 935 | # Reject names that are not valid shell variable names. |
| 936 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 937 | as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 938 | ac_useropt_orig=$ac_useropt |
| 939 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 940 | case $ac_user_opts in |
| 941 | *" |
| 942 | "enable_$ac_useropt" |
| 943 | "*) ;; |
| 944 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 945 | ac_unrecognized_sep=', ';; |
| 946 | esac |
| 947 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 948 | |
| 949 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 950 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 951 | | --exec | --exe | --ex) |
| 952 | ac_prev=exec_prefix ;; |
| 953 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 954 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 955 | | --exec=* | --exe=* | --ex=*) |
| 956 | exec_prefix=$ac_optarg ;; |
| 957 | |
| 958 | -gas | --gas | --ga | --g) |
| 959 | # Obsolete; use --with-gas. |
| 960 | with_gas=yes ;; |
| 961 | |
| 962 | -help | --help | --hel | --he | -h) |
| 963 | ac_init_help=long ;; |
| 964 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 965 | ac_init_help=recursive ;; |
| 966 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 967 | ac_init_help=short ;; |
| 968 | |
| 969 | -host | --host | --hos | --ho) |
| 970 | ac_prev=host_alias ;; |
| 971 | -host=* | --host=* | --hos=* | --ho=*) |
| 972 | host_alias=$ac_optarg ;; |
| 973 | |
| 974 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 975 | ac_prev=htmldir ;; |
| 976 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 977 | | --ht=*) |
| 978 | htmldir=$ac_optarg ;; |
| 979 | |
| 980 | -includedir | --includedir | --includedi | --included | --include \ |
| 981 | | --includ | --inclu | --incl | --inc) |
| 982 | ac_prev=includedir ;; |
| 983 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 984 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 985 | includedir=$ac_optarg ;; |
| 986 | |
| 987 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 988 | ac_prev=infodir ;; |
| 989 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 990 | infodir=$ac_optarg ;; |
| 991 | |
| 992 | -libdir | --libdir | --libdi | --libd) |
| 993 | ac_prev=libdir ;; |
| 994 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 995 | libdir=$ac_optarg ;; |
| 996 | |
| 997 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 998 | | --libexe | --libex | --libe) |
| 999 | ac_prev=libexecdir ;; |
| 1000 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1001 | | --libexe=* | --libex=* | --libe=*) |
| 1002 | libexecdir=$ac_optarg ;; |
| 1003 | |
| 1004 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1005 | ac_prev=localedir ;; |
| 1006 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1007 | localedir=$ac_optarg ;; |
| 1008 | |
| 1009 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1010 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1011 | ac_prev=localstatedir ;; |
| 1012 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1013 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1014 | localstatedir=$ac_optarg ;; |
| 1015 | |
| 1016 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1017 | ac_prev=mandir ;; |
| 1018 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1019 | mandir=$ac_optarg ;; |
| 1020 | |
| 1021 | -nfp | --nfp | --nf) |
| 1022 | # Obsolete; use --without-fp. |
| 1023 | with_fp=no ;; |
| 1024 | |
| 1025 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1026 | | --no-cr | --no-c | -n) |
| 1027 | no_create=yes ;; |
| 1028 | |
| 1029 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1030 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1031 | no_recursion=yes ;; |
| 1032 | |
| 1033 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1034 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1035 | | --oldin | --oldi | --old | --ol | --o) |
| 1036 | ac_prev=oldincludedir ;; |
| 1037 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1038 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1039 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1040 | oldincludedir=$ac_optarg ;; |
| 1041 | |
| 1042 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1043 | ac_prev=prefix ;; |
| 1044 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1045 | prefix=$ac_optarg ;; |
| 1046 | |
| 1047 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1048 | | --program-pre | --program-pr | --program-p) |
| 1049 | ac_prev=program_prefix ;; |
| 1050 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1051 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1052 | program_prefix=$ac_optarg ;; |
| 1053 | |
| 1054 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1055 | | --program-suf | --program-su | --program-s) |
| 1056 | ac_prev=program_suffix ;; |
| 1057 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1058 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1059 | program_suffix=$ac_optarg ;; |
| 1060 | |
| 1061 | -program-transform-name | --program-transform-name \ |
| 1062 | | --program-transform-nam | --program-transform-na \ |
| 1063 | | --program-transform-n | --program-transform- \ |
| 1064 | | --program-transform | --program-transfor \ |
| 1065 | | --program-transfo | --program-transf \ |
| 1066 | | --program-trans | --program-tran \ |
| 1067 | | --progr-tra | --program-tr | --program-t) |
| 1068 | ac_prev=program_transform_name ;; |
| 1069 | -program-transform-name=* | --program-transform-name=* \ |
| 1070 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1071 | | --program-transform-n=* | --program-transform-=* \ |
| 1072 | | --program-transform=* | --program-transfor=* \ |
| 1073 | | --program-transfo=* | --program-transf=* \ |
| 1074 | | --program-trans=* | --program-tran=* \ |
| 1075 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1076 | program_transform_name=$ac_optarg ;; |
| 1077 | |
| 1078 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1079 | ac_prev=pdfdir ;; |
| 1080 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1081 | pdfdir=$ac_optarg ;; |
| 1082 | |
| 1083 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1084 | ac_prev=psdir ;; |
| 1085 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1086 | psdir=$ac_optarg ;; |
| 1087 | |
| 1088 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1089 | | -silent | --silent | --silen | --sile | --sil) |
| 1090 | silent=yes ;; |
| 1091 | |
| 1092 | -runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1093 | | --runstate | --runstat | --runsta | --runst | --runs \ |
| 1094 | | --run | --ru | --r) |
| 1095 | ac_prev=runstatedir ;; |
| 1096 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1097 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1098 | | --run=* | --ru=* | --r=*) |
| 1099 | runstatedir=$ac_optarg ;; |
| 1100 | |
| 1101 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1102 | ac_prev=sbindir ;; |
| 1103 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1104 | | --sbi=* | --sb=*) |
| 1105 | sbindir=$ac_optarg ;; |
| 1106 | |
| 1107 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1108 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1109 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1110 | | --sha | --sh) |
| 1111 | ac_prev=sharedstatedir ;; |
| 1112 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1113 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1114 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1115 | | --sha=* | --sh=*) |
| 1116 | sharedstatedir=$ac_optarg ;; |
| 1117 | |
| 1118 | -site | --site | --sit) |
| 1119 | ac_prev=site ;; |
| 1120 | -site=* | --site=* | --sit=*) |
| 1121 | site=$ac_optarg ;; |
| 1122 | |
| 1123 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1124 | ac_prev=srcdir ;; |
| 1125 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1126 | srcdir=$ac_optarg ;; |
| 1127 | |
| 1128 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1129 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1130 | ac_prev=sysconfdir ;; |
| 1131 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1132 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1133 | sysconfdir=$ac_optarg ;; |
| 1134 | |
| 1135 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1136 | ac_prev=target_alias ;; |
| 1137 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1138 | target_alias=$ac_optarg ;; |
| 1139 | |
| 1140 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1141 | verbose=yes ;; |
| 1142 | |
| 1143 | -version | --version | --versio | --versi | --vers | -V) |
| 1144 | ac_init_version=: ;; |
| 1145 | |
| 1146 | -with-* | --with-*) |
| 1147 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1148 | # Reject names that are not valid shell variable names. |
| 1149 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1150 | as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1151 | ac_useropt_orig=$ac_useropt |
| 1152 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1153 | case $ac_user_opts in |
| 1154 | *" |
| 1155 | "with_$ac_useropt" |
| 1156 | "*) ;; |
| 1157 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1158 | ac_unrecognized_sep=', ';; |
| 1159 | esac |
| 1160 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1161 | |
| 1162 | -without-* | --without-*) |
| 1163 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1164 | # Reject names that are not valid shell variable names. |
| 1165 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1166 | as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1167 | ac_useropt_orig=$ac_useropt |
| 1168 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1169 | case $ac_user_opts in |
| 1170 | *" |
| 1171 | "with_$ac_useropt" |
| 1172 | "*) ;; |
| 1173 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1174 | ac_unrecognized_sep=', ';; |
| 1175 | esac |
| 1176 | eval with_$ac_useropt=no ;; |
| 1177 | |
| 1178 | --x) |
| 1179 | # Obsolete; use --with-x. |
| 1180 | with_x=yes ;; |
| 1181 | |
| 1182 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1183 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1184 | ac_prev=x_includes ;; |
| 1185 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1186 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1187 | x_includes=$ac_optarg ;; |
| 1188 | |
| 1189 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1190 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1191 | ac_prev=x_libraries ;; |
| 1192 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1193 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1194 | x_libraries=$ac_optarg ;; |
| 1195 | |
| 1196 | -*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1197 | Try '$0 --help' for more information" |
| 1198 | ;; |
| 1199 | |
| 1200 | *=*) |
| 1201 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1202 | # Reject names that are not valid shell variable names. |
| 1203 | case $ac_envvar in #( |
| 1204 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1205 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
| 1206 | esac |
| 1207 | eval $ac_envvar=\$ac_optarg |
| 1208 | export $ac_envvar ;; |
| 1209 | |
| 1210 | *) |
| 1211 | # FIXME: should be removed in autoconf 3.0. |
| 1212 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1213 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1214 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1215 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1216 | ;; |
| 1217 | |
| 1218 | esac |
| 1219 | done |
| 1220 | |
| 1221 | if test -n "$ac_prev"; then |
| 1222 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1223 | as_fn_error $? "missing argument to $ac_option" |
| 1224 | fi |
| 1225 | |
| 1226 | if test -n "$ac_unrecognized_opts"; then |
| 1227 | case $enable_option_checking in |
| 1228 | no) ;; |
| 1229 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1230 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1231 | esac |
| 1232 | fi |
| 1233 | |
| 1234 | # Check all directory arguments for consistency. |
| 1235 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1236 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1237 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1238 | libdir localedir mandir runstatedir |
| 1239 | do |
| 1240 | eval ac_val=\$$ac_var |
| 1241 | # Remove trailing slashes. |
| 1242 | case $ac_val in |
| 1243 | */ ) |
| 1244 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1245 | eval $ac_var=\$ac_val;; |
| 1246 | esac |
| 1247 | # Be sure to have absolute directory names. |
| 1248 | case $ac_val in |
| 1249 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1250 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1251 | esac |
| 1252 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1253 | done |
| 1254 | |
| 1255 | # There might be people who depend on the old broken behavior: '$host' |
| 1256 | # used to hold the argument of --host etc. |
| 1257 | # FIXME: To remove some day. |
| 1258 | build=$build_alias |
| 1259 | host=$host_alias |
| 1260 | target=$target_alias |
| 1261 | |
| 1262 | # FIXME: To remove some day. |
| 1263 | if test "x$host_alias" != x; then |
| 1264 | if test "x$build_alias" = x; then |
| 1265 | cross_compiling=maybe |
| 1266 | elif test "x$build_alias" != "x$host_alias"; then |
| 1267 | cross_compiling=yes |
| 1268 | fi |
| 1269 | fi |
| 1270 | |
| 1271 | ac_tool_prefix= |
| 1272 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1273 | |
| 1274 | test "$silent" = yes && exec 6>/dev/null |
| 1275 | |
| 1276 | |
| 1277 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1278 | ac_ls_di=`ls -di .` && |
| 1279 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1280 | as_fn_error $? "working directory cannot be determined" |
| 1281 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1282 | as_fn_error $? "pwd does not report name of working directory" |
| 1283 | |
| 1284 | |
| 1285 | # Find the source files, if location was not specified. |
| 1286 | if test -z "$srcdir"; then |
| 1287 | ac_srcdir_defaulted=yes |
| 1288 | # Try the directory containing this script, then the parent directory. |
| 1289 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1290 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1291 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1292 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1293 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1294 | printf "%s\n" X"$as_myself" | |
| 1295 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1296 | s//\1/ |
| 1297 | q |
| 1298 | } |
| 1299 | /^X\(\/\/\)[^/].*/{ |
| 1300 | s//\1/ |
| 1301 | q |
| 1302 | } |
| 1303 | /^X\(\/\/\)$/{ |
| 1304 | s//\1/ |
| 1305 | q |
| 1306 | } |
| 1307 | /^X\(\/\).*/{ |
| 1308 | s//\1/ |
| 1309 | q |
| 1310 | } |
| 1311 | s/.*/./; q'` |
| 1312 | srcdir=$ac_confdir |
| 1313 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1314 | srcdir=.. |
| 1315 | fi |
| 1316 | else |
| 1317 | ac_srcdir_defaulted=no |
| 1318 | fi |
| 1319 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1320 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1321 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1322 | fi |
| 1323 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
| 1324 | ac_abs_confdir=`( |
| 1325 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1326 | pwd)` |
| 1327 | # When building in place, set srcdir=. |
| 1328 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1329 | srcdir=. |
| 1330 | fi |
| 1331 | # Remove unnecessary trailing slashes from srcdir. |
| 1332 | # Double slashes in file names in object file debugging info |
| 1333 | # mess up M-x gdb in Emacs. |
| 1334 | case $srcdir in |
| 1335 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1336 | esac |
| 1337 | for ac_var in $ac_precious_vars; do |
| 1338 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1339 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1340 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1341 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1342 | done |
| 1343 | |
| 1344 | # |
| 1345 | # Report the --help message. |
| 1346 | # |
| 1347 | if test "$ac_init_help" = "long"; then |
| 1348 | # Omit some internal or obsolete options to make the list less imposing. |
| 1349 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1350 | cat <<_ACEOF |
| 1351 | 'configure' configures tcl 8.6 to adapt to many kinds of systems. |
| 1352 | |
| 1353 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1354 | |
| 1355 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1356 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1357 | |
| 1358 | Defaults for the options are specified in brackets. |
| 1359 | |
| 1360 | Configuration: |
| 1361 | -h, --help display this help and exit |
| 1362 | --help=short display options specific to this package |
| 1363 | --help=recursive display the short help of all the included packages |
| 1364 | -V, --version display version information and exit |
| 1365 | -q, --quiet, --silent do not print 'checking ...' messages |
| 1366 | --cache-file=FILE cache test results in FILE [disabled] |
| 1367 | -C, --config-cache alias for '--cache-file=config.cache' |
| 1368 | -n, --no-create do not create output files |
| 1369 | --srcdir=DIR find the sources in DIR [configure dir or '..'] |
| 1370 | |
| 1371 | Installation directories: |
| 1372 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1373 | [$ac_default_prefix] |
| 1374 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1375 | [PREFIX] |
| 1376 | |
| 1377 | By default, 'make install' will install all the files in |
| 1378 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1379 | an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1380 | for instance '--prefix=\$HOME'. |
| 1381 | |
| 1382 | For better control, use the options below. |
| 1383 | |
| 1384 | Fine tuning of the installation directories: |
| 1385 | --bindir=DIR user executables [EPREFIX/bin] |
| 1386 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1387 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1388 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1389 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1390 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1391 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1392 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1393 | --includedir=DIR C header files [PREFIX/include] |
| 1394 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1395 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1396 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1397 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1398 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1399 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1400 | --docdir=DIR documentation root [DATAROOTDIR/doc/tcl] |
| 1401 | --htmldir=DIR html documentation [DOCDIR] |
| 1402 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1403 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1404 | --psdir=DIR ps documentation [DOCDIR] |
| 1405 | _ACEOF |
| 1406 | |
| 1407 | cat <<\_ACEOF |
| 1408 | _ACEOF |
| 1409 | fi |
| 1410 | |
| 1411 | if test -n "$ac_init_help"; then |
| 1412 | case $ac_init_help in |
| 1413 | short | recursive ) echo "Configuration of tcl 8.6:";; |
| 1414 | esac |
| 1415 | cat <<\_ACEOF |
| 1416 | |
| 1417 | Optional Features: |
| 1418 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1419 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1420 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1421 | --enable-man-symlinks use symlinks for the manpages (default: off) |
| 1422 | --enable-man-compression=PROG |
| 1423 | compress the manpages with PROG (default: off) |
| 1424 | --enable-man-suffix=STRING |
| 1425 | use STRING as a suffix to manpage file names |
| 1426 | (default: no, tcl if enabled without |
| 1427 | specifying STRING) |
| 1428 | --enable-threads build with threads (default: on) |
| 1429 | --enable-shared build and link with shared libraries (default: on) |
| 1430 | --enable-64bit enable 64bit support (default: off) |
| 1431 | --enable-64bit-vis enable 64bit Sparc VIS support (default: off) |
| 1432 | --disable-rpath disable rpath support (default: on) |
| 1433 | --enable-corefoundation use CoreFoundation API on MacOSX (default: on) |
| 1434 | --enable-load allow dynamic loading and "load" command (default: |
| 1435 | on) |
| 1436 | --enable-symbols build with debugging symbols (default: off) |
| 1437 | --enable-langinfo use nl_langinfo if possible to determine encoding at |
| 1438 | startup, otherwise use old heuristic (default: on) |
| 1439 | --enable-dll-unloading enable the 'unload' command (default: on) |
| 1440 | --enable-dtrace build with DTrace support (default: off) |
| 1441 | --enable-framework package shared libraries in MacOSX frameworks |
| 1442 | (default: off) |
| 1443 | |
| 1444 | Optional Packages: |
| 1445 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1446 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1447 | --with-encoding encoding for configuration values (default: |
| 1448 | iso8859-1) |
| 1449 | --with-tzdata install timezone data (default: autodetect) |
| 1450 | |
| 1451 | Some influential environment variables: |
| 1452 | CC C compiler command |
| 1453 | CFLAGS C compiler flags |
| 1454 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1455 | nonstandard directory <lib dir> |
| 1456 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1457 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1458 | you have headers in a nonstandard directory <include dir> |
| 1459 | CPP C preprocessor |
| 1460 | |
| 1461 | Use these variables to override the choices made by 'configure' or to help |
| 1462 | it to find libraries and programs with nonstandard names/locations. |
| 1463 | |
| 1464 | Report bugs to the package provider. |
| 1465 | _ACEOF |
| 1466 | ac_status=$? |
| 1467 | fi |
| 1468 | |
| 1469 | if test "$ac_init_help" = "recursive"; then |
| 1470 | # If there are subdirs, report their specific --help. |
| 1471 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1472 | test -d "$ac_dir" || |
| 1473 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1474 | continue |
| 1475 | ac_builddir=. |
| 1476 | |
| 1477 | case "$ac_dir" in |
| 1478 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1479 | *) |
| 1480 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1481 | # A ".." for each directory in $ac_dir_suffix. |
| 1482 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1483 | case $ac_top_builddir_sub in |
| 1484 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1485 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1486 | esac ;; |
| 1487 | esac |
| 1488 | ac_abs_top_builddir=$ac_pwd |
| 1489 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1490 | # for backward compatibility: |
| 1491 | ac_top_builddir=$ac_top_build_prefix |
| 1492 | |
| 1493 | case $srcdir in |
| 1494 | .) # We are building in place. |
| 1495 | ac_srcdir=. |
| 1496 | ac_top_srcdir=$ac_top_builddir_sub |
| 1497 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1498 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1499 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1500 | ac_top_srcdir=$srcdir |
| 1501 | ac_abs_top_srcdir=$srcdir ;; |
| 1502 | *) # Relative name. |
| 1503 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1504 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1505 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1506 | esac |
| 1507 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1508 | |
| 1509 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1510 | # Check for configure.gnu first; this name is used for a wrapper for |
| 1511 | # Metaconfig's "Configure" on case-insensitive file systems. |
| 1512 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1513 | echo && |
| 1514 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1515 | elif test -f "$ac_srcdir/configure"; then |
| 1516 | echo && |
| 1517 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1518 | else |
| 1519 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1520 | fi || ac_status=$? |
| 1521 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1522 | done |
| 1523 | fi |
| 1524 | |
| 1525 | test -n "$ac_init_help" && exit $ac_status |
| 1526 | if $ac_init_version; then |
| 1527 | cat <<\_ACEOF |
| 1528 | tcl configure 8.6 |
| 1529 | generated by GNU Autoconf 2.72 |
| 1530 | |
| 1531 | Copyright (C) 2023 Free Software Foundation, Inc. |
| 1532 | This configure script is free software; the Free Software Foundation |
| 1533 | gives unlimited permission to copy, distribute and modify it. |
| 1534 | _ACEOF |
| 1535 | exit |
| 1536 | fi |
| 1537 | |
| 1538 | ## ------------------------ ## |
| 1539 | ## Autoconf initialization. ## |
| 1540 | ## ------------------------ ## |
| 1541 | |
| 1542 | # ac_fn_c_try_compile LINENO |
| 1543 | # -------------------------- |
| 1544 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1545 | ac_fn_c_try_compile () |
| 1546 | { |
| 1547 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1548 | rm -f conftest.$ac_objext conftest.beam |
| 1549 | if { { ac_try="$ac_compile" |
| 1550 | case "(($ac_try" in |
| 1551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1552 | *) ac_try_echo=$ac_try;; |
| 1553 | esac |
| 1554 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1555 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1556 | (eval "$ac_compile") 2>conftest.err |
| 1557 | ac_status=$? |
| 1558 | if test -s conftest.err; then |
| 1559 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1560 | cat conftest.er1 >&5 |
| 1561 | mv -f conftest.er1 conftest.err |
| 1562 | fi |
| 1563 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1564 | test $ac_status = 0; } && { |
| 1565 | test -z "$ac_c_werror_flag" || |
| 1566 | test ! -s conftest.err |
| 1567 | } && test -s conftest.$ac_objext |
| 1568 | then : |
| 1569 | ac_retval=0 |
| 1570 | else case e in #( |
| 1571 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1572 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1573 | |
| 1574 | ac_retval=1 ;; |
| 1575 | esac |
| 1576 | fi |
| 1577 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1578 | as_fn_set_status $ac_retval |
| 1579 | |
| 1580 | } # ac_fn_c_try_compile |
| 1581 | |
| 1582 | # ac_fn_c_try_link LINENO |
| 1583 | # ----------------------- |
| 1584 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1585 | ac_fn_c_try_link () |
| 1586 | { |
| 1587 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1588 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1589 | if { { ac_try="$ac_link" |
| 1590 | case "(($ac_try" in |
| 1591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1592 | *) ac_try_echo=$ac_try;; |
| 1593 | esac |
| 1594 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1595 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1596 | (eval "$ac_link") 2>conftest.err |
| 1597 | ac_status=$? |
| 1598 | if test -s conftest.err; then |
| 1599 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1600 | cat conftest.er1 >&5 |
| 1601 | mv -f conftest.er1 conftest.err |
| 1602 | fi |
| 1603 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1604 | test $ac_status = 0; } && { |
| 1605 | test -z "$ac_c_werror_flag" || |
| 1606 | test ! -s conftest.err |
| 1607 | } && test -s conftest$ac_exeext && { |
| 1608 | test "$cross_compiling" = yes || |
| 1609 | test -x conftest$ac_exeext |
| 1610 | } |
| 1611 | then : |
| 1612 | ac_retval=0 |
| 1613 | else case e in #( |
| 1614 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1615 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1616 | |
| 1617 | ac_retval=1 ;; |
| 1618 | esac |
| 1619 | fi |
| 1620 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1621 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1622 | # interfere with the next link command; also delete a directory that is |
| 1623 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1624 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1625 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1626 | as_fn_set_status $ac_retval |
| 1627 | |
| 1628 | } # ac_fn_c_try_link |
| 1629 | |
| 1630 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1631 | # ------------------------------------------------------- |
| 1632 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1633 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1634 | ac_fn_c_check_header_compile () |
| 1635 | { |
| 1636 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1638 | printf %s "checking for $2... " >&6; } |
| 1639 | if eval test \${$3+y} |
| 1640 | then : |
| 1641 | printf %s "(cached) " >&6 |
| 1642 | else case e in #( |
| 1643 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1644 | /* end confdefs.h. */ |
| 1645 | $4 |
| 1646 | #include <$2> |
| 1647 | _ACEOF |
| 1648 | if ac_fn_c_try_compile "$LINENO" |
| 1649 | then : |
| 1650 | eval "$3=yes" |
| 1651 | else case e in #( |
| 1652 | e) eval "$3=no" ;; |
| 1653 | esac |
| 1654 | fi |
| 1655 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1656 | esac |
| 1657 | fi |
| 1658 | eval ac_res=\$$3 |
| 1659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1660 | printf "%s\n" "$ac_res" >&6; } |
| 1661 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1662 | |
| 1663 | } # ac_fn_c_check_header_compile |
| 1664 | |
| 1665 | # ac_fn_c_try_cpp LINENO |
| 1666 | # ---------------------- |
| 1667 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1668 | ac_fn_c_try_cpp () |
| 1669 | { |
| 1670 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1671 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1672 | case "(($ac_try" in |
| 1673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1674 | *) ac_try_echo=$ac_try;; |
| 1675 | esac |
| 1676 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1677 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1678 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1679 | ac_status=$? |
| 1680 | if test -s conftest.err; then |
| 1681 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1682 | cat conftest.er1 >&5 |
| 1683 | mv -f conftest.er1 conftest.err |
| 1684 | fi |
| 1685 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1686 | test $ac_status = 0; } > conftest.i && { |
| 1687 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1688 | test ! -s conftest.err |
| 1689 | } |
| 1690 | then : |
| 1691 | ac_retval=0 |
| 1692 | else case e in #( |
| 1693 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1695 | |
| 1696 | ac_retval=1 ;; |
| 1697 | esac |
| 1698 | fi |
| 1699 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1700 | as_fn_set_status $ac_retval |
| 1701 | |
| 1702 | } # ac_fn_c_try_cpp |
| 1703 | |
| 1704 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1705 | # ---------------------------------- |
| 1706 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1707 | ac_fn_c_check_func () |
| 1708 | { |
| 1709 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1710 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1711 | printf %s "checking for $2... " >&6; } |
| 1712 | if eval test \${$3+y} |
| 1713 | then : |
| 1714 | printf %s "(cached) " >&6 |
| 1715 | else case e in #( |
| 1716 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1717 | /* end confdefs.h. */ |
| 1718 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1720 | #define $2 innocuous_$2 |
| 1721 | |
| 1722 | /* System header to define __stub macros and hopefully few prototypes, |
| 1723 | which can conflict with char $2 (void); below. */ |
| 1724 | |
| 1725 | #include <limits.h> |
| 1726 | #undef $2 |
| 1727 | |
| 1728 | /* Override any GCC internal prototype to avoid an error. |
| 1729 | Use char because int might match the return type of a GCC |
| 1730 | builtin and then its argument prototype would still apply. */ |
| 1731 | #ifdef __cplusplus |
| 1732 | extern "C" |
| 1733 | #endif |
| 1734 | char $2 (void); |
| 1735 | /* The GNU C library defines this for functions which it implements |
| 1736 | to always fail with ENOSYS. Some functions are actually named |
| 1737 | something starting with __ and the normal name is an alias. */ |
| 1738 | #if defined __stub_$2 || defined __stub___$2 |
| 1739 | choke me |
| 1740 | #endif |
| 1741 | |
| 1742 | int |
| 1743 | main (void) |
| 1744 | { |
| 1745 | return $2 (); |
| 1746 | ; |
| 1747 | return 0; |
| 1748 | } |
| 1749 | _ACEOF |
| 1750 | if ac_fn_c_try_link "$LINENO" |
| 1751 | then : |
| 1752 | eval "$3=yes" |
| 1753 | else case e in #( |
| 1754 | e) eval "$3=no" ;; |
| 1755 | esac |
| 1756 | fi |
| 1757 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1758 | conftest$ac_exeext conftest.$ac_ext ;; |
| 1759 | esac |
| 1760 | fi |
| 1761 | eval ac_res=\$$3 |
| 1762 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1763 | printf "%s\n" "$ac_res" >&6; } |
| 1764 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1765 | |
| 1766 | } # ac_fn_c_check_func |
| 1767 | |
| 1768 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1769 | # ------------------------------------------- |
| 1770 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1771 | # variable VAR accordingly. |
| 1772 | ac_fn_c_check_type () |
| 1773 | { |
| 1774 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1776 | printf %s "checking for $2... " >&6; } |
| 1777 | if eval test \${$3+y} |
| 1778 | then : |
| 1779 | printf %s "(cached) " >&6 |
| 1780 | else case e in #( |
| 1781 | e) eval "$3=no" |
| 1782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1783 | /* end confdefs.h. */ |
| 1784 | $4 |
| 1785 | int |
| 1786 | main (void) |
| 1787 | { |
| 1788 | if (sizeof ($2)) |
| 1789 | return 0; |
| 1790 | ; |
| 1791 | return 0; |
| 1792 | } |
| 1793 | _ACEOF |
| 1794 | if ac_fn_c_try_compile "$LINENO" |
| 1795 | then : |
| 1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1797 | /* end confdefs.h. */ |
| 1798 | $4 |
| 1799 | int |
| 1800 | main (void) |
| 1801 | { |
| 1802 | if (sizeof (($2))) |
| 1803 | return 0; |
| 1804 | ; |
| 1805 | return 0; |
| 1806 | } |
| 1807 | _ACEOF |
| 1808 | if ac_fn_c_try_compile "$LINENO" |
| 1809 | then : |
| 1810 | |
| 1811 | else case e in #( |
| 1812 | e) eval "$3=yes" ;; |
| 1813 | esac |
| 1814 | fi |
| 1815 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1816 | fi |
| 1817 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1818 | esac |
| 1819 | fi |
| 1820 | eval ac_res=\$$3 |
| 1821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1822 | printf "%s\n" "$ac_res" >&6; } |
| 1823 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1824 | |
| 1825 | } # ac_fn_c_check_type |
| 1826 | |
| 1827 | # ac_fn_c_try_run LINENO |
| 1828 | # ---------------------- |
| 1829 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 1830 | # executables *can* be run. |
| 1831 | ac_fn_c_try_run () |
| 1832 | { |
| 1833 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1834 | if { { ac_try="$ac_link" |
| 1835 | case "(($ac_try" in |
| 1836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1837 | *) ac_try_echo=$ac_try;; |
| 1838 | esac |
| 1839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1840 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1841 | (eval "$ac_link") 2>&5 |
| 1842 | ac_status=$? |
| 1843 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1844 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1845 | { { case "(($ac_try" in |
| 1846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1847 | *) ac_try_echo=$ac_try;; |
| 1848 | esac |
| 1849 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1850 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 1851 | (eval "$ac_try") 2>&5 |
| 1852 | ac_status=$? |
| 1853 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1854 | test $ac_status = 0; }; } |
| 1855 | then : |
| 1856 | ac_retval=0 |
| 1857 | else case e in #( |
| 1858 | e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 1859 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 1860 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1861 | |
| 1862 | ac_retval=$ac_status ;; |
| 1863 | esac |
| 1864 | fi |
| 1865 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1866 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1867 | as_fn_set_status $ac_retval |
| 1868 | |
| 1869 | } # ac_fn_c_try_run |
| 1870 | |
| 1871 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 1872 | # ------------------------------------------------------------------ |
| 1873 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 1874 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 1875 | ac_fn_check_decl () |
| 1876 | { |
| 1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1878 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 1879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 1880 | printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 1881 | if eval test \${$3+y} |
| 1882 | then : |
| 1883 | printf %s "(cached) " >&6 |
| 1884 | else case e in #( |
| 1885 | e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 1886 | eval ac_save_FLAGS=\$$6 |
| 1887 | as_fn_append $6 " $5" |
| 1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1889 | /* end confdefs.h. */ |
| 1890 | $4 |
| 1891 | int |
| 1892 | main (void) |
| 1893 | { |
| 1894 | #ifndef $as_decl_name |
| 1895 | #ifdef __cplusplus |
| 1896 | (void) $as_decl_use; |
| 1897 | #else |
| 1898 | (void) $as_decl_name; |
| 1899 | #endif |
| 1900 | #endif |
| 1901 | |
| 1902 | ; |
| 1903 | return 0; |
| 1904 | } |
| 1905 | _ACEOF |
| 1906 | if ac_fn_c_try_compile "$LINENO" |
| 1907 | then : |
| 1908 | eval "$3=yes" |
| 1909 | else case e in #( |
| 1910 | e) eval "$3=no" ;; |
| 1911 | esac |
| 1912 | fi |
| 1913 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 1914 | eval $6=\$ac_save_FLAGS |
| 1915 | ;; |
| 1916 | esac |
| 1917 | fi |
| 1918 | eval ac_res=\$$3 |
| 1919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1920 | printf "%s\n" "$ac_res" >&6; } |
| 1921 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1922 | |
| 1923 | } # ac_fn_check_decl |
| 1924 | |
| 1925 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 1926 | # ---------------------------------------------------- |
| 1927 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 1928 | # INCLUDES, setting cache variable VAR accordingly. |
| 1929 | ac_fn_c_check_member () |
| 1930 | { |
| 1931 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 1933 | printf %s "checking for $2.$3... " >&6; } |
| 1934 | if eval test \${$4+y} |
| 1935 | then : |
| 1936 | printf %s "(cached) " >&6 |
| 1937 | else case e in #( |
| 1938 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1939 | /* end confdefs.h. */ |
| 1940 | $5 |
| 1941 | int |
| 1942 | main (void) |
| 1943 | { |
| 1944 | static $2 ac_aggr; |
| 1945 | if (ac_aggr.$3) |
| 1946 | return 0; |
| 1947 | ; |
| 1948 | return 0; |
| 1949 | } |
| 1950 | _ACEOF |
| 1951 | if ac_fn_c_try_compile "$LINENO" |
| 1952 | then : |
| 1953 | eval "$4=yes" |
| 1954 | else case e in #( |
| 1955 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1956 | /* end confdefs.h. */ |
| 1957 | $5 |
| 1958 | int |
| 1959 | main (void) |
| 1960 | { |
| 1961 | static $2 ac_aggr; |
| 1962 | if (sizeof ac_aggr.$3) |
| 1963 | return 0; |
| 1964 | ; |
| 1965 | return 0; |
| 1966 | } |
| 1967 | _ACEOF |
| 1968 | if ac_fn_c_try_compile "$LINENO" |
| 1969 | then : |
| 1970 | eval "$4=yes" |
| 1971 | else case e in #( |
| 1972 | e) eval "$4=no" ;; |
| 1973 | esac |
| 1974 | fi |
| 1975 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1976 | esac |
| 1977 | fi |
| 1978 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1979 | esac |
| 1980 | fi |
| 1981 | eval ac_res=\$$4 |
| 1982 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1983 | printf "%s\n" "$ac_res" >&6; } |
| 1984 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1985 | |
| 1986 | } # ac_fn_c_check_member |
| 1987 | ac_configure_args_raw= |
| 1988 | for ac_arg |
| 1989 | do |
| 1990 | case $ac_arg in |
| 1991 | *\'*) |
| 1992 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1993 | esac |
| 1994 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 1995 | done |
| 1996 | |
| 1997 | case $ac_configure_args_raw in |
| 1998 | *$as_nl*) |
| 1999 | ac_safe_unquote= ;; |
| 2000 | *) |
| 2001 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2002 | ac_unsafe_a="$ac_unsafe_z#~" |
| 2003 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2004 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2005 | esac |
| 2006 | |
| 2007 | cat >config.log <<_ACEOF |
| 2008 | This file contains any messages produced by compilers while |
| 2009 | running configure, to aid debugging if configure makes a mistake. |
| 2010 | |
| 2011 | It was created by tcl $as_me 8.6, which was |
| 2012 | generated by GNU Autoconf 2.72. Invocation command line was |
| 2013 | |
| 2014 | $ $0$ac_configure_args_raw |
| 2015 | |
| 2016 | _ACEOF |
| 2017 | exec 5>>config.log |
| 2018 | { |
| 2019 | cat <<_ASUNAME |
| 2020 | ## --------- ## |
| 2021 | ## Platform. ## |
| 2022 | ## --------- ## |
| 2023 | |
| 2024 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2025 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2026 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2027 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2028 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2029 | |
| 2030 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2031 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2032 | |
| 2033 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2034 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2035 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2036 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2037 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2038 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2039 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2040 | |
| 2041 | _ASUNAME |
| 2042 | |
| 2043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2044 | for as_dir in $PATH |
| 2045 | do |
| 2046 | IFS=$as_save_IFS |
| 2047 | case $as_dir in #((( |
| 2048 | '') as_dir=./ ;; |
| 2049 | */) ;; |
| 2050 | *) as_dir=$as_dir/ ;; |
| 2051 | esac |
| 2052 | printf "%s\n" "PATH: $as_dir" |
| 2053 | done |
| 2054 | IFS=$as_save_IFS |
| 2055 | |
| 2056 | } >&5 |
| 2057 | |
| 2058 | cat >&5 <<_ACEOF |
| 2059 | |
| 2060 | |
| 2061 | ## ----------- ## |
| 2062 | ## Core tests. ## |
| 2063 | ## ----------- ## |
| 2064 | |
| 2065 | _ACEOF |
| 2066 | |
| 2067 | |
| 2068 | # Keep a trace of the command line. |
| 2069 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2070 | # Strip out --silent because we don't want to record it for future runs. |
| 2071 | # Also quote any args containing shell meta-characters. |
| 2072 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2073 | ac_configure_args= |
| 2074 | ac_configure_args0= |
| 2075 | ac_configure_args1= |
| 2076 | ac_must_keep_next=false |
| 2077 | for ac_pass in 1 2 |
| 2078 | do |
| 2079 | for ac_arg |
| 2080 | do |
| 2081 | case $ac_arg in |
| 2082 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2083 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2084 | | -silent | --silent | --silen | --sile | --sil) |
| 2085 | continue ;; |
| 2086 | *\'*) |
| 2087 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2088 | esac |
| 2089 | case $ac_pass in |
| 2090 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2091 | 2) |
| 2092 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2093 | if test $ac_must_keep_next = true; then |
| 2094 | ac_must_keep_next=false # Got value, back to normal. |
| 2095 | else |
| 2096 | case $ac_arg in |
| 2097 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2098 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2099 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2100 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2101 | case "$ac_configure_args0 " in |
| 2102 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2103 | esac |
| 2104 | ;; |
| 2105 | -* ) ac_must_keep_next=true ;; |
| 2106 | esac |
| 2107 | fi |
| 2108 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2109 | ;; |
| 2110 | esac |
| 2111 | done |
| 2112 | done |
| 2113 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2114 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2115 | |
| 2116 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2117 | # config.log. We remove comments because anyway the quotes in there |
| 2118 | # would cause problems or look ugly. |
| 2119 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2120 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2121 | trap 'exit_status=$? |
| 2122 | # Sanitize IFS. |
| 2123 | IFS=" "" $as_nl" |
| 2124 | # Save into config.log some information that might help in debugging. |
| 2125 | { |
| 2126 | echo |
| 2127 | |
| 2128 | printf "%s\n" "## ---------------- ## |
| 2129 | ## Cache variables. ## |
| 2130 | ## ---------------- ##" |
| 2131 | echo |
| 2132 | # The following way of writing the cache mishandles newlines in values, |
| 2133 | ( |
| 2134 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2135 | eval ac_val=\$$ac_var |
| 2136 | case $ac_val in #( |
| 2137 | *${as_nl}*) |
| 2138 | case $ac_var in #( |
| 2139 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2140 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2141 | esac |
| 2142 | case $ac_var in #( |
| 2143 | _ | IFS | as_nl) ;; #( |
| 2144 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2145 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2146 | esac ;; |
| 2147 | esac |
| 2148 | done |
| 2149 | (set) 2>&1 | |
| 2150 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2151 | *${as_nl}ac_space=\ *) |
| 2152 | sed -n \ |
| 2153 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2154 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2155 | ;; #( |
| 2156 | *) |
| 2157 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2158 | ;; |
| 2159 | esac | |
| 2160 | sort |
| 2161 | ) |
| 2162 | echo |
| 2163 | |
| 2164 | printf "%s\n" "## ----------------- ## |
| 2165 | ## Output variables. ## |
| 2166 | ## ----------------- ##" |
| 2167 | echo |
| 2168 | for ac_var in $ac_subst_vars |
| 2169 | do |
| 2170 | eval ac_val=\$$ac_var |
| 2171 | case $ac_val in |
| 2172 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2173 | esac |
| 2174 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2175 | done | sort |
| 2176 | echo |
| 2177 | |
| 2178 | if test -n "$ac_subst_files"; then |
| 2179 | printf "%s\n" "## ------------------- ## |
| 2180 | ## File substitutions. ## |
| 2181 | ## ------------------- ##" |
| 2182 | echo |
| 2183 | for ac_var in $ac_subst_files |
| 2184 | do |
| 2185 | eval ac_val=\$$ac_var |
| 2186 | case $ac_val in |
| 2187 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2188 | esac |
| 2189 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2190 | done | sort |
| 2191 | echo |
| 2192 | fi |
| 2193 | |
| 2194 | if test -s confdefs.h; then |
| 2195 | printf "%s\n" "## ----------- ## |
| 2196 | ## confdefs.h. ## |
| 2197 | ## ----------- ##" |
| 2198 | echo |
| 2199 | cat confdefs.h |
| 2200 | echo |
| 2201 | fi |
| 2202 | test "$ac_signal" != 0 && |
| 2203 | printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2204 | printf "%s\n" "$as_me: exit $exit_status" |
| 2205 | } >&5 |
| 2206 | rm -f core *.core core.conftest.* && |
| 2207 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2208 | exit $exit_status |
| 2209 | ' 0 |
| 2210 | for ac_signal in 1 2 13 15; do |
| 2211 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2212 | done |
| 2213 | ac_signal=0 |
| 2214 | |
| 2215 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2216 | rm -f -r conftest* confdefs.h |
| 2217 | |
| 2218 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2219 | |
| 2220 | # Predefined preprocessor variables. |
| 2221 | |
| 2222 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2223 | |
| 2224 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2225 | |
| 2226 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2227 | |
| 2228 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2229 | |
| 2230 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2231 | |
| 2232 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2233 | |
| 2234 | |
| 2235 | # Let the site file select an alternate cache file if it wants to. |
| 2236 | # Prefer an explicitly selected file to automatically selected ones. |
| 2237 | if test -n "$CONFIG_SITE"; then |
| 2238 | ac_site_files="$CONFIG_SITE" |
| 2239 | elif test "x$prefix" != xNONE; then |
| 2240 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2241 | else |
| 2242 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2243 | fi |
| 2244 | |
| 2245 | for ac_site_file in $ac_site_files |
| 2246 | do |
| 2247 | case $ac_site_file in #( |
| 2248 | */*) : |
| 2249 | ;; #( |
| 2250 | *) : |
| 2251 | ac_site_file=./$ac_site_file ;; |
| 2252 | esac |
| 2253 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2255 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2256 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2257 | . "$ac_site_file" \ |
| 2258 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2259 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2260 | as_fn_error $? "failed to load site script $ac_site_file |
| 2261 | See 'config.log' for more details" "$LINENO" 5; } |
| 2262 | fi |
| 2263 | done |
| 2264 | |
| 2265 | if test -r "$cache_file"; then |
| 2266 | # Some versions of bash will fail to source /dev/null (special files |
| 2267 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2268 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2270 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2271 | case $cache_file in |
| 2272 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2273 | *) . "./$cache_file";; |
| 2274 | esac |
| 2275 | fi |
| 2276 | else |
| 2277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2278 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2279 | >$cache_file |
| 2280 | fi |
| 2281 | |
| 2282 | # Test code for whether the C compiler supports C89 (global declarations) |
| 2283 | ac_c_conftest_c89_globals=' |
| 2284 | /* Does the compiler advertise C89 conformance? |
| 2285 | Do not test the value of __STDC__, because some compilers set it to 0 |
| 2286 | while being otherwise adequately conformant. */ |
| 2287 | #if !defined __STDC__ |
| 2288 | # error "Compiler does not advertise C89 conformance" |
| 2289 | #endif |
| 2290 | |
| 2291 | #include <stddef.h> |
| 2292 | #include <stdarg.h> |
| 2293 | struct stat; |
| 2294 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2295 | struct buf { int x; }; |
| 2296 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2297 | static char *e (char **p, int i) |
| 2298 | { |
| 2299 | return p[i]; |
| 2300 | } |
| 2301 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2302 | { |
| 2303 | char *s; |
| 2304 | va_list v; |
| 2305 | va_start (v,p); |
| 2306 | s = g (p, va_arg (v,int)); |
| 2307 | va_end (v); |
| 2308 | return s; |
| 2309 | } |
| 2310 | |
| 2311 | /* C89 style stringification. */ |
| 2312 | #define noexpand_stringify(a) #a |
| 2313 | const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 2314 | |
| 2315 | /* C89 style token pasting. Exercises some of the corner cases that |
| 2316 | e.g. old MSVC gets wrong, but not very hard. */ |
| 2317 | #define noexpand_concat(a,b) a##b |
| 2318 | #define expand_concat(a,b) noexpand_concat(a,b) |
| 2319 | extern int vA; |
| 2320 | extern int vbee; |
| 2321 | #define aye A |
| 2322 | #define bee B |
| 2323 | int *pvA = &expand_concat(v,aye); |
| 2324 | int *pvbee = &noexpand_concat(v,bee); |
| 2325 | |
| 2326 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2327 | function prototypes and stuff, but not \xHH hex character constants. |
| 2328 | These do not provoke an error unfortunately, instead are silently treated |
| 2329 | as an "x". The following induces an error, until -std is added to get |
| 2330 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2331 | array size at least. It is necessary to write \x00 == 0 to get something |
| 2332 | that is true only with -std. */ |
| 2333 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2334 | |
| 2335 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2336 | inside strings and character constants. */ |
| 2337 | #define FOO(x) '\''x'\'' |
| 2338 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2339 | |
| 2340 | int test (int i, double x); |
| 2341 | struct s1 {int (*f) (int a);}; |
| 2342 | struct s2 {int (*f) (double a);}; |
| 2343 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2344 | int, int);' |
| 2345 | |
| 2346 | # Test code for whether the C compiler supports C89 (body of main). |
| 2347 | ac_c_conftest_c89_main=' |
| 2348 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2349 | ' |
| 2350 | |
| 2351 | # Test code for whether the C compiler supports C99 (global declarations) |
| 2352 | ac_c_conftest_c99_globals=' |
| 2353 | /* Does the compiler advertise C99 conformance? */ |
| 2354 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2355 | # error "Compiler does not advertise C99 conformance" |
| 2356 | #endif |
| 2357 | |
| 2358 | // See if C++-style comments work. |
| 2359 | |
| 2360 | #include <stdbool.h> |
| 2361 | extern int puts (const char *); |
| 2362 | extern int printf (const char *, ...); |
| 2363 | extern int dprintf (int, const char *, ...); |
| 2364 | extern void *malloc (size_t); |
| 2365 | extern void free (void *); |
| 2366 | |
| 2367 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2368 | // dprintf is used instead of fprintf to avoid needing to declare |
| 2369 | // FILE and stderr. |
| 2370 | #define debug(...) dprintf (2, __VA_ARGS__) |
| 2371 | #define showlist(...) puts (#__VA_ARGS__) |
| 2372 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2373 | static void |
| 2374 | test_varargs_macros (void) |
| 2375 | { |
| 2376 | int x = 1234; |
| 2377 | int y = 5678; |
| 2378 | debug ("Flag"); |
| 2379 | debug ("X = %d\n", x); |
| 2380 | showlist (The first, second, and third items.); |
| 2381 | report (x>y, "x is %d but y is %d", x, y); |
| 2382 | } |
| 2383 | |
| 2384 | // Check long long types. |
| 2385 | #define BIG64 18446744073709551615ull |
| 2386 | #define BIG32 4294967295ul |
| 2387 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2388 | #if !BIG_OK |
| 2389 | #error "your preprocessor is broken" |
| 2390 | #endif |
| 2391 | #if BIG_OK |
| 2392 | #else |
| 2393 | #error "your preprocessor is broken" |
| 2394 | #endif |
| 2395 | static long long int bignum = -9223372036854775807LL; |
| 2396 | static unsigned long long int ubignum = BIG64; |
| 2397 | |
| 2398 | struct incomplete_array |
| 2399 | { |
| 2400 | int datasize; |
| 2401 | double data[]; |
| 2402 | }; |
| 2403 | |
| 2404 | struct named_init { |
| 2405 | int number; |
| 2406 | const wchar_t *name; |
| 2407 | double average; |
| 2408 | }; |
| 2409 | |
| 2410 | typedef const char *ccp; |
| 2411 | |
| 2412 | static inline int |
| 2413 | test_restrict (ccp restrict text) |
| 2414 | { |
| 2415 | // Iterate through items via the restricted pointer. |
| 2416 | // Also check for declarations in for loops. |
| 2417 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2418 | continue; |
| 2419 | return 0; |
| 2420 | } |
| 2421 | |
| 2422 | // Check varargs and va_copy. |
| 2423 | static bool |
| 2424 | test_varargs (const char *format, ...) |
| 2425 | { |
| 2426 | va_list args; |
| 2427 | va_start (args, format); |
| 2428 | va_list args_copy; |
| 2429 | va_copy (args_copy, args); |
| 2430 | |
| 2431 | const char *str = ""; |
| 2432 | int number = 0; |
| 2433 | float fnumber = 0; |
| 2434 | |
| 2435 | while (*format) |
| 2436 | { |
| 2437 | switch (*format++) |
| 2438 | { |
| 2439 | case '\''s'\'': // string |
| 2440 | str = va_arg (args_copy, const char *); |
| 2441 | break; |
| 2442 | case '\''d'\'': // int |
| 2443 | number = va_arg (args_copy, int); |
| 2444 | break; |
| 2445 | case '\''f'\'': // float |
| 2446 | fnumber = va_arg (args_copy, double); |
| 2447 | break; |
| 2448 | default: |
| 2449 | break; |
| 2450 | } |
| 2451 | } |
| 2452 | va_end (args_copy); |
| 2453 | va_end (args); |
| 2454 | |
| 2455 | return *str && number && fnumber; |
| 2456 | } |
| 2457 | ' |
| 2458 | |
| 2459 | # Test code for whether the C compiler supports C99 (body of main). |
| 2460 | ac_c_conftest_c99_main=' |
| 2461 | // Check bool. |
| 2462 | _Bool success = false; |
| 2463 | success |= (argc != 0); |
| 2464 | |
| 2465 | // Check restrict. |
| 2466 | if (test_restrict ("String literal") == 0) |
| 2467 | success = true; |
| 2468 | char *restrict newvar = "Another string"; |
| 2469 | |
| 2470 | // Check varargs. |
| 2471 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2472 | test_varargs_macros (); |
| 2473 | |
| 2474 | // Check flexible array members. |
| 2475 | struct incomplete_array *ia = |
| 2476 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2477 | ia->datasize = 10; |
| 2478 | for (int i = 0; i < ia->datasize; ++i) |
| 2479 | ia->data[i] = i * 1.234; |
| 2480 | // Work around memory leak warnings. |
| 2481 | free (ia); |
| 2482 | |
| 2483 | // Check named initializers. |
| 2484 | struct named_init ni = { |
| 2485 | .number = 34, |
| 2486 | .name = L"Test wide string", |
| 2487 | .average = 543.34343, |
| 2488 | }; |
| 2489 | |
| 2490 | ni.number = 58; |
| 2491 | |
| 2492 | int dynamic_array[ni.number]; |
| 2493 | dynamic_array[0] = argv[0][0]; |
| 2494 | dynamic_array[ni.number - 1] = 543; |
| 2495 | |
| 2496 | // work around unused variable warnings |
| 2497 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2498 | || dynamic_array[ni.number - 1] != 543); |
| 2499 | ' |
| 2500 | |
| 2501 | # Test code for whether the C compiler supports C11 (global declarations) |
| 2502 | ac_c_conftest_c11_globals=' |
| 2503 | /* Does the compiler advertise C11 conformance? */ |
| 2504 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2505 | # error "Compiler does not advertise C11 conformance" |
| 2506 | #endif |
| 2507 | |
| 2508 | // Check _Alignas. |
| 2509 | char _Alignas (double) aligned_as_double; |
| 2510 | char _Alignas (0) no_special_alignment; |
| 2511 | extern char aligned_as_int; |
| 2512 | char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2513 | |
| 2514 | // Check _Alignof. |
| 2515 | enum |
| 2516 | { |
| 2517 | int_alignment = _Alignof (int), |
| 2518 | int_array_alignment = _Alignof (int[100]), |
| 2519 | char_alignment = _Alignof (char) |
| 2520 | }; |
| 2521 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2522 | |
| 2523 | // Check _Noreturn. |
| 2524 | int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2525 | |
| 2526 | // Check _Static_assert. |
| 2527 | struct test_static_assert |
| 2528 | { |
| 2529 | int x; |
| 2530 | _Static_assert (sizeof (int) <= sizeof (long int), |
| 2531 | "_Static_assert does not work in struct"); |
| 2532 | long int y; |
| 2533 | }; |
| 2534 | |
| 2535 | // Check UTF-8 literals. |
| 2536 | #define u8 syntax error! |
| 2537 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2538 | |
| 2539 | // Check duplicate typedefs. |
| 2540 | typedef long *long_ptr; |
| 2541 | typedef long int *long_ptr; |
| 2542 | typedef long_ptr long_ptr; |
| 2543 | |
| 2544 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2545 | struct anonymous |
| 2546 | { |
| 2547 | union { |
| 2548 | struct { int i; int j; }; |
| 2549 | struct { int k; long int l; } w; |
| 2550 | }; |
| 2551 | int m; |
| 2552 | } v1; |
| 2553 | ' |
| 2554 | |
| 2555 | # Test code for whether the C compiler supports C11 (body of main). |
| 2556 | ac_c_conftest_c11_main=' |
| 2557 | _Static_assert ((offsetof (struct anonymous, i) |
| 2558 | == offsetof (struct anonymous, w.k)), |
| 2559 | "Anonymous union alignment botch"); |
| 2560 | v1.i = 2; |
| 2561 | v1.w.k = 5; |
| 2562 | ok |= v1.i != 5; |
| 2563 | ' |
| 2564 | |
| 2565 | # Test code for whether the C compiler supports C11 (complete). |
| 2566 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2567 | ${ac_c_conftest_c99_globals} |
| 2568 | ${ac_c_conftest_c11_globals} |
| 2569 | |
| 2570 | int |
| 2571 | main (int argc, char **argv) |
| 2572 | { |
| 2573 | int ok = 0; |
| 2574 | ${ac_c_conftest_c89_main} |
| 2575 | ${ac_c_conftest_c99_main} |
| 2576 | ${ac_c_conftest_c11_main} |
| 2577 | return ok; |
| 2578 | } |
| 2579 | " |
| 2580 | |
| 2581 | # Test code for whether the C compiler supports C99 (complete). |
| 2582 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2583 | ${ac_c_conftest_c99_globals} |
| 2584 | |
| 2585 | int |
| 2586 | main (int argc, char **argv) |
| 2587 | { |
| 2588 | int ok = 0; |
| 2589 | ${ac_c_conftest_c89_main} |
| 2590 | ${ac_c_conftest_c99_main} |
| 2591 | return ok; |
| 2592 | } |
| 2593 | " |
| 2594 | |
| 2595 | # Test code for whether the C compiler supports C89 (complete). |
| 2596 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2597 | |
| 2598 | int |
| 2599 | main (int argc, char **argv) |
| 2600 | { |
| 2601 | int ok = 0; |
| 2602 | ${ac_c_conftest_c89_main} |
| 2603 | return ok; |
| 2604 | } |
| 2605 | " |
| 2606 | |
| 2607 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 2608 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 2609 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 2610 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 2611 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 2612 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 2613 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 2614 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 2615 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 2616 | as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
| 2617 | # Check that the precious variables saved in the cache have kept the same |
| 2618 | # value. |
| 2619 | ac_cache_corrupted=false |
| 2620 | for ac_var in $ac_precious_vars; do |
| 2621 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2622 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2623 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2624 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2625 | case $ac_old_set,$ac_new_set in |
| 2626 | set,) |
| 2627 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 2628 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
| 2629 | ac_cache_corrupted=: ;; |
| 2630 | ,set) |
| 2631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 2632 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
| 2633 | ac_cache_corrupted=: ;; |
| 2634 | ,);; |
| 2635 | *) |
| 2636 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2637 | # differences in whitespace do not lead to failure. |
| 2638 | ac_old_val_w=`echo x $ac_old_val` |
| 2639 | ac_new_val_w=`echo x $ac_new_val` |
| 2640 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2641 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 2642 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
| 2643 | ac_cache_corrupted=: |
| 2644 | else |
| 2645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 2646 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
| 2647 | eval $ac_var=\$ac_old_val |
| 2648 | fi |
| 2649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 2650 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 2651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 2652 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
| 2653 | fi;; |
| 2654 | esac |
| 2655 | # Pass precious variables to config.status. |
| 2656 | if test "$ac_new_set" = set; then |
| 2657 | case $ac_new_val in |
| 2658 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2659 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2660 | esac |
| 2661 | case " $ac_configure_args " in |
| 2662 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2663 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2664 | esac |
| 2665 | fi |
| 2666 | done |
| 2667 | if $ac_cache_corrupted; then |
| 2668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2669 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2671 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2672 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
| 2673 | and start over" "$LINENO" 5 |
| 2674 | fi |
| 2675 | ## -------------------- ## |
| 2676 | ## Main body of script. ## |
| 2677 | ## -------------------- ## |
| 2678 | |
| 2679 | ac_ext=c |
| 2680 | ac_cpp='$CPP $CPPFLAGS' |
| 2681 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2682 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2683 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2684 | |
| 2685 | |
| 2686 | |
| 2687 | |
| 2688 | |
| 2689 | ac_config_headers="$ac_config_headers tclConfig.h:../unix/tclConfig.h.in" |
| 2690 | |
| 2691 | |
| 2692 | |
| 2693 | |
| 2694 | |
| 2695 | |
| 2696 | TCL_VERSION=8.6 |
| 2697 | TCL_MAJOR_VERSION=8 |
| 2698 | TCL_MINOR_VERSION=6 |
| 2699 | TCL_PATCH_LEVEL=".18" |
| 2700 | VERSION=${TCL_VERSION} |
| 2701 | |
| 2702 | EXTRA_INSTALL_BINARIES=${EXTRA_INSTALL_BINARIES:-"@:"} |
| 2703 | EXTRA_BUILD_HTML=${EXTRA_BUILD_HTML:-"@:"} |
| 2704 | |
| 2705 | #------------------------------------------------------------------------ |
| 2706 | # Setup configure arguments for bundled packages |
| 2707 | #------------------------------------------------------------------------ |
| 2708 | |
| 2709 | PKG_CFG_ARGS="$ac_configure_args ${PKG_CFG_ARGS}" |
| 2710 | |
| 2711 | if test -r "$cache_file" -a -f "$cache_file"; then |
| 2712 | case $cache_file in |
| 2713 | [\\/]* | ?:[\\/]* ) pkg_cache_file=$cache_file ;; |
| 2714 | *) pkg_cache_file=../../$cache_file ;; |
| 2715 | esac |
| 2716 | PKG_CFG_ARGS="${PKG_CFG_ARGS} --cache-file=$pkg_cache_file" |
| 2717 | fi |
| 2718 | |
| 2719 | #------------------------------------------------------------------------ |
| 2720 | # Empty slate for bundled packages, to avoid stale configuration |
| 2721 | #------------------------------------------------------------------------ |
| 2722 | #rm -Rf pkgs |
| 2723 | if test -f Makefile; then |
| 2724 | make distclean-packages |
| 2725 | fi |
| 2726 | |
| 2727 | #------------------------------------------------------------------------ |
| 2728 | # Handle the --prefix=... option |
| 2729 | #------------------------------------------------------------------------ |
| 2730 | |
| 2731 | if test "${prefix}" = "NONE"; then |
| 2732 | prefix=/usr/local |
| 2733 | fi |
| 2734 | if test "${exec_prefix}" = "NONE"; then |
| 2735 | exec_prefix=$prefix |
| 2736 | fi |
| 2737 | # Make sure srcdir is fully qualified! |
| 2738 | srcdir="`cd "$srcdir" ; pwd`" |
| 2739 | TCL_SRC_DIR="`cd "$srcdir"/..; pwd`" |
| 2740 | |
| 2741 | #------------------------------------------------------------------------ |
| 2742 | # Compress and/or soft link the manpages? |
| 2743 | #------------------------------------------------------------------------ |
| 2744 | |
| 2745 | |
| 2746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use symlinks for manpages" >&5 |
| 2747 | printf %s "checking whether to use symlinks for manpages... " >&6; } |
| 2748 | # Check whether --enable-man-symlinks was given. |
| 2749 | if test ${enable_man_symlinks+y} |
| 2750 | then : |
| 2751 | enableval=$enable_man_symlinks; test "$enableval" != "no" && MAN_FLAGS="$MAN_FLAGS --symlinks" |
| 2752 | else case e in #( |
| 2753 | e) enableval="no" ;; |
| 2754 | esac |
| 2755 | fi |
| 2756 | |
| 2757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 |
| 2758 | printf "%s\n" "$enableval" >&6; } |
| 2759 | |
| 2760 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compress the manpages" >&5 |
| 2761 | printf %s "checking whether to compress the manpages... " >&6; } |
| 2762 | # Check whether --enable-man-compression was given. |
| 2763 | if test ${enable_man_compression+y} |
| 2764 | then : |
| 2765 | enableval=$enable_man_compression; case $enableval in |
| 2766 | yes) as_fn_error $? "missing argument to --enable-man-compression" "$LINENO" 5;; |
| 2767 | no) ;; |
| 2768 | *) MAN_FLAGS="$MAN_FLAGS --compress $enableval";; |
| 2769 | esac |
| 2770 | else case e in #( |
| 2771 | e) enableval="no" ;; |
| 2772 | esac |
| 2773 | fi |
| 2774 | |
| 2775 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 |
| 2776 | printf "%s\n" "$enableval" >&6; } |
| 2777 | if test "$enableval" != "no"; then |
| 2778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compressed file suffix" >&5 |
| 2779 | printf %s "checking for compressed file suffix... " >&6; } |
| 2780 | touch TeST |
| 2781 | $enableval TeST |
| 2782 | Z=`ls TeST.* | sed 's/^....//'` |
| 2783 | rm -f TeST* |
| 2784 | MAN_FLAGS="$MAN_FLAGS --extension $Z" |
| 2785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $Z" >&5 |
| 2786 | printf "%s\n" "$Z" >&6; } |
| 2787 | fi |
| 2788 | |
| 2789 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add a package name suffix for the manpages" >&5 |
| 2790 | printf %s "checking whether to add a package name suffix for the manpages... " >&6; } |
| 2791 | # Check whether --enable-man-suffix was given. |
| 2792 | if test ${enable_man_suffix+y} |
| 2793 | then : |
| 2794 | enableval=$enable_man_suffix; case $enableval in |
| 2795 | yes) enableval="tcl" MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; |
| 2796 | no) ;; |
| 2797 | *) MAN_FLAGS="$MAN_FLAGS --suffix $enableval";; |
| 2798 | esac |
| 2799 | else case e in #( |
| 2800 | e) enableval="no" ;; |
| 2801 | esac |
| 2802 | fi |
| 2803 | |
| 2804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 |
| 2805 | printf "%s\n" "$enableval" >&6; } |
| 2806 | |
| 2807 | |
| 2808 | |
| 2809 | |
| 2810 | #------------------------------------------------------------------------ |
| 2811 | # Standard compiler checks |
| 2812 | #------------------------------------------------------------------------ |
| 2813 | |
| 2814 | # If the user did not set CFLAGS, set it now to keep |
| 2815 | # the AC_PROG_CC macro from adding "-g -O2". |
| 2816 | if test "${CFLAGS+set}" != "set" ; then |
| 2817 | CFLAGS="" |
| 2818 | fi |
| 2819 | |
| 2820 | |
| 2821 | |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
| 2827 | |
| 2828 | |
| 2829 | ac_ext=c |
| 2830 | ac_cpp='$CPP $CPPFLAGS' |
| 2831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2834 | if test -n "$ac_tool_prefix"; then |
| 2835 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2836 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2837 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2838 | printf %s "checking for $ac_word... " >&6; } |
| 2839 | if test ${ac_cv_prog_CC+y} |
| 2840 | then : |
| 2841 | printf %s "(cached) " >&6 |
| 2842 | else case e in #( |
| 2843 | e) if test -n "$CC"; then |
| 2844 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2845 | else |
| 2846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2847 | for as_dir in $PATH |
| 2848 | do |
| 2849 | IFS=$as_save_IFS |
| 2850 | case $as_dir in #((( |
| 2851 | '') as_dir=./ ;; |
| 2852 | */) ;; |
| 2853 | *) as_dir=$as_dir/ ;; |
| 2854 | esac |
| 2855 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2856 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2857 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2858 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2859 | break 2 |
| 2860 | fi |
| 2861 | done |
| 2862 | done |
| 2863 | IFS=$as_save_IFS |
| 2864 | |
| 2865 | fi ;; |
| 2866 | esac |
| 2867 | fi |
| 2868 | CC=$ac_cv_prog_CC |
| 2869 | if test -n "$CC"; then |
| 2870 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2871 | printf "%s\n" "$CC" >&6; } |
| 2872 | else |
| 2873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2874 | printf "%s\n" "no" >&6; } |
| 2875 | fi |
| 2876 | |
| 2877 | |
| 2878 | fi |
| 2879 | if test -z "$ac_cv_prog_CC"; then |
| 2880 | ac_ct_CC=$CC |
| 2881 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2882 | set dummy gcc; ac_word=$2 |
| 2883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2884 | printf %s "checking for $ac_word... " >&6; } |
| 2885 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 2886 | then : |
| 2887 | printf %s "(cached) " >&6 |
| 2888 | else case e in #( |
| 2889 | e) if test -n "$ac_ct_CC"; then |
| 2890 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2891 | else |
| 2892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2893 | for as_dir in $PATH |
| 2894 | do |
| 2895 | IFS=$as_save_IFS |
| 2896 | case $as_dir in #((( |
| 2897 | '') as_dir=./ ;; |
| 2898 | */) ;; |
| 2899 | *) as_dir=$as_dir/ ;; |
| 2900 | esac |
| 2901 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2902 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2903 | ac_cv_prog_ac_ct_CC="gcc" |
| 2904 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2905 | break 2 |
| 2906 | fi |
| 2907 | done |
| 2908 | done |
| 2909 | IFS=$as_save_IFS |
| 2910 | |
| 2911 | fi ;; |
| 2912 | esac |
| 2913 | fi |
| 2914 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2915 | if test -n "$ac_ct_CC"; then |
| 2916 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2917 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 2918 | else |
| 2919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2920 | printf "%s\n" "no" >&6; } |
| 2921 | fi |
| 2922 | |
| 2923 | if test "x$ac_ct_CC" = x; then |
| 2924 | CC="" |
| 2925 | else |
| 2926 | case $cross_compiling:$ac_tool_warned in |
| 2927 | yes:) |
| 2928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2929 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2930 | ac_tool_warned=yes ;; |
| 2931 | esac |
| 2932 | CC=$ac_ct_CC |
| 2933 | fi |
| 2934 | else |
| 2935 | CC="$ac_cv_prog_CC" |
| 2936 | fi |
| 2937 | |
| 2938 | if test -z "$CC"; then |
| 2939 | if test -n "$ac_tool_prefix"; then |
| 2940 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2941 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2943 | printf %s "checking for $ac_word... " >&6; } |
| 2944 | if test ${ac_cv_prog_CC+y} |
| 2945 | then : |
| 2946 | printf %s "(cached) " >&6 |
| 2947 | else case e in #( |
| 2948 | e) if test -n "$CC"; then |
| 2949 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2950 | else |
| 2951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2952 | for as_dir in $PATH |
| 2953 | do |
| 2954 | IFS=$as_save_IFS |
| 2955 | case $as_dir in #((( |
| 2956 | '') as_dir=./ ;; |
| 2957 | */) ;; |
| 2958 | *) as_dir=$as_dir/ ;; |
| 2959 | esac |
| 2960 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2961 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2962 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2963 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2964 | break 2 |
| 2965 | fi |
| 2966 | done |
| 2967 | done |
| 2968 | IFS=$as_save_IFS |
| 2969 | |
| 2970 | fi ;; |
| 2971 | esac |
| 2972 | fi |
| 2973 | CC=$ac_cv_prog_CC |
| 2974 | if test -n "$CC"; then |
| 2975 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2976 | printf "%s\n" "$CC" >&6; } |
| 2977 | else |
| 2978 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2979 | printf "%s\n" "no" >&6; } |
| 2980 | fi |
| 2981 | |
| 2982 | |
| 2983 | fi |
| 2984 | fi |
| 2985 | if test -z "$CC"; then |
| 2986 | # Extract the first word of "cc", so it can be a program name with args. |
| 2987 | set dummy cc; ac_word=$2 |
| 2988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2989 | printf %s "checking for $ac_word... " >&6; } |
| 2990 | if test ${ac_cv_prog_CC+y} |
| 2991 | then : |
| 2992 | printf %s "(cached) " >&6 |
| 2993 | else case e in #( |
| 2994 | e) if test -n "$CC"; then |
| 2995 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2996 | else |
| 2997 | ac_prog_rejected=no |
| 2998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2999 | for as_dir in $PATH |
| 3000 | do |
| 3001 | IFS=$as_save_IFS |
| 3002 | case $as_dir in #((( |
| 3003 | '') as_dir=./ ;; |
| 3004 | */) ;; |
| 3005 | *) as_dir=$as_dir/ ;; |
| 3006 | esac |
| 3007 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3008 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3009 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3010 | ac_prog_rejected=yes |
| 3011 | continue |
| 3012 | fi |
| 3013 | ac_cv_prog_CC="cc" |
| 3014 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3015 | break 2 |
| 3016 | fi |
| 3017 | done |
| 3018 | done |
| 3019 | IFS=$as_save_IFS |
| 3020 | |
| 3021 | if test $ac_prog_rejected = yes; then |
| 3022 | # We found a bogon in the path, so make sure we never use it. |
| 3023 | set dummy $ac_cv_prog_CC |
| 3024 | shift |
| 3025 | if test $# != 0; then |
| 3026 | # We chose a different compiler from the bogus one. |
| 3027 | # However, it has the same basename, so the bogon will be chosen |
| 3028 | # first if we set CC to just the basename; use the full file name. |
| 3029 | shift |
| 3030 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 3031 | fi |
| 3032 | fi |
| 3033 | fi ;; |
| 3034 | esac |
| 3035 | fi |
| 3036 | CC=$ac_cv_prog_CC |
| 3037 | if test -n "$CC"; then |
| 3038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3039 | printf "%s\n" "$CC" >&6; } |
| 3040 | else |
| 3041 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3042 | printf "%s\n" "no" >&6; } |
| 3043 | fi |
| 3044 | |
| 3045 | |
| 3046 | fi |
| 3047 | if test -z "$CC"; then |
| 3048 | if test -n "$ac_tool_prefix"; then |
| 3049 | for ac_prog in cl.exe |
| 3050 | do |
| 3051 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3052 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3054 | printf %s "checking for $ac_word... " >&6; } |
| 3055 | if test ${ac_cv_prog_CC+y} |
| 3056 | then : |
| 3057 | printf %s "(cached) " >&6 |
| 3058 | else case e in #( |
| 3059 | e) if test -n "$CC"; then |
| 3060 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3061 | else |
| 3062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3063 | for as_dir in $PATH |
| 3064 | do |
| 3065 | IFS=$as_save_IFS |
| 3066 | case $as_dir in #((( |
| 3067 | '') as_dir=./ ;; |
| 3068 | */) ;; |
| 3069 | *) as_dir=$as_dir/ ;; |
| 3070 | esac |
| 3071 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3072 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3073 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3074 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3075 | break 2 |
| 3076 | fi |
| 3077 | done |
| 3078 | done |
| 3079 | IFS=$as_save_IFS |
| 3080 | |
| 3081 | fi ;; |
| 3082 | esac |
| 3083 | fi |
| 3084 | CC=$ac_cv_prog_CC |
| 3085 | if test -n "$CC"; then |
| 3086 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3087 | printf "%s\n" "$CC" >&6; } |
| 3088 | else |
| 3089 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3090 | printf "%s\n" "no" >&6; } |
| 3091 | fi |
| 3092 | |
| 3093 | |
| 3094 | test -n "$CC" && break |
| 3095 | done |
| 3096 | fi |
| 3097 | if test -z "$CC"; then |
| 3098 | ac_ct_CC=$CC |
| 3099 | for ac_prog in cl.exe |
| 3100 | do |
| 3101 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3102 | set dummy $ac_prog; ac_word=$2 |
| 3103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3104 | printf %s "checking for $ac_word... " >&6; } |
| 3105 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3106 | then : |
| 3107 | printf %s "(cached) " >&6 |
| 3108 | else case e in #( |
| 3109 | e) if test -n "$ac_ct_CC"; then |
| 3110 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3111 | else |
| 3112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3113 | for as_dir in $PATH |
| 3114 | do |
| 3115 | IFS=$as_save_IFS |
| 3116 | case $as_dir in #((( |
| 3117 | '') as_dir=./ ;; |
| 3118 | */) ;; |
| 3119 | *) as_dir=$as_dir/ ;; |
| 3120 | esac |
| 3121 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3122 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3123 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3124 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3125 | break 2 |
| 3126 | fi |
| 3127 | done |
| 3128 | done |
| 3129 | IFS=$as_save_IFS |
| 3130 | |
| 3131 | fi ;; |
| 3132 | esac |
| 3133 | fi |
| 3134 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3135 | if test -n "$ac_ct_CC"; then |
| 3136 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3137 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3138 | else |
| 3139 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3140 | printf "%s\n" "no" >&6; } |
| 3141 | fi |
| 3142 | |
| 3143 | |
| 3144 | test -n "$ac_ct_CC" && break |
| 3145 | done |
| 3146 | |
| 3147 | if test "x$ac_ct_CC" = x; then |
| 3148 | CC="" |
| 3149 | else |
| 3150 | case $cross_compiling:$ac_tool_warned in |
| 3151 | yes:) |
| 3152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3153 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3154 | ac_tool_warned=yes ;; |
| 3155 | esac |
| 3156 | CC=$ac_ct_CC |
| 3157 | fi |
| 3158 | fi |
| 3159 | |
| 3160 | fi |
| 3161 | if test -z "$CC"; then |
| 3162 | if test -n "$ac_tool_prefix"; then |
| 3163 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 3164 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 3165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3166 | printf %s "checking for $ac_word... " >&6; } |
| 3167 | if test ${ac_cv_prog_CC+y} |
| 3168 | then : |
| 3169 | printf %s "(cached) " >&6 |
| 3170 | else case e in #( |
| 3171 | e) if test -n "$CC"; then |
| 3172 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3173 | else |
| 3174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3175 | for as_dir in $PATH |
| 3176 | do |
| 3177 | IFS=$as_save_IFS |
| 3178 | case $as_dir in #((( |
| 3179 | '') as_dir=./ ;; |
| 3180 | */) ;; |
| 3181 | *) as_dir=$as_dir/ ;; |
| 3182 | esac |
| 3183 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3184 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3185 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 3186 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3187 | break 2 |
| 3188 | fi |
| 3189 | done |
| 3190 | done |
| 3191 | IFS=$as_save_IFS |
| 3192 | |
| 3193 | fi ;; |
| 3194 | esac |
| 3195 | fi |
| 3196 | CC=$ac_cv_prog_CC |
| 3197 | if test -n "$CC"; then |
| 3198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3199 | printf "%s\n" "$CC" >&6; } |
| 3200 | else |
| 3201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3202 | printf "%s\n" "no" >&6; } |
| 3203 | fi |
| 3204 | |
| 3205 | |
| 3206 | fi |
| 3207 | if test -z "$ac_cv_prog_CC"; then |
| 3208 | ac_ct_CC=$CC |
| 3209 | # Extract the first word of "clang", so it can be a program name with args. |
| 3210 | set dummy clang; ac_word=$2 |
| 3211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3212 | printf %s "checking for $ac_word... " >&6; } |
| 3213 | if test ${ac_cv_prog_ac_ct_CC+y} |
| 3214 | then : |
| 3215 | printf %s "(cached) " >&6 |
| 3216 | else case e in #( |
| 3217 | e) if test -n "$ac_ct_CC"; then |
| 3218 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3219 | else |
| 3220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3221 | for as_dir in $PATH |
| 3222 | do |
| 3223 | IFS=$as_save_IFS |
| 3224 | case $as_dir in #((( |
| 3225 | '') as_dir=./ ;; |
| 3226 | */) ;; |
| 3227 | *) as_dir=$as_dir/ ;; |
| 3228 | esac |
| 3229 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3230 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3231 | ac_cv_prog_ac_ct_CC="clang" |
| 3232 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3233 | break 2 |
| 3234 | fi |
| 3235 | done |
| 3236 | done |
| 3237 | IFS=$as_save_IFS |
| 3238 | |
| 3239 | fi ;; |
| 3240 | esac |
| 3241 | fi |
| 3242 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3243 | if test -n "$ac_ct_CC"; then |
| 3244 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3245 | printf "%s\n" "$ac_ct_CC" >&6; } |
| 3246 | else |
| 3247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3248 | printf "%s\n" "no" >&6; } |
| 3249 | fi |
| 3250 | |
| 3251 | if test "x$ac_ct_CC" = x; then |
| 3252 | CC="" |
| 3253 | else |
| 3254 | case $cross_compiling:$ac_tool_warned in |
| 3255 | yes:) |
| 3256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3257 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3258 | ac_tool_warned=yes ;; |
| 3259 | esac |
| 3260 | CC=$ac_ct_CC |
| 3261 | fi |
| 3262 | else |
| 3263 | CC="$ac_cv_prog_CC" |
| 3264 | fi |
| 3265 | |
| 3266 | fi |
| 3267 | |
| 3268 | |
| 3269 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3270 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3271 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3272 | See 'config.log' for more details" "$LINENO" 5; } |
| 3273 | |
| 3274 | # Provide some information about the compiler. |
| 3275 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3276 | set X $ac_compile |
| 3277 | ac_compiler=$2 |
| 3278 | for ac_option in --version -v -V -qversion -version; do |
| 3279 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3280 | case "(($ac_try" in |
| 3281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3282 | *) ac_try_echo=$ac_try;; |
| 3283 | esac |
| 3284 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3285 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3286 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3287 | ac_status=$? |
| 3288 | if test -s conftest.err; then |
| 3289 | sed '10a\ |
| 3290 | ... rest of stderr output deleted ... |
| 3291 | 10q' conftest.err >conftest.er1 |
| 3292 | cat conftest.er1 >&5 |
| 3293 | fi |
| 3294 | rm -f conftest.er1 conftest.err |
| 3295 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3296 | test $ac_status = 0; } |
| 3297 | done |
| 3298 | |
| 3299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3300 | /* end confdefs.h. */ |
| 3301 | |
| 3302 | int |
| 3303 | main (void) |
| 3304 | { |
| 3305 | |
| 3306 | ; |
| 3307 | return 0; |
| 3308 | } |
| 3309 | _ACEOF |
| 3310 | ac_clean_files_save=$ac_clean_files |
| 3311 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3312 | # Try to create an executable without -o first, disregard a.out. |
| 3313 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3314 | # of exeext. |
| 3315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3316 | printf %s "checking whether the C compiler works... " >&6; } |
| 3317 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3318 | |
| 3319 | # The possible output files: |
| 3320 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3321 | |
| 3322 | ac_rmfiles= |
| 3323 | for ac_file in $ac_files |
| 3324 | do |
| 3325 | case $ac_file in |
| 3326 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3327 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3328 | esac |
| 3329 | done |
| 3330 | rm -f $ac_rmfiles |
| 3331 | |
| 3332 | if { { ac_try="$ac_link_default" |
| 3333 | case "(($ac_try" in |
| 3334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3335 | *) ac_try_echo=$ac_try;; |
| 3336 | esac |
| 3337 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3338 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3339 | (eval "$ac_link_default") 2>&5 |
| 3340 | ac_status=$? |
| 3341 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3342 | test $ac_status = 0; } |
| 3343 | then : |
| 3344 | # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 3345 | # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
| 3346 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3347 | # so that the user can short-circuit this test for compilers unknown to |
| 3348 | # Autoconf. |
| 3349 | for ac_file in $ac_files '' |
| 3350 | do |
| 3351 | test -f "$ac_file" || continue |
| 3352 | case $ac_file in |
| 3353 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3354 | ;; |
| 3355 | [ab].out ) |
| 3356 | # We found the default executable, but exeext='' is most |
| 3357 | # certainly right. |
| 3358 | break;; |
| 3359 | *.* ) |
| 3360 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 3361 | then :; else |
| 3362 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3363 | fi |
| 3364 | # We set ac_cv_exeext here because the later test for it is not |
| 3365 | # safe: cross compilers may not add the suffix if given an '-o' |
| 3366 | # argument, so we may need to know it at that point already. |
| 3367 | # Even if this section looks crufty: it has the advantage of |
| 3368 | # actually working. |
| 3369 | break;; |
| 3370 | * ) |
| 3371 | break;; |
| 3372 | esac |
| 3373 | done |
| 3374 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3375 | |
| 3376 | else case e in #( |
| 3377 | e) ac_file='' ;; |
| 3378 | esac |
| 3379 | fi |
| 3380 | if test -z "$ac_file" |
| 3381 | then : |
| 3382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3383 | printf "%s\n" "no" >&6; } |
| 3384 | printf "%s\n" "$as_me: failed program was:" >&5 |
| 3385 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3386 | |
| 3387 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3388 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3389 | as_fn_error 77 "C compiler cannot create executables |
| 3390 | See 'config.log' for more details" "$LINENO" 5; } |
| 3391 | else case e in #( |
| 3392 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3393 | printf "%s\n" "yes" >&6; } ;; |
| 3394 | esac |
| 3395 | fi |
| 3396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3397 | printf %s "checking for C compiler default output file name... " >&6; } |
| 3398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3399 | printf "%s\n" "$ac_file" >&6; } |
| 3400 | ac_exeext=$ac_cv_exeext |
| 3401 | |
| 3402 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3403 | ac_clean_files=$ac_clean_files_save |
| 3404 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3405 | printf %s "checking for suffix of executables... " >&6; } |
| 3406 | if { { ac_try="$ac_link" |
| 3407 | case "(($ac_try" in |
| 3408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3409 | *) ac_try_echo=$ac_try;; |
| 3410 | esac |
| 3411 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3412 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3413 | (eval "$ac_link") 2>&5 |
| 3414 | ac_status=$? |
| 3415 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3416 | test $ac_status = 0; } |
| 3417 | then : |
| 3418 | # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 3419 | # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 3420 | # work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 3421 | # 'rm'. |
| 3422 | for ac_file in conftest.exe conftest conftest.*; do |
| 3423 | test -f "$ac_file" || continue |
| 3424 | case $ac_file in |
| 3425 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3426 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3427 | break;; |
| 3428 | * ) break;; |
| 3429 | esac |
| 3430 | done |
| 3431 | else case e in #( |
| 3432 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3433 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3434 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3435 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 3436 | esac |
| 3437 | fi |
| 3438 | rm -f conftest conftest$ac_cv_exeext |
| 3439 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3440 | printf "%s\n" "$ac_cv_exeext" >&6; } |
| 3441 | |
| 3442 | rm -f conftest.$ac_ext |
| 3443 | EXEEXT=$ac_cv_exeext |
| 3444 | ac_exeext=$EXEEXT |
| 3445 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3446 | /* end confdefs.h. */ |
| 3447 | #include <stdio.h> |
| 3448 | int |
| 3449 | main (void) |
| 3450 | { |
| 3451 | FILE *f = fopen ("conftest.out", "w"); |
| 3452 | if (!f) |
| 3453 | return 1; |
| 3454 | return ferror (f) || fclose (f) != 0; |
| 3455 | |
| 3456 | ; |
| 3457 | return 0; |
| 3458 | } |
| 3459 | _ACEOF |
| 3460 | ac_clean_files="$ac_clean_files conftest.out" |
| 3461 | # Check that the compiler produces executables we can run. If not, either |
| 3462 | # the compiler is broken, or we cross compile. |
| 3463 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3464 | printf %s "checking whether we are cross compiling... " >&6; } |
| 3465 | if test "$cross_compiling" != yes; then |
| 3466 | { { ac_try="$ac_link" |
| 3467 | case "(($ac_try" in |
| 3468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3469 | *) ac_try_echo=$ac_try;; |
| 3470 | esac |
| 3471 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3472 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3473 | (eval "$ac_link") 2>&5 |
| 3474 | ac_status=$? |
| 3475 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3476 | test $ac_status = 0; } |
| 3477 | if { ac_try='./conftest$ac_cv_exeext' |
| 3478 | { { case "(($ac_try" in |
| 3479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3480 | *) ac_try_echo=$ac_try;; |
| 3481 | esac |
| 3482 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3483 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3484 | (eval "$ac_try") 2>&5 |
| 3485 | ac_status=$? |
| 3486 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3487 | test $ac_status = 0; }; }; then |
| 3488 | cross_compiling=no |
| 3489 | else |
| 3490 | if test "$cross_compiling" = maybe; then |
| 3491 | cross_compiling=yes |
| 3492 | else |
| 3493 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3494 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3495 | as_fn_error 77 "cannot run C compiled programs. |
| 3496 | If you meant to cross compile, use '--host'. |
| 3497 | See 'config.log' for more details" "$LINENO" 5; } |
| 3498 | fi |
| 3499 | fi |
| 3500 | fi |
| 3501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3502 | printf "%s\n" "$cross_compiling" >&6; } |
| 3503 | |
| 3504 | rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 3505 | conftest.o conftest.obj conftest.out |
| 3506 | ac_clean_files=$ac_clean_files_save |
| 3507 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3508 | printf %s "checking for suffix of object files... " >&6; } |
| 3509 | if test ${ac_cv_objext+y} |
| 3510 | then : |
| 3511 | printf %s "(cached) " >&6 |
| 3512 | else case e in #( |
| 3513 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3514 | /* end confdefs.h. */ |
| 3515 | |
| 3516 | int |
| 3517 | main (void) |
| 3518 | { |
| 3519 | |
| 3520 | ; |
| 3521 | return 0; |
| 3522 | } |
| 3523 | _ACEOF |
| 3524 | rm -f conftest.o conftest.obj |
| 3525 | if { { ac_try="$ac_compile" |
| 3526 | case "(($ac_try" in |
| 3527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3528 | *) ac_try_echo=$ac_try;; |
| 3529 | esac |
| 3530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3531 | printf "%s\n" "$ac_try_echo"; } >&5 |
| 3532 | (eval "$ac_compile") 2>&5 |
| 3533 | ac_status=$? |
| 3534 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3535 | test $ac_status = 0; } |
| 3536 | then : |
| 3537 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3538 | test -f "$ac_file" || continue; |
| 3539 | case $ac_file in |
| 3540 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3541 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3542 | break;; |
| 3543 | esac |
| 3544 | done |
| 3545 | else case e in #( |
| 3546 | e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 3547 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3548 | |
| 3549 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3550 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3551 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3552 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 3553 | esac |
| 3554 | fi |
| 3555 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 3556 | esac |
| 3557 | fi |
| 3558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3559 | printf "%s\n" "$ac_cv_objext" >&6; } |
| 3560 | OBJEXT=$ac_cv_objext |
| 3561 | ac_objext=$OBJEXT |
| 3562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 3563 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 3564 | if test ${ac_cv_c_compiler_gnu+y} |
| 3565 | then : |
| 3566 | printf %s "(cached) " >&6 |
| 3567 | else case e in #( |
| 3568 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3569 | /* end confdefs.h. */ |
| 3570 | |
| 3571 | int |
| 3572 | main (void) |
| 3573 | { |
| 3574 | #ifndef __GNUC__ |
| 3575 | choke me |
| 3576 | #endif |
| 3577 | |
| 3578 | ; |
| 3579 | return 0; |
| 3580 | } |
| 3581 | _ACEOF |
| 3582 | if ac_fn_c_try_compile "$LINENO" |
| 3583 | then : |
| 3584 | ac_compiler_gnu=yes |
| 3585 | else case e in #( |
| 3586 | e) ac_compiler_gnu=no ;; |
| 3587 | esac |
| 3588 | fi |
| 3589 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3590 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3591 | ;; |
| 3592 | esac |
| 3593 | fi |
| 3594 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3595 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 3596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3597 | |
| 3598 | if test $ac_compiler_gnu = yes; then |
| 3599 | GCC=yes |
| 3600 | else |
| 3601 | GCC= |
| 3602 | fi |
| 3603 | ac_test_CFLAGS=${CFLAGS+y} |
| 3604 | ac_save_CFLAGS=$CFLAGS |
| 3605 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3606 | printf %s "checking whether $CC accepts -g... " >&6; } |
| 3607 | if test ${ac_cv_prog_cc_g+y} |
| 3608 | then : |
| 3609 | printf %s "(cached) " >&6 |
| 3610 | else case e in #( |
| 3611 | e) ac_save_c_werror_flag=$ac_c_werror_flag |
| 3612 | ac_c_werror_flag=yes |
| 3613 | ac_cv_prog_cc_g=no |
| 3614 | CFLAGS="-g" |
| 3615 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3616 | /* end confdefs.h. */ |
| 3617 | |
| 3618 | int |
| 3619 | main (void) |
| 3620 | { |
| 3621 | |
| 3622 | ; |
| 3623 | return 0; |
| 3624 | } |
| 3625 | _ACEOF |
| 3626 | if ac_fn_c_try_compile "$LINENO" |
| 3627 | then : |
| 3628 | ac_cv_prog_cc_g=yes |
| 3629 | else case e in #( |
| 3630 | e) CFLAGS="" |
| 3631 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3632 | /* end confdefs.h. */ |
| 3633 | |
| 3634 | int |
| 3635 | main (void) |
| 3636 | { |
| 3637 | |
| 3638 | ; |
| 3639 | return 0; |
| 3640 | } |
| 3641 | _ACEOF |
| 3642 | if ac_fn_c_try_compile "$LINENO" |
| 3643 | then : |
| 3644 | |
| 3645 | else case e in #( |
| 3646 | e) ac_c_werror_flag=$ac_save_c_werror_flag |
| 3647 | CFLAGS="-g" |
| 3648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3649 | /* end confdefs.h. */ |
| 3650 | |
| 3651 | int |
| 3652 | main (void) |
| 3653 | { |
| 3654 | |
| 3655 | ; |
| 3656 | return 0; |
| 3657 | } |
| 3658 | _ACEOF |
| 3659 | if ac_fn_c_try_compile "$LINENO" |
| 3660 | then : |
| 3661 | ac_cv_prog_cc_g=yes |
| 3662 | fi |
| 3663 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3664 | esac |
| 3665 | fi |
| 3666 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3667 | esac |
| 3668 | fi |
| 3669 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3670 | ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 3671 | esac |
| 3672 | fi |
| 3673 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3674 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 3675 | if test $ac_test_CFLAGS; then |
| 3676 | CFLAGS=$ac_save_CFLAGS |
| 3677 | elif test $ac_cv_prog_cc_g = yes; then |
| 3678 | if test "$GCC" = yes; then |
| 3679 | CFLAGS="-g -O2" |
| 3680 | else |
| 3681 | CFLAGS="-g" |
| 3682 | fi |
| 3683 | else |
| 3684 | if test "$GCC" = yes; then |
| 3685 | CFLAGS="-O2" |
| 3686 | else |
| 3687 | CFLAGS= |
| 3688 | fi |
| 3689 | fi |
| 3690 | ac_prog_cc_stdc=no |
| 3691 | if test x$ac_prog_cc_stdc = xno |
| 3692 | then : |
| 3693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 3694 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 3695 | if test ${ac_cv_prog_cc_c11+y} |
| 3696 | then : |
| 3697 | printf %s "(cached) " >&6 |
| 3698 | else case e in #( |
| 3699 | e) ac_cv_prog_cc_c11=no |
| 3700 | ac_save_CC=$CC |
| 3701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3702 | /* end confdefs.h. */ |
| 3703 | $ac_c_conftest_c11_program |
| 3704 | _ACEOF |
| 3705 | for ac_arg in '' -std=gnu11 |
| 3706 | do |
| 3707 | CC="$ac_save_CC $ac_arg" |
| 3708 | if ac_fn_c_try_compile "$LINENO" |
| 3709 | then : |
| 3710 | ac_cv_prog_cc_c11=$ac_arg |
| 3711 | fi |
| 3712 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3713 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 3714 | done |
| 3715 | rm -f conftest.$ac_ext |
| 3716 | CC=$ac_save_CC ;; |
| 3717 | esac |
| 3718 | fi |
| 3719 | |
| 3720 | if test "x$ac_cv_prog_cc_c11" = xno |
| 3721 | then : |
| 3722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3723 | printf "%s\n" "unsupported" >&6; } |
| 3724 | else case e in #( |
| 3725 | e) if test "x$ac_cv_prog_cc_c11" = x |
| 3726 | then : |
| 3727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3728 | printf "%s\n" "none needed" >&6; } |
| 3729 | else case e in #( |
| 3730 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 3731 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 3732 | CC="$CC $ac_cv_prog_cc_c11" ;; |
| 3733 | esac |
| 3734 | fi |
| 3735 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 3736 | ac_prog_cc_stdc=c11 ;; |
| 3737 | esac |
| 3738 | fi |
| 3739 | fi |
| 3740 | if test x$ac_prog_cc_stdc = xno |
| 3741 | then : |
| 3742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 3743 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 3744 | if test ${ac_cv_prog_cc_c99+y} |
| 3745 | then : |
| 3746 | printf %s "(cached) " >&6 |
| 3747 | else case e in #( |
| 3748 | e) ac_cv_prog_cc_c99=no |
| 3749 | ac_save_CC=$CC |
| 3750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3751 | /* end confdefs.h. */ |
| 3752 | $ac_c_conftest_c99_program |
| 3753 | _ACEOF |
| 3754 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 3755 | do |
| 3756 | CC="$ac_save_CC $ac_arg" |
| 3757 | if ac_fn_c_try_compile "$LINENO" |
| 3758 | then : |
| 3759 | ac_cv_prog_cc_c99=$ac_arg |
| 3760 | fi |
| 3761 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3762 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 3763 | done |
| 3764 | rm -f conftest.$ac_ext |
| 3765 | CC=$ac_save_CC ;; |
| 3766 | esac |
| 3767 | fi |
| 3768 | |
| 3769 | if test "x$ac_cv_prog_cc_c99" = xno |
| 3770 | then : |
| 3771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3772 | printf "%s\n" "unsupported" >&6; } |
| 3773 | else case e in #( |
| 3774 | e) if test "x$ac_cv_prog_cc_c99" = x |
| 3775 | then : |
| 3776 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3777 | printf "%s\n" "none needed" >&6; } |
| 3778 | else case e in #( |
| 3779 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 3780 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 3781 | CC="$CC $ac_cv_prog_cc_c99" ;; |
| 3782 | esac |
| 3783 | fi |
| 3784 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 3785 | ac_prog_cc_stdc=c99 ;; |
| 3786 | esac |
| 3787 | fi |
| 3788 | fi |
| 3789 | if test x$ac_prog_cc_stdc = xno |
| 3790 | then : |
| 3791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 3792 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 3793 | if test ${ac_cv_prog_cc_c89+y} |
| 3794 | then : |
| 3795 | printf %s "(cached) " >&6 |
| 3796 | else case e in #( |
| 3797 | e) ac_cv_prog_cc_c89=no |
| 3798 | ac_save_CC=$CC |
| 3799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3800 | /* end confdefs.h. */ |
| 3801 | $ac_c_conftest_c89_program |
| 3802 | _ACEOF |
| 3803 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3804 | do |
| 3805 | CC="$ac_save_CC $ac_arg" |
| 3806 | if ac_fn_c_try_compile "$LINENO" |
| 3807 | then : |
| 3808 | ac_cv_prog_cc_c89=$ac_arg |
| 3809 | fi |
| 3810 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3811 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3812 | done |
| 3813 | rm -f conftest.$ac_ext |
| 3814 | CC=$ac_save_CC ;; |
| 3815 | esac |
| 3816 | fi |
| 3817 | |
| 3818 | if test "x$ac_cv_prog_cc_c89" = xno |
| 3819 | then : |
| 3820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3821 | printf "%s\n" "unsupported" >&6; } |
| 3822 | else case e in #( |
| 3823 | e) if test "x$ac_cv_prog_cc_c89" = x |
| 3824 | then : |
| 3825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3826 | printf "%s\n" "none needed" >&6; } |
| 3827 | else case e in #( |
| 3828 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3829 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 3830 | CC="$CC $ac_cv_prog_cc_c89" ;; |
| 3831 | esac |
| 3832 | fi |
| 3833 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 3834 | ac_prog_cc_stdc=c89 ;; |
| 3835 | esac |
| 3836 | fi |
| 3837 | fi |
| 3838 | |
| 3839 | ac_ext=c |
| 3840 | ac_cpp='$CPP $CPPFLAGS' |
| 3841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3844 | |
| 3845 | |
| 3846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 3847 | printf %s "checking for inline... " >&6; } |
| 3848 | if test ${ac_cv_c_inline+y} |
| 3849 | then : |
| 3850 | printf %s "(cached) " >&6 |
| 3851 | else case e in #( |
| 3852 | e) ac_cv_c_inline=no |
| 3853 | for ac_kw in inline __inline__ __inline; do |
| 3854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3855 | /* end confdefs.h. */ |
| 3856 | #ifndef __cplusplus |
| 3857 | typedef int foo_t; |
| 3858 | static $ac_kw foo_t static_foo (void) {return 0; } |
| 3859 | $ac_kw foo_t foo (void) {return 0; } |
| 3860 | #endif |
| 3861 | |
| 3862 | _ACEOF |
| 3863 | if ac_fn_c_try_compile "$LINENO" |
| 3864 | then : |
| 3865 | ac_cv_c_inline=$ac_kw |
| 3866 | fi |
| 3867 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3868 | test "$ac_cv_c_inline" != no && break |
| 3869 | done |
| 3870 | ;; |
| 3871 | esac |
| 3872 | fi |
| 3873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 3874 | printf "%s\n" "$ac_cv_c_inline" >&6; } |
| 3875 | |
| 3876 | case $ac_cv_c_inline in |
| 3877 | inline | yes) ;; |
| 3878 | *) |
| 3879 | case $ac_cv_c_inline in |
| 3880 | no) ac_val=;; |
| 3881 | *) ac_val=$ac_cv_c_inline;; |
| 3882 | esac |
| 3883 | cat >>confdefs.h <<_ACEOF |
| 3884 | #ifndef __cplusplus |
| 3885 | #define inline $ac_val |
| 3886 | #endif |
| 3887 | _ACEOF |
| 3888 | ;; |
| 3889 | esac |
| 3890 | |
| 3891 | |
| 3892 | #-------------------------------------------------------------------- |
| 3893 | # Supply substitutes for missing POSIX header files. Special notes: |
| 3894 | # - stdlib.h doesn't define strtol, strtoul, or |
| 3895 | # strtod in some versions of SunOS |
| 3896 | # - some versions of string.h don't declare procedures such |
| 3897 | # as strstr |
| 3898 | # Do this early, otherwise an autoconf bug throws errors on configure |
| 3899 | #-------------------------------------------------------------------- |
| 3900 | |
| 3901 | ac_header= ac_cache= |
| 3902 | for ac_item in $ac_header_c_list |
| 3903 | do |
| 3904 | if test $ac_cache; then |
| 3905 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 3906 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 3907 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 3908 | fi |
| 3909 | ac_header= ac_cache= |
| 3910 | elif test $ac_header; then |
| 3911 | ac_cache=$ac_item |
| 3912 | else |
| 3913 | ac_header=$ac_item |
| 3914 | fi |
| 3915 | done |
| 3916 | |
| 3917 | |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 3925 | then : |
| 3926 | |
| 3927 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 3928 | |
| 3929 | fi |
| 3930 | ac_ext=c |
| 3931 | ac_cpp='$CPP $CPPFLAGS' |
| 3932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3936 | printf %s "checking how to run the C preprocessor... " >&6; } |
| 3937 | # On Suns, sometimes $CPP names a directory. |
| 3938 | if test -n "$CPP" && test -d "$CPP"; then |
| 3939 | CPP= |
| 3940 | fi |
| 3941 | if test -z "$CPP"; then |
| 3942 | if test ${ac_cv_prog_CPP+y} |
| 3943 | then : |
| 3944 | printf %s "(cached) " >&6 |
| 3945 | else case e in #( |
| 3946 | e) # Double quotes because $CC needs to be expanded |
| 3947 | for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 3948 | do |
| 3949 | ac_preproc_ok=false |
| 3950 | for ac_c_preproc_warn_flag in '' yes |
| 3951 | do |
| 3952 | # Use a header file that comes with gcc, so configuring glibc |
| 3953 | # with a fresh cross-compiler works. |
| 3954 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3955 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3957 | /* end confdefs.h. */ |
| 3958 | #include <limits.h> |
| 3959 | Syntax error |
| 3960 | _ACEOF |
| 3961 | if ac_fn_c_try_cpp "$LINENO" |
| 3962 | then : |
| 3963 | |
| 3964 | else case e in #( |
| 3965 | e) # Broken: fails on valid input. |
| 3966 | continue ;; |
| 3967 | esac |
| 3968 | fi |
| 3969 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3970 | |
| 3971 | # OK, works on sane cases. Now check whether nonexistent headers |
| 3972 | # can be detected and how. |
| 3973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3974 | /* end confdefs.h. */ |
| 3975 | #include <ac_nonexistent.h> |
| 3976 | _ACEOF |
| 3977 | if ac_fn_c_try_cpp "$LINENO" |
| 3978 | then : |
| 3979 | # Broken: success on invalid input. |
| 3980 | continue |
| 3981 | else case e in #( |
| 3982 | e) # Passes both tests. |
| 3983 | ac_preproc_ok=: |
| 3984 | break ;; |
| 3985 | esac |
| 3986 | fi |
| 3987 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 3988 | |
| 3989 | done |
| 3990 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3991 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 3992 | if $ac_preproc_ok |
| 3993 | then : |
| 3994 | break |
| 3995 | fi |
| 3996 | |
| 3997 | done |
| 3998 | ac_cv_prog_CPP=$CPP |
| 3999 | ;; |
| 4000 | esac |
| 4001 | fi |
| 4002 | CPP=$ac_cv_prog_CPP |
| 4003 | else |
| 4004 | ac_cv_prog_CPP=$CPP |
| 4005 | fi |
| 4006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4007 | printf "%s\n" "$CPP" >&6; } |
| 4008 | ac_preproc_ok=false |
| 4009 | for ac_c_preproc_warn_flag in '' yes |
| 4010 | do |
| 4011 | # Use a header file that comes with gcc, so configuring glibc |
| 4012 | # with a fresh cross-compiler works. |
| 4013 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4014 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4016 | /* end confdefs.h. */ |
| 4017 | #include <limits.h> |
| 4018 | Syntax error |
| 4019 | _ACEOF |
| 4020 | if ac_fn_c_try_cpp "$LINENO" |
| 4021 | then : |
| 4022 | |
| 4023 | else case e in #( |
| 4024 | e) # Broken: fails on valid input. |
| 4025 | continue ;; |
| 4026 | esac |
| 4027 | fi |
| 4028 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4029 | |
| 4030 | # OK, works on sane cases. Now check whether nonexistent headers |
| 4031 | # can be detected and how. |
| 4032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4033 | /* end confdefs.h. */ |
| 4034 | #include <ac_nonexistent.h> |
| 4035 | _ACEOF |
| 4036 | if ac_fn_c_try_cpp "$LINENO" |
| 4037 | then : |
| 4038 | # Broken: success on invalid input. |
| 4039 | continue |
| 4040 | else case e in #( |
| 4041 | e) # Passes both tests. |
| 4042 | ac_preproc_ok=: |
| 4043 | break ;; |
| 4044 | esac |
| 4045 | fi |
| 4046 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 4047 | |
| 4048 | done |
| 4049 | # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4050 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 4051 | if $ac_preproc_ok |
| 4052 | then : |
| 4053 | |
| 4054 | else case e in #( |
| 4055 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 4056 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 4057 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 4058 | See 'config.log' for more details" "$LINENO" 5; } ;; |
| 4059 | esac |
| 4060 | fi |
| 4061 | |
| 4062 | ac_ext=c |
| 4063 | ac_cpp='$CPP $CPPFLAGS' |
| 4064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4067 | |
| 4068 | |
| 4069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 |
| 4070 | printf %s "checking for egrep -e... " >&6; } |
| 4071 | if test ${ac_cv_path_EGREP_TRADITIONAL+y} |
| 4072 | then : |
| 4073 | printf %s "(cached) " >&6 |
| 4074 | else case e in #( |
| 4075 | e) if test -z "$EGREP_TRADITIONAL"; then |
| 4076 | ac_path_EGREP_TRADITIONAL_found=false |
| 4077 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4079 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4080 | do |
| 4081 | IFS=$as_save_IFS |
| 4082 | case $as_dir in #((( |
| 4083 | '') as_dir=./ ;; |
| 4084 | */) ;; |
| 4085 | *) as_dir=$as_dir/ ;; |
| 4086 | esac |
| 4087 | for ac_prog in grep ggrep |
| 4088 | do |
| 4089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4090 | ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 4091 | as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 4092 | # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 4093 | # Check for GNU $ac_path_EGREP_TRADITIONAL |
| 4094 | case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 4095 | *GNU*) |
| 4096 | ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 4097 | #( |
| 4098 | *) |
| 4099 | ac_count=0 |
| 4100 | printf %s 0123456789 >"conftest.in" |
| 4101 | while : |
| 4102 | do |
| 4103 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4104 | mv "conftest.tmp" "conftest.in" |
| 4105 | cp "conftest.in" "conftest.nl" |
| 4106 | printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 4107 | "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4108 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4109 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4110 | if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 4111 | # Best one so far, save it but keep looking for a better one |
| 4112 | ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 4113 | ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 4114 | fi |
| 4115 | # 10*(2^10) chars as input seems more than enough |
| 4116 | test $ac_count -gt 10 && break |
| 4117 | done |
| 4118 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4119 | esac |
| 4120 | |
| 4121 | $ac_path_EGREP_TRADITIONAL_found && break 3 |
| 4122 | done |
| 4123 | done |
| 4124 | done |
| 4125 | IFS=$as_save_IFS |
| 4126 | if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 4127 | : |
| 4128 | fi |
| 4129 | else |
| 4130 | ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 4131 | fi |
| 4132 | |
| 4133 | if test "$ac_cv_path_EGREP_TRADITIONAL" |
| 4134 | then : |
| 4135 | ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" |
| 4136 | else case e in #( |
| 4137 | e) if test -z "$EGREP_TRADITIONAL"; then |
| 4138 | ac_path_EGREP_TRADITIONAL_found=false |
| 4139 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4141 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4142 | do |
| 4143 | IFS=$as_save_IFS |
| 4144 | case $as_dir in #((( |
| 4145 | '') as_dir=./ ;; |
| 4146 | */) ;; |
| 4147 | *) as_dir=$as_dir/ ;; |
| 4148 | esac |
| 4149 | for ac_prog in egrep |
| 4150 | do |
| 4151 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4152 | ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 4153 | as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 4154 | # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 4155 | # Check for GNU $ac_path_EGREP_TRADITIONAL |
| 4156 | case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 4157 | *GNU*) |
| 4158 | ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 4159 | #( |
| 4160 | *) |
| 4161 | ac_count=0 |
| 4162 | printf %s 0123456789 >"conftest.in" |
| 4163 | while : |
| 4164 | do |
| 4165 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4166 | mv "conftest.tmp" "conftest.in" |
| 4167 | cp "conftest.in" "conftest.nl" |
| 4168 | printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 4169 | "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4170 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4171 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4172 | if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 4173 | # Best one so far, save it but keep looking for a better one |
| 4174 | ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 4175 | ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 4176 | fi |
| 4177 | # 10*(2^10) chars as input seems more than enough |
| 4178 | test $ac_count -gt 10 && break |
| 4179 | done |
| 4180 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4181 | esac |
| 4182 | |
| 4183 | $ac_path_EGREP_TRADITIONAL_found && break 3 |
| 4184 | done |
| 4185 | done |
| 4186 | done |
| 4187 | IFS=$as_save_IFS |
| 4188 | if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 4189 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4190 | fi |
| 4191 | else |
| 4192 | ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 4193 | fi |
| 4194 | ;; |
| 4195 | esac |
| 4196 | fi ;; |
| 4197 | esac |
| 4198 | fi |
| 4199 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 |
| 4200 | printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } |
| 4201 | EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL |
| 4202 | |
| 4203 | |
| 4204 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5 |
| 4205 | printf %s "checking dirent.h... " >&6; } |
| 4206 | if test ${tcl_cv_dirent_h+y} |
| 4207 | then : |
| 4208 | printf %s "(cached) " >&6 |
| 4209 | else case e in #( |
| 4210 | e) |
| 4211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4212 | /* end confdefs.h. */ |
| 4213 | #include <sys/types.h> |
| 4214 | #include <dirent.h> |
| 4215 | int |
| 4216 | main (void) |
| 4217 | { |
| 4218 | |
| 4219 | #ifndef _POSIX_SOURCE |
| 4220 | # ifdef __Lynx__ |
| 4221 | /* |
| 4222 | * Generate compilation error to make the test fail: Lynx headers |
| 4223 | * are only valid if really in the POSIX environment. |
| 4224 | */ |
| 4225 | |
| 4226 | missing_procedure(); |
| 4227 | # endif |
| 4228 | #endif |
| 4229 | DIR *d; |
| 4230 | struct dirent *entryPtr; |
| 4231 | char *p; |
| 4232 | d = opendir("foobar"); |
| 4233 | entryPtr = readdir(d); |
| 4234 | p = entryPtr->d_name; |
| 4235 | closedir(d); |
| 4236 | |
| 4237 | ; |
| 4238 | return 0; |
| 4239 | } |
| 4240 | _ACEOF |
| 4241 | if ac_fn_c_try_link "$LINENO" |
| 4242 | then : |
| 4243 | tcl_cv_dirent_h=yes |
| 4244 | else case e in #( |
| 4245 | e) tcl_cv_dirent_h=no ;; |
| 4246 | esac |
| 4247 | fi |
| 4248 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4249 | conftest$ac_exeext conftest.$ac_ext ;; |
| 4250 | esac |
| 4251 | fi |
| 4252 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5 |
| 4253 | printf "%s\n" "$tcl_cv_dirent_h" >&6; } |
| 4254 | |
| 4255 | if test $tcl_cv_dirent_h = no; then |
| 4256 | |
| 4257 | printf "%s\n" "#define NO_DIRENT_H 1" >>confdefs.h |
| 4258 | |
| 4259 | fi |
| 4260 | |
| 4261 | ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" |
| 4262 | if test "x$ac_cv_header_float_h" = xyes |
| 4263 | then : |
| 4264 | |
| 4265 | else case e in #( |
| 4266 | e) |
| 4267 | printf "%s\n" "#define NO_FLOAT_H 1" >>confdefs.h |
| 4268 | ;; |
| 4269 | esac |
| 4270 | fi |
| 4271 | |
| 4272 | ac_fn_c_check_header_compile "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default" |
| 4273 | if test "x$ac_cv_header_values_h" = xyes |
| 4274 | then : |
| 4275 | |
| 4276 | else case e in #( |
| 4277 | e) |
| 4278 | printf "%s\n" "#define NO_VALUES_H 1" >>confdefs.h |
| 4279 | ;; |
| 4280 | esac |
| 4281 | fi |
| 4282 | |
| 4283 | ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" |
| 4284 | if test "x$ac_cv_header_stdlib_h" = xyes |
| 4285 | then : |
| 4286 | tcl_ok=1 |
| 4287 | else case e in #( |
| 4288 | e) tcl_ok=0 ;; |
| 4289 | esac |
| 4290 | fi |
| 4291 | |
| 4292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4293 | /* end confdefs.h. */ |
| 4294 | #include <stdlib.h> |
| 4295 | |
| 4296 | _ACEOF |
| 4297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4298 | $EGREP_TRADITIONAL "strtol" >/dev/null 2>&1 |
| 4299 | then : |
| 4300 | |
| 4301 | else case e in #( |
| 4302 | e) tcl_ok=0 ;; |
| 4303 | esac |
| 4304 | fi |
| 4305 | rm -rf conftest* |
| 4306 | |
| 4307 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4308 | /* end confdefs.h. */ |
| 4309 | #include <stdlib.h> |
| 4310 | |
| 4311 | _ACEOF |
| 4312 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4313 | $EGREP_TRADITIONAL "strtoul" >/dev/null 2>&1 |
| 4314 | then : |
| 4315 | |
| 4316 | else case e in #( |
| 4317 | e) tcl_ok=0 ;; |
| 4318 | esac |
| 4319 | fi |
| 4320 | rm -rf conftest* |
| 4321 | |
| 4322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4323 | /* end confdefs.h. */ |
| 4324 | #include <stdlib.h> |
| 4325 | |
| 4326 | _ACEOF |
| 4327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4328 | $EGREP_TRADITIONAL "strtod" >/dev/null 2>&1 |
| 4329 | then : |
| 4330 | |
| 4331 | else case e in #( |
| 4332 | e) tcl_ok=0 ;; |
| 4333 | esac |
| 4334 | fi |
| 4335 | rm -rf conftest* |
| 4336 | |
| 4337 | if test $tcl_ok = 0; then |
| 4338 | |
| 4339 | printf "%s\n" "#define NO_STDLIB_H 1" >>confdefs.h |
| 4340 | |
| 4341 | fi |
| 4342 | ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
| 4343 | if test "x$ac_cv_header_string_h" = xyes |
| 4344 | then : |
| 4345 | tcl_ok=1 |
| 4346 | else case e in #( |
| 4347 | e) tcl_ok=0 ;; |
| 4348 | esac |
| 4349 | fi |
| 4350 | |
| 4351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4352 | /* end confdefs.h. */ |
| 4353 | #include <string.h> |
| 4354 | |
| 4355 | _ACEOF |
| 4356 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4357 | $EGREP_TRADITIONAL "strstr" >/dev/null 2>&1 |
| 4358 | then : |
| 4359 | |
| 4360 | else case e in #( |
| 4361 | e) tcl_ok=0 ;; |
| 4362 | esac |
| 4363 | fi |
| 4364 | rm -rf conftest* |
| 4365 | |
| 4366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4367 | /* end confdefs.h. */ |
| 4368 | #include <string.h> |
| 4369 | |
| 4370 | _ACEOF |
| 4371 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4372 | $EGREP_TRADITIONAL "strerror" >/dev/null 2>&1 |
| 4373 | then : |
| 4374 | |
| 4375 | else case e in #( |
| 4376 | e) tcl_ok=0 ;; |
| 4377 | esac |
| 4378 | fi |
| 4379 | rm -rf conftest* |
| 4380 | |
| 4381 | |
| 4382 | # See also memmove check below for a place where NO_STRING_H can be |
| 4383 | # set and why. |
| 4384 | |
| 4385 | if test $tcl_ok = 0; then |
| 4386 | |
| 4387 | printf "%s\n" "#define NO_STRING_H 1" >>confdefs.h |
| 4388 | |
| 4389 | fi |
| 4390 | |
| 4391 | ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" |
| 4392 | if test "x$ac_cv_header_sys_wait_h" = xyes |
| 4393 | then : |
| 4394 | |
| 4395 | else case e in #( |
| 4396 | e) |
| 4397 | printf "%s\n" "#define NO_SYS_WAIT_H 1" >>confdefs.h |
| 4398 | ;; |
| 4399 | esac |
| 4400 | fi |
| 4401 | |
| 4402 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
| 4403 | if test "x$ac_cv_header_dlfcn_h" = xyes |
| 4404 | then : |
| 4405 | |
| 4406 | else case e in #( |
| 4407 | e) |
| 4408 | printf "%s\n" "#define NO_DLFCN_H 1" >>confdefs.h |
| 4409 | ;; |
| 4410 | esac |
| 4411 | fi |
| 4412 | |
| 4413 | |
| 4414 | # OS/390 lacks sys/param.h (and doesn't need it, by chance). |
| 4415 | ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 4416 | if test "x$ac_cv_header_sys_param_h" = xyes |
| 4417 | then : |
| 4418 | printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 4419 | |
| 4420 | fi |
| 4421 | |
| 4422 | |
| 4423 | |
| 4424 | #-------------------------------------------------------------------- |
| 4425 | # Determines the correct executable file extension (.exe) |
| 4426 | #-------------------------------------------------------------------- |
| 4427 | |
| 4428 | |
| 4429 | |
| 4430 | #------------------------------------------------------------------------ |
| 4431 | # If we're using GCC, see if the compiler understands -pipe. If so, use it. |
| 4432 | # It makes compiling go faster. (This is only a performance feature.) |
| 4433 | #------------------------------------------------------------------------ |
| 4434 | |
| 4435 | if test -z "$no_pipe" && test -n "$GCC"; then |
| 4436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5 |
| 4437 | printf %s "checking if the compiler understands -pipe... " >&6; } |
| 4438 | if test ${tcl_cv_cc_pipe+y} |
| 4439 | then : |
| 4440 | printf %s "(cached) " >&6 |
| 4441 | else case e in #( |
| 4442 | e) |
| 4443 | hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" |
| 4444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4445 | /* end confdefs.h. */ |
| 4446 | |
| 4447 | int |
| 4448 | main (void) |
| 4449 | { |
| 4450 | |
| 4451 | ; |
| 4452 | return 0; |
| 4453 | } |
| 4454 | _ACEOF |
| 4455 | if ac_fn_c_try_compile "$LINENO" |
| 4456 | then : |
| 4457 | tcl_cv_cc_pipe=yes |
| 4458 | else case e in #( |
| 4459 | e) tcl_cv_cc_pipe=no ;; |
| 4460 | esac |
| 4461 | fi |
| 4462 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 4463 | CFLAGS=$hold_cflags ;; |
| 4464 | esac |
| 4465 | fi |
| 4466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5 |
| 4467 | printf "%s\n" "$tcl_cv_cc_pipe" >&6; } |
| 4468 | if test $tcl_cv_cc_pipe = yes; then |
| 4469 | CFLAGS="$CFLAGS -pipe" |
| 4470 | fi |
| 4471 | fi |
| 4472 | |
| 4473 | #------------------------------------------------------------------------ |
| 4474 | # Threads support |
| 4475 | #------------------------------------------------------------------------ |
| 4476 | |
| 4477 | |
| 4478 | # Check whether --enable-threads was given. |
| 4479 | if test ${enable_threads+y} |
| 4480 | then : |
| 4481 | enableval=$enable_threads; tcl_ok=$enableval |
| 4482 | else case e in #( |
| 4483 | e) tcl_ok=yes ;; |
| 4484 | esac |
| 4485 | fi |
| 4486 | |
| 4487 | |
| 4488 | if test "${TCL_THREADS}" = 1; then |
| 4489 | tcl_threaded_core=1; |
| 4490 | fi |
| 4491 | |
| 4492 | if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then |
| 4493 | TCL_THREADS=1 |
| 4494 | # USE_THREAD_ALLOC tells us to try the special thread-based |
| 4495 | # allocator that significantly reduces lock contention |
| 4496 | |
| 4497 | printf "%s\n" "#define USE_THREAD_ALLOC 1" >>confdefs.h |
| 4498 | |
| 4499 | |
| 4500 | printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
| 4501 | |
| 4502 | if test "`uname -s`" = "SunOS" ; then |
| 4503 | |
| 4504 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 4505 | |
| 4506 | fi |
| 4507 | |
| 4508 | printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h |
| 4509 | |
| 4510 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 |
| 4511 | printf %s "checking for pthread_mutex_init in -lpthread... " >&6; } |
| 4512 | if test ${ac_cv_lib_pthread_pthread_mutex_init+y} |
| 4513 | then : |
| 4514 | printf %s "(cached) " >&6 |
| 4515 | else case e in #( |
| 4516 | e) ac_check_lib_save_LIBS=$LIBS |
| 4517 | LIBS="-lpthread $LIBS" |
| 4518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4519 | /* end confdefs.h. */ |
| 4520 | |
| 4521 | /* Override any GCC internal prototype to avoid an error. |
| 4522 | Use char because int might match the return type of a GCC |
| 4523 | builtin and then its argument prototype would still apply. |
| 4524 | The 'extern "C"' is for builds by C++ compilers; |
| 4525 | although this is not generally supported in C code supporting it here |
| 4526 | has little cost and some practical benefit (sr 110532). */ |
| 4527 | #ifdef __cplusplus |
| 4528 | extern "C" |
| 4529 | #endif |
| 4530 | char pthread_mutex_init (void); |
| 4531 | int |
| 4532 | main (void) |
| 4533 | { |
| 4534 | return pthread_mutex_init (); |
| 4535 | ; |
| 4536 | return 0; |
| 4537 | } |
| 4538 | _ACEOF |
| 4539 | if ac_fn_c_try_link "$LINENO" |
| 4540 | then : |
| 4541 | ac_cv_lib_pthread_pthread_mutex_init=yes |
| 4542 | else case e in #( |
| 4543 | e) ac_cv_lib_pthread_pthread_mutex_init=no ;; |
| 4544 | esac |
| 4545 | fi |
| 4546 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4547 | conftest$ac_exeext conftest.$ac_ext |
| 4548 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4549 | esac |
| 4550 | fi |
| 4551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
| 4552 | printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
| 4553 | if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes |
| 4554 | then : |
| 4555 | tcl_ok=yes |
| 4556 | else case e in #( |
| 4557 | e) tcl_ok=no ;; |
| 4558 | esac |
| 4559 | fi |
| 4560 | |
| 4561 | if test "$tcl_ok" = "no"; then |
| 4562 | # Check a little harder for __pthread_mutex_init in the same |
| 4563 | # library, as some systems hide it there until pthread.h is |
| 4564 | # defined. We could alternatively do an AC_TRY_COMPILE with |
| 4565 | # pthread.h, but that will work with libpthread really doesn't |
| 4566 | # exist, like AIX 4.2. [Bug: 4359] |
| 4567 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5 |
| 4568 | printf %s "checking for __pthread_mutex_init in -lpthread... " >&6; } |
| 4569 | if test ${ac_cv_lib_pthread___pthread_mutex_init+y} |
| 4570 | then : |
| 4571 | printf %s "(cached) " >&6 |
| 4572 | else case e in #( |
| 4573 | e) ac_check_lib_save_LIBS=$LIBS |
| 4574 | LIBS="-lpthread $LIBS" |
| 4575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4576 | /* end confdefs.h. */ |
| 4577 | |
| 4578 | /* Override any GCC internal prototype to avoid an error. |
| 4579 | Use char because int might match the return type of a GCC |
| 4580 | builtin and then its argument prototype would still apply. |
| 4581 | The 'extern "C"' is for builds by C++ compilers; |
| 4582 | although this is not generally supported in C code supporting it here |
| 4583 | has little cost and some practical benefit (sr 110532). */ |
| 4584 | #ifdef __cplusplus |
| 4585 | extern "C" |
| 4586 | #endif |
| 4587 | char __pthread_mutex_init (void); |
| 4588 | int |
| 4589 | main (void) |
| 4590 | { |
| 4591 | return __pthread_mutex_init (); |
| 4592 | ; |
| 4593 | return 0; |
| 4594 | } |
| 4595 | _ACEOF |
| 4596 | if ac_fn_c_try_link "$LINENO" |
| 4597 | then : |
| 4598 | ac_cv_lib_pthread___pthread_mutex_init=yes |
| 4599 | else case e in #( |
| 4600 | e) ac_cv_lib_pthread___pthread_mutex_init=no ;; |
| 4601 | esac |
| 4602 | fi |
| 4603 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4604 | conftest$ac_exeext conftest.$ac_ext |
| 4605 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4606 | esac |
| 4607 | fi |
| 4608 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 |
| 4609 | printf "%s\n" "$ac_cv_lib_pthread___pthread_mutex_init" >&6; } |
| 4610 | if test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes |
| 4611 | then : |
| 4612 | tcl_ok=yes |
| 4613 | else case e in #( |
| 4614 | e) tcl_ok=no ;; |
| 4615 | esac |
| 4616 | fi |
| 4617 | |
| 4618 | fi |
| 4619 | |
| 4620 | if test "$tcl_ok" = "yes"; then |
| 4621 | # The space is needed |
| 4622 | THREADS_LIBS=" -lpthread" |
| 4623 | else |
| 4624 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5 |
| 4625 | printf %s "checking for pthread_mutex_init in -lpthreads... " >&6; } |
| 4626 | if test ${ac_cv_lib_pthreads_pthread_mutex_init+y} |
| 4627 | then : |
| 4628 | printf %s "(cached) " >&6 |
| 4629 | else case e in #( |
| 4630 | e) ac_check_lib_save_LIBS=$LIBS |
| 4631 | LIBS="-lpthreads $LIBS" |
| 4632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4633 | /* end confdefs.h. */ |
| 4634 | |
| 4635 | /* Override any GCC internal prototype to avoid an error. |
| 4636 | Use char because int might match the return type of a GCC |
| 4637 | builtin and then its argument prototype would still apply. |
| 4638 | The 'extern "C"' is for builds by C++ compilers; |
| 4639 | although this is not generally supported in C code supporting it here |
| 4640 | has little cost and some practical benefit (sr 110532). */ |
| 4641 | #ifdef __cplusplus |
| 4642 | extern "C" |
| 4643 | #endif |
| 4644 | char pthread_mutex_init (void); |
| 4645 | int |
| 4646 | main (void) |
| 4647 | { |
| 4648 | return pthread_mutex_init (); |
| 4649 | ; |
| 4650 | return 0; |
| 4651 | } |
| 4652 | _ACEOF |
| 4653 | if ac_fn_c_try_link "$LINENO" |
| 4654 | then : |
| 4655 | ac_cv_lib_pthreads_pthread_mutex_init=yes |
| 4656 | else case e in #( |
| 4657 | e) ac_cv_lib_pthreads_pthread_mutex_init=no ;; |
| 4658 | esac |
| 4659 | fi |
| 4660 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4661 | conftest$ac_exeext conftest.$ac_ext |
| 4662 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4663 | esac |
| 4664 | fi |
| 4665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 |
| 4666 | printf "%s\n" "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } |
| 4667 | if test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes |
| 4668 | then : |
| 4669 | tcl_ok=yes |
| 4670 | else case e in #( |
| 4671 | e) tcl_ok=no ;; |
| 4672 | esac |
| 4673 | fi |
| 4674 | |
| 4675 | if test "$tcl_ok" = "yes"; then |
| 4676 | # The space is needed |
| 4677 | THREADS_LIBS=" -lpthreads" |
| 4678 | else |
| 4679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5 |
| 4680 | printf %s "checking for pthread_mutex_init in -lc... " >&6; } |
| 4681 | if test ${ac_cv_lib_c_pthread_mutex_init+y} |
| 4682 | then : |
| 4683 | printf %s "(cached) " >&6 |
| 4684 | else case e in #( |
| 4685 | e) ac_check_lib_save_LIBS=$LIBS |
| 4686 | LIBS="-lc $LIBS" |
| 4687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4688 | /* end confdefs.h. */ |
| 4689 | |
| 4690 | /* Override any GCC internal prototype to avoid an error. |
| 4691 | Use char because int might match the return type of a GCC |
| 4692 | builtin and then its argument prototype would still apply. |
| 4693 | The 'extern "C"' is for builds by C++ compilers; |
| 4694 | although this is not generally supported in C code supporting it here |
| 4695 | has little cost and some practical benefit (sr 110532). */ |
| 4696 | #ifdef __cplusplus |
| 4697 | extern "C" |
| 4698 | #endif |
| 4699 | char pthread_mutex_init (void); |
| 4700 | int |
| 4701 | main (void) |
| 4702 | { |
| 4703 | return pthread_mutex_init (); |
| 4704 | ; |
| 4705 | return 0; |
| 4706 | } |
| 4707 | _ACEOF |
| 4708 | if ac_fn_c_try_link "$LINENO" |
| 4709 | then : |
| 4710 | ac_cv_lib_c_pthread_mutex_init=yes |
| 4711 | else case e in #( |
| 4712 | e) ac_cv_lib_c_pthread_mutex_init=no ;; |
| 4713 | esac |
| 4714 | fi |
| 4715 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4716 | conftest$ac_exeext conftest.$ac_ext |
| 4717 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4718 | esac |
| 4719 | fi |
| 4720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5 |
| 4721 | printf "%s\n" "$ac_cv_lib_c_pthread_mutex_init" >&6; } |
| 4722 | if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes |
| 4723 | then : |
| 4724 | tcl_ok=yes |
| 4725 | else case e in #( |
| 4726 | e) tcl_ok=no ;; |
| 4727 | esac |
| 4728 | fi |
| 4729 | |
| 4730 | if test "$tcl_ok" = "no"; then |
| 4731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5 |
| 4732 | printf %s "checking for pthread_mutex_init in -lc_r... " >&6; } |
| 4733 | if test ${ac_cv_lib_c_r_pthread_mutex_init+y} |
| 4734 | then : |
| 4735 | printf %s "(cached) " >&6 |
| 4736 | else case e in #( |
| 4737 | e) ac_check_lib_save_LIBS=$LIBS |
| 4738 | LIBS="-lc_r $LIBS" |
| 4739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4740 | /* end confdefs.h. */ |
| 4741 | |
| 4742 | /* Override any GCC internal prototype to avoid an error. |
| 4743 | Use char because int might match the return type of a GCC |
| 4744 | builtin and then its argument prototype would still apply. |
| 4745 | The 'extern "C"' is for builds by C++ compilers; |
| 4746 | although this is not generally supported in C code supporting it here |
| 4747 | has little cost and some practical benefit (sr 110532). */ |
| 4748 | #ifdef __cplusplus |
| 4749 | extern "C" |
| 4750 | #endif |
| 4751 | char pthread_mutex_init (void); |
| 4752 | int |
| 4753 | main (void) |
| 4754 | { |
| 4755 | return pthread_mutex_init (); |
| 4756 | ; |
| 4757 | return 0; |
| 4758 | } |
| 4759 | _ACEOF |
| 4760 | if ac_fn_c_try_link "$LINENO" |
| 4761 | then : |
| 4762 | ac_cv_lib_c_r_pthread_mutex_init=yes |
| 4763 | else case e in #( |
| 4764 | e) ac_cv_lib_c_r_pthread_mutex_init=no ;; |
| 4765 | esac |
| 4766 | fi |
| 4767 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4768 | conftest$ac_exeext conftest.$ac_ext |
| 4769 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4770 | esac |
| 4771 | fi |
| 4772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 |
| 4773 | printf "%s\n" "$ac_cv_lib_c_r_pthread_mutex_init" >&6; } |
| 4774 | if test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes |
| 4775 | then : |
| 4776 | tcl_ok=yes |
| 4777 | else case e in #( |
| 4778 | e) tcl_ok=no ;; |
| 4779 | esac |
| 4780 | fi |
| 4781 | |
| 4782 | if test "$tcl_ok" = "yes"; then |
| 4783 | # The space is needed |
| 4784 | THREADS_LIBS=" -pthread" |
| 4785 | else |
| 4786 | TCL_THREADS=0 |
| 4787 | { printf "%s\n" "$as_me:${as_lineno-$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 |
| 4788 | printf "%s\n" "$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;} |
| 4789 | fi |
| 4790 | fi |
| 4791 | fi |
| 4792 | fi |
| 4793 | |
| 4794 | # Does the pthread-implementation provide |
| 4795 | # 'pthread_attr_setstacksize' ? |
| 4796 | |
| 4797 | ac_saved_libs=$LIBS |
| 4798 | LIBS="$LIBS $THREADS_LIBS" |
| 4799 | ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize" |
| 4800 | if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes |
| 4801 | then : |
| 4802 | printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h |
| 4803 | |
| 4804 | fi |
| 4805 | ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" |
| 4806 | if test "x$ac_cv_func_pthread_atfork" = xyes |
| 4807 | then : |
| 4808 | printf "%s\n" "#define HAVE_PTHREAD_ATFORK 1" >>confdefs.h |
| 4809 | |
| 4810 | fi |
| 4811 | |
| 4812 | LIBS=$ac_saved_libs |
| 4813 | else |
| 4814 | TCL_THREADS=0 |
| 4815 | fi |
| 4816 | # Do checking message here to not mess up interleaved configure output |
| 4817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5 |
| 4818 | printf %s "checking for building with threads... " >&6; } |
| 4819 | if test "${TCL_THREADS}" = 1; then |
| 4820 | |
| 4821 | printf "%s\n" "#define TCL_THREADS 1" >>confdefs.h |
| 4822 | |
| 4823 | if test "${tcl_threaded_core}" = 1; then |
| 4824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (threaded core)" >&5 |
| 4825 | printf "%s\n" "yes (threaded core)" >&6; } |
| 4826 | else |
| 4827 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4828 | printf "%s\n" "yes" >&6; } |
| 4829 | fi |
| 4830 | else |
| 4831 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4832 | printf "%s\n" "no" >&6; } |
| 4833 | fi |
| 4834 | |
| 4835 | |
| 4836 | |
| 4837 | |
| 4838 | #------------------------------------------------------------------------ |
| 4839 | # Embedded configuration information, encoding to use for the values, TIP #59 |
| 4840 | #------------------------------------------------------------------------ |
| 4841 | |
| 4842 | |
| 4843 | |
| 4844 | # Check whether --with-encoding was given. |
| 4845 | if test ${with_encoding+y} |
| 4846 | then : |
| 4847 | withval=$with_encoding; with_tcencoding=${withval} |
| 4848 | fi |
| 4849 | |
| 4850 | |
| 4851 | if test x"${with_tcencoding}" != x ; then |
| 4852 | |
| 4853 | printf "%s\n" "#define TCL_CFGVAL_ENCODING \"${with_tcencoding}\"" >>confdefs.h |
| 4854 | |
| 4855 | else |
| 4856 | |
| 4857 | printf "%s\n" "#define TCL_CFGVAL_ENCODING \"iso8859-1\"" >>confdefs.h |
| 4858 | |
| 4859 | fi |
| 4860 | |
| 4861 | |
| 4862 | #-------------------------------------------------------------------- |
| 4863 | # Look for libraries that we will need when compiling the Tcl shell |
| 4864 | #-------------------------------------------------------------------- |
| 4865 | |
| 4866 | |
| 4867 | #-------------------------------------------------------------------- |
| 4868 | # On a few very rare systems, all of the libm.a stuff is |
| 4869 | # already in libc.a. Set compiler flags accordingly. |
| 4870 | #-------------------------------------------------------------------- |
| 4871 | |
| 4872 | ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin" |
| 4873 | if test "x$ac_cv_func_sin" = xyes |
| 4874 | then : |
| 4875 | MATH_LIBS="" |
| 4876 | else case e in #( |
| 4877 | e) MATH_LIBS="-lm" ;; |
| 4878 | esac |
| 4879 | fi |
| 4880 | |
| 4881 | |
| 4882 | #-------------------------------------------------------------------- |
| 4883 | # Interactive UNIX requires -linet instead of -lsocket, plus it |
| 4884 | # needs net/errno.h to define the socket-related error codes. |
| 4885 | #-------------------------------------------------------------------- |
| 4886 | |
| 4887 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5 |
| 4888 | printf %s "checking for main in -linet... " >&6; } |
| 4889 | if test ${ac_cv_lib_inet_main+y} |
| 4890 | then : |
| 4891 | printf %s "(cached) " >&6 |
| 4892 | else case e in #( |
| 4893 | e) ac_check_lib_save_LIBS=$LIBS |
| 4894 | LIBS="-linet $LIBS" |
| 4895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4896 | /* end confdefs.h. */ |
| 4897 | |
| 4898 | |
| 4899 | int |
| 4900 | main (void) |
| 4901 | { |
| 4902 | return main (); |
| 4903 | ; |
| 4904 | return 0; |
| 4905 | } |
| 4906 | _ACEOF |
| 4907 | if ac_fn_c_try_link "$LINENO" |
| 4908 | then : |
| 4909 | ac_cv_lib_inet_main=yes |
| 4910 | else case e in #( |
| 4911 | e) ac_cv_lib_inet_main=no ;; |
| 4912 | esac |
| 4913 | fi |
| 4914 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4915 | conftest$ac_exeext conftest.$ac_ext |
| 4916 | LIBS=$ac_check_lib_save_LIBS ;; |
| 4917 | esac |
| 4918 | fi |
| 4919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5 |
| 4920 | printf "%s\n" "$ac_cv_lib_inet_main" >&6; } |
| 4921 | if test "x$ac_cv_lib_inet_main" = xyes |
| 4922 | then : |
| 4923 | LIBS="$LIBS -linet" |
| 4924 | fi |
| 4925 | |
| 4926 | ac_fn_c_check_header_compile "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" |
| 4927 | if test "x$ac_cv_header_net_errno_h" = xyes |
| 4928 | then : |
| 4929 | |
| 4930 | |
| 4931 | printf "%s\n" "#define HAVE_NET_ERRNO_H 1" >>confdefs.h |
| 4932 | |
| 4933 | fi |
| 4934 | |
| 4935 | |
| 4936 | #-------------------------------------------------------------------- |
| 4937 | # Check for the existence of the -lsocket and -lnsl libraries. |
| 4938 | # The order here is important, so that they end up in the right |
| 4939 | # order in the command line generated by make. Here are some |
| 4940 | # special considerations: |
| 4941 | # 1. Use "connect" and "accept" to check for -lsocket, and |
| 4942 | # "gethostbyname" to check for -lnsl. |
| 4943 | # 2. Use each function name only once: can't redo a check because |
| 4944 | # autoconf caches the results of the last check and won't redo it. |
| 4945 | # 3. Use -lnsl and -lsocket only if they supply procedures that |
| 4946 | # aren't already present in the normal libraries. This is because |
| 4947 | # IRIX 5.2 has libraries, but they aren't needed and they're |
| 4948 | # bogus: they goof up name resolution if used. |
| 4949 | # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. |
| 4950 | # To get around this problem, check for both libraries together |
| 4951 | # if -lsocket doesn't work by itself. |
| 4952 | #-------------------------------------------------------------------- |
| 4953 | |
| 4954 | tcl_checkBoth=0 |
| 4955 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
| 4956 | if test "x$ac_cv_func_connect" = xyes |
| 4957 | then : |
| 4958 | tcl_checkSocket=0 |
| 4959 | else case e in #( |
| 4960 | e) tcl_checkSocket=1 ;; |
| 4961 | esac |
| 4962 | fi |
| 4963 | |
| 4964 | if test "$tcl_checkSocket" = 1; then |
| 4965 | ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" |
| 4966 | if test "x$ac_cv_func_setsockopt" = xyes |
| 4967 | then : |
| 4968 | |
| 4969 | else case e in #( |
| 4970 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 |
| 4971 | printf %s "checking for setsockopt in -lsocket... " >&6; } |
| 4972 | if test ${ac_cv_lib_socket_setsockopt+y} |
| 4973 | then : |
| 4974 | printf %s "(cached) " >&6 |
| 4975 | else case e in #( |
| 4976 | e) ac_check_lib_save_LIBS=$LIBS |
| 4977 | LIBS="-lsocket $LIBS" |
| 4978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4979 | /* end confdefs.h. */ |
| 4980 | |
| 4981 | /* Override any GCC internal prototype to avoid an error. |
| 4982 | Use char because int might match the return type of a GCC |
| 4983 | builtin and then its argument prototype would still apply. |
| 4984 | The 'extern "C"' is for builds by C++ compilers; |
| 4985 | although this is not generally supported in C code supporting it here |
| 4986 | has little cost and some practical benefit (sr 110532). */ |
| 4987 | #ifdef __cplusplus |
| 4988 | extern "C" |
| 4989 | #endif |
| 4990 | char setsockopt (void); |
| 4991 | int |
| 4992 | main (void) |
| 4993 | { |
| 4994 | return setsockopt (); |
| 4995 | ; |
| 4996 | return 0; |
| 4997 | } |
| 4998 | _ACEOF |
| 4999 | if ac_fn_c_try_link "$LINENO" |
| 5000 | then : |
| 5001 | ac_cv_lib_socket_setsockopt=yes |
| 5002 | else case e in #( |
| 5003 | e) ac_cv_lib_socket_setsockopt=no ;; |
| 5004 | esac |
| 5005 | fi |
| 5006 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5007 | conftest$ac_exeext conftest.$ac_ext |
| 5008 | LIBS=$ac_check_lib_save_LIBS ;; |
| 5009 | esac |
| 5010 | fi |
| 5011 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 |
| 5012 | printf "%s\n" "$ac_cv_lib_socket_setsockopt" >&6; } |
| 5013 | if test "x$ac_cv_lib_socket_setsockopt" = xyes |
| 5014 | then : |
| 5015 | LIBS="$LIBS -lsocket" |
| 5016 | else case e in #( |
| 5017 | e) tcl_checkBoth=1 ;; |
| 5018 | esac |
| 5019 | fi |
| 5020 | ;; |
| 5021 | esac |
| 5022 | fi |
| 5023 | |
| 5024 | fi |
| 5025 | if test "$tcl_checkBoth" = 1; then |
| 5026 | tk_oldLibs=$LIBS |
| 5027 | LIBS="$LIBS -lsocket -lnsl" |
| 5028 | ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" |
| 5029 | if test "x$ac_cv_func_accept" = xyes |
| 5030 | then : |
| 5031 | tcl_checkNsl=0 |
| 5032 | else case e in #( |
| 5033 | e) LIBS=$tk_oldLibs ;; |
| 5034 | esac |
| 5035 | fi |
| 5036 | |
| 5037 | fi |
| 5038 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
| 5039 | if test "x$ac_cv_func_gethostbyname" = xyes |
| 5040 | then : |
| 5041 | |
| 5042 | else case e in #( |
| 5043 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
| 5044 | printf %s "checking for gethostbyname in -lnsl... " >&6; } |
| 5045 | if test ${ac_cv_lib_nsl_gethostbyname+y} |
| 5046 | then : |
| 5047 | printf %s "(cached) " >&6 |
| 5048 | else case e in #( |
| 5049 | e) ac_check_lib_save_LIBS=$LIBS |
| 5050 | LIBS="-lnsl $LIBS" |
| 5051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5052 | /* end confdefs.h. */ |
| 5053 | |
| 5054 | /* Override any GCC internal prototype to avoid an error. |
| 5055 | Use char because int might match the return type of a GCC |
| 5056 | builtin and then its argument prototype would still apply. |
| 5057 | The 'extern "C"' is for builds by C++ compilers; |
| 5058 | although this is not generally supported in C code supporting it here |
| 5059 | has little cost and some practical benefit (sr 110532). */ |
| 5060 | #ifdef __cplusplus |
| 5061 | extern "C" |
| 5062 | #endif |
| 5063 | char gethostbyname (void); |
| 5064 | int |
| 5065 | main (void) |
| 5066 | { |
| 5067 | return gethostbyname (); |
| 5068 | ; |
| 5069 | return 0; |
| 5070 | } |
| 5071 | _ACEOF |
| 5072 | if ac_fn_c_try_link "$LINENO" |
| 5073 | then : |
| 5074 | ac_cv_lib_nsl_gethostbyname=yes |
| 5075 | else case e in #( |
| 5076 | e) ac_cv_lib_nsl_gethostbyname=no ;; |
| 5077 | esac |
| 5078 | fi |
| 5079 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5080 | conftest$ac_exeext conftest.$ac_ext |
| 5081 | LIBS=$ac_check_lib_save_LIBS ;; |
| 5082 | esac |
| 5083 | fi |
| 5084 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
| 5085 | printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } |
| 5086 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes |
| 5087 | then : |
| 5088 | LIBS="$LIBS -lnsl" |
| 5089 | fi |
| 5090 | ;; |
| 5091 | esac |
| 5092 | fi |
| 5093 | |
| 5094 | |
| 5095 | |
| 5096 | # Add the threads support libraries |
| 5097 | LIBS="$LIBS$THREADS_LIBS" |
| 5098 | |
| 5099 | |
| 5100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 |
| 5101 | printf %s "checking how to build libraries... " >&6; } |
| 5102 | # Check whether --enable-shared was given. |
| 5103 | if test ${enable_shared+y} |
| 5104 | then : |
| 5105 | enableval=$enable_shared; tcl_ok=$enableval |
| 5106 | else case e in #( |
| 5107 | e) tcl_ok=yes ;; |
| 5108 | esac |
| 5109 | fi |
| 5110 | |
| 5111 | if test "$tcl_ok" = "yes" ; then |
| 5112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared" >&5 |
| 5113 | printf "%s\n" "shared" >&6; } |
| 5114 | SHARED_BUILD=1 |
| 5115 | else |
| 5116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static" >&5 |
| 5117 | printf "%s\n" "static" >&6; } |
| 5118 | SHARED_BUILD=0 |
| 5119 | |
| 5120 | printf "%s\n" "#define STATIC_BUILD 1" >>confdefs.h |
| 5121 | |
| 5122 | fi |
| 5123 | |
| 5124 | |
| 5125 | |
| 5126 | #-------------------------------------------------------------------- |
| 5127 | # Look for a native installed tclsh binary (if available) |
| 5128 | # If one cannot be found then use the binary we build (fails for |
| 5129 | # cross compiling). This is used for NATIVE_TCLSH in Makefile. |
| 5130 | #-------------------------------------------------------------------- |
| 5131 | |
| 5132 | |
| 5133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5 |
| 5134 | printf %s "checking for tclsh... " >&6; } |
| 5135 | if test ${ac_cv_path_tclsh+y} |
| 5136 | then : |
| 5137 | printf %s "(cached) " >&6 |
| 5138 | else case e in #( |
| 5139 | e) |
| 5140 | search_path=`echo ${PATH} | sed -e 's/:/ /g'` |
| 5141 | for dir in $search_path ; do |
| 5142 | for j in `ls -r $dir/tclsh[8-9]* 2> /dev/null` \ |
| 5143 | `ls -r $dir/tclsh* 2> /dev/null` ; do |
| 5144 | if test x"$ac_cv_path_tclsh" = x ; then |
| 5145 | if test -f "$j" ; then |
| 5146 | ac_cv_path_tclsh=$j |
| 5147 | break |
| 5148 | fi |
| 5149 | fi |
| 5150 | done |
| 5151 | done |
| 5152 | ;; |
| 5153 | esac |
| 5154 | fi |
| 5155 | |
| 5156 | |
| 5157 | if test -f "$ac_cv_path_tclsh" ; then |
| 5158 | TCLSH_PROG="$ac_cv_path_tclsh" |
| 5159 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCLSH_PROG" >&5 |
| 5160 | printf "%s\n" "$TCLSH_PROG" >&6; } |
| 5161 | else |
| 5162 | # It is not an error if an installed version of Tcl can't be located. |
| 5163 | TCLSH_PROG="" |
| 5164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: No tclsh found on PATH" >&5 |
| 5165 | printf "%s\n" "No tclsh found on PATH" >&6; } |
| 5166 | fi |
| 5167 | |
| 5168 | |
| 5169 | if test "$TCLSH_PROG" = ""; then |
| 5170 | TCLSH_PROG='./${TCL_EXE}' |
| 5171 | fi |
| 5172 | |
| 5173 | #------------------------------------------------------------------------ |
| 5174 | # Add stuff for zlib |
| 5175 | #------------------------------------------------------------------------ |
| 5176 | |
| 5177 | zlib_ok=yes |
| 5178 | ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" |
| 5179 | if test "x$ac_cv_header_zlib_h" = xyes |
| 5180 | then : |
| 5181 | |
| 5182 | ac_fn_c_check_type "$LINENO" "gz_header" "ac_cv_type_gz_header" "#include <zlib.h> |
| 5183 | " |
| 5184 | if test "x$ac_cv_type_gz_header" = xyes |
| 5185 | then : |
| 5186 | |
| 5187 | else case e in #( |
| 5188 | e) zlib_ok=no ;; |
| 5189 | esac |
| 5190 | fi |
| 5191 | |
| 5192 | else case e in #( |
| 5193 | e) |
| 5194 | zlib_ok=no ;; |
| 5195 | esac |
| 5196 | fi |
| 5197 | |
| 5198 | if test $zlib_ok = yes |
| 5199 | then : |
| 5200 | |
| 5201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing deflateSetHeader" >&5 |
| 5202 | printf %s "checking for library containing deflateSetHeader... " >&6; } |
| 5203 | if test ${ac_cv_search_deflateSetHeader+y} |
| 5204 | then : |
| 5205 | printf %s "(cached) " >&6 |
| 5206 | else case e in #( |
| 5207 | e) ac_func_search_save_LIBS=$LIBS |
| 5208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5209 | /* end confdefs.h. */ |
| 5210 | |
| 5211 | /* Override any GCC internal prototype to avoid an error. |
| 5212 | Use char because int might match the return type of a GCC |
| 5213 | builtin and then its argument prototype would still apply. |
| 5214 | The 'extern "C"' is for builds by C++ compilers; |
| 5215 | although this is not generally supported in C code supporting it here |
| 5216 | has little cost and some practical benefit (sr 110532). */ |
| 5217 | #ifdef __cplusplus |
| 5218 | extern "C" |
| 5219 | #endif |
| 5220 | char deflateSetHeader (void); |
| 5221 | int |
| 5222 | main (void) |
| 5223 | { |
| 5224 | return deflateSetHeader (); |
| 5225 | ; |
| 5226 | return 0; |
| 5227 | } |
| 5228 | _ACEOF |
| 5229 | for ac_lib in '' z |
| 5230 | do |
| 5231 | if test -z "$ac_lib"; then |
| 5232 | ac_res="none required" |
| 5233 | else |
| 5234 | ac_res=-l$ac_lib |
| 5235 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 5236 | fi |
| 5237 | if ac_fn_c_try_link "$LINENO" |
| 5238 | then : |
| 5239 | ac_cv_search_deflateSetHeader=$ac_res |
| 5240 | fi |
| 5241 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5242 | conftest$ac_exeext |
| 5243 | if test ${ac_cv_search_deflateSetHeader+y} |
| 5244 | then : |
| 5245 | break |
| 5246 | fi |
| 5247 | done |
| 5248 | if test ${ac_cv_search_deflateSetHeader+y} |
| 5249 | then : |
| 5250 | |
| 5251 | else case e in #( |
| 5252 | e) ac_cv_search_deflateSetHeader=no ;; |
| 5253 | esac |
| 5254 | fi |
| 5255 | rm conftest.$ac_ext |
| 5256 | LIBS=$ac_func_search_save_LIBS ;; |
| 5257 | esac |
| 5258 | fi |
| 5259 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflateSetHeader" >&5 |
| 5260 | printf "%s\n" "$ac_cv_search_deflateSetHeader" >&6; } |
| 5261 | ac_res=$ac_cv_search_deflateSetHeader |
| 5262 | if test "$ac_res" != no |
| 5263 | then : |
| 5264 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 5265 | |
| 5266 | else case e in #( |
| 5267 | e) |
| 5268 | zlib_ok=no |
| 5269 | ;; |
| 5270 | esac |
| 5271 | fi |
| 5272 | |
| 5273 | fi |
| 5274 | if test $zlib_ok = no |
| 5275 | then : |
| 5276 | |
| 5277 | ZLIB_OBJS=\${ZLIB_OBJS} |
| 5278 | |
| 5279 | ZLIB_SRCS=\${ZLIB_SRCS} |
| 5280 | |
| 5281 | ZLIB_INCLUDE=-I\${ZLIB_DIR} |
| 5282 | |
| 5283 | |
| 5284 | fi |
| 5285 | |
| 5286 | printf "%s\n" "#define HAVE_ZLIB 1" >>confdefs.h |
| 5287 | |
| 5288 | |
| 5289 | #-------------------------------------------------------------------- |
| 5290 | # The statements below define a collection of compile flags. This |
| 5291 | # macro depends on the value of SHARED_BUILD, and should be called |
| 5292 | # after SC_ENABLE_SHARED checks the configure switches. |
| 5293 | #-------------------------------------------------------------------- |
| 5294 | |
| 5295 | if test -n "$ac_tool_prefix"; then |
| 5296 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5297 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5298 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5299 | printf %s "checking for $ac_word... " >&6; } |
| 5300 | if test ${ac_cv_prog_RANLIB+y} |
| 5301 | then : |
| 5302 | printf %s "(cached) " >&6 |
| 5303 | else case e in #( |
| 5304 | e) if test -n "$RANLIB"; then |
| 5305 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5306 | else |
| 5307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5308 | for as_dir in $PATH |
| 5309 | do |
| 5310 | IFS=$as_save_IFS |
| 5311 | case $as_dir in #((( |
| 5312 | '') as_dir=./ ;; |
| 5313 | */) ;; |
| 5314 | *) as_dir=$as_dir/ ;; |
| 5315 | esac |
| 5316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5317 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5318 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5319 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5320 | break 2 |
| 5321 | fi |
| 5322 | done |
| 5323 | done |
| 5324 | IFS=$as_save_IFS |
| 5325 | |
| 5326 | fi ;; |
| 5327 | esac |
| 5328 | fi |
| 5329 | RANLIB=$ac_cv_prog_RANLIB |
| 5330 | if test -n "$RANLIB"; then |
| 5331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5332 | printf "%s\n" "$RANLIB" >&6; } |
| 5333 | else |
| 5334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5335 | printf "%s\n" "no" >&6; } |
| 5336 | fi |
| 5337 | |
| 5338 | |
| 5339 | fi |
| 5340 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5341 | ac_ct_RANLIB=$RANLIB |
| 5342 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5343 | set dummy ranlib; ac_word=$2 |
| 5344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5345 | printf %s "checking for $ac_word... " >&6; } |
| 5346 | if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 5347 | then : |
| 5348 | printf %s "(cached) " >&6 |
| 5349 | else case e in #( |
| 5350 | e) if test -n "$ac_ct_RANLIB"; then |
| 5351 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5352 | else |
| 5353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5354 | for as_dir in $PATH |
| 5355 | do |
| 5356 | IFS=$as_save_IFS |
| 5357 | case $as_dir in #((( |
| 5358 | '') as_dir=./ ;; |
| 5359 | */) ;; |
| 5360 | *) as_dir=$as_dir/ ;; |
| 5361 | esac |
| 5362 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5363 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5364 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5365 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5366 | break 2 |
| 5367 | fi |
| 5368 | done |
| 5369 | done |
| 5370 | IFS=$as_save_IFS |
| 5371 | |
| 5372 | fi ;; |
| 5373 | esac |
| 5374 | fi |
| 5375 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5376 | if test -n "$ac_ct_RANLIB"; then |
| 5377 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5378 | printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 5379 | else |
| 5380 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5381 | printf "%s\n" "no" >&6; } |
| 5382 | fi |
| 5383 | |
| 5384 | if test "x$ac_ct_RANLIB" = x; then |
| 5385 | RANLIB=":" |
| 5386 | else |
| 5387 | case $cross_compiling:$ac_tool_warned in |
| 5388 | yes:) |
| 5389 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5390 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5391 | ac_tool_warned=yes ;; |
| 5392 | esac |
| 5393 | RANLIB=$ac_ct_RANLIB |
| 5394 | fi |
| 5395 | else |
| 5396 | RANLIB="$ac_cv_prog_RANLIB" |
| 5397 | fi |
| 5398 | |
| 5399 | |
| 5400 | |
| 5401 | # Step 0.a: Enable 64 bit support? |
| 5402 | |
| 5403 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 |
| 5404 | printf %s "checking if 64bit support is requested... " >&6; } |
| 5405 | # Check whether --enable-64bit was given. |
| 5406 | if test ${enable_64bit+y} |
| 5407 | then : |
| 5408 | enableval=$enable_64bit; do64bit=$enableval |
| 5409 | else case e in #( |
| 5410 | e) do64bit=no ;; |
| 5411 | esac |
| 5412 | fi |
| 5413 | |
| 5414 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 |
| 5415 | printf "%s\n" "$do64bit" >&6; } |
| 5416 | |
| 5417 | # Step 0.b: Enable Solaris 64 bit VIS support? |
| 5418 | |
| 5419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 |
| 5420 | printf %s "checking if 64bit Sparc VIS support is requested... " >&6; } |
| 5421 | # Check whether --enable-64bit-vis was given. |
| 5422 | if test ${enable_64bit_vis+y} |
| 5423 | then : |
| 5424 | enableval=$enable_64bit_vis; do64bitVIS=$enableval |
| 5425 | else case e in #( |
| 5426 | e) do64bitVIS=no ;; |
| 5427 | esac |
| 5428 | fi |
| 5429 | |
| 5430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 |
| 5431 | printf "%s\n" "$do64bitVIS" >&6; } |
| 5432 | # Force 64bit on with VIS |
| 5433 | if test "$do64bitVIS" = "yes" |
| 5434 | then : |
| 5435 | do64bit=yes |
| 5436 | fi |
| 5437 | |
| 5438 | # Step 0.c: Check if visibility support is available. Do this here so |
| 5439 | # that platform specific alternatives can be used below if this fails. |
| 5440 | |
| 5441 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5 |
| 5442 | printf %s "checking if compiler supports visibility \"hidden\"... " >&6; } |
| 5443 | if test ${tcl_cv_cc_visibility_hidden+y} |
| 5444 | then : |
| 5445 | printf %s "(cached) " >&6 |
| 5446 | else case e in #( |
| 5447 | e) |
| 5448 | hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" |
| 5449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5450 | /* end confdefs.h. */ |
| 5451 | |
| 5452 | extern __attribute__((__visibility__("hidden"))) void f(void); |
| 5453 | void f(void) {} |
| 5454 | int |
| 5455 | main (void) |
| 5456 | { |
| 5457 | f(); |
| 5458 | ; |
| 5459 | return 0; |
| 5460 | } |
| 5461 | _ACEOF |
| 5462 | if ac_fn_c_try_link "$LINENO" |
| 5463 | then : |
| 5464 | tcl_cv_cc_visibility_hidden=yes |
| 5465 | else case e in #( |
| 5466 | e) tcl_cv_cc_visibility_hidden=no ;; |
| 5467 | esac |
| 5468 | fi |
| 5469 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5470 | conftest$ac_exeext conftest.$ac_ext |
| 5471 | CFLAGS=$hold_cflags ;; |
| 5472 | esac |
| 5473 | fi |
| 5474 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5 |
| 5475 | printf "%s\n" "$tcl_cv_cc_visibility_hidden" >&6; } |
| 5476 | if test $tcl_cv_cc_visibility_hidden = yes |
| 5477 | then : |
| 5478 | |
| 5479 | |
| 5480 | printf "%s\n" "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h |
| 5481 | |
| 5482 | |
| 5483 | printf "%s\n" "#define HAVE_HIDDEN 1" >>confdefs.h |
| 5484 | |
| 5485 | |
| 5486 | fi |
| 5487 | |
| 5488 | # Step 0.d: Disable -rpath support? |
| 5489 | |
| 5490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5 |
| 5491 | printf %s "checking if rpath support is requested... " >&6; } |
| 5492 | # Check whether --enable-rpath was given. |
| 5493 | if test ${enable_rpath+y} |
| 5494 | then : |
| 5495 | enableval=$enable_rpath; doRpath=$enableval |
| 5496 | else case e in #( |
| 5497 | e) doRpath=yes ;; |
| 5498 | esac |
| 5499 | fi |
| 5500 | |
| 5501 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5 |
| 5502 | printf "%s\n" "$doRpath" >&6; } |
| 5503 | |
| 5504 | # Step 1: set the variable "system" to hold the name and version number |
| 5505 | # for the system. |
| 5506 | |
| 5507 | |
| 5508 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5 |
| 5509 | printf %s "checking system version... " >&6; } |
| 5510 | if test ${tcl_cv_sys_version+y} |
| 5511 | then : |
| 5512 | printf %s "(cached) " >&6 |
| 5513 | else case e in #( |
| 5514 | e) |
| 5515 | if test -f /usr/lib/NextStep/software_version; then |
| 5516 | tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` |
| 5517 | else |
| 5518 | tcl_cv_sys_version=`uname -s`-`uname -r` |
| 5519 | if test "$?" -ne 0 ; then |
| 5520 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 |
| 5521 | printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;} |
| 5522 | tcl_cv_sys_version=unknown |
| 5523 | else |
| 5524 | # Special check for weird MP-RAS system (uname returns weird |
| 5525 | # results, and the version is kept in special file). |
| 5526 | |
| 5527 | if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
| 5528 | tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` |
| 5529 | fi |
| 5530 | if test "`uname -s`" = "AIX" ; then |
| 5531 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` |
| 5532 | fi |
| 5533 | if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then |
| 5534 | tcl_cv_sys_version=NetBSD-Debian |
| 5535 | fi |
| 5536 | fi |
| 5537 | fi |
| 5538 | ;; |
| 5539 | esac |
| 5540 | fi |
| 5541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 |
| 5542 | printf "%s\n" "$tcl_cv_sys_version" >&6; } |
| 5543 | system=$tcl_cv_sys_version |
| 5544 | |
| 5545 | |
| 5546 | # Step 2: check for existence of -ldl library. This is needed because |
| 5547 | # Linux can use either -ldl or -ldld for dynamic loading. |
| 5548 | |
| 5549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 5550 | printf %s "checking for dlopen in -ldl... " >&6; } |
| 5551 | if test ${ac_cv_lib_dl_dlopen+y} |
| 5552 | then : |
| 5553 | printf %s "(cached) " >&6 |
| 5554 | else case e in #( |
| 5555 | e) ac_check_lib_save_LIBS=$LIBS |
| 5556 | LIBS="-ldl $LIBS" |
| 5557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5558 | /* end confdefs.h. */ |
| 5559 | |
| 5560 | /* Override any GCC internal prototype to avoid an error. |
| 5561 | Use char because int might match the return type of a GCC |
| 5562 | builtin and then its argument prototype would still apply. |
| 5563 | The 'extern "C"' is for builds by C++ compilers; |
| 5564 | although this is not generally supported in C code supporting it here |
| 5565 | has little cost and some practical benefit (sr 110532). */ |
| 5566 | #ifdef __cplusplus |
| 5567 | extern "C" |
| 5568 | #endif |
| 5569 | char dlopen (void); |
| 5570 | int |
| 5571 | main (void) |
| 5572 | { |
| 5573 | return dlopen (); |
| 5574 | ; |
| 5575 | return 0; |
| 5576 | } |
| 5577 | _ACEOF |
| 5578 | if ac_fn_c_try_link "$LINENO" |
| 5579 | then : |
| 5580 | ac_cv_lib_dl_dlopen=yes |
| 5581 | else case e in #( |
| 5582 | e) ac_cv_lib_dl_dlopen=no ;; |
| 5583 | esac |
| 5584 | fi |
| 5585 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5586 | conftest$ac_exeext conftest.$ac_ext |
| 5587 | LIBS=$ac_check_lib_save_LIBS ;; |
| 5588 | esac |
| 5589 | fi |
| 5590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 5591 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 5592 | if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 5593 | then : |
| 5594 | have_dl=yes |
| 5595 | else case e in #( |
| 5596 | e) have_dl=no ;; |
| 5597 | esac |
| 5598 | fi |
| 5599 | |
| 5600 | |
| 5601 | # Require ranlib early so we can override it in special cases below. |
| 5602 | |
| 5603 | |
| 5604 | |
| 5605 | # Step 3: set configuration options based on system name and version. |
| 5606 | |
| 5607 | do64bit_ok=no |
| 5608 | # default to '{$LIBS}' and set to "" on per-platform necessary basis |
| 5609 | SHLIB_LD_LIBS='${LIBS}' |
| 5610 | LDFLAGS_ORIG="$LDFLAGS" |
| 5611 | # When ld needs options to work in 64-bit mode, put them in |
| 5612 | # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] |
| 5613 | # is disabled by the user. [Bug 1016796] |
| 5614 | LDFLAGS_ARCH="" |
| 5615 | UNSHARED_LIB_SUFFIX="" |
| 5616 | TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' |
| 5617 | ECHO_VERSION='`echo ${VERSION}`' |
| 5618 | TCL_LIB_VERSIONS_OK=ok |
| 5619 | CFLAGS_DEBUG=-g |
| 5620 | if test "$GCC" = yes |
| 5621 | then : |
| 5622 | |
| 5623 | CFLAGS_OPTIMIZE=-O2 |
| 5624 | CFLAGS_WARNING="-Wall -Wpointer-arith" |
| 5625 | |
| 5626 | else case e in #( |
| 5627 | e) |
| 5628 | CFLAGS_OPTIMIZE=-O |
| 5629 | CFLAGS_WARNING="" |
| 5630 | ;; |
| 5631 | esac |
| 5632 | fi |
| 5633 | if test -n "$ac_tool_prefix"; then |
| 5634 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5635 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5637 | printf %s "checking for $ac_word... " >&6; } |
| 5638 | if test ${ac_cv_prog_AR+y} |
| 5639 | then : |
| 5640 | printf %s "(cached) " >&6 |
| 5641 | else case e in #( |
| 5642 | e) if test -n "$AR"; then |
| 5643 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5644 | else |
| 5645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5646 | for as_dir in $PATH |
| 5647 | do |
| 5648 | IFS=$as_save_IFS |
| 5649 | case $as_dir in #((( |
| 5650 | '') as_dir=./ ;; |
| 5651 | */) ;; |
| 5652 | *) as_dir=$as_dir/ ;; |
| 5653 | esac |
| 5654 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5655 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5656 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5657 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5658 | break 2 |
| 5659 | fi |
| 5660 | done |
| 5661 | done |
| 5662 | IFS=$as_save_IFS |
| 5663 | |
| 5664 | fi ;; |
| 5665 | esac |
| 5666 | fi |
| 5667 | AR=$ac_cv_prog_AR |
| 5668 | if test -n "$AR"; then |
| 5669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5670 | printf "%s\n" "$AR" >&6; } |
| 5671 | else |
| 5672 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5673 | printf "%s\n" "no" >&6; } |
| 5674 | fi |
| 5675 | |
| 5676 | |
| 5677 | fi |
| 5678 | if test -z "$ac_cv_prog_AR"; then |
| 5679 | ac_ct_AR=$AR |
| 5680 | # Extract the first word of "ar", so it can be a program name with args. |
| 5681 | set dummy ar; ac_word=$2 |
| 5682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5683 | printf %s "checking for $ac_word... " >&6; } |
| 5684 | if test ${ac_cv_prog_ac_ct_AR+y} |
| 5685 | then : |
| 5686 | printf %s "(cached) " >&6 |
| 5687 | else case e in #( |
| 5688 | e) if test -n "$ac_ct_AR"; then |
| 5689 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5690 | else |
| 5691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5692 | for as_dir in $PATH |
| 5693 | do |
| 5694 | IFS=$as_save_IFS |
| 5695 | case $as_dir in #((( |
| 5696 | '') as_dir=./ ;; |
| 5697 | */) ;; |
| 5698 | *) as_dir=$as_dir/ ;; |
| 5699 | esac |
| 5700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5701 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5702 | ac_cv_prog_ac_ct_AR="ar" |
| 5703 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5704 | break 2 |
| 5705 | fi |
| 5706 | done |
| 5707 | done |
| 5708 | IFS=$as_save_IFS |
| 5709 | |
| 5710 | fi ;; |
| 5711 | esac |
| 5712 | fi |
| 5713 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5714 | if test -n "$ac_ct_AR"; then |
| 5715 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5716 | printf "%s\n" "$ac_ct_AR" >&6; } |
| 5717 | else |
| 5718 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5719 | printf "%s\n" "no" >&6; } |
| 5720 | fi |
| 5721 | |
| 5722 | if test "x$ac_ct_AR" = x; then |
| 5723 | AR="" |
| 5724 | else |
| 5725 | case $cross_compiling:$ac_tool_warned in |
| 5726 | yes:) |
| 5727 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5728 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5729 | ac_tool_warned=yes ;; |
| 5730 | esac |
| 5731 | AR=$ac_ct_AR |
| 5732 | fi |
| 5733 | else |
| 5734 | AR="$ac_cv_prog_AR" |
| 5735 | fi |
| 5736 | |
| 5737 | STLIB_LD='${AR} cr' |
| 5738 | LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" |
| 5739 | PLAT_OBJS="" |
| 5740 | PLAT_SRCS="" |
| 5741 | LDAIX_SRC="" |
| 5742 | if test "x${SHLIB_VERSION}" = x |
| 5743 | then : |
| 5744 | SHLIB_VERSION=".1.0" |
| 5745 | else case e in #( |
| 5746 | e) SHLIB_VERSION=".${SHLIB_VERSION}" ;; |
| 5747 | esac |
| 5748 | fi |
| 5749 | case $system in |
| 5750 | AIX-*) |
| 5751 | if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" |
| 5752 | then : |
| 5753 | |
| 5754 | # AIX requires the _r compiler when gcc isn't being used |
| 5755 | case "${CC}" in |
| 5756 | *_r|*_r\ *) |
| 5757 | # ok ... |
| 5758 | ;; |
| 5759 | *) |
| 5760 | # Make sure only first arg gets _r |
| 5761 | CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` |
| 5762 | ;; |
| 5763 | esac |
| 5764 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 |
| 5765 | printf "%s\n" "Using $CC for compiling with threads" >&6; } |
| 5766 | |
| 5767 | fi |
| 5768 | LIBS="$LIBS -lc" |
| 5769 | SHLIB_CFLAGS="" |
| 5770 | SHLIB_SUFFIX=".so" |
| 5771 | |
| 5772 | DL_OBJS="tclLoadDl.o" |
| 5773 | LD_LIBRARY_PATH_VAR="LIBPATH" |
| 5774 | |
| 5775 | # ldAix No longer needed with use of -bexpall/-brtl |
| 5776 | # but some extensions may still reference it |
| 5777 | LDAIX_SRC='$(UNIX_DIR)/ldAix' |
| 5778 | |
| 5779 | # Check to enable 64-bit flags for compiler/linker |
| 5780 | if test "$do64bit" = yes |
| 5781 | then : |
| 5782 | |
| 5783 | if test "$GCC" = yes |
| 5784 | then : |
| 5785 | |
| 5786 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
| 5787 | printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
| 5788 | |
| 5789 | else case e in #( |
| 5790 | e) |
| 5791 | do64bit_ok=yes |
| 5792 | CFLAGS="$CFLAGS -q64" |
| 5793 | LDFLAGS_ARCH="-q64" |
| 5794 | RANLIB="${RANLIB} -X64" |
| 5795 | AR="${AR} -X64" |
| 5796 | SHLIB_LD_FLAGS="-b64" |
| 5797 | ;; |
| 5798 | esac |
| 5799 | fi |
| 5800 | |
| 5801 | fi |
| 5802 | |
| 5803 | if test "`uname -m`" = ia64 |
| 5804 | then : |
| 5805 | |
| 5806 | # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC |
| 5807 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
| 5808 | # AIX-5 has dl* in libc.so |
| 5809 | DL_LIBS="" |
| 5810 | if test "$GCC" = yes |
| 5811 | then : |
| 5812 | |
| 5813 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
| 5814 | |
| 5815 | else case e in #( |
| 5816 | e) |
| 5817 | CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' |
| 5818 | ;; |
| 5819 | esac |
| 5820 | fi |
| 5821 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
| 5822 | |
| 5823 | else case e in #( |
| 5824 | e) |
| 5825 | if test "$GCC" = yes |
| 5826 | then : |
| 5827 | |
| 5828 | SHLIB_LD='${CC} -shared -Wl,-bexpall' |
| 5829 | |
| 5830 | else case e in #( |
| 5831 | e) |
| 5832 | SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" |
| 5833 | LDFLAGS="$LDFLAGS -brtl" |
| 5834 | ;; |
| 5835 | esac |
| 5836 | fi |
| 5837 | SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" |
| 5838 | DL_LIBS="-ldl" |
| 5839 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
| 5840 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 5841 | ;; |
| 5842 | esac |
| 5843 | fi |
| 5844 | ;; |
| 5845 | BeOS*) |
| 5846 | SHLIB_CFLAGS="-fPIC" |
| 5847 | SHLIB_LD='${CC} -nostart' |
| 5848 | SHLIB_SUFFIX=".so" |
| 5849 | DL_OBJS="tclLoadDl.o" |
| 5850 | DL_LIBS="-ldl" |
| 5851 | |
| 5852 | #----------------------------------------------------------- |
| 5853 | # Check for inet_ntoa in -lbind, for BeOS (which also needs |
| 5854 | # -lsocket, even if the network functions are in -lnet which |
| 5855 | # is always linked to, for compatibility. |
| 5856 | #----------------------------------------------------------- |
| 5857 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 |
| 5858 | printf %s "checking for inet_ntoa in -lbind... " >&6; } |
| 5859 | if test ${ac_cv_lib_bind_inet_ntoa+y} |
| 5860 | then : |
| 5861 | printf %s "(cached) " >&6 |
| 5862 | else case e in #( |
| 5863 | e) ac_check_lib_save_LIBS=$LIBS |
| 5864 | LIBS="-lbind $LIBS" |
| 5865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5866 | /* end confdefs.h. */ |
| 5867 | |
| 5868 | /* Override any GCC internal prototype to avoid an error. |
| 5869 | Use char because int might match the return type of a GCC |
| 5870 | builtin and then its argument prototype would still apply. |
| 5871 | The 'extern "C"' is for builds by C++ compilers; |
| 5872 | although this is not generally supported in C code supporting it here |
| 5873 | has little cost and some practical benefit (sr 110532). */ |
| 5874 | #ifdef __cplusplus |
| 5875 | extern "C" |
| 5876 | #endif |
| 5877 | char inet_ntoa (void); |
| 5878 | int |
| 5879 | main (void) |
| 5880 | { |
| 5881 | return inet_ntoa (); |
| 5882 | ; |
| 5883 | return 0; |
| 5884 | } |
| 5885 | _ACEOF |
| 5886 | if ac_fn_c_try_link "$LINENO" |
| 5887 | then : |
| 5888 | ac_cv_lib_bind_inet_ntoa=yes |
| 5889 | else case e in #( |
| 5890 | e) ac_cv_lib_bind_inet_ntoa=no ;; |
| 5891 | esac |
| 5892 | fi |
| 5893 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 5894 | conftest$ac_exeext conftest.$ac_ext |
| 5895 | LIBS=$ac_check_lib_save_LIBS ;; |
| 5896 | esac |
| 5897 | fi |
| 5898 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 |
| 5899 | printf "%s\n" "$ac_cv_lib_bind_inet_ntoa" >&6; } |
| 5900 | if test "x$ac_cv_lib_bind_inet_ntoa" = xyes |
| 5901 | then : |
| 5902 | LIBS="$LIBS -lbind -lsocket" |
| 5903 | fi |
| 5904 | |
| 5905 | ;; |
| 5906 | BSD/OS-2.1*|BSD/OS-3*) |
| 5907 | SHLIB_CFLAGS="" |
| 5908 | SHLIB_LD="shlicc -r" |
| 5909 | SHLIB_SUFFIX=".so" |
| 5910 | DL_OBJS="tclLoadDl.o" |
| 5911 | DL_LIBS="-ldl" |
| 5912 | CC_SEARCH_FLAGS="" |
| 5913 | LD_SEARCH_FLAGS="" |
| 5914 | ;; |
| 5915 | BSD/OS-4.*) |
| 5916 | SHLIB_CFLAGS="-export-dynamic -fPIC" |
| 5917 | SHLIB_LD='${CC} -shared' |
| 5918 | SHLIB_SUFFIX=".so" |
| 5919 | DL_OBJS="tclLoadDl.o" |
| 5920 | DL_LIBS="-ldl" |
| 5921 | LDFLAGS="$LDFLAGS -export-dynamic" |
| 5922 | CC_SEARCH_FLAGS="" |
| 5923 | LD_SEARCH_FLAGS="" |
| 5924 | ;; |
| 5925 | CYGWIN_*|MINGW32_*|MSYS_*) |
| 5926 | SHLIB_CFLAGS="-fno-common" |
| 5927 | SHLIB_LD='${CC} -shared' |
| 5928 | SHLIB_SUFFIX=".dll" |
| 5929 | DL_OBJS="tclLoadDl.o" |
| 5930 | PLAT_OBJS='${CYGWIN_OBJS}' |
| 5931 | PLAT_SRCS='${CYGWIN_SRCS}' |
| 5932 | DL_LIBS="-ldl" |
| 5933 | CC_SEARCH_FLAGS="" |
| 5934 | LD_SEARCH_FLAGS="" |
| 5935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Cygwin version of gcc" >&5 |
| 5936 | printf %s "checking for Cygwin version of gcc... " >&6; } |
| 5937 | if test ${ac_cv_cygwin+y} |
| 5938 | then : |
| 5939 | printf %s "(cached) " >&6 |
| 5940 | else case e in #( |
| 5941 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5942 | /* end confdefs.h. */ |
| 5943 | |
| 5944 | #ifdef __CYGWIN__ |
| 5945 | #error cygwin |
| 5946 | #endif |
| 5947 | |
| 5948 | int |
| 5949 | main (void) |
| 5950 | { |
| 5951 | |
| 5952 | ; |
| 5953 | return 0; |
| 5954 | } |
| 5955 | _ACEOF |
| 5956 | if ac_fn_c_try_compile "$LINENO" |
| 5957 | then : |
| 5958 | ac_cv_cygwin=no |
| 5959 | else case e in #( |
| 5960 | e) ac_cv_cygwin=yes ;; |
| 5961 | esac |
| 5962 | fi |
| 5963 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5964 | ;; |
| 5965 | esac |
| 5966 | fi |
| 5967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cygwin" >&5 |
| 5968 | printf "%s\n" "$ac_cv_cygwin" >&6; } |
| 5969 | if test "$ac_cv_cygwin" = "no"; then |
| 5970 | as_fn_error $? "${CC} is not a cygwin compiler." "$LINENO" 5 |
| 5971 | fi |
| 5972 | if test "x${TCL_THREADS}" = "x0"; then |
| 5973 | as_fn_error $? "CYGWIN compile is only supported with --enable-threads" "$LINENO" 5 |
| 5974 | fi |
| 5975 | do64bit_ok=yes |
| 5976 | if test "x${SHARED_BUILD}" = "x1"; then |
| 5977 | echo "running cd ../win; ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args --enable-64bit --host=x86_64-w64-mingw32" |
| 5978 | # The eval makes quoting arguments work. |
| 5979 | if cd ../win; eval ${CONFIG_SHELL-/bin/sh} ./configure $ac_configure_args --enable-64bit --host=x86_64-w64-mingw32; cd ../unix |
| 5980 | then : |
| 5981 | else |
| 5982 | { echo "configure: error: configure failed for ../win" 1>&2; exit 1; } |
| 5983 | fi |
| 5984 | fi |
| 5985 | ;; |
| 5986 | dgux*) |
| 5987 | SHLIB_CFLAGS="-K PIC" |
| 5988 | SHLIB_LD='${CC} -G' |
| 5989 | SHLIB_LD_LIBS="" |
| 5990 | SHLIB_SUFFIX=".so" |
| 5991 | DL_OBJS="tclLoadDl.o" |
| 5992 | DL_LIBS="-ldl" |
| 5993 | CC_SEARCH_FLAGS="" |
| 5994 | LD_SEARCH_FLAGS="" |
| 5995 | ;; |
| 5996 | Haiku*) |
| 5997 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
| 5998 | SHLIB_CFLAGS="-fPIC" |
| 5999 | SHLIB_SUFFIX=".so" |
| 6000 | SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' |
| 6001 | DL_OBJS="tclLoadDl.o" |
| 6002 | DL_LIBS="-lroot" |
| 6003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5 |
| 6004 | printf %s "checking for inet_ntoa in -lnetwork... " >&6; } |
| 6005 | if test ${ac_cv_lib_network_inet_ntoa+y} |
| 6006 | then : |
| 6007 | printf %s "(cached) " >&6 |
| 6008 | else case e in #( |
| 6009 | e) ac_check_lib_save_LIBS=$LIBS |
| 6010 | LIBS="-lnetwork $LIBS" |
| 6011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6012 | /* end confdefs.h. */ |
| 6013 | |
| 6014 | /* Override any GCC internal prototype to avoid an error. |
| 6015 | Use char because int might match the return type of a GCC |
| 6016 | builtin and then its argument prototype would still apply. |
| 6017 | The 'extern "C"' is for builds by C++ compilers; |
| 6018 | although this is not generally supported in C code supporting it here |
| 6019 | has little cost and some practical benefit (sr 110532). */ |
| 6020 | #ifdef __cplusplus |
| 6021 | extern "C" |
| 6022 | #endif |
| 6023 | char inet_ntoa (void); |
| 6024 | int |
| 6025 | main (void) |
| 6026 | { |
| 6027 | return inet_ntoa (); |
| 6028 | ; |
| 6029 | return 0; |
| 6030 | } |
| 6031 | _ACEOF |
| 6032 | if ac_fn_c_try_link "$LINENO" |
| 6033 | then : |
| 6034 | ac_cv_lib_network_inet_ntoa=yes |
| 6035 | else case e in #( |
| 6036 | e) ac_cv_lib_network_inet_ntoa=no ;; |
| 6037 | esac |
| 6038 | fi |
| 6039 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6040 | conftest$ac_exeext conftest.$ac_ext |
| 6041 | LIBS=$ac_check_lib_save_LIBS ;; |
| 6042 | esac |
| 6043 | fi |
| 6044 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5 |
| 6045 | printf "%s\n" "$ac_cv_lib_network_inet_ntoa" >&6; } |
| 6046 | if test "x$ac_cv_lib_network_inet_ntoa" = xyes |
| 6047 | then : |
| 6048 | LIBS="$LIBS -lnetwork" |
| 6049 | fi |
| 6050 | |
| 6051 | ;; |
| 6052 | HP-UX-*.11.*) |
| 6053 | # Use updated header definitions where possible |
| 6054 | |
| 6055 | printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
| 6056 | |
| 6057 | |
| 6058 | printf "%s\n" "#define _XOPEN_SOURCE 1" >>confdefs.h |
| 6059 | |
| 6060 | LIBS="$LIBS -lxnet" # Use the XOPEN network library |
| 6061 | |
| 6062 | if test "`uname -m`" = ia64 |
| 6063 | then : |
| 6064 | |
| 6065 | SHLIB_SUFFIX=".so" |
| 6066 | |
| 6067 | else case e in #( |
| 6068 | e) |
| 6069 | SHLIB_SUFFIX=".sl" |
| 6070 | ;; |
| 6071 | esac |
| 6072 | fi |
| 6073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 6074 | printf %s "checking for shl_load in -ldld... " >&6; } |
| 6075 | if test ${ac_cv_lib_dld_shl_load+y} |
| 6076 | then : |
| 6077 | printf %s "(cached) " >&6 |
| 6078 | else case e in #( |
| 6079 | e) ac_check_lib_save_LIBS=$LIBS |
| 6080 | LIBS="-ldld $LIBS" |
| 6081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6082 | /* end confdefs.h. */ |
| 6083 | |
| 6084 | /* Override any GCC internal prototype to avoid an error. |
| 6085 | Use char because int might match the return type of a GCC |
| 6086 | builtin and then its argument prototype would still apply. |
| 6087 | The 'extern "C"' is for builds by C++ compilers; |
| 6088 | although this is not generally supported in C code supporting it here |
| 6089 | has little cost and some practical benefit (sr 110532). */ |
| 6090 | #ifdef __cplusplus |
| 6091 | extern "C" |
| 6092 | #endif |
| 6093 | char shl_load (void); |
| 6094 | int |
| 6095 | main (void) |
| 6096 | { |
| 6097 | return shl_load (); |
| 6098 | ; |
| 6099 | return 0; |
| 6100 | } |
| 6101 | _ACEOF |
| 6102 | if ac_fn_c_try_link "$LINENO" |
| 6103 | then : |
| 6104 | ac_cv_lib_dld_shl_load=yes |
| 6105 | else case e in #( |
| 6106 | e) ac_cv_lib_dld_shl_load=no ;; |
| 6107 | esac |
| 6108 | fi |
| 6109 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6110 | conftest$ac_exeext conftest.$ac_ext |
| 6111 | LIBS=$ac_check_lib_save_LIBS ;; |
| 6112 | esac |
| 6113 | fi |
| 6114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 6115 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 6116 | if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 6117 | then : |
| 6118 | tcl_ok=yes |
| 6119 | else case e in #( |
| 6120 | e) tcl_ok=no ;; |
| 6121 | esac |
| 6122 | fi |
| 6123 | |
| 6124 | if test "$tcl_ok" = yes |
| 6125 | then : |
| 6126 | |
| 6127 | SHLIB_CFLAGS="+z" |
| 6128 | SHLIB_LD="ld -b" |
| 6129 | DL_OBJS="tclLoadShl.o" |
| 6130 | DL_LIBS="-ldld" |
| 6131 | LDFLAGS="$LDFLAGS -Wl,-E" |
| 6132 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
| 6133 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
| 6134 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
| 6135 | |
| 6136 | fi |
| 6137 | if test "$GCC" = yes |
| 6138 | then : |
| 6139 | |
| 6140 | SHLIB_LD='${CC} -shared' |
| 6141 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 6142 | |
| 6143 | else case e in #( |
| 6144 | e) |
| 6145 | CFLAGS="$CFLAGS -z" |
| 6146 | ;; |
| 6147 | esac |
| 6148 | fi |
| 6149 | |
| 6150 | # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc |
| 6151 | #CFLAGS="$CFLAGS +DAportable" |
| 6152 | |
| 6153 | # Check to enable 64-bit flags for compiler/linker |
| 6154 | if test "$do64bit" = "yes" |
| 6155 | then : |
| 6156 | |
| 6157 | if test "$GCC" = yes |
| 6158 | then : |
| 6159 | |
| 6160 | case `${CC} -dumpmachine` in |
| 6161 | hppa64*) |
| 6162 | # 64-bit gcc in use. Fix flags for GNU ld. |
| 6163 | do64bit_ok=yes |
| 6164 | SHLIB_LD='${CC} -shared' |
| 6165 | if test $doRpath = yes |
| 6166 | then : |
| 6167 | |
| 6168 | CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 6169 | fi |
| 6170 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 6171 | ;; |
| 6172 | *) |
| 6173 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
| 6174 | printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
| 6175 | ;; |
| 6176 | esac |
| 6177 | |
| 6178 | else case e in #( |
| 6179 | e) |
| 6180 | do64bit_ok=yes |
| 6181 | CFLAGS="$CFLAGS +DD64" |
| 6182 | LDFLAGS_ARCH="+DD64" |
| 6183 | ;; |
| 6184 | esac |
| 6185 | fi |
| 6186 | |
| 6187 | fi ;; |
| 6188 | HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) |
| 6189 | SHLIB_SUFFIX=".sl" |
| 6190 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 6191 | printf %s "checking for shl_load in -ldld... " >&6; } |
| 6192 | if test ${ac_cv_lib_dld_shl_load+y} |
| 6193 | then : |
| 6194 | printf %s "(cached) " >&6 |
| 6195 | else case e in #( |
| 6196 | e) ac_check_lib_save_LIBS=$LIBS |
| 6197 | LIBS="-ldld $LIBS" |
| 6198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6199 | /* end confdefs.h. */ |
| 6200 | |
| 6201 | /* Override any GCC internal prototype to avoid an error. |
| 6202 | Use char because int might match the return type of a GCC |
| 6203 | builtin and then its argument prototype would still apply. |
| 6204 | The 'extern "C"' is for builds by C++ compilers; |
| 6205 | although this is not generally supported in C code supporting it here |
| 6206 | has little cost and some practical benefit (sr 110532). */ |
| 6207 | #ifdef __cplusplus |
| 6208 | extern "C" |
| 6209 | #endif |
| 6210 | char shl_load (void); |
| 6211 | int |
| 6212 | main (void) |
| 6213 | { |
| 6214 | return shl_load (); |
| 6215 | ; |
| 6216 | return 0; |
| 6217 | } |
| 6218 | _ACEOF |
| 6219 | if ac_fn_c_try_link "$LINENO" |
| 6220 | then : |
| 6221 | ac_cv_lib_dld_shl_load=yes |
| 6222 | else case e in #( |
| 6223 | e) ac_cv_lib_dld_shl_load=no ;; |
| 6224 | esac |
| 6225 | fi |
| 6226 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6227 | conftest$ac_exeext conftest.$ac_ext |
| 6228 | LIBS=$ac_check_lib_save_LIBS ;; |
| 6229 | esac |
| 6230 | fi |
| 6231 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 6232 | printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 6233 | if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 6234 | then : |
| 6235 | tcl_ok=yes |
| 6236 | else case e in #( |
| 6237 | e) tcl_ok=no ;; |
| 6238 | esac |
| 6239 | fi |
| 6240 | |
| 6241 | if test "$tcl_ok" = yes |
| 6242 | then : |
| 6243 | |
| 6244 | SHLIB_CFLAGS="+z" |
| 6245 | SHLIB_LD="ld -b" |
| 6246 | SHLIB_LD_LIBS="" |
| 6247 | DL_OBJS="tclLoadShl.o" |
| 6248 | DL_LIBS="-ldld" |
| 6249 | LDFLAGS="$LDFLAGS -Wl,-E" |
| 6250 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
| 6251 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
| 6252 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
| 6253 | |
| 6254 | fi ;; |
| 6255 | IRIX-5.*) |
| 6256 | SHLIB_CFLAGS="" |
| 6257 | SHLIB_LD="ld -shared -rdata_shared" |
| 6258 | SHLIB_SUFFIX=".so" |
| 6259 | DL_OBJS="tclLoadDl.o" |
| 6260 | DL_LIBS="" |
| 6261 | case " $LIBOBJS " in |
| 6262 | *" mkstemp.$ac_objext "* ) ;; |
| 6263 | *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" |
| 6264 | ;; |
| 6265 | esac |
| 6266 | |
| 6267 | if test $doRpath = yes |
| 6268 | then : |
| 6269 | |
| 6270 | CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 6271 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
| 6272 | fi |
| 6273 | ;; |
| 6274 | IRIX-6.*) |
| 6275 | SHLIB_CFLAGS="" |
| 6276 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
| 6277 | SHLIB_SUFFIX=".so" |
| 6278 | DL_OBJS="tclLoadDl.o" |
| 6279 | DL_LIBS="" |
| 6280 | case " $LIBOBJS " in |
| 6281 | *" mkstemp.$ac_objext "* ) ;; |
| 6282 | *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" |
| 6283 | ;; |
| 6284 | esac |
| 6285 | |
| 6286 | if test $doRpath = yes |
| 6287 | then : |
| 6288 | |
| 6289 | CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 6290 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
| 6291 | fi |
| 6292 | if test "$GCC" = yes |
| 6293 | then : |
| 6294 | |
| 6295 | CFLAGS="$CFLAGS -mabi=n32" |
| 6296 | LDFLAGS="$LDFLAGS -mabi=n32" |
| 6297 | |
| 6298 | else case e in #( |
| 6299 | e) |
| 6300 | case $system in |
| 6301 | IRIX-6.3) |
| 6302 | # Use to build 6.2 compatible binaries on 6.3. |
| 6303 | CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" |
| 6304 | ;; |
| 6305 | *) |
| 6306 | CFLAGS="$CFLAGS -n32" |
| 6307 | ;; |
| 6308 | esac |
| 6309 | LDFLAGS="$LDFLAGS -n32" |
| 6310 | ;; |
| 6311 | esac |
| 6312 | fi |
| 6313 | ;; |
| 6314 | IRIX64-6.*) |
| 6315 | SHLIB_CFLAGS="" |
| 6316 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
| 6317 | SHLIB_SUFFIX=".so" |
| 6318 | DL_OBJS="tclLoadDl.o" |
| 6319 | DL_LIBS="" |
| 6320 | case " $LIBOBJS " in |
| 6321 | *" mkstemp.$ac_objext "* ) ;; |
| 6322 | *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" |
| 6323 | ;; |
| 6324 | esac |
| 6325 | |
| 6326 | if test $doRpath = yes |
| 6327 | then : |
| 6328 | |
| 6329 | CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 6330 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
| 6331 | fi |
| 6332 | |
| 6333 | # Check to enable 64-bit flags for compiler/linker |
| 6334 | |
| 6335 | if test "$do64bit" = yes |
| 6336 | then : |
| 6337 | |
| 6338 | if test "$GCC" = yes |
| 6339 | then : |
| 6340 | |
| 6341 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 |
| 6342 | printf "%s\n" "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} |
| 6343 | |
| 6344 | else case e in #( |
| 6345 | e) |
| 6346 | do64bit_ok=yes |
| 6347 | SHLIB_LD="ld -64 -shared -rdata_shared" |
| 6348 | CFLAGS="$CFLAGS -64" |
| 6349 | LDFLAGS_ARCH="-64" |
| 6350 | ;; |
| 6351 | esac |
| 6352 | fi |
| 6353 | |
| 6354 | fi |
| 6355 | ;; |
| 6356 | Linux*|GNU*|NetBSD-Debian|DragonFly-*|FreeBSD-*) |
| 6357 | SHLIB_CFLAGS="-fPIC -fno-common" |
| 6358 | SHLIB_SUFFIX=".so" |
| 6359 | |
| 6360 | CFLAGS_OPTIMIZE="-O2" |
| 6361 | # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings |
| 6362 | # when you inline the string and math operations. Turn this off to |
| 6363 | # get rid of the warnings. |
| 6364 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" |
| 6365 | |
| 6366 | SHLIB_LD='${CC} ${CFLAGS} ${LDFLAGS} -shared' |
| 6367 | DL_OBJS="tclLoadDl.o" |
| 6368 | DL_LIBS="-ldl" |
| 6369 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
| 6370 | |
| 6371 | case $system in |
| 6372 | DragonFly-*|FreeBSD-*) |
| 6373 | if test "${TCL_THREADS}" = "1" |
| 6374 | then : |
| 6375 | |
| 6376 | # The -pthread needs to go in the LDFLAGS, not LIBS |
| 6377 | LIBS=`echo $LIBS | sed s/-pthread//` |
| 6378 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 6379 | LDFLAGS="$LDFLAGS $PTHREAD_LIBS" |
| 6380 | fi |
| 6381 | ;; |
| 6382 | esac |
| 6383 | |
| 6384 | if test $doRpath = yes |
| 6385 | then : |
| 6386 | |
| 6387 | CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 6388 | fi |
| 6389 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 6390 | if test "`uname -m`" = "alpha" |
| 6391 | then : |
| 6392 | CFLAGS="$CFLAGS -mieee" |
| 6393 | fi |
| 6394 | if test $do64bit = yes |
| 6395 | then : |
| 6396 | |
| 6397 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 |
| 6398 | printf %s "checking if compiler accepts -m64 flag... " >&6; } |
| 6399 | if test ${tcl_cv_cc_m64+y} |
| 6400 | then : |
| 6401 | printf %s "(cached) " >&6 |
| 6402 | else case e in #( |
| 6403 | e) |
| 6404 | hold_cflags=$CFLAGS |
| 6405 | CFLAGS="$CFLAGS -m64" |
| 6406 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6407 | /* end confdefs.h. */ |
| 6408 | |
| 6409 | int |
| 6410 | main (void) |
| 6411 | { |
| 6412 | |
| 6413 | ; |
| 6414 | return 0; |
| 6415 | } |
| 6416 | _ACEOF |
| 6417 | if ac_fn_c_try_link "$LINENO" |
| 6418 | then : |
| 6419 | tcl_cv_cc_m64=yes |
| 6420 | else case e in #( |
| 6421 | e) tcl_cv_cc_m64=no ;; |
| 6422 | esac |
| 6423 | fi |
| 6424 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6425 | conftest$ac_exeext conftest.$ac_ext |
| 6426 | CFLAGS=$hold_cflags ;; |
| 6427 | esac |
| 6428 | fi |
| 6429 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 |
| 6430 | printf "%s\n" "$tcl_cv_cc_m64" >&6; } |
| 6431 | if test $tcl_cv_cc_m64 = yes |
| 6432 | then : |
| 6433 | |
| 6434 | CFLAGS="$CFLAGS -m64" |
| 6435 | do64bit_ok=yes |
| 6436 | |
| 6437 | fi |
| 6438 | |
| 6439 | fi |
| 6440 | |
| 6441 | # The combo of gcc + glibc has a bug related to inlining of |
| 6442 | # functions like strtod(). The -fno-builtin flag should address |
| 6443 | # this problem but it does not work. The -fno-inline flag is kind |
| 6444 | # of overkill but it works. Disable inlining only when one of the |
| 6445 | # files in compat/*.c is being linked in. |
| 6446 | |
| 6447 | if test x"${USE_COMPAT}" != x |
| 6448 | then : |
| 6449 | CFLAGS="$CFLAGS -fno-inline" |
| 6450 | fi |
| 6451 | ;; |
| 6452 | Lynx*) |
| 6453 | SHLIB_CFLAGS="-fPIC" |
| 6454 | SHLIB_SUFFIX=".so" |
| 6455 | CFLAGS_OPTIMIZE=-02 |
| 6456 | SHLIB_LD='${CC} -shared' |
| 6457 | DL_OBJS="tclLoadDl.o" |
| 6458 | DL_LIBS="-mshared -ldl" |
| 6459 | LD_FLAGS="-Wl,--export-dynamic" |
| 6460 | if test $doRpath = yes |
| 6461 | then : |
| 6462 | |
| 6463 | CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 6464 | LD_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 6465 | fi |
| 6466 | ;; |
| 6467 | MP-RAS-02*) |
| 6468 | SHLIB_CFLAGS="-K PIC" |
| 6469 | SHLIB_LD='${CC} -G' |
| 6470 | SHLIB_LD_LIBS="" |
| 6471 | SHLIB_SUFFIX=".so" |
| 6472 | DL_OBJS="tclLoadDl.o" |
| 6473 | DL_LIBS="-ldl" |
| 6474 | CC_SEARCH_FLAGS="" |
| 6475 | LD_SEARCH_FLAGS="" |
| 6476 | ;; |
| 6477 | MP-RAS-*) |
| 6478 | SHLIB_CFLAGS="-K PIC" |
| 6479 | SHLIB_LD='${CC} -G' |
| 6480 | SHLIB_LD_LIBS="" |
| 6481 | SHLIB_SUFFIX=".so" |
| 6482 | DL_OBJS="tclLoadDl.o" |
| 6483 | DL_LIBS="-ldl" |
| 6484 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
| 6485 | CC_SEARCH_FLAGS="" |
| 6486 | LD_SEARCH_FLAGS="" |
| 6487 | ;; |
| 6488 | OpenBSD-*) |
| 6489 | arch=`arch -s` |
| 6490 | case "$arch" in |
| 6491 | alpha|sparc64) |
| 6492 | SHLIB_CFLAGS="-fPIC" |
| 6493 | ;; |
| 6494 | *) |
| 6495 | SHLIB_CFLAGS="-fpic" |
| 6496 | ;; |
| 6497 | esac |
| 6498 | SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared' |
| 6499 | SHLIB_SUFFIX=".so" |
| 6500 | DL_OBJS="tclLoadDl.o" |
| 6501 | DL_LIBS="" |
| 6502 | if test $doRpath = yes |
| 6503 | then : |
| 6504 | |
| 6505 | CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 6506 | fi |
| 6507 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 6508 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}' |
| 6509 | LDFLAGS="-Wl,-export-dynamic" |
| 6510 | CFLAGS_OPTIMIZE="-O2" |
| 6511 | if test "${TCL_THREADS}" = "1" |
| 6512 | then : |
| 6513 | |
| 6514 | # On OpenBSD: Compile with -pthread |
| 6515 | # Don't link with -lpthread |
| 6516 | LIBS=`echo $LIBS | sed s/-lpthread//` |
| 6517 | CFLAGS="$CFLAGS -pthread" |
| 6518 | |
| 6519 | fi |
| 6520 | # OpenBSD doesn't do version numbers with dots. |
| 6521 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' |
| 6522 | TCL_LIB_VERSIONS_OK=nodots |
| 6523 | ;; |
| 6524 | NetBSD-*) |
| 6525 | # NetBSD has ELF and can use 'cc -shared' to build shared libs |
| 6526 | SHLIB_CFLAGS="-fPIC" |
| 6527 | SHLIB_LD='${CC} ${SHLIB_CFLAGS} -shared' |
| 6528 | SHLIB_SUFFIX=".so" |
| 6529 | DL_OBJS="tclLoadDl.o" |
| 6530 | DL_LIBS="" |
| 6531 | LDFLAGS="$LDFLAGS -export-dynamic" |
| 6532 | if test $doRpath = yes |
| 6533 | then : |
| 6534 | |
| 6535 | CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 6536 | fi |
| 6537 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 6538 | if test "${TCL_THREADS}" = "1" |
| 6539 | then : |
| 6540 | |
| 6541 | # The -pthread needs to go in the CFLAGS, not LIBS |
| 6542 | LIBS=`echo $LIBS | sed s/-pthread//` |
| 6543 | CFLAGS="$CFLAGS -pthread" |
| 6544 | LDFLAGS="$LDFLAGS -pthread" |
| 6545 | |
| 6546 | fi |
| 6547 | ;; |
| 6548 | Darwin-*) |
| 6549 | CFLAGS_OPTIMIZE="-O2" |
| 6550 | SHLIB_CFLAGS="-fno-common" |
| 6551 | # To avoid discrepancies between what headers configure sees during |
| 6552 | # preprocessing tests and compiling tests, move any -isysroot and |
| 6553 | # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: |
| 6554 | CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ |
| 6555 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
| 6556 | if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" |
| 6557 | CFLAGS="`echo " ${CFLAGS}" | \ |
| 6558 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
| 6559 | if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" |
| 6560 | if test $do64bit = yes |
| 6561 | then : |
| 6562 | |
| 6563 | case `arch` in |
| 6564 | ppc) |
| 6565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 |
| 6566 | printf %s "checking if compiler accepts -arch ppc64 flag... " >&6; } |
| 6567 | if test ${tcl_cv_cc_arch_ppc64+y} |
| 6568 | then : |
| 6569 | printf %s "(cached) " >&6 |
| 6570 | else case e in #( |
| 6571 | e) |
| 6572 | hold_cflags=$CFLAGS |
| 6573 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
| 6574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6575 | /* end confdefs.h. */ |
| 6576 | |
| 6577 | int |
| 6578 | main (void) |
| 6579 | { |
| 6580 | |
| 6581 | ; |
| 6582 | return 0; |
| 6583 | } |
| 6584 | _ACEOF |
| 6585 | if ac_fn_c_try_link "$LINENO" |
| 6586 | then : |
| 6587 | tcl_cv_cc_arch_ppc64=yes |
| 6588 | else case e in #( |
| 6589 | e) tcl_cv_cc_arch_ppc64=no ;; |
| 6590 | esac |
| 6591 | fi |
| 6592 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6593 | conftest$ac_exeext conftest.$ac_ext |
| 6594 | CFLAGS=$hold_cflags ;; |
| 6595 | esac |
| 6596 | fi |
| 6597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 |
| 6598 | printf "%s\n" "$tcl_cv_cc_arch_ppc64" >&6; } |
| 6599 | if test $tcl_cv_cc_arch_ppc64 = yes |
| 6600 | then : |
| 6601 | |
| 6602 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
| 6603 | do64bit_ok=yes |
| 6604 | |
| 6605 | fi;; |
| 6606 | i386|x86_64) |
| 6607 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 |
| 6608 | printf %s "checking if compiler accepts -arch x86_64 flag... " >&6; } |
| 6609 | if test ${tcl_cv_cc_arch_x86_64+y} |
| 6610 | then : |
| 6611 | printf %s "(cached) " >&6 |
| 6612 | else case e in #( |
| 6613 | e) |
| 6614 | hold_cflags=$CFLAGS |
| 6615 | CFLAGS="$CFLAGS -arch x86_64" |
| 6616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6617 | /* end confdefs.h. */ |
| 6618 | |
| 6619 | int |
| 6620 | main (void) |
| 6621 | { |
| 6622 | |
| 6623 | ; |
| 6624 | return 0; |
| 6625 | } |
| 6626 | _ACEOF |
| 6627 | if ac_fn_c_try_link "$LINENO" |
| 6628 | then : |
| 6629 | tcl_cv_cc_arch_x86_64=yes |
| 6630 | else case e in #( |
| 6631 | e) tcl_cv_cc_arch_x86_64=no ;; |
| 6632 | esac |
| 6633 | fi |
| 6634 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6635 | conftest$ac_exeext conftest.$ac_ext |
| 6636 | CFLAGS=$hold_cflags ;; |
| 6637 | esac |
| 6638 | fi |
| 6639 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 |
| 6640 | printf "%s\n" "$tcl_cv_cc_arch_x86_64" >&6; } |
| 6641 | if test $tcl_cv_cc_arch_x86_64 = yes |
| 6642 | then : |
| 6643 | |
| 6644 | CFLAGS="$CFLAGS -arch x86_64" |
| 6645 | do64bit_ok=yes |
| 6646 | |
| 6647 | fi;; |
| 6648 | arm64) |
| 6649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch arm64 flag" >&5 |
| 6650 | printf %s "checking if compiler accepts -arch arm64 flag... " >&6; } |
| 6651 | if test ${tcl_cv_cc_arch_arm64+y} |
| 6652 | then : |
| 6653 | printf %s "(cached) " >&6 |
| 6654 | else case e in #( |
| 6655 | e) |
| 6656 | hold_cflags=$CFLAGS |
| 6657 | CFLAGS="$CFLAGS -arch arm64" |
| 6658 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6659 | /* end confdefs.h. */ |
| 6660 | |
| 6661 | int |
| 6662 | main (void) |
| 6663 | { |
| 6664 | |
| 6665 | ; |
| 6666 | return 0; |
| 6667 | } |
| 6668 | _ACEOF |
| 6669 | if ac_fn_c_try_link "$LINENO" |
| 6670 | then : |
| 6671 | tcl_cv_cc_arch_arm64=yes |
| 6672 | else case e in #( |
| 6673 | e) tcl_cv_cc_arch_arm64=no ;; |
| 6674 | esac |
| 6675 | fi |
| 6676 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6677 | conftest$ac_exeext conftest.$ac_ext |
| 6678 | CFLAGS=$hold_cflags ;; |
| 6679 | esac |
| 6680 | fi |
| 6681 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_arm64" >&5 |
| 6682 | printf "%s\n" "$tcl_cv_cc_arch_arm64" >&6; } |
| 6683 | if test $tcl_cv_cc_arch_arm64 = yes |
| 6684 | then : |
| 6685 | |
| 6686 | CFLAGS="$CFLAGS -arch arm64" |
| 6687 | do64bit_ok=yes |
| 6688 | |
| 6689 | fi;; |
| 6690 | *) |
| 6691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 |
| 6692 | printf "%s\n" "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; |
| 6693 | esac |
| 6694 | |
| 6695 | else case e in #( |
| 6696 | e) |
| 6697 | # Check for combined 32-bit and 64-bit fat build |
| 6698 | if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64|arm64) ' \ |
| 6699 | && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) ' |
| 6700 | then : |
| 6701 | |
| 6702 | fat_32_64=yes |
| 6703 | fi |
| 6704 | ;; |
| 6705 | esac |
| 6706 | fi |
| 6707 | SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' |
| 6708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 |
| 6709 | printf %s "checking if ld accepts -single_module flag... " >&6; } |
| 6710 | if test ${tcl_cv_ld_single_module+y} |
| 6711 | then : |
| 6712 | printf %s "(cached) " >&6 |
| 6713 | else case e in #( |
| 6714 | e) |
| 6715 | hold_ldflags=$LDFLAGS |
| 6716 | LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" |
| 6717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6718 | /* end confdefs.h. */ |
| 6719 | |
| 6720 | int |
| 6721 | main (void) |
| 6722 | { |
| 6723 | int i; |
| 6724 | ; |
| 6725 | return 0; |
| 6726 | } |
| 6727 | _ACEOF |
| 6728 | if ac_fn_c_try_link "$LINENO" |
| 6729 | then : |
| 6730 | tcl_cv_ld_single_module=yes |
| 6731 | else case e in #( |
| 6732 | e) tcl_cv_ld_single_module=no ;; |
| 6733 | esac |
| 6734 | fi |
| 6735 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6736 | conftest$ac_exeext conftest.$ac_ext |
| 6737 | LDFLAGS=$hold_ldflags ;; |
| 6738 | esac |
| 6739 | fi |
| 6740 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 |
| 6741 | printf "%s\n" "$tcl_cv_ld_single_module" >&6; } |
| 6742 | if test $tcl_cv_ld_single_module = yes |
| 6743 | then : |
| 6744 | |
| 6745 | SHLIB_LD="${SHLIB_LD} -Wl,-single_module" |
| 6746 | |
| 6747 | fi |
| 6748 | SHLIB_SUFFIX=".dylib" |
| 6749 | DL_OBJS="tclLoadDyld.o" |
| 6750 | DL_LIBS="" |
| 6751 | LDFLAGS="$LDFLAGS -headerpad_max_install_names" |
| 6752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 |
| 6753 | printf %s "checking if ld accepts -search_paths_first flag... " >&6; } |
| 6754 | if test ${tcl_cv_ld_search_paths_first+y} |
| 6755 | then : |
| 6756 | printf %s "(cached) " >&6 |
| 6757 | else case e in #( |
| 6758 | e) |
| 6759 | hold_ldflags=$LDFLAGS |
| 6760 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
| 6761 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6762 | /* end confdefs.h. */ |
| 6763 | |
| 6764 | int |
| 6765 | main (void) |
| 6766 | { |
| 6767 | int i; |
| 6768 | ; |
| 6769 | return 0; |
| 6770 | } |
| 6771 | _ACEOF |
| 6772 | if ac_fn_c_try_link "$LINENO" |
| 6773 | then : |
| 6774 | tcl_cv_ld_search_paths_first=yes |
| 6775 | else case e in #( |
| 6776 | e) tcl_cv_ld_search_paths_first=no ;; |
| 6777 | esac |
| 6778 | fi |
| 6779 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6780 | conftest$ac_exeext conftest.$ac_ext |
| 6781 | LDFLAGS=$hold_ldflags ;; |
| 6782 | esac |
| 6783 | fi |
| 6784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 |
| 6785 | printf "%s\n" "$tcl_cv_ld_search_paths_first" >&6; } |
| 6786 | if test $tcl_cv_ld_search_paths_first = yes |
| 6787 | then : |
| 6788 | |
| 6789 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
| 6790 | |
| 6791 | fi |
| 6792 | if test "$tcl_cv_cc_visibility_hidden" != yes |
| 6793 | then : |
| 6794 | |
| 6795 | |
| 6796 | printf "%s\n" "#define MODULE_SCOPE __private_extern__" >>confdefs.h |
| 6797 | |
| 6798 | tcl_cv_cc_visibility_hidden=yes |
| 6799 | |
| 6800 | fi |
| 6801 | CC_SEARCH_FLAGS="" |
| 6802 | LD_SEARCH_FLAGS="" |
| 6803 | LD_LIBRARY_PATH_VAR="DYLD_FALLBACK_LIBRARY_PATH" |
| 6804 | |
| 6805 | printf "%s\n" "#define MAC_OSX_TCL 1" >>confdefs.h |
| 6806 | |
| 6807 | PLAT_OBJS='${MAC_OSX_OBJS}' |
| 6808 | PLAT_SRCS='${MAC_OSX_SRCS}' |
| 6809 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 |
| 6810 | printf %s "checking whether to use CoreFoundation... " >&6; } |
| 6811 | # Check whether --enable-corefoundation was given. |
| 6812 | if test ${enable_corefoundation+y} |
| 6813 | then : |
| 6814 | enableval=$enable_corefoundation; tcl_corefoundation=$enableval |
| 6815 | else case e in #( |
| 6816 | e) tcl_corefoundation=yes ;; |
| 6817 | esac |
| 6818 | fi |
| 6819 | |
| 6820 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 |
| 6821 | printf "%s\n" "$tcl_corefoundation" >&6; } |
| 6822 | if test $tcl_corefoundation = yes |
| 6823 | then : |
| 6824 | |
| 6825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 |
| 6826 | printf %s "checking for CoreFoundation.framework... " >&6; } |
| 6827 | if test ${tcl_cv_lib_corefoundation+y} |
| 6828 | then : |
| 6829 | printf %s "(cached) " >&6 |
| 6830 | else case e in #( |
| 6831 | e) |
| 6832 | hold_libs=$LIBS |
| 6833 | if test "$fat_32_64" = yes |
| 6834 | then : |
| 6835 | |
| 6836 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
| 6837 | # On Tiger there is no 64-bit CF, so remove 64-bit |
| 6838 | # archs from CFLAGS et al. while testing for |
| 6839 | # presence of CF. 64-bit CF is disabled in |
| 6840 | # tclUnixPort.h if necessary. |
| 6841 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' |
| 6842 | done |
| 6843 | fi |
| 6844 | LIBS="$LIBS -framework CoreFoundation" |
| 6845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6846 | /* end confdefs.h. */ |
| 6847 | #include <CoreFoundation/CoreFoundation.h> |
| 6848 | int |
| 6849 | main (void) |
| 6850 | { |
| 6851 | CFBundleRef b = CFBundleGetMainBundle(); |
| 6852 | ; |
| 6853 | return 0; |
| 6854 | } |
| 6855 | _ACEOF |
| 6856 | if ac_fn_c_try_link "$LINENO" |
| 6857 | then : |
| 6858 | tcl_cv_lib_corefoundation=yes |
| 6859 | else case e in #( |
| 6860 | e) tcl_cv_lib_corefoundation=no ;; |
| 6861 | esac |
| 6862 | fi |
| 6863 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6864 | conftest$ac_exeext conftest.$ac_ext |
| 6865 | if test "$fat_32_64" = yes |
| 6866 | then : |
| 6867 | |
| 6868 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
| 6869 | eval $v'="$hold_'$v'"' |
| 6870 | done |
| 6871 | fi |
| 6872 | LIBS=$hold_libs ;; |
| 6873 | esac |
| 6874 | fi |
| 6875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 |
| 6876 | printf "%s\n" "$tcl_cv_lib_corefoundation" >&6; } |
| 6877 | if test $tcl_cv_lib_corefoundation = yes |
| 6878 | then : |
| 6879 | |
| 6880 | LIBS="$LIBS -framework CoreFoundation" |
| 6881 | |
| 6882 | printf "%s\n" "#define HAVE_COREFOUNDATION 1" >>confdefs.h |
| 6883 | |
| 6884 | |
| 6885 | else case e in #( |
| 6886 | e) tcl_corefoundation=no ;; |
| 6887 | esac |
| 6888 | fi |
| 6889 | if test "$fat_32_64" = yes -a $tcl_corefoundation = yes |
| 6890 | then : |
| 6891 | |
| 6892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 |
| 6893 | printf %s "checking for 64-bit CoreFoundation... " >&6; } |
| 6894 | if test ${tcl_cv_lib_corefoundation_64+y} |
| 6895 | then : |
| 6896 | printf %s "(cached) " >&6 |
| 6897 | else case e in #( |
| 6898 | e) |
| 6899 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
| 6900 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' |
| 6901 | done |
| 6902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6903 | /* end confdefs.h. */ |
| 6904 | #include <CoreFoundation/CoreFoundation.h> |
| 6905 | int |
| 6906 | main (void) |
| 6907 | { |
| 6908 | CFBundleRef b = CFBundleGetMainBundle(); |
| 6909 | ; |
| 6910 | return 0; |
| 6911 | } |
| 6912 | _ACEOF |
| 6913 | if ac_fn_c_try_link "$LINENO" |
| 6914 | then : |
| 6915 | tcl_cv_lib_corefoundation_64=yes |
| 6916 | else case e in #( |
| 6917 | e) tcl_cv_lib_corefoundation_64=no ;; |
| 6918 | esac |
| 6919 | fi |
| 6920 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 6921 | conftest$ac_exeext conftest.$ac_ext |
| 6922 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
| 6923 | eval $v'="$hold_'$v'"' |
| 6924 | done ;; |
| 6925 | esac |
| 6926 | fi |
| 6927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 |
| 6928 | printf "%s\n" "$tcl_cv_lib_corefoundation_64" >&6; } |
| 6929 | if test $tcl_cv_lib_corefoundation_64 = no |
| 6930 | then : |
| 6931 | |
| 6932 | |
| 6933 | printf "%s\n" "#define NO_COREFOUNDATION_64 1" >>confdefs.h |
| 6934 | |
| 6935 | LDFLAGS="$LDFLAGS -Wl,-no_arch_warnings" |
| 6936 | |
| 6937 | fi |
| 6938 | |
| 6939 | fi |
| 6940 | |
| 6941 | fi |
| 6942 | ;; |
| 6943 | NEXTSTEP-*) |
| 6944 | SHLIB_CFLAGS="" |
| 6945 | SHLIB_LD='${CC} -nostdlib -r' |
| 6946 | SHLIB_LD_LIBS="" |
| 6947 | SHLIB_SUFFIX=".so" |
| 6948 | DL_OBJS="tclLoadNext.o" |
| 6949 | DL_LIBS="" |
| 6950 | CC_SEARCH_FLAGS="" |
| 6951 | LD_SEARCH_FLAGS="" |
| 6952 | ;; |
| 6953 | OS/390-*) |
| 6954 | SHLIB_LD_LIBS="" |
| 6955 | CFLAGS_OPTIMIZE="" # Optimizer is buggy |
| 6956 | |
| 6957 | printf "%s\n" "#define _OE_SOCKETS 1" >>confdefs.h |
| 6958 | |
| 6959 | ;; |
| 6960 | OSF1-1.0|OSF1-1.1|OSF1-1.2) |
| 6961 | # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 |
| 6962 | SHLIB_CFLAGS="" |
| 6963 | # Hack: make package name same as library name |
| 6964 | SHLIB_LD='ld -R -export :' |
| 6965 | SHLIB_LD_LIBS="" |
| 6966 | SHLIB_SUFFIX=".so" |
| 6967 | DL_OBJS="tclLoadOSF.o" |
| 6968 | DL_LIBS="" |
| 6969 | CC_SEARCH_FLAGS="" |
| 6970 | LD_SEARCH_FLAGS="" |
| 6971 | ;; |
| 6972 | OSF1-1.*) |
| 6973 | # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 |
| 6974 | SHLIB_CFLAGS="-fPIC" |
| 6975 | if test "$SHARED_BUILD" = 1 |
| 6976 | then : |
| 6977 | SHLIB_LD="ld -shared" |
| 6978 | else case e in #( |
| 6979 | e) |
| 6980 | SHLIB_LD="ld -non_shared" |
| 6981 | ;; |
| 6982 | esac |
| 6983 | fi |
| 6984 | SHLIB_LD_LIBS="" |
| 6985 | SHLIB_SUFFIX=".so" |
| 6986 | DL_OBJS="tclLoadDl.o" |
| 6987 | DL_LIBS="" |
| 6988 | CC_SEARCH_FLAGS="" |
| 6989 | LD_SEARCH_FLAGS="" |
| 6990 | ;; |
| 6991 | OSF1-V*) |
| 6992 | # Digital OSF/1 |
| 6993 | SHLIB_CFLAGS="" |
| 6994 | if test "$SHARED_BUILD" = 1 |
| 6995 | then : |
| 6996 | |
| 6997 | SHLIB_LD='${CC} -shared' |
| 6998 | |
| 6999 | else case e in #( |
| 7000 | e) |
| 7001 | SHLIB_LD='${CC} -non_shared' |
| 7002 | ;; |
| 7003 | esac |
| 7004 | fi |
| 7005 | SHLIB_SUFFIX=".so" |
| 7006 | DL_OBJS="tclLoadDl.o" |
| 7007 | DL_LIBS="" |
| 7008 | if test $doRpath = yes |
| 7009 | then : |
| 7010 | |
| 7011 | CC_SEARCH_FLAGS='"-Wl,-rpath,${LIB_RUNTIME_DIR}"' |
| 7012 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
| 7013 | fi |
| 7014 | if test "$GCC" = yes |
| 7015 | then : |
| 7016 | CFLAGS="$CFLAGS -mieee" |
| 7017 | else case e in #( |
| 7018 | e) |
| 7019 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" ;; |
| 7020 | esac |
| 7021 | fi |
| 7022 | # see pthread_intro(3) for pthread support on osf1, k.furukawa |
| 7023 | if test "${TCL_THREADS}" = 1 |
| 7024 | then : |
| 7025 | |
| 7026 | CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" |
| 7027 | CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" |
| 7028 | LIBS=`echo $LIBS | sed s/-lpthreads//` |
| 7029 | if test "$GCC" = yes |
| 7030 | then : |
| 7031 | |
| 7032 | LIBS="$LIBS -lpthread -lmach -lexc" |
| 7033 | |
| 7034 | else case e in #( |
| 7035 | e) |
| 7036 | CFLAGS="$CFLAGS -pthread" |
| 7037 | LDFLAGS="$LDFLAGS -pthread" |
| 7038 | ;; |
| 7039 | esac |
| 7040 | fi |
| 7041 | |
| 7042 | fi |
| 7043 | ;; |
| 7044 | QNX-6*) |
| 7045 | # QNX RTP |
| 7046 | # This may work for all QNX, but it was only reported for v6. |
| 7047 | SHLIB_CFLAGS="-fPIC" |
| 7048 | SHLIB_LD="ld -Bshareable -x" |
| 7049 | SHLIB_LD_LIBS="" |
| 7050 | SHLIB_SUFFIX=".so" |
| 7051 | DL_OBJS="tclLoadDl.o" |
| 7052 | # dlopen is in -lc on QNX |
| 7053 | DL_LIBS="" |
| 7054 | CC_SEARCH_FLAGS="" |
| 7055 | LD_SEARCH_FLAGS="" |
| 7056 | ;; |
| 7057 | SCO_SV-3.2*) |
| 7058 | # Note, dlopen is available only on SCO 3.2.5 and greater. However, |
| 7059 | # this test works, since "uname -s" was non-standard in 3.2.4 and |
| 7060 | # below. |
| 7061 | if test "$GCC" = yes |
| 7062 | then : |
| 7063 | |
| 7064 | SHLIB_CFLAGS="-fPIC -melf" |
| 7065 | LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" |
| 7066 | |
| 7067 | else case e in #( |
| 7068 | e) |
| 7069 | SHLIB_CFLAGS="-Kpic -belf" |
| 7070 | LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" |
| 7071 | ;; |
| 7072 | esac |
| 7073 | fi |
| 7074 | SHLIB_LD="ld -G" |
| 7075 | SHLIB_LD_LIBS="" |
| 7076 | SHLIB_SUFFIX=".so" |
| 7077 | DL_OBJS="tclLoadDl.o" |
| 7078 | DL_LIBS="" |
| 7079 | CC_SEARCH_FLAGS="" |
| 7080 | LD_SEARCH_FLAGS="" |
| 7081 | ;; |
| 7082 | SINIX*5.4*) |
| 7083 | SHLIB_CFLAGS="-K PIC" |
| 7084 | SHLIB_LD='${CC} -G' |
| 7085 | SHLIB_LD_LIBS="" |
| 7086 | SHLIB_SUFFIX=".so" |
| 7087 | DL_OBJS="tclLoadDl.o" |
| 7088 | DL_LIBS="-ldl" |
| 7089 | CC_SEARCH_FLAGS="" |
| 7090 | LD_SEARCH_FLAGS="" |
| 7091 | ;; |
| 7092 | SunOS-4*) |
| 7093 | SHLIB_CFLAGS="-PIC" |
| 7094 | SHLIB_LD="ld" |
| 7095 | SHLIB_LD_LIBS="" |
| 7096 | SHLIB_SUFFIX=".so" |
| 7097 | DL_OBJS="tclLoadDl.o" |
| 7098 | DL_LIBS="-ldl" |
| 7099 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
| 7100 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 7101 | |
| 7102 | # SunOS can't handle version numbers with dots in them in library |
| 7103 | # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it |
| 7104 | # requires an extra version number at the end of .so file names. |
| 7105 | # So, the library has to have a name like libtcl75.so.1.0 |
| 7106 | |
| 7107 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so${SHLIB_VERSION}' |
| 7108 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' |
| 7109 | TCL_LIB_VERSIONS_OK=nodots |
| 7110 | ;; |
| 7111 | SunOS-5.[0-6]) |
| 7112 | # Careful to not let 5.10+ fall into this case |
| 7113 | |
| 7114 | # Note: If _REENTRANT isn't defined, then Solaris |
| 7115 | # won't define thread-safe library routines. |
| 7116 | |
| 7117 | |
| 7118 | printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
| 7119 | |
| 7120 | |
| 7121 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 7122 | |
| 7123 | |
| 7124 | SHLIB_CFLAGS="-KPIC" |
| 7125 | SHLIB_SUFFIX=".so" |
| 7126 | DL_OBJS="tclLoadDl.o" |
| 7127 | DL_LIBS="-ldl" |
| 7128 | if test "$GCC" = yes |
| 7129 | then : |
| 7130 | |
| 7131 | SHLIB_LD='${CC} -shared' |
| 7132 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
| 7133 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 7134 | |
| 7135 | else case e in #( |
| 7136 | e) |
| 7137 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
| 7138 | CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
| 7139 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 7140 | ;; |
| 7141 | esac |
| 7142 | fi |
| 7143 | ;; |
| 7144 | SunOS-5*) |
| 7145 | # Note: If _REENTRANT isn't defined, then Solaris |
| 7146 | # won't define thread-safe library routines. |
| 7147 | |
| 7148 | |
| 7149 | printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
| 7150 | |
| 7151 | |
| 7152 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 7153 | |
| 7154 | |
| 7155 | SHLIB_CFLAGS="-KPIC" |
| 7156 | |
| 7157 | # Check to enable 64-bit flags for compiler/linker |
| 7158 | if test "$do64bit" = yes |
| 7159 | then : |
| 7160 | |
| 7161 | arch=`isainfo` |
| 7162 | if test "$arch" = "sparcv9 sparc" |
| 7163 | then : |
| 7164 | |
| 7165 | if test "$GCC" = yes |
| 7166 | then : |
| 7167 | |
| 7168 | if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3 |
| 7169 | then : |
| 7170 | |
| 7171 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 |
| 7172 | printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} |
| 7173 | |
| 7174 | else case e in #( |
| 7175 | e) |
| 7176 | do64bit_ok=yes |
| 7177 | CFLAGS="$CFLAGS -m64 -mcpu=v9" |
| 7178 | LDFLAGS="$LDFLAGS -m64 -mcpu=v9" |
| 7179 | SHLIB_CFLAGS="-fPIC" |
| 7180 | ;; |
| 7181 | esac |
| 7182 | fi |
| 7183 | |
| 7184 | else case e in #( |
| 7185 | e) |
| 7186 | do64bit_ok=yes |
| 7187 | if test "$do64bitVIS" = yes |
| 7188 | then : |
| 7189 | |
| 7190 | CFLAGS="$CFLAGS -xarch=v9a" |
| 7191 | LDFLAGS_ARCH="-xarch=v9a" |
| 7192 | |
| 7193 | else case e in #( |
| 7194 | e) |
| 7195 | CFLAGS="$CFLAGS -xarch=v9" |
| 7196 | LDFLAGS_ARCH="-xarch=v9" |
| 7197 | ;; |
| 7198 | esac |
| 7199 | fi |
| 7200 | # Solaris 64 uses this as well |
| 7201 | #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" |
| 7202 | ;; |
| 7203 | esac |
| 7204 | fi |
| 7205 | |
| 7206 | else case e in #( |
| 7207 | e) if test "$arch" = "amd64 i386" |
| 7208 | then : |
| 7209 | |
| 7210 | if test "$GCC" = yes |
| 7211 | then : |
| 7212 | |
| 7213 | case $system in |
| 7214 | SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) |
| 7215 | do64bit_ok=yes |
| 7216 | CFLAGS="$CFLAGS -m64" |
| 7217 | LDFLAGS="$LDFLAGS -m64";; |
| 7218 | *) |
| 7219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
| 7220 | printf "%s\n" "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; |
| 7221 | esac |
| 7222 | |
| 7223 | else case e in #( |
| 7224 | e) |
| 7225 | do64bit_ok=yes |
| 7226 | case $system in |
| 7227 | SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) |
| 7228 | CFLAGS="$CFLAGS -m64" |
| 7229 | LDFLAGS="$LDFLAGS -m64";; |
| 7230 | *) |
| 7231 | CFLAGS="$CFLAGS -xarch=amd64" |
| 7232 | LDFLAGS="$LDFLAGS -xarch=amd64";; |
| 7233 | esac |
| 7234 | ;; |
| 7235 | esac |
| 7236 | fi |
| 7237 | |
| 7238 | else case e in #( |
| 7239 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 |
| 7240 | printf "%s\n" "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} ;; |
| 7241 | esac |
| 7242 | fi ;; |
| 7243 | esac |
| 7244 | fi |
| 7245 | |
| 7246 | fi |
| 7247 | |
| 7248 | #-------------------------------------------------------------------- |
| 7249 | # On Solaris 5.x i386 with the sunpro compiler we need to link |
| 7250 | # with sunmath to get floating point rounding control |
| 7251 | #-------------------------------------------------------------------- |
| 7252 | if test "$GCC" = yes |
| 7253 | then : |
| 7254 | use_sunmath=no |
| 7255 | else case e in #( |
| 7256 | e) |
| 7257 | arch=`isainfo` |
| 7258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use -lsunmath for fp rounding control" >&5 |
| 7259 | printf %s "checking whether to use -lsunmath for fp rounding control... " >&6; } |
| 7260 | if test "$arch" = "amd64 i386" -o "$arch" = "i386" |
| 7261 | then : |
| 7262 | |
| 7263 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7264 | printf "%s\n" "yes" >&6; } |
| 7265 | MATH_LIBS="-lsunmath $MATH_LIBS" |
| 7266 | ac_fn_c_check_header_compile "$LINENO" "sunmath.h" "ac_cv_header_sunmath_h" "$ac_includes_default" |
| 7267 | if test "x$ac_cv_header_sunmath_h" = xyes |
| 7268 | then : |
| 7269 | |
| 7270 | fi |
| 7271 | |
| 7272 | use_sunmath=yes |
| 7273 | |
| 7274 | else case e in #( |
| 7275 | e) |
| 7276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7277 | printf "%s\n" "no" >&6; } |
| 7278 | use_sunmath=no |
| 7279 | ;; |
| 7280 | esac |
| 7281 | fi |
| 7282 | ;; |
| 7283 | esac |
| 7284 | fi |
| 7285 | SHLIB_SUFFIX=".so" |
| 7286 | DL_OBJS="tclLoadDl.o" |
| 7287 | DL_LIBS="-ldl" |
| 7288 | if test "$GCC" = yes |
| 7289 | then : |
| 7290 | |
| 7291 | SHLIB_LD='${CC} -shared' |
| 7292 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
| 7293 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
| 7294 | if test "$do64bit_ok" = yes |
| 7295 | then : |
| 7296 | |
| 7297 | if test "$arch" = "sparcv9 sparc" |
| 7298 | then : |
| 7299 | |
| 7300 | # We need to specify -static-libgcc or we need to |
| 7301 | # add the path to the sparv9 libgcc. |
| 7302 | SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" |
| 7303 | # for finding sparcv9 libgcc, get the regular libgcc |
| 7304 | # path, remove so name and append 'sparcv9' |
| 7305 | #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." |
| 7306 | #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" |
| 7307 | |
| 7308 | else case e in #( |
| 7309 | e) if test "$arch" = "amd64 i386" |
| 7310 | then : |
| 7311 | |
| 7312 | SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" |
| 7313 | |
| 7314 | fi ;; |
| 7315 | esac |
| 7316 | fi |
| 7317 | |
| 7318 | fi |
| 7319 | |
| 7320 | else case e in #( |
| 7321 | e) |
| 7322 | if test "$use_sunmath" = yes |
| 7323 | then : |
| 7324 | textmode=textoff |
| 7325 | else case e in #( |
| 7326 | e) textmode=text ;; |
| 7327 | esac |
| 7328 | fi |
| 7329 | case $system in |
| 7330 | SunOS-5.[1-9][0-9]*|SunOS-5.[7-9]) |
| 7331 | SHLIB_LD="\${CC} -G -z $textmode \${LDFLAGS}";; |
| 7332 | *) |
| 7333 | SHLIB_LD="/usr/ccs/bin/ld -G -z $textmode";; |
| 7334 | esac |
| 7335 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
| 7336 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
| 7337 | ;; |
| 7338 | esac |
| 7339 | fi |
| 7340 | ;; |
| 7341 | UNIX_SV* | UnixWare-5*) |
| 7342 | SHLIB_CFLAGS="-KPIC" |
| 7343 | SHLIB_LD='${CC} -G' |
| 7344 | SHLIB_LD_LIBS="" |
| 7345 | SHLIB_SUFFIX=".so" |
| 7346 | DL_OBJS="tclLoadDl.o" |
| 7347 | DL_LIBS="-ldl" |
| 7348 | # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers |
| 7349 | # that don't grok the -Bexport option. Test that it does. |
| 7350 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 |
| 7351 | printf %s "checking for ld accepts -Bexport flag... " >&6; } |
| 7352 | if test ${tcl_cv_ld_Bexport+y} |
| 7353 | then : |
| 7354 | printf %s "(cached) " >&6 |
| 7355 | else case e in #( |
| 7356 | e) |
| 7357 | hold_ldflags=$LDFLAGS |
| 7358 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
| 7359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7360 | /* end confdefs.h. */ |
| 7361 | |
| 7362 | int |
| 7363 | main (void) |
| 7364 | { |
| 7365 | int i; |
| 7366 | ; |
| 7367 | return 0; |
| 7368 | } |
| 7369 | _ACEOF |
| 7370 | if ac_fn_c_try_link "$LINENO" |
| 7371 | then : |
| 7372 | tcl_cv_ld_Bexport=yes |
| 7373 | else case e in #( |
| 7374 | e) tcl_cv_ld_Bexport=no ;; |
| 7375 | esac |
| 7376 | fi |
| 7377 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 7378 | conftest$ac_exeext conftest.$ac_ext |
| 7379 | LDFLAGS=$hold_ldflags ;; |
| 7380 | esac |
| 7381 | fi |
| 7382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 |
| 7383 | printf "%s\n" "$tcl_cv_ld_Bexport" >&6; } |
| 7384 | if test $tcl_cv_ld_Bexport = yes |
| 7385 | then : |
| 7386 | |
| 7387 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
| 7388 | |
| 7389 | fi |
| 7390 | CC_SEARCH_FLAGS="" |
| 7391 | LD_SEARCH_FLAGS="" |
| 7392 | ;; |
| 7393 | esac |
| 7394 | |
| 7395 | if test "$do64bit" = yes -a "$do64bit_ok" = no |
| 7396 | then : |
| 7397 | |
| 7398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 |
| 7399 | printf "%s\n" "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} |
| 7400 | |
| 7401 | fi |
| 7402 | |
| 7403 | if test "$do64bit" = yes -a "$do64bit_ok" = yes |
| 7404 | then : |
| 7405 | |
| 7406 | |
| 7407 | printf "%s\n" "#define TCL_CFG_DO64BIT 1" >>confdefs.h |
| 7408 | |
| 7409 | |
| 7410 | fi |
| 7411 | |
| 7412 | |
| 7413 | |
| 7414 | # Step 4: disable dynamic loading if requested via a command-line switch. |
| 7415 | |
| 7416 | # Check whether --enable-load was given. |
| 7417 | if test ${enable_load+y} |
| 7418 | then : |
| 7419 | enableval=$enable_load; tcl_ok=$enableval |
| 7420 | else case e in #( |
| 7421 | e) tcl_ok=yes ;; |
| 7422 | esac |
| 7423 | fi |
| 7424 | |
| 7425 | if test "$tcl_ok" = no |
| 7426 | then : |
| 7427 | DL_OBJS="" |
| 7428 | fi |
| 7429 | |
| 7430 | if test "x$DL_OBJS" != x |
| 7431 | then : |
| 7432 | BUILD_DLTEST="\$(DLTEST_TARGETS)" |
| 7433 | else case e in #( |
| 7434 | e) |
| 7435 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&5 |
| 7436 | printf "%s\n" "$as_me: WARNING: Can't figure out how to do dynamic loading or shared libraries on this system." >&2;} |
| 7437 | SHLIB_CFLAGS="" |
| 7438 | SHLIB_LD="" |
| 7439 | SHLIB_SUFFIX="" |
| 7440 | DL_OBJS="tclLoadNone.o" |
| 7441 | DL_LIBS="" |
| 7442 | LDFLAGS="$LDFLAGS_ORIG" |
| 7443 | CC_SEARCH_FLAGS="" |
| 7444 | LD_SEARCH_FLAGS="" |
| 7445 | BUILD_DLTEST="" |
| 7446 | ;; |
| 7447 | esac |
| 7448 | fi |
| 7449 | LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" |
| 7450 | |
| 7451 | # If we're running gcc, then change the C flags for compiling shared |
| 7452 | # libraries to the right flags for gcc, instead of those for the |
| 7453 | # standard manufacturer compiler. |
| 7454 | |
| 7455 | if test "$DL_OBJS" != "tclLoadNone.o" -a "$GCC" = yes |
| 7456 | then : |
| 7457 | |
| 7458 | case $system in |
| 7459 | AIX-*) ;; |
| 7460 | BSD/OS*) ;; |
| 7461 | CYGWIN_*|MINGW32_*|MSYS_*) ;; |
| 7462 | HP-UX*) ;; |
| 7463 | Darwin-*) ;; |
| 7464 | IRIX*) ;; |
| 7465 | NetBSD-*|OpenBSD-*) ;; |
| 7466 | OSF1-*) ;; |
| 7467 | SCO_SV-3.2*) ;; |
| 7468 | *) SHLIB_CFLAGS="-fPIC" ;; |
| 7469 | esac |
| 7470 | fi |
| 7471 | |
| 7472 | if test "$tcl_cv_cc_visibility_hidden" != yes |
| 7473 | then : |
| 7474 | |
| 7475 | |
| 7476 | printf "%s\n" "#define MODULE_SCOPE extern" >>confdefs.h |
| 7477 | |
| 7478 | |
| 7479 | fi |
| 7480 | |
| 7481 | if test "$SHARED_LIB_SUFFIX" = "" |
| 7482 | then : |
| 7483 | |
| 7484 | SHARED_LIB_SUFFIX='${VERSION}${SHLIB_SUFFIX}' |
| 7485 | fi |
| 7486 | if test "$UNSHARED_LIB_SUFFIX" = "" |
| 7487 | then : |
| 7488 | |
| 7489 | UNSHARED_LIB_SUFFIX='${VERSION}.a' |
| 7490 | fi |
| 7491 | DLL_INSTALL_DIR="\$(LIB_INSTALL_DIR)" |
| 7492 | |
| 7493 | if test "${SHARED_BUILD}" = 1 -a "${SHLIB_SUFFIX}" != "" |
| 7494 | then : |
| 7495 | |
| 7496 | LIB_SUFFIX=${SHARED_LIB_SUFFIX} |
| 7497 | MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${LDFLAGS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' |
| 7498 | if test "${SHLIB_SUFFIX}" = ".dll" |
| 7499 | then : |
| 7500 | |
| 7501 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(BIN_INSTALL_DIR)/$(LIB_FILE)"' |
| 7502 | DLL_INSTALL_DIR="\$(BIN_INSTALL_DIR)" |
| 7503 | |
| 7504 | else case e in #( |
| 7505 | e) |
| 7506 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"' |
| 7507 | ;; |
| 7508 | esac |
| 7509 | fi |
| 7510 | |
| 7511 | else case e in #( |
| 7512 | e) |
| 7513 | LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} |
| 7514 | |
| 7515 | if test "$RANLIB" = "" |
| 7516 | then : |
| 7517 | |
| 7518 | MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' |
| 7519 | |
| 7520 | else case e in #( |
| 7521 | e) |
| 7522 | MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' |
| 7523 | ;; |
| 7524 | esac |
| 7525 | fi |
| 7526 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) "$(LIB_INSTALL_DIR)/$(LIB_FILE)"' |
| 7527 | ;; |
| 7528 | esac |
| 7529 | fi |
| 7530 | |
| 7531 | # Stub lib does not depend on shared/static configuration |
| 7532 | if test "$RANLIB" = "" |
| 7533 | then : |
| 7534 | |
| 7535 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' |
| 7536 | |
| 7537 | else case e in #( |
| 7538 | e) |
| 7539 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' |
| 7540 | ;; |
| 7541 | esac |
| 7542 | fi |
| 7543 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) "$(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)"' |
| 7544 | |
| 7545 | # Define TCL_LIBS now that we know what DL_LIBS is. |
| 7546 | # The trick here is that we don't want to change the value of TCL_LIBS if |
| 7547 | # it is already set when tclConfig.sh had been loaded by Tk. |
| 7548 | if test "x${TCL_LIBS}" = x |
| 7549 | then : |
| 7550 | |
| 7551 | TCL_LIBS="${DL_LIBS} ${LIBS} ${MATH_LIBS}" |
| 7552 | fi |
| 7553 | |
| 7554 | |
| 7555 | # See if the compiler supports casting to a union type. |
| 7556 | # This is used to stop gcc from printing a compiler |
| 7557 | # warning when initializing a union member. |
| 7558 | |
| 7559 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5 |
| 7560 | printf %s "checking for cast to union support... " >&6; } |
| 7561 | if test ${tcl_cv_cast_to_union+y} |
| 7562 | then : |
| 7563 | printf %s "(cached) " >&6 |
| 7564 | else case e in #( |
| 7565 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7566 | /* end confdefs.h. */ |
| 7567 | |
| 7568 | int |
| 7569 | main (void) |
| 7570 | { |
| 7571 | |
| 7572 | union foo { int i; double d; }; |
| 7573 | union foo f = (union foo) (int) 0; |
| 7574 | |
| 7575 | ; |
| 7576 | return 0; |
| 7577 | } |
| 7578 | _ACEOF |
| 7579 | if ac_fn_c_try_compile "$LINENO" |
| 7580 | then : |
| 7581 | tcl_cv_cast_to_union=yes |
| 7582 | else case e in #( |
| 7583 | e) tcl_cv_cast_to_union=no ;; |
| 7584 | esac |
| 7585 | fi |
| 7586 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7587 | ;; |
| 7588 | esac |
| 7589 | fi |
| 7590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5 |
| 7591 | printf "%s\n" "$tcl_cv_cast_to_union" >&6; } |
| 7592 | if test "$tcl_cv_cast_to_union" = "yes"; then |
| 7593 | |
| 7594 | printf "%s\n" "#define HAVE_CAST_TO_UNION 1" >>confdefs.h |
| 7595 | |
| 7596 | fi |
| 7597 | hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -fno-lto" |
| 7598 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working -fno-lto" >&5 |
| 7599 | printf %s "checking for working -fno-lto... " >&6; } |
| 7600 | if test ${ac_cv_nolto+y} |
| 7601 | then : |
| 7602 | printf %s "(cached) " >&6 |
| 7603 | else case e in #( |
| 7604 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7605 | /* end confdefs.h. */ |
| 7606 | |
| 7607 | int |
| 7608 | main (void) |
| 7609 | { |
| 7610 | |
| 7611 | ; |
| 7612 | return 0; |
| 7613 | } |
| 7614 | _ACEOF |
| 7615 | if ac_fn_c_try_compile "$LINENO" |
| 7616 | then : |
| 7617 | ac_cv_nolto=yes |
| 7618 | else case e in #( |
| 7619 | e) ac_cv_nolto=no ;; |
| 7620 | esac |
| 7621 | fi |
| 7622 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7623 | ;; |
| 7624 | esac |
| 7625 | fi |
| 7626 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nolto" >&5 |
| 7627 | printf "%s\n" "$ac_cv_nolto" >&6; } |
| 7628 | CFLAGS=$hold_cflags |
| 7629 | if test "$ac_cv_nolto" = "yes" ; then |
| 7630 | CFLAGS_NOLTO="-fno-lto" |
| 7631 | else |
| 7632 | CFLAGS_NOLTO="" |
| 7633 | fi |
| 7634 | |
| 7635 | # Check for vfork, posix_spawnp() and friends unconditionally |
| 7636 | ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" |
| 7637 | if test "x$ac_cv_func_vfork" = xyes |
| 7638 | then : |
| 7639 | printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h |
| 7640 | |
| 7641 | fi |
| 7642 | ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" |
| 7643 | if test "x$ac_cv_func_posix_spawnp" = xyes |
| 7644 | then : |
| 7645 | printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h |
| 7646 | |
| 7647 | fi |
| 7648 | ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_adddup2" "ac_cv_func_posix_spawn_file_actions_adddup2" |
| 7649 | if test "x$ac_cv_func_posix_spawn_file_actions_adddup2" = xyes |
| 7650 | then : |
| 7651 | printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 1" >>confdefs.h |
| 7652 | |
| 7653 | fi |
| 7654 | ac_fn_c_check_func "$LINENO" "posix_spawnattr_setflags" "ac_cv_func_posix_spawnattr_setflags" |
| 7655 | if test "x$ac_cv_func_posix_spawnattr_setflags" = xyes |
| 7656 | then : |
| 7657 | printf "%s\n" "#define HAVE_POSIX_SPAWNATTR_SETFLAGS 1" >>confdefs.h |
| 7658 | |
| 7659 | fi |
| 7660 | |
| 7661 | |
| 7662 | # FIXME: This subst was left in only because the TCL_DL_LIBS |
| 7663 | # entry in tclConfig.sh uses it. It is not clear why someone |
| 7664 | # would use TCL_DL_LIBS instead of TCL_LIBS. |
| 7665 | |
| 7666 | |
| 7667 | |
| 7668 | |
| 7669 | |
| 7670 | |
| 7671 | |
| 7672 | |
| 7673 | |
| 7674 | |
| 7675 | |
| 7676 | |
| 7677 | |
| 7678 | |
| 7679 | |
| 7680 | |
| 7681 | |
| 7682 | |
| 7683 | |
| 7684 | |
| 7685 | |
| 7686 | |
| 7687 | |
| 7688 | |
| 7689 | |
| 7690 | |
| 7691 | printf "%s\n" "#define TCL_SHLIB_EXT \"${SHLIB_SUFFIX}\"" >>confdefs.h |
| 7692 | |
| 7693 | |
| 7694 | |
| 7695 | |
| 7696 | |
| 7697 | |
| 7698 | |
| 7699 | |
| 7700 | |
| 7701 | |
| 7702 | |
| 7703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 |
| 7704 | printf %s "checking for build with symbols... " >&6; } |
| 7705 | # Check whether --enable-symbols was given. |
| 7706 | if test ${enable_symbols+y} |
| 7707 | then : |
| 7708 | enableval=$enable_symbols; tcl_ok=$enableval |
| 7709 | else case e in #( |
| 7710 | e) tcl_ok=no ;; |
| 7711 | esac |
| 7712 | fi |
| 7713 | |
| 7714 | # FIXME: Currently, LDFLAGS_DEFAULT is not used, it should work like CFLAGS_DEFAULT. |
| 7715 | if test "$tcl_ok" = "no"; then |
| 7716 | CFLAGS_DEFAULT='$(CFLAGS_OPTIMIZE)' |
| 7717 | LDFLAGS_DEFAULT='$(LDFLAGS_OPTIMIZE)' |
| 7718 | |
| 7719 | printf "%s\n" "#define NDEBUG 1" >>confdefs.h |
| 7720 | |
| 7721 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7722 | printf "%s\n" "no" >&6; } |
| 7723 | |
| 7724 | printf "%s\n" "#define TCL_CFG_OPTIMIZED 1" >>confdefs.h |
| 7725 | |
| 7726 | else |
| 7727 | CFLAGS_DEFAULT='$(CFLAGS_DEBUG)' |
| 7728 | LDFLAGS_DEFAULT='$(LDFLAGS_DEBUG)' |
| 7729 | if test "$tcl_ok" = "yes"; then |
| 7730 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 |
| 7731 | printf "%s\n" "yes (standard debugging)" >&6; } |
| 7732 | fi |
| 7733 | fi |
| 7734 | |
| 7735 | |
| 7736 | |
| 7737 | if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then |
| 7738 | |
| 7739 | printf "%s\n" "#define TCL_MEM_DEBUG 1" >>confdefs.h |
| 7740 | |
| 7741 | fi |
| 7742 | |
| 7743 | if test "$tcl_ok" = "compile" -o "$tcl_ok" = "all"; then |
| 7744 | |
| 7745 | printf "%s\n" "#define TCL_COMPILE_DEBUG 1" >>confdefs.h |
| 7746 | |
| 7747 | |
| 7748 | printf "%s\n" "#define TCL_COMPILE_STATS 1" >>confdefs.h |
| 7749 | |
| 7750 | fi |
| 7751 | |
| 7752 | if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then |
| 7753 | if test "$tcl_ok" = "all"; then |
| 7754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem compile debugging" >&5 |
| 7755 | printf "%s\n" "enabled symbols mem compile debugging" >&6; } |
| 7756 | else |
| 7757 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 |
| 7758 | printf "%s\n" "enabled $tcl_ok debugging" >&6; } |
| 7759 | fi |
| 7760 | fi |
| 7761 | |
| 7762 | |
| 7763 | |
| 7764 | printf "%s\n" "#define MP_PREC 4" >>confdefs.h |
| 7765 | |
| 7766 | |
| 7767 | #-------------------------------------------------------------------- |
| 7768 | # Detect what compiler flags to set for 64-bit support. |
| 7769 | #-------------------------------------------------------------------- |
| 7770 | |
| 7771 | |
| 7772 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5 |
| 7773 | printf %s "checking for required early compiler flags... " >&6; } |
| 7774 | tcl_flags="" |
| 7775 | |
| 7776 | if test ${tcl_cv_flag__isoc99_source+y} |
| 7777 | then : |
| 7778 | printf %s "(cached) " >&6 |
| 7779 | else case e in #( |
| 7780 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7781 | /* end confdefs.h. */ |
| 7782 | #include <stdlib.h> |
| 7783 | int |
| 7784 | main (void) |
| 7785 | { |
| 7786 | char *p = (char *)strtoll; char *q = (char *)strtoull; |
| 7787 | ; |
| 7788 | return 0; |
| 7789 | } |
| 7790 | _ACEOF |
| 7791 | if ac_fn_c_try_compile "$LINENO" |
| 7792 | then : |
| 7793 | tcl_cv_flag__isoc99_source=no |
| 7794 | else case e in #( |
| 7795 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7796 | /* end confdefs.h. */ |
| 7797 | #define _ISOC99_SOURCE 1 |
| 7798 | #include <stdlib.h> |
| 7799 | int |
| 7800 | main (void) |
| 7801 | { |
| 7802 | char *p = (char *)strtoll; char *q = (char *)strtoull; |
| 7803 | ; |
| 7804 | return 0; |
| 7805 | } |
| 7806 | _ACEOF |
| 7807 | if ac_fn_c_try_compile "$LINENO" |
| 7808 | then : |
| 7809 | tcl_cv_flag__isoc99_source=yes |
| 7810 | else case e in #( |
| 7811 | e) tcl_cv_flag__isoc99_source=no ;; |
| 7812 | esac |
| 7813 | fi |
| 7814 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7815 | esac |
| 7816 | fi |
| 7817 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7818 | esac |
| 7819 | fi |
| 7820 | |
| 7821 | if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then |
| 7822 | |
| 7823 | printf "%s\n" "#define _ISOC99_SOURCE 1" >>confdefs.h |
| 7824 | |
| 7825 | tcl_flags="$tcl_flags _ISOC99_SOURCE" |
| 7826 | fi |
| 7827 | |
| 7828 | |
| 7829 | if test ${tcl_cv_flag__largefile64_source+y} |
| 7830 | then : |
| 7831 | printf %s "(cached) " >&6 |
| 7832 | else case e in #( |
| 7833 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7834 | /* end confdefs.h. */ |
| 7835 | #include <sys/stat.h> |
| 7836 | int |
| 7837 | main (void) |
| 7838 | { |
| 7839 | struct stat64 buf; int i = stat64("/", &buf); |
| 7840 | ; |
| 7841 | return 0; |
| 7842 | } |
| 7843 | _ACEOF |
| 7844 | if ac_fn_c_try_compile "$LINENO" |
| 7845 | then : |
| 7846 | tcl_cv_flag__largefile64_source=no |
| 7847 | else case e in #( |
| 7848 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7849 | /* end confdefs.h. */ |
| 7850 | #define _LARGEFILE64_SOURCE 1 |
| 7851 | #include <sys/stat.h> |
| 7852 | int |
| 7853 | main (void) |
| 7854 | { |
| 7855 | struct stat64 buf; int i = stat64("/", &buf); |
| 7856 | ; |
| 7857 | return 0; |
| 7858 | } |
| 7859 | _ACEOF |
| 7860 | if ac_fn_c_try_compile "$LINENO" |
| 7861 | then : |
| 7862 | tcl_cv_flag__largefile64_source=yes |
| 7863 | else case e in #( |
| 7864 | e) tcl_cv_flag__largefile64_source=no ;; |
| 7865 | esac |
| 7866 | fi |
| 7867 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7868 | esac |
| 7869 | fi |
| 7870 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7871 | esac |
| 7872 | fi |
| 7873 | |
| 7874 | if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then |
| 7875 | |
| 7876 | printf "%s\n" "#define _LARGEFILE64_SOURCE 1" >>confdefs.h |
| 7877 | |
| 7878 | tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" |
| 7879 | fi |
| 7880 | |
| 7881 | if test "x${tcl_flags}" = "x" ; then |
| 7882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 7883 | printf "%s\n" "none" >&6; } |
| 7884 | else |
| 7885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5 |
| 7886 | printf "%s\n" "${tcl_flags}" >&6; } |
| 7887 | fi |
| 7888 | |
| 7889 | |
| 7890 | |
| 7891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5 |
| 7892 | printf %s "checking for 64-bit integer type... " >&6; } |
| 7893 | if test ${tcl_cv_type_64bit+y} |
| 7894 | then : |
| 7895 | printf %s "(cached) " >&6 |
| 7896 | else case e in #( |
| 7897 | e) |
| 7898 | tcl_cv_type_64bit=none |
| 7899 | # See if the compiler knows natively about __int64 |
| 7900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7901 | /* end confdefs.h. */ |
| 7902 | |
| 7903 | int |
| 7904 | main (void) |
| 7905 | { |
| 7906 | __int64 value = (__int64) 0; |
| 7907 | ; |
| 7908 | return 0; |
| 7909 | } |
| 7910 | _ACEOF |
| 7911 | if ac_fn_c_try_compile "$LINENO" |
| 7912 | then : |
| 7913 | tcl_type_64bit=__int64 |
| 7914 | else case e in #( |
| 7915 | e) tcl_type_64bit="long long" ;; |
| 7916 | esac |
| 7917 | fi |
| 7918 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7919 | # See if we should use long anyway Note that we substitute in the |
| 7920 | # type that is our current guess for a 64-bit type inside this check |
| 7921 | # program, so it should be modified only carefully... |
| 7922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7923 | /* end confdefs.h. */ |
| 7924 | |
| 7925 | int |
| 7926 | main (void) |
| 7927 | { |
| 7928 | switch (0) { |
| 7929 | case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; |
| 7930 | } |
| 7931 | ; |
| 7932 | return 0; |
| 7933 | } |
| 7934 | _ACEOF |
| 7935 | if ac_fn_c_try_compile "$LINENO" |
| 7936 | then : |
| 7937 | tcl_cv_type_64bit=${tcl_type_64bit} |
| 7938 | fi |
| 7939 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7940 | esac |
| 7941 | fi |
| 7942 | |
| 7943 | if test "${tcl_cv_type_64bit}" = none ; then |
| 7944 | |
| 7945 | printf "%s\n" "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h |
| 7946 | |
| 7947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using long" >&5 |
| 7948 | printf "%s\n" "using long" >&6; } |
| 7949 | else |
| 7950 | |
| 7951 | printf "%s\n" "#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit}" >>confdefs.h |
| 7952 | |
| 7953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5 |
| 7954 | printf "%s\n" "${tcl_cv_type_64bit}" >&6; } |
| 7955 | |
| 7956 | # Now check for auxiliary declarations |
| 7957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5 |
| 7958 | printf %s "checking for struct dirent64... " >&6; } |
| 7959 | if test ${tcl_cv_struct_dirent64+y} |
| 7960 | then : |
| 7961 | printf %s "(cached) " >&6 |
| 7962 | else case e in #( |
| 7963 | e) |
| 7964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7965 | /* end confdefs.h. */ |
| 7966 | #include <sys/types.h> |
| 7967 | #include <dirent.h> |
| 7968 | int |
| 7969 | main (void) |
| 7970 | { |
| 7971 | struct dirent64 p; |
| 7972 | ; |
| 7973 | return 0; |
| 7974 | } |
| 7975 | _ACEOF |
| 7976 | if ac_fn_c_try_compile "$LINENO" |
| 7977 | then : |
| 7978 | tcl_cv_struct_dirent64=yes |
| 7979 | else case e in #( |
| 7980 | e) tcl_cv_struct_dirent64=no ;; |
| 7981 | esac |
| 7982 | fi |
| 7983 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 7984 | esac |
| 7985 | fi |
| 7986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5 |
| 7987 | printf "%s\n" "$tcl_cv_struct_dirent64" >&6; } |
| 7988 | if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then |
| 7989 | |
| 7990 | printf "%s\n" "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h |
| 7991 | |
| 7992 | fi |
| 7993 | |
| 7994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DIR64" >&5 |
| 7995 | printf %s "checking for DIR64... " >&6; } |
| 7996 | if test ${tcl_cv_DIR64+y} |
| 7997 | then : |
| 7998 | printf %s "(cached) " >&6 |
| 7999 | else case e in #( |
| 8000 | e) |
| 8001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8002 | /* end confdefs.h. */ |
| 8003 | #include <sys/types.h> |
| 8004 | #include <dirent.h> |
| 8005 | int |
| 8006 | main (void) |
| 8007 | { |
| 8008 | struct dirent64 *p; DIR64 d = opendir64("."); |
| 8009 | p = readdir64(d); rewinddir64(d); closedir64(d); |
| 8010 | ; |
| 8011 | return 0; |
| 8012 | } |
| 8013 | _ACEOF |
| 8014 | if ac_fn_c_try_compile "$LINENO" |
| 8015 | then : |
| 8016 | tcl_cv_DIR64=yes |
| 8017 | else case e in #( |
| 8018 | e) tcl_cv_DIR64=no ;; |
| 8019 | esac |
| 8020 | fi |
| 8021 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8022 | esac |
| 8023 | fi |
| 8024 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_DIR64" >&5 |
| 8025 | printf "%s\n" "$tcl_cv_DIR64" >&6; } |
| 8026 | if test "x${tcl_cv_DIR64}" = "xyes" ; then |
| 8027 | |
| 8028 | printf "%s\n" "#define HAVE_DIR64 1" >>confdefs.h |
| 8029 | |
| 8030 | fi |
| 8031 | |
| 8032 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5 |
| 8033 | printf %s "checking for struct stat64... " >&6; } |
| 8034 | if test ${tcl_cv_struct_stat64+y} |
| 8035 | then : |
| 8036 | printf %s "(cached) " >&6 |
| 8037 | else case e in #( |
| 8038 | e) |
| 8039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8040 | /* end confdefs.h. */ |
| 8041 | #include <sys/stat.h> |
| 8042 | int |
| 8043 | main (void) |
| 8044 | { |
| 8045 | struct stat64 p; |
| 8046 | |
| 8047 | ; |
| 8048 | return 0; |
| 8049 | } |
| 8050 | _ACEOF |
| 8051 | if ac_fn_c_try_compile "$LINENO" |
| 8052 | then : |
| 8053 | tcl_cv_struct_stat64=yes |
| 8054 | else case e in #( |
| 8055 | e) tcl_cv_struct_stat64=no ;; |
| 8056 | esac |
| 8057 | fi |
| 8058 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8059 | esac |
| 8060 | fi |
| 8061 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5 |
| 8062 | printf "%s\n" "$tcl_cv_struct_stat64" >&6; } |
| 8063 | if test "x${tcl_cv_struct_stat64}" = "xyes" ; then |
| 8064 | |
| 8065 | printf "%s\n" "#define HAVE_STRUCT_STAT64 1" >>confdefs.h |
| 8066 | |
| 8067 | fi |
| 8068 | |
| 8069 | ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64" |
| 8070 | if test "x$ac_cv_func_open64" = xyes |
| 8071 | then : |
| 8072 | printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h |
| 8073 | |
| 8074 | fi |
| 8075 | ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64" |
| 8076 | if test "x$ac_cv_func_lseek64" = xyes |
| 8077 | then : |
| 8078 | printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h |
| 8079 | |
| 8080 | fi |
| 8081 | |
| 8082 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5 |
| 8083 | printf %s "checking for off64_t... " >&6; } |
| 8084 | if test ${tcl_cv_type_off64_t+y} |
| 8085 | then : |
| 8086 | printf %s "(cached) " >&6 |
| 8087 | else case e in #( |
| 8088 | e) |
| 8089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8090 | /* end confdefs.h. */ |
| 8091 | #include <sys/types.h> |
| 8092 | int |
| 8093 | main (void) |
| 8094 | { |
| 8095 | off64_t offset; |
| 8096 | |
| 8097 | ; |
| 8098 | return 0; |
| 8099 | } |
| 8100 | _ACEOF |
| 8101 | if ac_fn_c_try_compile "$LINENO" |
| 8102 | then : |
| 8103 | tcl_cv_type_off64_t=yes |
| 8104 | else case e in #( |
| 8105 | e) tcl_cv_type_off64_t=no ;; |
| 8106 | esac |
| 8107 | fi |
| 8108 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8109 | esac |
| 8110 | fi |
| 8111 | |
| 8112 | if test "x${tcl_cv_type_off64_t}" = "xyes" && \ |
| 8113 | test "x${ac_cv_func_lseek64}" = "xyes" && \ |
| 8114 | test "x${ac_cv_func_open64}" = "xyes" ; then |
| 8115 | |
| 8116 | printf "%s\n" "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h |
| 8117 | |
| 8118 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8119 | printf "%s\n" "yes" >&6; } |
| 8120 | else |
| 8121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8122 | printf "%s\n" "no" >&6; } |
| 8123 | fi |
| 8124 | fi |
| 8125 | |
| 8126 | |
| 8127 | #-------------------------------------------------------------------- |
| 8128 | # Check endianness because we can optimize comparisons of |
| 8129 | # Tcl_UniChar strings to memcmp on big-endian systems. |
| 8130 | #-------------------------------------------------------------------- |
| 8131 | |
| 8132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 8133 | printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 8134 | if test ${ac_cv_c_bigendian+y} |
| 8135 | then : |
| 8136 | printf %s "(cached) " >&6 |
| 8137 | else case e in #( |
| 8138 | e) ac_cv_c_bigendian=unknown |
| 8139 | # See if we're dealing with a universal compiler. |
| 8140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8141 | /* end confdefs.h. */ |
| 8142 | #ifndef __APPLE_CC__ |
| 8143 | not a universal capable compiler |
| 8144 | #endif |
| 8145 | typedef int dummy; |
| 8146 | |
| 8147 | _ACEOF |
| 8148 | if ac_fn_c_try_compile "$LINENO" |
| 8149 | then : |
| 8150 | |
| 8151 | # Check for potential -arch flags. It is not universal unless |
| 8152 | # there are at least two -arch flags with different values. |
| 8153 | ac_arch= |
| 8154 | ac_prev= |
| 8155 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 8156 | if test -n "$ac_prev"; then |
| 8157 | case $ac_word in |
| 8158 | i?86 | x86_64 | ppc | ppc64) |
| 8159 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 8160 | ac_arch=$ac_word |
| 8161 | else |
| 8162 | ac_cv_c_bigendian=universal |
| 8163 | break |
| 8164 | fi |
| 8165 | ;; |
| 8166 | esac |
| 8167 | ac_prev= |
| 8168 | elif test "x$ac_word" = "x-arch"; then |
| 8169 | ac_prev=arch |
| 8170 | fi |
| 8171 | done |
| 8172 | fi |
| 8173 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8174 | if test $ac_cv_c_bigendian = unknown; then |
| 8175 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 8176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8177 | /* end confdefs.h. */ |
| 8178 | #include <sys/types.h> |
| 8179 | #include <sys/param.h> |
| 8180 | |
| 8181 | int |
| 8182 | main (void) |
| 8183 | { |
| 8184 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ |
| 8185 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ |
| 8186 | && LITTLE_ENDIAN) |
| 8187 | bogus endian macros |
| 8188 | #endif |
| 8189 | |
| 8190 | ; |
| 8191 | return 0; |
| 8192 | } |
| 8193 | _ACEOF |
| 8194 | if ac_fn_c_try_compile "$LINENO" |
| 8195 | then : |
| 8196 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 8197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8198 | /* end confdefs.h. */ |
| 8199 | #include <sys/types.h> |
| 8200 | #include <sys/param.h> |
| 8201 | |
| 8202 | int |
| 8203 | main (void) |
| 8204 | { |
| 8205 | #if BYTE_ORDER != BIG_ENDIAN |
| 8206 | not big endian |
| 8207 | #endif |
| 8208 | |
| 8209 | ; |
| 8210 | return 0; |
| 8211 | } |
| 8212 | _ACEOF |
| 8213 | if ac_fn_c_try_compile "$LINENO" |
| 8214 | then : |
| 8215 | ac_cv_c_bigendian=yes |
| 8216 | else case e in #( |
| 8217 | e) ac_cv_c_bigendian=no ;; |
| 8218 | esac |
| 8219 | fi |
| 8220 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8221 | fi |
| 8222 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8223 | fi |
| 8224 | if test $ac_cv_c_bigendian = unknown; then |
| 8225 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 8226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8227 | /* end confdefs.h. */ |
| 8228 | #include <limits.h> |
| 8229 | |
| 8230 | int |
| 8231 | main (void) |
| 8232 | { |
| 8233 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 8234 | bogus endian macros |
| 8235 | #endif |
| 8236 | |
| 8237 | ; |
| 8238 | return 0; |
| 8239 | } |
| 8240 | _ACEOF |
| 8241 | if ac_fn_c_try_compile "$LINENO" |
| 8242 | then : |
| 8243 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 8244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8245 | /* end confdefs.h. */ |
| 8246 | #include <limits.h> |
| 8247 | |
| 8248 | int |
| 8249 | main (void) |
| 8250 | { |
| 8251 | #ifndef _BIG_ENDIAN |
| 8252 | not big endian |
| 8253 | #endif |
| 8254 | |
| 8255 | ; |
| 8256 | return 0; |
| 8257 | } |
| 8258 | _ACEOF |
| 8259 | if ac_fn_c_try_compile "$LINENO" |
| 8260 | then : |
| 8261 | ac_cv_c_bigendian=yes |
| 8262 | else case e in #( |
| 8263 | e) ac_cv_c_bigendian=no ;; |
| 8264 | esac |
| 8265 | fi |
| 8266 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8267 | fi |
| 8268 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8269 | fi |
| 8270 | if test $ac_cv_c_bigendian = unknown; then |
| 8271 | # Compile a test program. |
| 8272 | if test "$cross_compiling" = yes |
| 8273 | then : |
| 8274 | # Try to guess by grepping values from an object file. |
| 8275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8276 | /* end confdefs.h. */ |
| 8277 | unsigned short int ascii_mm[] = |
| 8278 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 8279 | unsigned short int ascii_ii[] = |
| 8280 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 8281 | int use_ascii (int i) { |
| 8282 | return ascii_mm[i] + ascii_ii[i]; |
| 8283 | } |
| 8284 | unsigned short int ebcdic_ii[] = |
| 8285 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 8286 | unsigned short int ebcdic_mm[] = |
| 8287 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 8288 | int use_ebcdic (int i) { |
| 8289 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 8290 | } |
| 8291 | int |
| 8292 | main (int argc, char **argv) |
| 8293 | { |
| 8294 | /* Intimidate the compiler so that it does not |
| 8295 | optimize the arrays away. */ |
| 8296 | char *p = argv[0]; |
| 8297 | ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; |
| 8298 | ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; |
| 8299 | return use_ascii (argc) == use_ebcdic (*p); |
| 8300 | } |
| 8301 | _ACEOF |
| 8302 | if ac_fn_c_try_link "$LINENO" |
| 8303 | then : |
| 8304 | if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then |
| 8305 | ac_cv_c_bigendian=yes |
| 8306 | fi |
| 8307 | if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then |
| 8308 | if test "$ac_cv_c_bigendian" = unknown; then |
| 8309 | ac_cv_c_bigendian=no |
| 8310 | else |
| 8311 | # finding both strings is unlikely to happen, but who knows? |
| 8312 | ac_cv_c_bigendian=unknown |
| 8313 | fi |
| 8314 | fi |
| 8315 | fi |
| 8316 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 8317 | conftest$ac_exeext conftest.$ac_ext |
| 8318 | else case e in #( |
| 8319 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8320 | /* end confdefs.h. */ |
| 8321 | $ac_includes_default |
| 8322 | int |
| 8323 | main (void) |
| 8324 | { |
| 8325 | |
| 8326 | /* Are we little or big endian? From Harbison&Steele. */ |
| 8327 | union |
| 8328 | { |
| 8329 | long int l; |
| 8330 | char c[sizeof (long int)]; |
| 8331 | } u; |
| 8332 | u.l = 1; |
| 8333 | return u.c[sizeof (long int) - 1] == 1; |
| 8334 | |
| 8335 | ; |
| 8336 | return 0; |
| 8337 | } |
| 8338 | _ACEOF |
| 8339 | if ac_fn_c_try_run "$LINENO" |
| 8340 | then : |
| 8341 | ac_cv_c_bigendian=no |
| 8342 | else case e in #( |
| 8343 | e) ac_cv_c_bigendian=yes ;; |
| 8344 | esac |
| 8345 | fi |
| 8346 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8347 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8348 | esac |
| 8349 | fi |
| 8350 | |
| 8351 | fi ;; |
| 8352 | esac |
| 8353 | fi |
| 8354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 8355 | printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
| 8356 | case $ac_cv_c_bigendian in #( |
| 8357 | yes) |
| 8358 | printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 8359 | ;; #( |
| 8360 | no) |
| 8361 | ;; #( |
| 8362 | universal) |
| 8363 | # |
| 8364 | ;; #( |
| 8365 | *) |
| 8366 | as_fn_error $? "unknown endianness |
| 8367 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 8368 | esac |
| 8369 | |
| 8370 | |
| 8371 | #-------------------------------------------------------------------- |
| 8372 | # Supply substitutes for missing POSIX library procedures, or |
| 8373 | # set flags so Tcl uses alternate procedures. |
| 8374 | #-------------------------------------------------------------------- |
| 8375 | |
| 8376 | # Check if Posix compliant getcwd exists, if not we'll use getwd. |
| 8377 | |
| 8378 | for ac_func in getcwd |
| 8379 | do : |
| 8380 | ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 8381 | if test "x$ac_cv_func_getcwd" = xyes |
| 8382 | then : |
| 8383 | printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h |
| 8384 | |
| 8385 | else case e in #( |
| 8386 | e) |
| 8387 | printf "%s\n" "#define USEGETWD 1" >>confdefs.h |
| 8388 | ;; |
| 8389 | esac |
| 8390 | fi |
| 8391 | |
| 8392 | done |
| 8393 | # Nb: if getcwd uses popen and pwd(1) (like SunOS 4) we should really |
| 8394 | # define USEGETWD even if the Posix getcwd exists. Add a test ? |
| 8395 | |
| 8396 | ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" |
| 8397 | if test "x$ac_cv_func_mkstemp" = xyes |
| 8398 | then : |
| 8399 | printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h |
| 8400 | |
| 8401 | else case e in #( |
| 8402 | e) case " $LIBOBJS " in |
| 8403 | *" mkstemp.$ac_objext "* ) ;; |
| 8404 | *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext" |
| 8405 | ;; |
| 8406 | esac |
| 8407 | ;; |
| 8408 | esac |
| 8409 | fi |
| 8410 | ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" |
| 8411 | if test "x$ac_cv_func_opendir" = xyes |
| 8412 | then : |
| 8413 | printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h |
| 8414 | |
| 8415 | else case e in #( |
| 8416 | e) case " $LIBOBJS " in |
| 8417 | *" opendir.$ac_objext "* ) ;; |
| 8418 | *) LIBOBJS="$LIBOBJS opendir.$ac_objext" |
| 8419 | ;; |
| 8420 | esac |
| 8421 | ;; |
| 8422 | esac |
| 8423 | fi |
| 8424 | ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol" |
| 8425 | if test "x$ac_cv_func_strtol" = xyes |
| 8426 | then : |
| 8427 | printf "%s\n" "#define HAVE_STRTOL 1" >>confdefs.h |
| 8428 | |
| 8429 | else case e in #( |
| 8430 | e) case " $LIBOBJS " in |
| 8431 | *" strtol.$ac_objext "* ) ;; |
| 8432 | *) LIBOBJS="$LIBOBJS strtol.$ac_objext" |
| 8433 | ;; |
| 8434 | esac |
| 8435 | ;; |
| 8436 | esac |
| 8437 | fi |
| 8438 | ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" |
| 8439 | if test "x$ac_cv_func_waitpid" = xyes |
| 8440 | then : |
| 8441 | printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h |
| 8442 | |
| 8443 | else case e in #( |
| 8444 | e) case " $LIBOBJS " in |
| 8445 | *" waitpid.$ac_objext "* ) ;; |
| 8446 | *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" |
| 8447 | ;; |
| 8448 | esac |
| 8449 | ;; |
| 8450 | esac |
| 8451 | fi |
| 8452 | |
| 8453 | ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
| 8454 | if test "x$ac_cv_func_strerror" = xyes |
| 8455 | then : |
| 8456 | |
| 8457 | else case e in #( |
| 8458 | e) |
| 8459 | printf "%s\n" "#define NO_STRERROR 1" >>confdefs.h |
| 8460 | ;; |
| 8461 | esac |
| 8462 | fi |
| 8463 | |
| 8464 | ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" |
| 8465 | if test "x$ac_cv_func_getwd" = xyes |
| 8466 | then : |
| 8467 | |
| 8468 | else case e in #( |
| 8469 | e) |
| 8470 | printf "%s\n" "#define NO_GETWD 1" >>confdefs.h |
| 8471 | ;; |
| 8472 | esac |
| 8473 | fi |
| 8474 | |
| 8475 | ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" |
| 8476 | if test "x$ac_cv_func_wait3" = xyes |
| 8477 | then : |
| 8478 | |
| 8479 | else case e in #( |
| 8480 | e) |
| 8481 | printf "%s\n" "#define NO_WAIT3 1" >>confdefs.h |
| 8482 | ;; |
| 8483 | esac |
| 8484 | fi |
| 8485 | |
| 8486 | ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" |
| 8487 | if test "x$ac_cv_func_fork" = xyes |
| 8488 | then : |
| 8489 | |
| 8490 | else case e in #( |
| 8491 | e) |
| 8492 | printf "%s\n" "#define NO_FORK 1" >>confdefs.h |
| 8493 | ;; |
| 8494 | esac |
| 8495 | fi |
| 8496 | |
| 8497 | ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod" |
| 8498 | if test "x$ac_cv_func_mknod" = xyes |
| 8499 | then : |
| 8500 | |
| 8501 | else case e in #( |
| 8502 | e) |
| 8503 | printf "%s\n" "#define NO_MKNOD 1" >>confdefs.h |
| 8504 | ;; |
| 8505 | esac |
| 8506 | fi |
| 8507 | |
| 8508 | ac_fn_c_check_func "$LINENO" "tcdrain" "ac_cv_func_tcdrain" |
| 8509 | if test "x$ac_cv_func_tcdrain" = xyes |
| 8510 | then : |
| 8511 | |
| 8512 | else case e in #( |
| 8513 | e) |
| 8514 | printf "%s\n" "#define NO_TCDRAIN 1" >>confdefs.h |
| 8515 | ;; |
| 8516 | esac |
| 8517 | fi |
| 8518 | |
| 8519 | ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" |
| 8520 | if test "x$ac_cv_func_uname" = xyes |
| 8521 | then : |
| 8522 | |
| 8523 | else case e in #( |
| 8524 | e) |
| 8525 | printf "%s\n" "#define NO_UNAME 1" >>confdefs.h |
| 8526 | ;; |
| 8527 | esac |
| 8528 | fi |
| 8529 | |
| 8530 | |
| 8531 | if test "`uname -s`" = "Darwin" && test "${TCL_THREADS}" = 1 && \ |
| 8532 | test "`uname -r | awk -F. '{print $1}'`" -lt 7; then |
| 8533 | # prior to Darwin 7, realpath is not threadsafe, so don't |
| 8534 | # use it when threads are enabled, c.f. bug # 711232 |
| 8535 | ac_cv_func_realpath=no |
| 8536 | fi |
| 8537 | ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" |
| 8538 | if test "x$ac_cv_func_realpath" = xyes |
| 8539 | then : |
| 8540 | |
| 8541 | else case e in #( |
| 8542 | e) |
| 8543 | printf "%s\n" "#define NO_REALPATH 1" >>confdefs.h |
| 8544 | ;; |
| 8545 | esac |
| 8546 | fi |
| 8547 | |
| 8548 | |
| 8549 | |
| 8550 | NEED_FAKE_RFC2553=0 |
| 8551 | |
| 8552 | for ac_func in getnameinfo getaddrinfo freeaddrinfo gai_strerror |
| 8553 | do : |
| 8554 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` |
| 8555 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8556 | if eval test \"x\$"$as_ac_var"\" = x"yes" |
| 8557 | then : |
| 8558 | cat >>confdefs.h <<_ACEOF |
| 8559 | #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 |
| 8560 | _ACEOF |
| 8561 | |
| 8562 | else case e in #( |
| 8563 | e) NEED_FAKE_RFC2553=1 ;; |
| 8564 | esac |
| 8565 | fi |
| 8566 | |
| 8567 | done |
| 8568 | ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" " |
| 8569 | #include <sys/types.h> |
| 8570 | #include <sys/socket.h> |
| 8571 | #include <netinet/in.h> |
| 8572 | #include <netdb.h> |
| 8573 | |
| 8574 | " |
| 8575 | if test "x$ac_cv_type_struct_addrinfo" = xyes |
| 8576 | then : |
| 8577 | |
| 8578 | printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h |
| 8579 | |
| 8580 | |
| 8581 | else case e in #( |
| 8582 | e) NEED_FAKE_RFC2553=1 ;; |
| 8583 | esac |
| 8584 | fi |
| 8585 | ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" " |
| 8586 | #include <sys/types.h> |
| 8587 | #include <sys/socket.h> |
| 8588 | #include <netinet/in.h> |
| 8589 | #include <netdb.h> |
| 8590 | |
| 8591 | " |
| 8592 | if test "x$ac_cv_type_struct_in6_addr" = xyes |
| 8593 | then : |
| 8594 | |
| 8595 | printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h |
| 8596 | |
| 8597 | |
| 8598 | else case e in #( |
| 8599 | e) NEED_FAKE_RFC2553=1 ;; |
| 8600 | esac |
| 8601 | fi |
| 8602 | ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" " |
| 8603 | #include <sys/types.h> |
| 8604 | #include <sys/socket.h> |
| 8605 | #include <netinet/in.h> |
| 8606 | #include <netdb.h> |
| 8607 | |
| 8608 | " |
| 8609 | if test "x$ac_cv_type_struct_sockaddr_in6" = xyes |
| 8610 | then : |
| 8611 | |
| 8612 | printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h |
| 8613 | |
| 8614 | |
| 8615 | else case e in #( |
| 8616 | e) NEED_FAKE_RFC2553=1 ;; |
| 8617 | esac |
| 8618 | fi |
| 8619 | ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" " |
| 8620 | #include <sys/types.h> |
| 8621 | #include <sys/socket.h> |
| 8622 | #include <netinet/in.h> |
| 8623 | #include <netdb.h> |
| 8624 | |
| 8625 | " |
| 8626 | if test "x$ac_cv_type_struct_sockaddr_storage" = xyes |
| 8627 | then : |
| 8628 | |
| 8629 | printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h |
| 8630 | |
| 8631 | |
| 8632 | else case e in #( |
| 8633 | e) NEED_FAKE_RFC2553=1 ;; |
| 8634 | esac |
| 8635 | fi |
| 8636 | |
| 8637 | if test "x$NEED_FAKE_RFC2553" = "x1"; then |
| 8638 | |
| 8639 | printf "%s\n" "#define NEED_FAKE_RFC2553 1" >>confdefs.h |
| 8640 | |
| 8641 | case " $LIBOBJS " in |
| 8642 | *" fake-rfc2553.$ac_objext "* ) ;; |
| 8643 | *) LIBOBJS="$LIBOBJS fake-rfc2553.$ac_objext" |
| 8644 | ;; |
| 8645 | esac |
| 8646 | |
| 8647 | ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" |
| 8648 | if test "x$ac_cv_func_strlcpy" = xyes |
| 8649 | then : |
| 8650 | |
| 8651 | fi |
| 8652 | |
| 8653 | fi |
| 8654 | |
| 8655 | |
| 8656 | #-------------------------------------------------------------------- |
| 8657 | # Look for thread-safe variants of some library functions. |
| 8658 | #-------------------------------------------------------------------- |
| 8659 | |
| 8660 | if test "${TCL_THREADS}" = 1; then |
| 8661 | ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" |
| 8662 | if test "x$ac_cv_func_getpwuid_r" = xyes |
| 8663 | then : |
| 8664 | |
| 8665 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r with 5 args" >&5 |
| 8666 | printf %s "checking for getpwuid_r with 5 args... " >&6; } |
| 8667 | if test ${tcl_cv_api_getpwuid_r_5+y} |
| 8668 | then : |
| 8669 | printf %s "(cached) " >&6 |
| 8670 | else case e in #( |
| 8671 | e) |
| 8672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8673 | /* end confdefs.h. */ |
| 8674 | |
| 8675 | #include <sys/types.h> |
| 8676 | #include <pwd.h> |
| 8677 | |
| 8678 | int |
| 8679 | main (void) |
| 8680 | { |
| 8681 | |
| 8682 | uid_t uid; |
| 8683 | struct passwd pw, *pwp; |
| 8684 | char buf[512]; |
| 8685 | int buflen = 512; |
| 8686 | |
| 8687 | (void) getpwuid_r(uid, &pw, buf, buflen, &pwp); |
| 8688 | |
| 8689 | ; |
| 8690 | return 0; |
| 8691 | } |
| 8692 | _ACEOF |
| 8693 | if ac_fn_c_try_compile "$LINENO" |
| 8694 | then : |
| 8695 | tcl_cv_api_getpwuid_r_5=yes |
| 8696 | else case e in #( |
| 8697 | e) tcl_cv_api_getpwuid_r_5=no ;; |
| 8698 | esac |
| 8699 | fi |
| 8700 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8701 | esac |
| 8702 | fi |
| 8703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_getpwuid_r_5" >&5 |
| 8704 | printf "%s\n" "$tcl_cv_api_getpwuid_r_5" >&6; } |
| 8705 | tcl_ok=$tcl_cv_api_getpwuid_r_5 |
| 8706 | if test "$tcl_ok" = yes; then |
| 8707 | |
| 8708 | printf "%s\n" "#define HAVE_GETPWUID_R_5 1" >>confdefs.h |
| 8709 | |
| 8710 | else |
| 8711 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwuid_r with 4 args" >&5 |
| 8712 | printf %s "checking for getpwuid_r with 4 args... " >&6; } |
| 8713 | if test ${tcl_cv_api_getpwuid_r_4+y} |
| 8714 | then : |
| 8715 | printf %s "(cached) " >&6 |
| 8716 | else case e in #( |
| 8717 | e) |
| 8718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8719 | /* end confdefs.h. */ |
| 8720 | |
| 8721 | #include <sys/types.h> |
| 8722 | #include <pwd.h> |
| 8723 | |
| 8724 | int |
| 8725 | main (void) |
| 8726 | { |
| 8727 | |
| 8728 | uid_t uid; |
| 8729 | struct passwd pw; |
| 8730 | char buf[512]; |
| 8731 | int buflen = 512; |
| 8732 | |
| 8733 | (void)getpwnam_r(uid, &pw, buf, buflen); |
| 8734 | |
| 8735 | ; |
| 8736 | return 0; |
| 8737 | } |
| 8738 | _ACEOF |
| 8739 | if ac_fn_c_try_compile "$LINENO" |
| 8740 | then : |
| 8741 | tcl_cv_api_getpwuid_r_4=yes |
| 8742 | else case e in #( |
| 8743 | e) tcl_cv_api_getpwuid_r_4=no ;; |
| 8744 | esac |
| 8745 | fi |
| 8746 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8747 | esac |
| 8748 | fi |
| 8749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_getpwuid_r_4" >&5 |
| 8750 | printf "%s\n" "$tcl_cv_api_getpwuid_r_4" >&6; } |
| 8751 | tcl_ok=$tcl_cv_api_getpwuid_r_4 |
| 8752 | if test "$tcl_ok" = yes; then |
| 8753 | |
| 8754 | printf "%s\n" "#define HAVE_GETPWUID_R_4 1" >>confdefs.h |
| 8755 | |
| 8756 | fi |
| 8757 | fi |
| 8758 | if test "$tcl_ok" = yes; then |
| 8759 | |
| 8760 | printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h |
| 8761 | |
| 8762 | fi |
| 8763 | |
| 8764 | fi |
| 8765 | |
| 8766 | ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" |
| 8767 | if test "x$ac_cv_func_getpwnam_r" = xyes |
| 8768 | then : |
| 8769 | |
| 8770 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r with 5 args" >&5 |
| 8771 | printf %s "checking for getpwnam_r with 5 args... " >&6; } |
| 8772 | if test ${tcl_cv_api_getpwnam_r_5+y} |
| 8773 | then : |
| 8774 | printf %s "(cached) " >&6 |
| 8775 | else case e in #( |
| 8776 | e) |
| 8777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8778 | /* end confdefs.h. */ |
| 8779 | |
| 8780 | #include <sys/types.h> |
| 8781 | #include <pwd.h> |
| 8782 | |
| 8783 | int |
| 8784 | main (void) |
| 8785 | { |
| 8786 | |
| 8787 | char *name; |
| 8788 | struct passwd pw, *pwp; |
| 8789 | char buf[512]; |
| 8790 | int buflen = 512; |
| 8791 | |
| 8792 | (void) getpwnam_r(name, &pw, buf, buflen, &pwp); |
| 8793 | |
| 8794 | ; |
| 8795 | return 0; |
| 8796 | } |
| 8797 | _ACEOF |
| 8798 | if ac_fn_c_try_compile "$LINENO" |
| 8799 | then : |
| 8800 | tcl_cv_api_getpwnam_r_5=yes |
| 8801 | else case e in #( |
| 8802 | e) tcl_cv_api_getpwnam_r_5=no ;; |
| 8803 | esac |
| 8804 | fi |
| 8805 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8806 | esac |
| 8807 | fi |
| 8808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_getpwnam_r_5" >&5 |
| 8809 | printf "%s\n" "$tcl_cv_api_getpwnam_r_5" >&6; } |
| 8810 | tcl_ok=$tcl_cv_api_getpwnam_r_5 |
| 8811 | if test "$tcl_ok" = yes; then |
| 8812 | |
| 8813 | printf "%s\n" "#define HAVE_GETPWNAM_R_5 1" >>confdefs.h |
| 8814 | |
| 8815 | else |
| 8816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpwnam_r with 4 args" >&5 |
| 8817 | printf %s "checking for getpwnam_r with 4 args... " >&6; } |
| 8818 | if test ${tcl_cv_api_getpwnam_r_4+y} |
| 8819 | then : |
| 8820 | printf %s "(cached) " >&6 |
| 8821 | else case e in #( |
| 8822 | e) |
| 8823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8824 | /* end confdefs.h. */ |
| 8825 | |
| 8826 | #include <sys/types.h> |
| 8827 | #include <pwd.h> |
| 8828 | |
| 8829 | int |
| 8830 | main (void) |
| 8831 | { |
| 8832 | |
| 8833 | char *name; |
| 8834 | struct passwd pw; |
| 8835 | char buf[512]; |
| 8836 | int buflen = 512; |
| 8837 | |
| 8838 | (void)getpwnam_r(name, &pw, buf, buflen); |
| 8839 | |
| 8840 | ; |
| 8841 | return 0; |
| 8842 | } |
| 8843 | _ACEOF |
| 8844 | if ac_fn_c_try_compile "$LINENO" |
| 8845 | then : |
| 8846 | tcl_cv_api_getpwnam_r_4=yes |
| 8847 | else case e in #( |
| 8848 | e) tcl_cv_api_getpwnam_r_4=no ;; |
| 8849 | esac |
| 8850 | fi |
| 8851 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8852 | esac |
| 8853 | fi |
| 8854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_getpwnam_r_4" >&5 |
| 8855 | printf "%s\n" "$tcl_cv_api_getpwnam_r_4" >&6; } |
| 8856 | tcl_ok=$tcl_cv_api_getpwnam_r_4 |
| 8857 | if test "$tcl_ok" = yes; then |
| 8858 | |
| 8859 | printf "%s\n" "#define HAVE_GETPWNAM_R_4 1" >>confdefs.h |
| 8860 | |
| 8861 | fi |
| 8862 | fi |
| 8863 | if test "$tcl_ok" = yes; then |
| 8864 | |
| 8865 | printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h |
| 8866 | |
| 8867 | fi |
| 8868 | |
| 8869 | fi |
| 8870 | |
| 8871 | ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r" |
| 8872 | if test "x$ac_cv_func_getgrgid_r" = xyes |
| 8873 | then : |
| 8874 | |
| 8875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getgrgid_r with 5 args" >&5 |
| 8876 | printf %s "checking for getgrgid_r with 5 args... " >&6; } |
| 8877 | if test ${tcl_cv_api_getgrgid_r_5+y} |
| 8878 | then : |
| 8879 | printf %s "(cached) " >&6 |
| 8880 | else case e in #( |
| 8881 | e) |
| 8882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8883 | /* end confdefs.h. */ |
| 8884 | |
| 8885 | #include <sys/types.h> |
| 8886 | #include <grp.h> |
| 8887 | |
| 8888 | int |
| 8889 | main (void) |
| 8890 | { |
| 8891 | |
| 8892 | gid_t gid; |
| 8893 | struct group gr, *grp; |
| 8894 | char buf[512]; |
| 8895 | int buflen = 512; |
| 8896 | |
| 8897 | (void) getgrgid_r(gid, &gr, buf, buflen, &grp); |
| 8898 | |
| 8899 | ; |
| 8900 | return 0; |
| 8901 | } |
| 8902 | _ACEOF |
| 8903 | if ac_fn_c_try_compile "$LINENO" |
| 8904 | then : |
| 8905 | tcl_cv_api_getgrgid_r_5=yes |
| 8906 | else case e in #( |
| 8907 | e) tcl_cv_api_getgrgid_r_5=no ;; |
| 8908 | esac |
| 8909 | fi |
| 8910 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8911 | esac |
| 8912 | fi |
| 8913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_getgrgid_r_5" >&5 |
| 8914 | printf "%s\n" "$tcl_cv_api_getgrgid_r_5" >&6; } |
| 8915 | tcl_ok=$tcl_cv_api_getgrgid_r_5 |
| 8916 | if test "$tcl_ok" = yes; then |
| 8917 | |
| 8918 | printf "%s\n" "#define HAVE_GETGRGID_R_5 1" >>confdefs.h |
| 8919 | |
| 8920 | else |
| 8921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getgrgid_r with 4 args" >&5 |
| 8922 | printf %s "checking for getgrgid_r with 4 args... " >&6; } |
| 8923 | if test ${tcl_cv_api_getgrgid_r_4+y} |
| 8924 | then : |
| 8925 | printf %s "(cached) " >&6 |
| 8926 | else case e in #( |
| 8927 | e) |
| 8928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8929 | /* end confdefs.h. */ |
| 8930 | |
| 8931 | #include <sys/types.h> |
| 8932 | #include <grp.h> |
| 8933 | |
| 8934 | int |
| 8935 | main (void) |
| 8936 | { |
| 8937 | |
| 8938 | gid_t gid; |
| 8939 | struct group gr; |
| 8940 | char buf[512]; |
| 8941 | int buflen = 512; |
| 8942 | |
| 8943 | (void)getgrgid_r(gid, &gr, buf, buflen); |
| 8944 | |
| 8945 | ; |
| 8946 | return 0; |
| 8947 | } |
| 8948 | _ACEOF |
| 8949 | if ac_fn_c_try_compile "$LINENO" |
| 8950 | then : |
| 8951 | tcl_cv_api_getgrgid_r_4=yes |
| 8952 | else case e in #( |
| 8953 | e) tcl_cv_api_getgrgid_r_4=no ;; |
| 8954 | esac |
| 8955 | fi |
| 8956 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 8957 | esac |
| 8958 | fi |
| 8959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_getgrgid_r_4" >&5 |
| 8960 | printf "%s\n" "$tcl_cv_api_getgrgid_r_4" >&6; } |
| 8961 | tcl_ok=$tcl_cv_api_getgrgid_r_4 |
| 8962 | if test "$tcl_ok" = yes; then |
| 8963 | |
| 8964 | printf "%s\n" "#define HAVE_GETGRGID_R_4 1" >>confdefs.h |
| 8965 | |
| 8966 | fi |
| 8967 | fi |
| 8968 | if test "$tcl_ok" = yes; then |
| 8969 | |
| 8970 | printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h |
| 8971 | |
| 8972 | fi |
| 8973 | |
| 8974 | fi |
| 8975 | |
| 8976 | ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r" |
| 8977 | if test "x$ac_cv_func_getgrnam_r" = xyes |
| 8978 | then : |
| 8979 | |
| 8980 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getgrnam_r with 5 args" >&5 |
| 8981 | printf %s "checking for getgrnam_r with 5 args... " >&6; } |
| 8982 | if test ${tcl_cv_api_getgrnam_r_5+y} |
| 8983 | then : |
| 8984 | printf %s "(cached) " >&6 |
| 8985 | else case e in #( |
| 8986 | e) |
| 8987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8988 | /* end confdefs.h. */ |
| 8989 | |
| 8990 | #include <sys/types.h> |
| 8991 | #include <grp.h> |
| 8992 | |
| 8993 | int |
| 8994 | main (void) |
| 8995 | { |
| 8996 | |
| 8997 | char *name; |
| 8998 | struct group gr, *grp; |
| 8999 | char buf[512]; |
| 9000 | int buflen = 512; |
| 9001 | |
| 9002 | (void) getgrnam_r(name, &gr, buf, buflen, &grp); |
| 9003 | |
| 9004 | ; |
| 9005 | return 0; |
| 9006 | } |
| 9007 | _ACEOF |
| 9008 | if ac_fn_c_try_compile "$LINENO" |
| 9009 | then : |
| 9010 | tcl_cv_api_getgrnam_r_5=yes |
| 9011 | else case e in #( |
| 9012 | e) tcl_cv_api_getgrnam_r_5=no ;; |
| 9013 | esac |
| 9014 | fi |
| 9015 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9016 | esac |
| 9017 | fi |
| 9018 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_getgrnam_r_5" >&5 |
| 9019 | printf "%s\n" "$tcl_cv_api_getgrnam_r_5" >&6; } |
| 9020 | tcl_ok=$tcl_cv_api_getgrnam_r_5 |
| 9021 | if test "$tcl_ok" = yes; then |
| 9022 | |
| 9023 | printf "%s\n" "#define HAVE_GETGRNAM_R_5 1" >>confdefs.h |
| 9024 | |
| 9025 | else |
| 9026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getgrnam_r with 4 args" >&5 |
| 9027 | printf %s "checking for getgrnam_r with 4 args... " >&6; } |
| 9028 | if test ${tcl_cv_api_getgrnam_r_4+y} |
| 9029 | then : |
| 9030 | printf %s "(cached) " >&6 |
| 9031 | else case e in #( |
| 9032 | e) |
| 9033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9034 | /* end confdefs.h. */ |
| 9035 | |
| 9036 | #include <sys/types.h> |
| 9037 | #include <grp.h> |
| 9038 | |
| 9039 | int |
| 9040 | main (void) |
| 9041 | { |
| 9042 | |
| 9043 | char *name; |
| 9044 | struct group gr; |
| 9045 | char buf[512]; |
| 9046 | int buflen = 512; |
| 9047 | |
| 9048 | (void)getgrnam_r(name, &gr, buf, buflen); |
| 9049 | |
| 9050 | ; |
| 9051 | return 0; |
| 9052 | } |
| 9053 | _ACEOF |
| 9054 | if ac_fn_c_try_compile "$LINENO" |
| 9055 | then : |
| 9056 | tcl_cv_api_getgrnam_r_4=yes |
| 9057 | else case e in #( |
| 9058 | e) tcl_cv_api_getgrnam_r_4=no ;; |
| 9059 | esac |
| 9060 | fi |
| 9061 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9062 | esac |
| 9063 | fi |
| 9064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_getgrnam_r_4" >&5 |
| 9065 | printf "%s\n" "$tcl_cv_api_getgrnam_r_4" >&6; } |
| 9066 | tcl_ok=$tcl_cv_api_getgrnam_r_4 |
| 9067 | if test "$tcl_ok" = yes; then |
| 9068 | |
| 9069 | printf "%s\n" "#define HAVE_GETGRNAM_R_4 1" >>confdefs.h |
| 9070 | |
| 9071 | fi |
| 9072 | fi |
| 9073 | if test "$tcl_ok" = yes; then |
| 9074 | |
| 9075 | printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h |
| 9076 | |
| 9077 | fi |
| 9078 | |
| 9079 | fi |
| 9080 | |
| 9081 | if test "`uname -s`" = "Darwin" && \ |
| 9082 | test "`uname -r | awk -F. '{print $1}'`" -gt 5; then |
| 9083 | # Starting with Darwin 6 (Mac OSX 10.2), gethostbyX |
| 9084 | # are actually MT-safe as they always return pointers |
| 9085 | # from TSD instead of static storage. |
| 9086 | |
| 9087 | printf "%s\n" "#define HAVE_MTSAFE_GETHOSTBYNAME 1" >>confdefs.h |
| 9088 | |
| 9089 | |
| 9090 | printf "%s\n" "#define HAVE_MTSAFE_GETHOSTBYADDR 1" >>confdefs.h |
| 9091 | |
| 9092 | |
| 9093 | elif test "`uname -s`" = "HP-UX" && \ |
| 9094 | test "`uname -r|sed -e 's|B\.||' -e 's|\..*$||'`" -gt 10; then |
| 9095 | # Starting with HPUX 11.00 (we believe), gethostbyX |
| 9096 | # are actually MT-safe as they always return pointers |
| 9097 | # from TSD instead of static storage. |
| 9098 | |
| 9099 | printf "%s\n" "#define HAVE_MTSAFE_GETHOSTBYNAME 1" >>confdefs.h |
| 9100 | |
| 9101 | |
| 9102 | printf "%s\n" "#define HAVE_MTSAFE_GETHOSTBYADDR 1" >>confdefs.h |
| 9103 | |
| 9104 | |
| 9105 | else |
| 9106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 9107 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 9108 | if test ${ac_cv_c_undeclared_builtin_options+y} |
| 9109 | then : |
| 9110 | printf %s "(cached) " >&6 |
| 9111 | else case e in #( |
| 9112 | e) ac_save_CFLAGS=$CFLAGS |
| 9113 | ac_cv_c_undeclared_builtin_options='cannot detect' |
| 9114 | for ac_arg in '' -fno-builtin; do |
| 9115 | CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 9116 | # This test program should *not* compile successfully. |
| 9117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9118 | /* end confdefs.h. */ |
| 9119 | |
| 9120 | int |
| 9121 | main (void) |
| 9122 | { |
| 9123 | (void) strchr; |
| 9124 | ; |
| 9125 | return 0; |
| 9126 | } |
| 9127 | _ACEOF |
| 9128 | if ac_fn_c_try_compile "$LINENO" |
| 9129 | then : |
| 9130 | |
| 9131 | else case e in #( |
| 9132 | e) # This test program should compile successfully. |
| 9133 | # No library function is consistently available on |
| 9134 | # freestanding implementations, so test against a dummy |
| 9135 | # declaration. Include always-available headers on the |
| 9136 | # off chance that they somehow elicit warnings. |
| 9137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9138 | /* end confdefs.h. */ |
| 9139 | #include <float.h> |
| 9140 | #include <limits.h> |
| 9141 | #include <stdarg.h> |
| 9142 | #include <stddef.h> |
| 9143 | extern void ac_decl (int, char *); |
| 9144 | |
| 9145 | int |
| 9146 | main (void) |
| 9147 | { |
| 9148 | (void) ac_decl (0, (char *) 0); |
| 9149 | (void) ac_decl; |
| 9150 | |
| 9151 | ; |
| 9152 | return 0; |
| 9153 | } |
| 9154 | _ACEOF |
| 9155 | if ac_fn_c_try_compile "$LINENO" |
| 9156 | then : |
| 9157 | if test x"$ac_arg" = x |
| 9158 | then : |
| 9159 | ac_cv_c_undeclared_builtin_options='none needed' |
| 9160 | else case e in #( |
| 9161 | e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; |
| 9162 | esac |
| 9163 | fi |
| 9164 | break |
| 9165 | fi |
| 9166 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9167 | esac |
| 9168 | fi |
| 9169 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9170 | done |
| 9171 | CFLAGS=$ac_save_CFLAGS |
| 9172 | ;; |
| 9173 | esac |
| 9174 | fi |
| 9175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 9176 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 9177 | case $ac_cv_c_undeclared_builtin_options in #( |
| 9178 | 'cannot detect') : |
| 9179 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 9180 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 9181 | as_fn_error $? "cannot make $CC report undeclared builtins |
| 9182 | See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 9183 | 'none needed') : |
| 9184 | ac_c_undeclared_builtin_options='' ;; #( |
| 9185 | *) : |
| 9186 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 9187 | esac |
| 9188 | |
| 9189 | |
| 9190 | # Avoids picking hidden internal symbol from libc |
| 9191 | ac_fn_check_decl "$LINENO" "gethostbyname_r" "ac_cv_have_decl_gethostbyname_r" "#include <netdb.h> |
| 9192 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 9193 | if test "x$ac_cv_have_decl_gethostbyname_r" = xyes |
| 9194 | then : |
| 9195 | ac_have_decl=1 |
| 9196 | else case e in #( |
| 9197 | e) ac_have_decl=0 ;; |
| 9198 | esac |
| 9199 | fi |
| 9200 | printf "%s\n" "#define HAVE_DECL_GETHOSTBYNAME_R $ac_have_decl" >>confdefs.h |
| 9201 | if test $ac_have_decl = 1 |
| 9202 | then : |
| 9203 | |
| 9204 | tcl_cv_api_gethostbyname_r=yes |
| 9205 | else case e in #( |
| 9206 | e) tcl_cv_api_gethostbyname_r=no ;; |
| 9207 | esac |
| 9208 | fi |
| 9209 | |
| 9210 | |
| 9211 | |
| 9212 | if test "$tcl_cv_api_gethostbyname_r" = yes; then |
| 9213 | ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" |
| 9214 | if test "x$ac_cv_func_gethostbyname_r" = xyes |
| 9215 | then : |
| 9216 | |
| 9217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 6 args" >&5 |
| 9218 | printf %s "checking for gethostbyname_r with 6 args... " >&6; } |
| 9219 | if test ${tcl_cv_api_gethostbyname_r_6+y} |
| 9220 | then : |
| 9221 | printf %s "(cached) " >&6 |
| 9222 | else case e in #( |
| 9223 | e) |
| 9224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9225 | /* end confdefs.h. */ |
| 9226 | |
| 9227 | #include <netdb.h> |
| 9228 | |
| 9229 | int |
| 9230 | main (void) |
| 9231 | { |
| 9232 | |
| 9233 | char *name; |
| 9234 | struct hostent *he, *res; |
| 9235 | char buffer[2048]; |
| 9236 | int buflen = 2048; |
| 9237 | int h_errnop; |
| 9238 | |
| 9239 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop); |
| 9240 | |
| 9241 | ; |
| 9242 | return 0; |
| 9243 | } |
| 9244 | _ACEOF |
| 9245 | if ac_fn_c_try_compile "$LINENO" |
| 9246 | then : |
| 9247 | tcl_cv_api_gethostbyname_r_6=yes |
| 9248 | else case e in #( |
| 9249 | e) tcl_cv_api_gethostbyname_r_6=no ;; |
| 9250 | esac |
| 9251 | fi |
| 9252 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9253 | esac |
| 9254 | fi |
| 9255 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_gethostbyname_r_6" >&5 |
| 9256 | printf "%s\n" "$tcl_cv_api_gethostbyname_r_6" >&6; } |
| 9257 | tcl_ok=$tcl_cv_api_gethostbyname_r_6 |
| 9258 | if test "$tcl_ok" = yes; then |
| 9259 | |
| 9260 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h |
| 9261 | |
| 9262 | else |
| 9263 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 5 args" >&5 |
| 9264 | printf %s "checking for gethostbyname_r with 5 args... " >&6; } |
| 9265 | if test ${tcl_cv_api_gethostbyname_r_5+y} |
| 9266 | then : |
| 9267 | printf %s "(cached) " >&6 |
| 9268 | else case e in #( |
| 9269 | e) |
| 9270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9271 | /* end confdefs.h. */ |
| 9272 | |
| 9273 | #include <netdb.h> |
| 9274 | |
| 9275 | int |
| 9276 | main (void) |
| 9277 | { |
| 9278 | |
| 9279 | char *name; |
| 9280 | struct hostent *he; |
| 9281 | char buffer[2048]; |
| 9282 | int buflen = 2048; |
| 9283 | int h_errnop; |
| 9284 | |
| 9285 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop); |
| 9286 | |
| 9287 | ; |
| 9288 | return 0; |
| 9289 | } |
| 9290 | _ACEOF |
| 9291 | if ac_fn_c_try_compile "$LINENO" |
| 9292 | then : |
| 9293 | tcl_cv_api_gethostbyname_r_5=yes |
| 9294 | else case e in #( |
| 9295 | e) tcl_cv_api_gethostbyname_r_5=no ;; |
| 9296 | esac |
| 9297 | fi |
| 9298 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9299 | esac |
| 9300 | fi |
| 9301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_gethostbyname_r_5" >&5 |
| 9302 | printf "%s\n" "$tcl_cv_api_gethostbyname_r_5" >&6; } |
| 9303 | tcl_ok=$tcl_cv_api_gethostbyname_r_5 |
| 9304 | if test "$tcl_ok" = yes; then |
| 9305 | |
| 9306 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h |
| 9307 | |
| 9308 | else |
| 9309 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r with 3 args" >&5 |
| 9310 | printf %s "checking for gethostbyname_r with 3 args... " >&6; } |
| 9311 | if test ${tcl_cv_api_gethostbyname_r_3+y} |
| 9312 | then : |
| 9313 | printf %s "(cached) " >&6 |
| 9314 | else case e in #( |
| 9315 | e) |
| 9316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9317 | /* end confdefs.h. */ |
| 9318 | |
| 9319 | #include <netdb.h> |
| 9320 | |
| 9321 | int |
| 9322 | main (void) |
| 9323 | { |
| 9324 | |
| 9325 | char *name; |
| 9326 | struct hostent *he; |
| 9327 | struct hostent_data data; |
| 9328 | |
| 9329 | (void) gethostbyname_r(name, he, &data); |
| 9330 | |
| 9331 | ; |
| 9332 | return 0; |
| 9333 | } |
| 9334 | _ACEOF |
| 9335 | if ac_fn_c_try_compile "$LINENO" |
| 9336 | then : |
| 9337 | tcl_cv_api_gethostbyname_r_3=yes |
| 9338 | else case e in #( |
| 9339 | e) tcl_cv_api_gethostbyname_r_3=no ;; |
| 9340 | esac |
| 9341 | fi |
| 9342 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9343 | esac |
| 9344 | fi |
| 9345 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_gethostbyname_r_3" >&5 |
| 9346 | printf "%s\n" "$tcl_cv_api_gethostbyname_r_3" >&6; } |
| 9347 | tcl_ok=$tcl_cv_api_gethostbyname_r_3 |
| 9348 | if test "$tcl_ok" = yes; then |
| 9349 | |
| 9350 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h |
| 9351 | |
| 9352 | fi |
| 9353 | fi |
| 9354 | fi |
| 9355 | if test "$tcl_ok" = yes; then |
| 9356 | |
| 9357 | printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h |
| 9358 | |
| 9359 | fi |
| 9360 | |
| 9361 | fi |
| 9362 | |
| 9363 | fi |
| 9364 | |
| 9365 | |
| 9366 | # Avoids picking hidden internal symbol from libc |
| 9367 | ac_fn_check_decl "$LINENO" "gethostbyaddr_r" "ac_cv_have_decl_gethostbyaddr_r" "#include <netdb.h> |
| 9368 | " "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 9369 | if test "x$ac_cv_have_decl_gethostbyaddr_r" = xyes |
| 9370 | then : |
| 9371 | ac_have_decl=1 |
| 9372 | else case e in #( |
| 9373 | e) ac_have_decl=0 ;; |
| 9374 | esac |
| 9375 | fi |
| 9376 | printf "%s\n" "#define HAVE_DECL_GETHOSTBYADDR_R $ac_have_decl" >>confdefs.h |
| 9377 | if test $ac_have_decl = 1 |
| 9378 | then : |
| 9379 | |
| 9380 | tcl_cv_api_gethostbyaddr_r=yes |
| 9381 | else case e in #( |
| 9382 | e) tcl_cv_api_gethostbyaddr_r=no ;; |
| 9383 | esac |
| 9384 | fi |
| 9385 | |
| 9386 | |
| 9387 | |
| 9388 | if test "$tcl_cv_api_gethostbyaddr_r" = yes; then |
| 9389 | ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r" |
| 9390 | if test "x$ac_cv_func_gethostbyaddr_r" = xyes |
| 9391 | then : |
| 9392 | |
| 9393 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr_r with 7 args" >&5 |
| 9394 | printf %s "checking for gethostbyaddr_r with 7 args... " >&6; } |
| 9395 | if test ${tcl_cv_api_gethostbyaddr_r_7+y} |
| 9396 | then : |
| 9397 | printf %s "(cached) " >&6 |
| 9398 | else case e in #( |
| 9399 | e) |
| 9400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9401 | /* end confdefs.h. */ |
| 9402 | |
| 9403 | #include <netdb.h> |
| 9404 | |
| 9405 | int |
| 9406 | main (void) |
| 9407 | { |
| 9408 | |
| 9409 | char *addr; |
| 9410 | int length; |
| 9411 | int type; |
| 9412 | struct hostent *result; |
| 9413 | char buffer[2048]; |
| 9414 | int buflen = 2048; |
| 9415 | int h_errnop; |
| 9416 | |
| 9417 | (void) gethostbyaddr_r(addr, length, type, result, buffer, buflen, |
| 9418 | &h_errnop); |
| 9419 | |
| 9420 | ; |
| 9421 | return 0; |
| 9422 | } |
| 9423 | _ACEOF |
| 9424 | if ac_fn_c_try_compile "$LINENO" |
| 9425 | then : |
| 9426 | tcl_cv_api_gethostbyaddr_r_7=yes |
| 9427 | else case e in #( |
| 9428 | e) tcl_cv_api_gethostbyaddr_r_7=no ;; |
| 9429 | esac |
| 9430 | fi |
| 9431 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9432 | esac |
| 9433 | fi |
| 9434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_gethostbyaddr_r_7" >&5 |
| 9435 | printf "%s\n" "$tcl_cv_api_gethostbyaddr_r_7" >&6; } |
| 9436 | tcl_ok=$tcl_cv_api_gethostbyaddr_r_7 |
| 9437 | if test "$tcl_ok" = yes; then |
| 9438 | |
| 9439 | printf "%s\n" "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h |
| 9440 | |
| 9441 | else |
| 9442 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr_r with 8 args" >&5 |
| 9443 | printf %s "checking for gethostbyaddr_r with 8 args... " >&6; } |
| 9444 | if test ${tcl_cv_api_gethostbyaddr_r_8+y} |
| 9445 | then : |
| 9446 | printf %s "(cached) " >&6 |
| 9447 | else case e in #( |
| 9448 | e) |
| 9449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9450 | /* end confdefs.h. */ |
| 9451 | |
| 9452 | #include <netdb.h> |
| 9453 | |
| 9454 | int |
| 9455 | main (void) |
| 9456 | { |
| 9457 | |
| 9458 | char *addr; |
| 9459 | int length; |
| 9460 | int type; |
| 9461 | struct hostent *result, *resultp; |
| 9462 | char buffer[2048]; |
| 9463 | int buflen = 2048; |
| 9464 | int h_errnop; |
| 9465 | |
| 9466 | (void) gethostbyaddr_r(addr, length, type, result, buffer, buflen, |
| 9467 | &resultp, &h_errnop); |
| 9468 | |
| 9469 | ; |
| 9470 | return 0; |
| 9471 | } |
| 9472 | _ACEOF |
| 9473 | if ac_fn_c_try_compile "$LINENO" |
| 9474 | then : |
| 9475 | tcl_cv_api_gethostbyaddr_r_8=yes |
| 9476 | else case e in #( |
| 9477 | e) tcl_cv_api_gethostbyaddr_r_8=no ;; |
| 9478 | esac |
| 9479 | fi |
| 9480 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9481 | esac |
| 9482 | fi |
| 9483 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_gethostbyaddr_r_8" >&5 |
| 9484 | printf "%s\n" "$tcl_cv_api_gethostbyaddr_r_8" >&6; } |
| 9485 | tcl_ok=$tcl_cv_api_gethostbyaddr_r_8 |
| 9486 | if test "$tcl_ok" = yes; then |
| 9487 | |
| 9488 | printf "%s\n" "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h |
| 9489 | |
| 9490 | fi |
| 9491 | fi |
| 9492 | if test "$tcl_ok" = yes; then |
| 9493 | |
| 9494 | printf "%s\n" "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h |
| 9495 | |
| 9496 | fi |
| 9497 | |
| 9498 | fi |
| 9499 | |
| 9500 | fi |
| 9501 | |
| 9502 | fi |
| 9503 | fi |
| 9504 | |
| 9505 | #--------------------------------------------------------------------------- |
| 9506 | # Check for serial port interface. |
| 9507 | # |
| 9508 | # termios.h is present on all POSIX systems. |
| 9509 | # sys/ioctl.h is almost always present, though what it contains |
| 9510 | # is system-specific. |
| 9511 | # sys/modem.h is needed on HP-UX. |
| 9512 | #--------------------------------------------------------------------------- |
| 9513 | |
| 9514 | ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" |
| 9515 | if test "x$ac_cv_header_termios_h" = xyes |
| 9516 | then : |
| 9517 | printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h |
| 9518 | |
| 9519 | fi |
| 9520 | |
| 9521 | ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 9522 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
| 9523 | then : |
| 9524 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
| 9525 | |
| 9526 | fi |
| 9527 | |
| 9528 | ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default" |
| 9529 | if test "x$ac_cv_header_sys_modem_h" = xyes |
| 9530 | then : |
| 9531 | printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h |
| 9532 | |
| 9533 | fi |
| 9534 | |
| 9535 | |
| 9536 | #-------------------------------------------------------------------- |
| 9537 | # Include sys/select.h if it exists and if it supplies things |
| 9538 | # that appear to be useful and aren't already in sys/types.h. |
| 9539 | # This appears to be true only on the RS/6000 under AIX. Some |
| 9540 | # systems like OSF/1 have a sys/select.h that's of no use, and |
| 9541 | # other systems like SCO UNIX have a sys/select.h that's |
| 9542 | # pernicious. If "fd_set" isn't defined anywhere then set a |
| 9543 | # special flag. |
| 9544 | #-------------------------------------------------------------------- |
| 9545 | |
| 9546 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fd_set in sys/types" >&5 |
| 9547 | printf %s "checking for fd_set in sys/types... " >&6; } |
| 9548 | if test ${tcl_cv_type_fd_set+y} |
| 9549 | then : |
| 9550 | printf %s "(cached) " >&6 |
| 9551 | else case e in #( |
| 9552 | e) |
| 9553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9554 | /* end confdefs.h. */ |
| 9555 | #include <sys/types.h> |
| 9556 | int |
| 9557 | main (void) |
| 9558 | { |
| 9559 | fd_set readMask, writeMask; |
| 9560 | ; |
| 9561 | return 0; |
| 9562 | } |
| 9563 | _ACEOF |
| 9564 | if ac_fn_c_try_compile "$LINENO" |
| 9565 | then : |
| 9566 | tcl_cv_type_fd_set=yes |
| 9567 | else case e in #( |
| 9568 | e) tcl_cv_type_fd_set=no ;; |
| 9569 | esac |
| 9570 | fi |
| 9571 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9572 | esac |
| 9573 | fi |
| 9574 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_type_fd_set" >&5 |
| 9575 | printf "%s\n" "$tcl_cv_type_fd_set" >&6; } |
| 9576 | tcl_ok=$tcl_cv_type_fd_set |
| 9577 | if test $tcl_ok = no; then |
| 9578 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fd_mask in sys/select" >&5 |
| 9579 | printf %s "checking for fd_mask in sys/select... " >&6; } |
| 9580 | if test ${tcl_cv_grep_fd_mask+y} |
| 9581 | then : |
| 9582 | printf %s "(cached) " >&6 |
| 9583 | else case e in #( |
| 9584 | e) |
| 9585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9586 | /* end confdefs.h. */ |
| 9587 | #include <sys/select.h> |
| 9588 | |
| 9589 | _ACEOF |
| 9590 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9591 | $EGREP_TRADITIONAL "fd_mask" >/dev/null 2>&1 |
| 9592 | then : |
| 9593 | tcl_cv_grep_fd_mask=present |
| 9594 | else case e in #( |
| 9595 | e) tcl_cv_grep_fd_mask=missing ;; |
| 9596 | esac |
| 9597 | fi |
| 9598 | rm -rf conftest* |
| 9599 | ;; |
| 9600 | esac |
| 9601 | fi |
| 9602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_grep_fd_mask" >&5 |
| 9603 | printf "%s\n" "$tcl_cv_grep_fd_mask" >&6; } |
| 9604 | if test $tcl_cv_grep_fd_mask = present; then |
| 9605 | |
| 9606 | printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
| 9607 | |
| 9608 | tcl_ok=yes |
| 9609 | fi |
| 9610 | fi |
| 9611 | if test $tcl_ok = no; then |
| 9612 | |
| 9613 | printf "%s\n" "#define NO_FD_SET 1" >>confdefs.h |
| 9614 | |
| 9615 | fi |
| 9616 | |
| 9617 | #------------------------------------------------------------------------------ |
| 9618 | # Find out all about time handling differences. |
| 9619 | #------------------------------------------------------------------------------ |
| 9620 | |
| 9621 | |
| 9622 | |
| 9623 | ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 9624 | if test "x$ac_cv_header_sys_time_h" = xyes |
| 9625 | then : |
| 9626 | printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 9627 | |
| 9628 | fi |
| 9629 | |
| 9630 | |
| 9631 | # Obsolete code to be removed. |
| 9632 | if test $ac_cv_header_sys_time_h = yes; then |
| 9633 | |
| 9634 | printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| 9635 | |
| 9636 | fi |
| 9637 | # End of obsolete code. |
| 9638 | |
| 9639 | |
| 9640 | ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" |
| 9641 | if test "x$ac_cv_func_gmtime_r" = xyes |
| 9642 | then : |
| 9643 | printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h |
| 9644 | |
| 9645 | fi |
| 9646 | ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" |
| 9647 | if test "x$ac_cv_func_localtime_r" = xyes |
| 9648 | then : |
| 9649 | printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h |
| 9650 | |
| 9651 | fi |
| 9652 | ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" |
| 9653 | if test "x$ac_cv_func_mktime" = xyes |
| 9654 | then : |
| 9655 | printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h |
| 9656 | |
| 9657 | fi |
| 9658 | |
| 9659 | |
| 9660 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking tm_tzadj in struct tm" >&5 |
| 9661 | printf %s "checking tm_tzadj in struct tm... " >&6; } |
| 9662 | if test ${tcl_cv_member_tm_tzadj+y} |
| 9663 | then : |
| 9664 | printf %s "(cached) " >&6 |
| 9665 | else case e in #( |
| 9666 | e) |
| 9667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9668 | /* end confdefs.h. */ |
| 9669 | #include <time.h> |
| 9670 | int |
| 9671 | main (void) |
| 9672 | { |
| 9673 | struct tm tm; (void)tm.tm_tzadj; |
| 9674 | ; |
| 9675 | return 0; |
| 9676 | } |
| 9677 | _ACEOF |
| 9678 | if ac_fn_c_try_compile "$LINENO" |
| 9679 | then : |
| 9680 | tcl_cv_member_tm_tzadj=yes |
| 9681 | else case e in #( |
| 9682 | e) tcl_cv_member_tm_tzadj=no ;; |
| 9683 | esac |
| 9684 | fi |
| 9685 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9686 | esac |
| 9687 | fi |
| 9688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_member_tm_tzadj" >&5 |
| 9689 | printf "%s\n" "$tcl_cv_member_tm_tzadj" >&6; } |
| 9690 | if test $tcl_cv_member_tm_tzadj = yes ; then |
| 9691 | |
| 9692 | printf "%s\n" "#define HAVE_TM_TZADJ 1" >>confdefs.h |
| 9693 | |
| 9694 | fi |
| 9695 | |
| 9696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking tm_gmtoff in struct tm" >&5 |
| 9697 | printf %s "checking tm_gmtoff in struct tm... " >&6; } |
| 9698 | if test ${tcl_cv_member_tm_gmtoff+y} |
| 9699 | then : |
| 9700 | printf %s "(cached) " >&6 |
| 9701 | else case e in #( |
| 9702 | e) |
| 9703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9704 | /* end confdefs.h. */ |
| 9705 | #include <time.h> |
| 9706 | int |
| 9707 | main (void) |
| 9708 | { |
| 9709 | struct tm tm; (void)tm.tm_gmtoff; |
| 9710 | ; |
| 9711 | return 0; |
| 9712 | } |
| 9713 | _ACEOF |
| 9714 | if ac_fn_c_try_compile "$LINENO" |
| 9715 | then : |
| 9716 | tcl_cv_member_tm_gmtoff=yes |
| 9717 | else case e in #( |
| 9718 | e) tcl_cv_member_tm_gmtoff=no ;; |
| 9719 | esac |
| 9720 | fi |
| 9721 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9722 | esac |
| 9723 | fi |
| 9724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_member_tm_gmtoff" >&5 |
| 9725 | printf "%s\n" "$tcl_cv_member_tm_gmtoff" >&6; } |
| 9726 | if test $tcl_cv_member_tm_gmtoff = yes ; then |
| 9727 | |
| 9728 | printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h |
| 9729 | |
| 9730 | fi |
| 9731 | |
| 9732 | # |
| 9733 | # Its important to include time.h in this check, as some systems |
| 9734 | # (like convex) have timezone functions, etc. |
| 9735 | # |
| 9736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking long timezone variable" >&5 |
| 9737 | printf %s "checking long timezone variable... " >&6; } |
| 9738 | if test ${tcl_cv_timezone_long+y} |
| 9739 | then : |
| 9740 | printf %s "(cached) " >&6 |
| 9741 | else case e in #( |
| 9742 | e) |
| 9743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9744 | /* end confdefs.h. */ |
| 9745 | #include <time.h> |
| 9746 | #include <stdlib.h> |
| 9747 | int |
| 9748 | main (void) |
| 9749 | { |
| 9750 | extern long timezone; |
| 9751 | timezone += 1; |
| 9752 | exit (0); |
| 9753 | ; |
| 9754 | return 0; |
| 9755 | } |
| 9756 | _ACEOF |
| 9757 | if ac_fn_c_try_compile "$LINENO" |
| 9758 | then : |
| 9759 | tcl_cv_timezone_long=yes |
| 9760 | else case e in #( |
| 9761 | e) tcl_cv_timezone_long=no ;; |
| 9762 | esac |
| 9763 | fi |
| 9764 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9765 | esac |
| 9766 | fi |
| 9767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_timezone_long" >&5 |
| 9768 | printf "%s\n" "$tcl_cv_timezone_long" >&6; } |
| 9769 | if test $tcl_cv_timezone_long = yes ; then |
| 9770 | |
| 9771 | printf "%s\n" "#define HAVE_TIMEZONE_VAR 1" >>confdefs.h |
| 9772 | |
| 9773 | else |
| 9774 | # |
| 9775 | # On some systems (eg IRIX 6.2), timezone is a time_t and not a long. |
| 9776 | # |
| 9777 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking time_t timezone variable" >&5 |
| 9778 | printf %s "checking time_t timezone variable... " >&6; } |
| 9779 | if test ${tcl_cv_timezone_time+y} |
| 9780 | then : |
| 9781 | printf %s "(cached) " >&6 |
| 9782 | else case e in #( |
| 9783 | e) |
| 9784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9785 | /* end confdefs.h. */ |
| 9786 | #include <time.h> |
| 9787 | #include <stdlib.h> |
| 9788 | int |
| 9789 | main (void) |
| 9790 | { |
| 9791 | extern time_t timezone; |
| 9792 | timezone += 1; |
| 9793 | exit (0); |
| 9794 | ; |
| 9795 | return 0; |
| 9796 | } |
| 9797 | _ACEOF |
| 9798 | if ac_fn_c_try_compile "$LINENO" |
| 9799 | then : |
| 9800 | tcl_cv_timezone_time=yes |
| 9801 | else case e in #( |
| 9802 | e) tcl_cv_timezone_time=no ;; |
| 9803 | esac |
| 9804 | fi |
| 9805 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9806 | esac |
| 9807 | fi |
| 9808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_timezone_time" >&5 |
| 9809 | printf "%s\n" "$tcl_cv_timezone_time" >&6; } |
| 9810 | if test $tcl_cv_timezone_time = yes ; then |
| 9811 | |
| 9812 | printf "%s\n" "#define HAVE_TIMEZONE_VAR 1" >>confdefs.h |
| 9813 | |
| 9814 | fi |
| 9815 | fi |
| 9816 | |
| 9817 | |
| 9818 | #-------------------------------------------------------------------- |
| 9819 | # Some systems (e.g., IRIX 4.0.5) lack some fields in struct stat. But |
| 9820 | # we might be able to use fstatfs instead. Some systems (OpenBSD?) also |
| 9821 | # lack blkcnt_t. |
| 9822 | #-------------------------------------------------------------------- |
| 9823 | |
| 9824 | if test "$ac_cv_cygwin" != "yes"; then |
| 9825 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
| 9826 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes |
| 9827 | then : |
| 9828 | |
| 9829 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h |
| 9830 | |
| 9831 | |
| 9832 | fi |
| 9833 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
| 9834 | if test "x$ac_cv_member_struct_stat_st_blksize" = xyes |
| 9835 | then : |
| 9836 | |
| 9837 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h |
| 9838 | |
| 9839 | |
| 9840 | fi |
| 9841 | |
| 9842 | fi |
| 9843 | ac_fn_c_check_type "$LINENO" "blkcnt_t" "ac_cv_type_blkcnt_t" "$ac_includes_default" |
| 9844 | if test "x$ac_cv_type_blkcnt_t" = xyes |
| 9845 | then : |
| 9846 | |
| 9847 | printf "%s\n" "#define HAVE_BLKCNT_T 1" >>confdefs.h |
| 9848 | |
| 9849 | |
| 9850 | fi |
| 9851 | |
| 9852 | ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs" |
| 9853 | if test "x$ac_cv_func_fstatfs" = xyes |
| 9854 | then : |
| 9855 | |
| 9856 | else case e in #( |
| 9857 | e) |
| 9858 | printf "%s\n" "#define NO_FSTATFS 1" >>confdefs.h |
| 9859 | ;; |
| 9860 | esac |
| 9861 | fi |
| 9862 | |
| 9863 | |
| 9864 | #-------------------------------------------------------------------- |
| 9865 | # Some system have no memcmp or it does not work with 8 bit data, this |
| 9866 | # checks it and add memcmp.o to LIBOBJS if needed |
| 9867 | #-------------------------------------------------------------------- |
| 9868 | |
| 9869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
| 9870 | printf %s "checking for working memcmp... " >&6; } |
| 9871 | if test ${ac_cv_func_memcmp_working+y} |
| 9872 | then : |
| 9873 | printf %s "(cached) " >&6 |
| 9874 | else case e in #( |
| 9875 | e) if test "$cross_compiling" = yes |
| 9876 | then : |
| 9877 | ac_cv_func_memcmp_working=no |
| 9878 | else case e in #( |
| 9879 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9880 | /* end confdefs.h. */ |
| 9881 | $ac_includes_default |
| 9882 | int |
| 9883 | main (void) |
| 9884 | { |
| 9885 | |
| 9886 | /* Some versions of memcmp are not 8-bit clean. */ |
| 9887 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 9888 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 9889 | return 1; |
| 9890 | |
| 9891 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 9892 | or more and with at least one buffer not starting on a 4-byte boundary. |
| 9893 | William Lewis provided this test program. */ |
| 9894 | { |
| 9895 | char foo[21]; |
| 9896 | char bar[21]; |
| 9897 | int i; |
| 9898 | for (i = 0; i < 4; i++) |
| 9899 | { |
| 9900 | char *a = foo + i; |
| 9901 | char *b = bar + i; |
| 9902 | strcpy (a, "--------01111111"); |
| 9903 | strcpy (b, "--------10000000"); |
| 9904 | if (memcmp (a, b, 16) >= 0) |
| 9905 | return 1; |
| 9906 | } |
| 9907 | return 0; |
| 9908 | } |
| 9909 | |
| 9910 | ; |
| 9911 | return 0; |
| 9912 | } |
| 9913 | _ACEOF |
| 9914 | if ac_fn_c_try_run "$LINENO" |
| 9915 | then : |
| 9916 | ac_cv_func_memcmp_working=yes |
| 9917 | else case e in #( |
| 9918 | e) ac_cv_func_memcmp_working=no ;; |
| 9919 | esac |
| 9920 | fi |
| 9921 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 9922 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9923 | esac |
| 9924 | fi |
| 9925 | ;; |
| 9926 | esac |
| 9927 | fi |
| 9928 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
| 9929 | printf "%s\n" "$ac_cv_func_memcmp_working" >&6; } |
| 9930 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 9931 | *" memcmp.$ac_objext "* ) ;; |
| 9932 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 9933 | ;; |
| 9934 | esac |
| 9935 | |
| 9936 | |
| 9937 | |
| 9938 | #-------------------------------------------------------------------- |
| 9939 | # Some system like SunOS 4 and other BSD like systems have no memmove |
| 9940 | # (we assume they have bcopy instead). {The replacement define is in |
| 9941 | # compat/string.h} |
| 9942 | #-------------------------------------------------------------------- |
| 9943 | |
| 9944 | ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
| 9945 | if test "x$ac_cv_func_memmove" = xyes |
| 9946 | then : |
| 9947 | |
| 9948 | else case e in #( |
| 9949 | e) |
| 9950 | |
| 9951 | printf "%s\n" "#define NO_MEMMOVE 1" >>confdefs.h |
| 9952 | |
| 9953 | |
| 9954 | printf "%s\n" "#define NO_STRING_H 1" >>confdefs.h |
| 9955 | ;; |
| 9956 | esac |
| 9957 | fi |
| 9958 | |
| 9959 | |
| 9960 | #-------------------------------------------------------------------- |
| 9961 | # On some systems strstr is broken: it returns a pointer even if |
| 9962 | # the original string is empty. |
| 9963 | #-------------------------------------------------------------------- |
| 9964 | |
| 9965 | |
| 9966 | ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" |
| 9967 | if test "x$ac_cv_func_strstr" = xyes |
| 9968 | then : |
| 9969 | tcl_ok=1 |
| 9970 | else case e in #( |
| 9971 | e) tcl_ok=0 ;; |
| 9972 | esac |
| 9973 | fi |
| 9974 | |
| 9975 | if test "$tcl_ok" = 1; then |
| 9976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking proper strstr implementation" >&5 |
| 9977 | printf %s "checking proper strstr implementation... " >&6; } |
| 9978 | if test ${tcl_cv_strstr_unbroken+y} |
| 9979 | then : |
| 9980 | printf %s "(cached) " >&6 |
| 9981 | else case e in #( |
| 9982 | e) if test "$cross_compiling" = yes |
| 9983 | then : |
| 9984 | tcl_cv_strstr_unbroken=unknown |
| 9985 | else case e in #( |
| 9986 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9987 | /* end confdefs.h. */ |
| 9988 | |
| 9989 | #include <stdlib.h> |
| 9990 | #include <string.h> |
| 9991 | int main() { |
| 9992 | exit(strstr("\0test", "test") ? 1 : 0); |
| 9993 | } |
| 9994 | _ACEOF |
| 9995 | if ac_fn_c_try_run "$LINENO" |
| 9996 | then : |
| 9997 | tcl_cv_strstr_unbroken=ok |
| 9998 | else case e in #( |
| 9999 | e) tcl_cv_strstr_unbroken=broken ;; |
| 10000 | esac |
| 10001 | fi |
| 10002 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10003 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10004 | esac |
| 10005 | fi |
| 10006 | ;; |
| 10007 | esac |
| 10008 | fi |
| 10009 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_strstr_unbroken" >&5 |
| 10010 | printf "%s\n" "$tcl_cv_strstr_unbroken" >&6; } |
| 10011 | if test "$tcl_cv_strstr_unbroken" = "ok"; then |
| 10012 | tcl_ok=1 |
| 10013 | else |
| 10014 | tcl_ok=0 |
| 10015 | fi |
| 10016 | fi |
| 10017 | if test "$tcl_ok" = 0; then |
| 10018 | case " $LIBOBJS " in |
| 10019 | *" strstr.$ac_objext "* ) ;; |
| 10020 | *) LIBOBJS="$LIBOBJS strstr.$ac_objext" |
| 10021 | ;; |
| 10022 | esac |
| 10023 | |
| 10024 | USE_COMPAT=1 |
| 10025 | fi |
| 10026 | |
| 10027 | |
| 10028 | #-------------------------------------------------------------------- |
| 10029 | # Check for strtoul function. This is tricky because under some |
| 10030 | # versions of AIX strtoul returns an incorrect terminator |
| 10031 | # pointer for the string "0". |
| 10032 | #-------------------------------------------------------------------- |
| 10033 | |
| 10034 | |
| 10035 | ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul" |
| 10036 | if test "x$ac_cv_func_strtoul" = xyes |
| 10037 | then : |
| 10038 | tcl_ok=1 |
| 10039 | else case e in #( |
| 10040 | e) tcl_ok=0 ;; |
| 10041 | esac |
| 10042 | fi |
| 10043 | |
| 10044 | if test "$tcl_ok" = 1; then |
| 10045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking proper strtoul implementation" >&5 |
| 10046 | printf %s "checking proper strtoul implementation... " >&6; } |
| 10047 | if test ${tcl_cv_strtoul_unbroken+y} |
| 10048 | then : |
| 10049 | printf %s "(cached) " >&6 |
| 10050 | else case e in #( |
| 10051 | e) if test "$cross_compiling" = yes |
| 10052 | then : |
| 10053 | tcl_cv_strtoul_unbroken=unknown |
| 10054 | else case e in #( |
| 10055 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10056 | /* end confdefs.h. */ |
| 10057 | |
| 10058 | #include <stdlib.h> |
| 10059 | #include <string.h> |
| 10060 | int main() { |
| 10061 | char *term, *string = "0"; |
| 10062 | exit(strtoul(string,&term,0) != 0 || term != string+1); |
| 10063 | } |
| 10064 | _ACEOF |
| 10065 | if ac_fn_c_try_run "$LINENO" |
| 10066 | then : |
| 10067 | tcl_cv_strtoul_unbroken=ok |
| 10068 | else case e in #( |
| 10069 | e) tcl_cv_strtoul_unbroken=broken ;; |
| 10070 | esac |
| 10071 | fi |
| 10072 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10073 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10074 | esac |
| 10075 | fi |
| 10076 | ;; |
| 10077 | esac |
| 10078 | fi |
| 10079 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_strtoul_unbroken" >&5 |
| 10080 | printf "%s\n" "$tcl_cv_strtoul_unbroken" >&6; } |
| 10081 | if test "$tcl_cv_strtoul_unbroken" = "ok"; then |
| 10082 | tcl_ok=1 |
| 10083 | else |
| 10084 | tcl_ok=0 |
| 10085 | fi |
| 10086 | fi |
| 10087 | if test "$tcl_ok" = 0; then |
| 10088 | case " $LIBOBJS " in |
| 10089 | *" strtoul.$ac_objext "* ) ;; |
| 10090 | *) LIBOBJS="$LIBOBJS strtoul.$ac_objext" |
| 10091 | ;; |
| 10092 | esac |
| 10093 | |
| 10094 | USE_COMPAT=1 |
| 10095 | fi |
| 10096 | |
| 10097 | |
| 10098 | #-------------------------------------------------------------------- |
| 10099 | # Check for various typedefs and provide substitutes if |
| 10100 | # they don't exist. |
| 10101 | #-------------------------------------------------------------------- |
| 10102 | |
| 10103 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 10104 | if test "x$ac_cv_type_mode_t" = xyes |
| 10105 | then : |
| 10106 | |
| 10107 | else case e in #( |
| 10108 | e) |
| 10109 | printf "%s\n" "#define mode_t int" >>confdefs.h |
| 10110 | ;; |
| 10111 | esac |
| 10112 | fi |
| 10113 | |
| 10114 | |
| 10115 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 10116 | " |
| 10117 | if test "x$ac_cv_type_pid_t" = xyes |
| 10118 | then : |
| 10119 | |
| 10120 | else case e in #( |
| 10121 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10122 | /* end confdefs.h. */ |
| 10123 | |
| 10124 | #if defined _WIN64 && !defined __CYGWIN__ |
| 10125 | LLP64 |
| 10126 | #endif |
| 10127 | |
| 10128 | int |
| 10129 | main (void) |
| 10130 | { |
| 10131 | |
| 10132 | ; |
| 10133 | return 0; |
| 10134 | } |
| 10135 | |
| 10136 | _ACEOF |
| 10137 | if ac_fn_c_try_compile "$LINENO" |
| 10138 | then : |
| 10139 | ac_pid_type='int' |
| 10140 | else case e in #( |
| 10141 | e) ac_pid_type='__int64' ;; |
| 10142 | esac |
| 10143 | fi |
| 10144 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10145 | |
| 10146 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 10147 | |
| 10148 | ;; |
| 10149 | esac |
| 10150 | fi |
| 10151 | |
| 10152 | |
| 10153 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 10154 | if test "x$ac_cv_type_size_t" = xyes |
| 10155 | then : |
| 10156 | |
| 10157 | else case e in #( |
| 10158 | e) |
| 10159 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 10160 | ;; |
| 10161 | esac |
| 10162 | fi |
| 10163 | |
| 10164 | ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" |
| 10165 | if test "x$ac_cv_type_uid_t" = xyes |
| 10166 | then : |
| 10167 | |
| 10168 | else case e in #( |
| 10169 | e) |
| 10170 | printf "%s\n" "#define uid_t int" >>confdefs.h |
| 10171 | ;; |
| 10172 | esac |
| 10173 | fi |
| 10174 | |
| 10175 | ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" |
| 10176 | if test "x$ac_cv_type_gid_t" = xyes |
| 10177 | then : |
| 10178 | |
| 10179 | else case e in #( |
| 10180 | e) |
| 10181 | printf "%s\n" "#define gid_t int" >>confdefs.h |
| 10182 | ;; |
| 10183 | esac |
| 10184 | fi |
| 10185 | |
| 10186 | |
| 10187 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 |
| 10188 | printf %s "checking for socklen_t... " >&6; } |
| 10189 | if test ${tcl_cv_type_socklen_t+y} |
| 10190 | then : |
| 10191 | printf %s "(cached) " >&6 |
| 10192 | else case e in #( |
| 10193 | e) |
| 10194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10195 | /* end confdefs.h. */ |
| 10196 | |
| 10197 | #include <sys/types.h> |
| 10198 | #include <sys/socket.h> |
| 10199 | |
| 10200 | int |
| 10201 | main (void) |
| 10202 | { |
| 10203 | |
| 10204 | socklen_t foo; |
| 10205 | |
| 10206 | ; |
| 10207 | return 0; |
| 10208 | } |
| 10209 | _ACEOF |
| 10210 | if ac_fn_c_try_compile "$LINENO" |
| 10211 | then : |
| 10212 | tcl_cv_type_socklen_t=yes |
| 10213 | else case e in #( |
| 10214 | e) tcl_cv_type_socklen_t=no ;; |
| 10215 | esac |
| 10216 | fi |
| 10217 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10218 | esac |
| 10219 | fi |
| 10220 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_type_socklen_t" >&5 |
| 10221 | printf "%s\n" "$tcl_cv_type_socklen_t" >&6; } |
| 10222 | if test $tcl_cv_type_socklen_t = no; then |
| 10223 | |
| 10224 | printf "%s\n" "#define socklen_t int" >>confdefs.h |
| 10225 | |
| 10226 | fi |
| 10227 | |
| 10228 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 10229 | if test "x$ac_cv_type_intptr_t" = xyes |
| 10230 | then : |
| 10231 | |
| 10232 | |
| 10233 | printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h |
| 10234 | |
| 10235 | else case e in #( |
| 10236 | e) |
| 10237 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pointer-size signed integer type" >&5 |
| 10238 | printf %s "checking for pointer-size signed integer type... " >&6; } |
| 10239 | if test ${tcl_cv_intptr_t+y} |
| 10240 | then : |
| 10241 | printf %s "(cached) " >&6 |
| 10242 | else case e in #( |
| 10243 | e) |
| 10244 | for tcl_cv_intptr_t in "int" "long" "long long" none; do |
| 10245 | if test "$tcl_cv_intptr_t" != none; then |
| 10246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10247 | /* end confdefs.h. */ |
| 10248 | $ac_includes_default |
| 10249 | int |
| 10250 | main (void) |
| 10251 | { |
| 10252 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_intptr_t))]; |
| 10253 | test_array [0] = 0; |
| 10254 | return test_array [0]; |
| 10255 | |
| 10256 | ; |
| 10257 | return 0; |
| 10258 | } |
| 10259 | _ACEOF |
| 10260 | if ac_fn_c_try_compile "$LINENO" |
| 10261 | then : |
| 10262 | tcl_ok=yes |
| 10263 | else case e in #( |
| 10264 | e) tcl_ok=no ;; |
| 10265 | esac |
| 10266 | fi |
| 10267 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10268 | test "$tcl_ok" = yes && break; fi |
| 10269 | done ;; |
| 10270 | esac |
| 10271 | fi |
| 10272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_intptr_t" >&5 |
| 10273 | printf "%s\n" "$tcl_cv_intptr_t" >&6; } |
| 10274 | if test "$tcl_cv_intptr_t" != none; then |
| 10275 | |
| 10276 | printf "%s\n" "#define intptr_t $tcl_cv_intptr_t" >>confdefs.h |
| 10277 | |
| 10278 | fi |
| 10279 | ;; |
| 10280 | esac |
| 10281 | fi |
| 10282 | |
| 10283 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
| 10284 | if test "x$ac_cv_type_uintptr_t" = xyes |
| 10285 | then : |
| 10286 | |
| 10287 | |
| 10288 | printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h |
| 10289 | |
| 10290 | else case e in #( |
| 10291 | e) |
| 10292 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pointer-size unsigned integer type" >&5 |
| 10293 | printf %s "checking for pointer-size unsigned integer type... " >&6; } |
| 10294 | if test ${tcl_cv_uintptr_t+y} |
| 10295 | then : |
| 10296 | printf %s "(cached) " >&6 |
| 10297 | else case e in #( |
| 10298 | e) |
| 10299 | for tcl_cv_uintptr_t in "unsigned int" "unsigned long" "unsigned long long" \ |
| 10300 | none; do |
| 10301 | if test "$tcl_cv_uintptr_t" != none; then |
| 10302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10303 | /* end confdefs.h. */ |
| 10304 | $ac_includes_default |
| 10305 | int |
| 10306 | main (void) |
| 10307 | { |
| 10308 | static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($tcl_cv_uintptr_t))]; |
| 10309 | test_array [0] = 0; |
| 10310 | return test_array [0]; |
| 10311 | |
| 10312 | ; |
| 10313 | return 0; |
| 10314 | } |
| 10315 | _ACEOF |
| 10316 | if ac_fn_c_try_compile "$LINENO" |
| 10317 | then : |
| 10318 | tcl_ok=yes |
| 10319 | else case e in #( |
| 10320 | e) tcl_ok=no ;; |
| 10321 | esac |
| 10322 | fi |
| 10323 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10324 | test "$tcl_ok" = yes && break; fi |
| 10325 | done ;; |
| 10326 | esac |
| 10327 | fi |
| 10328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_uintptr_t" >&5 |
| 10329 | printf "%s\n" "$tcl_cv_uintptr_t" >&6; } |
| 10330 | if test "$tcl_cv_uintptr_t" != none; then |
| 10331 | |
| 10332 | printf "%s\n" "#define uintptr_t $tcl_cv_uintptr_t" >>confdefs.h |
| 10333 | |
| 10334 | fi |
| 10335 | ;; |
| 10336 | esac |
| 10337 | fi |
| 10338 | |
| 10339 | |
| 10340 | #-------------------------------------------------------------------- |
| 10341 | # If a system doesn't have an opendir function (man, that's old!) |
| 10342 | # then we have to supply a different version of dirent.h which |
| 10343 | # is compatible with the substitute version of opendir that's |
| 10344 | # provided. This version only works with V7-style directories. |
| 10345 | #-------------------------------------------------------------------- |
| 10346 | |
| 10347 | ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" |
| 10348 | if test "x$ac_cv_func_opendir" = xyes |
| 10349 | then : |
| 10350 | |
| 10351 | else case e in #( |
| 10352 | e) |
| 10353 | printf "%s\n" "#define USE_DIRENT2_H 1" >>confdefs.h |
| 10354 | ;; |
| 10355 | esac |
| 10356 | fi |
| 10357 | |
| 10358 | |
| 10359 | #-------------------------------------------------------------------- |
| 10360 | # The check below checks whether <sys/wait.h> defines the type |
| 10361 | # "union wait" correctly. It's needed because of weirdness in |
| 10362 | # HP-UX where "union wait" is defined in both the BSD and SYS-V |
| 10363 | # environments. Checking the usability of WIFEXITED seems to do |
| 10364 | # the trick. |
| 10365 | #-------------------------------------------------------------------- |
| 10366 | |
| 10367 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking union wait" >&5 |
| 10368 | printf %s "checking union wait... " >&6; } |
| 10369 | if test ${tcl_cv_union_wait+y} |
| 10370 | then : |
| 10371 | printf %s "(cached) " >&6 |
| 10372 | else case e in #( |
| 10373 | e) |
| 10374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10375 | /* end confdefs.h. */ |
| 10376 | #include <sys/types.h> |
| 10377 | #include <sys/wait.h> |
| 10378 | int |
| 10379 | main (void) |
| 10380 | { |
| 10381 | |
| 10382 | union wait x; |
| 10383 | WIFEXITED(x); /* Generates compiler error if WIFEXITED |
| 10384 | * uses an int. */ |
| 10385 | |
| 10386 | ; |
| 10387 | return 0; |
| 10388 | } |
| 10389 | _ACEOF |
| 10390 | if ac_fn_c_try_link "$LINENO" |
| 10391 | then : |
| 10392 | tcl_cv_union_wait=yes |
| 10393 | else case e in #( |
| 10394 | e) tcl_cv_union_wait=no ;; |
| 10395 | esac |
| 10396 | fi |
| 10397 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10398 | conftest$ac_exeext conftest.$ac_ext ;; |
| 10399 | esac |
| 10400 | fi |
| 10401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_union_wait" >&5 |
| 10402 | printf "%s\n" "$tcl_cv_union_wait" >&6; } |
| 10403 | if test $tcl_cv_union_wait = no; then |
| 10404 | |
| 10405 | printf "%s\n" "#define NO_UNION_WAIT 1" >>confdefs.h |
| 10406 | |
| 10407 | fi |
| 10408 | |
| 10409 | #-------------------------------------------------------------------- |
| 10410 | # Check whether there is an strncasecmp function on this system. |
| 10411 | # This is a bit tricky because under SCO it's in -lsocket and |
| 10412 | # under Sequent Dynix it's in -linet. |
| 10413 | #-------------------------------------------------------------------- |
| 10414 | |
| 10415 | ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" |
| 10416 | if test "x$ac_cv_func_strncasecmp" = xyes |
| 10417 | then : |
| 10418 | tcl_ok=1 |
| 10419 | else case e in #( |
| 10420 | e) tcl_ok=0 ;; |
| 10421 | esac |
| 10422 | fi |
| 10423 | |
| 10424 | if test "$tcl_ok" = 0; then |
| 10425 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strncasecmp in -lsocket" >&5 |
| 10426 | printf %s "checking for strncasecmp in -lsocket... " >&6; } |
| 10427 | if test ${ac_cv_lib_socket_strncasecmp+y} |
| 10428 | then : |
| 10429 | printf %s "(cached) " >&6 |
| 10430 | else case e in #( |
| 10431 | e) ac_check_lib_save_LIBS=$LIBS |
| 10432 | LIBS="-lsocket $LIBS" |
| 10433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10434 | /* end confdefs.h. */ |
| 10435 | |
| 10436 | /* Override any GCC internal prototype to avoid an error. |
| 10437 | Use char because int might match the return type of a GCC |
| 10438 | builtin and then its argument prototype would still apply. |
| 10439 | The 'extern "C"' is for builds by C++ compilers; |
| 10440 | although this is not generally supported in C code supporting it here |
| 10441 | has little cost and some practical benefit (sr 110532). */ |
| 10442 | #ifdef __cplusplus |
| 10443 | extern "C" |
| 10444 | #endif |
| 10445 | char strncasecmp (void); |
| 10446 | int |
| 10447 | main (void) |
| 10448 | { |
| 10449 | return strncasecmp (); |
| 10450 | ; |
| 10451 | return 0; |
| 10452 | } |
| 10453 | _ACEOF |
| 10454 | if ac_fn_c_try_link "$LINENO" |
| 10455 | then : |
| 10456 | ac_cv_lib_socket_strncasecmp=yes |
| 10457 | else case e in #( |
| 10458 | e) ac_cv_lib_socket_strncasecmp=no ;; |
| 10459 | esac |
| 10460 | fi |
| 10461 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10462 | conftest$ac_exeext conftest.$ac_ext |
| 10463 | LIBS=$ac_check_lib_save_LIBS ;; |
| 10464 | esac |
| 10465 | fi |
| 10466 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_strncasecmp" >&5 |
| 10467 | printf "%s\n" "$ac_cv_lib_socket_strncasecmp" >&6; } |
| 10468 | if test "x$ac_cv_lib_socket_strncasecmp" = xyes |
| 10469 | then : |
| 10470 | tcl_ok=1 |
| 10471 | else case e in #( |
| 10472 | e) tcl_ok=0 ;; |
| 10473 | esac |
| 10474 | fi |
| 10475 | |
| 10476 | fi |
| 10477 | if test "$tcl_ok" = 0; then |
| 10478 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strncasecmp in -linet" >&5 |
| 10479 | printf %s "checking for strncasecmp in -linet... " >&6; } |
| 10480 | if test ${ac_cv_lib_inet_strncasecmp+y} |
| 10481 | then : |
| 10482 | printf %s "(cached) " >&6 |
| 10483 | else case e in #( |
| 10484 | e) ac_check_lib_save_LIBS=$LIBS |
| 10485 | LIBS="-linet $LIBS" |
| 10486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10487 | /* end confdefs.h. */ |
| 10488 | |
| 10489 | /* Override any GCC internal prototype to avoid an error. |
| 10490 | Use char because int might match the return type of a GCC |
| 10491 | builtin and then its argument prototype would still apply. |
| 10492 | The 'extern "C"' is for builds by C++ compilers; |
| 10493 | although this is not generally supported in C code supporting it here |
| 10494 | has little cost and some practical benefit (sr 110532). */ |
| 10495 | #ifdef __cplusplus |
| 10496 | extern "C" |
| 10497 | #endif |
| 10498 | char strncasecmp (void); |
| 10499 | int |
| 10500 | main (void) |
| 10501 | { |
| 10502 | return strncasecmp (); |
| 10503 | ; |
| 10504 | return 0; |
| 10505 | } |
| 10506 | _ACEOF |
| 10507 | if ac_fn_c_try_link "$LINENO" |
| 10508 | then : |
| 10509 | ac_cv_lib_inet_strncasecmp=yes |
| 10510 | else case e in #( |
| 10511 | e) ac_cv_lib_inet_strncasecmp=no ;; |
| 10512 | esac |
| 10513 | fi |
| 10514 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10515 | conftest$ac_exeext conftest.$ac_ext |
| 10516 | LIBS=$ac_check_lib_save_LIBS ;; |
| 10517 | esac |
| 10518 | fi |
| 10519 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_strncasecmp" >&5 |
| 10520 | printf "%s\n" "$ac_cv_lib_inet_strncasecmp" >&6; } |
| 10521 | if test "x$ac_cv_lib_inet_strncasecmp" = xyes |
| 10522 | then : |
| 10523 | tcl_ok=1 |
| 10524 | else case e in #( |
| 10525 | e) tcl_ok=0 ;; |
| 10526 | esac |
| 10527 | fi |
| 10528 | |
| 10529 | fi |
| 10530 | if test "$tcl_ok" = 0; then |
| 10531 | case " $LIBOBJS " in |
| 10532 | *" strncasecmp.$ac_objext "* ) ;; |
| 10533 | *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" |
| 10534 | ;; |
| 10535 | esac |
| 10536 | |
| 10537 | USE_COMPAT=1 |
| 10538 | fi |
| 10539 | |
| 10540 | #-------------------------------------------------------------------- |
| 10541 | # The code below deals with several issues related to gettimeofday: |
| 10542 | # 1. Some systems don't provide a gettimeofday function at all |
| 10543 | # (set NO_GETTOD if this is the case). |
| 10544 | # 2. See if gettimeofday is declared in the <sys/time.h> header file. |
| 10545 | # if not, set the GETTOD_NOT_DECLARED flag so that tclPort.h can |
| 10546 | # declare it. |
| 10547 | #-------------------------------------------------------------------- |
| 10548 | |
| 10549 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 10550 | if test "x$ac_cv_func_gettimeofday" = xyes |
| 10551 | then : |
| 10552 | |
| 10553 | else case e in #( |
| 10554 | e) |
| 10555 | |
| 10556 | printf "%s\n" "#define NO_GETTOD 1" >>confdefs.h |
| 10557 | |
| 10558 | ;; |
| 10559 | esac |
| 10560 | fi |
| 10561 | |
| 10562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday declaration" >&5 |
| 10563 | printf %s "checking for gettimeofday declaration... " >&6; } |
| 10564 | if test ${tcl_cv_grep_gettimeofday+y} |
| 10565 | then : |
| 10566 | printf %s "(cached) " >&6 |
| 10567 | else case e in #( |
| 10568 | e) |
| 10569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10570 | /* end confdefs.h. */ |
| 10571 | #include <sys/time.h> |
| 10572 | |
| 10573 | _ACEOF |
| 10574 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10575 | $EGREP_TRADITIONAL "gettimeofday" >/dev/null 2>&1 |
| 10576 | then : |
| 10577 | tcl_cv_grep_gettimeofday=present |
| 10578 | else case e in #( |
| 10579 | e) tcl_cv_grep_gettimeofday=missing ;; |
| 10580 | esac |
| 10581 | fi |
| 10582 | rm -rf conftest* |
| 10583 | ;; |
| 10584 | esac |
| 10585 | fi |
| 10586 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_grep_gettimeofday" >&5 |
| 10587 | printf "%s\n" "$tcl_cv_grep_gettimeofday" >&6; } |
| 10588 | if test $tcl_cv_grep_gettimeofday = missing ; then |
| 10589 | |
| 10590 | printf "%s\n" "#define GETTOD_NOT_DECLARED 1" >>confdefs.h |
| 10591 | |
| 10592 | fi |
| 10593 | |
| 10594 | #-------------------------------------------------------------------- |
| 10595 | # The following code checks to see whether it is possible to get |
| 10596 | # signed chars on this platform. This is needed in order to |
| 10597 | # properly generate sign-extended ints from character values. |
| 10598 | #-------------------------------------------------------------------- |
| 10599 | |
| 10600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 10601 | printf %s "checking whether char is unsigned... " >&6; } |
| 10602 | if test ${ac_cv_c_char_unsigned+y} |
| 10603 | then : |
| 10604 | printf %s "(cached) " >&6 |
| 10605 | else case e in #( |
| 10606 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10607 | /* end confdefs.h. */ |
| 10608 | $ac_includes_default |
| 10609 | int |
| 10610 | main (void) |
| 10611 | { |
| 10612 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 10613 | test_array [0] = 0; |
| 10614 | return test_array [0]; |
| 10615 | |
| 10616 | ; |
| 10617 | return 0; |
| 10618 | } |
| 10619 | _ACEOF |
| 10620 | if ac_fn_c_try_compile "$LINENO" |
| 10621 | then : |
| 10622 | ac_cv_c_char_unsigned=no |
| 10623 | else case e in #( |
| 10624 | e) ac_cv_c_char_unsigned=yes ;; |
| 10625 | esac |
| 10626 | fi |
| 10627 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10628 | esac |
| 10629 | fi |
| 10630 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 10631 | printf "%s\n" "$ac_cv_c_char_unsigned" >&6; } |
| 10632 | if test $ac_cv_c_char_unsigned = yes; then |
| 10633 | printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
| 10634 | |
| 10635 | fi |
| 10636 | |
| 10637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking signed char declarations" >&5 |
| 10638 | printf %s "checking signed char declarations... " >&6; } |
| 10639 | if test ${tcl_cv_char_signed+y} |
| 10640 | then : |
| 10641 | printf %s "(cached) " >&6 |
| 10642 | else case e in #( |
| 10643 | e) |
| 10644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10645 | /* end confdefs.h. */ |
| 10646 | |
| 10647 | int |
| 10648 | main (void) |
| 10649 | { |
| 10650 | |
| 10651 | signed char *p; |
| 10652 | p = 0; |
| 10653 | |
| 10654 | ; |
| 10655 | return 0; |
| 10656 | } |
| 10657 | _ACEOF |
| 10658 | if ac_fn_c_try_compile "$LINENO" |
| 10659 | then : |
| 10660 | tcl_cv_char_signed=yes |
| 10661 | else case e in #( |
| 10662 | e) tcl_cv_char_signed=no ;; |
| 10663 | esac |
| 10664 | fi |
| 10665 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10666 | esac |
| 10667 | fi |
| 10668 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_char_signed" >&5 |
| 10669 | printf "%s\n" "$tcl_cv_char_signed" >&6; } |
| 10670 | if test $tcl_cv_char_signed = yes; then |
| 10671 | |
| 10672 | printf "%s\n" "#define HAVE_SIGNED_CHAR 1" >>confdefs.h |
| 10673 | |
| 10674 | fi |
| 10675 | |
| 10676 | #-------------------------------------------------------------------- |
| 10677 | # Does putenv() copy or not? We need to know to avoid memory leaks. |
| 10678 | #-------------------------------------------------------------------- |
| 10679 | |
| 10680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a putenv() that copies the buffer" >&5 |
| 10681 | printf %s "checking for a putenv() that copies the buffer... " >&6; } |
| 10682 | if test ${tcl_cv_putenv_copy+y} |
| 10683 | then : |
| 10684 | printf %s "(cached) " >&6 |
| 10685 | else case e in #( |
| 10686 | e) |
| 10687 | if test "$cross_compiling" = yes |
| 10688 | then : |
| 10689 | tcl_cv_putenv_copy=no |
| 10690 | else case e in #( |
| 10691 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10692 | /* end confdefs.h. */ |
| 10693 | |
| 10694 | #include <stdlib.h> |
| 10695 | #include <string.h> |
| 10696 | #define OURVAR "havecopy=yes" |
| 10697 | int main (int argc, char *argv[]) |
| 10698 | { |
| 10699 | char *foo, *bar; |
| 10700 | foo = (char *)strdup(OURVAR); |
| 10701 | putenv(foo); |
| 10702 | strcpy((char *)(strchr(foo, '=') + 1), "no"); |
| 10703 | bar = getenv("havecopy"); |
| 10704 | if (!strcmp(bar, "no")) { |
| 10705 | /* doesnt copy */ |
| 10706 | return 0; |
| 10707 | } else { |
| 10708 | /* does copy */ |
| 10709 | return 1; |
| 10710 | } |
| 10711 | } |
| 10712 | |
| 10713 | _ACEOF |
| 10714 | if ac_fn_c_try_run "$LINENO" |
| 10715 | then : |
| 10716 | tcl_cv_putenv_copy=no |
| 10717 | else case e in #( |
| 10718 | e) tcl_cv_putenv_copy=yes ;; |
| 10719 | esac |
| 10720 | fi |
| 10721 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10722 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10723 | esac |
| 10724 | fi |
| 10725 | ;; |
| 10726 | esac |
| 10727 | fi |
| 10728 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_putenv_copy" >&5 |
| 10729 | printf "%s\n" "$tcl_cv_putenv_copy" >&6; } |
| 10730 | if test $tcl_cv_putenv_copy = yes; then |
| 10731 | |
| 10732 | printf "%s\n" "#define HAVE_PUTENV_THAT_COPIES 1" >>confdefs.h |
| 10733 | |
| 10734 | fi |
| 10735 | |
| 10736 | #-------------------------------------------------------------------- |
| 10737 | # Check for support of nl_langinfo function |
| 10738 | #-------------------------------------------------------------------- |
| 10739 | |
| 10740 | |
| 10741 | # Check whether --enable-langinfo was given. |
| 10742 | if test ${enable_langinfo+y} |
| 10743 | then : |
| 10744 | enableval=$enable_langinfo; langinfo_ok=$enableval |
| 10745 | else case e in #( |
| 10746 | e) langinfo_ok=yes ;; |
| 10747 | esac |
| 10748 | fi |
| 10749 | |
| 10750 | |
| 10751 | HAVE_LANGINFO=0 |
| 10752 | if test "$langinfo_ok" = "yes"; then |
| 10753 | ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" |
| 10754 | if test "x$ac_cv_header_langinfo_h" = xyes |
| 10755 | then : |
| 10756 | langinfo_ok=yes |
| 10757 | else case e in #( |
| 10758 | e) langinfo_ok=no ;; |
| 10759 | esac |
| 10760 | fi |
| 10761 | |
| 10762 | fi |
| 10763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use nl_langinfo" >&5 |
| 10764 | printf %s "checking whether to use nl_langinfo... " >&6; } |
| 10765 | if test "$langinfo_ok" = "yes"; then |
| 10766 | if test ${tcl_cv_langinfo_h+y} |
| 10767 | then : |
| 10768 | printf %s "(cached) " >&6 |
| 10769 | else case e in #( |
| 10770 | e) |
| 10771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10772 | /* end confdefs.h. */ |
| 10773 | #include <langinfo.h> |
| 10774 | int |
| 10775 | main (void) |
| 10776 | { |
| 10777 | nl_langinfo(CODESET); |
| 10778 | ; |
| 10779 | return 0; |
| 10780 | } |
| 10781 | _ACEOF |
| 10782 | if ac_fn_c_try_compile "$LINENO" |
| 10783 | then : |
| 10784 | tcl_cv_langinfo_h=yes |
| 10785 | else case e in #( |
| 10786 | e) tcl_cv_langinfo_h=no ;; |
| 10787 | esac |
| 10788 | fi |
| 10789 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 10790 | esac |
| 10791 | fi |
| 10792 | |
| 10793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_langinfo_h" >&5 |
| 10794 | printf "%s\n" "$tcl_cv_langinfo_h" >&6; } |
| 10795 | if test $tcl_cv_langinfo_h = yes; then |
| 10796 | |
| 10797 | printf "%s\n" "#define HAVE_LANGINFO 1" >>confdefs.h |
| 10798 | |
| 10799 | fi |
| 10800 | else |
| 10801 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $langinfo_ok" >&5 |
| 10802 | printf "%s\n" "$langinfo_ok" >&6; } |
| 10803 | fi |
| 10804 | |
| 10805 | |
| 10806 | #-------------------------------------------------------------------- |
| 10807 | # Check for support of chflags and mkstemps functions |
| 10808 | #-------------------------------------------------------------------- |
| 10809 | |
| 10810 | ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" |
| 10811 | if test "x$ac_cv_func_chflags" = xyes |
| 10812 | then : |
| 10813 | printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h |
| 10814 | |
| 10815 | fi |
| 10816 | ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps" |
| 10817 | if test "x$ac_cv_func_mkstemps" = xyes |
| 10818 | then : |
| 10819 | printf "%s\n" "#define HAVE_MKSTEMPS 1" >>confdefs.h |
| 10820 | |
| 10821 | fi |
| 10822 | |
| 10823 | |
| 10824 | #-------------------------------------------------------------------- |
| 10825 | # Check for support of isnan() function or macro |
| 10826 | #-------------------------------------------------------------------- |
| 10827 | |
| 10828 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking isnan" >&5 |
| 10829 | printf %s "checking isnan... " >&6; } |
| 10830 | if test ${tcl_cv_isnan+y} |
| 10831 | then : |
| 10832 | printf %s "(cached) " >&6 |
| 10833 | else case e in #( |
| 10834 | e) |
| 10835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10836 | /* end confdefs.h. */ |
| 10837 | #include <math.h> |
| 10838 | int |
| 10839 | main (void) |
| 10840 | { |
| 10841 | |
| 10842 | isnan(0.0); /* Generates an error if isnan is missing */ |
| 10843 | |
| 10844 | ; |
| 10845 | return 0; |
| 10846 | } |
| 10847 | _ACEOF |
| 10848 | if ac_fn_c_try_link "$LINENO" |
| 10849 | then : |
| 10850 | tcl_cv_isnan=yes |
| 10851 | else case e in #( |
| 10852 | e) tcl_cv_isnan=no ;; |
| 10853 | esac |
| 10854 | fi |
| 10855 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10856 | conftest$ac_exeext conftest.$ac_ext ;; |
| 10857 | esac |
| 10858 | fi |
| 10859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_isnan" >&5 |
| 10860 | printf "%s\n" "$tcl_cv_isnan" >&6; } |
| 10861 | if test $tcl_cv_isnan = no; then |
| 10862 | |
| 10863 | printf "%s\n" "#define NO_ISNAN 1" >>confdefs.h |
| 10864 | |
| 10865 | fi |
| 10866 | |
| 10867 | #-------------------------------------------------------------------- |
| 10868 | # Darwin specific API checks and defines |
| 10869 | #-------------------------------------------------------------------- |
| 10870 | |
| 10871 | if test "`uname -s`" = "Darwin" ; then |
| 10872 | ac_fn_c_check_func "$LINENO" "getattrlist" "ac_cv_func_getattrlist" |
| 10873 | if test "x$ac_cv_func_getattrlist" = xyes |
| 10874 | then : |
| 10875 | printf "%s\n" "#define HAVE_GETATTRLIST 1" >>confdefs.h |
| 10876 | |
| 10877 | fi |
| 10878 | |
| 10879 | ac_fn_c_check_header_compile "$LINENO" "copyfile.h" "ac_cv_header_copyfile_h" "$ac_includes_default" |
| 10880 | if test "x$ac_cv_header_copyfile_h" = xyes |
| 10881 | then : |
| 10882 | printf "%s\n" "#define HAVE_COPYFILE_H 1" >>confdefs.h |
| 10883 | |
| 10884 | fi |
| 10885 | |
| 10886 | ac_fn_c_check_func "$LINENO" "copyfile" "ac_cv_func_copyfile" |
| 10887 | if test "x$ac_cv_func_copyfile" = xyes |
| 10888 | then : |
| 10889 | printf "%s\n" "#define HAVE_COPYFILE 1" >>confdefs.h |
| 10890 | |
| 10891 | fi |
| 10892 | |
| 10893 | if test $tcl_corefoundation = yes; then |
| 10894 | ac_fn_c_check_header_compile "$LINENO" "libkern/OSAtomic.h" "ac_cv_header_libkern_OSAtomic_h" "$ac_includes_default" |
| 10895 | if test "x$ac_cv_header_libkern_OSAtomic_h" = xyes |
| 10896 | then : |
| 10897 | printf "%s\n" "#define HAVE_LIBKERN_OSATOMIC_H 1" >>confdefs.h |
| 10898 | |
| 10899 | fi |
| 10900 | |
| 10901 | ac_fn_c_check_func "$LINENO" "OSSpinLockLock" "ac_cv_func_OSSpinLockLock" |
| 10902 | if test "x$ac_cv_func_OSSpinLockLock" = xyes |
| 10903 | then : |
| 10904 | printf "%s\n" "#define HAVE_OSSPINLOCKLOCK 1" >>confdefs.h |
| 10905 | |
| 10906 | fi |
| 10907 | |
| 10908 | fi |
| 10909 | |
| 10910 | printf "%s\n" "#define TCL_DEFAULT_ENCODING \"utf-8\"" >>confdefs.h |
| 10911 | |
| 10912 | |
| 10913 | printf "%s\n" "#define TCL_LOAD_FROM_MEMORY 1" >>confdefs.h |
| 10914 | |
| 10915 | |
| 10916 | printf "%s\n" "#define TCL_WIDE_CLICKS 1" >>confdefs.h |
| 10917 | |
| 10918 | ac_fn_c_check_header_compile "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" |
| 10919 | if test "x$ac_cv_header_AvailabilityMacros_h" = xyes |
| 10920 | then : |
| 10921 | printf "%s\n" "#define HAVE_AVAILABILITYMACROS_H 1" >>confdefs.h |
| 10922 | |
| 10923 | fi |
| 10924 | |
| 10925 | if test "$ac_cv_header_AvailabilityMacros_h" = yes; then |
| 10926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if weak import is available" >&5 |
| 10927 | printf %s "checking if weak import is available... " >&6; } |
| 10928 | if test ${tcl_cv_cc_weak_import+y} |
| 10929 | then : |
| 10930 | printf %s "(cached) " >&6 |
| 10931 | else case e in #( |
| 10932 | e) |
| 10933 | hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" |
| 10934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10935 | /* end confdefs.h. */ |
| 10936 | |
| 10937 | #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ |
| 10938 | #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 |
| 10939 | #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1020 |
| 10940 | #endif |
| 10941 | #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1020 |
| 10942 | #error MAC_OS_X_VERSION_MIN_REQUIRED < 1020 |
| 10943 | #endif |
| 10944 | int rand(void) __attribute__((weak_import)); |
| 10945 | |
| 10946 | int |
| 10947 | main (void) |
| 10948 | { |
| 10949 | rand(); |
| 10950 | ; |
| 10951 | return 0; |
| 10952 | } |
| 10953 | _ACEOF |
| 10954 | if ac_fn_c_try_link "$LINENO" |
| 10955 | then : |
| 10956 | tcl_cv_cc_weak_import=yes |
| 10957 | else case e in #( |
| 10958 | e) tcl_cv_cc_weak_import=no ;; |
| 10959 | esac |
| 10960 | fi |
| 10961 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10962 | conftest$ac_exeext conftest.$ac_ext |
| 10963 | CFLAGS=$hold_cflags ;; |
| 10964 | esac |
| 10965 | fi |
| 10966 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_weak_import" >&5 |
| 10967 | printf "%s\n" "$tcl_cv_cc_weak_import" >&6; } |
| 10968 | if test $tcl_cv_cc_weak_import = yes; then |
| 10969 | |
| 10970 | printf "%s\n" "#define HAVE_WEAK_IMPORT 1" >>confdefs.h |
| 10971 | |
| 10972 | fi |
| 10973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Darwin SUSv3 extensions are available" >&5 |
| 10974 | printf %s "checking if Darwin SUSv3 extensions are available... " >&6; } |
| 10975 | if test ${tcl_cv_cc_darwin_c_source+y} |
| 10976 | then : |
| 10977 | printf %s "(cached) " >&6 |
| 10978 | else case e in #( |
| 10979 | e) |
| 10980 | hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" |
| 10981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10982 | /* end confdefs.h. */ |
| 10983 | |
| 10984 | #ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ |
| 10985 | #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 |
| 10986 | #error __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1050 |
| 10987 | #endif |
| 10988 | #elif MAC_OS_X_VERSION_MIN_REQUIRED < 1050 |
| 10989 | #error MAC_OS_X_VERSION_MIN_REQUIRED < 1050 |
| 10990 | #endif |
| 10991 | #define _DARWIN_C_SOURCE 1 |
| 10992 | #include <sys/cdefs.h> |
| 10993 | |
| 10994 | int |
| 10995 | main (void) |
| 10996 | { |
| 10997 | |
| 10998 | ; |
| 10999 | return 0; |
| 11000 | } |
| 11001 | _ACEOF |
| 11002 | if ac_fn_c_try_compile "$LINENO" |
| 11003 | then : |
| 11004 | tcl_cv_cc_darwin_c_source=yes |
| 11005 | else case e in #( |
| 11006 | e) tcl_cv_cc_darwin_c_source=no ;; |
| 11007 | esac |
| 11008 | fi |
| 11009 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11010 | CFLAGS=$hold_cflags ;; |
| 11011 | esac |
| 11012 | fi |
| 11013 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_darwin_c_source" >&5 |
| 11014 | printf "%s\n" "$tcl_cv_cc_darwin_c_source" >&6; } |
| 11015 | if test $tcl_cv_cc_darwin_c_source = yes; then |
| 11016 | |
| 11017 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 11018 | |
| 11019 | fi |
| 11020 | fi |
| 11021 | # Build .bundle dltest binaries in addition to .dylib |
| 11022 | DLTEST_LD='${CC} -bundle -Wl,-w ${CFLAGS} ${LDFLAGS}' |
| 11023 | DLTEST_SUFFIX=".bundle" |
| 11024 | else |
| 11025 | DLTEST_LD='${SHLIB_LD}' |
| 11026 | DLTEST_SUFFIX="" |
| 11027 | fi |
| 11028 | |
| 11029 | #-------------------------------------------------------------------- |
| 11030 | # Check for support of fts functions (readdir replacement) |
| 11031 | #-------------------------------------------------------------------- |
| 11032 | |
| 11033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fts" >&5 |
| 11034 | printf %s "checking for fts... " >&6; } |
| 11035 | if test ${tcl_cv_api_fts+y} |
| 11036 | then : |
| 11037 | printf %s "(cached) " >&6 |
| 11038 | else case e in #( |
| 11039 | e) |
| 11040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11041 | /* end confdefs.h. */ |
| 11042 | |
| 11043 | #include <sys/param.h> |
| 11044 | #include <sys/stat.h> |
| 11045 | #include <fts.h> |
| 11046 | |
| 11047 | int |
| 11048 | main (void) |
| 11049 | { |
| 11050 | |
| 11051 | char*const p[2] = {"/", NULL}; |
| 11052 | FTS *f = fts_open(p, FTS_PHYSICAL|FTS_NOCHDIR|FTS_NOSTAT, NULL); |
| 11053 | FTSENT *e = fts_read(f); fts_close(f); |
| 11054 | |
| 11055 | ; |
| 11056 | return 0; |
| 11057 | } |
| 11058 | _ACEOF |
| 11059 | if ac_fn_c_try_link "$LINENO" |
| 11060 | then : |
| 11061 | tcl_cv_api_fts=yes |
| 11062 | else case e in #( |
| 11063 | e) tcl_cv_api_fts=no ;; |
| 11064 | esac |
| 11065 | fi |
| 11066 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11067 | conftest$ac_exeext conftest.$ac_ext ;; |
| 11068 | esac |
| 11069 | fi |
| 11070 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_api_fts" >&5 |
| 11071 | printf "%s\n" "$tcl_cv_api_fts" >&6; } |
| 11072 | if test $tcl_cv_api_fts = yes; then |
| 11073 | |
| 11074 | printf "%s\n" "#define HAVE_FTS 1" >>confdefs.h |
| 11075 | |
| 11076 | fi |
| 11077 | |
| 11078 | #-------------------------------------------------------------------- |
| 11079 | # The statements below check for systems where POSIX-style non-blocking |
| 11080 | # I/O (O_NONBLOCK) doesn't work or is unimplemented. On these systems |
| 11081 | # (mostly older ones), use the old BSD-style FIONBIO approach instead. |
| 11082 | #-------------------------------------------------------------------- |
| 11083 | |
| 11084 | |
| 11085 | ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 11086 | if test "x$ac_cv_header_sys_ioctl_h" = xyes |
| 11087 | then : |
| 11088 | printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
| 11089 | |
| 11090 | fi |
| 11091 | |
| 11092 | ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" |
| 11093 | if test "x$ac_cv_header_sys_filio_h" = xyes |
| 11094 | then : |
| 11095 | printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h |
| 11096 | |
| 11097 | fi |
| 11098 | |
| 11099 | |
| 11100 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system version" >&5 |
| 11101 | printf %s "checking system version... " >&6; } |
| 11102 | if test ${tcl_cv_sys_version+y} |
| 11103 | then : |
| 11104 | printf %s "(cached) " >&6 |
| 11105 | else case e in #( |
| 11106 | e) |
| 11107 | if test -f /usr/lib/NextStep/software_version; then |
| 11108 | tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` |
| 11109 | else |
| 11110 | tcl_cv_sys_version=`uname -s`-`uname -r` |
| 11111 | if test "$?" -ne 0 ; then |
| 11112 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 |
| 11113 | printf "%s\n" "$as_me: WARNING: can't find uname command" >&2;} |
| 11114 | tcl_cv_sys_version=unknown |
| 11115 | else |
| 11116 | # Special check for weird MP-RAS system (uname returns weird |
| 11117 | # results, and the version is kept in special file). |
| 11118 | |
| 11119 | if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
| 11120 | tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` |
| 11121 | fi |
| 11122 | if test "`uname -s`" = "AIX" ; then |
| 11123 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` |
| 11124 | fi |
| 11125 | if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then |
| 11126 | tcl_cv_sys_version=NetBSD-Debian |
| 11127 | fi |
| 11128 | fi |
| 11129 | fi |
| 11130 | ;; |
| 11131 | esac |
| 11132 | fi |
| 11133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 |
| 11134 | printf "%s\n" "$tcl_cv_sys_version" >&6; } |
| 11135 | system=$tcl_cv_sys_version |
| 11136 | |
| 11137 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking FIONBIO vs. O_NONBLOCK for nonblocking I/O" >&5 |
| 11138 | printf %s "checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... " >&6; } |
| 11139 | case $system in |
| 11140 | OSF*) |
| 11141 | |
| 11142 | printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h |
| 11143 | |
| 11144 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5 |
| 11145 | printf "%s\n" "FIONBIO" >&6; } |
| 11146 | ;; |
| 11147 | SunOS-4*) |
| 11148 | |
| 11149 | printf "%s\n" "#define USE_FIONBIO 1" >>confdefs.h |
| 11150 | |
| 11151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FIONBIO" >&5 |
| 11152 | printf "%s\n" "FIONBIO" >&6; } |
| 11153 | ;; |
| 11154 | *) |
| 11155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: O_NONBLOCK" >&5 |
| 11156 | printf "%s\n" "O_NONBLOCK" >&6; } |
| 11157 | ;; |
| 11158 | esac |
| 11159 | |
| 11160 | |
| 11161 | #------------------------------------------------------------------------ |
| 11162 | |
| 11163 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dll unloading" >&5 |
| 11164 | printf %s "checking whether to use dll unloading... " >&6; } |
| 11165 | # Check whether --enable-dll-unloading was given. |
| 11166 | if test ${enable_dll_unloading+y} |
| 11167 | then : |
| 11168 | enableval=$enable_dll_unloading; tcl_ok=$enableval |
| 11169 | else case e in #( |
| 11170 | e) tcl_ok=yes ;; |
| 11171 | esac |
| 11172 | fi |
| 11173 | |
| 11174 | if test $tcl_ok = yes; then |
| 11175 | |
| 11176 | printf "%s\n" "#define TCL_UNLOAD_DLLS 1" >>confdefs.h |
| 11177 | |
| 11178 | fi |
| 11179 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_ok" >&5 |
| 11180 | printf "%s\n" "$tcl_ok" >&6; } |
| 11181 | |
| 11182 | #------------------------------------------------------------------------ |
| 11183 | # Check whether the timezone data is supplied by the OS or has |
| 11184 | # to be installed by Tcl. The default is autodetection, but can |
| 11185 | # be overridden on the configure command line either way. |
| 11186 | #------------------------------------------------------------------------ |
| 11187 | |
| 11188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone data" >&5 |
| 11189 | printf %s "checking for timezone data... " >&6; } |
| 11190 | |
| 11191 | # Check whether --with-tzdata was given. |
| 11192 | if test ${with_tzdata+y} |
| 11193 | then : |
| 11194 | withval=$with_tzdata; tcl_ok=$withval |
| 11195 | else case e in #( |
| 11196 | e) tcl_ok=auto ;; |
| 11197 | esac |
| 11198 | fi |
| 11199 | |
| 11200 | # |
| 11201 | # Any directories that get added here must also be added to the |
| 11202 | # search path in ::tcl::clock::Initialize (library/clock.tcl). |
| 11203 | # |
| 11204 | case $tcl_ok in |
| 11205 | no) |
| 11206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: supplied by OS vendor" >&5 |
| 11207 | printf "%s\n" "supplied by OS vendor" >&6; } |
| 11208 | ;; |
| 11209 | yes) |
| 11210 | # nothing to do here |
| 11211 | ;; |
| 11212 | auto*) |
| 11213 | if test ${tcl_cv_dir_zoneinfo+y} |
| 11214 | then : |
| 11215 | printf %s "(cached) " >&6 |
| 11216 | else case e in #( |
| 11217 | e) |
| 11218 | for dir in /usr/share/zoneinfo \ |
| 11219 | /usr/share/lib/zoneinfo \ |
| 11220 | /usr/lib/zoneinfo |
| 11221 | do |
| 11222 | if test -f $dir/UTC -o -f $dir/GMT |
| 11223 | then |
| 11224 | tcl_cv_dir_zoneinfo="$dir" |
| 11225 | break |
| 11226 | fi |
| 11227 | done ;; |
| 11228 | esac |
| 11229 | fi |
| 11230 | |
| 11231 | if test -n "$tcl_cv_dir_zoneinfo"; then |
| 11232 | tcl_ok=no |
| 11233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dir" >&5 |
| 11234 | printf "%s\n" "$dir" >&6; } |
| 11235 | else |
| 11236 | tcl_ok=yes |
| 11237 | fi |
| 11238 | ;; |
| 11239 | *) |
| 11240 | as_fn_error $? "invalid argument: $tcl_ok" "$LINENO" 5 |
| 11241 | ;; |
| 11242 | esac |
| 11243 | if test $tcl_ok = yes |
| 11244 | then |
| 11245 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: supplied by Tcl" >&5 |
| 11246 | printf "%s\n" "supplied by Tcl" >&6; } |
| 11247 | INSTALL_TZDATA=install-tzdata |
| 11248 | fi |
| 11249 | |
| 11250 | #-------------------------------------------------------------------- |
| 11251 | # DTrace support |
| 11252 | #-------------------------------------------------------------------- |
| 11253 | |
| 11254 | # Check whether --enable-dtrace was given. |
| 11255 | if test ${enable_dtrace+y} |
| 11256 | then : |
| 11257 | enableval=$enable_dtrace; tcl_ok=$enableval |
| 11258 | else case e in #( |
| 11259 | e) tcl_ok=no ;; |
| 11260 | esac |
| 11261 | fi |
| 11262 | |
| 11263 | if test $tcl_ok = yes; then |
| 11264 | ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" |
| 11265 | if test "x$ac_cv_header_sys_sdt_h" = xyes |
| 11266 | then : |
| 11267 | tcl_ok=yes |
| 11268 | else case e in #( |
| 11269 | e) tcl_ok=no ;; |
| 11270 | esac |
| 11271 | fi |
| 11272 | |
| 11273 | fi |
| 11274 | if test $tcl_ok = yes; then |
| 11275 | # Extract the first word of "dtrace", so it can be a program name with args. |
| 11276 | set dummy dtrace; ac_word=$2 |
| 11277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11278 | printf %s "checking for $ac_word... " >&6; } |
| 11279 | if test ${ac_cv_path_DTRACE+y} |
| 11280 | then : |
| 11281 | printf %s "(cached) " >&6 |
| 11282 | else case e in #( |
| 11283 | e) case $DTRACE in |
| 11284 | [\\/]* | ?:[\\/]*) |
| 11285 | ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. |
| 11286 | ;; |
| 11287 | *) |
| 11288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11289 | as_dummy="$PATH:/usr/sbin" |
| 11290 | for as_dir in $as_dummy |
| 11291 | do |
| 11292 | IFS=$as_save_IFS |
| 11293 | case $as_dir in #((( |
| 11294 | '') as_dir=./ ;; |
| 11295 | */) ;; |
| 11296 | *) as_dir=$as_dir/ ;; |
| 11297 | esac |
| 11298 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11299 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11300 | ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" |
| 11301 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11302 | break 2 |
| 11303 | fi |
| 11304 | done |
| 11305 | done |
| 11306 | IFS=$as_save_IFS |
| 11307 | |
| 11308 | ;; |
| 11309 | esac ;; |
| 11310 | esac |
| 11311 | fi |
| 11312 | DTRACE=$ac_cv_path_DTRACE |
| 11313 | if test -n "$DTRACE"; then |
| 11314 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
| 11315 | printf "%s\n" "$DTRACE" >&6; } |
| 11316 | else |
| 11317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11318 | printf "%s\n" "no" >&6; } |
| 11319 | fi |
| 11320 | |
| 11321 | |
| 11322 | test -z "$ac_cv_path_DTRACE" && tcl_ok=no |
| 11323 | fi |
| 11324 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable DTrace support" >&5 |
| 11325 | printf %s "checking whether to enable DTrace support... " >&6; } |
| 11326 | MAKEFILE_SHELL='/bin/sh' |
| 11327 | if test $tcl_ok = yes; then |
| 11328 | |
| 11329 | printf "%s\n" "#define USE_DTRACE 1" >>confdefs.h |
| 11330 | |
| 11331 | DTRACE_SRC="\${DTRACE_SRC}" |
| 11332 | DTRACE_HDR="\${DTRACE_HDR}" |
| 11333 | if test "`uname -s`" != "Darwin" ; then |
| 11334 | DTRACE_OBJ="\${DTRACE_OBJ}" |
| 11335 | if test "`uname -s`" = "SunOS" -a "$SHARED_BUILD" = "0" ; then |
| 11336 | # Need to create an intermediate object file to ensure tclDTrace.o |
| 11337 | # gets included when linking against the static tcl library. |
| 11338 | STLIB_LD='stlib_ld () { /usr/ccs/bin/ld -r -o $${1%.a}.o "$${@:2}" && '"${STLIB_LD}"' $${1} $${1%.a}.o ; } && stlib_ld' |
| 11339 | MAKEFILE_SHELL='/bin/bash' |
| 11340 | # Force use of Sun ar and ranlib, the GNU versions choke on |
| 11341 | # tclDTrace.o and the combined object file above. |
| 11342 | AR='/usr/ccs/bin/ar' |
| 11343 | RANLIB='/usr/ccs/bin/ranlib' |
| 11344 | fi |
| 11345 | fi |
| 11346 | fi |
| 11347 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_ok" >&5 |
| 11348 | printf "%s\n" "$tcl_ok" >&6; } |
| 11349 | |
| 11350 | #-------------------------------------------------------------------- |
| 11351 | # The check below checks whether the cpuid instruction is usable. |
| 11352 | #-------------------------------------------------------------------- |
| 11353 | |
| 11354 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the cpuid instruction is usable" >&5 |
| 11355 | printf %s "checking whether the cpuid instruction is usable... " >&6; } |
| 11356 | if test ${tcl_cv_cpuid+y} |
| 11357 | then : |
| 11358 | printf %s "(cached) " >&6 |
| 11359 | else case e in #( |
| 11360 | e) |
| 11361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11362 | /* end confdefs.h. */ |
| 11363 | |
| 11364 | int |
| 11365 | main (void) |
| 11366 | { |
| 11367 | |
| 11368 | int index,regsPtr[4]; |
| 11369 | __asm__ __volatile__("mov %%ebx, %%edi \n\t" |
| 11370 | "cpuid \n\t" |
| 11371 | "mov %%ebx, %%esi \n\t" |
| 11372 | "mov %%edi, %%ebx \n\t" |
| 11373 | : "=a"(regsPtr[0]), "=S"(regsPtr[1]), "=c"(regsPtr[2]), "=d"(regsPtr[3]) |
| 11374 | : "a"(index) : "edi"); |
| 11375 | |
| 11376 | ; |
| 11377 | return 0; |
| 11378 | } |
| 11379 | _ACEOF |
| 11380 | if ac_fn_c_try_link "$LINENO" |
| 11381 | then : |
| 11382 | tcl_cv_cpuid=yes |
| 11383 | else case e in #( |
| 11384 | e) tcl_cv_cpuid=no ;; |
| 11385 | esac |
| 11386 | fi |
| 11387 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11388 | conftest$ac_exeext conftest.$ac_ext ;; |
| 11389 | esac |
| 11390 | fi |
| 11391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cpuid" >&5 |
| 11392 | printf "%s\n" "$tcl_cv_cpuid" >&6; } |
| 11393 | if test $tcl_cv_cpuid = yes; then |
| 11394 | |
| 11395 | printf "%s\n" "#define HAVE_CPUID 1" >>confdefs.h |
| 11396 | |
| 11397 | fi |
| 11398 | |
| 11399 | #-------------------------------------------------------------------- |
| 11400 | # The statements below define a collection of symbols related to |
| 11401 | # building libtcl as a shared library instead of a static library. |
| 11402 | #-------------------------------------------------------------------- |
| 11403 | |
| 11404 | TCL_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} |
| 11405 | TCL_SHARED_LIB_SUFFIX=${SHARED_LIB_SUFFIX} |
| 11406 | eval "TCL_LIB_FILE=libtcl${LIB_SUFFIX}" |
| 11407 | |
| 11408 | # tclConfig.sh needs a version of the _LIB_SUFFIX that has been eval'ed |
| 11409 | # since on some platforms TCL_LIB_FILE contains shell escapes. |
| 11410 | # (See also: TCL_TRIM_DOTS). |
| 11411 | |
| 11412 | eval "TCL_LIB_FILE=${TCL_LIB_FILE}" |
| 11413 | |
| 11414 | test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' |
| 11415 | PRIVATE_INCLUDE_DIR='$(includedir)' |
| 11416 | HTML_DIR='$(DISTDIR)/html' |
| 11417 | |
| 11418 | # Note: in the following variable, it's important to use the absolute |
| 11419 | # path name of the Tcl directory rather than "..": this is because |
| 11420 | # AIX remembers this path and will attempt to use it at run-time to look |
| 11421 | # up the Tcl library. |
| 11422 | |
| 11423 | if test "`uname -s`" = "Darwin" ; then |
| 11424 | |
| 11425 | if test "`uname -s`" = "Darwin" ; then |
| 11426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to package libraries" >&5 |
| 11427 | printf %s "checking how to package libraries... " >&6; } |
| 11428 | # Check whether --enable-framework was given. |
| 11429 | if test ${enable_framework+y} |
| 11430 | then : |
| 11431 | enableval=$enable_framework; enable_framework=$enableval |
| 11432 | else case e in #( |
| 11433 | e) enable_framework=no ;; |
| 11434 | esac |
| 11435 | fi |
| 11436 | |
| 11437 | if test $enable_framework = yes; then |
| 11438 | if test $SHARED_BUILD = 0; then |
| 11439 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Frameworks can only be built if --enable-shared is yes" >&5 |
| 11440 | printf "%s\n" "$as_me: WARNING: Frameworks can only be built if --enable-shared is yes" >&2;} |
| 11441 | enable_framework=no |
| 11442 | fi |
| 11443 | if test $tcl_corefoundation = no; then |
| 11444 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Frameworks can only be used when CoreFoundation is available" >&5 |
| 11445 | printf "%s\n" "$as_me: WARNING: Frameworks can only be used when CoreFoundation is available" >&2;} |
| 11446 | enable_framework=no |
| 11447 | fi |
| 11448 | fi |
| 11449 | if test $enable_framework = yes; then |
| 11450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: framework" >&5 |
| 11451 | printf "%s\n" "framework" >&6; } |
| 11452 | FRAMEWORK_BUILD=1 |
| 11453 | else |
| 11454 | if test $SHARED_BUILD = 1; then |
| 11455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: shared library" >&5 |
| 11456 | printf "%s\n" "shared library" >&6; } |
| 11457 | else |
| 11458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: static library" >&5 |
| 11459 | printf "%s\n" "static library" >&6; } |
| 11460 | fi |
| 11461 | FRAMEWORK_BUILD=0 |
| 11462 | fi |
| 11463 | fi |
| 11464 | |
| 11465 | TCL_SHLIB_LD_EXTRAS="-compatibility_version ${TCL_VERSION} -current_version ${TCL_VERSION}`echo ${TCL_PATCH_LEVEL} | awk '{match($0, "\\\.[0-9]+"); print substr($0,RSTART,RLENGTH)}'`" |
| 11466 | TCL_SHLIB_LD_EXTRAS="${TCL_SHLIB_LD_EXTRAS}"' -install_name "${DYLIB_INSTALL_DIR}"/${TCL_LIB_FILE}' |
| 11467 | echo "$LDFLAGS " | grep -q -- '-prebind ' && TCL_SHLIB_LD_EXTRAS="${TCL_SHLIB_LD_EXTRAS}"' -seg1addr 0xA000000' |
| 11468 | TCL_SHLIB_LD_EXTRAS="${TCL_SHLIB_LD_EXTRAS}"' -sectcreate __TEXT __info_plist Tcl-Info.plist' |
| 11469 | EXTRA_TCLSH_LIBS='-sectcreate __TEXT __info_plist Tclsh-Info.plist' |
| 11470 | EXTRA_APP_CC_SWITCHES='-mdynamic-no-pic' |
| 11471 | ac_config_files="$ac_config_files Tcl-Info.plist:../macosx/Tcl-Info.plist.in Tclsh-Info.plist:../macosx/Tclsh-Info.plist.in" |
| 11472 | |
| 11473 | TCL_YEAR="`date +%Y`" |
| 11474 | fi |
| 11475 | |
| 11476 | if test "$FRAMEWORK_BUILD" = "1" ; then |
| 11477 | |
| 11478 | printf "%s\n" "#define TCL_FRAMEWORK 1" >>confdefs.h |
| 11479 | |
| 11480 | # Construct a fake local framework structure to make linking with |
| 11481 | # '-framework Tcl' and running of tcltest work |
| 11482 | ac_config_commands="$ac_config_commands Tcl.framework" |
| 11483 | |
| 11484 | LD_LIBRARY_PATH_VAR="DYLD_FRAMEWORK_PATH" |
| 11485 | # default install directory for bundled packages |
| 11486 | if test "${libdir}" = '${exec_prefix}/lib' -o "`basename ${libdir}`" = 'Frameworks'; then |
| 11487 | PACKAGE_DIR="/Library/Tcl" |
| 11488 | else |
| 11489 | PACKAGE_DIR="$libdir" |
| 11490 | fi |
| 11491 | if test "${libdir}" = '${exec_prefix}/lib'; then |
| 11492 | # override libdir default |
| 11493 | libdir="/Library/Frameworks" |
| 11494 | fi |
| 11495 | TCL_LIB_FILE="Tcl" |
| 11496 | TCL_LIB_FLAG="-framework Tcl" |
| 11497 | TCL_BUILD_LIB_SPEC="-F`pwd | sed -e 's/ /\\\\ /g'` -framework Tcl" |
| 11498 | TCL_LIB_SPEC="-F${libdir} -framework Tcl" |
| 11499 | libdir="${libdir}/Tcl.framework/Versions/\${VERSION}" |
| 11500 | TCL_LIBRARY="${libdir}/Resources/Scripts" |
| 11501 | includedir="${libdir}/Headers" |
| 11502 | PRIVATE_INCLUDE_DIR="${libdir}/PrivateHeaders" |
| 11503 | HTML_DIR="${libdir}/Resources/Documentation/Reference/Tcl" |
| 11504 | EXTRA_INSTALL="install-private-headers html-tcl" |
| 11505 | EXTRA_BUILD_HTML='@ln -fs contents.htm "$(HTML_INSTALL_DIR)/TclTOC.html"' |
| 11506 | EXTRA_INSTALL_BINARIES='@echo "Installing Info.plist to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA_DIR) "$(LIB_INSTALL_DIR)/Resources" && $(INSTALL_DATA) Tcl-Info.plist "$(LIB_INSTALL_DIR)/Resources/Info.plist"' |
| 11507 | EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Installing license.terms to $(LIB_INSTALL_DIR)/Resources/" && $(INSTALL_DATA) "$(TOP_DIR)/license.terms" "$(LIB_INSTALL_DIR)/Resources"' |
| 11508 | EXTRA_INSTALL_BINARIES="$EXTRA_INSTALL_BINARIES"' && echo "Finalizing Tcl.framework" && rm -f "$(LIB_INSTALL_DIR)/../Current" && ln -s "$(VERSION)" "$(LIB_INSTALL_DIR)/../Current" && for f in "$(LIB_FILE)" tclConfig.sh Resources Headers PrivateHeaders; do rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/Current/$$f" "$(LIB_INSTALL_DIR)/../.."; done && f="$(STUB_LIB_FILE)" && rm -f "$(LIB_INSTALL_DIR)/../../$$f" && ln -s "Versions/$(VERSION)/$$f" "$(LIB_INSTALL_DIR)/../.."' |
| 11509 | # Don't use AC_DEFINE for the following as the framework version define |
| 11510 | # needs to go into the Makefile even when using autoheader, so that we |
| 11511 | # can pick up a potential make override of VERSION. Also, don't put this |
| 11512 | # into CFLAGS as it should not go into tclConfig.sh |
| 11513 | EXTRA_CC_SWITCHES='-DTCL_FRAMEWORK_VERSION=\"$(VERSION)\"' |
| 11514 | else |
| 11515 | # libdir must be a fully qualified path and not ${exec_prefix}/lib |
| 11516 | eval libdir="$libdir" |
| 11517 | # default install directory for bundled packages |
| 11518 | PACKAGE_DIR="$libdir" |
| 11519 | if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then |
| 11520 | TCL_LIB_FLAG="-ltcl${TCL_VERSION}" |
| 11521 | else |
| 11522 | TCL_LIB_FLAG="-ltcl`echo ${TCL_VERSION} | tr -d .`" |
| 11523 | fi |
| 11524 | TCL_BUILD_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_LIB_FLAG}" |
| 11525 | TCL_LIB_SPEC="-L${libdir} ${TCL_LIB_FLAG}" |
| 11526 | fi |
| 11527 | VERSION='${VERSION}' |
| 11528 | eval "CFG_TCL_SHARED_LIB_SUFFIX=${TCL_SHARED_LIB_SUFFIX}" |
| 11529 | eval "CFG_TCL_UNSHARED_LIB_SUFFIX=${TCL_UNSHARED_LIB_SUFFIX}" |
| 11530 | VERSION=${TCL_VERSION} |
| 11531 | |
| 11532 | #-------------------------------------------------------------------- |
| 11533 | # The statements below define the symbol TCL_PACKAGE_PATH, which |
| 11534 | # gives a list of directories that may contain packages. The list |
| 11535 | # consists of one directory for machine-dependent binaries and |
| 11536 | # another for platform-independent scripts. |
| 11537 | #-------------------------------------------------------------------- |
| 11538 | |
| 11539 | if test "$FRAMEWORK_BUILD" = "1" ; then |
| 11540 | test -z "$TCL_PACKAGE_PATH" && \ |
| 11541 | TCL_PACKAGE_PATH="~/Library/Tcl:/Library/Tcl:~/Library/Frameworks:/Library/Frameworks" |
| 11542 | test -z "$TCL_MODULE_PATH" && \ |
| 11543 | TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl" |
| 11544 | elif test "$prefix/lib" != "$libdir"; then |
| 11545 | test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${libdir}:${prefix}/lib" |
| 11546 | else |
| 11547 | test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${prefix}/lib" |
| 11548 | fi |
| 11549 | |
| 11550 | #-------------------------------------------------------------------- |
| 11551 | # The statements below define various symbols relating to Tcl |
| 11552 | # stub support. |
| 11553 | #-------------------------------------------------------------------- |
| 11554 | |
| 11555 | # Replace ${VERSION} with contents of ${TCL_VERSION} |
| 11556 | # double-eval to account for TCL_TRIM_DOTS. |
| 11557 | # |
| 11558 | eval "TCL_STUB_LIB_FILE=libtclstub${TCL_UNSHARED_LIB_SUFFIX}" |
| 11559 | eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" |
| 11560 | eval "TCL_STUB_LIB_DIR=\"${libdir}\"" |
| 11561 | |
| 11562 | if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then |
| 11563 | TCL_STUB_LIB_FLAG="-ltclstub${TCL_VERSION}" |
| 11564 | else |
| 11565 | TCL_STUB_LIB_FLAG="-ltclstub`echo ${TCL_VERSION} | tr -d .`" |
| 11566 | fi |
| 11567 | |
| 11568 | TCL_BUILD_STUB_LIB_SPEC="-L`pwd | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" |
| 11569 | TCL_STUB_LIB_SPEC="-L${TCL_STUB_LIB_DIR} ${TCL_STUB_LIB_FLAG}" |
| 11570 | TCL_BUILD_STUB_LIB_PATH="`pwd`/${TCL_STUB_LIB_FILE}" |
| 11571 | TCL_STUB_LIB_PATH="${TCL_STUB_LIB_DIR}/${TCL_STUB_LIB_FILE}" |
| 11572 | |
| 11573 | # Install time header dir can be set via --includedir |
| 11574 | eval "TCL_INCLUDE_SPEC=\"-I${includedir}\"" |
| 11575 | |
| 11576 | #------------------------------------------------------------------------ |
| 11577 | # tclConfig.sh refers to this by a different name |
| 11578 | #------------------------------------------------------------------------ |
| 11579 | |
| 11580 | TCL_SHARED_BUILD=${SHARED_BUILD} |
| 11581 | |
| 11582 | |
| 11583 | |
| 11584 | |
| 11585 | |
| 11586 | |
| 11587 | |
| 11588 | |
| 11589 | |
| 11590 | |
| 11591 | |
| 11592 | |
| 11593 | |
| 11594 | |
| 11595 | |
| 11596 | |
| 11597 | |
| 11598 | |
| 11599 | |
| 11600 | |
| 11601 | |
| 11602 | |
| 11603 | |
| 11604 | |
| 11605 | |
| 11606 | |
| 11607 | |
| 11608 | |
| 11609 | |
| 11610 | |
| 11611 | |
| 11612 | |
| 11613 | |
| 11614 | |
| 11615 | |
| 11616 | |
| 11617 | |
| 11618 | |
| 11619 | |
| 11620 | |
| 11621 | |
| 11622 | |
| 11623 | |
| 11624 | |
| 11625 | |
| 11626 | |
| 11627 | |
| 11628 | |
| 11629 | |
| 11630 | |
| 11631 | |
| 11632 | |
| 11633 | |
| 11634 | |
| 11635 | |
| 11636 | |
| 11637 | |
| 11638 | |
| 11639 | |
| 11640 | |
| 11641 | |
| 11642 | ac_config_files="$ac_config_files Makefile:../unix/Makefile.in dltest/Makefile:../unix/dltest/Makefile.in tclConfig.sh:../unix/tclConfig.sh.in tcl.pc:../unix/tcl.pc.in" |
| 11643 | |
| 11644 | cat >confcache <<\_ACEOF |
| 11645 | # This file is a shell script that caches the results of configure |
| 11646 | # tests run on this system so they can be shared between configure |
| 11647 | # scripts and configure runs, see configure's option --config-cache. |
| 11648 | # It is not useful on other systems. If it contains results you don't |
| 11649 | # want to keep, you may remove or edit it. |
| 11650 | # |
| 11651 | # config.status only pays attention to the cache file if you give it |
| 11652 | # the --recheck option to rerun configure. |
| 11653 | # |
| 11654 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11655 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the |
| 11656 | # following values. |
| 11657 | |
| 11658 | _ACEOF |
| 11659 | |
| 11660 | # The following way of writing the cache mishandles newlines in values, |
| 11661 | # but we know of no workaround that is simple, portable, and efficient. |
| 11662 | # So, we kill variables containing newlines. |
| 11663 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11664 | # and sets the high bit in the cache file unless we assign to the vars. |
| 11665 | ( |
| 11666 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11667 | eval ac_val=\$$ac_var |
| 11668 | case $ac_val in #( |
| 11669 | *${as_nl}*) |
| 11670 | case $ac_var in #( |
| 11671 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 11672 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 11673 | esac |
| 11674 | case $ac_var in #( |
| 11675 | _ | IFS | as_nl) ;; #( |
| 11676 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 11677 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 11678 | esac ;; |
| 11679 | esac |
| 11680 | done |
| 11681 | |
| 11682 | (set) 2>&1 | |
| 11683 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11684 | *${as_nl}ac_space=\ *) |
| 11685 | # 'set' does not quote correctly, so add quotes: double-quote |
| 11686 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 11687 | sed -n \ |
| 11688 | "s/'/'\\\\''/g; |
| 11689 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 11690 | ;; #( |
| 11691 | *) |
| 11692 | # 'set' quotes correctly as required by POSIX, so do not add quotes. |
| 11693 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 11694 | ;; |
| 11695 | esac | |
| 11696 | sort |
| 11697 | ) | |
| 11698 | sed ' |
| 11699 | /^ac_cv_env_/b end |
| 11700 | t clear |
| 11701 | :clear |
| 11702 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 11703 | t end |
| 11704 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11705 | :end' >>confcache |
| 11706 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11707 | if test -w "$cache_file"; then |
| 11708 | if test "x$cache_file" != "x/dev/null"; then |
| 11709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 11710 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 11711 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 11712 | cat confcache >"$cache_file" |
| 11713 | else |
| 11714 | case $cache_file in #( |
| 11715 | */* | ?:*) |
| 11716 | mv -f confcache "$cache_file"$$ && |
| 11717 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 11718 | *) |
| 11719 | mv -f confcache "$cache_file" ;; |
| 11720 | esac |
| 11721 | fi |
| 11722 | fi |
| 11723 | else |
| 11724 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 11725 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 11726 | fi |
| 11727 | fi |
| 11728 | rm -f confcache |
| 11729 | |
| 11730 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11731 | # Let make expand exec_prefix. |
| 11732 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11733 | |
| 11734 | DEFS=-DHAVE_CONFIG_H |
| 11735 | |
| 11736 | |
| 11737 | DEFS="-DHAVE_TCL_CONFIG_H -imacros tclConfig.h" |
| 11738 | CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" |
| 11739 | |
| 11740 | : "${CONFIG_STATUS=./config.status}" |
| 11741 | ac_write_fail=0 |
| 11742 | ac_clean_files_save=$ac_clean_files |
| 11743 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 11744 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 11745 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 11746 | as_write_fail=0 |
| 11747 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 11748 | #! $SHELL |
| 11749 | # Generated by $as_me. |
| 11750 | # Run this file to recreate the current configuration. |
| 11751 | # Compiler output produced by configure, useful for debugging |
| 11752 | # configure, is in config.log if it exists. |
| 11753 | |
| 11754 | debug=false |
| 11755 | ac_cs_recheck=false |
| 11756 | ac_cs_silent=false |
| 11757 | |
| 11758 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11759 | export SHELL |
| 11760 | _ASEOF |
| 11761 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11762 | ## -------------------- ## |
| 11763 | ## M4sh Initialization. ## |
| 11764 | ## -------------------- ## |
| 11765 | |
| 11766 | # Be more Bourne compatible |
| 11767 | DUALCASE=1; export DUALCASE # for MKS sh |
| 11768 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 11769 | then : |
| 11770 | emulate sh |
| 11771 | NULLCMD=: |
| 11772 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 11773 | # is contrary to our usage. Disable this feature. |
| 11774 | alias -g '${1+"$@"}'='"$@"' |
| 11775 | setopt NO_GLOB_SUBST |
| 11776 | else case e in #( |
| 11777 | e) case `(set -o) 2>/dev/null` in #( |
| 11778 | *posix*) : |
| 11779 | set -o posix ;; #( |
| 11780 | *) : |
| 11781 | ;; |
| 11782 | esac ;; |
| 11783 | esac |
| 11784 | fi |
| 11785 | |
| 11786 | |
| 11787 | |
| 11788 | # Reset variables that may have inherited troublesome values from |
| 11789 | # the environment. |
| 11790 | |
| 11791 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 11792 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 11793 | # side effect of setting IFS to empty, thus disabling word splitting.) |
| 11794 | # Quoting is to prevent editors from complaining about space-tab. |
| 11795 | as_nl=' |
| 11796 | ' |
| 11797 | export as_nl |
| 11798 | IFS=" "" $as_nl" |
| 11799 | |
| 11800 | PS1='$ ' |
| 11801 | PS2='> ' |
| 11802 | PS4='+ ' |
| 11803 | |
| 11804 | # Ensure predictable behavior from utilities with locale-dependent output. |
| 11805 | LC_ALL=C |
| 11806 | export LC_ALL |
| 11807 | LANGUAGE=C |
| 11808 | export LANGUAGE |
| 11809 | |
| 11810 | # We cannot yet rely on "unset" to work, but we need these variables |
| 11811 | # to be unset--not just set to an empty or harmless value--now, to |
| 11812 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 11813 | # also avoids known problems related to "unset" and subshell syntax |
| 11814 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 11815 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 11816 | do eval test \${$as_var+y} \ |
| 11817 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 11818 | done |
| 11819 | |
| 11820 | # Ensure that fds 0, 1, and 2 are open. |
| 11821 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 11822 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 11823 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 11824 | |
| 11825 | # The user is always right. |
| 11826 | if ${PATH_SEPARATOR+false} :; then |
| 11827 | PATH_SEPARATOR=: |
| 11828 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11829 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11830 | PATH_SEPARATOR=';' |
| 11831 | } |
| 11832 | fi |
| 11833 | |
| 11834 | |
| 11835 | # Find who we are. Look in the path if we contain no directory separator. |
| 11836 | as_myself= |
| 11837 | case $0 in #(( |
| 11838 | *[\\/]* ) as_myself=$0 ;; |
| 11839 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11840 | for as_dir in $PATH |
| 11841 | do |
| 11842 | IFS=$as_save_IFS |
| 11843 | case $as_dir in #((( |
| 11844 | '') as_dir=./ ;; |
| 11845 | */) ;; |
| 11846 | *) as_dir=$as_dir/ ;; |
| 11847 | esac |
| 11848 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 11849 | done |
| 11850 | IFS=$as_save_IFS |
| 11851 | |
| 11852 | ;; |
| 11853 | esac |
| 11854 | # We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 11855 | # in which case we are not to be found in the path. |
| 11856 | if test "x$as_myself" = x; then |
| 11857 | as_myself=$0 |
| 11858 | fi |
| 11859 | if test ! -f "$as_myself"; then |
| 11860 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 11861 | exit 1 |
| 11862 | fi |
| 11863 | |
| 11864 | |
| 11865 | |
| 11866 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 11867 | # ---------------------------------------- |
| 11868 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11869 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 11870 | # script with STATUS, using 1 if that was 0. |
| 11871 | as_fn_error () |
| 11872 | { |
| 11873 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 11874 | if test "$4"; then |
| 11875 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11876 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 11877 | fi |
| 11878 | printf "%s\n" "$as_me: error: $2" >&2 |
| 11879 | as_fn_exit $as_status |
| 11880 | } # as_fn_error |
| 11881 | |
| 11882 | |
| 11883 | # as_fn_set_status STATUS |
| 11884 | # ----------------------- |
| 11885 | # Set $? to STATUS, without forking. |
| 11886 | as_fn_set_status () |
| 11887 | { |
| 11888 | return $1 |
| 11889 | } # as_fn_set_status |
| 11890 | |
| 11891 | # as_fn_exit STATUS |
| 11892 | # ----------------- |
| 11893 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11894 | as_fn_exit () |
| 11895 | { |
| 11896 | set +e |
| 11897 | as_fn_set_status $1 |
| 11898 | exit $1 |
| 11899 | } # as_fn_exit |
| 11900 | |
| 11901 | # as_fn_unset VAR |
| 11902 | # --------------- |
| 11903 | # Portably unset VAR. |
| 11904 | as_fn_unset () |
| 11905 | { |
| 11906 | { eval $1=; unset $1;} |
| 11907 | } |
| 11908 | as_unset=as_fn_unset |
| 11909 | |
| 11910 | # as_fn_append VAR VALUE |
| 11911 | # ---------------------- |
| 11912 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11913 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11914 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11915 | # implementations. |
| 11916 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 11917 | then : |
| 11918 | eval 'as_fn_append () |
| 11919 | { |
| 11920 | eval $1+=\$2 |
| 11921 | }' |
| 11922 | else case e in #( |
| 11923 | e) as_fn_append () |
| 11924 | { |
| 11925 | eval $1=\$$1\$2 |
| 11926 | } ;; |
| 11927 | esac |
| 11928 | fi # as_fn_append |
| 11929 | |
| 11930 | # as_fn_arith ARG... |
| 11931 | # ------------------ |
| 11932 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11933 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11934 | # must be portable across $(()) and expr. |
| 11935 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 11936 | then : |
| 11937 | eval 'as_fn_arith () |
| 11938 | { |
| 11939 | as_val=$(( $* )) |
| 11940 | }' |
| 11941 | else case e in #( |
| 11942 | e) as_fn_arith () |
| 11943 | { |
| 11944 | as_val=`expr "$@" || test $? -eq 1` |
| 11945 | } ;; |
| 11946 | esac |
| 11947 | fi # as_fn_arith |
| 11948 | |
| 11949 | |
| 11950 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11951 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11952 | as_expr=expr |
| 11953 | else |
| 11954 | as_expr=false |
| 11955 | fi |
| 11956 | |
| 11957 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11958 | as_basename=basename |
| 11959 | else |
| 11960 | as_basename=false |
| 11961 | fi |
| 11962 | |
| 11963 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11964 | as_dirname=dirname |
| 11965 | else |
| 11966 | as_dirname=false |
| 11967 | fi |
| 11968 | |
| 11969 | as_me=`$as_basename -- "$0" || |
| 11970 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11971 | X"$0" : 'X\(//\)$' \| \ |
| 11972 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 11973 | printf "%s\n" X/"$0" | |
| 11974 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11975 | s//\1/ |
| 11976 | q |
| 11977 | } |
| 11978 | /^X\/\(\/\/\)$/{ |
| 11979 | s//\1/ |
| 11980 | q |
| 11981 | } |
| 11982 | /^X\/\(\/\).*/{ |
| 11983 | s//\1/ |
| 11984 | q |
| 11985 | } |
| 11986 | s/.*/./; q'` |
| 11987 | |
| 11988 | # Avoid depending upon Character Ranges. |
| 11989 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11990 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11991 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11992 | as_cr_digits='0123456789' |
| 11993 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 11994 | |
| 11995 | |
| 11996 | # Determine whether it's possible to make 'echo' print without a newline. |
| 11997 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 11998 | # for compatibility with existing Makefiles. |
| 11999 | ECHO_C= ECHO_N= ECHO_T= |
| 12000 | case `echo -n x` in #((((( |
| 12001 | -n*) |
| 12002 | case `echo 'xy\c'` in |
| 12003 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 12004 | xy) ECHO_C='\c';; |
| 12005 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 12006 | ECHO_T=' ';; |
| 12007 | esac;; |
| 12008 | *) |
| 12009 | ECHO_N='-n';; |
| 12010 | esac |
| 12011 | |
| 12012 | # For backward compatibility with old third-party macros, we provide |
| 12013 | # the shell variables $as_echo and $as_echo_n. New code should use |
| 12014 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 12015 | as_echo='printf %s\n' |
| 12016 | as_echo_n='printf %s' |
| 12017 | |
| 12018 | rm -f conf$$ conf$$.exe conf$$.file |
| 12019 | if test -d conf$$.dir; then |
| 12020 | rm -f conf$$.dir/conf$$.file |
| 12021 | else |
| 12022 | rm -f conf$$.dir |
| 12023 | mkdir conf$$.dir 2>/dev/null |
| 12024 | fi |
| 12025 | if (echo >conf$$.file) 2>/dev/null; then |
| 12026 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 12027 | as_ln_s='ln -s' |
| 12028 | # ... but there are two gotchas: |
| 12029 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 12030 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 12031 | # In both cases, we have to default to 'cp -pR'. |
| 12032 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 12033 | as_ln_s='cp -pR' |
| 12034 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 12035 | as_ln_s=ln |
| 12036 | else |
| 12037 | as_ln_s='cp -pR' |
| 12038 | fi |
| 12039 | else |
| 12040 | as_ln_s='cp -pR' |
| 12041 | fi |
| 12042 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 12043 | rmdir conf$$.dir 2>/dev/null |
| 12044 | |
| 12045 | |
| 12046 | # as_fn_mkdir_p |
| 12047 | # ------------- |
| 12048 | # Create "$as_dir" as a directory, including parents if necessary. |
| 12049 | as_fn_mkdir_p () |
| 12050 | { |
| 12051 | |
| 12052 | case $as_dir in #( |
| 12053 | -*) as_dir=./$as_dir;; |
| 12054 | esac |
| 12055 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 12056 | as_dirs= |
| 12057 | while :; do |
| 12058 | case $as_dir in #( |
| 12059 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 12060 | *) as_qdir=$as_dir;; |
| 12061 | esac |
| 12062 | as_dirs="'$as_qdir' $as_dirs" |
| 12063 | as_dir=`$as_dirname -- "$as_dir" || |
| 12064 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12065 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 12066 | X"$as_dir" : 'X\(//\)$' \| \ |
| 12067 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 12068 | printf "%s\n" X"$as_dir" | |
| 12069 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12070 | s//\1/ |
| 12071 | q |
| 12072 | } |
| 12073 | /^X\(\/\/\)[^/].*/{ |
| 12074 | s//\1/ |
| 12075 | q |
| 12076 | } |
| 12077 | /^X\(\/\/\)$/{ |
| 12078 | s//\1/ |
| 12079 | q |
| 12080 | } |
| 12081 | /^X\(\/\).*/{ |
| 12082 | s//\1/ |
| 12083 | q |
| 12084 | } |
| 12085 | s/.*/./; q'` |
| 12086 | test -d "$as_dir" && break |
| 12087 | done |
| 12088 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 12089 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 12090 | |
| 12091 | |
| 12092 | } # as_fn_mkdir_p |
| 12093 | if mkdir -p . 2>/dev/null; then |
| 12094 | as_mkdir_p='mkdir -p "$as_dir"' |
| 12095 | else |
| 12096 | test -d ./-p && rmdir ./-p |
| 12097 | as_mkdir_p=false |
| 12098 | fi |
| 12099 | |
| 12100 | |
| 12101 | # as_fn_executable_p FILE |
| 12102 | # ----------------------- |
| 12103 | # Test if FILE is an executable regular file. |
| 12104 | as_fn_executable_p () |
| 12105 | { |
| 12106 | test -f "$1" && test -x "$1" |
| 12107 | } # as_fn_executable_p |
| 12108 | as_test_x='test -x' |
| 12109 | as_executable_p=as_fn_executable_p |
| 12110 | |
| 12111 | # Sed expression to map a string onto a valid CPP name. |
| 12112 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 12113 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 12114 | |
| 12115 | # Sed expression to map a string onto a valid variable name. |
| 12116 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 12117 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 12118 | |
| 12119 | |
| 12120 | exec 6>&1 |
| 12121 | ## ----------------------------------- ## |
| 12122 | ## Main body of $CONFIG_STATUS script. ## |
| 12123 | ## ----------------------------------- ## |
| 12124 | _ASEOF |
| 12125 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 12126 | |
| 12127 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12128 | # Save the log message, to keep $0 and so on meaningful, and to |
| 12129 | # report actual input values of CONFIG_FILES etc. instead of their |
| 12130 | # values after options handling. |
| 12131 | ac_log=" |
| 12132 | This file was extended by tcl $as_me 8.6, which was |
| 12133 | generated by GNU Autoconf 2.72. Invocation command line was |
| 12134 | |
| 12135 | CONFIG_FILES = $CONFIG_FILES |
| 12136 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 12137 | CONFIG_LINKS = $CONFIG_LINKS |
| 12138 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 12139 | $ $0 $@ |
| 12140 | |
| 12141 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 12142 | " |
| 12143 | |
| 12144 | _ACEOF |
| 12145 | |
| 12146 | case $ac_config_files in *" |
| 12147 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 12148 | esac |
| 12149 | |
| 12150 | case $ac_config_headers in *" |
| 12151 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 12152 | esac |
| 12153 | |
| 12154 | |
| 12155 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12156 | # Files that config.status was made for. |
| 12157 | config_files="$ac_config_files" |
| 12158 | config_headers="$ac_config_headers" |
| 12159 | config_commands="$ac_config_commands" |
| 12160 | |
| 12161 | _ACEOF |
| 12162 | |
| 12163 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12164 | ac_cs_usage="\ |
| 12165 | '$as_me' instantiates files and other configuration actions |
| 12166 | from templates according to the current configuration. Unless the files |
| 12167 | and actions are specified as TAGs, all are instantiated by default. |
| 12168 | |
| 12169 | Usage: $0 [OPTION]... [TAG]... |
| 12170 | |
| 12171 | -h, --help print this help, then exit |
| 12172 | -V, --version print version number and configuration settings, then exit |
| 12173 | --config print configuration, then exit |
| 12174 | -q, --quiet, --silent |
| 12175 | do not print progress messages |
| 12176 | -d, --debug don't remove temporary files |
| 12177 | --recheck update $as_me by reconfiguring in the same conditions |
| 12178 | --file=FILE[:TEMPLATE] |
| 12179 | instantiate the configuration file FILE |
| 12180 | --header=FILE[:TEMPLATE] |
| 12181 | instantiate the configuration header FILE |
| 12182 | |
| 12183 | Configuration files: |
| 12184 | $config_files |
| 12185 | |
| 12186 | Configuration headers: |
| 12187 | $config_headers |
| 12188 | |
| 12189 | Configuration commands: |
| 12190 | $config_commands |
| 12191 | |
| 12192 | Report bugs to the package provider." |
| 12193 | |
| 12194 | _ACEOF |
| 12195 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 12196 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 12197 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12198 | ac_cs_config='$ac_cs_config_escaped' |
| 12199 | ac_cs_version="\\ |
| 12200 | tcl config.status 8.6 |
| 12201 | configured by $0, generated by GNU Autoconf 2.72, |
| 12202 | with options \\"\$ac_cs_config\\" |
| 12203 | |
| 12204 | Copyright (C) 2023 Free Software Foundation, Inc. |
| 12205 | This config.status script is free software; the Free Software Foundation |
| 12206 | gives unlimited permission to copy, distribute and modify it." |
| 12207 | |
| 12208 | ac_pwd='$ac_pwd' |
| 12209 | srcdir='$srcdir' |
| 12210 | test -n "\$AWK" || AWK=awk |
| 12211 | _ACEOF |
| 12212 | |
| 12213 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12214 | # The default lists apply if the user does not specify any file. |
| 12215 | ac_need_defaults=: |
| 12216 | while test $# != 0 |
| 12217 | do |
| 12218 | case $1 in |
| 12219 | --*=?*) |
| 12220 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12221 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 12222 | ac_shift=: |
| 12223 | ;; |
| 12224 | --*=) |
| 12225 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 12226 | ac_optarg= |
| 12227 | ac_shift=: |
| 12228 | ;; |
| 12229 | *) |
| 12230 | ac_option=$1 |
| 12231 | ac_optarg=$2 |
| 12232 | ac_shift=shift |
| 12233 | ;; |
| 12234 | esac |
| 12235 | |
| 12236 | case $ac_option in |
| 12237 | # Handling of the options. |
| 12238 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 12239 | ac_cs_recheck=: ;; |
| 12240 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 12241 | printf "%s\n" "$ac_cs_version"; exit ;; |
| 12242 | --config | --confi | --conf | --con | --co | --c ) |
| 12243 | printf "%s\n" "$ac_cs_config"; exit ;; |
| 12244 | --debug | --debu | --deb | --de | --d | -d ) |
| 12245 | debug=: ;; |
| 12246 | --file | --fil | --fi | --f ) |
| 12247 | $ac_shift |
| 12248 | case $ac_optarg in |
| 12249 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12250 | '') as_fn_error $? "missing file argument" ;; |
| 12251 | esac |
| 12252 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 12253 | ac_need_defaults=false;; |
| 12254 | --header | --heade | --head | --hea ) |
| 12255 | $ac_shift |
| 12256 | case $ac_optarg in |
| 12257 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 12258 | esac |
| 12259 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 12260 | ac_need_defaults=false;; |
| 12261 | --he | --h) |
| 12262 | # Conflict between --help and --header |
| 12263 | as_fn_error $? "ambiguous option: '$1' |
| 12264 | Try '$0 --help' for more information.";; |
| 12265 | --help | --hel | -h ) |
| 12266 | printf "%s\n" "$ac_cs_usage"; exit ;; |
| 12267 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 12268 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 12269 | ac_cs_silent=: ;; |
| 12270 | |
| 12271 | # This is an error. |
| 12272 | -*) as_fn_error $? "unrecognized option: '$1' |
| 12273 | Try '$0 --help' for more information." ;; |
| 12274 | |
| 12275 | *) as_fn_append ac_config_targets " $1" |
| 12276 | ac_need_defaults=false ;; |
| 12277 | |
| 12278 | esac |
| 12279 | shift |
| 12280 | done |
| 12281 | |
| 12282 | ac_configure_extra_args= |
| 12283 | |
| 12284 | if $ac_cs_silent; then |
| 12285 | exec 6>/dev/null |
| 12286 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 12287 | fi |
| 12288 | |
| 12289 | _ACEOF |
| 12290 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12291 | if \$ac_cs_recheck; then |
| 12292 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 12293 | shift |
| 12294 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12295 | CONFIG_SHELL='$SHELL' |
| 12296 | export CONFIG_SHELL |
| 12297 | exec "\$@" |
| 12298 | fi |
| 12299 | |
| 12300 | _ACEOF |
| 12301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12302 | exec 5>>config.log |
| 12303 | { |
| 12304 | echo |
| 12305 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12306 | ## Running $as_me. ## |
| 12307 | _ASBOX |
| 12308 | printf "%s\n" "$ac_log" |
| 12309 | } >&5 |
| 12310 | |
| 12311 | _ACEOF |
| 12312 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12313 | # |
| 12314 | # INIT-COMMANDS |
| 12315 | # |
| 12316 | VERSION=${TCL_VERSION} |
| 12317 | |
| 12318 | _ACEOF |
| 12319 | |
| 12320 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12321 | |
| 12322 | # Handling of arguments. |
| 12323 | for ac_config_target in $ac_config_targets |
| 12324 | do |
| 12325 | case $ac_config_target in |
| 12326 | "tclConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS tclConfig.h:../unix/tclConfig.h.in" ;; |
| 12327 | "Tcl-Info.plist") CONFIG_FILES="$CONFIG_FILES Tcl-Info.plist:../macosx/Tcl-Info.plist.in" ;; |
| 12328 | "Tclsh-Info.plist") CONFIG_FILES="$CONFIG_FILES Tclsh-Info.plist:../macosx/Tclsh-Info.plist.in" ;; |
| 12329 | "Tcl.framework") CONFIG_COMMANDS="$CONFIG_COMMANDS Tcl.framework" ;; |
| 12330 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:../unix/Makefile.in" ;; |
| 12331 | "dltest/Makefile") CONFIG_FILES="$CONFIG_FILES dltest/Makefile:../unix/dltest/Makefile.in" ;; |
| 12332 | "tclConfig.sh") CONFIG_FILES="$CONFIG_FILES tclConfig.sh:../unix/tclConfig.sh.in" ;; |
| 12333 | "tcl.pc") CONFIG_FILES="$CONFIG_FILES tcl.pc:../unix/tcl.pc.in" ;; |
| 12334 | |
| 12335 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
| 12336 | esac |
| 12337 | done |
| 12338 | |
| 12339 | |
| 12340 | # If the user did not use the arguments to specify the items to instantiate, |
| 12341 | # then the envvar interface is used. Set only those that are not. |
| 12342 | # We use the long form for the default assignment because of an extremely |
| 12343 | # bizarre bug on SunOS 4.1.3. |
| 12344 | if $ac_need_defaults; then |
| 12345 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 12346 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 12347 | test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 12348 | fi |
| 12349 | |
| 12350 | # Have a temporary directory for convenience. Make it in the build tree |
| 12351 | # simply because there is no reason against having it here, and in addition, |
| 12352 | # creating and moving files from /tmp can sometimes cause problems. |
| 12353 | # Hook for its removal unless debugging. |
| 12354 | # Note that there is a small window in which the directory will not be cleaned: |
| 12355 | # after its creation but before its name has been assigned to '$tmp'. |
| 12356 | $debug || |
| 12357 | { |
| 12358 | tmp= ac_tmp= |
| 12359 | trap 'exit_status=$? |
| 12360 | : "${ac_tmp:=$tmp}" |
| 12361 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 12362 | ' 0 |
| 12363 | trap 'as_fn_exit 1' 1 2 13 15 |
| 12364 | } |
| 12365 | # Create a (secure) tmp directory for tmp files. |
| 12366 | |
| 12367 | { |
| 12368 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 12369 | test -d "$tmp" |
| 12370 | } || |
| 12371 | { |
| 12372 | tmp=./conf$$-$RANDOM |
| 12373 | (umask 077 && mkdir "$tmp") |
| 12374 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 12375 | ac_tmp=$tmp |
| 12376 | |
| 12377 | # Set up the scripts for CONFIG_FILES section. |
| 12378 | # No need to generate them if there are no CONFIG_FILES. |
| 12379 | # This happens for instance with './config.status config.h'. |
| 12380 | if test -n "$CONFIG_FILES"; then |
| 12381 | |
| 12382 | |
| 12383 | ac_cr=`echo X | tr X '\015'` |
| 12384 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12385 | # But we know of no other shell where ac_cr would be empty at this |
| 12386 | # point, so we can use a bashism as a fallback. |
| 12387 | if test "x$ac_cr" = x; then |
| 12388 | eval ac_cr=\$\'\\r\' |
| 12389 | fi |
| 12390 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12391 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 12392 | ac_cs_awk_cr='\\r' |
| 12393 | else |
| 12394 | ac_cs_awk_cr=$ac_cr |
| 12395 | fi |
| 12396 | |
| 12397 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 12398 | _ACEOF |
| 12399 | |
| 12400 | |
| 12401 | { |
| 12402 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12403 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12404 | echo "_ACEOF" |
| 12405 | } >conf$$subs.sh || |
| 12406 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12407 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 12408 | ac_delim='%!_!# ' |
| 12409 | for ac_last_try in false false false false false :; do |
| 12410 | . ./conf$$subs.sh || |
| 12411 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12412 | |
| 12413 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12414 | if test $ac_delim_n = $ac_delim_num; then |
| 12415 | break |
| 12416 | elif $ac_last_try; then |
| 12417 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 12418 | else |
| 12419 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12420 | fi |
| 12421 | done |
| 12422 | rm -f conf$$subs.sh |
| 12423 | |
| 12424 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12425 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 12426 | _ACEOF |
| 12427 | sed -n ' |
| 12428 | h |
| 12429 | s/^/S["/; s/!.*/"]=/ |
| 12430 | p |
| 12431 | g |
| 12432 | s/^[^!]*!// |
| 12433 | :repl |
| 12434 | t repl |
| 12435 | s/'"$ac_delim"'$// |
| 12436 | t delim |
| 12437 | :nl |
| 12438 | h |
| 12439 | s/\(.\{148\}\)..*/\1/ |
| 12440 | t more1 |
| 12441 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12442 | p |
| 12443 | n |
| 12444 | b repl |
| 12445 | :more1 |
| 12446 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12447 | p |
| 12448 | g |
| 12449 | s/.\{148\}// |
| 12450 | t nl |
| 12451 | :delim |
| 12452 | h |
| 12453 | s/\(.\{148\}\)..*/\1/ |
| 12454 | t more2 |
| 12455 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12456 | p |
| 12457 | b |
| 12458 | :more2 |
| 12459 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12460 | p |
| 12461 | g |
| 12462 | s/.\{148\}// |
| 12463 | t delim |
| 12464 | ' <conf$$subs.awk | sed ' |
| 12465 | /^[^""]/{ |
| 12466 | N |
| 12467 | s/\n// |
| 12468 | } |
| 12469 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12470 | rm -f conf$$subs.awk |
| 12471 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12472 | _ACAWK |
| 12473 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 12474 | for (key in S) S_is_set[key] = 1 |
| 12475 | FS = "" |
| 12476 | |
| 12477 | } |
| 12478 | { |
| 12479 | line = $ 0 |
| 12480 | nfields = split(line, field, "@") |
| 12481 | substed = 0 |
| 12482 | len = length(field[1]) |
| 12483 | for (i = 2; i < nfields; i++) { |
| 12484 | key = field[i] |
| 12485 | keylen = length(key) |
| 12486 | if (S_is_set[key]) { |
| 12487 | value = S[key] |
| 12488 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12489 | len += length(value) + length(field[++i]) |
| 12490 | substed = 1 |
| 12491 | } else |
| 12492 | len += 1 + keylen |
| 12493 | } |
| 12494 | |
| 12495 | print line |
| 12496 | } |
| 12497 | |
| 12498 | _ACAWK |
| 12499 | _ACEOF |
| 12500 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12501 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12502 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12503 | else |
| 12504 | cat |
| 12505 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 12506 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 12507 | _ACEOF |
| 12508 | |
| 12509 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 12510 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 12511 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12512 | # (actually we leave an empty line to preserve line numbers). |
| 12513 | if test "x$srcdir" = x.; then |
| 12514 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 12515 | h |
| 12516 | s/// |
| 12517 | s/^/:/ |
| 12518 | s/[ ]*$/:/ |
| 12519 | s/:\$(srcdir):/:/g |
| 12520 | s/:\${srcdir}:/:/g |
| 12521 | s/:@srcdir@:/:/g |
| 12522 | s/^:*// |
| 12523 | s/:*$// |
| 12524 | x |
| 12525 | s/\(=[ ]*\).*/\1/ |
| 12526 | G |
| 12527 | s/\n// |
| 12528 | s/^[^=]*=[ ]*$// |
| 12529 | }' |
| 12530 | fi |
| 12531 | |
| 12532 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12533 | fi # test -n "$CONFIG_FILES" |
| 12534 | |
| 12535 | # Set up the scripts for CONFIG_HEADERS section. |
| 12536 | # No need to generate them if there are no CONFIG_HEADERS. |
| 12537 | # This happens for instance with './config.status Makefile'. |
| 12538 | if test -n "$CONFIG_HEADERS"; then |
| 12539 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 12540 | BEGIN { |
| 12541 | _ACEOF |
| 12542 | |
| 12543 | # Transform confdefs.h into an awk script 'defines.awk', embedded as |
| 12544 | # here-document in config.status, that substitutes the proper values into |
| 12545 | # config.h.in to produce config.h. |
| 12546 | |
| 12547 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 12548 | # handling of long lines. |
| 12549 | ac_delim='%!_!# ' |
| 12550 | for ac_last_try in false false :; do |
| 12551 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 12552 | if test -z "$ac_tt"; then |
| 12553 | break |
| 12554 | elif $ac_last_try; then |
| 12555 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 12556 | else |
| 12557 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12558 | fi |
| 12559 | done |
| 12560 | |
| 12561 | # For the awk script, D is an array of macro values keyed by name, |
| 12562 | # likewise P contains macro parameters if any. Preserve backslash |
| 12563 | # newline sequences. |
| 12564 | |
| 12565 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12566 | sed -n ' |
| 12567 | s/.\{148\}/&'"$ac_delim"'/g |
| 12568 | t rset |
| 12569 | :rset |
| 12570 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 12571 | t def |
| 12572 | d |
| 12573 | :def |
| 12574 | s/\\$// |
| 12575 | t bsnl |
| 12576 | s/["\\]/\\&/g |
| 12577 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12578 | D["\1"]=" \3"/p |
| 12579 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 12580 | d |
| 12581 | :bsnl |
| 12582 | s/["\\]/\\&/g |
| 12583 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12584 | D["\1"]=" \3\\\\\\n"\\/p |
| 12585 | t cont |
| 12586 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 12587 | t cont |
| 12588 | d |
| 12589 | :cont |
| 12590 | n |
| 12591 | s/.\{148\}/&'"$ac_delim"'/g |
| 12592 | t clear |
| 12593 | :clear |
| 12594 | s/\\$// |
| 12595 | t bsnlc |
| 12596 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 12597 | d |
| 12598 | :bsnlc |
| 12599 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 12600 | b cont |
| 12601 | ' <confdefs.h | sed ' |
| 12602 | s/'"$ac_delim"'/"\\\ |
| 12603 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12604 | |
| 12605 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12606 | for (key in D) D_is_set[key] = 1 |
| 12607 | FS = "" |
| 12608 | } |
| 12609 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 12610 | line = \$ 0 |
| 12611 | split(line, arg, " ") |
| 12612 | if (arg[1] == "#") { |
| 12613 | defundef = arg[2] |
| 12614 | mac1 = arg[3] |
| 12615 | } else { |
| 12616 | defundef = substr(arg[1], 2) |
| 12617 | mac1 = arg[2] |
| 12618 | } |
| 12619 | split(mac1, mac2, "(") #) |
| 12620 | macro = mac2[1] |
| 12621 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 12622 | if (D_is_set[macro]) { |
| 12623 | # Preserve the white space surrounding the "#". |
| 12624 | print prefix "define", macro P[macro] D[macro] |
| 12625 | next |
| 12626 | } else { |
| 12627 | # Replace #undef with comments. This is necessary, for example, |
| 12628 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 12629 | # on some systems where configure will not decide to define it. |
| 12630 | if (defundef == "undef") { |
| 12631 | print "/*", prefix defundef, macro, "*/" |
| 12632 | next |
| 12633 | } |
| 12634 | } |
| 12635 | } |
| 12636 | { print } |
| 12637 | _ACAWK |
| 12638 | _ACEOF |
| 12639 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12640 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 12641 | fi # test -n "$CONFIG_HEADERS" |
| 12642 | |
| 12643 | |
| 12644 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 12645 | shift |
| 12646 | for ac_tag |
| 12647 | do |
| 12648 | case $ac_tag in |
| 12649 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12650 | esac |
| 12651 | case $ac_mode$ac_tag in |
| 12652 | :[FHL]*:*);; |
| 12653 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
| 12654 | :[FH]-) ac_tag=-:-;; |
| 12655 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12656 | esac |
| 12657 | ac_save_IFS=$IFS |
| 12658 | IFS=: |
| 12659 | set x $ac_tag |
| 12660 | IFS=$ac_save_IFS |
| 12661 | shift |
| 12662 | ac_file=$1 |
| 12663 | shift |
| 12664 | |
| 12665 | case $ac_mode in |
| 12666 | :L) ac_source=$1;; |
| 12667 | :[FH]) |
| 12668 | ac_file_inputs= |
| 12669 | for ac_f |
| 12670 | do |
| 12671 | case $ac_f in |
| 12672 | -) ac_f="$ac_tmp/stdin";; |
| 12673 | *) # Look for the file first in the build tree, then in the source tree |
| 12674 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12675 | # because $ac_f cannot contain ':'. |
| 12676 | test -f "$ac_f" || |
| 12677 | case $ac_f in |
| 12678 | [\\/$]*) false;; |
| 12679 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12680 | esac || |
| 12681 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
| 12682 | esac |
| 12683 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 12684 | as_fn_append ac_file_inputs " '$ac_f'" |
| 12685 | done |
| 12686 | |
| 12687 | # Let's still pretend it is 'configure' which instantiates (i.e., don't |
| 12688 | # use $as_me), people would be surprised to read: |
| 12689 | # /* config.h. Generated by config.status. */ |
| 12690 | configure_input='Generated from '` |
| 12691 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12692 | `' by configure.' |
| 12693 | if test x"$ac_file" != x-; then |
| 12694 | configure_input="$ac_file. $configure_input" |
| 12695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 12696 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 12697 | fi |
| 12698 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12699 | case $configure_input in #( |
| 12700 | *\&* | *\|* | *\\* ) |
| 12701 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 12702 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12703 | *) ac_sed_conf_input=$configure_input;; |
| 12704 | esac |
| 12705 | |
| 12706 | case $ac_tag in |
| 12707 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 12708 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 12709 | esac |
| 12710 | ;; |
| 12711 | esac |
| 12712 | |
| 12713 | ac_dir=`$as_dirname -- "$ac_file" || |
| 12714 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12715 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12716 | X"$ac_file" : 'X\(//\)$' \| \ |
| 12717 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 12718 | printf "%s\n" X"$ac_file" | |
| 12719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12720 | s//\1/ |
| 12721 | q |
| 12722 | } |
| 12723 | /^X\(\/\/\)[^/].*/{ |
| 12724 | s//\1/ |
| 12725 | q |
| 12726 | } |
| 12727 | /^X\(\/\/\)$/{ |
| 12728 | s//\1/ |
| 12729 | q |
| 12730 | } |
| 12731 | /^X\(\/\).*/{ |
| 12732 | s//\1/ |
| 12733 | q |
| 12734 | } |
| 12735 | s/.*/./; q'` |
| 12736 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 12737 | ac_builddir=. |
| 12738 | |
| 12739 | case "$ac_dir" in |
| 12740 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12741 | *) |
| 12742 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 12743 | # A ".." for each directory in $ac_dir_suffix. |
| 12744 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 12745 | case $ac_top_builddir_sub in |
| 12746 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12747 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12748 | esac ;; |
| 12749 | esac |
| 12750 | ac_abs_top_builddir=$ac_pwd |
| 12751 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12752 | # for backward compatibility: |
| 12753 | ac_top_builddir=$ac_top_build_prefix |
| 12754 | |
| 12755 | case $srcdir in |
| 12756 | .) # We are building in place. |
| 12757 | ac_srcdir=. |
| 12758 | ac_top_srcdir=$ac_top_builddir_sub |
| 12759 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12760 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 12761 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 12762 | ac_top_srcdir=$srcdir |
| 12763 | ac_abs_top_srcdir=$srcdir ;; |
| 12764 | *) # Relative name. |
| 12765 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12766 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12767 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 12768 | esac |
| 12769 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 12770 | |
| 12771 | |
| 12772 | case $ac_mode in |
| 12773 | :F) |
| 12774 | # |
| 12775 | # CONFIG_FILE |
| 12776 | # |
| 12777 | |
| 12778 | _ACEOF |
| 12779 | |
| 12780 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12781 | # If the template does not know about datarootdir, expand it. |
| 12782 | # FIXME: This hack should be removed a few years after 2.60. |
| 12783 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 12784 | ac_sed_dataroot=' |
| 12785 | /datarootdir/ { |
| 12786 | p |
| 12787 | q |
| 12788 | } |
| 12789 | /@datadir@/p |
| 12790 | /@docdir@/p |
| 12791 | /@infodir@/p |
| 12792 | /@localedir@/p |
| 12793 | /@mandir@/p' |
| 12794 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 12795 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12796 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 12797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 12798 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 12799 | _ACEOF |
| 12800 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12801 | ac_datarootdir_hack=' |
| 12802 | s&@datadir@&$datadir&g |
| 12803 | s&@docdir@&$docdir&g |
| 12804 | s&@infodir@&$infodir&g |
| 12805 | s&@localedir@&$localedir&g |
| 12806 | s&@mandir@&$mandir&g |
| 12807 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 12808 | esac |
| 12809 | _ACEOF |
| 12810 | |
| 12811 | # Neutralize VPATH when '$srcdir' = '.'. |
| 12812 | # Shell code in configure.ac might set extrasub. |
| 12813 | # FIXME: do we really want to maintain this feature? |
| 12814 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12815 | ac_sed_extra="$ac_vpsub |
| 12816 | $extrasub |
| 12817 | _ACEOF |
| 12818 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12819 | :t |
| 12820 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 12821 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 12822 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 12823 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 12824 | s&@srcdir@&$ac_srcdir&;t t |
| 12825 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12826 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12827 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12828 | s&@builddir@&$ac_builddir&;t t |
| 12829 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12830 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12831 | $ac_datarootdir_hack |
| 12832 | " |
| 12833 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 12834 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12835 | |
| 12836 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 12837 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 12838 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 12839 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 12840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 12841 | which seems to be undefined. Please make sure it is defined" >&5 |
| 12842 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 12843 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 12844 | |
| 12845 | rm -f "$ac_tmp/stdin" |
| 12846 | case $ac_file in |
| 12847 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 12848 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 12849 | esac \ |
| 12850 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12851 | ;; |
| 12852 | :H) |
| 12853 | # |
| 12854 | # CONFIG_HEADER |
| 12855 | # |
| 12856 | if test x"$ac_file" != x-; then |
| 12857 | { |
| 12858 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 12859 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 12860 | } >"$ac_tmp/config.h" \ |
| 12861 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12862 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 12863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 12864 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 12865 | else |
| 12866 | rm -f "$ac_file" |
| 12867 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 12868 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 12869 | fi |
| 12870 | else |
| 12871 | printf "%s\n" "/* $configure_input */" >&1 \ |
| 12872 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 12873 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 12874 | fi |
| 12875 | ;; |
| 12876 | |
| 12877 | :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 12878 | printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 12879 | ;; |
| 12880 | esac |
| 12881 | |
| 12882 | |
| 12883 | case $ac_file$ac_mode in |
| 12884 | "Tcl.framework":C) n=Tcl && |
| 12885 | f=$n.framework && v=Versions/$VERSION && |
| 12886 | rm -rf $f && mkdir -p $f/$v/Resources && |
| 12887 | ln -s $v/$n $v/Resources $f && ln -s ../../../$n $f/$v && |
| 12888 | ln -s ../../../../$n-Info.plist $f/$v/Resources/Info.plist && |
| 12889 | unset n f v |
| 12890 | ;; |
| 12891 | |
| 12892 | esac |
| 12893 | done # for ac_tag |
| 12894 | |
| 12895 | |
| 12896 | as_fn_exit 0 |
| 12897 | _ACEOF |
| 12898 | ac_clean_files=$ac_clean_files_save |
| 12899 | |
| 12900 | test $ac_write_fail = 0 || |
| 12901 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 12902 | |
| 12903 | |
| 12904 | # configure is writing to config.log, and then calls config.status. |
| 12905 | # config.status does its own redirection, appending to config.log. |
| 12906 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12907 | # by configure, so config.status won't be able to write to it; its |
| 12908 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12909 | # effectively closing config.log, so it can be properly (re)opened and |
| 12910 | # appended to by config.status. When coming back to configure, we |
| 12911 | # need to make the FD available again. |
| 12912 | if test "$no_create" != yes; then |
| 12913 | ac_cs_success=: |
| 12914 | ac_config_status_args= |
| 12915 | test "$silent" = yes && |
| 12916 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12917 | exec 5>/dev/null |
| 12918 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12919 | exec 5>>config.log |
| 12920 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12921 | # would make configure fail if this is the last instruction. |
| 12922 | $ac_cs_success || as_fn_exit 1 |
| 12923 | fi |
| 12924 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 12925 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 12926 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12927 | fi |
| 12928 | |
| 12929 | |
| 12930 | |
| 12931 |