1342175Scy#! /bin/sh 2342175Scy# Guess values for system-dependent variables and create Makefiles. 3369951Scy# Generated by GNU Autoconf 2.69 for sqlite 3.35.5. 4342175Scy# 5342175Scy# 6342175Scy# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7342175Scy# 8342175Scy# 9342175Scy# This configure script is free software; the Free Software Foundation 10342175Scy# gives unlimited permission to copy, distribute and modify it. 11342175Scy## -------------------- ## 12342175Scy## M4sh Initialization. ## 13342175Scy## -------------------- ## 14342175Scy 15342175Scy# Be more Bourne compatible 16342175ScyDUALCASE=1; export DUALCASE # for MKS sh 17342175Scyif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18342175Scy emulate sh 19342175Scy NULLCMD=: 20342175Scy # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21342175Scy # is contrary to our usage. Disable this feature. 22342175Scy alias -g '${1+"$@"}'='"$@"' 23342175Scy setopt NO_GLOB_SUBST 24342175Scyelse 25342175Scy case `(set -o) 2>/dev/null` in #( 26342175Scy *posix*) : 27342175Scy set -o posix ;; #( 28342175Scy *) : 29342175Scy ;; 30342175Scyesac 31342175Scyfi 32342175Scy 33342175Scy 34342175Scyas_nl=' 35342175Scy' 36342175Scyexport as_nl 37342175Scy# Printing a long string crashes Solaris 7 /usr/bin/printf. 38342175Scyas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39342175Scyas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40342175Scyas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41342175Scy# Prefer a ksh shell builtin over an external printf program on Solaris, 42342175Scy# but without wasting forks for bash or zsh. 43342175Scyif test -z "$BASH_VERSION$ZSH_VERSION" \ 44342175Scy && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45342175Scy as_echo='print -r --' 46342175Scy as_echo_n='print -rn --' 47342175Scyelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48342175Scy as_echo='printf %s\n' 49342175Scy as_echo_n='printf %s' 50342175Scyelse 51342175Scy if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52342175Scy as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53342175Scy as_echo_n='/usr/ucb/echo -n' 54342175Scy else 55342175Scy as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56342175Scy as_echo_n_body='eval 57342175Scy arg=$1; 58342175Scy case $arg in #( 59342175Scy *"$as_nl"*) 60342175Scy expr "X$arg" : "X\\(.*\\)$as_nl"; 61342175Scy arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62342175Scy esac; 63342175Scy expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64342175Scy ' 65342175Scy export as_echo_n_body 66342175Scy as_echo_n='sh -c $as_echo_n_body as_echo' 67342175Scy fi 68342175Scy export as_echo_body 69342175Scy as_echo='sh -c $as_echo_body as_echo' 70342175Scyfi 71342175Scy 72342175Scy# The user is always right. 73342175Scyif test "${PATH_SEPARATOR+set}" != set; then 74342175Scy PATH_SEPARATOR=: 75342175Scy (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76342175Scy (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77342175Scy PATH_SEPARATOR=';' 78342175Scy } 79342175Scyfi 80342175Scy 81342175Scy 82342175Scy# IFS 83342175Scy# We need space, tab and new line, in precisely that order. Quoting is 84342175Scy# there to prevent editors from complaining about space-tab. 85342175Scy# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86342175Scy# splitting by setting IFS to empty value.) 87342175ScyIFS=" "" $as_nl" 88342175Scy 89342175Scy# Find who we are. Look in the path if we contain no directory separator. 90342175Scyas_myself= 91342175Scycase $0 in #(( 92342175Scy *[\\/]* ) as_myself=$0 ;; 93342175Scy *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94342175Scyfor as_dir in $PATH 95342175Scydo 96342175Scy IFS=$as_save_IFS 97342175Scy test -z "$as_dir" && as_dir=. 98342175Scy test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99342175Scy done 100342175ScyIFS=$as_save_IFS 101342175Scy 102342175Scy ;; 103342175Scyesac 104342175Scy# We did not find ourselves, most probably we were run as `sh COMMAND' 105342175Scy# in which case we are not to be found in the path. 106342175Scyif test "x$as_myself" = x; then 107342175Scy as_myself=$0 108342175Scyfi 109342175Scyif test ! -f "$as_myself"; then 110342175Scy $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111342175Scy exit 1 112342175Scyfi 113342175Scy 114342175Scy# Unset variables that we do not need and which cause bugs (e.g. in 115342175Scy# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116342175Scy# suppresses any "Segmentation fault" message there. '((' could 117342175Scy# trigger a bug in pdksh 5.2.14. 118342175Scyfor as_var in BASH_ENV ENV MAIL MAILPATH 119342175Scydo eval test x\${$as_var+set} = xset \ 120342175Scy && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121342175Scydone 122342175ScyPS1='$ ' 123342175ScyPS2='> ' 124342175ScyPS4='+ ' 125342175Scy 126342175Scy# NLS nuisances. 127342175ScyLC_ALL=C 128342175Scyexport LC_ALL 129342175ScyLANGUAGE=C 130342175Scyexport LANGUAGE 131342175Scy 132342175Scy# CDPATH. 133342175Scy(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134342175Scy 135342175Scy# Use a proper internal environment variable to ensure we don't fall 136342175Scy # into an infinite loop, continuously re-executing ourselves. 137342175Scy if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138342175Scy _as_can_reexec=no; export _as_can_reexec; 139342175Scy # We cannot yet assume a decent shell, so we have to provide a 140342175Scy# neutralization value for shells without unset; and this also 141342175Scy# works around shells that cannot unset nonexistent variables. 142342175Scy# Preserve -v and -x to the replacement shell. 143342175ScyBASH_ENV=/dev/null 144342175ScyENV=/dev/null 145342175Scy(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146342175Scycase $- in # (((( 147342175Scy *v*x* | *x*v* ) as_opts=-vx ;; 148342175Scy *v* ) as_opts=-v ;; 149342175Scy *x* ) as_opts=-x ;; 150342175Scy * ) as_opts= ;; 151342175Scyesac 152342175Scyexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153342175Scy# Admittedly, this is quite paranoid, since all the known shells bail 154342175Scy# out after a failed `exec'. 155342175Scy$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156342175Scyas_fn_exit 255 157342175Scy fi 158342175Scy # We don't want this to propagate to other subprocesses. 159342175Scy { _as_can_reexec=; unset _as_can_reexec;} 160342175Scyif test "x$CONFIG_SHELL" = x; then 161342175Scy as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162342175Scy emulate sh 163342175Scy NULLCMD=: 164342175Scy # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165342175Scy # is contrary to our usage. Disable this feature. 166342175Scy alias -g '\${1+\"\$@\"}'='\"\$@\"' 167342175Scy setopt NO_GLOB_SUBST 168342175Scyelse 169342175Scy case \`(set -o) 2>/dev/null\` in #( 170342175Scy *posix*) : 171342175Scy set -o posix ;; #( 172342175Scy *) : 173342175Scy ;; 174342175Scyesac 175342175Scyfi 176342175Scy" 177342175Scy as_required="as_fn_return () { (exit \$1); } 178342175Scyas_fn_success () { as_fn_return 0; } 179342175Scyas_fn_failure () { as_fn_return 1; } 180342175Scyas_fn_ret_success () { return 0; } 181342175Scyas_fn_ret_failure () { return 1; } 182342175Scy 183342175Scyexitcode=0 184342175Scyas_fn_success || { exitcode=1; echo as_fn_success failed.; } 185342175Scyas_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186342175Scyas_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187342175Scyas_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188342175Scyif ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189342175Scy 190342175Scyelse 191342175Scy exitcode=1; echo positional parameters were not saved. 192342175Scyfi 193342175Scytest x\$exitcode = x0 || exit 1 194342175Scytest -x / || exit 1" 195342175Scy as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196342175Scy as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197342175Scy eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198342175Scy test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199342175Scytest \$(( 1 + 1 )) = 2 || exit 1" 200342175Scy if (eval "$as_required") 2>/dev/null; then : 201342175Scy as_have_required=yes 202342175Scyelse 203342175Scy as_have_required=no 204342175Scyfi 205342175Scy if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206342175Scy 207342175Scyelse 208342175Scy as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209342175Scyas_found=false 210342175Scyfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211342175Scydo 212342175Scy IFS=$as_save_IFS 213342175Scy test -z "$as_dir" && as_dir=. 214342175Scy as_found=: 215342175Scy case $as_dir in #( 216342175Scy /*) 217342175Scy for as_base in sh bash ksh sh5; do 218342175Scy # Try only shells that exist, to save several forks. 219342175Scy as_shell=$as_dir/$as_base 220342175Scy if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221342175Scy { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222342175Scy CONFIG_SHELL=$as_shell as_have_required=yes 223342175Scy if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224342175Scy break 2 225342175Scyfi 226342175Scyfi 227342175Scy done;; 228342175Scy esac 229342175Scy as_found=false 230342175Scydone 231342175Scy$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232342175Scy { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233342175Scy CONFIG_SHELL=$SHELL as_have_required=yes 234342175Scyfi; } 235342175ScyIFS=$as_save_IFS 236342175Scy 237342175Scy 238342175Scy if test "x$CONFIG_SHELL" != x; then : 239342175Scy export CONFIG_SHELL 240342175Scy # We cannot yet assume a decent shell, so we have to provide a 241342175Scy# neutralization value for shells without unset; and this also 242342175Scy# works around shells that cannot unset nonexistent variables. 243342175Scy# Preserve -v and -x to the replacement shell. 244342175ScyBASH_ENV=/dev/null 245342175ScyENV=/dev/null 246342175Scy(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247342175Scycase $- in # (((( 248342175Scy *v*x* | *x*v* ) as_opts=-vx ;; 249342175Scy *v* ) as_opts=-v ;; 250342175Scy *x* ) as_opts=-x ;; 251342175Scy * ) as_opts= ;; 252342175Scyesac 253342175Scyexec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254342175Scy# Admittedly, this is quite paranoid, since all the known shells bail 255342175Scy# out after a failed `exec'. 256342175Scy$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257342175Scyexit 255 258342175Scyfi 259342175Scy 260342175Scy if test x$as_have_required = xno; then : 261342175Scy $as_echo "$0: This script requires a shell more modern than all" 262342175Scy $as_echo "$0: the shells that I found on your system." 263342175Scy if test x${ZSH_VERSION+set} = xset ; then 264342175Scy $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265342175Scy $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266342175Scy else 267342175Scy $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268342175Scy$0: including any error possibly output before this 269342175Scy$0: message. Then install a modern shell, or manually run 270342175Scy$0: the script under such a shell if you do have one." 271342175Scy fi 272342175Scy exit 1 273342175Scyfi 274342175Scyfi 275342175Scyfi 276342175ScySHELL=${CONFIG_SHELL-/bin/sh} 277342175Scyexport SHELL 278342175Scy# Unset more variables known to interfere with behavior of common tools. 279342175ScyCLICOLOR_FORCE= GREP_OPTIONS= 280342175Scyunset CLICOLOR_FORCE GREP_OPTIONS 281342175Scy 282342175Scy## --------------------- ## 283342175Scy## M4sh Shell Functions. ## 284342175Scy## --------------------- ## 285342175Scy# as_fn_unset VAR 286342175Scy# --------------- 287342175Scy# Portably unset VAR. 288342175Scyas_fn_unset () 289342175Scy{ 290342175Scy { eval $1=; unset $1;} 291342175Scy} 292342175Scyas_unset=as_fn_unset 293342175Scy 294342175Scy# as_fn_set_status STATUS 295342175Scy# ----------------------- 296342175Scy# Set $? to STATUS, without forking. 297342175Scyas_fn_set_status () 298342175Scy{ 299342175Scy return $1 300342175Scy} # as_fn_set_status 301342175Scy 302342175Scy# as_fn_exit STATUS 303342175Scy# ----------------- 304342175Scy# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305342175Scyas_fn_exit () 306342175Scy{ 307342175Scy set +e 308342175Scy as_fn_set_status $1 309342175Scy exit $1 310342175Scy} # as_fn_exit 311342175Scy 312342175Scy# as_fn_mkdir_p 313342175Scy# ------------- 314342175Scy# Create "$as_dir" as a directory, including parents if necessary. 315342175Scyas_fn_mkdir_p () 316342175Scy{ 317342175Scy 318342175Scy case $as_dir in #( 319342175Scy -*) as_dir=./$as_dir;; 320342175Scy esac 321342175Scy test -d "$as_dir" || eval $as_mkdir_p || { 322342175Scy as_dirs= 323342175Scy while :; do 324342175Scy case $as_dir in #( 325342175Scy *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326342175Scy *) as_qdir=$as_dir;; 327342175Scy esac 328342175Scy as_dirs="'$as_qdir' $as_dirs" 329342175Scy as_dir=`$as_dirname -- "$as_dir" || 330342175Scy$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331342175Scy X"$as_dir" : 'X\(//\)[^/]' \| \ 332342175Scy X"$as_dir" : 'X\(//\)$' \| \ 333342175Scy X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334342175Scy$as_echo X"$as_dir" | 335342175Scy sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336342175Scy s//\1/ 337342175Scy q 338342175Scy } 339342175Scy /^X\(\/\/\)[^/].*/{ 340342175Scy s//\1/ 341342175Scy q 342342175Scy } 343342175Scy /^X\(\/\/\)$/{ 344342175Scy s//\1/ 345342175Scy q 346342175Scy } 347342175Scy /^X\(\/\).*/{ 348342175Scy s//\1/ 349342175Scy q 350342175Scy } 351342175Scy s/.*/./; q'` 352342175Scy test -d "$as_dir" && break 353342175Scy done 354342175Scy test -z "$as_dirs" || eval "mkdir $as_dirs" 355342175Scy } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356342175Scy 357342175Scy 358342175Scy} # as_fn_mkdir_p 359342175Scy 360342175Scy# as_fn_executable_p FILE 361342175Scy# ----------------------- 362342175Scy# Test if FILE is an executable regular file. 363342175Scyas_fn_executable_p () 364342175Scy{ 365342175Scy test -f "$1" && test -x "$1" 366342175Scy} # as_fn_executable_p 367342175Scy# as_fn_append VAR VALUE 368342175Scy# ---------------------- 369342175Scy# Append the text in VALUE to the end of the definition contained in VAR. Take 370342175Scy# advantage of any shell optimizations that allow amortized linear growth over 371342175Scy# repeated appends, instead of the typical quadratic growth present in naive 372342175Scy# implementations. 373342175Scyif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374342175Scy eval 'as_fn_append () 375342175Scy { 376342175Scy eval $1+=\$2 377342175Scy }' 378342175Scyelse 379342175Scy as_fn_append () 380342175Scy { 381342175Scy eval $1=\$$1\$2 382342175Scy } 383342175Scyfi # as_fn_append 384342175Scy 385342175Scy# as_fn_arith ARG... 386342175Scy# ------------------ 387342175Scy# Perform arithmetic evaluation on the ARGs, and store the result in the 388342175Scy# global $as_val. Take advantage of shells that can avoid forks. The arguments 389342175Scy# must be portable across $(()) and expr. 390342175Scyif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391342175Scy eval 'as_fn_arith () 392342175Scy { 393342175Scy as_val=$(( $* )) 394342175Scy }' 395342175Scyelse 396342175Scy as_fn_arith () 397342175Scy { 398342175Scy as_val=`expr "$@" || test $? -eq 1` 399342175Scy } 400342175Scyfi # as_fn_arith 401342175Scy 402342175Scy 403342175Scy# as_fn_error STATUS ERROR [LINENO LOG_FD] 404342175Scy# ---------------------------------------- 405342175Scy# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406342175Scy# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407342175Scy# script with STATUS, using 1 if that was 0. 408342175Scyas_fn_error () 409342175Scy{ 410342175Scy as_status=$1; test $as_status -eq 0 && as_status=1 411342175Scy if test "$4"; then 412342175Scy as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414342175Scy fi 415342175Scy $as_echo "$as_me: error: $2" >&2 416342175Scy as_fn_exit $as_status 417342175Scy} # as_fn_error 418342175Scy 419342175Scyif expr a : '\(a\)' >/dev/null 2>&1 && 420342175Scy test "X`expr 00001 : '.*\(...\)'`" = X001; then 421342175Scy as_expr=expr 422342175Scyelse 423342175Scy as_expr=false 424342175Scyfi 425342175Scy 426342175Scyif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427342175Scy as_basename=basename 428342175Scyelse 429342175Scy as_basename=false 430342175Scyfi 431342175Scy 432342175Scyif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433342175Scy as_dirname=dirname 434342175Scyelse 435342175Scy as_dirname=false 436342175Scyfi 437342175Scy 438342175Scyas_me=`$as_basename -- "$0" || 439342175Scy$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440342175Scy X"$0" : 'X\(//\)$' \| \ 441342175Scy X"$0" : 'X\(/\)' \| . 2>/dev/null || 442342175Scy$as_echo X/"$0" | 443342175Scy sed '/^.*\/\([^/][^/]*\)\/*$/{ 444342175Scy s//\1/ 445342175Scy q 446342175Scy } 447342175Scy /^X\/\(\/\/\)$/{ 448342175Scy s//\1/ 449342175Scy q 450342175Scy } 451342175Scy /^X\/\(\/\).*/{ 452342175Scy s//\1/ 453342175Scy q 454342175Scy } 455342175Scy s/.*/./; q'` 456342175Scy 457342175Scy# Avoid depending upon Character Ranges. 458342175Scyas_cr_letters='abcdefghijklmnopqrstuvwxyz' 459342175Scyas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460342175Scyas_cr_Letters=$as_cr_letters$as_cr_LETTERS 461342175Scyas_cr_digits='0123456789' 462342175Scyas_cr_alnum=$as_cr_Letters$as_cr_digits 463342175Scy 464342175Scy 465342175Scy as_lineno_1=$LINENO as_lineno_1a=$LINENO 466342175Scy as_lineno_2=$LINENO as_lineno_2a=$LINENO 467342175Scy eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468342175Scy test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469342175Scy # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470342175Scy sed -n ' 471342175Scy p 472342175Scy /[$]LINENO/= 473342175Scy ' <$as_myself | 474342175Scy sed ' 475342175Scy s/[$]LINENO.*/&-/ 476342175Scy t lineno 477342175Scy b 478342175Scy :lineno 479342175Scy N 480342175Scy :loop 481342175Scy s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482342175Scy t loop 483342175Scy s/-\n.*// 484342175Scy ' >$as_me.lineno && 485342175Scy chmod +x "$as_me.lineno" || 486342175Scy { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487342175Scy 488342175Scy # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489342175Scy # already done that, so ensure we don't try to do so again and fall 490342175Scy # in an infinite loop. This has already happened in practice. 491342175Scy _as_can_reexec=no; export _as_can_reexec 492342175Scy # Don't try to exec as it changes $[0], causing all sort of problems 493342175Scy # (the dirname of $[0] is not the place where we might find the 494342175Scy # original and so on. Autoconf is especially sensitive to this). 495342175Scy . "./$as_me.lineno" 496342175Scy # Exit status is that of the last command. 497342175Scy exit 498342175Scy} 499342175Scy 500342175ScyECHO_C= ECHO_N= ECHO_T= 501342175Scycase `echo -n x` in #((((( 502342175Scy-n*) 503342175Scy case `echo 'xy\c'` in 504342175Scy *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505342175Scy xy) ECHO_C='\c';; 506342175Scy *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507342175Scy ECHO_T=' ';; 508342175Scy esac;; 509342175Scy*) 510342175Scy ECHO_N='-n';; 511342175Scyesac 512342175Scy 513342175Scyrm -f conf$$ conf$$.exe conf$$.file 514342175Scyif test -d conf$$.dir; then 515342175Scy rm -f conf$$.dir/conf$$.file 516342175Scyelse 517342175Scy rm -f conf$$.dir 518342175Scy mkdir conf$$.dir 2>/dev/null 519342175Scyfi 520342175Scyif (echo >conf$$.file) 2>/dev/null; then 521342175Scy if ln -s conf$$.file conf$$ 2>/dev/null; then 522342175Scy as_ln_s='ln -s' 523342175Scy # ... but there are two gotchas: 524342175Scy # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525342175Scy # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526342175Scy # In both cases, we have to default to `cp -pR'. 527342175Scy ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528342175Scy as_ln_s='cp -pR' 529342175Scy elif ln conf$$.file conf$$ 2>/dev/null; then 530342175Scy as_ln_s=ln 531342175Scy else 532342175Scy as_ln_s='cp -pR' 533342175Scy fi 534342175Scyelse 535342175Scy as_ln_s='cp -pR' 536342175Scyfi 537342175Scyrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538342175Scyrmdir conf$$.dir 2>/dev/null 539342175Scy 540342175Scyif mkdir -p . 2>/dev/null; then 541342175Scy as_mkdir_p='mkdir -p "$as_dir"' 542342175Scyelse 543342175Scy test -d ./-p && rmdir ./-p 544342175Scy as_mkdir_p=false 545342175Scyfi 546342175Scy 547342175Scyas_test_x='test -x' 548342175Scyas_executable_p=as_fn_executable_p 549342175Scy 550342175Scy# Sed expression to map a string onto a valid CPP name. 551342175Scyas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552342175Scy 553342175Scy# Sed expression to map a string onto a valid variable name. 554342175Scyas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555342175Scy 556342175Scy 557342175Scytest -n "$DJDIR" || exec 7<&0 </dev/null 558342175Scyexec 6>&1 559342175Scy 560342175Scy# Name of the host. 561342175Scy# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562342175Scy# so uname gets run too. 563342175Scyac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564342175Scy 565342175Scy# 566342175Scy# Initializations. 567342175Scy# 568342175Scyac_default_prefix=/usr/local 569342175Scyac_clean_files= 570342175Scyac_config_libobj_dir=. 571342175ScyLIBOBJS= 572342175Scycross_compiling=no 573342175Scysubdirs= 574342175ScyMFLAGS= 575342175ScyMAKEFLAGS= 576342175Scy 577342175Scy# Identity of this package. 578342175ScyPACKAGE_NAME='sqlite' 579342175ScyPACKAGE_TARNAME='sqlite' 580369951ScyPACKAGE_VERSION='3.35.5' 581369951ScyPACKAGE_STRING='sqlite 3.35.5' 582342175ScyPACKAGE_BUGREPORT='' 583342175ScyPACKAGE_URL='' 584342175Scy 585342175Scy# Factoring default headers for most tests. 586342175Scyac_includes_default="\ 587342175Scy#include <stdio.h> 588342175Scy#ifdef HAVE_SYS_TYPES_H 589342175Scy# include <sys/types.h> 590342175Scy#endif 591342175Scy#ifdef HAVE_SYS_STAT_H 592342175Scy# include <sys/stat.h> 593342175Scy#endif 594342175Scy#ifdef STDC_HEADERS 595342175Scy# include <stdlib.h> 596342175Scy# include <stddef.h> 597342175Scy#else 598342175Scy# ifdef HAVE_STDLIB_H 599342175Scy# include <stdlib.h> 600342175Scy# endif 601342175Scy#endif 602342175Scy#ifdef HAVE_STRING_H 603342175Scy# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 604342175Scy# include <memory.h> 605342175Scy# endif 606342175Scy# include <string.h> 607342175Scy#endif 608342175Scy#ifdef HAVE_STRINGS_H 609342175Scy# include <strings.h> 610342175Scy#endif 611342175Scy#ifdef HAVE_INTTYPES_H 612342175Scy# include <inttypes.h> 613342175Scy#endif 614342175Scy#ifdef HAVE_STDINT_H 615342175Scy# include <stdint.h> 616342175Scy#endif 617342175Scy#ifdef HAVE_UNISTD_H 618342175Scy# include <unistd.h> 619342175Scy#endif" 620342175Scy 621342175Scyac_subst_vars='LTLIBOBJS 622342175ScyLIBOBJS 623342175ScyTCLSH_PROG 624342175ScyVC_MANIFEST_EMBED_EXE 625342175ScyVC_MANIFEST_EMBED_DLL 626342175ScyRANLIB_STUB 627342175ScyMAKE_STUB_LIB 628342175ScyMAKE_STATIC_LIB 629342175ScyMAKE_SHARED_LIB 630342175ScyMAKE_LIB 631342175ScyTCL_DBGX 632342175ScyLDFLAGS_DEFAULT 633342175ScyCFLAGS_DEFAULT 634342175ScyLD_LIBRARY_PATH_VAR 635342175ScySHLIB_CFLAGS 636342175ScySHLIB_LD_LIBS 637342175ScySHLIB_LD 638342175ScySTLIB_LD 639342175ScyCFLAGS_WARNING 640342175ScyCFLAGS_OPTIMIZE 641342175ScyCFLAGS_DEBUG 642342175ScyRC 643342175ScyCELIB_DIR 644342175ScyAR 645342175ScySHARED_BUILD 646342175ScyTCL_THREADS 647342175ScyTCL_INCLUDES 648342175ScyPKG_OBJECTS 649342175ScyPKG_SOURCES 650342175ScyMATH_LIBS 651342175ScyEGREP 652342175ScyGREP 653342175ScyRANLIB 654342175ScySET_MAKE 655342175ScyINSTALL_SCRIPT 656342175ScyINSTALL_PROGRAM 657342175ScyINSTALL_DATA 658342175ScyINSTALL 659342175ScyCPP 660342175ScyTCL_SHLIB_LD_LIBS 661342175ScyTCL_LD_FLAGS 662342175ScyTCL_EXTRA_CFLAGS 663342175ScyTCL_DEFS 664342175ScyTCL_LIBS 665342175ScyCLEANFILES 666342175ScyOBJEXT 667342175Scyac_ct_CC 668342175ScyCPPFLAGS 669342175ScyLDFLAGS 670342175ScyCFLAGS 671342175ScyCC 672342175ScyTCL_STUB_LIB_SPEC 673342175ScyTCL_STUB_LIB_FLAG 674342175ScyTCL_STUB_LIB_FILE 675342175ScyTCL_LIB_SPEC 676342175ScyTCL_LIB_FLAG 677342175ScyTCL_LIB_FILE 678342175ScyTCL_SRC_DIR 679342175ScyTCL_BIN_DIR 680342175ScyTCL_PATCH_LEVEL 681342175ScyTCL_VERSION 682342175ScyPKG_CFLAGS 683342175ScyPKG_LIBS 684342175ScyPKG_INCLUDES 685342175ScyPKG_HEADERS 686342175ScyPKG_TCL_SOURCES 687342175ScyPKG_STUB_OBJECTS 688342175ScyPKG_STUB_SOURCES 689342175ScyPKG_STUB_LIB_FILE 690342175ScyPKG_LIB_FILE 691342175ScyEXEEXT 692342175ScyCYGPATH 693342175Scytarget_alias 694342175Scyhost_alias 695342175Scybuild_alias 696342175ScyLIBS 697342175ScyECHO_T 698342175ScyECHO_N 699342175ScyECHO_C 700342175ScyDEFS 701342175Scymandir 702342175Scylocaledir 703342175Scylibdir 704342175Scypsdir 705342175Scypdfdir 706342175Scydvidir 707342175Scyhtmldir 708342175Scyinfodir 709342175Scydocdir 710342175Scyoldincludedir 711342175Scyincludedir 712346442Scyrunstatedir 713342175Scylocalstatedir 714342175Scysharedstatedir 715342175Scysysconfdir 716342175Scydatadir 717342175Scydatarootdir 718342175Scylibexecdir 719342175Scysbindir 720342175Scybindir 721342175Scyprogram_transform_name 722342175Scyprefix 723342175Scyexec_prefix 724342175ScyPACKAGE_URL 725342175ScyPACKAGE_BUGREPORT 726342175ScyPACKAGE_STRING 727342175ScyPACKAGE_VERSION 728342175ScyPACKAGE_TARNAME 729342175ScyPACKAGE_NAME 730342175ScyPATH_SEPARATOR 731342175ScySHELL' 732342175Scyac_subst_files='' 733342175Scyac_user_opts=' 734342175Scyenable_option_checking 735342175Scywith_tcl 736342175Scywith_system_sqlite 737342175Scywith_tclinclude 738342175Scyenable_threads 739342175Scyenable_shared 740342175Scyenable_64bit 741342175Scyenable_64bit_vis 742342175Scyenable_rpath 743342175Scyenable_wince 744342175Scywith_celib 745342175Scyenable_symbols 746342175Scy' 747342175Scy ac_precious_vars='build_alias 748342175Scyhost_alias 749342175Scytarget_alias 750342175ScyCC 751342175ScyCFLAGS 752342175ScyLDFLAGS 753342175ScyLIBS 754342175ScyCPPFLAGS 755342175ScyCPP' 756342175Scy 757342175Scy 758342175Scy# Initialize some variables set by options. 759342175Scyac_init_help= 760342175Scyac_init_version=false 761342175Scyac_unrecognized_opts= 762342175Scyac_unrecognized_sep= 763342175Scy# The variables have the same names as the options, with 764342175Scy# dashes changed to underlines. 765342175Scycache_file=/dev/null 766342175Scyexec_prefix=NONE 767342175Scyno_create= 768342175Scyno_recursion= 769342175Scyprefix=NONE 770342175Scyprogram_prefix=NONE 771342175Scyprogram_suffix=NONE 772342175Scyprogram_transform_name=s,x,x, 773342175Scysilent= 774342175Scysite= 775342175Scysrcdir= 776342175Scyverbose= 777342175Scyx_includes=NONE 778342175Scyx_libraries=NONE 779342175Scy 780342175Scy# Installation directory options. 781342175Scy# These are left unexpanded so users can "make install exec_prefix=/foo" 782342175Scy# and all the variables that are supposed to be based on exec_prefix 783342175Scy# by default will actually change. 784342175Scy# Use braces instead of parens because sh, perl, etc. also accept them. 785342175Scy# (The list follows the same order as the GNU Coding Standards.) 786342175Scybindir='${exec_prefix}/bin' 787342175Scysbindir='${exec_prefix}/sbin' 788342175Scylibexecdir='${exec_prefix}/libexec' 789342175Scydatarootdir='${prefix}/share' 790342175Scydatadir='${datarootdir}' 791342175Scysysconfdir='${prefix}/etc' 792342175Scysharedstatedir='${prefix}/com' 793342175Scylocalstatedir='${prefix}/var' 794346442Scyrunstatedir='${localstatedir}/run' 795342175Scyincludedir='${prefix}/include' 796342175Scyoldincludedir='/usr/include' 797342175Scydocdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 798342175Scyinfodir='${datarootdir}/info' 799342175Scyhtmldir='${docdir}' 800342175Scydvidir='${docdir}' 801342175Scypdfdir='${docdir}' 802342175Scypsdir='${docdir}' 803342175Scylibdir='${exec_prefix}/lib' 804342175Scylocaledir='${datarootdir}/locale' 805342175Scymandir='${datarootdir}/man' 806342175Scy 807342175Scyac_prev= 808342175Scyac_dashdash= 809342175Scyfor ac_option 810342175Scydo 811342175Scy # If the previous option needs an argument, assign it. 812342175Scy if test -n "$ac_prev"; then 813342175Scy eval $ac_prev=\$ac_option 814342175Scy ac_prev= 815342175Scy continue 816342175Scy fi 817342175Scy 818342175Scy case $ac_option in 819342175Scy *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 820342175Scy *=) ac_optarg= ;; 821342175Scy *) ac_optarg=yes ;; 822342175Scy esac 823342175Scy 824342175Scy # Accept the important Cygnus configure options, so we can diagnose typos. 825342175Scy 826342175Scy case $ac_dashdash$ac_option in 827342175Scy --) 828342175Scy ac_dashdash=yes ;; 829342175Scy 830342175Scy -bindir | --bindir | --bindi | --bind | --bin | --bi) 831342175Scy ac_prev=bindir ;; 832342175Scy -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 833342175Scy bindir=$ac_optarg ;; 834342175Scy 835342175Scy -build | --build | --buil | --bui | --bu) 836342175Scy ac_prev=build_alias ;; 837342175Scy -build=* | --build=* | --buil=* | --bui=* | --bu=*) 838342175Scy build_alias=$ac_optarg ;; 839342175Scy 840342175Scy -cache-file | --cache-file | --cache-fil | --cache-fi \ 841342175Scy | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 842342175Scy ac_prev=cache_file ;; 843342175Scy -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 844342175Scy | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 845342175Scy cache_file=$ac_optarg ;; 846342175Scy 847342175Scy --config-cache | -C) 848342175Scy cache_file=config.cache ;; 849342175Scy 850342175Scy -datadir | --datadir | --datadi | --datad) 851342175Scy ac_prev=datadir ;; 852342175Scy -datadir=* | --datadir=* | --datadi=* | --datad=*) 853342175Scy datadir=$ac_optarg ;; 854342175Scy 855342175Scy -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 856342175Scy | --dataroo | --dataro | --datar) 857342175Scy ac_prev=datarootdir ;; 858342175Scy -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 859342175Scy | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 860342175Scy datarootdir=$ac_optarg ;; 861342175Scy 862342175Scy -disable-* | --disable-*) 863342175Scy ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 864342175Scy # Reject names that are not valid shell variable names. 865342175Scy expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 866342175Scy as_fn_error $? "invalid feature name: $ac_useropt" 867342175Scy ac_useropt_orig=$ac_useropt 868342175Scy ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 869342175Scy case $ac_user_opts in 870342175Scy *" 871342175Scy"enable_$ac_useropt" 872342175Scy"*) ;; 873342175Scy *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 874342175Scy ac_unrecognized_sep=', ';; 875342175Scy esac 876342175Scy eval enable_$ac_useropt=no ;; 877342175Scy 878342175Scy -docdir | --docdir | --docdi | --doc | --do) 879342175Scy ac_prev=docdir ;; 880342175Scy -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 881342175Scy docdir=$ac_optarg ;; 882342175Scy 883342175Scy -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 884342175Scy ac_prev=dvidir ;; 885342175Scy -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 886342175Scy dvidir=$ac_optarg ;; 887342175Scy 888342175Scy -enable-* | --enable-*) 889342175Scy ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 890342175Scy # Reject names that are not valid shell variable names. 891342175Scy expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 892342175Scy as_fn_error $? "invalid feature name: $ac_useropt" 893342175Scy ac_useropt_orig=$ac_useropt 894342175Scy ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 895342175Scy case $ac_user_opts in 896342175Scy *" 897342175Scy"enable_$ac_useropt" 898342175Scy"*) ;; 899342175Scy *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 900342175Scy ac_unrecognized_sep=', ';; 901342175Scy esac 902342175Scy eval enable_$ac_useropt=\$ac_optarg ;; 903342175Scy 904342175Scy -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 905342175Scy | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 906342175Scy | --exec | --exe | --ex) 907342175Scy ac_prev=exec_prefix ;; 908342175Scy -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 909342175Scy | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 910342175Scy | --exec=* | --exe=* | --ex=*) 911342175Scy exec_prefix=$ac_optarg ;; 912342175Scy 913342175Scy -gas | --gas | --ga | --g) 914342175Scy # Obsolete; use --with-gas. 915342175Scy with_gas=yes ;; 916342175Scy 917342175Scy -help | --help | --hel | --he | -h) 918342175Scy ac_init_help=long ;; 919342175Scy -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 920342175Scy ac_init_help=recursive ;; 921342175Scy -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 922342175Scy ac_init_help=short ;; 923342175Scy 924342175Scy -host | --host | --hos | --ho) 925342175Scy ac_prev=host_alias ;; 926342175Scy -host=* | --host=* | --hos=* | --ho=*) 927342175Scy host_alias=$ac_optarg ;; 928342175Scy 929342175Scy -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 930342175Scy ac_prev=htmldir ;; 931342175Scy -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 932342175Scy | --ht=*) 933342175Scy htmldir=$ac_optarg ;; 934342175Scy 935342175Scy -includedir | --includedir | --includedi | --included | --include \ 936342175Scy | --includ | --inclu | --incl | --inc) 937342175Scy ac_prev=includedir ;; 938342175Scy -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 939342175Scy | --includ=* | --inclu=* | --incl=* | --inc=*) 940342175Scy includedir=$ac_optarg ;; 941342175Scy 942342175Scy -infodir | --infodir | --infodi | --infod | --info | --inf) 943342175Scy ac_prev=infodir ;; 944342175Scy -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 945342175Scy infodir=$ac_optarg ;; 946342175Scy 947342175Scy -libdir | --libdir | --libdi | --libd) 948342175Scy ac_prev=libdir ;; 949342175Scy -libdir=* | --libdir=* | --libdi=* | --libd=*) 950342175Scy libdir=$ac_optarg ;; 951342175Scy 952342175Scy -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 953342175Scy | --libexe | --libex | --libe) 954342175Scy ac_prev=libexecdir ;; 955342175Scy -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 956342175Scy | --libexe=* | --libex=* | --libe=*) 957342175Scy libexecdir=$ac_optarg ;; 958342175Scy 959342175Scy -localedir | --localedir | --localedi | --localed | --locale) 960342175Scy ac_prev=localedir ;; 961342175Scy -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 962342175Scy localedir=$ac_optarg ;; 963342175Scy 964342175Scy -localstatedir | --localstatedir | --localstatedi | --localstated \ 965342175Scy | --localstate | --localstat | --localsta | --localst | --locals) 966342175Scy ac_prev=localstatedir ;; 967342175Scy -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 968342175Scy | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 969342175Scy localstatedir=$ac_optarg ;; 970342175Scy 971342175Scy -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 972342175Scy ac_prev=mandir ;; 973342175Scy -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 974342175Scy mandir=$ac_optarg ;; 975342175Scy 976342175Scy -nfp | --nfp | --nf) 977342175Scy # Obsolete; use --without-fp. 978342175Scy with_fp=no ;; 979342175Scy 980342175Scy -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 981342175Scy | --no-cr | --no-c | -n) 982342175Scy no_create=yes ;; 983342175Scy 984342175Scy -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 985342175Scy | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 986342175Scy no_recursion=yes ;; 987342175Scy 988342175Scy -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 989342175Scy | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 990342175Scy | --oldin | --oldi | --old | --ol | --o) 991342175Scy ac_prev=oldincludedir ;; 992342175Scy -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 993342175Scy | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 994342175Scy | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 995342175Scy oldincludedir=$ac_optarg ;; 996342175Scy 997342175Scy -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 998342175Scy ac_prev=prefix ;; 999342175Scy -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1000342175Scy prefix=$ac_optarg ;; 1001342175Scy 1002342175Scy -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1003342175Scy | --program-pre | --program-pr | --program-p) 1004342175Scy ac_prev=program_prefix ;; 1005342175Scy -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1006342175Scy | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1007342175Scy program_prefix=$ac_optarg ;; 1008342175Scy 1009342175Scy -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1010342175Scy | --program-suf | --program-su | --program-s) 1011342175Scy ac_prev=program_suffix ;; 1012342175Scy -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1013342175Scy | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1014342175Scy program_suffix=$ac_optarg ;; 1015342175Scy 1016342175Scy -program-transform-name | --program-transform-name \ 1017342175Scy | --program-transform-nam | --program-transform-na \ 1018342175Scy | --program-transform-n | --program-transform- \ 1019342175Scy | --program-transform | --program-transfor \ 1020342175Scy | --program-transfo | --program-transf \ 1021342175Scy | --program-trans | --program-tran \ 1022342175Scy | --progr-tra | --program-tr | --program-t) 1023342175Scy ac_prev=program_transform_name ;; 1024342175Scy -program-transform-name=* | --program-transform-name=* \ 1025342175Scy | --program-transform-nam=* | --program-transform-na=* \ 1026342175Scy | --program-transform-n=* | --program-transform-=* \ 1027342175Scy | --program-transform=* | --program-transfor=* \ 1028342175Scy | --program-transfo=* | --program-transf=* \ 1029342175Scy | --program-trans=* | --program-tran=* \ 1030342175Scy | --progr-tra=* | --program-tr=* | --program-t=*) 1031342175Scy program_transform_name=$ac_optarg ;; 1032342175Scy 1033342175Scy -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1034342175Scy ac_prev=pdfdir ;; 1035342175Scy -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1036342175Scy pdfdir=$ac_optarg ;; 1037342175Scy 1038342175Scy -psdir | --psdir | --psdi | --psd | --ps) 1039342175Scy ac_prev=psdir ;; 1040342175Scy -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1041342175Scy psdir=$ac_optarg ;; 1042342175Scy 1043342175Scy -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1044342175Scy | -silent | --silent | --silen | --sile | --sil) 1045342175Scy silent=yes ;; 1046342175Scy 1047346442Scy -runstatedir | --runstatedir | --runstatedi | --runstated \ 1048346442Scy | --runstate | --runstat | --runsta | --runst | --runs \ 1049346442Scy | --run | --ru | --r) 1050346442Scy ac_prev=runstatedir ;; 1051346442Scy -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1052346442Scy | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1053346442Scy | --run=* | --ru=* | --r=*) 1054346442Scy runstatedir=$ac_optarg ;; 1055346442Scy 1056342175Scy -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1057342175Scy ac_prev=sbindir ;; 1058342175Scy -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1059342175Scy | --sbi=* | --sb=*) 1060342175Scy sbindir=$ac_optarg ;; 1061342175Scy 1062342175Scy -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1063342175Scy | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1064342175Scy | --sharedst | --shareds | --shared | --share | --shar \ 1065342175Scy | --sha | --sh) 1066342175Scy ac_prev=sharedstatedir ;; 1067342175Scy -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1068342175Scy | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1069342175Scy | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1070342175Scy | --sha=* | --sh=*) 1071342175Scy sharedstatedir=$ac_optarg ;; 1072342175Scy 1073342175Scy -site | --site | --sit) 1074342175Scy ac_prev=site ;; 1075342175Scy -site=* | --site=* | --sit=*) 1076342175Scy site=$ac_optarg ;; 1077342175Scy 1078342175Scy -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1079342175Scy ac_prev=srcdir ;; 1080342175Scy -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1081342175Scy srcdir=$ac_optarg ;; 1082342175Scy 1083342175Scy -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1084342175Scy | --syscon | --sysco | --sysc | --sys | --sy) 1085342175Scy ac_prev=sysconfdir ;; 1086342175Scy -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1087342175Scy | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1088342175Scy sysconfdir=$ac_optarg ;; 1089342175Scy 1090342175Scy -target | --target | --targe | --targ | --tar | --ta | --t) 1091342175Scy ac_prev=target_alias ;; 1092342175Scy -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1093342175Scy target_alias=$ac_optarg ;; 1094342175Scy 1095342175Scy -v | -verbose | --verbose | --verbos | --verbo | --verb) 1096342175Scy verbose=yes ;; 1097342175Scy 1098342175Scy -version | --version | --versio | --versi | --vers | -V) 1099342175Scy ac_init_version=: ;; 1100342175Scy 1101342175Scy -with-* | --with-*) 1102342175Scy ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1103342175Scy # Reject names that are not valid shell variable names. 1104342175Scy expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105342175Scy as_fn_error $? "invalid package name: $ac_useropt" 1106342175Scy ac_useropt_orig=$ac_useropt 1107342175Scy ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108342175Scy case $ac_user_opts in 1109342175Scy *" 1110342175Scy"with_$ac_useropt" 1111342175Scy"*) ;; 1112342175Scy *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1113342175Scy ac_unrecognized_sep=', ';; 1114342175Scy esac 1115342175Scy eval with_$ac_useropt=\$ac_optarg ;; 1116342175Scy 1117342175Scy -without-* | --without-*) 1118342175Scy ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1119342175Scy # Reject names that are not valid shell variable names. 1120342175Scy expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121342175Scy as_fn_error $? "invalid package name: $ac_useropt" 1122342175Scy ac_useropt_orig=$ac_useropt 1123342175Scy ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124342175Scy case $ac_user_opts in 1125342175Scy *" 1126342175Scy"with_$ac_useropt" 1127342175Scy"*) ;; 1128342175Scy *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1129342175Scy ac_unrecognized_sep=', ';; 1130342175Scy esac 1131342175Scy eval with_$ac_useropt=no ;; 1132342175Scy 1133342175Scy --x) 1134342175Scy # Obsolete; use --with-x. 1135342175Scy with_x=yes ;; 1136342175Scy 1137342175Scy -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1138342175Scy | --x-incl | --x-inc | --x-in | --x-i) 1139342175Scy ac_prev=x_includes ;; 1140342175Scy -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1141342175Scy | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1142342175Scy x_includes=$ac_optarg ;; 1143342175Scy 1144342175Scy -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1145342175Scy | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1146342175Scy ac_prev=x_libraries ;; 1147342175Scy -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1148342175Scy | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1149342175Scy x_libraries=$ac_optarg ;; 1150342175Scy 1151342175Scy -*) as_fn_error $? "unrecognized option: \`$ac_option' 1152342175ScyTry \`$0 --help' for more information" 1153342175Scy ;; 1154342175Scy 1155342175Scy *=*) 1156342175Scy ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1157342175Scy # Reject names that are not valid shell variable names. 1158342175Scy case $ac_envvar in #( 1159342175Scy '' | [0-9]* | *[!_$as_cr_alnum]* ) 1160342175Scy as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1161342175Scy esac 1162342175Scy eval $ac_envvar=\$ac_optarg 1163342175Scy export $ac_envvar ;; 1164342175Scy 1165342175Scy *) 1166342175Scy # FIXME: should be removed in autoconf 3.0. 1167342175Scy $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1168342175Scy expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1169342175Scy $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1170342175Scy : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1171342175Scy ;; 1172342175Scy 1173342175Scy esac 1174342175Scydone 1175342175Scy 1176342175Scyif test -n "$ac_prev"; then 1177342175Scy ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1178342175Scy as_fn_error $? "missing argument to $ac_option" 1179342175Scyfi 1180342175Scy 1181342175Scyif test -n "$ac_unrecognized_opts"; then 1182342175Scy case $enable_option_checking in 1183342175Scy no) ;; 1184342175Scy fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1185342175Scy *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1186342175Scy esac 1187342175Scyfi 1188342175Scy 1189342175Scy# Check all directory arguments for consistency. 1190342175Scyfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1191342175Scy datadir sysconfdir sharedstatedir localstatedir includedir \ 1192342175Scy oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1193346442Scy libdir localedir mandir runstatedir 1194342175Scydo 1195342175Scy eval ac_val=\$$ac_var 1196342175Scy # Remove trailing slashes. 1197342175Scy case $ac_val in 1198342175Scy */ ) 1199342175Scy ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1200342175Scy eval $ac_var=\$ac_val;; 1201342175Scy esac 1202342175Scy # Be sure to have absolute directory names. 1203342175Scy case $ac_val in 1204342175Scy [\\/$]* | ?:[\\/]* ) continue;; 1205342175Scy NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1206342175Scy esac 1207342175Scy as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1208342175Scydone 1209342175Scy 1210342175Scy# There might be people who depend on the old broken behavior: `$host' 1211342175Scy# used to hold the argument of --host etc. 1212342175Scy# FIXME: To remove some day. 1213342175Scybuild=$build_alias 1214342175Scyhost=$host_alias 1215342175Scytarget=$target_alias 1216342175Scy 1217342175Scy# FIXME: To remove some day. 1218342175Scyif test "x$host_alias" != x; then 1219342175Scy if test "x$build_alias" = x; then 1220342175Scy cross_compiling=maybe 1221342175Scy elif test "x$build_alias" != "x$host_alias"; then 1222342175Scy cross_compiling=yes 1223342175Scy fi 1224342175Scyfi 1225342175Scy 1226342175Scyac_tool_prefix= 1227342175Scytest -n "$host_alias" && ac_tool_prefix=$host_alias- 1228342175Scy 1229342175Scytest "$silent" = yes && exec 6>/dev/null 1230342175Scy 1231342175Scy 1232342175Scyac_pwd=`pwd` && test -n "$ac_pwd" && 1233342175Scyac_ls_di=`ls -di .` && 1234342175Scyac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1235342175Scy as_fn_error $? "working directory cannot be determined" 1236342175Scytest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1237342175Scy as_fn_error $? "pwd does not report name of working directory" 1238342175Scy 1239342175Scy 1240342175Scy# Find the source files, if location was not specified. 1241342175Scyif test -z "$srcdir"; then 1242342175Scy ac_srcdir_defaulted=yes 1243342175Scy # Try the directory containing this script, then the parent directory. 1244342175Scy ac_confdir=`$as_dirname -- "$as_myself" || 1245342175Scy$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1246342175Scy X"$as_myself" : 'X\(//\)[^/]' \| \ 1247342175Scy X"$as_myself" : 'X\(//\)$' \| \ 1248342175Scy X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1249342175Scy$as_echo X"$as_myself" | 1250342175Scy sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1251342175Scy s//\1/ 1252342175Scy q 1253342175Scy } 1254342175Scy /^X\(\/\/\)[^/].*/{ 1255342175Scy s//\1/ 1256342175Scy q 1257342175Scy } 1258342175Scy /^X\(\/\/\)$/{ 1259342175Scy s//\1/ 1260342175Scy q 1261342175Scy } 1262342175Scy /^X\(\/\).*/{ 1263342175Scy s//\1/ 1264342175Scy q 1265342175Scy } 1266342175Scy s/.*/./; q'` 1267342175Scy srcdir=$ac_confdir 1268342175Scy if test ! -r "$srcdir/$ac_unique_file"; then 1269342175Scy srcdir=.. 1270342175Scy fi 1271342175Scyelse 1272342175Scy ac_srcdir_defaulted=no 1273342175Scyfi 1274342175Scyif test ! -r "$srcdir/$ac_unique_file"; then 1275342175Scy test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1276342175Scy as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1277342175Scyfi 1278342175Scyac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1279342175Scyac_abs_confdir=`( 1280342175Scy cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1281342175Scy pwd)` 1282342175Scy# When building in place, set srcdir=. 1283342175Scyif test "$ac_abs_confdir" = "$ac_pwd"; then 1284342175Scy srcdir=. 1285342175Scyfi 1286342175Scy# Remove unnecessary trailing slashes from srcdir. 1287342175Scy# Double slashes in file names in object file debugging info 1288342175Scy# mess up M-x gdb in Emacs. 1289342175Scycase $srcdir in 1290342175Scy*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1291342175Scyesac 1292342175Scyfor ac_var in $ac_precious_vars; do 1293342175Scy eval ac_env_${ac_var}_set=\${${ac_var}+set} 1294342175Scy eval ac_env_${ac_var}_value=\$${ac_var} 1295342175Scy eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1296342175Scy eval ac_cv_env_${ac_var}_value=\$${ac_var} 1297342175Scydone 1298342175Scy 1299342175Scy# 1300342175Scy# Report the --help message. 1301342175Scy# 1302342175Scyif test "$ac_init_help" = "long"; then 1303342175Scy # Omit some internal or obsolete options to make the list less imposing. 1304342175Scy # This message is too long to be a string in the A/UX 3.1 sh. 1305342175Scy cat <<_ACEOF 1306369951Scy\`configure' configures sqlite 3.35.5 to adapt to many kinds of systems. 1307342175Scy 1308342175ScyUsage: $0 [OPTION]... [VAR=VALUE]... 1309342175Scy 1310342175ScyTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1311342175ScyVAR=VALUE. See below for descriptions of some of the useful variables. 1312342175Scy 1313342175ScyDefaults for the options are specified in brackets. 1314342175Scy 1315342175ScyConfiguration: 1316342175Scy -h, --help display this help and exit 1317342175Scy --help=short display options specific to this package 1318342175Scy --help=recursive display the short help of all the included packages 1319342175Scy -V, --version display version information and exit 1320342175Scy -q, --quiet, --silent do not print \`checking ...' messages 1321342175Scy --cache-file=FILE cache test results in FILE [disabled] 1322342175Scy -C, --config-cache alias for \`--cache-file=config.cache' 1323342175Scy -n, --no-create do not create output files 1324342175Scy --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1325342175Scy 1326342175ScyInstallation directories: 1327342175Scy --prefix=PREFIX install architecture-independent files in PREFIX 1328342175Scy [$ac_default_prefix] 1329342175Scy --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1330342175Scy [PREFIX] 1331342175Scy 1332342175ScyBy default, \`make install' will install all the files in 1333342175Scy\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1334342175Scyan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1335342175Scyfor instance \`--prefix=\$HOME'. 1336342175Scy 1337342175ScyFor better control, use the options below. 1338342175Scy 1339342175ScyFine tuning of the installation directories: 1340342175Scy --bindir=DIR user executables [EPREFIX/bin] 1341342175Scy --sbindir=DIR system admin executables [EPREFIX/sbin] 1342342175Scy --libexecdir=DIR program executables [EPREFIX/libexec] 1343342175Scy --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1344342175Scy --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1345342175Scy --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1346346442Scy --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1347342175Scy --libdir=DIR object code libraries [EPREFIX/lib] 1348342175Scy --includedir=DIR C header files [PREFIX/include] 1349342175Scy --oldincludedir=DIR C header files for non-gcc [/usr/include] 1350342175Scy --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1351342175Scy --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1352342175Scy --infodir=DIR info documentation [DATAROOTDIR/info] 1353342175Scy --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1354342175Scy --mandir=DIR man documentation [DATAROOTDIR/man] 1355342175Scy --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite] 1356342175Scy --htmldir=DIR html documentation [DOCDIR] 1357342175Scy --dvidir=DIR dvi documentation [DOCDIR] 1358342175Scy --pdfdir=DIR pdf documentation [DOCDIR] 1359342175Scy --psdir=DIR ps documentation [DOCDIR] 1360342175Scy_ACEOF 1361342175Scy 1362342175Scy cat <<\_ACEOF 1363342175Scy_ACEOF 1364342175Scyfi 1365342175Scy 1366342175Scyif test -n "$ac_init_help"; then 1367342175Scy case $ac_init_help in 1368369951Scy short | recursive ) echo "Configuration of sqlite 3.35.5:";; 1369342175Scy esac 1370342175Scy cat <<\_ACEOF 1371342175Scy 1372342175ScyOptional Features: 1373342175Scy --disable-option-checking ignore unrecognized --enable/--with options 1374342175Scy --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1375342175Scy --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1376342175Scy --enable-threads build with threads 1377342175Scy --enable-shared build and link with shared libraries (default: on) 1378342175Scy --enable-64bit enable 64bit support (default: off) 1379342175Scy --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1380342175Scy --disable-rpath disable rpath support (default: on) 1381342175Scy --enable-wince enable Win/CE support (where applicable) 1382342175Scy --enable-symbols build with debugging symbols (default: off) 1383342175Scy 1384342175ScyOptional Packages: 1385342175Scy --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1386342175Scy --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1387342175Scy --with-tcl directory containing tcl configuration 1388342175Scy (tclConfig.sh) 1389342175Scy --with-system-sqlite use a system-supplied libsqlite3 instead of the 1390342175Scy bundled one 1391342175Scy --with-tclinclude directory containing the public Tcl header files 1392342175Scy --with-celib=DIR use Windows/CE support library from DIR 1393342175Scy 1394342175ScySome influential environment variables: 1395342175Scy CC C compiler command 1396342175Scy CFLAGS C compiler flags 1397342175Scy LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1398342175Scy nonstandard directory <lib dir> 1399342175Scy LIBS libraries to pass to the linker, e.g. -l<library> 1400342175Scy CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1401342175Scy you have headers in a nonstandard directory <include dir> 1402342175Scy CPP C preprocessor 1403342175Scy 1404342175ScyUse these variables to override the choices made by `configure' or to help 1405342175Scyit to find libraries and programs with nonstandard names/locations. 1406342175Scy 1407342175ScyReport bugs to the package provider. 1408342175Scy_ACEOF 1409342175Scyac_status=$? 1410342175Scyfi 1411342175Scy 1412342175Scyif test "$ac_init_help" = "recursive"; then 1413342175Scy # If there are subdirs, report their specific --help. 1414342175Scy for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1415342175Scy test -d "$ac_dir" || 1416342175Scy { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1417342175Scy continue 1418342175Scy ac_builddir=. 1419342175Scy 1420342175Scycase "$ac_dir" in 1421342175Scy.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1422342175Scy*) 1423342175Scy ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1424342175Scy # A ".." for each directory in $ac_dir_suffix. 1425342175Scy ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1426342175Scy case $ac_top_builddir_sub in 1427342175Scy "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1428342175Scy *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1429342175Scy esac ;; 1430342175Scyesac 1431342175Scyac_abs_top_builddir=$ac_pwd 1432342175Scyac_abs_builddir=$ac_pwd$ac_dir_suffix 1433342175Scy# for backward compatibility: 1434342175Scyac_top_builddir=$ac_top_build_prefix 1435342175Scy 1436342175Scycase $srcdir in 1437342175Scy .) # We are building in place. 1438342175Scy ac_srcdir=. 1439342175Scy ac_top_srcdir=$ac_top_builddir_sub 1440342175Scy ac_abs_top_srcdir=$ac_pwd ;; 1441342175Scy [\\/]* | ?:[\\/]* ) # Absolute name. 1442342175Scy ac_srcdir=$srcdir$ac_dir_suffix; 1443342175Scy ac_top_srcdir=$srcdir 1444342175Scy ac_abs_top_srcdir=$srcdir ;; 1445342175Scy *) # Relative name. 1446342175Scy ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1447342175Scy ac_top_srcdir=$ac_top_build_prefix$srcdir 1448342175Scy ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1449342175Scyesac 1450342175Scyac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1451342175Scy 1452342175Scy cd "$ac_dir" || { ac_status=$?; continue; } 1453342175Scy # Check for guested configure. 1454342175Scy if test -f "$ac_srcdir/configure.gnu"; then 1455342175Scy echo && 1456342175Scy $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1457342175Scy elif test -f "$ac_srcdir/configure"; then 1458342175Scy echo && 1459342175Scy $SHELL "$ac_srcdir/configure" --help=recursive 1460342175Scy else 1461342175Scy $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1462342175Scy fi || ac_status=$? 1463342175Scy cd "$ac_pwd" || { ac_status=$?; break; } 1464342175Scy done 1465342175Scyfi 1466342175Scy 1467342175Scytest -n "$ac_init_help" && exit $ac_status 1468342175Scyif $ac_init_version; then 1469342175Scy cat <<\_ACEOF 1470369951Scysqlite configure 3.35.5 1471342175Scygenerated by GNU Autoconf 2.69 1472342175Scy 1473342175ScyCopyright (C) 2012 Free Software Foundation, Inc. 1474342175ScyThis configure script is free software; the Free Software Foundation 1475342175Scygives unlimited permission to copy, distribute and modify it. 1476342175Scy_ACEOF 1477342175Scy exit 1478342175Scyfi 1479342175Scy 1480342175Scy## ------------------------ ## 1481342175Scy## Autoconf initialization. ## 1482342175Scy## ------------------------ ## 1483342175Scy 1484342175Scy# ac_fn_c_try_compile LINENO 1485342175Scy# -------------------------- 1486342175Scy# Try to compile conftest.$ac_ext, and return whether this succeeded. 1487342175Scyac_fn_c_try_compile () 1488342175Scy{ 1489342175Scy as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1490342175Scy rm -f conftest.$ac_objext 1491342175Scy if { { ac_try="$ac_compile" 1492342175Scycase "(($ac_try" in 1493342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1494342175Scy *) ac_try_echo=$ac_try;; 1495342175Scyesac 1496342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1497342175Scy$as_echo "$ac_try_echo"; } >&5 1498342175Scy (eval "$ac_compile") 2>conftest.err 1499342175Scy ac_status=$? 1500342175Scy if test -s conftest.err; then 1501342175Scy grep -v '^ *+' conftest.err >conftest.er1 1502342175Scy cat conftest.er1 >&5 1503342175Scy mv -f conftest.er1 conftest.err 1504342175Scy fi 1505342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1506342175Scy test $ac_status = 0; } && { 1507342175Scy test -z "$ac_c_werror_flag" || 1508342175Scy test ! -s conftest.err 1509342175Scy } && test -s conftest.$ac_objext; then : 1510342175Scy ac_retval=0 1511342175Scyelse 1512342175Scy $as_echo "$as_me: failed program was:" >&5 1513342175Scysed 's/^/| /' conftest.$ac_ext >&5 1514342175Scy 1515342175Scy ac_retval=1 1516342175Scyfi 1517342175Scy eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1518342175Scy as_fn_set_status $ac_retval 1519342175Scy 1520342175Scy} # ac_fn_c_try_compile 1521342175Scy 1522342175Scy# ac_fn_c_try_cpp LINENO 1523342175Scy# ---------------------- 1524342175Scy# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1525342175Scyac_fn_c_try_cpp () 1526342175Scy{ 1527342175Scy as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1528342175Scy if { { ac_try="$ac_cpp conftest.$ac_ext" 1529342175Scycase "(($ac_try" in 1530342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1531342175Scy *) ac_try_echo=$ac_try;; 1532342175Scyesac 1533342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1534342175Scy$as_echo "$ac_try_echo"; } >&5 1535342175Scy (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1536342175Scy ac_status=$? 1537342175Scy if test -s conftest.err; then 1538342175Scy grep -v '^ *+' conftest.err >conftest.er1 1539342175Scy cat conftest.er1 >&5 1540342175Scy mv -f conftest.er1 conftest.err 1541342175Scy fi 1542342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1543342175Scy test $ac_status = 0; } > conftest.i && { 1544342175Scy test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1545342175Scy test ! -s conftest.err 1546342175Scy }; then : 1547342175Scy ac_retval=0 1548342175Scyelse 1549342175Scy $as_echo "$as_me: failed program was:" >&5 1550342175Scysed 's/^/| /' conftest.$ac_ext >&5 1551342175Scy 1552342175Scy ac_retval=1 1553342175Scyfi 1554342175Scy eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1555342175Scy as_fn_set_status $ac_retval 1556342175Scy 1557342175Scy} # ac_fn_c_try_cpp 1558342175Scy 1559342175Scy# ac_fn_c_try_run LINENO 1560342175Scy# ---------------------- 1561342175Scy# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1562342175Scy# that executables *can* be run. 1563342175Scyac_fn_c_try_run () 1564342175Scy{ 1565342175Scy as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566342175Scy if { { ac_try="$ac_link" 1567342175Scycase "(($ac_try" in 1568342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1569342175Scy *) ac_try_echo=$ac_try;; 1570342175Scyesac 1571342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1572342175Scy$as_echo "$ac_try_echo"; } >&5 1573342175Scy (eval "$ac_link") 2>&5 1574342175Scy ac_status=$? 1575342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1576342175Scy test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1577342175Scy { { case "(($ac_try" in 1578342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1579342175Scy *) ac_try_echo=$ac_try;; 1580342175Scyesac 1581342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1582342175Scy$as_echo "$ac_try_echo"; } >&5 1583342175Scy (eval "$ac_try") 2>&5 1584342175Scy ac_status=$? 1585342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1586342175Scy test $ac_status = 0; }; }; then : 1587342175Scy ac_retval=0 1588342175Scyelse 1589342175Scy $as_echo "$as_me: program exited with status $ac_status" >&5 1590342175Scy $as_echo "$as_me: failed program was:" >&5 1591342175Scysed 's/^/| /' conftest.$ac_ext >&5 1592342175Scy 1593342175Scy ac_retval=$ac_status 1594342175Scyfi 1595342175Scy rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1596342175Scy eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1597342175Scy as_fn_set_status $ac_retval 1598342175Scy 1599342175Scy} # ac_fn_c_try_run 1600342175Scy 1601342175Scy# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1602342175Scy# ------------------------------------------------------- 1603342175Scy# Tests whether HEADER exists and can be compiled using the include files in 1604342175Scy# INCLUDES, setting the cache variable VAR accordingly. 1605342175Scyac_fn_c_check_header_compile () 1606342175Scy{ 1607342175Scy as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1608342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1609342175Scy$as_echo_n "checking for $2... " >&6; } 1610342175Scyif eval \${$3+:} false; then : 1611342175Scy $as_echo_n "(cached) " >&6 1612342175Scyelse 1613342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1614342175Scy/* end confdefs.h. */ 1615342175Scy$4 1616342175Scy#include <$2> 1617342175Scy_ACEOF 1618342175Scyif ac_fn_c_try_compile "$LINENO"; then : 1619342175Scy eval "$3=yes" 1620342175Scyelse 1621342175Scy eval "$3=no" 1622342175Scyfi 1623342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1624342175Scyfi 1625342175Scyeval ac_res=\$$3 1626342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627342175Scy$as_echo "$ac_res" >&6; } 1628342175Scy eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629342175Scy 1630342175Scy} # ac_fn_c_check_header_compile 1631342175Scy 1632342175Scy# ac_fn_c_try_link LINENO 1633342175Scy# ----------------------- 1634342175Scy# Try to link conftest.$ac_ext, and return whether this succeeded. 1635342175Scyac_fn_c_try_link () 1636342175Scy{ 1637342175Scy as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638342175Scy rm -f conftest.$ac_objext conftest$ac_exeext 1639342175Scy if { { ac_try="$ac_link" 1640342175Scycase "(($ac_try" in 1641342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642342175Scy *) ac_try_echo=$ac_try;; 1643342175Scyesac 1644342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645342175Scy$as_echo "$ac_try_echo"; } >&5 1646342175Scy (eval "$ac_link") 2>conftest.err 1647342175Scy ac_status=$? 1648342175Scy if test -s conftest.err; then 1649342175Scy grep -v '^ *+' conftest.err >conftest.er1 1650342175Scy cat conftest.er1 >&5 1651342175Scy mv -f conftest.er1 conftest.err 1652342175Scy fi 1653342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654342175Scy test $ac_status = 0; } && { 1655342175Scy test -z "$ac_c_werror_flag" || 1656342175Scy test ! -s conftest.err 1657342175Scy } && test -s conftest$ac_exeext && { 1658342175Scy test "$cross_compiling" = yes || 1659342175Scy test -x conftest$ac_exeext 1660342175Scy }; then : 1661342175Scy ac_retval=0 1662342175Scyelse 1663342175Scy $as_echo "$as_me: failed program was:" >&5 1664342175Scysed 's/^/| /' conftest.$ac_ext >&5 1665342175Scy 1666342175Scy ac_retval=1 1667342175Scyfi 1668342175Scy # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1669342175Scy # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1670342175Scy # interfere with the next link command; also delete a directory that is 1671342175Scy # left behind by Apple's compiler. We do this before executing the actions. 1672342175Scy rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1673342175Scy eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1674342175Scy as_fn_set_status $ac_retval 1675342175Scy 1676342175Scy} # ac_fn_c_try_link 1677342175Scy 1678342175Scy# ac_fn_c_check_func LINENO FUNC VAR 1679342175Scy# ---------------------------------- 1680342175Scy# Tests whether FUNC exists, setting the cache variable VAR accordingly 1681342175Scyac_fn_c_check_func () 1682342175Scy{ 1683342175Scy as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1684342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1685342175Scy$as_echo_n "checking for $2... " >&6; } 1686342175Scyif eval \${$3+:} false; then : 1687342175Scy $as_echo_n "(cached) " >&6 1688342175Scyelse 1689342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1690342175Scy/* end confdefs.h. */ 1691342175Scy/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1692342175Scy For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1693342175Scy#define $2 innocuous_$2 1694342175Scy 1695342175Scy/* System header to define __stub macros and hopefully few prototypes, 1696342175Scy which can conflict with char $2 (); below. 1697342175Scy Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1698342175Scy <limits.h> exists even on freestanding compilers. */ 1699342175Scy 1700342175Scy#ifdef __STDC__ 1701342175Scy# include <limits.h> 1702342175Scy#else 1703342175Scy# include <assert.h> 1704342175Scy#endif 1705342175Scy 1706342175Scy#undef $2 1707342175Scy 1708342175Scy/* Override any GCC internal prototype to avoid an error. 1709342175Scy Use char because int might match the return type of a GCC 1710342175Scy builtin and then its argument prototype would still apply. */ 1711342175Scy#ifdef __cplusplus 1712342175Scyextern "C" 1713342175Scy#endif 1714342175Scychar $2 (); 1715342175Scy/* The GNU C library defines this for functions which it implements 1716342175Scy to always fail with ENOSYS. Some functions are actually named 1717342175Scy something starting with __ and the normal name is an alias. */ 1718342175Scy#if defined __stub_$2 || defined __stub___$2 1719342175Scychoke me 1720342175Scy#endif 1721342175Scy 1722342175Scyint 1723342175Scymain () 1724342175Scy{ 1725342175Scyreturn $2 (); 1726342175Scy ; 1727342175Scy return 0; 1728342175Scy} 1729342175Scy_ACEOF 1730342175Scyif ac_fn_c_try_link "$LINENO"; then : 1731342175Scy eval "$3=yes" 1732342175Scyelse 1733342175Scy eval "$3=no" 1734342175Scyfi 1735342175Scyrm -f core conftest.err conftest.$ac_objext \ 1736342175Scy conftest$ac_exeext conftest.$ac_ext 1737342175Scyfi 1738342175Scyeval ac_res=\$$3 1739342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1740342175Scy$as_echo "$ac_res" >&6; } 1741342175Scy eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1742342175Scy 1743342175Scy} # ac_fn_c_check_func 1744342175Scy 1745342175Scy# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1746342175Scy# ------------------------------------------------------- 1747342175Scy# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1748342175Scy# the include files in INCLUDES and setting the cache variable VAR 1749342175Scy# accordingly. 1750342175Scyac_fn_c_check_header_mongrel () 1751342175Scy{ 1752342175Scy as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1753342175Scy if eval \${$3+:} false; then : 1754342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755342175Scy$as_echo_n "checking for $2... " >&6; } 1756342175Scyif eval \${$3+:} false; then : 1757342175Scy $as_echo_n "(cached) " >&6 1758342175Scyfi 1759342175Scyeval ac_res=\$$3 1760342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1761342175Scy$as_echo "$ac_res" >&6; } 1762342175Scyelse 1763342175Scy # Is the header compilable? 1764342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1765342175Scy$as_echo_n "checking $2 usability... " >&6; } 1766342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767342175Scy/* end confdefs.h. */ 1768342175Scy$4 1769342175Scy#include <$2> 1770342175Scy_ACEOF 1771342175Scyif ac_fn_c_try_compile "$LINENO"; then : 1772342175Scy ac_header_compiler=yes 1773342175Scyelse 1774342175Scy ac_header_compiler=no 1775342175Scyfi 1776342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1778342175Scy$as_echo "$ac_header_compiler" >&6; } 1779342175Scy 1780342175Scy# Is the header present? 1781342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1782342175Scy$as_echo_n "checking $2 presence... " >&6; } 1783342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 1784342175Scy/* end confdefs.h. */ 1785342175Scy#include <$2> 1786342175Scy_ACEOF 1787342175Scyif ac_fn_c_try_cpp "$LINENO"; then : 1788342175Scy ac_header_preproc=yes 1789342175Scyelse 1790342175Scy ac_header_preproc=no 1791342175Scyfi 1792342175Scyrm -f conftest.err conftest.i conftest.$ac_ext 1793342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1794342175Scy$as_echo "$ac_header_preproc" >&6; } 1795342175Scy 1796342175Scy# So? What about this header? 1797342175Scycase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1798342175Scy yes:no: ) 1799342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1800342175Scy$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1801342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1802342175Scy$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1803342175Scy ;; 1804342175Scy no:yes:* ) 1805342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1806342175Scy$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1807342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1808342175Scy$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1809342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1810342175Scy$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1811342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1812342175Scy$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1813342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1814342175Scy$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1815342175Scy ;; 1816342175Scyesac 1817342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1818342175Scy$as_echo_n "checking for $2... " >&6; } 1819342175Scyif eval \${$3+:} false; then : 1820342175Scy $as_echo_n "(cached) " >&6 1821342175Scyelse 1822342175Scy eval "$3=\$ac_header_compiler" 1823342175Scyfi 1824342175Scyeval ac_res=\$$3 1825342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1826342175Scy$as_echo "$ac_res" >&6; } 1827342175Scyfi 1828342175Scy eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1829342175Scy 1830342175Scy} # ac_fn_c_check_header_mongrel 1831342175Scy 1832342175Scy# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1833342175Scy# --------------------------------------------- 1834342175Scy# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1835342175Scy# accordingly. 1836342175Scyac_fn_c_check_decl () 1837342175Scy{ 1838342175Scy as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839342175Scy as_decl_name=`echo $2|sed 's/ *(.*//'` 1840342175Scy as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1841342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1842342175Scy$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1843342175Scyif eval \${$3+:} false; then : 1844342175Scy $as_echo_n "(cached) " >&6 1845342175Scyelse 1846342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847342175Scy/* end confdefs.h. */ 1848342175Scy$4 1849342175Scyint 1850342175Scymain () 1851342175Scy{ 1852342175Scy#ifndef $as_decl_name 1853342175Scy#ifdef __cplusplus 1854342175Scy (void) $as_decl_use; 1855342175Scy#else 1856342175Scy (void) $as_decl_name; 1857342175Scy#endif 1858342175Scy#endif 1859342175Scy 1860342175Scy ; 1861342175Scy return 0; 1862342175Scy} 1863342175Scy_ACEOF 1864342175Scyif ac_fn_c_try_compile "$LINENO"; then : 1865342175Scy eval "$3=yes" 1866342175Scyelse 1867342175Scy eval "$3=no" 1868342175Scyfi 1869342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1870342175Scyfi 1871342175Scyeval ac_res=\$$3 1872342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1873342175Scy$as_echo "$ac_res" >&6; } 1874342175Scy eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1875342175Scy 1876342175Scy} # ac_fn_c_check_decl 1877342175Scycat >config.log <<_ACEOF 1878342175ScyThis file contains any messages produced by compilers while 1879342175Scyrunning configure, to aid debugging if configure makes a mistake. 1880342175Scy 1881369951ScyIt was created by sqlite $as_me 3.35.5, which was 1882342175Scygenerated by GNU Autoconf 2.69. Invocation command line was 1883342175Scy 1884342175Scy $ $0 $@ 1885342175Scy 1886342175Scy_ACEOF 1887342175Scyexec 5>>config.log 1888342175Scy{ 1889342175Scycat <<_ASUNAME 1890342175Scy## --------- ## 1891342175Scy## Platform. ## 1892342175Scy## --------- ## 1893342175Scy 1894342175Scyhostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1895342175Scyuname -m = `(uname -m) 2>/dev/null || echo unknown` 1896342175Scyuname -r = `(uname -r) 2>/dev/null || echo unknown` 1897342175Scyuname -s = `(uname -s) 2>/dev/null || echo unknown` 1898342175Scyuname -v = `(uname -v) 2>/dev/null || echo unknown` 1899342175Scy 1900342175Scy/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1901342175Scy/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1902342175Scy 1903342175Scy/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1904342175Scy/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1905342175Scy/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1906342175Scy/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1907342175Scy/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1908342175Scy/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1909342175Scy/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1910342175Scy 1911342175Scy_ASUNAME 1912342175Scy 1913342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1914342175Scyfor as_dir in $PATH 1915342175Scydo 1916342175Scy IFS=$as_save_IFS 1917342175Scy test -z "$as_dir" && as_dir=. 1918342175Scy $as_echo "PATH: $as_dir" 1919342175Scy done 1920342175ScyIFS=$as_save_IFS 1921342175Scy 1922342175Scy} >&5 1923342175Scy 1924342175Scycat >&5 <<_ACEOF 1925342175Scy 1926342175Scy 1927342175Scy## ----------- ## 1928342175Scy## Core tests. ## 1929342175Scy## ----------- ## 1930342175Scy 1931342175Scy_ACEOF 1932342175Scy 1933342175Scy 1934342175Scy# Keep a trace of the command line. 1935342175Scy# Strip out --no-create and --no-recursion so they do not pile up. 1936342175Scy# Strip out --silent because we don't want to record it for future runs. 1937342175Scy# Also quote any args containing shell meta-characters. 1938342175Scy# Make two passes to allow for proper duplicate-argument suppression. 1939342175Scyac_configure_args= 1940342175Scyac_configure_args0= 1941342175Scyac_configure_args1= 1942342175Scyac_must_keep_next=false 1943342175Scyfor ac_pass in 1 2 1944342175Scydo 1945342175Scy for ac_arg 1946342175Scy do 1947342175Scy case $ac_arg in 1948342175Scy -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1949342175Scy -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1950342175Scy | -silent | --silent | --silen | --sile | --sil) 1951342175Scy continue ;; 1952342175Scy *\'*) 1953342175Scy ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1954342175Scy esac 1955342175Scy case $ac_pass in 1956342175Scy 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1957342175Scy 2) 1958342175Scy as_fn_append ac_configure_args1 " '$ac_arg'" 1959342175Scy if test $ac_must_keep_next = true; then 1960342175Scy ac_must_keep_next=false # Got value, back to normal. 1961342175Scy else 1962342175Scy case $ac_arg in 1963342175Scy *=* | --config-cache | -C | -disable-* | --disable-* \ 1964342175Scy | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1965342175Scy | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1966342175Scy | -with-* | --with-* | -without-* | --without-* | --x) 1967342175Scy case "$ac_configure_args0 " in 1968342175Scy "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1969342175Scy esac 1970342175Scy ;; 1971342175Scy -* ) ac_must_keep_next=true ;; 1972342175Scy esac 1973342175Scy fi 1974342175Scy as_fn_append ac_configure_args " '$ac_arg'" 1975342175Scy ;; 1976342175Scy esac 1977342175Scy done 1978342175Scydone 1979342175Scy{ ac_configure_args0=; unset ac_configure_args0;} 1980342175Scy{ ac_configure_args1=; unset ac_configure_args1;} 1981342175Scy 1982342175Scy# When interrupted or exit'd, cleanup temporary files, and complete 1983342175Scy# config.log. We remove comments because anyway the quotes in there 1984342175Scy# would cause problems or look ugly. 1985342175Scy# WARNING: Use '\'' to represent an apostrophe within the trap. 1986342175Scy# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1987342175Scytrap 'exit_status=$? 1988342175Scy # Save into config.log some information that might help in debugging. 1989342175Scy { 1990342175Scy echo 1991342175Scy 1992342175Scy $as_echo "## ---------------- ## 1993342175Scy## Cache variables. ## 1994342175Scy## ---------------- ##" 1995342175Scy echo 1996342175Scy # The following way of writing the cache mishandles newlines in values, 1997342175Scy( 1998342175Scy for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1999342175Scy eval ac_val=\$$ac_var 2000342175Scy case $ac_val in #( 2001342175Scy *${as_nl}*) 2002342175Scy case $ac_var in #( 2003342175Scy *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2004342175Scy$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2005342175Scy esac 2006342175Scy case $ac_var in #( 2007342175Scy _ | IFS | as_nl) ;; #( 2008342175Scy BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2009342175Scy *) { eval $ac_var=; unset $ac_var;} ;; 2010342175Scy esac ;; 2011342175Scy esac 2012342175Scy done 2013342175Scy (set) 2>&1 | 2014342175Scy case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2015342175Scy *${as_nl}ac_space=\ *) 2016342175Scy sed -n \ 2017342175Scy "s/'\''/'\''\\\\'\'''\''/g; 2018342175Scy s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2019342175Scy ;; #( 2020342175Scy *) 2021342175Scy sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2022342175Scy ;; 2023342175Scy esac | 2024342175Scy sort 2025342175Scy) 2026342175Scy echo 2027342175Scy 2028342175Scy $as_echo "## ----------------- ## 2029342175Scy## Output variables. ## 2030342175Scy## ----------------- ##" 2031342175Scy echo 2032342175Scy for ac_var in $ac_subst_vars 2033342175Scy do 2034342175Scy eval ac_val=\$$ac_var 2035342175Scy case $ac_val in 2036342175Scy *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2037342175Scy esac 2038342175Scy $as_echo "$ac_var='\''$ac_val'\''" 2039342175Scy done | sort 2040342175Scy echo 2041342175Scy 2042342175Scy if test -n "$ac_subst_files"; then 2043342175Scy $as_echo "## ------------------- ## 2044342175Scy## File substitutions. ## 2045342175Scy## ------------------- ##" 2046342175Scy echo 2047342175Scy for ac_var in $ac_subst_files 2048342175Scy do 2049342175Scy eval ac_val=\$$ac_var 2050342175Scy case $ac_val in 2051342175Scy *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2052342175Scy esac 2053342175Scy $as_echo "$ac_var='\''$ac_val'\''" 2054342175Scy done | sort 2055342175Scy echo 2056342175Scy fi 2057342175Scy 2058342175Scy if test -s confdefs.h; then 2059342175Scy $as_echo "## ----------- ## 2060342175Scy## confdefs.h. ## 2061342175Scy## ----------- ##" 2062342175Scy echo 2063342175Scy cat confdefs.h 2064342175Scy echo 2065342175Scy fi 2066342175Scy test "$ac_signal" != 0 && 2067342175Scy $as_echo "$as_me: caught signal $ac_signal" 2068342175Scy $as_echo "$as_me: exit $exit_status" 2069342175Scy } >&5 2070342175Scy rm -f core *.core core.conftest.* && 2071342175Scy rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2072342175Scy exit $exit_status 2073342175Scy' 0 2074342175Scyfor ac_signal in 1 2 13 15; do 2075342175Scy trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2076342175Scydone 2077342175Scyac_signal=0 2078342175Scy 2079342175Scy# confdefs.h avoids OS command line length limits that DEFS can exceed. 2080342175Scyrm -f -r conftest* confdefs.h 2081342175Scy 2082342175Scy$as_echo "/* confdefs.h */" > confdefs.h 2083342175Scy 2084342175Scy# Predefined preprocessor variables. 2085342175Scy 2086342175Scycat >>confdefs.h <<_ACEOF 2087342175Scy#define PACKAGE_NAME "$PACKAGE_NAME" 2088342175Scy_ACEOF 2089342175Scy 2090342175Scycat >>confdefs.h <<_ACEOF 2091342175Scy#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2092342175Scy_ACEOF 2093342175Scy 2094342175Scycat >>confdefs.h <<_ACEOF 2095342175Scy#define PACKAGE_VERSION "$PACKAGE_VERSION" 2096342175Scy_ACEOF 2097342175Scy 2098342175Scycat >>confdefs.h <<_ACEOF 2099342175Scy#define PACKAGE_STRING "$PACKAGE_STRING" 2100342175Scy_ACEOF 2101342175Scy 2102342175Scycat >>confdefs.h <<_ACEOF 2103342175Scy#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2104342175Scy_ACEOF 2105342175Scy 2106342175Scycat >>confdefs.h <<_ACEOF 2107342175Scy#define PACKAGE_URL "$PACKAGE_URL" 2108342175Scy_ACEOF 2109342175Scy 2110342175Scy 2111342175Scy# Let the site file select an alternate cache file if it wants to. 2112342175Scy# Prefer an explicitly selected file to automatically selected ones. 2113342175Scyac_site_file1=NONE 2114342175Scyac_site_file2=NONE 2115342175Scyif test -n "$CONFIG_SITE"; then 2116342175Scy # We do not want a PATH search for config.site. 2117342175Scy case $CONFIG_SITE in #(( 2118342175Scy -*) ac_site_file1=./$CONFIG_SITE;; 2119342175Scy */*) ac_site_file1=$CONFIG_SITE;; 2120342175Scy *) ac_site_file1=./$CONFIG_SITE;; 2121342175Scy esac 2122342175Scyelif test "x$prefix" != xNONE; then 2123342175Scy ac_site_file1=$prefix/share/config.site 2124342175Scy ac_site_file2=$prefix/etc/config.site 2125342175Scyelse 2126342175Scy ac_site_file1=$ac_default_prefix/share/config.site 2127342175Scy ac_site_file2=$ac_default_prefix/etc/config.site 2128342175Scyfi 2129342175Scyfor ac_site_file in "$ac_site_file1" "$ac_site_file2" 2130342175Scydo 2131342175Scy test "x$ac_site_file" = xNONE && continue 2132342175Scy if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2133342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2134342175Scy$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2135342175Scy sed 's/^/| /' "$ac_site_file" >&5 2136342175Scy . "$ac_site_file" \ 2137342175Scy || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2138342175Scy$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2139342175Scyas_fn_error $? "failed to load site script $ac_site_file 2140342175ScySee \`config.log' for more details" "$LINENO" 5; } 2141342175Scy fi 2142342175Scydone 2143342175Scy 2144342175Scyif test -r "$cache_file"; then 2145342175Scy # Some versions of bash will fail to source /dev/null (special files 2146342175Scy # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2147342175Scy if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2148342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2149342175Scy$as_echo "$as_me: loading cache $cache_file" >&6;} 2150342175Scy case $cache_file in 2151342175Scy [\\/]* | ?:[\\/]* ) . "$cache_file";; 2152342175Scy *) . "./$cache_file";; 2153342175Scy esac 2154342175Scy fi 2155342175Scyelse 2156342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2157342175Scy$as_echo "$as_me: creating cache $cache_file" >&6;} 2158342175Scy >$cache_file 2159342175Scyfi 2160342175Scy 2161342175Scy# Check that the precious variables saved in the cache have kept the same 2162342175Scy# value. 2163342175Scyac_cache_corrupted=false 2164342175Scyfor ac_var in $ac_precious_vars; do 2165342175Scy eval ac_old_set=\$ac_cv_env_${ac_var}_set 2166342175Scy eval ac_new_set=\$ac_env_${ac_var}_set 2167342175Scy eval ac_old_val=\$ac_cv_env_${ac_var}_value 2168342175Scy eval ac_new_val=\$ac_env_${ac_var}_value 2169342175Scy case $ac_old_set,$ac_new_set in 2170342175Scy set,) 2171342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2172342175Scy$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2173342175Scy ac_cache_corrupted=: ;; 2174342175Scy ,set) 2175342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2176342175Scy$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2177342175Scy ac_cache_corrupted=: ;; 2178342175Scy ,);; 2179342175Scy *) 2180342175Scy if test "x$ac_old_val" != "x$ac_new_val"; then 2181342175Scy # differences in whitespace do not lead to failure. 2182342175Scy ac_old_val_w=`echo x $ac_old_val` 2183342175Scy ac_new_val_w=`echo x $ac_new_val` 2184342175Scy if test "$ac_old_val_w" != "$ac_new_val_w"; then 2185342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2186342175Scy$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2187342175Scy ac_cache_corrupted=: 2188342175Scy else 2189342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2190342175Scy$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2191342175Scy eval $ac_var=\$ac_old_val 2192342175Scy fi 2193342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2194342175Scy$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2195342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2196342175Scy$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2197342175Scy fi;; 2198342175Scy esac 2199342175Scy # Pass precious variables to config.status. 2200342175Scy if test "$ac_new_set" = set; then 2201342175Scy case $ac_new_val in 2202342175Scy *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2203342175Scy *) ac_arg=$ac_var=$ac_new_val ;; 2204342175Scy esac 2205342175Scy case " $ac_configure_args " in 2206342175Scy *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2207342175Scy *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2208342175Scy esac 2209342175Scy fi 2210342175Scydone 2211342175Scyif $ac_cache_corrupted; then 2212342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2213342175Scy$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2214342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2215342175Scy$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2216342175Scy as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2217342175Scyfi 2218342175Scy## -------------------- ## 2219342175Scy## Main body of script. ## 2220342175Scy## -------------------- ## 2221342175Scy 2222342175Scyac_ext=c 2223342175Scyac_cpp='$CPP $CPPFLAGS' 2224342175Scyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2225342175Scyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2226342175Scyac_compiler_gnu=$ac_cv_c_compiler_gnu 2227342175Scy 2228342175Scy 2229342175Scy 2230342175Scy#-------------------------------------------------------------------- 2231342175Scy# Call TEA_INIT as the first TEA_ macro to set up initial vars. 2232342175Scy# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 2233342175Scy# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 2234342175Scy#-------------------------------------------------------------------- 2235342175Scy 2236342175Scy 2237342175Scy # TEA extensions pass this us the version of TEA they think they 2238342175Scy # are compatible with. 2239342175Scy TEA_VERSION="3.9" 2240342175Scy 2241342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct TEA configuration" >&5 2242342175Scy$as_echo_n "checking for correct TEA configuration... " >&6; } 2243342175Scy if test x"${PACKAGE_NAME}" = x ; then 2244342175Scy as_fn_error $? " 2245342175ScyThe PACKAGE_NAME variable must be defined by your TEA configure.in" "$LINENO" 5 2246342175Scy fi 2247342175Scy if test x"3.9" = x ; then 2248342175Scy as_fn_error $? " 2249342175ScyTEA version not specified." "$LINENO" 5 2250342175Scy elif test "3.9" != "${TEA_VERSION}" ; then 2251342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 2252342175Scy$as_echo "warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 2253342175Scy else 2254342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (TEA ${TEA_VERSION})" >&5 2255342175Scy$as_echo "ok (TEA ${TEA_VERSION})" >&6; } 2256342175Scy fi 2257342175Scy 2258342175Scy # If the user did not set CFLAGS, set it now to keep macros 2259342175Scy # like AC_PROG_CC and AC_TRY_COMPILE from adding "-g -O2". 2260342175Scy if test "${CFLAGS+set}" != "set" ; then 2261342175Scy CFLAGS="" 2262342175Scy fi 2263342175Scy 2264342175Scy case "`uname -s`" in 2265342175Scy *win32*|*WIN32*|*MINGW32_*) 2266342175Scy # Extract the first word of "cygpath", so it can be a program name with args. 2267342175Scyset dummy cygpath; ac_word=$2 2268342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2269342175Scy$as_echo_n "checking for $ac_word... " >&6; } 2270342175Scyif ${ac_cv_prog_CYGPATH+:} false; then : 2271342175Scy $as_echo_n "(cached) " >&6 2272342175Scyelse 2273342175Scy if test -n "$CYGPATH"; then 2274342175Scy ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 2275342175Scyelse 2276342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2277342175Scyfor as_dir in $PATH 2278342175Scydo 2279342175Scy IFS=$as_save_IFS 2280342175Scy test -z "$as_dir" && as_dir=. 2281342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 2282342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2283342175Scy ac_cv_prog_CYGPATH="cygpath -w" 2284342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2285342175Scy break 2 2286342175Scy fi 2287342175Scydone 2288342175Scy done 2289342175ScyIFS=$as_save_IFS 2290342175Scy 2291342175Scy test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 2292342175Scyfi 2293342175Scyfi 2294342175ScyCYGPATH=$ac_cv_prog_CYGPATH 2295342175Scyif test -n "$CYGPATH"; then 2296342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 2297342175Scy$as_echo "$CYGPATH" >&6; } 2298342175Scyelse 2299342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2300342175Scy$as_echo "no" >&6; } 2301342175Scyfi 2302342175Scy 2303342175Scy 2304342175Scy EXEEXT=".exe" 2305342175Scy TEA_PLATFORM="windows" 2306342175Scy ;; 2307342175Scy *CYGWIN_*) 2308342175Scy CYGPATH=echo 2309342175Scy EXEEXT=".exe" 2310342175Scy # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 2311342175Scy ;; 2312342175Scy *) 2313342175Scy CYGPATH=echo 2314342175Scy # Maybe we are cross-compiling.... 2315342175Scy case ${host_alias} in 2316342175Scy *mingw32*) 2317342175Scy EXEEXT=".exe" 2318342175Scy TEA_PLATFORM="windows" 2319342175Scy ;; 2320342175Scy *) 2321342175Scy EXEEXT="" 2322342175Scy TEA_PLATFORM="unix" 2323342175Scy ;; 2324342175Scy esac 2325342175Scy ;; 2326342175Scy esac 2327342175Scy 2328342175Scy # Check if exec_prefix is set. If not use fall back to prefix. 2329342175Scy # Note when adjusted, so that TEA_PREFIX can correct for this. 2330342175Scy # This is needed for recursive configures, since autoconf propagates 2331342175Scy # $prefix, but not $exec_prefix (doh!). 2332342175Scy if test x$exec_prefix = xNONE ; then 2333342175Scy exec_prefix_default=yes 2334342175Scy exec_prefix=$prefix 2335342175Scy fi 2336342175Scy 2337342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&5 2338342175Scy$as_echo "$as_me: configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}" >&6;} 2339342175Scy 2340342175Scy 2341342175Scy 2342342175Scy 2343342175Scy # This package name must be replaced statically for AC_SUBST to work 2344342175Scy 2345342175Scy # Substitute STUB_LIB_FILE in case package creates a stub library too. 2346342175Scy 2347342175Scy 2348342175Scy # We AC_SUBST these here to ensure they are subst'ed, 2349342175Scy # in case the user doesn't call TEA_ADD_... 2350342175Scy 2351342175Scy 2352342175Scy 2353342175Scy 2354342175Scy 2355342175Scy 2356342175Scy 2357342175Scy 2358342175Scy 2359342175Scyac_aux_dir= 2360342175Scyfor ac_dir in tclconfig "$srcdir"/tclconfig; do 2361342175Scy if test -f "$ac_dir/install-sh"; then 2362342175Scy ac_aux_dir=$ac_dir 2363342175Scy ac_install_sh="$ac_aux_dir/install-sh -c" 2364342175Scy break 2365342175Scy elif test -f "$ac_dir/install.sh"; then 2366342175Scy ac_aux_dir=$ac_dir 2367342175Scy ac_install_sh="$ac_aux_dir/install.sh -c" 2368342175Scy break 2369342175Scy elif test -f "$ac_dir/shtool"; then 2370342175Scy ac_aux_dir=$ac_dir 2371342175Scy ac_install_sh="$ac_aux_dir/shtool install -c" 2372342175Scy break 2373342175Scy fi 2374342175Scydone 2375342175Scyif test -z "$ac_aux_dir"; then 2376342175Scy as_fn_error $? "cannot find install-sh, install.sh, or shtool in tclconfig \"$srcdir\"/tclconfig" "$LINENO" 5 2377342175Scyfi 2378342175Scy 2379342175Scy# These three variables are undocumented and unsupported, 2380342175Scy# and are intended to be withdrawn in a future Autoconf release. 2381342175Scy# They can cause serious problems if a builder's source tree is in a directory 2382342175Scy# whose full name contains unusual characters. 2383342175Scyac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2384342175Scyac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2385342175Scyac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2386342175Scy 2387342175Scy 2388342175Scy 2389342175Scy#-------------------------------------------------------------------- 2390342175Scy# Load the tclConfig.sh file 2391342175Scy#-------------------------------------------------------------------- 2392342175Scy 2393342175Scy 2394342175Scy 2395342175Scy # 2396342175Scy # Ok, lets find the tcl configuration 2397342175Scy # First, look for one uninstalled. 2398342175Scy # the alternative search directory is invoked by --with-tcl 2399342175Scy # 2400342175Scy 2401342175Scy if test x"${no_tcl}" = x ; then 2402342175Scy # we reset no_tcl in case something fails here 2403342175Scy no_tcl=true 2404342175Scy 2405342175Scy# Check whether --with-tcl was given. 2406342175Scyif test "${with_tcl+set}" = set; then : 2407342175Scy withval=$with_tcl; with_tclconfig="${withval}" 2408342175Scyfi 2409342175Scy 2410342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5 2411342175Scy$as_echo_n "checking for Tcl configuration... " >&6; } 2412342175Scy if ${ac_cv_c_tclconfig+:} false; then : 2413342175Scy $as_echo_n "(cached) " >&6 2414342175Scyelse 2415342175Scy 2416342175Scy 2417342175Scy # First check to see if --with-tcl was specified. 2418342175Scy if test x"${with_tclconfig}" != x ; then 2419342175Scy case "${with_tclconfig}" in 2420342175Scy */tclConfig.sh ) 2421342175Scy if test -f "${with_tclconfig}"; then 2422342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2423342175Scy$as_echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2424342175Scy with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 2425342175Scy fi ;; 2426342175Scy esac 2427342175Scy if test -f "${with_tclconfig}/tclConfig.sh" ; then 2428342175Scy ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 2429342175Scy else 2430342175Scy as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5 2431342175Scy fi 2432342175Scy fi 2433342175Scy 2434342175Scy # then check for a private Tcl installation 2435342175Scy if test x"${ac_cv_c_tclconfig}" = x ; then 2436342175Scy for i in \ 2437342175Scy ../tcl \ 2438342175Scy `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2439342175Scy `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2440342175Scy `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2441342175Scy ../../tcl \ 2442342175Scy `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2443342175Scy `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2444342175Scy `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2445342175Scy ../../../tcl \ 2446342175Scy `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2447342175Scy `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2448342175Scy `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2449342175Scy if test "${TEA_PLATFORM}" = "windows" \ 2450342175Scy -a -f "$i/win/tclConfig.sh" ; then 2451342175Scy ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2452342175Scy break 2453342175Scy fi 2454342175Scy if test -f "$i/unix/tclConfig.sh" ; then 2455342175Scy ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2456342175Scy break 2457342175Scy fi 2458342175Scy done 2459342175Scy fi 2460342175Scy 2461342175Scy # on Darwin, check in Framework installation locations 2462342175Scy if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2463342175Scy for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2464342175Scy `ls -d /Library/Frameworks 2>/dev/null` \ 2465342175Scy `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2466342175Scy `ls -d /System/Library/Frameworks 2>/dev/null` \ 2467342175Scy ; do 2468342175Scy if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2469342175Scy ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2470342175Scy break 2471342175Scy fi 2472342175Scy done 2473342175Scy fi 2474342175Scy 2475342175Scy # TEA specific: on Windows, check in common installation locations 2476342175Scy if test "${TEA_PLATFORM}" = "windows" \ 2477342175Scy -a x"${ac_cv_c_tclconfig}" = x ; then 2478342175Scy for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2479342175Scy `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2480342175Scy ; do 2481342175Scy if test -f "$i/tclConfig.sh" ; then 2482342175Scy ac_cv_c_tclconfig="`(cd $i; pwd)`" 2483342175Scy break 2484342175Scy fi 2485342175Scy done 2486342175Scy fi 2487342175Scy 2488342175Scy # check in a few common install locations 2489342175Scy if test x"${ac_cv_c_tclconfig}" = x ; then 2490342175Scy for i in `ls -d ${libdir} 2>/dev/null` \ 2491342175Scy `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2492342175Scy `ls -d ${prefix}/lib 2>/dev/null` \ 2493342175Scy `ls -d /usr/local/lib 2>/dev/null` \ 2494342175Scy `ls -d /usr/contrib/lib 2>/dev/null` \ 2495342175Scy `ls -d /usr/lib 2>/dev/null` \ 2496342175Scy `ls -d /usr/lib64 2>/dev/null` \ 2497342175Scy `ls -d /usr/lib/tcl8.6 2>/dev/null` \ 2498342175Scy `ls -d /usr/lib/tcl8.5 2>/dev/null` \ 2499342175Scy ; do 2500342175Scy if test -f "$i/tclConfig.sh" ; then 2501342175Scy ac_cv_c_tclconfig="`(cd $i; pwd)`" 2502342175Scy break 2503342175Scy fi 2504342175Scy done 2505342175Scy fi 2506342175Scy 2507342175Scy # check in a few other private locations 2508342175Scy if test x"${ac_cv_c_tclconfig}" = x ; then 2509342175Scy for i in \ 2510342175Scy ${srcdir}/../tcl \ 2511342175Scy `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2512342175Scy `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2513342175Scy `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2514342175Scy if test "${TEA_PLATFORM}" = "windows" \ 2515342175Scy -a -f "$i/win/tclConfig.sh" ; then 2516342175Scy ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2517342175Scy break 2518342175Scy fi 2519342175Scy if test -f "$i/unix/tclConfig.sh" ; then 2520342175Scy ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2521342175Scy break 2522342175Scy fi 2523342175Scy done 2524342175Scy fi 2525342175Scy 2526342175Scyfi 2527342175Scy 2528342175Scy 2529342175Scy if test x"${ac_cv_c_tclconfig}" = x ; then 2530342175Scy TCL_BIN_DIR="# no Tcl configs found" 2531342175Scy as_fn_error $? "Can't find Tcl configuration definitions. Use --with-tcl to specify a directory containing tclConfig.sh" "$LINENO" 5 2532342175Scy else 2533342175Scy no_tcl= 2534342175Scy TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2535342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2536342175Scy$as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2537342175Scy fi 2538342175Scy fi 2539342175Scy 2540342175Scyac_ext=c 2541342175Scyac_cpp='$CPP $CPPFLAGS' 2542342175Scyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2543342175Scyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2544342175Scyac_compiler_gnu=$ac_cv_c_compiler_gnu 2545342175Scyif test -n "$ac_tool_prefix"; then 2546342175Scy # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2547342175Scyset dummy ${ac_tool_prefix}gcc; ac_word=$2 2548342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2549342175Scy$as_echo_n "checking for $ac_word... " >&6; } 2550342175Scyif ${ac_cv_prog_CC+:} false; then : 2551342175Scy $as_echo_n "(cached) " >&6 2552342175Scyelse 2553342175Scy if test -n "$CC"; then 2554342175Scy ac_cv_prog_CC="$CC" # Let the user override the test. 2555342175Scyelse 2556342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2557342175Scyfor as_dir in $PATH 2558342175Scydo 2559342175Scy IFS=$as_save_IFS 2560342175Scy test -z "$as_dir" && as_dir=. 2561342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 2562342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2563342175Scy ac_cv_prog_CC="${ac_tool_prefix}gcc" 2564342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2565342175Scy break 2 2566342175Scy fi 2567342175Scydone 2568342175Scy done 2569342175ScyIFS=$as_save_IFS 2570342175Scy 2571342175Scyfi 2572342175Scyfi 2573342175ScyCC=$ac_cv_prog_CC 2574342175Scyif test -n "$CC"; then 2575342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2576342175Scy$as_echo "$CC" >&6; } 2577342175Scyelse 2578342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2579342175Scy$as_echo "no" >&6; } 2580342175Scyfi 2581342175Scy 2582342175Scy 2583342175Scyfi 2584342175Scyif test -z "$ac_cv_prog_CC"; then 2585342175Scy ac_ct_CC=$CC 2586342175Scy # Extract the first word of "gcc", so it can be a program name with args. 2587342175Scyset dummy gcc; ac_word=$2 2588342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2589342175Scy$as_echo_n "checking for $ac_word... " >&6; } 2590342175Scyif ${ac_cv_prog_ac_ct_CC+:} false; then : 2591342175Scy $as_echo_n "(cached) " >&6 2592342175Scyelse 2593342175Scy if test -n "$ac_ct_CC"; then 2594342175Scy ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2595342175Scyelse 2596342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2597342175Scyfor as_dir in $PATH 2598342175Scydo 2599342175Scy IFS=$as_save_IFS 2600342175Scy test -z "$as_dir" && as_dir=. 2601342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 2602342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2603342175Scy ac_cv_prog_ac_ct_CC="gcc" 2604342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2605342175Scy break 2 2606342175Scy fi 2607342175Scydone 2608342175Scy done 2609342175ScyIFS=$as_save_IFS 2610342175Scy 2611342175Scyfi 2612342175Scyfi 2613342175Scyac_ct_CC=$ac_cv_prog_ac_ct_CC 2614342175Scyif test -n "$ac_ct_CC"; then 2615342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2616342175Scy$as_echo "$ac_ct_CC" >&6; } 2617342175Scyelse 2618342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2619342175Scy$as_echo "no" >&6; } 2620342175Scyfi 2621342175Scy 2622342175Scy if test "x$ac_ct_CC" = x; then 2623342175Scy CC="" 2624342175Scy else 2625342175Scy case $cross_compiling:$ac_tool_warned in 2626342175Scyyes:) 2627342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2628342175Scy$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2629342175Scyac_tool_warned=yes ;; 2630342175Scyesac 2631342175Scy CC=$ac_ct_CC 2632342175Scy fi 2633342175Scyelse 2634342175Scy CC="$ac_cv_prog_CC" 2635342175Scyfi 2636342175Scy 2637342175Scyif test -z "$CC"; then 2638342175Scy if test -n "$ac_tool_prefix"; then 2639342175Scy # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2640342175Scyset dummy ${ac_tool_prefix}cc; ac_word=$2 2641342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2642342175Scy$as_echo_n "checking for $ac_word... " >&6; } 2643342175Scyif ${ac_cv_prog_CC+:} false; then : 2644342175Scy $as_echo_n "(cached) " >&6 2645342175Scyelse 2646342175Scy if test -n "$CC"; then 2647342175Scy ac_cv_prog_CC="$CC" # Let the user override the test. 2648342175Scyelse 2649342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2650342175Scyfor as_dir in $PATH 2651342175Scydo 2652342175Scy IFS=$as_save_IFS 2653342175Scy test -z "$as_dir" && as_dir=. 2654342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 2655342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2656342175Scy ac_cv_prog_CC="${ac_tool_prefix}cc" 2657342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2658342175Scy break 2 2659342175Scy fi 2660342175Scydone 2661342175Scy done 2662342175ScyIFS=$as_save_IFS 2663342175Scy 2664342175Scyfi 2665342175Scyfi 2666342175ScyCC=$ac_cv_prog_CC 2667342175Scyif test -n "$CC"; then 2668342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2669342175Scy$as_echo "$CC" >&6; } 2670342175Scyelse 2671342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2672342175Scy$as_echo "no" >&6; } 2673342175Scyfi 2674342175Scy 2675342175Scy 2676342175Scy fi 2677342175Scyfi 2678342175Scyif test -z "$CC"; then 2679342175Scy # Extract the first word of "cc", so it can be a program name with args. 2680342175Scyset dummy cc; ac_word=$2 2681342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2682342175Scy$as_echo_n "checking for $ac_word... " >&6; } 2683342175Scyif ${ac_cv_prog_CC+:} false; then : 2684342175Scy $as_echo_n "(cached) " >&6 2685342175Scyelse 2686342175Scy if test -n "$CC"; then 2687342175Scy ac_cv_prog_CC="$CC" # Let the user override the test. 2688342175Scyelse 2689342175Scy ac_prog_rejected=no 2690342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691342175Scyfor as_dir in $PATH 2692342175Scydo 2693342175Scy IFS=$as_save_IFS 2694342175Scy test -z "$as_dir" && as_dir=. 2695342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 2696342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2697342175Scy if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2698342175Scy ac_prog_rejected=yes 2699342175Scy continue 2700342175Scy fi 2701342175Scy ac_cv_prog_CC="cc" 2702342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2703342175Scy break 2 2704342175Scy fi 2705342175Scydone 2706342175Scy done 2707342175ScyIFS=$as_save_IFS 2708342175Scy 2709342175Scyif test $ac_prog_rejected = yes; then 2710342175Scy # We found a bogon in the path, so make sure we never use it. 2711342175Scy set dummy $ac_cv_prog_CC 2712342175Scy shift 2713342175Scy if test $# != 0; then 2714342175Scy # We chose a different compiler from the bogus one. 2715342175Scy # However, it has the same basename, so the bogon will be chosen 2716342175Scy # first if we set CC to just the basename; use the full file name. 2717342175Scy shift 2718342175Scy ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2719342175Scy fi 2720342175Scyfi 2721342175Scyfi 2722342175Scyfi 2723342175ScyCC=$ac_cv_prog_CC 2724342175Scyif test -n "$CC"; then 2725342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2726342175Scy$as_echo "$CC" >&6; } 2727342175Scyelse 2728342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2729342175Scy$as_echo "no" >&6; } 2730342175Scyfi 2731342175Scy 2732342175Scy 2733342175Scyfi 2734342175Scyif test -z "$CC"; then 2735342175Scy if test -n "$ac_tool_prefix"; then 2736342175Scy for ac_prog in cl.exe 2737342175Scy do 2738342175Scy # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2739342175Scyset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2740342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2741342175Scy$as_echo_n "checking for $ac_word... " >&6; } 2742342175Scyif ${ac_cv_prog_CC+:} false; then : 2743342175Scy $as_echo_n "(cached) " >&6 2744342175Scyelse 2745342175Scy if test -n "$CC"; then 2746342175Scy ac_cv_prog_CC="$CC" # Let the user override the test. 2747342175Scyelse 2748342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2749342175Scyfor as_dir in $PATH 2750342175Scydo 2751342175Scy IFS=$as_save_IFS 2752342175Scy test -z "$as_dir" && as_dir=. 2753342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 2754342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2755342175Scy ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2756342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2757342175Scy break 2 2758342175Scy fi 2759342175Scydone 2760342175Scy done 2761342175ScyIFS=$as_save_IFS 2762342175Scy 2763342175Scyfi 2764342175Scyfi 2765342175ScyCC=$ac_cv_prog_CC 2766342175Scyif test -n "$CC"; then 2767342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2768342175Scy$as_echo "$CC" >&6; } 2769342175Scyelse 2770342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2771342175Scy$as_echo "no" >&6; } 2772342175Scyfi 2773342175Scy 2774342175Scy 2775342175Scy test -n "$CC" && break 2776342175Scy done 2777342175Scyfi 2778342175Scyif test -z "$CC"; then 2779342175Scy ac_ct_CC=$CC 2780342175Scy for ac_prog in cl.exe 2781342175Scydo 2782342175Scy # Extract the first word of "$ac_prog", so it can be a program name with args. 2783342175Scyset dummy $ac_prog; ac_word=$2 2784342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2785342175Scy$as_echo_n "checking for $ac_word... " >&6; } 2786342175Scyif ${ac_cv_prog_ac_ct_CC+:} false; then : 2787342175Scy $as_echo_n "(cached) " >&6 2788342175Scyelse 2789342175Scy if test -n "$ac_ct_CC"; then 2790342175Scy ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2791342175Scyelse 2792342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793342175Scyfor as_dir in $PATH 2794342175Scydo 2795342175Scy IFS=$as_save_IFS 2796342175Scy test -z "$as_dir" && as_dir=. 2797342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 2798342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2799342175Scy ac_cv_prog_ac_ct_CC="$ac_prog" 2800342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2801342175Scy break 2 2802342175Scy fi 2803342175Scydone 2804342175Scy done 2805342175ScyIFS=$as_save_IFS 2806342175Scy 2807342175Scyfi 2808342175Scyfi 2809342175Scyac_ct_CC=$ac_cv_prog_ac_ct_CC 2810342175Scyif test -n "$ac_ct_CC"; then 2811342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2812342175Scy$as_echo "$ac_ct_CC" >&6; } 2813342175Scyelse 2814342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2815342175Scy$as_echo "no" >&6; } 2816342175Scyfi 2817342175Scy 2818342175Scy 2819342175Scy test -n "$ac_ct_CC" && break 2820342175Scydone 2821342175Scy 2822342175Scy if test "x$ac_ct_CC" = x; then 2823342175Scy CC="" 2824342175Scy else 2825342175Scy case $cross_compiling:$ac_tool_warned in 2826342175Scyyes:) 2827342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2828342175Scy$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2829342175Scyac_tool_warned=yes ;; 2830342175Scyesac 2831342175Scy CC=$ac_ct_CC 2832342175Scy fi 2833342175Scyfi 2834342175Scy 2835342175Scyfi 2836342175Scy 2837342175Scy 2838342175Scytest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2839342175Scy$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2840342175Scyas_fn_error $? "no acceptable C compiler found in \$PATH 2841342175ScySee \`config.log' for more details" "$LINENO" 5; } 2842342175Scy 2843342175Scy# Provide some information about the compiler. 2844342175Scy$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2845342175Scyset X $ac_compile 2846342175Scyac_compiler=$2 2847342175Scyfor ac_option in --version -v -V -qversion; do 2848342175Scy { { ac_try="$ac_compiler $ac_option >&5" 2849342175Scycase "(($ac_try" in 2850342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2851342175Scy *) ac_try_echo=$ac_try;; 2852342175Scyesac 2853342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2854342175Scy$as_echo "$ac_try_echo"; } >&5 2855342175Scy (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2856342175Scy ac_status=$? 2857342175Scy if test -s conftest.err; then 2858342175Scy sed '10a\ 2859342175Scy... rest of stderr output deleted ... 2860342175Scy 10q' conftest.err >conftest.er1 2861342175Scy cat conftest.er1 >&5 2862342175Scy fi 2863342175Scy rm -f conftest.er1 conftest.err 2864342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2865342175Scy test $ac_status = 0; } 2866342175Scydone 2867342175Scy 2868342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 2869342175Scy/* end confdefs.h. */ 2870342175Scy 2871342175Scyint 2872342175Scymain () 2873342175Scy{ 2874342175Scy 2875342175Scy ; 2876342175Scy return 0; 2877342175Scy} 2878342175Scy_ACEOF 2879342175Scyac_clean_files_save=$ac_clean_files 2880342175Scyac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2881342175Scy# Try to create an executable without -o first, disregard a.out. 2882342175Scy# It will help us diagnose broken compilers, and finding out an intuition 2883342175Scy# of exeext. 2884342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2885342175Scy$as_echo_n "checking whether the C compiler works... " >&6; } 2886342175Scyac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2887342175Scy 2888342175Scy# The possible output files: 2889342175Scyac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2890342175Scy 2891342175Scyac_rmfiles= 2892342175Scyfor ac_file in $ac_files 2893342175Scydo 2894342175Scy case $ac_file in 2895342175Scy *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2896342175Scy * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2897342175Scy esac 2898342175Scydone 2899342175Scyrm -f $ac_rmfiles 2900342175Scy 2901342175Scyif { { ac_try="$ac_link_default" 2902342175Scycase "(($ac_try" in 2903342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2904342175Scy *) ac_try_echo=$ac_try;; 2905342175Scyesac 2906342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2907342175Scy$as_echo "$ac_try_echo"; } >&5 2908342175Scy (eval "$ac_link_default") 2>&5 2909342175Scy ac_status=$? 2910342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2911342175Scy test $ac_status = 0; }; then : 2912342175Scy # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2913342175Scy# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2914342175Scy# in a Makefile. We should not override ac_cv_exeext if it was cached, 2915342175Scy# so that the user can short-circuit this test for compilers unknown to 2916342175Scy# Autoconf. 2917342175Scyfor ac_file in $ac_files '' 2918342175Scydo 2919342175Scy test -f "$ac_file" || continue 2920342175Scy case $ac_file in 2921342175Scy *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2922342175Scy ;; 2923342175Scy [ab].out ) 2924342175Scy # We found the default executable, but exeext='' is most 2925342175Scy # certainly right. 2926342175Scy break;; 2927342175Scy *.* ) 2928342175Scy if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2929342175Scy then :; else 2930342175Scy ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2931342175Scy fi 2932342175Scy # We set ac_cv_exeext here because the later test for it is not 2933342175Scy # safe: cross compilers may not add the suffix if given an `-o' 2934342175Scy # argument, so we may need to know it at that point already. 2935342175Scy # Even if this section looks crufty: it has the advantage of 2936342175Scy # actually working. 2937342175Scy break;; 2938342175Scy * ) 2939342175Scy break;; 2940342175Scy esac 2941342175Scydone 2942342175Scytest "$ac_cv_exeext" = no && ac_cv_exeext= 2943342175Scy 2944342175Scyelse 2945342175Scy ac_file='' 2946342175Scyfi 2947342175Scyif test -z "$ac_file"; then : 2948342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2949342175Scy$as_echo "no" >&6; } 2950342175Scy$as_echo "$as_me: failed program was:" >&5 2951342175Scysed 's/^/| /' conftest.$ac_ext >&5 2952342175Scy 2953342175Scy{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2954342175Scy$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2955342175Scyas_fn_error 77 "C compiler cannot create executables 2956342175ScySee \`config.log' for more details" "$LINENO" 5; } 2957342175Scyelse 2958342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2959342175Scy$as_echo "yes" >&6; } 2960342175Scyfi 2961342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2962342175Scy$as_echo_n "checking for C compiler default output file name... " >&6; } 2963342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2964342175Scy$as_echo "$ac_file" >&6; } 2965342175Scyac_exeext=$ac_cv_exeext 2966342175Scy 2967342175Scyrm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2968342175Scyac_clean_files=$ac_clean_files_save 2969342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2970342175Scy$as_echo_n "checking for suffix of executables... " >&6; } 2971342175Scyif { { ac_try="$ac_link" 2972342175Scycase "(($ac_try" in 2973342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2974342175Scy *) ac_try_echo=$ac_try;; 2975342175Scyesac 2976342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2977342175Scy$as_echo "$ac_try_echo"; } >&5 2978342175Scy (eval "$ac_link") 2>&5 2979342175Scy ac_status=$? 2980342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2981342175Scy test $ac_status = 0; }; then : 2982342175Scy # If both `conftest.exe' and `conftest' are `present' (well, observable) 2983342175Scy# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2984342175Scy# work properly (i.e., refer to `conftest.exe'), while it won't with 2985342175Scy# `rm'. 2986342175Scyfor ac_file in conftest.exe conftest conftest.*; do 2987342175Scy test -f "$ac_file" || continue 2988342175Scy case $ac_file in 2989342175Scy *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2990342175Scy *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2991342175Scy break;; 2992342175Scy * ) break;; 2993342175Scy esac 2994342175Scydone 2995342175Scyelse 2996342175Scy { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2997342175Scy$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2998342175Scyas_fn_error $? "cannot compute suffix of executables: cannot compile and link 2999342175ScySee \`config.log' for more details" "$LINENO" 5; } 3000342175Scyfi 3001342175Scyrm -f conftest conftest$ac_cv_exeext 3002342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3003342175Scy$as_echo "$ac_cv_exeext" >&6; } 3004342175Scy 3005342175Scyrm -f conftest.$ac_ext 3006342175ScyEXEEXT=$ac_cv_exeext 3007342175Scyac_exeext=$EXEEXT 3008342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 3009342175Scy/* end confdefs.h. */ 3010342175Scy#include <stdio.h> 3011342175Scyint 3012342175Scymain () 3013342175Scy{ 3014342175ScyFILE *f = fopen ("conftest.out", "w"); 3015342175Scy return ferror (f) || fclose (f) != 0; 3016342175Scy 3017342175Scy ; 3018342175Scy return 0; 3019342175Scy} 3020342175Scy_ACEOF 3021342175Scyac_clean_files="$ac_clean_files conftest.out" 3022342175Scy# Check that the compiler produces executables we can run. If not, either 3023342175Scy# the compiler is broken, or we cross compile. 3024342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3025342175Scy$as_echo_n "checking whether we are cross compiling... " >&6; } 3026342175Scyif test "$cross_compiling" != yes; then 3027342175Scy { { ac_try="$ac_link" 3028342175Scycase "(($ac_try" in 3029342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3030342175Scy *) ac_try_echo=$ac_try;; 3031342175Scyesac 3032342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3033342175Scy$as_echo "$ac_try_echo"; } >&5 3034342175Scy (eval "$ac_link") 2>&5 3035342175Scy ac_status=$? 3036342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3037342175Scy test $ac_status = 0; } 3038342175Scy if { ac_try='./conftest$ac_cv_exeext' 3039342175Scy { { case "(($ac_try" in 3040342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3041342175Scy *) ac_try_echo=$ac_try;; 3042342175Scyesac 3043342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3044342175Scy$as_echo "$ac_try_echo"; } >&5 3045342175Scy (eval "$ac_try") 2>&5 3046342175Scy ac_status=$? 3047342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3048342175Scy test $ac_status = 0; }; }; then 3049342175Scy cross_compiling=no 3050342175Scy else 3051342175Scy if test "$cross_compiling" = maybe; then 3052342175Scy cross_compiling=yes 3053342175Scy else 3054342175Scy { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3055342175Scy$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3056342175Scyas_fn_error $? "cannot run C compiled programs. 3057342175ScyIf you meant to cross compile, use \`--host'. 3058342175ScySee \`config.log' for more details" "$LINENO" 5; } 3059342175Scy fi 3060342175Scy fi 3061342175Scyfi 3062342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3063342175Scy$as_echo "$cross_compiling" >&6; } 3064342175Scy 3065342175Scyrm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3066342175Scyac_clean_files=$ac_clean_files_save 3067342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3068342175Scy$as_echo_n "checking for suffix of object files... " >&6; } 3069342175Scyif ${ac_cv_objext+:} false; then : 3070342175Scy $as_echo_n "(cached) " >&6 3071342175Scyelse 3072342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3073342175Scy/* end confdefs.h. */ 3074342175Scy 3075342175Scyint 3076342175Scymain () 3077342175Scy{ 3078342175Scy 3079342175Scy ; 3080342175Scy return 0; 3081342175Scy} 3082342175Scy_ACEOF 3083342175Scyrm -f conftest.o conftest.obj 3084342175Scyif { { ac_try="$ac_compile" 3085342175Scycase "(($ac_try" in 3086342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087342175Scy *) ac_try_echo=$ac_try;; 3088342175Scyesac 3089342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3090342175Scy$as_echo "$ac_try_echo"; } >&5 3091342175Scy (eval "$ac_compile") 2>&5 3092342175Scy ac_status=$? 3093342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3094342175Scy test $ac_status = 0; }; then : 3095342175Scy for ac_file in conftest.o conftest.obj conftest.*; do 3096342175Scy test -f "$ac_file" || continue; 3097342175Scy case $ac_file in 3098342175Scy *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3099342175Scy *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3100342175Scy break;; 3101342175Scy esac 3102342175Scydone 3103342175Scyelse 3104342175Scy $as_echo "$as_me: failed program was:" >&5 3105342175Scysed 's/^/| /' conftest.$ac_ext >&5 3106342175Scy 3107342175Scy{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3108342175Scy$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3109342175Scyas_fn_error $? "cannot compute suffix of object files: cannot compile 3110342175ScySee \`config.log' for more details" "$LINENO" 5; } 3111342175Scyfi 3112342175Scyrm -f conftest.$ac_cv_objext conftest.$ac_ext 3113342175Scyfi 3114342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3115342175Scy$as_echo "$ac_cv_objext" >&6; } 3116342175ScyOBJEXT=$ac_cv_objext 3117342175Scyac_objext=$OBJEXT 3118342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3119342175Scy$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3120342175Scyif ${ac_cv_c_compiler_gnu+:} false; then : 3121342175Scy $as_echo_n "(cached) " >&6 3122342175Scyelse 3123342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3124342175Scy/* end confdefs.h. */ 3125342175Scy 3126342175Scyint 3127342175Scymain () 3128342175Scy{ 3129342175Scy#ifndef __GNUC__ 3130342175Scy choke me 3131342175Scy#endif 3132342175Scy 3133342175Scy ; 3134342175Scy return 0; 3135342175Scy} 3136342175Scy_ACEOF 3137342175Scyif ac_fn_c_try_compile "$LINENO"; then : 3138342175Scy ac_compiler_gnu=yes 3139342175Scyelse 3140342175Scy ac_compiler_gnu=no 3141342175Scyfi 3142342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3143342175Scyac_cv_c_compiler_gnu=$ac_compiler_gnu 3144342175Scy 3145342175Scyfi 3146342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3147342175Scy$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3148342175Scyif test $ac_compiler_gnu = yes; then 3149342175Scy GCC=yes 3150342175Scyelse 3151342175Scy GCC= 3152342175Scyfi 3153342175Scyac_test_CFLAGS=${CFLAGS+set} 3154342175Scyac_save_CFLAGS=$CFLAGS 3155342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3156342175Scy$as_echo_n "checking whether $CC accepts -g... " >&6; } 3157342175Scyif ${ac_cv_prog_cc_g+:} false; then : 3158342175Scy $as_echo_n "(cached) " >&6 3159342175Scyelse 3160342175Scy ac_save_c_werror_flag=$ac_c_werror_flag 3161342175Scy ac_c_werror_flag=yes 3162342175Scy ac_cv_prog_cc_g=no 3163342175Scy CFLAGS="-g" 3164342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3165342175Scy/* end confdefs.h. */ 3166342175Scy 3167342175Scyint 3168342175Scymain () 3169342175Scy{ 3170342175Scy 3171342175Scy ; 3172342175Scy return 0; 3173342175Scy} 3174342175Scy_ACEOF 3175342175Scyif ac_fn_c_try_compile "$LINENO"; then : 3176342175Scy ac_cv_prog_cc_g=yes 3177342175Scyelse 3178342175Scy CFLAGS="" 3179342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3180342175Scy/* end confdefs.h. */ 3181342175Scy 3182342175Scyint 3183342175Scymain () 3184342175Scy{ 3185342175Scy 3186342175Scy ; 3187342175Scy return 0; 3188342175Scy} 3189342175Scy_ACEOF 3190342175Scyif ac_fn_c_try_compile "$LINENO"; then : 3191342175Scy 3192342175Scyelse 3193342175Scy ac_c_werror_flag=$ac_save_c_werror_flag 3194342175Scy CFLAGS="-g" 3195342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3196342175Scy/* end confdefs.h. */ 3197342175Scy 3198342175Scyint 3199342175Scymain () 3200342175Scy{ 3201342175Scy 3202342175Scy ; 3203342175Scy return 0; 3204342175Scy} 3205342175Scy_ACEOF 3206342175Scyif ac_fn_c_try_compile "$LINENO"; then : 3207342175Scy ac_cv_prog_cc_g=yes 3208342175Scyfi 3209342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3210342175Scyfi 3211342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3212342175Scyfi 3213342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3214342175Scy ac_c_werror_flag=$ac_save_c_werror_flag 3215342175Scyfi 3216342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3217342175Scy$as_echo "$ac_cv_prog_cc_g" >&6; } 3218342175Scyif test "$ac_test_CFLAGS" = set; then 3219342175Scy CFLAGS=$ac_save_CFLAGS 3220342175Scyelif test $ac_cv_prog_cc_g = yes; then 3221342175Scy if test "$GCC" = yes; then 3222342175Scy CFLAGS="-g -O2" 3223342175Scy else 3224342175Scy CFLAGS="-g" 3225342175Scy fi 3226342175Scyelse 3227342175Scy if test "$GCC" = yes; then 3228342175Scy CFLAGS="-O2" 3229342175Scy else 3230342175Scy CFLAGS= 3231342175Scy fi 3232342175Scyfi 3233342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3234342175Scy$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3235342175Scyif ${ac_cv_prog_cc_c89+:} false; then : 3236342175Scy $as_echo_n "(cached) " >&6 3237342175Scyelse 3238342175Scy ac_cv_prog_cc_c89=no 3239342175Scyac_save_CC=$CC 3240342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 3241342175Scy/* end confdefs.h. */ 3242342175Scy#include <stdarg.h> 3243342175Scy#include <stdio.h> 3244342175Scystruct stat; 3245342175Scy/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3246342175Scystruct buf { int x; }; 3247342175ScyFILE * (*rcsopen) (struct buf *, struct stat *, int); 3248342175Scystatic char *e (p, i) 3249342175Scy char **p; 3250342175Scy int i; 3251342175Scy{ 3252342175Scy return p[i]; 3253342175Scy} 3254342175Scystatic char *f (char * (*g) (char **, int), char **p, ...) 3255342175Scy{ 3256342175Scy char *s; 3257342175Scy va_list v; 3258342175Scy va_start (v,p); 3259342175Scy s = g (p, va_arg (v,int)); 3260342175Scy va_end (v); 3261342175Scy return s; 3262342175Scy} 3263342175Scy 3264342175Scy/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3265342175Scy function prototypes and stuff, but not '\xHH' hex character constants. 3266342175Scy These don't provoke an error unfortunately, instead are silently treated 3267342175Scy as 'x'. The following induces an error, until -std is added to get 3268342175Scy proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3269342175Scy array size at least. It's necessary to write '\x00'==0 to get something 3270342175Scy that's true only with -std. */ 3271342175Scyint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3272342175Scy 3273342175Scy/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3274342175Scy inside strings and character constants. */ 3275342175Scy#define FOO(x) 'x' 3276342175Scyint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3277342175Scy 3278342175Scyint test (int i, double x); 3279342175Scystruct s1 {int (*f) (int a);}; 3280342175Scystruct s2 {int (*f) (double a);}; 3281342175Scyint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3282342175Scyint argc; 3283342175Scychar **argv; 3284342175Scyint 3285342175Scymain () 3286342175Scy{ 3287342175Scyreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3288342175Scy ; 3289342175Scy return 0; 3290342175Scy} 3291342175Scy_ACEOF 3292342175Scyfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3293342175Scy -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3294342175Scydo 3295342175Scy CC="$ac_save_CC $ac_arg" 3296342175Scy if ac_fn_c_try_compile "$LINENO"; then : 3297342175Scy ac_cv_prog_cc_c89=$ac_arg 3298342175Scyfi 3299342175Scyrm -f core conftest.err conftest.$ac_objext 3300342175Scy test "x$ac_cv_prog_cc_c89" != "xno" && break 3301342175Scydone 3302342175Scyrm -f conftest.$ac_ext 3303342175ScyCC=$ac_save_CC 3304342175Scy 3305342175Scyfi 3306342175Scy# AC_CACHE_VAL 3307342175Scycase "x$ac_cv_prog_cc_c89" in 3308342175Scy x) 3309342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3310342175Scy$as_echo "none needed" >&6; } ;; 3311342175Scy xno) 3312342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3313342175Scy$as_echo "unsupported" >&6; } ;; 3314342175Scy *) 3315342175Scy CC="$CC $ac_cv_prog_cc_c89" 3316342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3317342175Scy$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3318342175Scyesac 3319342175Scyif test "x$ac_cv_prog_cc_c89" != xno; then : 3320342175Scy 3321342175Scyfi 3322342175Scy 3323342175Scyac_ext=c 3324342175Scyac_cpp='$CPP $CPPFLAGS' 3325342175Scyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3326342175Scyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3327342175Scyac_compiler_gnu=$ac_cv_c_compiler_gnu 3328342175Scy 3329342175Scy 3330342175Scy 3331342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 3332342175Scy$as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; } 3333342175Scy 3334342175Scy if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 3335342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5 3336342175Scy$as_echo "loading" >&6; } 3337342175Scy . "${TCL_BIN_DIR}/tclConfig.sh" 3338342175Scy else 3339342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 3340342175Scy$as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 3341342175Scy fi 3342342175Scy 3343342175Scy # eval is required to do the TCL_DBGX substitution 3344342175Scy eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 3345342175Scy eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 3346342175Scy 3347342175Scy # If the TCL_BIN_DIR is the build directory (not the install directory), 3348342175Scy # then set the common variable name to the value of the build variables. 3349342175Scy # For example, the variable TCL_LIB_SPEC will be set to the value 3350342175Scy # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 3351342175Scy # instead of TCL_BUILD_LIB_SPEC since it will work with both an 3352342175Scy # installed and uninstalled version of Tcl. 3353342175Scy if test -f "${TCL_BIN_DIR}/Makefile" ; then 3354342175Scy TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 3355342175Scy TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 3356342175Scy TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 3357342175Scy elif test "`uname -s`" = "Darwin"; then 3358342175Scy # If Tcl was built as a framework, attempt to use the libraries 3359342175Scy # from the framework at the given location so that linking works 3360342175Scy # against Tcl.framework installed in an arbitrary location. 3361342175Scy case ${TCL_DEFS} in 3362342175Scy *TCL_FRAMEWORK*) 3363342175Scy if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 3364342175Scy for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 3365342175Scy "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 3366342175Scy if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 3367342175Scy TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 3368342175Scy break 3369342175Scy fi 3370342175Scy done 3371342175Scy fi 3372342175Scy if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 3373342175Scy TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 3374342175Scy TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 3375342175Scy fi 3376342175Scy ;; 3377342175Scy esac 3378342175Scy fi 3379342175Scy 3380342175Scy # eval is required to do the TCL_DBGX substitution 3381342175Scy eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 3382342175Scy eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 3383342175Scy eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 3384342175Scy eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 3385342175Scy 3386342175Scy 3387342175Scy 3388342175Scy 3389342175Scy 3390342175Scy 3391342175Scy 3392342175Scy 3393342175Scy 3394342175Scy 3395342175Scy 3396342175Scy 3397342175Scy 3398342175Scy 3399342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking platform" >&5 3400342175Scy$as_echo_n "checking platform... " >&6; } 3401342175Scy hold_cc=$CC; CC="$TCL_CC" 3402342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403342175Scy/* end confdefs.h. */ 3404342175Scy 3405342175Scyint 3406342175Scymain () 3407342175Scy{ 3408342175Scy 3409342175Scy #ifdef _WIN32 3410342175Scy #error win32 3411342175Scy #endif 3412342175Scy 3413342175Scy ; 3414342175Scy return 0; 3415342175Scy} 3416342175Scy_ACEOF 3417342175Scyif ac_fn_c_try_compile "$LINENO"; then : 3418342175Scy TEA_PLATFORM="unix" 3419342175Scyelse 3420342175Scy TEA_PLATFORM="windows" 3421342175Scy 3422342175Scyfi 3423342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3424342175Scy CC=$hold_cc 3425342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEA_PLATFORM" >&5 3426342175Scy$as_echo "$TEA_PLATFORM" >&6; } 3427342175Scy 3428342175Scy # The BUILD_$pkg is to define the correct extern storage class 3429342175Scy # handling when making this package 3430342175Scy 3431342175Scycat >>confdefs.h <<_ACEOF 3432342175Scy#define BUILD_${PACKAGE_NAME} /**/ 3433342175Scy_ACEOF 3434342175Scy 3435342175Scy # Do this here as we have fully defined TEA_PLATFORM now 3436342175Scy if test "${TEA_PLATFORM}" = "windows" ; then 3437342175Scy EXEEXT=".exe" 3438342175Scy CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 3439342175Scy fi 3440342175Scy 3441342175Scy # TEA specific: 3442342175Scy 3443342175Scy 3444342175Scy 3445342175Scy 3446342175Scy 3447342175Scy 3448342175Scy 3449342175Scy 3450342175Scy#-------------------------------------------------------------------- 3451342175Scy# Load the tkConfig.sh file if necessary (Tk extension) 3452342175Scy#-------------------------------------------------------------------- 3453342175Scy 3454342175Scy#TEA_PATH_TKCONFIG 3455342175Scy#TEA_LOAD_TKCONFIG 3456342175Scy 3457342175Scy#----------------------------------------------------------------------- 3458342175Scy# Handle the --prefix=... option by defaulting to what Tcl gave. 3459342175Scy# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 3460342175Scy#----------------------------------------------------------------------- 3461342175Scy 3462342175Scy 3463342175Scy if test "${prefix}" = "NONE"; then 3464342175Scy prefix_default=yes 3465342175Scy if test x"${TCL_PREFIX}" != x; then 3466342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 3467342175Scy$as_echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 3468342175Scy prefix=${TCL_PREFIX} 3469342175Scy else 3470342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: --prefix defaulting to /usr/local" >&5 3471342175Scy$as_echo "$as_me: --prefix defaulting to /usr/local" >&6;} 3472342175Scy prefix=/usr/local 3473342175Scy fi 3474342175Scy fi 3475342175Scy if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 3476342175Scy -o x"${exec_prefix_default}" = x"yes" ; then 3477342175Scy if test x"${TCL_EXEC_PREFIX}" != x; then 3478342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 3479342175Scy$as_echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 3480342175Scy exec_prefix=${TCL_EXEC_PREFIX} 3481342175Scy else 3482342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: --exec-prefix defaulting to ${prefix}" >&5 3483342175Scy$as_echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 3484342175Scy exec_prefix=$prefix 3485342175Scy fi 3486342175Scy fi 3487342175Scy 3488342175Scy 3489342175Scy#----------------------------------------------------------------------- 3490342175Scy# Standard compiler checks. 3491342175Scy# This sets up CC by using the CC env var, or looks for gcc otherwise. 3492342175Scy# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 3493342175Scy# the basic setup necessary to compile executables. 3494342175Scy#----------------------------------------------------------------------- 3495342175Scy 3496342175Scy 3497342175Scy # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 3498342175Scy # in this macro, they need to go into TEA_SETUP_COMPILER instead. 3499342175Scy 3500342175Scy ac_ext=c 3501342175Scyac_cpp='$CPP $CPPFLAGS' 3502342175Scyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3503342175Scyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3504342175Scyac_compiler_gnu=$ac_cv_c_compiler_gnu 3505342175Scyif test -n "$ac_tool_prefix"; then 3506342175Scy # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3507342175Scyset dummy ${ac_tool_prefix}gcc; ac_word=$2 3508342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3509342175Scy$as_echo_n "checking for $ac_word... " >&6; } 3510342175Scyif ${ac_cv_prog_CC+:} false; then : 3511342175Scy $as_echo_n "(cached) " >&6 3512342175Scyelse 3513342175Scy if test -n "$CC"; then 3514342175Scy ac_cv_prog_CC="$CC" # Let the user override the test. 3515342175Scyelse 3516342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3517342175Scyfor as_dir in $PATH 3518342175Scydo 3519342175Scy IFS=$as_save_IFS 3520342175Scy test -z "$as_dir" && as_dir=. 3521342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 3522342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3523342175Scy ac_cv_prog_CC="${ac_tool_prefix}gcc" 3524342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3525342175Scy break 2 3526342175Scy fi 3527342175Scydone 3528342175Scy done 3529342175ScyIFS=$as_save_IFS 3530342175Scy 3531342175Scyfi 3532342175Scyfi 3533342175ScyCC=$ac_cv_prog_CC 3534342175Scyif test -n "$CC"; then 3535342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3536342175Scy$as_echo "$CC" >&6; } 3537342175Scyelse 3538342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3539342175Scy$as_echo "no" >&6; } 3540342175Scyfi 3541342175Scy 3542342175Scy 3543342175Scyfi 3544342175Scyif test -z "$ac_cv_prog_CC"; then 3545342175Scy ac_ct_CC=$CC 3546342175Scy # Extract the first word of "gcc", so it can be a program name with args. 3547342175Scyset dummy gcc; ac_word=$2 3548342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3549342175Scy$as_echo_n "checking for $ac_word... " >&6; } 3550342175Scyif ${ac_cv_prog_ac_ct_CC+:} false; then : 3551342175Scy $as_echo_n "(cached) " >&6 3552342175Scyelse 3553342175Scy if test -n "$ac_ct_CC"; then 3554342175Scy ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3555342175Scyelse 3556342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3557342175Scyfor as_dir in $PATH 3558342175Scydo 3559342175Scy IFS=$as_save_IFS 3560342175Scy test -z "$as_dir" && as_dir=. 3561342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 3562342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3563342175Scy ac_cv_prog_ac_ct_CC="gcc" 3564342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3565342175Scy break 2 3566342175Scy fi 3567342175Scydone 3568342175Scy done 3569342175ScyIFS=$as_save_IFS 3570342175Scy 3571342175Scyfi 3572342175Scyfi 3573342175Scyac_ct_CC=$ac_cv_prog_ac_ct_CC 3574342175Scyif test -n "$ac_ct_CC"; then 3575342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3576342175Scy$as_echo "$ac_ct_CC" >&6; } 3577342175Scyelse 3578342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3579342175Scy$as_echo "no" >&6; } 3580342175Scyfi 3581342175Scy 3582342175Scy if test "x$ac_ct_CC" = x; then 3583342175Scy CC="" 3584342175Scy else 3585342175Scy case $cross_compiling:$ac_tool_warned in 3586342175Scyyes:) 3587342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3588342175Scy$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3589342175Scyac_tool_warned=yes ;; 3590342175Scyesac 3591342175Scy CC=$ac_ct_CC 3592342175Scy fi 3593342175Scyelse 3594342175Scy CC="$ac_cv_prog_CC" 3595342175Scyfi 3596342175Scy 3597342175Scyif test -z "$CC"; then 3598342175Scy if test -n "$ac_tool_prefix"; then 3599342175Scy # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3600342175Scyset dummy ${ac_tool_prefix}cc; ac_word=$2 3601342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3602342175Scy$as_echo_n "checking for $ac_word... " >&6; } 3603342175Scyif ${ac_cv_prog_CC+:} false; then : 3604342175Scy $as_echo_n "(cached) " >&6 3605342175Scyelse 3606342175Scy if test -n "$CC"; then 3607342175Scy ac_cv_prog_CC="$CC" # Let the user override the test. 3608342175Scyelse 3609342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3610342175Scyfor as_dir in $PATH 3611342175Scydo 3612342175Scy IFS=$as_save_IFS 3613342175Scy test -z "$as_dir" && as_dir=. 3614342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 3615342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3616342175Scy ac_cv_prog_CC="${ac_tool_prefix}cc" 3617342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3618342175Scy break 2 3619342175Scy fi 3620342175Scydone 3621342175Scy done 3622342175ScyIFS=$as_save_IFS 3623342175Scy 3624342175Scyfi 3625342175Scyfi 3626342175ScyCC=$ac_cv_prog_CC 3627342175Scyif test -n "$CC"; then 3628342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3629342175Scy$as_echo "$CC" >&6; } 3630342175Scyelse 3631342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3632342175Scy$as_echo "no" >&6; } 3633342175Scyfi 3634342175Scy 3635342175Scy 3636342175Scy fi 3637342175Scyfi 3638342175Scyif test -z "$CC"; then 3639342175Scy # Extract the first word of "cc", so it can be a program name with args. 3640342175Scyset dummy cc; ac_word=$2 3641342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3642342175Scy$as_echo_n "checking for $ac_word... " >&6; } 3643342175Scyif ${ac_cv_prog_CC+:} false; then : 3644342175Scy $as_echo_n "(cached) " >&6 3645342175Scyelse 3646342175Scy if test -n "$CC"; then 3647342175Scy ac_cv_prog_CC="$CC" # Let the user override the test. 3648342175Scyelse 3649342175Scy ac_prog_rejected=no 3650342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3651342175Scyfor as_dir in $PATH 3652342175Scydo 3653342175Scy IFS=$as_save_IFS 3654342175Scy test -z "$as_dir" && as_dir=. 3655342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 3656342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3657342175Scy if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3658342175Scy ac_prog_rejected=yes 3659342175Scy continue 3660342175Scy fi 3661342175Scy ac_cv_prog_CC="cc" 3662342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3663342175Scy break 2 3664342175Scy fi 3665342175Scydone 3666342175Scy done 3667342175ScyIFS=$as_save_IFS 3668342175Scy 3669342175Scyif test $ac_prog_rejected = yes; then 3670342175Scy # We found a bogon in the path, so make sure we never use it. 3671342175Scy set dummy $ac_cv_prog_CC 3672342175Scy shift 3673342175Scy if test $# != 0; then 3674342175Scy # We chose a different compiler from the bogus one. 3675342175Scy # However, it has the same basename, so the bogon will be chosen 3676342175Scy # first if we set CC to just the basename; use the full file name. 3677342175Scy shift 3678342175Scy ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3679342175Scy fi 3680342175Scyfi 3681342175Scyfi 3682342175Scyfi 3683342175ScyCC=$ac_cv_prog_CC 3684342175Scyif test -n "$CC"; then 3685342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3686342175Scy$as_echo "$CC" >&6; } 3687342175Scyelse 3688342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3689342175Scy$as_echo "no" >&6; } 3690342175Scyfi 3691342175Scy 3692342175Scy 3693342175Scyfi 3694342175Scyif test -z "$CC"; then 3695342175Scy if test -n "$ac_tool_prefix"; then 3696342175Scy for ac_prog in cl.exe 3697342175Scy do 3698342175Scy # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3699342175Scyset dummy $ac_tool_prefix$ac_prog; ac_word=$2 3700342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3701342175Scy$as_echo_n "checking for $ac_word... " >&6; } 3702342175Scyif ${ac_cv_prog_CC+:} false; then : 3703342175Scy $as_echo_n "(cached) " >&6 3704342175Scyelse 3705342175Scy if test -n "$CC"; then 3706342175Scy ac_cv_prog_CC="$CC" # Let the user override the test. 3707342175Scyelse 3708342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3709342175Scyfor as_dir in $PATH 3710342175Scydo 3711342175Scy IFS=$as_save_IFS 3712342175Scy test -z "$as_dir" && as_dir=. 3713342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 3714342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3715342175Scy ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3716342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3717342175Scy break 2 3718342175Scy fi 3719342175Scydone 3720342175Scy done 3721342175ScyIFS=$as_save_IFS 3722342175Scy 3723342175Scyfi 3724342175Scyfi 3725342175ScyCC=$ac_cv_prog_CC 3726342175Scyif test -n "$CC"; then 3727342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3728342175Scy$as_echo "$CC" >&6; } 3729342175Scyelse 3730342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3731342175Scy$as_echo "no" >&6; } 3732342175Scyfi 3733342175Scy 3734342175Scy 3735342175Scy test -n "$CC" && break 3736342175Scy done 3737342175Scyfi 3738342175Scyif test -z "$CC"; then 3739342175Scy ac_ct_CC=$CC 3740342175Scy for ac_prog in cl.exe 3741342175Scydo 3742342175Scy # Extract the first word of "$ac_prog", so it can be a program name with args. 3743342175Scyset dummy $ac_prog; ac_word=$2 3744342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3745342175Scy$as_echo_n "checking for $ac_word... " >&6; } 3746342175Scyif ${ac_cv_prog_ac_ct_CC+:} false; then : 3747342175Scy $as_echo_n "(cached) " >&6 3748342175Scyelse 3749342175Scy if test -n "$ac_ct_CC"; then 3750342175Scy ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3751342175Scyelse 3752342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3753342175Scyfor as_dir in $PATH 3754342175Scydo 3755342175Scy IFS=$as_save_IFS 3756342175Scy test -z "$as_dir" && as_dir=. 3757342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 3758342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3759342175Scy ac_cv_prog_ac_ct_CC="$ac_prog" 3760342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3761342175Scy break 2 3762342175Scy fi 3763342175Scydone 3764342175Scy done 3765342175ScyIFS=$as_save_IFS 3766342175Scy 3767342175Scyfi 3768342175Scyfi 3769342175Scyac_ct_CC=$ac_cv_prog_ac_ct_CC 3770342175Scyif test -n "$ac_ct_CC"; then 3771342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3772342175Scy$as_echo "$ac_ct_CC" >&6; } 3773342175Scyelse 3774342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3775342175Scy$as_echo "no" >&6; } 3776342175Scyfi 3777342175Scy 3778342175Scy 3779342175Scy test -n "$ac_ct_CC" && break 3780342175Scydone 3781342175Scy 3782342175Scy if test "x$ac_ct_CC" = x; then 3783342175Scy CC="" 3784342175Scy else 3785342175Scy case $cross_compiling:$ac_tool_warned in 3786342175Scyyes:) 3787342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3788342175Scy$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3789342175Scyac_tool_warned=yes ;; 3790342175Scyesac 3791342175Scy CC=$ac_ct_CC 3792342175Scy fi 3793342175Scyfi 3794342175Scy 3795342175Scyfi 3796342175Scy 3797342175Scy 3798342175Scytest -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3799342175Scy$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3800342175Scyas_fn_error $? "no acceptable C compiler found in \$PATH 3801342175ScySee \`config.log' for more details" "$LINENO" 5; } 3802342175Scy 3803342175Scy# Provide some information about the compiler. 3804342175Scy$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3805342175Scyset X $ac_compile 3806342175Scyac_compiler=$2 3807342175Scyfor ac_option in --version -v -V -qversion; do 3808342175Scy { { ac_try="$ac_compiler $ac_option >&5" 3809342175Scycase "(($ac_try" in 3810342175Scy *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3811342175Scy *) ac_try_echo=$ac_try;; 3812342175Scyesac 3813342175Scyeval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3814342175Scy$as_echo "$ac_try_echo"; } >&5 3815342175Scy (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3816342175Scy ac_status=$? 3817342175Scy if test -s conftest.err; then 3818342175Scy sed '10a\ 3819342175Scy... rest of stderr output deleted ... 3820342175Scy 10q' conftest.err >conftest.er1 3821342175Scy cat conftest.er1 >&5 3822342175Scy fi 3823342175Scy rm -f conftest.er1 conftest.err 3824342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3825342175Scy test $ac_status = 0; } 3826342175Scydone 3827342175Scy 3828342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3829342175Scy$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3830342175Scyif ${ac_cv_c_compiler_gnu+:} false; then : 3831342175Scy $as_echo_n "(cached) " >&6 3832342175Scyelse 3833342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3834342175Scy/* end confdefs.h. */ 3835342175Scy 3836342175Scyint 3837342175Scymain () 3838342175Scy{ 3839342175Scy#ifndef __GNUC__ 3840342175Scy choke me 3841342175Scy#endif 3842342175Scy 3843342175Scy ; 3844342175Scy return 0; 3845342175Scy} 3846342175Scy_ACEOF 3847342175Scyif ac_fn_c_try_compile "$LINENO"; then : 3848342175Scy ac_compiler_gnu=yes 3849342175Scyelse 3850342175Scy ac_compiler_gnu=no 3851342175Scyfi 3852342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3853342175Scyac_cv_c_compiler_gnu=$ac_compiler_gnu 3854342175Scy 3855342175Scyfi 3856342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3857342175Scy$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3858342175Scyif test $ac_compiler_gnu = yes; then 3859342175Scy GCC=yes 3860342175Scyelse 3861342175Scy GCC= 3862342175Scyfi 3863342175Scyac_test_CFLAGS=${CFLAGS+set} 3864342175Scyac_save_CFLAGS=$CFLAGS 3865342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3866342175Scy$as_echo_n "checking whether $CC accepts -g... " >&6; } 3867342175Scyif ${ac_cv_prog_cc_g+:} false; then : 3868342175Scy $as_echo_n "(cached) " >&6 3869342175Scyelse 3870342175Scy ac_save_c_werror_flag=$ac_c_werror_flag 3871342175Scy ac_c_werror_flag=yes 3872342175Scy ac_cv_prog_cc_g=no 3873342175Scy CFLAGS="-g" 3874342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875342175Scy/* end confdefs.h. */ 3876342175Scy 3877342175Scyint 3878342175Scymain () 3879342175Scy{ 3880342175Scy 3881342175Scy ; 3882342175Scy return 0; 3883342175Scy} 3884342175Scy_ACEOF 3885342175Scyif ac_fn_c_try_compile "$LINENO"; then : 3886342175Scy ac_cv_prog_cc_g=yes 3887342175Scyelse 3888342175Scy CFLAGS="" 3889342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3890342175Scy/* end confdefs.h. */ 3891342175Scy 3892342175Scyint 3893342175Scymain () 3894342175Scy{ 3895342175Scy 3896342175Scy ; 3897342175Scy return 0; 3898342175Scy} 3899342175Scy_ACEOF 3900342175Scyif ac_fn_c_try_compile "$LINENO"; then : 3901342175Scy 3902342175Scyelse 3903342175Scy ac_c_werror_flag=$ac_save_c_werror_flag 3904342175Scy CFLAGS="-g" 3905342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3906342175Scy/* end confdefs.h. */ 3907342175Scy 3908342175Scyint 3909342175Scymain () 3910342175Scy{ 3911342175Scy 3912342175Scy ; 3913342175Scy return 0; 3914342175Scy} 3915342175Scy_ACEOF 3916342175Scyif ac_fn_c_try_compile "$LINENO"; then : 3917342175Scy ac_cv_prog_cc_g=yes 3918342175Scyfi 3919342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3920342175Scyfi 3921342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3922342175Scyfi 3923342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3924342175Scy ac_c_werror_flag=$ac_save_c_werror_flag 3925342175Scyfi 3926342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3927342175Scy$as_echo "$ac_cv_prog_cc_g" >&6; } 3928342175Scyif test "$ac_test_CFLAGS" = set; then 3929342175Scy CFLAGS=$ac_save_CFLAGS 3930342175Scyelif test $ac_cv_prog_cc_g = yes; then 3931342175Scy if test "$GCC" = yes; then 3932342175Scy CFLAGS="-g -O2" 3933342175Scy else 3934342175Scy CFLAGS="-g" 3935342175Scy fi 3936342175Scyelse 3937342175Scy if test "$GCC" = yes; then 3938342175Scy CFLAGS="-O2" 3939342175Scy else 3940342175Scy CFLAGS= 3941342175Scy fi 3942342175Scyfi 3943342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3944342175Scy$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3945342175Scyif ${ac_cv_prog_cc_c89+:} false; then : 3946342175Scy $as_echo_n "(cached) " >&6 3947342175Scyelse 3948342175Scy ac_cv_prog_cc_c89=no 3949342175Scyac_save_CC=$CC 3950342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 3951342175Scy/* end confdefs.h. */ 3952342175Scy#include <stdarg.h> 3953342175Scy#include <stdio.h> 3954342175Scystruct stat; 3955342175Scy/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3956342175Scystruct buf { int x; }; 3957342175ScyFILE * (*rcsopen) (struct buf *, struct stat *, int); 3958342175Scystatic char *e (p, i) 3959342175Scy char **p; 3960342175Scy int i; 3961342175Scy{ 3962342175Scy return p[i]; 3963342175Scy} 3964342175Scystatic char *f (char * (*g) (char **, int), char **p, ...) 3965342175Scy{ 3966342175Scy char *s; 3967342175Scy va_list v; 3968342175Scy va_start (v,p); 3969342175Scy s = g (p, va_arg (v,int)); 3970342175Scy va_end (v); 3971342175Scy return s; 3972342175Scy} 3973342175Scy 3974342175Scy/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3975342175Scy function prototypes and stuff, but not '\xHH' hex character constants. 3976342175Scy These don't provoke an error unfortunately, instead are silently treated 3977342175Scy as 'x'. The following induces an error, until -std is added to get 3978342175Scy proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3979342175Scy array size at least. It's necessary to write '\x00'==0 to get something 3980342175Scy that's true only with -std. */ 3981342175Scyint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3982342175Scy 3983342175Scy/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3984342175Scy inside strings and character constants. */ 3985342175Scy#define FOO(x) 'x' 3986342175Scyint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3987342175Scy 3988342175Scyint test (int i, double x); 3989342175Scystruct s1 {int (*f) (int a);}; 3990342175Scystruct s2 {int (*f) (double a);}; 3991342175Scyint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3992342175Scyint argc; 3993342175Scychar **argv; 3994342175Scyint 3995342175Scymain () 3996342175Scy{ 3997342175Scyreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3998342175Scy ; 3999342175Scy return 0; 4000342175Scy} 4001342175Scy_ACEOF 4002342175Scyfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4003342175Scy -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4004342175Scydo 4005342175Scy CC="$ac_save_CC $ac_arg" 4006342175Scy if ac_fn_c_try_compile "$LINENO"; then : 4007342175Scy ac_cv_prog_cc_c89=$ac_arg 4008342175Scyfi 4009342175Scyrm -f core conftest.err conftest.$ac_objext 4010342175Scy test "x$ac_cv_prog_cc_c89" != "xno" && break 4011342175Scydone 4012342175Scyrm -f conftest.$ac_ext 4013342175ScyCC=$ac_save_CC 4014342175Scy 4015342175Scyfi 4016342175Scy# AC_CACHE_VAL 4017342175Scycase "x$ac_cv_prog_cc_c89" in 4018342175Scy x) 4019342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4020342175Scy$as_echo "none needed" >&6; } ;; 4021342175Scy xno) 4022342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4023342175Scy$as_echo "unsupported" >&6; } ;; 4024342175Scy *) 4025342175Scy CC="$CC $ac_cv_prog_cc_c89" 4026342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4027342175Scy$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4028342175Scyesac 4029342175Scyif test "x$ac_cv_prog_cc_c89" != xno; then : 4030342175Scy 4031342175Scyfi 4032342175Scy 4033342175Scyac_ext=c 4034342175Scyac_cpp='$CPP $CPPFLAGS' 4035342175Scyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4036342175Scyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4037342175Scyac_compiler_gnu=$ac_cv_c_compiler_gnu 4038342175Scy 4039342175Scy ac_ext=c 4040342175Scyac_cpp='$CPP $CPPFLAGS' 4041342175Scyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4042342175Scyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4043342175Scyac_compiler_gnu=$ac_cv_c_compiler_gnu 4044342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4045342175Scy$as_echo_n "checking how to run the C preprocessor... " >&6; } 4046342175Scy# On Suns, sometimes $CPP names a directory. 4047342175Scyif test -n "$CPP" && test -d "$CPP"; then 4048342175Scy CPP= 4049342175Scyfi 4050342175Scyif test -z "$CPP"; then 4051342175Scy if ${ac_cv_prog_CPP+:} false; then : 4052342175Scy $as_echo_n "(cached) " >&6 4053342175Scyelse 4054342175Scy # Double quotes because CPP needs to be expanded 4055342175Scy for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4056342175Scy do 4057342175Scy ac_preproc_ok=false 4058342175Scyfor ac_c_preproc_warn_flag in '' yes 4059342175Scydo 4060342175Scy # Use a header file that comes with gcc, so configuring glibc 4061342175Scy # with a fresh cross-compiler works. 4062342175Scy # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4063342175Scy # <limits.h> exists even on freestanding compilers. 4064342175Scy # On the NeXT, cc -E runs the code through the compiler's parser, 4065342175Scy # not just through cpp. "Syntax error" is here to catch this case. 4066342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4067342175Scy/* end confdefs.h. */ 4068342175Scy#ifdef __STDC__ 4069342175Scy# include <limits.h> 4070342175Scy#else 4071342175Scy# include <assert.h> 4072342175Scy#endif 4073342175Scy Syntax error 4074342175Scy_ACEOF 4075342175Scyif ac_fn_c_try_cpp "$LINENO"; then : 4076342175Scy 4077342175Scyelse 4078342175Scy # Broken: fails on valid input. 4079342175Scycontinue 4080342175Scyfi 4081342175Scyrm -f conftest.err conftest.i conftest.$ac_ext 4082342175Scy 4083342175Scy # OK, works on sane cases. Now check whether nonexistent headers 4084342175Scy # can be detected and how. 4085342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4086342175Scy/* end confdefs.h. */ 4087342175Scy#include <ac_nonexistent.h> 4088342175Scy_ACEOF 4089342175Scyif ac_fn_c_try_cpp "$LINENO"; then : 4090342175Scy # Broken: success on invalid input. 4091342175Scycontinue 4092342175Scyelse 4093342175Scy # Passes both tests. 4094342175Scyac_preproc_ok=: 4095342175Scybreak 4096342175Scyfi 4097342175Scyrm -f conftest.err conftest.i conftest.$ac_ext 4098342175Scy 4099342175Scydone 4100342175Scy# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4101342175Scyrm -f conftest.i conftest.err conftest.$ac_ext 4102342175Scyif $ac_preproc_ok; then : 4103342175Scy break 4104342175Scyfi 4105342175Scy 4106342175Scy done 4107342175Scy ac_cv_prog_CPP=$CPP 4108342175Scy 4109342175Scyfi 4110342175Scy CPP=$ac_cv_prog_CPP 4111342175Scyelse 4112342175Scy ac_cv_prog_CPP=$CPP 4113342175Scyfi 4114342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4115342175Scy$as_echo "$CPP" >&6; } 4116342175Scyac_preproc_ok=false 4117342175Scyfor ac_c_preproc_warn_flag in '' yes 4118342175Scydo 4119342175Scy # Use a header file that comes with gcc, so configuring glibc 4120342175Scy # with a fresh cross-compiler works. 4121342175Scy # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4122342175Scy # <limits.h> exists even on freestanding compilers. 4123342175Scy # On the NeXT, cc -E runs the code through the compiler's parser, 4124342175Scy # not just through cpp. "Syntax error" is here to catch this case. 4125342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4126342175Scy/* end confdefs.h. */ 4127342175Scy#ifdef __STDC__ 4128342175Scy# include <limits.h> 4129342175Scy#else 4130342175Scy# include <assert.h> 4131342175Scy#endif 4132342175Scy Syntax error 4133342175Scy_ACEOF 4134342175Scyif ac_fn_c_try_cpp "$LINENO"; then : 4135342175Scy 4136342175Scyelse 4137342175Scy # Broken: fails on valid input. 4138342175Scycontinue 4139342175Scyfi 4140342175Scyrm -f conftest.err conftest.i conftest.$ac_ext 4141342175Scy 4142342175Scy # OK, works on sane cases. Now check whether nonexistent headers 4143342175Scy # can be detected and how. 4144342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145342175Scy/* end confdefs.h. */ 4146342175Scy#include <ac_nonexistent.h> 4147342175Scy_ACEOF 4148342175Scyif ac_fn_c_try_cpp "$LINENO"; then : 4149342175Scy # Broken: success on invalid input. 4150342175Scycontinue 4151342175Scyelse 4152342175Scy # Passes both tests. 4153342175Scyac_preproc_ok=: 4154342175Scybreak 4155342175Scyfi 4156342175Scyrm -f conftest.err conftest.i conftest.$ac_ext 4157342175Scy 4158342175Scydone 4159342175Scy# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4160342175Scyrm -f conftest.i conftest.err conftest.$ac_ext 4161342175Scyif $ac_preproc_ok; then : 4162342175Scy 4163342175Scyelse 4164342175Scy { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4165342175Scy$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4166342175Scyas_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4167342175ScySee \`config.log' for more details" "$LINENO" 5; } 4168342175Scyfi 4169342175Scy 4170342175Scyac_ext=c 4171342175Scyac_cpp='$CPP $CPPFLAGS' 4172342175Scyac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4173342175Scyac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4174342175Scyac_compiler_gnu=$ac_cv_c_compiler_gnu 4175342175Scy 4176342175Scy 4177342175Scy INSTALL="\$(SHELL) \$(srcdir)/tclconfig/install-sh -c" 4178342175Scy 4179342175Scy INSTALL_DATA="\${INSTALL} -m 644" 4180342175Scy 4181342175Scy INSTALL_PROGRAM="\${INSTALL}" 4182342175Scy 4183342175Scy INSTALL_SCRIPT="\${INSTALL}" 4184342175Scy 4185342175Scy 4186342175Scy #-------------------------------------------------------------------- 4187342175Scy # Checks to see if the make program sets the $MAKE variable. 4188342175Scy #-------------------------------------------------------------------- 4189342175Scy 4190342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4191342175Scy$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4192342175Scyset x ${MAKE-make} 4193342175Scyac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4194342175Scyif eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4195342175Scy $as_echo_n "(cached) " >&6 4196342175Scyelse 4197342175Scy cat >conftest.make <<\_ACEOF 4198342175ScySHELL = /bin/sh 4199342175Scyall: 4200342175Scy @echo '@@@%%%=$(MAKE)=@@@%%%' 4201342175Scy_ACEOF 4202342175Scy# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4203342175Scycase `${MAKE-make} -f conftest.make 2>/dev/null` in 4204342175Scy *@@@%%%=?*=@@@%%%*) 4205342175Scy eval ac_cv_prog_make_${ac_make}_set=yes;; 4206342175Scy *) 4207342175Scy eval ac_cv_prog_make_${ac_make}_set=no;; 4208342175Scyesac 4209342175Scyrm -f conftest.make 4210342175Scyfi 4211342175Scyif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4212342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4213342175Scy$as_echo "yes" >&6; } 4214342175Scy SET_MAKE= 4215342175Scyelse 4216342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4217342175Scy$as_echo "no" >&6; } 4218342175Scy SET_MAKE="MAKE=${MAKE-make}" 4219342175Scyfi 4220342175Scy 4221342175Scy 4222342175Scy #-------------------------------------------------------------------- 4223342175Scy # Find ranlib 4224342175Scy #-------------------------------------------------------------------- 4225342175Scy 4226342175Scy if test -n "$ac_tool_prefix"; then 4227342175Scy # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4228342175Scyset dummy ${ac_tool_prefix}ranlib; ac_word=$2 4229342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4230342175Scy$as_echo_n "checking for $ac_word... " >&6; } 4231342175Scyif ${ac_cv_prog_RANLIB+:} false; then : 4232342175Scy $as_echo_n "(cached) " >&6 4233342175Scyelse 4234342175Scy if test -n "$RANLIB"; then 4235342175Scy ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4236342175Scyelse 4237342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4238342175Scyfor as_dir in $PATH 4239342175Scydo 4240342175Scy IFS=$as_save_IFS 4241342175Scy test -z "$as_dir" && as_dir=. 4242342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 4243342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4244342175Scy ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4245342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4246342175Scy break 2 4247342175Scy fi 4248342175Scydone 4249342175Scy done 4250342175ScyIFS=$as_save_IFS 4251342175Scy 4252342175Scyfi 4253342175Scyfi 4254342175ScyRANLIB=$ac_cv_prog_RANLIB 4255342175Scyif test -n "$RANLIB"; then 4256342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4257342175Scy$as_echo "$RANLIB" >&6; } 4258342175Scyelse 4259342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4260342175Scy$as_echo "no" >&6; } 4261342175Scyfi 4262342175Scy 4263342175Scy 4264342175Scyfi 4265342175Scyif test -z "$ac_cv_prog_RANLIB"; then 4266342175Scy ac_ct_RANLIB=$RANLIB 4267342175Scy # Extract the first word of "ranlib", so it can be a program name with args. 4268342175Scyset dummy ranlib; ac_word=$2 4269342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4270342175Scy$as_echo_n "checking for $ac_word... " >&6; } 4271342175Scyif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4272342175Scy $as_echo_n "(cached) " >&6 4273342175Scyelse 4274342175Scy if test -n "$ac_ct_RANLIB"; then 4275342175Scy ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4276342175Scyelse 4277342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4278342175Scyfor as_dir in $PATH 4279342175Scydo 4280342175Scy IFS=$as_save_IFS 4281342175Scy test -z "$as_dir" && as_dir=. 4282342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 4283342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4284342175Scy ac_cv_prog_ac_ct_RANLIB="ranlib" 4285342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4286342175Scy break 2 4287342175Scy fi 4288342175Scydone 4289342175Scy done 4290342175ScyIFS=$as_save_IFS 4291342175Scy 4292342175Scyfi 4293342175Scyfi 4294342175Scyac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4295342175Scyif test -n "$ac_ct_RANLIB"; then 4296342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4297342175Scy$as_echo "$ac_ct_RANLIB" >&6; } 4298342175Scyelse 4299342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4300342175Scy$as_echo "no" >&6; } 4301342175Scyfi 4302342175Scy 4303342175Scy if test "x$ac_ct_RANLIB" = x; then 4304342175Scy RANLIB="" 4305342175Scy else 4306342175Scy case $cross_compiling:$ac_tool_warned in 4307342175Scyyes:) 4308342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4309342175Scy$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4310342175Scyac_tool_warned=yes ;; 4311342175Scyesac 4312342175Scy RANLIB=$ac_ct_RANLIB 4313342175Scy fi 4314342175Scyelse 4315342175Scy RANLIB="$ac_cv_prog_RANLIB" 4316342175Scyfi 4317342175Scy 4318342175Scy 4319342175Scy #-------------------------------------------------------------------- 4320342175Scy # Determines the correct binary file extension (.o, .obj, .exe etc.) 4321342175Scy #-------------------------------------------------------------------- 4322342175Scy 4323342175Scy 4324342175Scy 4325342175Scy 4326342175Scy 4327342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4328342175Scy$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4329342175Scyif ${ac_cv_path_GREP+:} false; then : 4330342175Scy $as_echo_n "(cached) " >&6 4331342175Scyelse 4332342175Scy if test -z "$GREP"; then 4333342175Scy ac_path_GREP_found=false 4334342175Scy # Loop through the user's path and test for each of PROGNAME-LIST 4335342175Scy as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4336342175Scyfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4337342175Scydo 4338342175Scy IFS=$as_save_IFS 4339342175Scy test -z "$as_dir" && as_dir=. 4340342175Scy for ac_prog in grep ggrep; do 4341342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 4342342175Scy ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4343342175Scy as_fn_executable_p "$ac_path_GREP" || continue 4344342175Scy# Check for GNU ac_path_GREP and select it if it is found. 4345342175Scy # Check for GNU $ac_path_GREP 4346342175Scycase `"$ac_path_GREP" --version 2>&1` in 4347342175Scy*GNU*) 4348342175Scy ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4349342175Scy*) 4350342175Scy ac_count=0 4351342175Scy $as_echo_n 0123456789 >"conftest.in" 4352342175Scy while : 4353342175Scy do 4354342175Scy cat "conftest.in" "conftest.in" >"conftest.tmp" 4355342175Scy mv "conftest.tmp" "conftest.in" 4356342175Scy cp "conftest.in" "conftest.nl" 4357342175Scy $as_echo 'GREP' >> "conftest.nl" 4358342175Scy "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4359342175Scy diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4360342175Scy as_fn_arith $ac_count + 1 && ac_count=$as_val 4361342175Scy if test $ac_count -gt ${ac_path_GREP_max-0}; then 4362342175Scy # Best one so far, save it but keep looking for a better one 4363342175Scy ac_cv_path_GREP="$ac_path_GREP" 4364342175Scy ac_path_GREP_max=$ac_count 4365342175Scy fi 4366342175Scy # 10*(2^10) chars as input seems more than enough 4367342175Scy test $ac_count -gt 10 && break 4368342175Scy done 4369342175Scy rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4370342175Scyesac 4371342175Scy 4372342175Scy $ac_path_GREP_found && break 3 4373342175Scy done 4374342175Scy done 4375342175Scy done 4376342175ScyIFS=$as_save_IFS 4377342175Scy if test -z "$ac_cv_path_GREP"; then 4378342175Scy as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4379342175Scy fi 4380342175Scyelse 4381342175Scy ac_cv_path_GREP=$GREP 4382342175Scyfi 4383342175Scy 4384342175Scyfi 4385342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4386342175Scy$as_echo "$ac_cv_path_GREP" >&6; } 4387342175Scy GREP="$ac_cv_path_GREP" 4388342175Scy 4389342175Scy 4390342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4391342175Scy$as_echo_n "checking for egrep... " >&6; } 4392342175Scyif ${ac_cv_path_EGREP+:} false; then : 4393342175Scy $as_echo_n "(cached) " >&6 4394342175Scyelse 4395342175Scy if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4396342175Scy then ac_cv_path_EGREP="$GREP -E" 4397342175Scy else 4398342175Scy if test -z "$EGREP"; then 4399342175Scy ac_path_EGREP_found=false 4400342175Scy # Loop through the user's path and test for each of PROGNAME-LIST 4401342175Scy as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402342175Scyfor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4403342175Scydo 4404342175Scy IFS=$as_save_IFS 4405342175Scy test -z "$as_dir" && as_dir=. 4406342175Scy for ac_prog in egrep; do 4407342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 4408342175Scy ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4409342175Scy as_fn_executable_p "$ac_path_EGREP" || continue 4410342175Scy# Check for GNU ac_path_EGREP and select it if it is found. 4411342175Scy # Check for GNU $ac_path_EGREP 4412342175Scycase `"$ac_path_EGREP" --version 2>&1` in 4413342175Scy*GNU*) 4414342175Scy ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4415342175Scy*) 4416342175Scy ac_count=0 4417342175Scy $as_echo_n 0123456789 >"conftest.in" 4418342175Scy while : 4419342175Scy do 4420342175Scy cat "conftest.in" "conftest.in" >"conftest.tmp" 4421342175Scy mv "conftest.tmp" "conftest.in" 4422342175Scy cp "conftest.in" "conftest.nl" 4423342175Scy $as_echo 'EGREP' >> "conftest.nl" 4424342175Scy "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4425342175Scy diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4426342175Scy as_fn_arith $ac_count + 1 && ac_count=$as_val 4427342175Scy if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4428342175Scy # Best one so far, save it but keep looking for a better one 4429342175Scy ac_cv_path_EGREP="$ac_path_EGREP" 4430342175Scy ac_path_EGREP_max=$ac_count 4431342175Scy fi 4432342175Scy # 10*(2^10) chars as input seems more than enough 4433342175Scy test $ac_count -gt 10 && break 4434342175Scy done 4435342175Scy rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4436342175Scyesac 4437342175Scy 4438342175Scy $ac_path_EGREP_found && break 3 4439342175Scy done 4440342175Scy done 4441342175Scy done 4442342175ScyIFS=$as_save_IFS 4443342175Scy if test -z "$ac_cv_path_EGREP"; then 4444342175Scy as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4445342175Scy fi 4446342175Scyelse 4447342175Scy ac_cv_path_EGREP=$EGREP 4448342175Scyfi 4449342175Scy 4450342175Scy fi 4451342175Scyfi 4452342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4453342175Scy$as_echo "$ac_cv_path_EGREP" >&6; } 4454342175Scy EGREP="$ac_cv_path_EGREP" 4455342175Scy 4456342175Scy 4457342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4458342175Scy$as_echo_n "checking for ANSI C header files... " >&6; } 4459342175Scyif ${ac_cv_header_stdc+:} false; then : 4460342175Scy $as_echo_n "(cached) " >&6 4461342175Scyelse 4462342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4463342175Scy/* end confdefs.h. */ 4464342175Scy#include <stdlib.h> 4465342175Scy#include <stdarg.h> 4466342175Scy#include <string.h> 4467342175Scy#include <float.h> 4468342175Scy 4469342175Scyint 4470342175Scymain () 4471342175Scy{ 4472342175Scy 4473342175Scy ; 4474342175Scy return 0; 4475342175Scy} 4476342175Scy_ACEOF 4477342175Scyif ac_fn_c_try_compile "$LINENO"; then : 4478342175Scy ac_cv_header_stdc=yes 4479342175Scyelse 4480342175Scy ac_cv_header_stdc=no 4481342175Scyfi 4482342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4483342175Scy 4484342175Scyif test $ac_cv_header_stdc = yes; then 4485342175Scy # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4486342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4487342175Scy/* end confdefs.h. */ 4488342175Scy#include <string.h> 4489342175Scy 4490342175Scy_ACEOF 4491342175Scyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4492342175Scy $EGREP "memchr" >/dev/null 2>&1; then : 4493342175Scy 4494342175Scyelse 4495342175Scy ac_cv_header_stdc=no 4496342175Scyfi 4497342175Scyrm -f conftest* 4498342175Scy 4499342175Scyfi 4500342175Scy 4501342175Scyif test $ac_cv_header_stdc = yes; then 4502342175Scy # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4503342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4504342175Scy/* end confdefs.h. */ 4505342175Scy#include <stdlib.h> 4506342175Scy 4507342175Scy_ACEOF 4508342175Scyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4509342175Scy $EGREP "free" >/dev/null 2>&1; then : 4510342175Scy 4511342175Scyelse 4512342175Scy ac_cv_header_stdc=no 4513342175Scyfi 4514342175Scyrm -f conftest* 4515342175Scy 4516342175Scyfi 4517342175Scy 4518342175Scyif test $ac_cv_header_stdc = yes; then 4519342175Scy # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4520342175Scy if test "$cross_compiling" = yes; then : 4521342175Scy : 4522342175Scyelse 4523342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4524342175Scy/* end confdefs.h. */ 4525342175Scy#include <ctype.h> 4526342175Scy#include <stdlib.h> 4527342175Scy#if ((' ' & 0x0FF) == 0x020) 4528342175Scy# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4529342175Scy# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4530342175Scy#else 4531342175Scy# define ISLOWER(c) \ 4532342175Scy (('a' <= (c) && (c) <= 'i') \ 4533342175Scy || ('j' <= (c) && (c) <= 'r') \ 4534342175Scy || ('s' <= (c) && (c) <= 'z')) 4535342175Scy# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4536342175Scy#endif 4537342175Scy 4538342175Scy#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4539342175Scyint 4540342175Scymain () 4541342175Scy{ 4542342175Scy int i; 4543342175Scy for (i = 0; i < 256; i++) 4544342175Scy if (XOR (islower (i), ISLOWER (i)) 4545342175Scy || toupper (i) != TOUPPER (i)) 4546342175Scy return 2; 4547342175Scy return 0; 4548342175Scy} 4549342175Scy_ACEOF 4550342175Scyif ac_fn_c_try_run "$LINENO"; then : 4551342175Scy 4552342175Scyelse 4553342175Scy ac_cv_header_stdc=no 4554342175Scyfi 4555342175Scyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4556342175Scy conftest.$ac_objext conftest.beam conftest.$ac_ext 4557342175Scyfi 4558342175Scy 4559342175Scyfi 4560342175Scyfi 4561342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4562342175Scy$as_echo "$ac_cv_header_stdc" >&6; } 4563342175Scyif test $ac_cv_header_stdc = yes; then 4564342175Scy 4565342175Scy$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4566342175Scy 4567342175Scyfi 4568342175Scy 4569342175Scy# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4570342175Scyfor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4571342175Scy inttypes.h stdint.h unistd.h 4572342175Scydo : 4573342175Scy as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4574342175Scyac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4575342175Scy" 4576342175Scyif eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4577342175Scy cat >>confdefs.h <<_ACEOF 4578342175Scy#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4579342175Scy_ACEOF 4580342175Scy 4581342175Scyfi 4582342175Scy 4583342175Scydone 4584342175Scy 4585342175Scy 4586342175Scy 4587342175Scy # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4588342175Scy 4589342175Scy 4590342175Scy #------------------------------------------------------------------------ 4591342175Scy # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4592342175Scy # It makes compiling go faster. (This is only a performance feature.) 4593342175Scy #------------------------------------------------------------------------ 4594342175Scy 4595342175Scy if test -z "$no_pipe" -a -n "$GCC"; then 4596342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -pipe" >&5 4597342175Scy$as_echo_n "checking if the compiler understands -pipe... " >&6; } 4598342175Scyif ${tcl_cv_cc_pipe+:} false; then : 4599342175Scy $as_echo_n "(cached) " >&6 4600342175Scyelse 4601342175Scy 4602342175Scy hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4603342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4604342175Scy/* end confdefs.h. */ 4605342175Scy 4606342175Scyint 4607342175Scymain () 4608342175Scy{ 4609342175Scy 4610342175Scy ; 4611342175Scy return 0; 4612342175Scy} 4613342175Scy_ACEOF 4614342175Scyif ac_fn_c_try_compile "$LINENO"; then : 4615342175Scy tcl_cv_cc_pipe=yes 4616342175Scyelse 4617342175Scy tcl_cv_cc_pipe=no 4618342175Scyfi 4619342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4620342175Scy CFLAGS=$hold_cflags 4621342175Scyfi 4622342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_pipe" >&5 4623342175Scy$as_echo "$tcl_cv_cc_pipe" >&6; } 4624342175Scy if test $tcl_cv_cc_pipe = yes; then 4625342175Scy CFLAGS="$CFLAGS -pipe" 4626342175Scy fi 4627342175Scy fi 4628342175Scy 4629342175Scy #-------------------------------------------------------------------- 4630342175Scy # Common compiler flag setup 4631342175Scy #-------------------------------------------------------------------- 4632342175Scy 4633342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 4634342175Scy$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 4635342175Scyif ${ac_cv_c_bigendian+:} false; then : 4636342175Scy $as_echo_n "(cached) " >&6 4637342175Scyelse 4638342175Scy ac_cv_c_bigendian=unknown 4639342175Scy # See if we're dealing with a universal compiler. 4640342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641342175Scy/* end confdefs.h. */ 4642342175Scy#ifndef __APPLE_CC__ 4643342175Scy not a universal capable compiler 4644342175Scy #endif 4645342175Scy typedef int dummy; 4646342175Scy 4647342175Scy_ACEOF 4648342175Scyif ac_fn_c_try_compile "$LINENO"; then : 4649342175Scy 4650342175Scy # Check for potential -arch flags. It is not universal unless 4651342175Scy # there are at least two -arch flags with different values. 4652342175Scy ac_arch= 4653342175Scy ac_prev= 4654342175Scy for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 4655342175Scy if test -n "$ac_prev"; then 4656342175Scy case $ac_word in 4657342175Scy i?86 | x86_64 | ppc | ppc64) 4658342175Scy if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 4659342175Scy ac_arch=$ac_word 4660342175Scy else 4661342175Scy ac_cv_c_bigendian=universal 4662342175Scy break 4663342175Scy fi 4664342175Scy ;; 4665342175Scy esac 4666342175Scy ac_prev= 4667342175Scy elif test "x$ac_word" = "x-arch"; then 4668342175Scy ac_prev=arch 4669342175Scy fi 4670342175Scy done 4671342175Scyfi 4672342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4673342175Scy if test $ac_cv_c_bigendian = unknown; then 4674342175Scy # See if sys/param.h defines the BYTE_ORDER macro. 4675342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676342175Scy/* end confdefs.h. */ 4677342175Scy#include <sys/types.h> 4678342175Scy #include <sys/param.h> 4679342175Scy 4680342175Scyint 4681342175Scymain () 4682342175Scy{ 4683342175Scy#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 4684342175Scy && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 4685342175Scy && LITTLE_ENDIAN) 4686342175Scy bogus endian macros 4687342175Scy #endif 4688342175Scy 4689342175Scy ; 4690342175Scy return 0; 4691342175Scy} 4692342175Scy_ACEOF 4693342175Scyif ac_fn_c_try_compile "$LINENO"; then : 4694342175Scy # It does; now see whether it defined to BIG_ENDIAN or not. 4695342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4696342175Scy/* end confdefs.h. */ 4697342175Scy#include <sys/types.h> 4698342175Scy #include <sys/param.h> 4699342175Scy 4700342175Scyint 4701342175Scymain () 4702342175Scy{ 4703342175Scy#if BYTE_ORDER != BIG_ENDIAN 4704342175Scy not big endian 4705342175Scy #endif 4706342175Scy 4707342175Scy ; 4708342175Scy return 0; 4709342175Scy} 4710342175Scy_ACEOF 4711342175Scyif ac_fn_c_try_compile "$LINENO"; then : 4712342175Scy ac_cv_c_bigendian=yes 4713342175Scyelse 4714342175Scy ac_cv_c_bigendian=no 4715342175Scyfi 4716342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4717342175Scyfi 4718342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4719342175Scy fi 4720342175Scy if test $ac_cv_c_bigendian = unknown; then 4721342175Scy # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 4722342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723342175Scy/* end confdefs.h. */ 4724342175Scy#include <limits.h> 4725342175Scy 4726342175Scyint 4727342175Scymain () 4728342175Scy{ 4729342175Scy#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 4730342175Scy bogus endian macros 4731342175Scy #endif 4732342175Scy 4733342175Scy ; 4734342175Scy return 0; 4735342175Scy} 4736342175Scy_ACEOF 4737342175Scyif ac_fn_c_try_compile "$LINENO"; then : 4738342175Scy # It does; now see whether it defined to _BIG_ENDIAN or not. 4739342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4740342175Scy/* end confdefs.h. */ 4741342175Scy#include <limits.h> 4742342175Scy 4743342175Scyint 4744342175Scymain () 4745342175Scy{ 4746342175Scy#ifndef _BIG_ENDIAN 4747342175Scy not big endian 4748342175Scy #endif 4749342175Scy 4750342175Scy ; 4751342175Scy return 0; 4752342175Scy} 4753342175Scy_ACEOF 4754342175Scyif ac_fn_c_try_compile "$LINENO"; then : 4755342175Scy ac_cv_c_bigendian=yes 4756342175Scyelse 4757342175Scy ac_cv_c_bigendian=no 4758342175Scyfi 4759342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4760342175Scyfi 4761342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4762342175Scy fi 4763342175Scy if test $ac_cv_c_bigendian = unknown; then 4764342175Scy # Compile a test program. 4765342175Scy if test "$cross_compiling" = yes; then : 4766342175Scy # Try to guess by grepping values from an object file. 4767342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4768342175Scy/* end confdefs.h. */ 4769342175Scyshort int ascii_mm[] = 4770342175Scy { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4771342175Scy short int ascii_ii[] = 4772342175Scy { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4773342175Scy int use_ascii (int i) { 4774342175Scy return ascii_mm[i] + ascii_ii[i]; 4775342175Scy } 4776342175Scy short int ebcdic_ii[] = 4777342175Scy { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4778342175Scy short int ebcdic_mm[] = 4779342175Scy { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4780342175Scy int use_ebcdic (int i) { 4781342175Scy return ebcdic_mm[i] + ebcdic_ii[i]; 4782342175Scy } 4783342175Scy extern int foo; 4784342175Scy 4785342175Scyint 4786342175Scymain () 4787342175Scy{ 4788342175Scyreturn use_ascii (foo) == use_ebcdic (foo); 4789342175Scy ; 4790342175Scy return 0; 4791342175Scy} 4792342175Scy_ACEOF 4793342175Scyif ac_fn_c_try_compile "$LINENO"; then : 4794342175Scy if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 4795342175Scy ac_cv_c_bigendian=yes 4796342175Scy fi 4797342175Scy if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4798342175Scy if test "$ac_cv_c_bigendian" = unknown; then 4799342175Scy ac_cv_c_bigendian=no 4800342175Scy else 4801342175Scy # finding both strings is unlikely to happen, but who knows? 4802342175Scy ac_cv_c_bigendian=unknown 4803342175Scy fi 4804342175Scy fi 4805342175Scyfi 4806342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4807342175Scyelse 4808342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4809342175Scy/* end confdefs.h. */ 4810342175Scy$ac_includes_default 4811342175Scyint 4812342175Scymain () 4813342175Scy{ 4814342175Scy 4815342175Scy /* Are we little or big endian? From Harbison&Steele. */ 4816342175Scy union 4817342175Scy { 4818342175Scy long int l; 4819342175Scy char c[sizeof (long int)]; 4820342175Scy } u; 4821342175Scy u.l = 1; 4822342175Scy return u.c[sizeof (long int) - 1] == 1; 4823342175Scy 4824342175Scy ; 4825342175Scy return 0; 4826342175Scy} 4827342175Scy_ACEOF 4828342175Scyif ac_fn_c_try_run "$LINENO"; then : 4829342175Scy ac_cv_c_bigendian=no 4830342175Scyelse 4831342175Scy ac_cv_c_bigendian=yes 4832342175Scyfi 4833342175Scyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4834342175Scy conftest.$ac_objext conftest.beam conftest.$ac_ext 4835342175Scyfi 4836342175Scy 4837342175Scy fi 4838342175Scyfi 4839342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 4840342175Scy$as_echo "$ac_cv_c_bigendian" >&6; } 4841342175Scy case $ac_cv_c_bigendian in #( 4842342175Scy yes) 4843342175Scy $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 4844342175Scy;; #( 4845342175Scy no) 4846342175Scy ;; #( 4847342175Scy universal) 4848342175Scy 4849342175Scy$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 4850342175Scy 4851342175Scy ;; #( 4852342175Scy *) 4853342175Scy as_fn_error $? "unknown endianness 4854342175Scy presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 4855342175Scy esac 4856342175Scy 4857342175Scy if test "${TEA_PLATFORM}" = "unix" ; then 4858342175Scy 4859342175Scy #-------------------------------------------------------------------- 4860342175Scy # On a few very rare systems, all of the libm.a stuff is 4861342175Scy # already in libc.a. Set compiler flags accordingly. 4862342175Scy # Also, Linux requires the "ieee" library for math to work 4863342175Scy # right (and it must appear before "-lm"). 4864342175Scy #-------------------------------------------------------------------- 4865342175Scy 4866342175Scy ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin" 4867342175Scyif test "x$ac_cv_func_sin" = xyes; then : 4868342175Scy MATH_LIBS="" 4869342175Scyelse 4870342175Scy MATH_LIBS="-lm" 4871342175Scyfi 4872342175Scy 4873342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lieee" >&5 4874342175Scy$as_echo_n "checking for main in -lieee... " >&6; } 4875342175Scyif ${ac_cv_lib_ieee_main+:} false; then : 4876342175Scy $as_echo_n "(cached) " >&6 4877342175Scyelse 4878342175Scy ac_check_lib_save_LIBS=$LIBS 4879342175ScyLIBS="-lieee $LIBS" 4880342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 4881342175Scy/* end confdefs.h. */ 4882342175Scy 4883342175Scy 4884342175Scyint 4885342175Scymain () 4886342175Scy{ 4887342175Scyreturn main (); 4888342175Scy ; 4889342175Scy return 0; 4890342175Scy} 4891342175Scy_ACEOF 4892342175Scyif ac_fn_c_try_link "$LINENO"; then : 4893342175Scy ac_cv_lib_ieee_main=yes 4894342175Scyelse 4895342175Scy ac_cv_lib_ieee_main=no 4896342175Scyfi 4897342175Scyrm -f core conftest.err conftest.$ac_objext \ 4898342175Scy conftest$ac_exeext conftest.$ac_ext 4899342175ScyLIBS=$ac_check_lib_save_LIBS 4900342175Scyfi 4901342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee_main" >&5 4902342175Scy$as_echo "$ac_cv_lib_ieee_main" >&6; } 4903342175Scyif test "x$ac_cv_lib_ieee_main" = xyes; then : 4904342175Scy MATH_LIBS="-lieee $MATH_LIBS" 4905342175Scyfi 4906342175Scy 4907342175Scy 4908342175Scy #-------------------------------------------------------------------- 4909342175Scy # Interactive UNIX requires -linet instead of -lsocket, plus it 4910342175Scy # needs net/errno.h to define the socket-related error codes. 4911342175Scy #-------------------------------------------------------------------- 4912342175Scy 4913342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5 4914342175Scy$as_echo_n "checking for main in -linet... " >&6; } 4915342175Scyif ${ac_cv_lib_inet_main+:} false; then : 4916342175Scy $as_echo_n "(cached) " >&6 4917342175Scyelse 4918342175Scy ac_check_lib_save_LIBS=$LIBS 4919342175ScyLIBS="-linet $LIBS" 4920342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 4921342175Scy/* end confdefs.h. */ 4922342175Scy 4923342175Scy 4924342175Scyint 4925342175Scymain () 4926342175Scy{ 4927342175Scyreturn main (); 4928342175Scy ; 4929342175Scy return 0; 4930342175Scy} 4931342175Scy_ACEOF 4932342175Scyif ac_fn_c_try_link "$LINENO"; then : 4933342175Scy ac_cv_lib_inet_main=yes 4934342175Scyelse 4935342175Scy ac_cv_lib_inet_main=no 4936342175Scyfi 4937342175Scyrm -f core conftest.err conftest.$ac_objext \ 4938342175Scy conftest$ac_exeext conftest.$ac_ext 4939342175ScyLIBS=$ac_check_lib_save_LIBS 4940342175Scyfi 4941342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5 4942342175Scy$as_echo "$ac_cv_lib_inet_main" >&6; } 4943342175Scyif test "x$ac_cv_lib_inet_main" = xyes; then : 4944342175Scy LIBS="$LIBS -linet" 4945342175Scyfi 4946342175Scy 4947342175Scy ac_fn_c_check_header_mongrel "$LINENO" "net/errno.h" "ac_cv_header_net_errno_h" "$ac_includes_default" 4948342175Scyif test "x$ac_cv_header_net_errno_h" = xyes; then : 4949342175Scy 4950342175Scy 4951342175Scy$as_echo "#define HAVE_NET_ERRNO_H 1" >>confdefs.h 4952342175Scy 4953342175Scyfi 4954342175Scy 4955342175Scy 4956342175Scy 4957342175Scy #-------------------------------------------------------------------- 4958342175Scy # Check for the existence of the -lsocket and -lnsl libraries. 4959342175Scy # The order here is important, so that they end up in the right 4960342175Scy # order in the command line generated by make. Here are some 4961342175Scy # special considerations: 4962342175Scy # 1. Use "connect" and "accept" to check for -lsocket, and 4963342175Scy # "gethostbyname" to check for -lnsl. 4964342175Scy # 2. Use each function name only once: can't redo a check because 4965342175Scy # autoconf caches the results of the last check and won't redo it. 4966342175Scy # 3. Use -lnsl and -lsocket only if they supply procedures that 4967342175Scy # aren't already present in the normal libraries. This is because 4968342175Scy # IRIX 5.2 has libraries, but they aren't needed and they're 4969342175Scy # bogus: they goof up name resolution if used. 4970342175Scy # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4971342175Scy # To get around this problem, check for both libraries together 4972342175Scy # if -lsocket doesn't work by itself. 4973342175Scy #-------------------------------------------------------------------- 4974342175Scy 4975342175Scy tcl_checkBoth=0 4976342175Scy ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 4977342175Scyif test "x$ac_cv_func_connect" = xyes; then : 4978342175Scy tcl_checkSocket=0 4979342175Scyelse 4980342175Scy tcl_checkSocket=1 4981342175Scyfi 4982342175Scy 4983342175Scy if test "$tcl_checkSocket" = 1; then 4984342175Scy ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt" 4985342175Scyif test "x$ac_cv_func_setsockopt" = xyes; then : 4986342175Scy 4987342175Scyelse 4988342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setsockopt in -lsocket" >&5 4989342175Scy$as_echo_n "checking for setsockopt in -lsocket... " >&6; } 4990342175Scyif ${ac_cv_lib_socket_setsockopt+:} false; then : 4991342175Scy $as_echo_n "(cached) " >&6 4992342175Scyelse 4993342175Scy ac_check_lib_save_LIBS=$LIBS 4994342175ScyLIBS="-lsocket $LIBS" 4995342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 4996342175Scy/* end confdefs.h. */ 4997342175Scy 4998342175Scy/* Override any GCC internal prototype to avoid an error. 4999342175Scy Use char because int might match the return type of a GCC 5000342175Scy builtin and then its argument prototype would still apply. */ 5001342175Scy#ifdef __cplusplus 5002342175Scyextern "C" 5003342175Scy#endif 5004342175Scychar setsockopt (); 5005342175Scyint 5006342175Scymain () 5007342175Scy{ 5008342175Scyreturn setsockopt (); 5009342175Scy ; 5010342175Scy return 0; 5011342175Scy} 5012342175Scy_ACEOF 5013342175Scyif ac_fn_c_try_link "$LINENO"; then : 5014342175Scy ac_cv_lib_socket_setsockopt=yes 5015342175Scyelse 5016342175Scy ac_cv_lib_socket_setsockopt=no 5017342175Scyfi 5018342175Scyrm -f core conftest.err conftest.$ac_objext \ 5019342175Scy conftest$ac_exeext conftest.$ac_ext 5020342175ScyLIBS=$ac_check_lib_save_LIBS 5021342175Scyfi 5022342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_setsockopt" >&5 5023342175Scy$as_echo "$ac_cv_lib_socket_setsockopt" >&6; } 5024342175Scyif test "x$ac_cv_lib_socket_setsockopt" = xyes; then : 5025342175Scy LIBS="$LIBS -lsocket" 5026342175Scyelse 5027342175Scy tcl_checkBoth=1 5028342175Scyfi 5029342175Scy 5030342175Scyfi 5031342175Scy 5032342175Scy fi 5033342175Scy if test "$tcl_checkBoth" = 1; then 5034342175Scy tk_oldLibs=$LIBS 5035342175Scy LIBS="$LIBS -lsocket -lnsl" 5036342175Scy ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept" 5037342175Scyif test "x$ac_cv_func_accept" = xyes; then : 5038342175Scy tcl_checkNsl=0 5039342175Scyelse 5040342175Scy LIBS=$tk_oldLibs 5041342175Scyfi 5042342175Scy 5043342175Scy fi 5044342175Scy ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 5045342175Scyif test "x$ac_cv_func_gethostbyname" = xyes; then : 5046342175Scy 5047342175Scyelse 5048342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 5049342175Scy$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5050342175Scyif ${ac_cv_lib_nsl_gethostbyname+:} false; then : 5051342175Scy $as_echo_n "(cached) " >&6 5052342175Scyelse 5053342175Scy ac_check_lib_save_LIBS=$LIBS 5054342175ScyLIBS="-lnsl $LIBS" 5055342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 5056342175Scy/* end confdefs.h. */ 5057342175Scy 5058342175Scy/* Override any GCC internal prototype to avoid an error. 5059342175Scy Use char because int might match the return type of a GCC 5060342175Scy builtin and then its argument prototype would still apply. */ 5061342175Scy#ifdef __cplusplus 5062342175Scyextern "C" 5063342175Scy#endif 5064342175Scychar gethostbyname (); 5065342175Scyint 5066342175Scymain () 5067342175Scy{ 5068342175Scyreturn gethostbyname (); 5069342175Scy ; 5070342175Scy return 0; 5071342175Scy} 5072342175Scy_ACEOF 5073342175Scyif ac_fn_c_try_link "$LINENO"; then : 5074342175Scy ac_cv_lib_nsl_gethostbyname=yes 5075342175Scyelse 5076342175Scy ac_cv_lib_nsl_gethostbyname=no 5077342175Scyfi 5078342175Scyrm -f core conftest.err conftest.$ac_objext \ 5079342175Scy conftest$ac_exeext conftest.$ac_ext 5080342175ScyLIBS=$ac_check_lib_save_LIBS 5081342175Scyfi 5082342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 5083342175Scy$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 5084342175Scyif test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 5085342175Scy LIBS="$LIBS -lnsl" 5086342175Scyfi 5087342175Scy 5088342175Scyfi 5089342175Scy 5090342175Scy 5091342175Scy # TEA specific: Don't perform the eval of the libraries here because 5092342175Scy # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5093342175Scy 5094342175Scy TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5095342175Scy 5096342175Scy 5097342175Scy 5098342175Scy 5099342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking dirent.h" >&5 5100342175Scy$as_echo_n "checking dirent.h... " >&6; } 5101342175Scyif ${tcl_cv_dirent_h+:} false; then : 5102342175Scy $as_echo_n "(cached) " >&6 5103342175Scyelse 5104342175Scy 5105342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5106342175Scy/* end confdefs.h. */ 5107342175Scy#include <sys/types.h> 5108342175Scy#include <dirent.h> 5109342175Scyint 5110342175Scymain () 5111342175Scy{ 5112342175Scy 5113342175Scy#ifndef _POSIX_SOURCE 5114342175Scy# ifdef __Lynx__ 5115342175Scy /* 5116342175Scy * Generate compilation error to make the test fail: Lynx headers 5117342175Scy * are only valid if really in the POSIX environment. 5118342175Scy */ 5119342175Scy 5120342175Scy missing_procedure(); 5121342175Scy# endif 5122342175Scy#endif 5123342175ScyDIR *d; 5124342175Scystruct dirent *entryPtr; 5125342175Scychar *p; 5126342175Scyd = opendir("foobar"); 5127342175ScyentryPtr = readdir(d); 5128342175Scyp = entryPtr->d_name; 5129342175Scyclosedir(d); 5130342175Scy 5131342175Scy ; 5132342175Scy return 0; 5133342175Scy} 5134342175Scy_ACEOF 5135342175Scyif ac_fn_c_try_link "$LINENO"; then : 5136342175Scy tcl_cv_dirent_h=yes 5137342175Scyelse 5138342175Scy tcl_cv_dirent_h=no 5139342175Scyfi 5140342175Scyrm -f core conftest.err conftest.$ac_objext \ 5141342175Scy conftest$ac_exeext conftest.$ac_ext 5142342175Scyfi 5143342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_dirent_h" >&5 5144342175Scy$as_echo "$tcl_cv_dirent_h" >&6; } 5145342175Scy 5146342175Scy if test $tcl_cv_dirent_h = no; then 5147342175Scy 5148342175Scy$as_echo "#define NO_DIRENT_H 1" >>confdefs.h 5149342175Scy 5150342175Scy fi 5151342175Scy 5152342175Scy # TEA specific: 5153342175Scy ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 5154342175Scyif test "x$ac_cv_header_errno_h" = xyes; then : 5155342175Scy 5156342175Scyelse 5157342175Scy 5158342175Scy$as_echo "#define NO_ERRNO_H 1" >>confdefs.h 5159342175Scy 5160342175Scyfi 5161342175Scy 5162342175Scy 5163342175Scy ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" 5164342175Scyif test "x$ac_cv_header_float_h" = xyes; then : 5165342175Scy 5166342175Scyelse 5167342175Scy 5168342175Scy$as_echo "#define NO_FLOAT_H 1" >>confdefs.h 5169342175Scy 5170342175Scyfi 5171342175Scy 5172342175Scy 5173342175Scy ac_fn_c_check_header_mongrel "$LINENO" "values.h" "ac_cv_header_values_h" "$ac_includes_default" 5174342175Scyif test "x$ac_cv_header_values_h" = xyes; then : 5175342175Scy 5176342175Scyelse 5177342175Scy 5178342175Scy$as_echo "#define NO_VALUES_H 1" >>confdefs.h 5179342175Scy 5180342175Scyfi 5181342175Scy 5182342175Scy 5183342175Scy ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 5184342175Scyif test "x$ac_cv_header_limits_h" = xyes; then : 5185342175Scy 5186342175Scy$as_echo "#define HAVE_LIMITS_H 1" >>confdefs.h 5187342175Scy 5188342175Scyelse 5189342175Scy 5190342175Scy$as_echo "#define NO_LIMITS_H 1" >>confdefs.h 5191342175Scy 5192342175Scyfi 5193342175Scy 5194342175Scy 5195342175Scy ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5196342175Scyif test "x$ac_cv_header_stdlib_h" = xyes; then : 5197342175Scy tcl_ok=1 5198342175Scyelse 5199342175Scy tcl_ok=0 5200342175Scyfi 5201342175Scy 5202342175Scy 5203342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5204342175Scy/* end confdefs.h. */ 5205342175Scy#include <stdlib.h> 5206342175Scy 5207342175Scy_ACEOF 5208342175Scyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5209342175Scy $EGREP "strtol" >/dev/null 2>&1; then : 5210342175Scy 5211342175Scyelse 5212342175Scy tcl_ok=0 5213342175Scyfi 5214342175Scyrm -f conftest* 5215342175Scy 5216342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5217342175Scy/* end confdefs.h. */ 5218342175Scy#include <stdlib.h> 5219342175Scy 5220342175Scy_ACEOF 5221342175Scyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5222342175Scy $EGREP "strtoul" >/dev/null 2>&1; then : 5223342175Scy 5224342175Scyelse 5225342175Scy tcl_ok=0 5226342175Scyfi 5227342175Scyrm -f conftest* 5228342175Scy 5229342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5230342175Scy/* end confdefs.h. */ 5231342175Scy#include <stdlib.h> 5232342175Scy 5233342175Scy_ACEOF 5234342175Scyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5235342175Scy $EGREP "strtod" >/dev/null 2>&1; then : 5236342175Scy 5237342175Scyelse 5238342175Scy tcl_ok=0 5239342175Scyfi 5240342175Scyrm -f conftest* 5241342175Scy 5242342175Scy if test $tcl_ok = 0; then 5243342175Scy 5244342175Scy$as_echo "#define NO_STDLIB_H 1" >>confdefs.h 5245342175Scy 5246342175Scy fi 5247342175Scy ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 5248342175Scyif test "x$ac_cv_header_string_h" = xyes; then : 5249342175Scy tcl_ok=1 5250342175Scyelse 5251342175Scy tcl_ok=0 5252342175Scyfi 5253342175Scy 5254342175Scy 5255342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5256342175Scy/* end confdefs.h. */ 5257342175Scy#include <string.h> 5258342175Scy 5259342175Scy_ACEOF 5260342175Scyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5261342175Scy $EGREP "strstr" >/dev/null 2>&1; then : 5262342175Scy 5263342175Scyelse 5264342175Scy tcl_ok=0 5265342175Scyfi 5266342175Scyrm -f conftest* 5267342175Scy 5268342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5269342175Scy/* end confdefs.h. */ 5270342175Scy#include <string.h> 5271342175Scy 5272342175Scy_ACEOF 5273342175Scyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5274342175Scy $EGREP "strerror" >/dev/null 2>&1; then : 5275342175Scy 5276342175Scyelse 5277342175Scy tcl_ok=0 5278342175Scyfi 5279342175Scyrm -f conftest* 5280342175Scy 5281342175Scy 5282342175Scy # See also memmove check below for a place where NO_STRING_H can be 5283342175Scy # set and why. 5284342175Scy 5285342175Scy if test $tcl_ok = 0; then 5286342175Scy 5287342175Scy$as_echo "#define NO_STRING_H 1" >>confdefs.h 5288342175Scy 5289342175Scy fi 5290342175Scy 5291342175Scy ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 5292342175Scyif test "x$ac_cv_header_sys_wait_h" = xyes; then : 5293342175Scy 5294342175Scyelse 5295342175Scy 5296342175Scy$as_echo "#define NO_SYS_WAIT_H 1" >>confdefs.h 5297342175Scy 5298342175Scyfi 5299342175Scy 5300342175Scy 5301342175Scy ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 5302342175Scyif test "x$ac_cv_header_dlfcn_h" = xyes; then : 5303342175Scy 5304342175Scyelse 5305342175Scy 5306342175Scy$as_echo "#define NO_DLFCN_H 1" >>confdefs.h 5307342175Scy 5308342175Scyfi 5309342175Scy 5310342175Scy 5311342175Scy 5312342175Scy # OS/390 lacks sys/param.h (and doesn't need it, by chance). 5313342175Scy for ac_header in sys/param.h 5314342175Scydo : 5315342175Scy ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 5316342175Scyif test "x$ac_cv_header_sys_param_h" = xyes; then : 5317342175Scy cat >>confdefs.h <<_ACEOF 5318342175Scy#define HAVE_SYS_PARAM_H 1 5319342175Scy_ACEOF 5320342175Scy 5321342175Scyfi 5322342175Scy 5323342175Scydone 5324342175Scy 5325342175Scy 5326342175Scy # Let the user call this, because if it triggers, they will 5327342175Scy # need a compat/strtod.c that is correct. Users can also 5328342175Scy # use Tcl_GetDouble(FromObj) instead. 5329342175Scy #TEA_BUGGY_STRTOD 5330342175Scy fi 5331342175Scy 5332342175Scy 5333342175Scy#----------------------------------------------------------------------- 5334342175Scy# __CHANGE__ 5335342175Scy# Specify the C source files to compile in TEA_ADD_SOURCES, 5336342175Scy# public headers that need to be installed in TEA_ADD_HEADERS, 5337342175Scy# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 5338342175Scy# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 5339342175Scy# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 5340342175Scy# and PKG_TCL_SOURCES. 5341342175Scy#----------------------------------------------------------------------- 5342342175Scy 5343342175Scy 5344342175Scy vars="tclsqlite3.c" 5345342175Scy for i in $vars; do 5346342175Scy case $i in 5347342175Scy \$*) 5348342175Scy # allow $-var names 5349342175Scy PKG_SOURCES="$PKG_SOURCES $i" 5350342175Scy PKG_OBJECTS="$PKG_OBJECTS $i" 5351342175Scy ;; 5352342175Scy *) 5353342175Scy # check for existence - allows for generic/win/unix VPATH 5354342175Scy # To add more dirs here (like 'src'), you have to update VPATH 5355342175Scy # in Makefile.in as well 5356342175Scy if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 5357342175Scy -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 5358342175Scy -a ! -f "${srcdir}/macosx/$i" \ 5359342175Scy ; then 5360342175Scy as_fn_error $? "could not find source file '$i'" "$LINENO" 5 5361342175Scy fi 5362342175Scy PKG_SOURCES="$PKG_SOURCES $i" 5363342175Scy # this assumes it is in a VPATH dir 5364342175Scy i=`basename $i` 5365342175Scy # handle user calling this before or after TEA_SETUP_COMPILER 5366342175Scy if test x"${OBJEXT}" != x ; then 5367342175Scy j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 5368342175Scy else 5369342175Scy j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 5370342175Scy fi 5371342175Scy PKG_OBJECTS="$PKG_OBJECTS $j" 5372342175Scy ;; 5373342175Scy esac 5374342175Scy done 5375342175Scy 5376342175Scy 5377342175Scy 5378342175Scy 5379342175Scy vars="" 5380342175Scy for i in $vars; do 5381342175Scy # check for existence, be strict because it is installed 5382342175Scy if test ! -f "${srcdir}/$i" ; then 5383342175Scy as_fn_error $? "could not find header file '${srcdir}/$i'" "$LINENO" 5 5384342175Scy fi 5385342175Scy PKG_HEADERS="$PKG_HEADERS $i" 5386342175Scy done 5387342175Scy 5388342175Scy 5389342175Scy 5390342175Scy vars="-I\"`\${CYGPATH} \${srcdir}/generic`\"" 5391342175Scy for i in $vars; do 5392342175Scy PKG_INCLUDES="$PKG_INCLUDES $i" 5393342175Scy done 5394342175Scy 5395342175Scy 5396342175Scy 5397342175Scy vars="" 5398342175Scy for i in $vars; do 5399342175Scy if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 5400342175Scy # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 5401342175Scy i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 5402342175Scy fi 5403342175Scy PKG_LIBS="$PKG_LIBS $i" 5404342175Scy done 5405342175Scy 5406342175Scy 5407342175Scy 5408342175Scy PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_FTS3=1" 5409342175Scy 5410342175Scy 5411342175Scy 5412342175Scy PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_3_SUFFIX_ONLY=1" 5413342175Scy 5414342175Scy 5415342175Scy 5416342175Scy PKG_CFLAGS="$PKG_CFLAGS -DSQLITE_ENABLE_RTREE=1" 5417342175Scy 5418342175Scy 5419342175Scy 5420342175Scy vars="" 5421342175Scy for i in $vars; do 5422342175Scy # check for existence - allows for generic/win/unix VPATH 5423342175Scy if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 5424342175Scy -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 5425342175Scy -a ! -f "${srcdir}/macosx/$i" \ 5426342175Scy ; then 5427342175Scy as_fn_error $? "could not find stub source file '$i'" "$LINENO" 5 5428342175Scy fi 5429342175Scy PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 5430342175Scy # this assumes it is in a VPATH dir 5431342175Scy i=`basename $i` 5432342175Scy # handle user calling this before or after TEA_SETUP_COMPILER 5433342175Scy if test x"${OBJEXT}" != x ; then 5434342175Scy j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 5435342175Scy else 5436342175Scy j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 5437342175Scy fi 5438342175Scy PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 5439342175Scy done 5440342175Scy 5441342175Scy 5442342175Scy 5443342175Scy 5444342175Scy vars="" 5445342175Scy for i in $vars; do 5446342175Scy # check for existence, be strict because it is installed 5447342175Scy if test ! -f "${srcdir}/$i" ; then 5448342175Scy as_fn_error $? "could not find tcl source file '${srcdir}/$i'" "$LINENO" 5 5449342175Scy fi 5450342175Scy PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 5451342175Scy done 5452342175Scy 5453342175Scy 5454342175Scy 5455342175Scy#-------------------------------------------------------------------- 5456342175Scy# The --with-system-sqlite causes the TCL bindings to SQLite to use 5457342175Scy# the system shared library for SQLite rather than statically linking 5458342175Scy# against its own private copy. This is dangerous and leads to 5459342175Scy# undersirable dependences and is not recommended. 5460342175Scy# Patchs from rmax. 5461342175Scy#-------------------------------------------------------------------- 5462342175Scy 5463342175Scy# Check whether --with-system-sqlite was given. 5464342175Scyif test "${with_system_sqlite+set}" = set; then : 5465342175Scy withval=$with_system_sqlite; 5466342175Scyelse 5467342175Scy with_system_sqlite=no 5468342175Scyfi 5469342175Scy 5470342175Scyif test x$with_system_sqlite != xno; then 5471342175Scy ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 5472342175Scyif test "x$ac_cv_header_sqlite3_h" = xyes; then : 5473342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5 5474342175Scy$as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; } 5475342175Scyif ${ac_cv_lib_sqlite3_sqlite3_initialize+:} false; then : 5476342175Scy $as_echo_n "(cached) " >&6 5477342175Scyelse 5478342175Scy ac_check_lib_save_LIBS=$LIBS 5479342175ScyLIBS="-lsqlite3 $LIBS" 5480342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481342175Scy/* end confdefs.h. */ 5482342175Scy 5483342175Scy/* Override any GCC internal prototype to avoid an error. 5484342175Scy Use char because int might match the return type of a GCC 5485342175Scy builtin and then its argument prototype would still apply. */ 5486342175Scy#ifdef __cplusplus 5487342175Scyextern "C" 5488342175Scy#endif 5489342175Scychar sqlite3_initialize (); 5490342175Scyint 5491342175Scymain () 5492342175Scy{ 5493342175Scyreturn sqlite3_initialize (); 5494342175Scy ; 5495342175Scy return 0; 5496342175Scy} 5497342175Scy_ACEOF 5498342175Scyif ac_fn_c_try_link "$LINENO"; then : 5499342175Scy ac_cv_lib_sqlite3_sqlite3_initialize=yes 5500342175Scyelse 5501342175Scy ac_cv_lib_sqlite3_sqlite3_initialize=no 5502342175Scyfi 5503342175Scyrm -f core conftest.err conftest.$ac_objext \ 5504342175Scy conftest$ac_exeext conftest.$ac_ext 5505342175ScyLIBS=$ac_check_lib_save_LIBS 5506342175Scyfi 5507342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5 5508342175Scy$as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; } 5509342175Scyif test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = xyes; then : 5510342175Scy $as_echo "#define USE_SYSTEM_SQLITE 1" >>confdefs.h 5511342175Scy 5512342175Scy LIBS="$LIBS -lsqlite3" 5513342175Scyfi 5514342175Scy 5515342175Scyfi 5516342175Scy 5517342175Scy 5518342175Scyfi 5519342175Scy 5520342175Scy#-------------------------------------------------------------------- 5521342175Scy# __CHANGE__ 5522342175Scy# Choose which headers you need. Extension authors should try very 5523342175Scy# hard to only rely on the Tcl public header files. Internal headers 5524342175Scy# contain private data structures and are subject to change without 5525342175Scy# notice. 5526342175Scy# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 5527342175Scy#-------------------------------------------------------------------- 5528342175Scy 5529342175Scy 5530342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl public headers" >&5 5531342175Scy$as_echo_n "checking for Tcl public headers... " >&6; } 5532342175Scy 5533342175Scy 5534342175Scy# Check whether --with-tclinclude was given. 5535342175Scyif test "${with_tclinclude+set}" = set; then : 5536342175Scy withval=$with_tclinclude; with_tclinclude=${withval} 5537342175Scyfi 5538342175Scy 5539342175Scy 5540342175Scy if ${ac_cv_c_tclh+:} false; then : 5541342175Scy $as_echo_n "(cached) " >&6 5542342175Scyelse 5543342175Scy 5544342175Scy # Use the value from --with-tclinclude, if it was given 5545342175Scy 5546342175Scy if test x"${with_tclinclude}" != x ; then 5547342175Scy if test -f "${with_tclinclude}/tcl.h" ; then 5548342175Scy ac_cv_c_tclh=${with_tclinclude} 5549342175Scy else 5550342175Scy as_fn_error $? "${with_tclinclude} directory does not contain tcl.h" "$LINENO" 5 5551342175Scy fi 5552342175Scy else 5553342175Scy list="" 5554342175Scy if test "`uname -s`" = "Darwin"; then 5555342175Scy # If Tcl was built as a framework, attempt to use 5556342175Scy # the framework's Headers directory 5557342175Scy case ${TCL_DEFS} in 5558342175Scy *TCL_FRAMEWORK*) 5559342175Scy list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 5560342175Scy ;; 5561342175Scy esac 5562342175Scy fi 5563342175Scy 5564342175Scy # Look in the source dir only if Tcl is not installed, 5565342175Scy # and in that situation, look there before installed locations. 5566342175Scy if test -f "${TCL_BIN_DIR}/Makefile" ; then 5567342175Scy list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 5568342175Scy fi 5569342175Scy 5570342175Scy # Check order: pkg --prefix location, Tcl's --prefix location, 5571342175Scy # relative to directory of tclConfig.sh. 5572342175Scy 5573342175Scy eval "temp_includedir=${includedir}" 5574342175Scy list="$list \ 5575342175Scy `ls -d ${temp_includedir} 2>/dev/null` \ 5576342175Scy `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 5577342175Scy `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 5578342175Scy if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 5579342175Scy list="$list /usr/local/include /usr/include" 5580342175Scy if test x"${TCL_INCLUDE_SPEC}" != x ; then 5581342175Scy d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 5582342175Scy list="$list `ls -d ${d} 2>/dev/null`" 5583342175Scy fi 5584342175Scy fi 5585342175Scy for i in $list ; do 5586342175Scy if test -f "$i/tcl.h" ; then 5587342175Scy ac_cv_c_tclh=$i 5588342175Scy break 5589342175Scy fi 5590342175Scy done 5591342175Scy fi 5592342175Scy 5593342175Scyfi 5594342175Scy 5595342175Scy 5596342175Scy # Print a message based on how we determined the include path 5597342175Scy 5598342175Scy if test x"${ac_cv_c_tclh}" = x ; then 5599342175Scy as_fn_error $? "tcl.h not found. Please specify its location with --with-tclinclude" "$LINENO" 5 5600342175Scy else 5601342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_c_tclh}" >&5 5602342175Scy$as_echo "${ac_cv_c_tclh}" >&6; } 5603342175Scy fi 5604342175Scy 5605342175Scy # Convert to a native path and substitute into the output files. 5606342175Scy 5607342175Scy INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 5608342175Scy 5609342175Scy TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 5610342175Scy 5611342175Scy 5612342175Scy 5613342175Scy#TEA_PRIVATE_TCL_HEADERS 5614342175Scy 5615342175Scy#TEA_PUBLIC_TK_HEADERS 5616342175Scy#TEA_PRIVATE_TK_HEADERS 5617342175Scy#TEA_PATH_X 5618342175Scy 5619342175Scy#-------------------------------------------------------------------- 5620342175Scy# Check whether --enable-threads or --disable-threads was given. 5621342175Scy# This auto-enables if Tcl was compiled threaded. 5622342175Scy#-------------------------------------------------------------------- 5623342175Scy 5624342175Scy 5625342175Scy # Check whether --enable-threads was given. 5626342175Scyif test "${enable_threads+set}" = set; then : 5627342175Scy enableval=$enable_threads; tcl_ok=$enableval 5628342175Scyelse 5629342175Scy tcl_ok=yes 5630342175Scyfi 5631342175Scy 5632342175Scy 5633342175Scy if test "${enable_threads+set}" = set; then 5634342175Scy enableval="$enable_threads" 5635342175Scy tcl_ok=$enableval 5636342175Scy else 5637342175Scy tcl_ok=yes 5638342175Scy fi 5639342175Scy 5640342175Scy if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 5641342175Scy TCL_THREADS=1 5642342175Scy 5643342175Scy if test "${TEA_PLATFORM}" != "windows" ; then 5644342175Scy # We are always OK on Windows, so check what this platform wants: 5645342175Scy 5646342175Scy # USE_THREAD_ALLOC tells us to try the special thread-based 5647342175Scy # allocator that significantly reduces lock contention 5648342175Scy 5649342175Scy$as_echo "#define USE_THREAD_ALLOC 1" >>confdefs.h 5650342175Scy 5651342175Scy 5652342175Scy$as_echo "#define _REENTRANT 1" >>confdefs.h 5653342175Scy 5654342175Scy if test "`uname -s`" = "SunOS" ; then 5655342175Scy 5656342175Scy$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5657342175Scy 5658342175Scy fi 5659342175Scy 5660342175Scy$as_echo "#define _THREAD_SAFE 1" >>confdefs.h 5661342175Scy 5662342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 5663342175Scy$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } 5664342175Scyif ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : 5665342175Scy $as_echo_n "(cached) " >&6 5666342175Scyelse 5667342175Scy ac_check_lib_save_LIBS=$LIBS 5668342175ScyLIBS="-lpthread $LIBS" 5669342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 5670342175Scy/* end confdefs.h. */ 5671342175Scy 5672342175Scy/* Override any GCC internal prototype to avoid an error. 5673342175Scy Use char because int might match the return type of a GCC 5674342175Scy builtin and then its argument prototype would still apply. */ 5675342175Scy#ifdef __cplusplus 5676342175Scyextern "C" 5677342175Scy#endif 5678342175Scychar pthread_mutex_init (); 5679342175Scyint 5680342175Scymain () 5681342175Scy{ 5682342175Scyreturn pthread_mutex_init (); 5683342175Scy ; 5684342175Scy return 0; 5685342175Scy} 5686342175Scy_ACEOF 5687342175Scyif ac_fn_c_try_link "$LINENO"; then : 5688342175Scy ac_cv_lib_pthread_pthread_mutex_init=yes 5689342175Scyelse 5690342175Scy ac_cv_lib_pthread_pthread_mutex_init=no 5691342175Scyfi 5692342175Scyrm -f core conftest.err conftest.$ac_objext \ 5693342175Scy conftest$ac_exeext conftest.$ac_ext 5694342175ScyLIBS=$ac_check_lib_save_LIBS 5695342175Scyfi 5696342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 5697342175Scy$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 5698342175Scyif test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : 5699342175Scy tcl_ok=yes 5700342175Scyelse 5701342175Scy tcl_ok=no 5702342175Scyfi 5703342175Scy 5704342175Scy if test "$tcl_ok" = "no"; then 5705342175Scy # Check a little harder for __pthread_mutex_init in the same 5706342175Scy # library, as some systems hide it there until pthread.h is 5707342175Scy # defined. We could alternatively do an AC_TRY_COMPILE with 5708342175Scy # pthread.h, but that will work with libpthread really doesn't 5709342175Scy # exist, like AIX 4.2. [Bug: 4359] 5710342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_mutex_init in -lpthread" >&5 5711342175Scy$as_echo_n "checking for __pthread_mutex_init in -lpthread... " >&6; } 5712342175Scyif ${ac_cv_lib_pthread___pthread_mutex_init+:} false; then : 5713342175Scy $as_echo_n "(cached) " >&6 5714342175Scyelse 5715342175Scy ac_check_lib_save_LIBS=$LIBS 5716342175ScyLIBS="-lpthread $LIBS" 5717342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 5718342175Scy/* end confdefs.h. */ 5719342175Scy 5720342175Scy/* Override any GCC internal prototype to avoid an error. 5721342175Scy Use char because int might match the return type of a GCC 5722342175Scy builtin and then its argument prototype would still apply. */ 5723342175Scy#ifdef __cplusplus 5724342175Scyextern "C" 5725342175Scy#endif 5726342175Scychar __pthread_mutex_init (); 5727342175Scyint 5728342175Scymain () 5729342175Scy{ 5730342175Scyreturn __pthread_mutex_init (); 5731342175Scy ; 5732342175Scy return 0; 5733342175Scy} 5734342175Scy_ACEOF 5735342175Scyif ac_fn_c_try_link "$LINENO"; then : 5736342175Scy ac_cv_lib_pthread___pthread_mutex_init=yes 5737342175Scyelse 5738342175Scy ac_cv_lib_pthread___pthread_mutex_init=no 5739342175Scyfi 5740342175Scyrm -f core conftest.err conftest.$ac_objext \ 5741342175Scy conftest$ac_exeext conftest.$ac_ext 5742342175ScyLIBS=$ac_check_lib_save_LIBS 5743342175Scyfi 5744342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 5745342175Scy$as_echo "$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 5746342175Scyif test "x$ac_cv_lib_pthread___pthread_mutex_init" = xyes; then : 5747342175Scy tcl_ok=yes 5748342175Scyelse 5749342175Scy tcl_ok=no 5750342175Scyfi 5751342175Scy 5752342175Scy fi 5753342175Scy 5754342175Scy if test "$tcl_ok" = "yes"; then 5755342175Scy # The space is needed 5756342175Scy THREADS_LIBS=" -lpthread" 5757342175Scy else 5758342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthreads" >&5 5759342175Scy$as_echo_n "checking for pthread_mutex_init in -lpthreads... " >&6; } 5760342175Scyif ${ac_cv_lib_pthreads_pthread_mutex_init+:} false; then : 5761342175Scy $as_echo_n "(cached) " >&6 5762342175Scyelse 5763342175Scy ac_check_lib_save_LIBS=$LIBS 5764342175ScyLIBS="-lpthreads $LIBS" 5765342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 5766342175Scy/* end confdefs.h. */ 5767342175Scy 5768342175Scy/* Override any GCC internal prototype to avoid an error. 5769342175Scy Use char because int might match the return type of a GCC 5770342175Scy builtin and then its argument prototype would still apply. */ 5771342175Scy#ifdef __cplusplus 5772342175Scyextern "C" 5773342175Scy#endif 5774342175Scychar pthread_mutex_init (); 5775342175Scyint 5776342175Scymain () 5777342175Scy{ 5778342175Scyreturn pthread_mutex_init (); 5779342175Scy ; 5780342175Scy return 0; 5781342175Scy} 5782342175Scy_ACEOF 5783342175Scyif ac_fn_c_try_link "$LINENO"; then : 5784342175Scy ac_cv_lib_pthreads_pthread_mutex_init=yes 5785342175Scyelse 5786342175Scy ac_cv_lib_pthreads_pthread_mutex_init=no 5787342175Scyfi 5788342175Scyrm -f core conftest.err conftest.$ac_objext \ 5789342175Scy conftest$ac_exeext conftest.$ac_ext 5790342175ScyLIBS=$ac_check_lib_save_LIBS 5791342175Scyfi 5792342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 5793342175Scy$as_echo "$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 5794342175Scyif test "x$ac_cv_lib_pthreads_pthread_mutex_init" = xyes; then : 5795342175Scy tcl_ok=yes 5796342175Scyelse 5797342175Scy tcl_ok=no 5798342175Scyfi 5799342175Scy 5800342175Scy if test "$tcl_ok" = "yes"; then 5801342175Scy # The space is needed 5802342175Scy THREADS_LIBS=" -lpthreads" 5803342175Scy else 5804342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5 5805342175Scy$as_echo_n "checking for pthread_mutex_init in -lc... " >&6; } 5806342175Scyif ${ac_cv_lib_c_pthread_mutex_init+:} false; then : 5807342175Scy $as_echo_n "(cached) " >&6 5808342175Scyelse 5809342175Scy ac_check_lib_save_LIBS=$LIBS 5810342175ScyLIBS="-lc $LIBS" 5811342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 5812342175Scy/* end confdefs.h. */ 5813342175Scy 5814342175Scy/* Override any GCC internal prototype to avoid an error. 5815342175Scy Use char because int might match the return type of a GCC 5816342175Scy builtin and then its argument prototype would still apply. */ 5817342175Scy#ifdef __cplusplus 5818342175Scyextern "C" 5819342175Scy#endif 5820342175Scychar pthread_mutex_init (); 5821342175Scyint 5822342175Scymain () 5823342175Scy{ 5824342175Scyreturn pthread_mutex_init (); 5825342175Scy ; 5826342175Scy return 0; 5827342175Scy} 5828342175Scy_ACEOF 5829342175Scyif ac_fn_c_try_link "$LINENO"; then : 5830342175Scy ac_cv_lib_c_pthread_mutex_init=yes 5831342175Scyelse 5832342175Scy ac_cv_lib_c_pthread_mutex_init=no 5833342175Scyfi 5834342175Scyrm -f core conftest.err conftest.$ac_objext \ 5835342175Scy conftest$ac_exeext conftest.$ac_ext 5836342175ScyLIBS=$ac_check_lib_save_LIBS 5837342175Scyfi 5838342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5 5839342175Scy$as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; } 5840342175Scyif test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then : 5841342175Scy tcl_ok=yes 5842342175Scyelse 5843342175Scy tcl_ok=no 5844342175Scyfi 5845342175Scy 5846342175Scy if test "$tcl_ok" = "no"; then 5847342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc_r" >&5 5848342175Scy$as_echo_n "checking for pthread_mutex_init in -lc_r... " >&6; } 5849342175Scyif ${ac_cv_lib_c_r_pthread_mutex_init+:} false; then : 5850342175Scy $as_echo_n "(cached) " >&6 5851342175Scyelse 5852342175Scy ac_check_lib_save_LIBS=$LIBS 5853342175ScyLIBS="-lc_r $LIBS" 5854342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 5855342175Scy/* end confdefs.h. */ 5856342175Scy 5857342175Scy/* Override any GCC internal prototype to avoid an error. 5858342175Scy Use char because int might match the return type of a GCC 5859342175Scy builtin and then its argument prototype would still apply. */ 5860342175Scy#ifdef __cplusplus 5861342175Scyextern "C" 5862342175Scy#endif 5863342175Scychar pthread_mutex_init (); 5864342175Scyint 5865342175Scymain () 5866342175Scy{ 5867342175Scyreturn pthread_mutex_init (); 5868342175Scy ; 5869342175Scy return 0; 5870342175Scy} 5871342175Scy_ACEOF 5872342175Scyif ac_fn_c_try_link "$LINENO"; then : 5873342175Scy ac_cv_lib_c_r_pthread_mutex_init=yes 5874342175Scyelse 5875342175Scy ac_cv_lib_c_r_pthread_mutex_init=no 5876342175Scyfi 5877342175Scyrm -f core conftest.err conftest.$ac_objext \ 5878342175Scy conftest$ac_exeext conftest.$ac_ext 5879342175ScyLIBS=$ac_check_lib_save_LIBS 5880342175Scyfi 5881342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 5882342175Scy$as_echo "$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 5883342175Scyif test "x$ac_cv_lib_c_r_pthread_mutex_init" = xyes; then : 5884342175Scy tcl_ok=yes 5885342175Scyelse 5886342175Scy tcl_ok=no 5887342175Scyfi 5888342175Scy 5889342175Scy if test "$tcl_ok" = "yes"; then 5890342175Scy # The space is needed 5891342175Scy THREADS_LIBS=" -pthread" 5892342175Scy else 5893342175Scy TCL_THREADS=0 5894342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 5895342175Scy$as_echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 5896342175Scy fi 5897342175Scy fi 5898342175Scy fi 5899342175Scy fi 5900342175Scy fi 5901342175Scy else 5902342175Scy TCL_THREADS=0 5903342175Scy fi 5904342175Scy # Do checking message here to not mess up interleaved configure output 5905342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for building with threads" >&5 5906342175Scy$as_echo_n "checking for building with threads... " >&6; } 5907342175Scy if test "${TCL_THREADS}" = 1; then 5908342175Scy 5909342175Scy$as_echo "#define TCL_THREADS 1" >>confdefs.h 5910342175Scy 5911342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 5912342175Scy$as_echo "yes (default)" >&6; } 5913342175Scy else 5914342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5915342175Scy$as_echo "no" >&6; } 5916342175Scy fi 5917342175Scy # TCL_THREADS sanity checking. See if our request for building with 5918342175Scy # threads is the same as the way Tcl was built. If not, warn the user. 5919342175Scy case ${TCL_DEFS} in 5920342175Scy *THREADS=1*) 5921342175Scy if test "${TCL_THREADS}" = "0"; then 5922342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 5923342175Scy Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 5924342175Scy that IS thread-enabled. It is recommended to use --enable-threads." >&5 5925342175Scy$as_echo "$as_me: WARNING: 5926342175Scy Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 5927342175Scy that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 5928342175Scy fi 5929342175Scy ;; 5930342175Scy *) 5931342175Scy if test "${TCL_THREADS}" = "1"; then 5932342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 5933342175Scy --enable-threads requested, but building against a Tcl that is NOT 5934342175Scy thread-enabled. This is an OK configuration that will also run in 5935342175Scy a thread-enabled core." >&5 5936342175Scy$as_echo "$as_me: WARNING: 5937342175Scy --enable-threads requested, but building against a Tcl that is NOT 5938342175Scy thread-enabled. This is an OK configuration that will also run in 5939342175Scy a thread-enabled core." >&2;} 5940342175Scy fi 5941342175Scy ;; 5942342175Scy esac 5943342175Scy 5944342175Scy 5945342175Scyif test "${TCL_THREADS}" = "1" ; then 5946342175Scy 5947342175Scy$as_echo "#define SQLITE_THREADSAFE 1" >>confdefs.h 5948342175Scy 5949342175Scy # Not automatically added by Tcl because its assumed Tcl links to them, 5950342175Scy # but it may not if it isn't really a threaded build. 5951342175Scy 5952342175Scy vars="$THREADS_LIBS" 5953342175Scy for i in $vars; do 5954342175Scy if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 5955342175Scy # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 5956342175Scy i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 5957342175Scy fi 5958342175Scy PKG_LIBS="$PKG_LIBS $i" 5959342175Scy done 5960342175Scy 5961342175Scy 5962342175Scyelse 5963342175Scy 5964342175Scy$as_echo "#define SQLITE_THREADSAFE 0" >>confdefs.h 5965342175Scy 5966342175Scyfi 5967342175Scy 5968342175Scy#-------------------------------------------------------------------- 5969342175Scy# The statement below defines a collection of symbols related to 5970342175Scy# building as a shared library instead of a static library. 5971342175Scy#-------------------------------------------------------------------- 5972342175Scy 5973342175Scy 5974342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 5975342175Scy$as_echo_n "checking how to build libraries... " >&6; } 5976342175Scy # Check whether --enable-shared was given. 5977342175Scyif test "${enable_shared+set}" = set; then : 5978342175Scy enableval=$enable_shared; tcl_ok=$enableval 5979342175Scyelse 5980342175Scy tcl_ok=yes 5981342175Scyfi 5982342175Scy 5983342175Scy 5984342175Scy if test "${enable_shared+set}" = set; then 5985342175Scy enableval="$enable_shared" 5986342175Scy tcl_ok=$enableval 5987342175Scy else 5988342175Scy tcl_ok=yes 5989342175Scy fi 5990342175Scy 5991342175Scy if test "$tcl_ok" = "yes" ; then 5992342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 5993342175Scy$as_echo "shared" >&6; } 5994342175Scy SHARED_BUILD=1 5995342175Scy else 5996342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 5997342175Scy$as_echo "static" >&6; } 5998342175Scy SHARED_BUILD=0 5999342175Scy 6000342175Scy$as_echo "#define STATIC_BUILD 1" >>confdefs.h 6001342175Scy 6002342175Scy fi 6003342175Scy 6004342175Scy 6005342175Scy 6006342175Scy#-------------------------------------------------------------------- 6007342175Scy# This macro figures out what flags to use with the compiler/linker 6008342175Scy# when building shared/static debug/optimized objects. This information 6009342175Scy# can be taken from the tclConfig.sh file, but this figures it all out. 6010342175Scy#-------------------------------------------------------------------- 6011342175Scy 6012342175Scyif test -n "$ac_tool_prefix"; then 6013342175Scy # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6014342175Scyset dummy ${ac_tool_prefix}ranlib; ac_word=$2 6015342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6016342175Scy$as_echo_n "checking for $ac_word... " >&6; } 6017342175Scyif ${ac_cv_prog_RANLIB+:} false; then : 6018342175Scy $as_echo_n "(cached) " >&6 6019342175Scyelse 6020342175Scy if test -n "$RANLIB"; then 6021342175Scy ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6022342175Scyelse 6023342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6024342175Scyfor as_dir in $PATH 6025342175Scydo 6026342175Scy IFS=$as_save_IFS 6027342175Scy test -z "$as_dir" && as_dir=. 6028342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 6029342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6030342175Scy ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6031342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6032342175Scy break 2 6033342175Scy fi 6034342175Scydone 6035342175Scy done 6036342175ScyIFS=$as_save_IFS 6037342175Scy 6038342175Scyfi 6039342175Scyfi 6040342175ScyRANLIB=$ac_cv_prog_RANLIB 6041342175Scyif test -n "$RANLIB"; then 6042342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6043342175Scy$as_echo "$RANLIB" >&6; } 6044342175Scyelse 6045342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6046342175Scy$as_echo "no" >&6; } 6047342175Scyfi 6048342175Scy 6049342175Scy 6050342175Scyfi 6051342175Scyif test -z "$ac_cv_prog_RANLIB"; then 6052342175Scy ac_ct_RANLIB=$RANLIB 6053342175Scy # Extract the first word of "ranlib", so it can be a program name with args. 6054342175Scyset dummy ranlib; ac_word=$2 6055342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6056342175Scy$as_echo_n "checking for $ac_word... " >&6; } 6057342175Scyif ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6058342175Scy $as_echo_n "(cached) " >&6 6059342175Scyelse 6060342175Scy if test -n "$ac_ct_RANLIB"; then 6061342175Scy ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6062342175Scyelse 6063342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6064342175Scyfor as_dir in $PATH 6065342175Scydo 6066342175Scy IFS=$as_save_IFS 6067342175Scy test -z "$as_dir" && as_dir=. 6068342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 6069342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6070342175Scy ac_cv_prog_ac_ct_RANLIB="ranlib" 6071342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6072342175Scy break 2 6073342175Scy fi 6074342175Scydone 6075342175Scy done 6076342175ScyIFS=$as_save_IFS 6077342175Scy 6078342175Scyfi 6079342175Scyfi 6080342175Scyac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6081342175Scyif test -n "$ac_ct_RANLIB"; then 6082342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6083342175Scy$as_echo "$ac_ct_RANLIB" >&6; } 6084342175Scyelse 6085342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6086342175Scy$as_echo "no" >&6; } 6087342175Scyfi 6088342175Scy 6089342175Scy if test "x$ac_ct_RANLIB" = x; then 6090342175Scy RANLIB=":" 6091342175Scy else 6092342175Scy case $cross_compiling:$ac_tool_warned in 6093342175Scyyes:) 6094342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6095342175Scy$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6096342175Scyac_tool_warned=yes ;; 6097342175Scyesac 6098342175Scy RANLIB=$ac_ct_RANLIB 6099342175Scy fi 6100342175Scyelse 6101342175Scy RANLIB="$ac_cv_prog_RANLIB" 6102342175Scyfi 6103342175Scy 6104342175Scy 6105342175Scy 6106342175Scy 6107342175Scy # Step 0.a: Enable 64 bit support? 6108342175Scy 6109342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 6110342175Scy$as_echo_n "checking if 64bit support is requested... " >&6; } 6111342175Scy # Check whether --enable-64bit was given. 6112342175Scyif test "${enable_64bit+set}" = set; then : 6113342175Scy enableval=$enable_64bit; do64bit=$enableval 6114342175Scyelse 6115342175Scy do64bit=no 6116342175Scyfi 6117342175Scy 6118342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 6119342175Scy$as_echo "$do64bit" >&6; } 6120342175Scy 6121342175Scy # Step 0.b: Enable Solaris 64 bit VIS support? 6122342175Scy 6123342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 6124342175Scy$as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } 6125342175Scy # Check whether --enable-64bit-vis was given. 6126342175Scyif test "${enable_64bit_vis+set}" = set; then : 6127342175Scy enableval=$enable_64bit_vis; do64bitVIS=$enableval 6128342175Scyelse 6129342175Scy do64bitVIS=no 6130342175Scyfi 6131342175Scy 6132342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 6133342175Scy$as_echo "$do64bitVIS" >&6; } 6134342175Scy # Force 64bit on with VIS 6135342175Scy if test "$do64bitVIS" = "yes"; then : 6136342175Scy do64bit=yes 6137342175Scyfi 6138342175Scy 6139342175Scy # Step 0.c: Check if visibility support is available. Do this here so 6140342175Scy # that platform specific alternatives can be used below if this fails. 6141342175Scy 6142342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports visibility \"hidden\"" >&5 6143342175Scy$as_echo_n "checking if compiler supports visibility \"hidden\"... " >&6; } 6144342175Scyif ${tcl_cv_cc_visibility_hidden+:} false; then : 6145342175Scy $as_echo_n "(cached) " >&6 6146342175Scyelse 6147342175Scy 6148342175Scy hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 6149342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6150342175Scy/* end confdefs.h. */ 6151342175Scy 6152342175Scy extern __attribute__((__visibility__("hidden"))) void f(void); 6153342175Scy void f(void) {} 6154342175Scyint 6155342175Scymain () 6156342175Scy{ 6157342175Scyf(); 6158342175Scy ; 6159342175Scy return 0; 6160342175Scy} 6161342175Scy_ACEOF 6162342175Scyif ac_fn_c_try_link "$LINENO"; then : 6163342175Scy tcl_cv_cc_visibility_hidden=yes 6164342175Scyelse 6165342175Scy tcl_cv_cc_visibility_hidden=no 6166342175Scyfi 6167342175Scyrm -f core conftest.err conftest.$ac_objext \ 6168342175Scy conftest$ac_exeext conftest.$ac_ext 6169342175Scy CFLAGS=$hold_cflags 6170342175Scyfi 6171342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_visibility_hidden" >&5 6172342175Scy$as_echo "$tcl_cv_cc_visibility_hidden" >&6; } 6173342175Scy if test $tcl_cv_cc_visibility_hidden = yes; then : 6174342175Scy 6175342175Scy 6176342175Scy$as_echo "#define MODULE_SCOPE extern __attribute__((__visibility__(\"hidden\")))" >>confdefs.h 6177342175Scy 6178342175Scy 6179342175Scy$as_echo "#define HAVE_HIDDEN 1" >>confdefs.h 6180342175Scy 6181342175Scy 6182342175Scyfi 6183342175Scy 6184342175Scy # Step 0.d: Disable -rpath support? 6185342175Scy 6186342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if rpath support is requested" >&5 6187342175Scy$as_echo_n "checking if rpath support is requested... " >&6; } 6188342175Scy # Check whether --enable-rpath was given. 6189342175Scyif test "${enable_rpath+set}" = set; then : 6190342175Scy enableval=$enable_rpath; doRpath=$enableval 6191342175Scyelse 6192342175Scy doRpath=yes 6193342175Scyfi 6194342175Scy 6195342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doRpath" >&5 6196342175Scy$as_echo "$doRpath" >&6; } 6197342175Scy 6198342175Scy # TEA specific: Cross-compiling options for Windows/CE builds? 6199342175Scy 6200342175Scy if test "${TEA_PLATFORM}" = windows; then : 6201342175Scy 6202342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Windows/CE build is requested" >&5 6203342175Scy$as_echo_n "checking if Windows/CE build is requested... " >&6; } 6204342175Scy # Check whether --enable-wince was given. 6205342175Scyif test "${enable_wince+set}" = set; then : 6206342175Scy enableval=$enable_wince; doWince=$enableval 6207342175Scyelse 6208342175Scy doWince=no 6209342175Scyfi 6210342175Scy 6211342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doWince" >&5 6212342175Scy$as_echo "$doWince" >&6; } 6213342175Scy 6214342175Scyfi 6215342175Scy 6216342175Scy # Set the variable "system" to hold the name and version number 6217342175Scy # for the system. 6218342175Scy 6219342175Scy 6220342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 6221342175Scy$as_echo_n "checking system version... " >&6; } 6222342175Scyif ${tcl_cv_sys_version+:} false; then : 6223342175Scy $as_echo_n "(cached) " >&6 6224342175Scyelse 6225342175Scy 6226342175Scy # TEA specific: 6227342175Scy if test "${TEA_PLATFORM}" = "windows" ; then 6228342175Scy tcl_cv_sys_version=windows 6229342175Scy else 6230342175Scy tcl_cv_sys_version=`uname -s`-`uname -r` 6231342175Scy if test "$?" -ne 0 ; then 6232342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 6233342175Scy$as_echo "$as_me: WARNING: can't find uname command" >&2;} 6234342175Scy tcl_cv_sys_version=unknown 6235342175Scy else 6236342175Scy if test "`uname -s`" = "AIX" ; then 6237342175Scy tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 6238342175Scy fi 6239342175Scy fi 6240342175Scy fi 6241342175Scy 6242342175Scyfi 6243342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 6244342175Scy$as_echo "$tcl_cv_sys_version" >&6; } 6245342175Scy system=$tcl_cv_sys_version 6246342175Scy 6247342175Scy 6248342175Scy # Require ranlib early so we can override it in special cases below. 6249342175Scy 6250342175Scy 6251342175Scy 6252342175Scy # Set configuration options based on system name and version. 6253342175Scy # This is similar to Tcl's unix/tcl.m4 except that we've added a 6254342175Scy # "windows" case and removed some core-only vars. 6255342175Scy 6256342175Scy do64bit_ok=no 6257342175Scy # default to '{$LIBS}' and set to "" on per-platform necessary basis 6258342175Scy SHLIB_LD_LIBS='${LIBS}' 6259342175Scy # When ld needs options to work in 64-bit mode, put them in 6260342175Scy # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 6261342175Scy # is disabled by the user. [Bug 1016796] 6262342175Scy LDFLAGS_ARCH="" 6263342175Scy UNSHARED_LIB_SUFFIX="" 6264342175Scy # TEA specific: use PACKAGE_VERSION instead of VERSION 6265342175Scy TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 6266342175Scy ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 6267342175Scy TCL_LIB_VERSIONS_OK=ok 6268342175Scy CFLAGS_DEBUG=-g 6269342175Scy if test "$GCC" = yes; then : 6270342175Scy 6271342175Scy CFLAGS_OPTIMIZE=-O2 6272342175Scy CFLAGS_WARNING="-Wall" 6273342175Scy 6274342175Scyelse 6275342175Scy 6276342175Scy CFLAGS_OPTIMIZE=-O 6277342175Scy CFLAGS_WARNING="" 6278342175Scy 6279342175Scyfi 6280342175Scy if test -n "$ac_tool_prefix"; then 6281342175Scy # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6282342175Scyset dummy ${ac_tool_prefix}ar; ac_word=$2 6283342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6284342175Scy$as_echo_n "checking for $ac_word... " >&6; } 6285342175Scyif ${ac_cv_prog_AR+:} false; then : 6286342175Scy $as_echo_n "(cached) " >&6 6287342175Scyelse 6288342175Scy if test -n "$AR"; then 6289342175Scy ac_cv_prog_AR="$AR" # Let the user override the test. 6290342175Scyelse 6291342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6292342175Scyfor as_dir in $PATH 6293342175Scydo 6294342175Scy IFS=$as_save_IFS 6295342175Scy test -z "$as_dir" && as_dir=. 6296342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 6297342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6298342175Scy ac_cv_prog_AR="${ac_tool_prefix}ar" 6299342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6300342175Scy break 2 6301342175Scy fi 6302342175Scydone 6303342175Scy done 6304342175ScyIFS=$as_save_IFS 6305342175Scy 6306342175Scyfi 6307342175Scyfi 6308342175ScyAR=$ac_cv_prog_AR 6309342175Scyif test -n "$AR"; then 6310342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6311342175Scy$as_echo "$AR" >&6; } 6312342175Scyelse 6313342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6314342175Scy$as_echo "no" >&6; } 6315342175Scyfi 6316342175Scy 6317342175Scy 6318342175Scyfi 6319342175Scyif test -z "$ac_cv_prog_AR"; then 6320342175Scy ac_ct_AR=$AR 6321342175Scy # Extract the first word of "ar", so it can be a program name with args. 6322342175Scyset dummy ar; ac_word=$2 6323342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6324342175Scy$as_echo_n "checking for $ac_word... " >&6; } 6325342175Scyif ${ac_cv_prog_ac_ct_AR+:} false; then : 6326342175Scy $as_echo_n "(cached) " >&6 6327342175Scyelse 6328342175Scy if test -n "$ac_ct_AR"; then 6329342175Scy ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6330342175Scyelse 6331342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6332342175Scyfor as_dir in $PATH 6333342175Scydo 6334342175Scy IFS=$as_save_IFS 6335342175Scy test -z "$as_dir" && as_dir=. 6336342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 6337342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6338342175Scy ac_cv_prog_ac_ct_AR="ar" 6339342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6340342175Scy break 2 6341342175Scy fi 6342342175Scydone 6343342175Scy done 6344342175ScyIFS=$as_save_IFS 6345342175Scy 6346342175Scyfi 6347342175Scyfi 6348342175Scyac_ct_AR=$ac_cv_prog_ac_ct_AR 6349342175Scyif test -n "$ac_ct_AR"; then 6350342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6351342175Scy$as_echo "$ac_ct_AR" >&6; } 6352342175Scyelse 6353342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6354342175Scy$as_echo "no" >&6; } 6355342175Scyfi 6356342175Scy 6357342175Scy if test "x$ac_ct_AR" = x; then 6358342175Scy AR="" 6359342175Scy else 6360342175Scy case $cross_compiling:$ac_tool_warned in 6361342175Scyyes:) 6362342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6363342175Scy$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6364342175Scyac_tool_warned=yes ;; 6365342175Scyesac 6366342175Scy AR=$ac_ct_AR 6367342175Scy fi 6368342175Scyelse 6369342175Scy AR="$ac_cv_prog_AR" 6370342175Scyfi 6371342175Scy 6372342175Scy STLIB_LD='${AR} cr' 6373342175Scy LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 6374342175Scy if test "x$SHLIB_VERSION" = x; then : 6375342175Scy SHLIB_VERSION="1.0" 6376342175Scyfi 6377342175Scy case $system in 6378342175Scy # TEA specific: 6379342175Scy windows) 6380342175Scy # This is a 2-stage check to make sure we have the 64-bit SDK 6381342175Scy # We have to know where the SDK is installed. 6382342175Scy # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 6383342175Scy # MACHINE is IX86 for LINK, but this is used by the manifest, 6384342175Scy # which requires x86|amd64|ia64. 6385342175Scy MACHINE="X86" 6386342175Scy if test "$do64bit" != "no" ; then 6387342175Scy if test "x${MSSDK}x" = "xx" ; then 6388342175Scy MSSDK="C:/Progra~1/Microsoft Platform SDK" 6389342175Scy fi 6390342175Scy MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 6391342175Scy PATH64="" 6392342175Scy case "$do64bit" in 6393342175Scy amd64|x64|yes) 6394342175Scy MACHINE="AMD64" ; # default to AMD64 64-bit build 6395342175Scy PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 6396342175Scy ;; 6397342175Scy ia64) 6398342175Scy MACHINE="IA64" 6399342175Scy PATH64="${MSSDK}/Bin/Win64" 6400342175Scy ;; 6401342175Scy esac 6402342175Scy if test "$GCC" != "yes" -a ! -d "${PATH64}" ; then 6403342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 6404342175Scy$as_echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 6405342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ensure latest Platform SDK is installed" >&5 6406342175Scy$as_echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 6407342175Scy do64bit="no" 6408342175Scy else 6409342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using 64-bit $MACHINE mode" >&5 6410342175Scy$as_echo " Using 64-bit $MACHINE mode" >&6; } 6411342175Scy do64bit_ok="yes" 6412342175Scy fi 6413342175Scy fi 6414342175Scy 6415342175Scy if test "$doWince" != "no" ; then 6416342175Scy if test "$do64bit" != "no" ; then 6417342175Scy as_fn_error $? "Windows/CE and 64-bit builds incompatible" "$LINENO" 5 6418342175Scy fi 6419342175Scy if test "$GCC" = "yes" ; then 6420342175Scy as_fn_error $? "Windows/CE and GCC builds incompatible" "$LINENO" 5 6421342175Scy fi 6422342175Scy 6423342175Scy # First, look for one uninstalled. 6424342175Scy # the alternative search directory is invoked by --with-celib 6425342175Scy 6426342175Scy if test x"${no_celib}" = x ; then 6427342175Scy # we reset no_celib in case something fails here 6428342175Scy no_celib=true 6429342175Scy 6430342175Scy# Check whether --with-celib was given. 6431342175Scyif test "${with_celib+set}" = set; then : 6432342175Scy withval=$with_celib; with_celibconfig=${withval} 6433342175Scyfi 6434342175Scy 6435342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows/CE celib directory" >&5 6436342175Scy$as_echo_n "checking for Windows/CE celib directory... " >&6; } 6437342175Scy if ${ac_cv_c_celibconfig+:} false; then : 6438342175Scy $as_echo_n "(cached) " >&6 6439342175Scyelse 6440342175Scy 6441342175Scy # First check to see if --with-celibconfig was specified. 6442342175Scy if test x"${with_celibconfig}" != x ; then 6443342175Scy if test -d "${with_celibconfig}/inc" ; then 6444342175Scy ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 6445342175Scy else 6446342175Scy as_fn_error $? "${with_celibconfig} directory doesn't contain inc directory" "$LINENO" 5 6447342175Scy fi 6448342175Scy fi 6449342175Scy 6450342175Scy # then check for a celib library 6451342175Scy if test x"${ac_cv_c_celibconfig}" = x ; then 6452342175Scy for i in \ 6453342175Scy ../celib-palm-3.0 \ 6454342175Scy ../celib \ 6455342175Scy ../../celib-palm-3.0 \ 6456342175Scy ../../celib \ 6457342175Scy `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 6458342175Scy ${srcdir}/../celib-palm-3.0 \ 6459342175Scy ${srcdir}/../celib \ 6460342175Scy `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 6461342175Scy ; do 6462342175Scy if test -d "$i/inc" ; then 6463342175Scy ac_cv_c_celibconfig=`(cd $i; pwd)` 6464342175Scy break 6465342175Scy fi 6466342175Scy done 6467342175Scy fi 6468342175Scy 6469342175Scyfi 6470342175Scy 6471342175Scy if test x"${ac_cv_c_celibconfig}" = x ; then 6472342175Scy as_fn_error $? "Cannot find celib support library directory" "$LINENO" 5 6473342175Scy else 6474342175Scy no_celib= 6475342175Scy CELIB_DIR=${ac_cv_c_celibconfig} 6476342175Scy CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 6477342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $CELIB_DIR" >&5 6478342175Scy$as_echo "found $CELIB_DIR" >&6; } 6479342175Scy fi 6480342175Scy fi 6481342175Scy 6482342175Scy # Set defaults for common evc4/PPC2003 setup 6483342175Scy # Currently Tcl requires 300+, possibly 420+ for sockets 6484342175Scy CEVERSION=420; # could be 211 300 301 400 420 ... 6485342175Scy TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 6486342175Scy ARCH=ARM; # could be ARM MIPS X86EM ... 6487342175Scy PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 6488342175Scy if test "$doWince" != "yes"; then 6489342175Scy # If !yes then the user specified something 6490342175Scy # Reset ARCH to allow user to skip specifying it 6491342175Scy ARCH= 6492342175Scy eval `echo $doWince | awk -F, '{ \ 6493342175Scy if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 6494342175Scy if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 6495342175Scy if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 6496342175Scy if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 6497342175Scy if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 6498342175Scy }'` 6499342175Scy if test "x${ARCH}" = "x" ; then 6500342175Scy ARCH=$TARGETCPU; 6501342175Scy fi 6502342175Scy fi 6503342175Scy OSVERSION=WCE$CEVERSION; 6504342175Scy if test "x${WCEROOT}" = "x" ; then 6505342175Scy WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 6506342175Scy if test ! -d "${WCEROOT}" ; then 6507342175Scy WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 6508342175Scy fi 6509342175Scy fi 6510342175Scy if test "x${SDKROOT}" = "x" ; then 6511342175Scy SDKROOT="C:/Program Files/Windows CE Tools" 6512342175Scy if test ! -d "${SDKROOT}" ; then 6513342175Scy SDKROOT="C:/Windows CE Tools" 6514342175Scy fi 6515342175Scy fi 6516342175Scy WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 6517342175Scy SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 6518342175Scy if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 6519342175Scy -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 6520342175Scy as_fn_error $? "could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" "$LINENO" 5 6521342175Scy doWince="no" 6522342175Scy else 6523342175Scy # We could PATH_NOSPACE these, but that's not important, 6524342175Scy # as long as we quote them when used. 6525342175Scy CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 6526342175Scy if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 6527342175Scy CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 6528342175Scy fi 6529342175Scy CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 6530342175Scy fi 6531342175Scy fi 6532342175Scy 6533342175Scy if test "$GCC" != "yes" ; then 6534342175Scy if test "${SHARED_BUILD}" = "0" ; then 6535342175Scy runtime=-MT 6536342175Scy else 6537342175Scy runtime=-MD 6538342175Scy fi 6539342175Scy 6540342175Scy if test "$do64bit" != "no" ; then 6541342175Scy # All this magic is necessary for the Win64 SDK RC1 - hobbs 6542342175Scy CC="\"${PATH64}/cl.exe\"" 6543342175Scy CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 6544342175Scy RC="\"${MSSDK}/bin/rc.exe\"" 6545342175Scy lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 6546342175Scy LINKBIN="\"${PATH64}/link.exe\"" 6547342175Scy CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 6548342175Scy CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 6549342175Scy # Avoid 'unresolved external symbol __security_cookie' 6550342175Scy # errors, c.f. http://support.microsoft.com/?id=894573 6551342175Scy 6552342175Scy vars="bufferoverflowU.lib" 6553342175Scy for i in $vars; do 6554342175Scy if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6555342175Scy # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6556342175Scy i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6557342175Scy fi 6558342175Scy PKG_LIBS="$PKG_LIBS $i" 6559342175Scy done 6560342175Scy 6561342175Scy 6562342175Scy elif test "$doWince" != "no" ; then 6563342175Scy CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 6564342175Scy if test "${TARGETCPU}" = "X86"; then 6565342175Scy CC="\"${CEBINROOT}/cl.exe\"" 6566342175Scy else 6567342175Scy CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 6568342175Scy fi 6569342175Scy CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 6570342175Scy RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 6571342175Scy arch=`echo ${ARCH} | awk '{print tolower($0)}'` 6572342175Scy defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 6573342175Scy if test "${SHARED_BUILD}" = "1" ; then 6574342175Scy # Static CE builds require static celib as well 6575342175Scy defs="${defs} _DLL" 6576342175Scy fi 6577342175Scy for i in $defs ; do 6578342175Scy 6579342175Scycat >>confdefs.h <<_ACEOF 6580342175Scy#define $i 1 6581342175Scy_ACEOF 6582342175Scy 6583342175Scy done 6584342175Scy 6585342175Scycat >>confdefs.h <<_ACEOF 6586342175Scy#define _WIN32_WCE $CEVERSION 6587342175Scy_ACEOF 6588342175Scy 6589342175Scy 6590342175Scycat >>confdefs.h <<_ACEOF 6591342175Scy#define UNDER_CE $CEVERSION 6592342175Scy_ACEOF 6593342175Scy 6594342175Scy CFLAGS_DEBUG="-nologo -Zi -Od" 6595342175Scy CFLAGS_OPTIMIZE="-nologo -Ox" 6596342175Scy lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 6597342175Scy lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 6598342175Scy LINKBIN="\"${CEBINROOT}/link.exe\"" 6599342175Scy 6600342175Scy else 6601342175Scy RC="rc" 6602342175Scy lflags="-nologo" 6603342175Scy LINKBIN="link" 6604342175Scy CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 6605342175Scy CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 6606342175Scy fi 6607342175Scy fi 6608342175Scy 6609342175Scy if test "$GCC" = "yes"; then 6610342175Scy # mingw gcc mode 6611342175Scy if test -n "$ac_tool_prefix"; then 6612342175Scy # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 6613342175Scyset dummy ${ac_tool_prefix}windres; ac_word=$2 6614342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6615342175Scy$as_echo_n "checking for $ac_word... " >&6; } 6616342175Scyif ${ac_cv_prog_RC+:} false; then : 6617342175Scy $as_echo_n "(cached) " >&6 6618342175Scyelse 6619342175Scy if test -n "$RC"; then 6620342175Scy ac_cv_prog_RC="$RC" # Let the user override the test. 6621342175Scyelse 6622342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6623342175Scyfor as_dir in $PATH 6624342175Scydo 6625342175Scy IFS=$as_save_IFS 6626342175Scy test -z "$as_dir" && as_dir=. 6627342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 6628342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6629342175Scy ac_cv_prog_RC="${ac_tool_prefix}windres" 6630342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6631342175Scy break 2 6632342175Scy fi 6633342175Scydone 6634342175Scy done 6635342175ScyIFS=$as_save_IFS 6636342175Scy 6637342175Scyfi 6638342175Scyfi 6639342175ScyRC=$ac_cv_prog_RC 6640342175Scyif test -n "$RC"; then 6641342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 6642342175Scy$as_echo "$RC" >&6; } 6643342175Scyelse 6644342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6645342175Scy$as_echo "no" >&6; } 6646342175Scyfi 6647342175Scy 6648342175Scy 6649342175Scyfi 6650342175Scyif test -z "$ac_cv_prog_RC"; then 6651342175Scy ac_ct_RC=$RC 6652342175Scy # Extract the first word of "windres", so it can be a program name with args. 6653342175Scyset dummy windres; ac_word=$2 6654342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6655342175Scy$as_echo_n "checking for $ac_word... " >&6; } 6656342175Scyif ${ac_cv_prog_ac_ct_RC+:} false; then : 6657342175Scy $as_echo_n "(cached) " >&6 6658342175Scyelse 6659342175Scy if test -n "$ac_ct_RC"; then 6660342175Scy ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. 6661342175Scyelse 6662342175Scyas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6663342175Scyfor as_dir in $PATH 6664342175Scydo 6665342175Scy IFS=$as_save_IFS 6666342175Scy test -z "$as_dir" && as_dir=. 6667342175Scy for ac_exec_ext in '' $ac_executable_extensions; do 6668342175Scy if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6669342175Scy ac_cv_prog_ac_ct_RC="windres" 6670342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6671342175Scy break 2 6672342175Scy fi 6673342175Scydone 6674342175Scy done 6675342175ScyIFS=$as_save_IFS 6676342175Scy 6677342175Scyfi 6678342175Scyfi 6679342175Scyac_ct_RC=$ac_cv_prog_ac_ct_RC 6680342175Scyif test -n "$ac_ct_RC"; then 6681342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 6682342175Scy$as_echo "$ac_ct_RC" >&6; } 6683342175Scyelse 6684342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6685342175Scy$as_echo "no" >&6; } 6686342175Scyfi 6687342175Scy 6688342175Scy if test "x$ac_ct_RC" = x; then 6689342175Scy RC="" 6690342175Scy else 6691342175Scy case $cross_compiling:$ac_tool_warned in 6692342175Scyyes:) 6693342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6694342175Scy$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6695342175Scyac_tool_warned=yes ;; 6696342175Scyesac 6697342175Scy RC=$ac_ct_RC 6698342175Scy fi 6699342175Scyelse 6700342175Scy RC="$ac_cv_prog_RC" 6701342175Scyfi 6702342175Scy 6703342175Scy CFLAGS_DEBUG="-g" 6704342175Scy CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 6705342175Scy SHLIB_LD='${CC} -shared' 6706342175Scy UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 6707342175Scy LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 6708342175Scy LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 6709342175Scy 6710342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cross-compile version of gcc" >&5 6711342175Scy$as_echo_n "checking for cross-compile version of gcc... " >&6; } 6712342175Scyif ${ac_cv_cross+:} false; then : 6713342175Scy $as_echo_n "(cached) " >&6 6714342175Scyelse 6715342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6716342175Scy/* end confdefs.h. */ 6717342175Scy 6718342175Scy #ifdef _WIN32 6719342175Scy #error cross-compiler 6720342175Scy #endif 6721342175Scy 6722342175Scyint 6723342175Scymain () 6724342175Scy{ 6725342175Scy 6726342175Scy ; 6727342175Scy return 0; 6728342175Scy} 6729342175Scy_ACEOF 6730342175Scyif ac_fn_c_try_compile "$LINENO"; then : 6731342175Scy ac_cv_cross=yes 6732342175Scyelse 6733342175Scy ac_cv_cross=no 6734342175Scyfi 6735342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736342175Scy 6737342175Scyfi 6738342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cross" >&5 6739342175Scy$as_echo "$ac_cv_cross" >&6; } 6740342175Scy if test "$ac_cv_cross" = "yes"; then 6741342175Scy case "$do64bit" in 6742342175Scy amd64|x64|yes) 6743342175Scy CC="x86_64-w64-mingw32-gcc" 6744342175Scy LD="x86_64-w64-mingw32-ld" 6745342175Scy AR="x86_64-w64-mingw32-ar" 6746342175Scy RANLIB="x86_64-w64-mingw32-ranlib" 6747342175Scy RC="x86_64-w64-mingw32-windres" 6748342175Scy ;; 6749342175Scy *) 6750342175Scy CC="i686-w64-mingw32-gcc" 6751342175Scy LD="i686-w64-mingw32-ld" 6752342175Scy AR="i686-w64-mingw32-ar" 6753342175Scy RANLIB="i686-w64-mingw32-ranlib" 6754342175Scy RC="i686-w64-mingw32-windres" 6755342175Scy ;; 6756342175Scy esac 6757342175Scy fi 6758342175Scy 6759342175Scy else 6760342175Scy SHLIB_LD="${LINKBIN} -dll ${lflags}" 6761342175Scy # link -lib only works when -lib is the first arg 6762342175Scy STLIB_LD="${LINKBIN} -lib ${lflags}" 6763342175Scy UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 6764342175Scy PATHTYPE=-w 6765342175Scy # For information on what debugtype is most useful, see: 6766342175Scy # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 6767342175Scy # and also 6768342175Scy # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 6769342175Scy # This essentially turns it all on. 6770342175Scy LDFLAGS_DEBUG="-debug -debugtype:cv" 6771342175Scy LDFLAGS_OPTIMIZE="-release" 6772342175Scy if test "$doWince" != "no" ; then 6773342175Scy LDFLAGS_CONSOLE="-link ${lflags}" 6774342175Scy LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 6775342175Scy else 6776342175Scy LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 6777342175Scy LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 6778342175Scy fi 6779342175Scy fi 6780342175Scy 6781342175Scy SHLIB_SUFFIX=".dll" 6782342175Scy SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 6783342175Scy 6784342175Scy TCL_LIB_VERSIONS_OK=nodots 6785342175Scy ;; 6786342175Scy AIX-*) 6787342175Scy if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then : 6788342175Scy 6789342175Scy # AIX requires the _r compiler when gcc isn't being used 6790342175Scy case "${CC}" in 6791342175Scy *_r|*_r\ *) 6792342175Scy # ok ... 6793342175Scy ;; 6794342175Scy *) 6795342175Scy # Make sure only first arg gets _r 6796342175Scy CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 6797342175Scy ;; 6798342175Scy esac 6799342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 6800342175Scy$as_echo "Using $CC for compiling with threads" >&6; } 6801342175Scy 6802342175Scyfi 6803342175Scy LIBS="$LIBS -lc" 6804342175Scy SHLIB_CFLAGS="" 6805342175Scy SHLIB_SUFFIX=".so" 6806342175Scy 6807342175Scy LD_LIBRARY_PATH_VAR="LIBPATH" 6808342175Scy 6809342175Scy # Check to enable 64-bit flags for compiler/linker 6810342175Scy if test "$do64bit" = yes; then : 6811342175Scy 6812342175Scy if test "$GCC" = yes; then : 6813342175Scy 6814342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 6815342175Scy$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 6816342175Scy 6817342175Scyelse 6818342175Scy 6819342175Scy do64bit_ok=yes 6820342175Scy CFLAGS="$CFLAGS -q64" 6821342175Scy LDFLAGS_ARCH="-q64" 6822342175Scy RANLIB="${RANLIB} -X64" 6823342175Scy AR="${AR} -X64" 6824342175Scy SHLIB_LD_FLAGS="-b64" 6825342175Scy 6826342175Scyfi 6827342175Scy 6828342175Scyfi 6829342175Scy 6830342175Scy if test "`uname -m`" = ia64; then : 6831342175Scy 6832342175Scy # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 6833342175Scy SHLIB_LD="/usr/ccs/bin/ld -G -z text" 6834342175Scy if test "$GCC" = yes; then : 6835342175Scy 6836342175Scy CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 6837342175Scy 6838342175Scyelse 6839342175Scy 6840342175Scy CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 6841342175Scy 6842342175Scyfi 6843342175Scy LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 6844342175Scy 6845342175Scyelse 6846342175Scy 6847342175Scy if test "$GCC" = yes; then : 6848342175Scy 6849342175Scy SHLIB_LD='${CC} -shared -Wl,-bexpall' 6850342175Scy 6851342175Scyelse 6852342175Scy 6853342175Scy SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 6854342175Scy LDFLAGS="$LDFLAGS -brtl" 6855342175Scy 6856342175Scyfi 6857342175Scy SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 6858342175Scy CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 6859342175Scy LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 6860342175Scy 6861342175Scyfi 6862342175Scy ;; 6863342175Scy BeOS*) 6864342175Scy SHLIB_CFLAGS="-fPIC" 6865342175Scy SHLIB_LD='${CC} -nostart' 6866342175Scy SHLIB_SUFFIX=".so" 6867342175Scy 6868342175Scy #----------------------------------------------------------- 6869342175Scy # Check for inet_ntoa in -lbind, for BeOS (which also needs 6870342175Scy # -lsocket, even if the network functions are in -lnet which 6871342175Scy # is always linked to, for compatibility. 6872342175Scy #----------------------------------------------------------- 6873342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 6874342175Scy$as_echo_n "checking for inet_ntoa in -lbind... " >&6; } 6875342175Scyif ${ac_cv_lib_bind_inet_ntoa+:} false; then : 6876342175Scy $as_echo_n "(cached) " >&6 6877342175Scyelse 6878342175Scy ac_check_lib_save_LIBS=$LIBS 6879342175ScyLIBS="-lbind $LIBS" 6880342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 6881342175Scy/* end confdefs.h. */ 6882342175Scy 6883342175Scy/* Override any GCC internal prototype to avoid an error. 6884342175Scy Use char because int might match the return type of a GCC 6885342175Scy builtin and then its argument prototype would still apply. */ 6886342175Scy#ifdef __cplusplus 6887342175Scyextern "C" 6888342175Scy#endif 6889342175Scychar inet_ntoa (); 6890342175Scyint 6891342175Scymain () 6892342175Scy{ 6893342175Scyreturn inet_ntoa (); 6894342175Scy ; 6895342175Scy return 0; 6896342175Scy} 6897342175Scy_ACEOF 6898342175Scyif ac_fn_c_try_link "$LINENO"; then : 6899342175Scy ac_cv_lib_bind_inet_ntoa=yes 6900342175Scyelse 6901342175Scy ac_cv_lib_bind_inet_ntoa=no 6902342175Scyfi 6903342175Scyrm -f core conftest.err conftest.$ac_objext \ 6904342175Scy conftest$ac_exeext conftest.$ac_ext 6905342175ScyLIBS=$ac_check_lib_save_LIBS 6906342175Scyfi 6907342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 6908342175Scy$as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } 6909342175Scyif test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : 6910342175Scy LIBS="$LIBS -lbind -lsocket" 6911342175Scyfi 6912342175Scy 6913342175Scy ;; 6914342175Scy BSD/OS-4.*) 6915342175Scy SHLIB_CFLAGS="-export-dynamic -fPIC" 6916342175Scy SHLIB_LD='${CC} -shared' 6917342175Scy SHLIB_SUFFIX=".so" 6918342175Scy LDFLAGS="$LDFLAGS -export-dynamic" 6919342175Scy CC_SEARCH_FLAGS="" 6920342175Scy LD_SEARCH_FLAGS="" 6921342175Scy ;; 6922342175Scy CYGWIN_*) 6923342175Scy SHLIB_CFLAGS="" 6924342175Scy SHLIB_LD='${CC} -shared' 6925342175Scy SHLIB_SUFFIX=".dll" 6926342175Scy EXEEXT=".exe" 6927342175Scy do64bit_ok=yes 6928342175Scy CC_SEARCH_FLAGS="" 6929342175Scy LD_SEARCH_FLAGS="" 6930342175Scy ;; 6931342175Scy Haiku*) 6932342175Scy LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 6933342175Scy SHLIB_CFLAGS="-fPIC" 6934342175Scy SHLIB_SUFFIX=".so" 6935342175Scy SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 6936342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lnetwork" >&5 6937342175Scy$as_echo_n "checking for inet_ntoa in -lnetwork... " >&6; } 6938342175Scyif ${ac_cv_lib_network_inet_ntoa+:} false; then : 6939342175Scy $as_echo_n "(cached) " >&6 6940342175Scyelse 6941342175Scy ac_check_lib_save_LIBS=$LIBS 6942342175ScyLIBS="-lnetwork $LIBS" 6943342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 6944342175Scy/* end confdefs.h. */ 6945342175Scy 6946342175Scy/* Override any GCC internal prototype to avoid an error. 6947342175Scy Use char because int might match the return type of a GCC 6948342175Scy builtin and then its argument prototype would still apply. */ 6949342175Scy#ifdef __cplusplus 6950342175Scyextern "C" 6951342175Scy#endif 6952342175Scychar inet_ntoa (); 6953342175Scyint 6954342175Scymain () 6955342175Scy{ 6956342175Scyreturn inet_ntoa (); 6957342175Scy ; 6958342175Scy return 0; 6959342175Scy} 6960342175Scy_ACEOF 6961342175Scyif ac_fn_c_try_link "$LINENO"; then : 6962342175Scy ac_cv_lib_network_inet_ntoa=yes 6963342175Scyelse 6964342175Scy ac_cv_lib_network_inet_ntoa=no 6965342175Scyfi 6966342175Scyrm -f core conftest.err conftest.$ac_objext \ 6967342175Scy conftest$ac_exeext conftest.$ac_ext 6968342175ScyLIBS=$ac_check_lib_save_LIBS 6969342175Scyfi 6970342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_inet_ntoa" >&5 6971342175Scy$as_echo "$ac_cv_lib_network_inet_ntoa" >&6; } 6972342175Scyif test "x$ac_cv_lib_network_inet_ntoa" = xyes; then : 6973342175Scy LIBS="$LIBS -lnetwork" 6974342175Scyfi 6975342175Scy 6976342175Scy ;; 6977342175Scy HP-UX-*.11.*) 6978342175Scy # Use updated header definitions where possible 6979342175Scy 6980342175Scy$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 6981342175Scy 6982342175Scy # TEA specific: Needed by Tcl, but not most extensions 6983342175Scy #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 6984342175Scy #LIBS="$LIBS -lxnet" # Use the XOPEN network library 6985342175Scy 6986342175Scy if test "`uname -m`" = ia64; then : 6987342175Scy 6988342175Scy SHLIB_SUFFIX=".so" 6989342175Scy # Use newer C++ library for C++ extensions 6990342175Scy #if test "$GCC" != "yes" ; then 6991342175Scy # CPPFLAGS="-AA" 6992342175Scy #fi 6993342175Scy 6994342175Scyelse 6995342175Scy 6996342175Scy SHLIB_SUFFIX=".sl" 6997342175Scy 6998342175Scyfi 6999342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 7000342175Scy$as_echo_n "checking for shl_load in -ldld... " >&6; } 7001342175Scyif ${ac_cv_lib_dld_shl_load+:} false; then : 7002342175Scy $as_echo_n "(cached) " >&6 7003342175Scyelse 7004342175Scy ac_check_lib_save_LIBS=$LIBS 7005342175ScyLIBS="-ldld $LIBS" 7006342175Scycat confdefs.h - <<_ACEOF >conftest.$ac_ext 7007342175Scy/* end confdefs.h. */ 7008342175Scy 7009342175Scy/* Override any GCC internal prototype to avoid an error. 7010342175Scy Use char because int might match the return type of a GCC 7011342175Scy builtin and then its argument prototype would still apply. */ 7012342175Scy#ifdef __cplusplus 7013342175Scyextern "C" 7014342175Scy#endif 7015342175Scychar shl_load (); 7016342175Scyint 7017342175Scymain () 7018342175Scy{ 7019342175Scyreturn shl_load (); 7020342175Scy ; 7021342175Scy return 0; 7022342175Scy} 7023342175Scy_ACEOF 7024342175Scyif ac_fn_c_try_link "$LINENO"; then : 7025342175Scy ac_cv_lib_dld_shl_load=yes 7026342175Scyelse 7027342175Scy ac_cv_lib_dld_shl_load=no 7028342175Scyfi 7029342175Scyrm -f core conftest.err conftest.$ac_objext \ 7030342175Scy conftest$ac_exeext conftest.$ac_ext 7031342175ScyLIBS=$ac_check_lib_save_LIBS 7032342175Scyfi 7033342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 7034342175Scy$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 7035342175Scyif test "x$ac_cv_lib_dld_shl_load" = xyes; then : 7036342175Scy tcl_ok=yes 7037342175Scyelse 7038342175Scy tcl_ok=no 7039342175Scyfi 7040342175Scy 7041342175Scy if test "$tcl_ok" = yes; then : 7042342175Scy 7043342175Scy LDFLAGS="$LDFLAGS -Wl,-E" 7044342175Scy CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 7045342175Scy LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 7046342175Scy LD_LIBRARY_PATH_VAR="SHLIB_PATH" 7047342175Scy 7048342175Scyfi 7049342175Scy if test "$GCC" = yes; then : 7050342175Scy 7051342175Scy SHLIB_LD='${CC} -shared' 7052342175Scy LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7053342175Scy 7054342175Scyelse 7055342175Scy 7056342175Scy CFLAGS="$CFLAGS -z" 7057342175Scy # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 7058342175Scy #CFLAGS="$CFLAGS +DAportable" 7059342175Scy SHLIB_CFLAGS="+z" 7060342175Scy SHLIB_LD="ld -b" 7061342175Scy 7062342175Scyfi 7063342175Scy 7064342175Scy # Check to enable 64-bit flags for compiler/linker 7065342175Scy if test "$do64bit" = "yes"; then : 7066342175Scy 7067342175Scy if test "$GCC" = yes; then : 7068342175Scy 7069342175Scy case `${CC} -dumpmachine` in 7070342175Scy hppa64*) 7071342175Scy # 64-bit gcc in use. Fix flags for GNU ld. 7072342175Scy do64bit_ok=yes 7073342175Scy SHLIB_LD='${CC} -shared' 7074342175Scy if test $doRpath = yes; then : 7075342175Scy 7076342175Scy CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7077342175Scyfi 7078342175Scy LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7079342175Scy ;; 7080342175Scy *) 7081342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 7082342175Scy$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 7083342175Scy ;; 7084342175Scy esac 7085342175Scy 7086342175Scyelse 7087342175Scy 7088342175Scy do64bit_ok=yes 7089342175Scy CFLAGS="$CFLAGS +DD64" 7090342175Scy LDFLAGS_ARCH="+DD64" 7091342175Scy 7092342175Scyfi 7093342175Scy 7094342175Scyfi ;; 7095342175Scy IRIX-6.*) 7096342175Scy SHLIB_CFLAGS="" 7097342175Scy SHLIB_LD="ld -n32 -shared -rdata_shared" 7098342175Scy SHLIB_SUFFIX=".so" 7099342175Scy if test $doRpath = yes; then : 7100342175Scy 7101342175Scy CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7102342175Scy LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7103342175Scyfi 7104342175Scy if test "$GCC" = yes; then : 7105342175Scy 7106342175Scy CFLAGS="$CFLAGS -mabi=n32" 7107342175Scy LDFLAGS="$LDFLAGS -mabi=n32" 7108342175Scy 7109342175Scyelse 7110342175Scy 7111342175Scy case $system in 7112342175Scy IRIX-6.3) 7113342175Scy # Use to build 6.2 compatible binaries on 6.3. 7114342175Scy CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 7115342175Scy ;; 7116342175Scy *) 7117342175Scy CFLAGS="$CFLAGS -n32" 7118342175Scy ;; 7119342175Scy esac 7120342175Scy LDFLAGS="$LDFLAGS -n32" 7121342175Scy 7122342175Scyfi 7123342175Scy ;; 7124342175Scy IRIX64-6.*) 7125342175Scy SHLIB_CFLAGS="" 7126342175Scy SHLIB_LD="ld -n32 -shared -rdata_shared" 7127342175Scy SHLIB_SUFFIX=".so" 7128342175Scy if test $doRpath = yes; then : 7129342175Scy 7130342175Scy CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7131342175Scy LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7132342175Scyfi 7133342175Scy 7134342175Scy # Check to enable 64-bit flags for compiler/linker 7135342175Scy 7136342175Scy if test "$do64bit" = yes; then : 7137342175Scy 7138342175Scy if test "$GCC" = yes; then : 7139342175Scy 7140342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 7141342175Scy$as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 7142342175Scy 7143342175Scyelse 7144342175Scy 7145342175Scy do64bit_ok=yes 7146342175Scy SHLIB_LD="ld -64 -shared -rdata_shared" 7147342175Scy CFLAGS="$CFLAGS -64" 7148342175Scy LDFLAGS_ARCH="-64" 7149342175Scy 7150342175Scyfi 7151342175Scy 7152342175Scyfi 7153342175Scy ;; 7154342175Scy Linux*|GNU*|NetBSD-Debian) 7155342175Scy SHLIB_CFLAGS="-fPIC" 7156342175Scy SHLIB_SUFFIX=".so" 7157342175Scy 7158342175Scy # TEA specific: 7159342175Scy CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 7160342175Scy 7161342175Scy # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 7162342175Scy SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 7163342175Scy LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 7164342175Scy if test $doRpath = yes; then : 7165342175Scy 7166342175Scy CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7167342175Scyfi 7168342175Scy LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7169342175Scy if test "`uname -m`" = "alpha"; then : 7170342175Scy CFLAGS="$CFLAGS -mieee" 7171342175Scyfi 7172342175Scy if test $do64bit = yes; then : 7173342175Scy 7174342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 7175342175Scy$as_echo_n "checking if compiler accepts -m64 flag... " >&6; } 7176342175Scyif ${tcl_cv_cc_m64+:} false; then : 7177342175Scy $as_echo_n "(cached) " >&6 7178342175Scyelse 7179342175Scy 7180342175Scy hold_cflags=$CFLAGS 7181342175Scy CFLAGS="$CFLAGS -m64" 7182342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7183342175Scy/* end confdefs.h. */ 7184342175Scy 7185342175Scyint 7186342175Scymain () 7187342175Scy{ 7188342175Scy 7189342175Scy ; 7190342175Scy return 0; 7191342175Scy} 7192342175Scy_ACEOF 7193342175Scyif ac_fn_c_try_link "$LINENO"; then : 7194342175Scy tcl_cv_cc_m64=yes 7195342175Scyelse 7196342175Scy tcl_cv_cc_m64=no 7197342175Scyfi 7198342175Scyrm -f core conftest.err conftest.$ac_objext \ 7199342175Scy conftest$ac_exeext conftest.$ac_ext 7200342175Scy CFLAGS=$hold_cflags 7201342175Scyfi 7202342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 7203342175Scy$as_echo "$tcl_cv_cc_m64" >&6; } 7204342175Scy if test $tcl_cv_cc_m64 = yes; then : 7205342175Scy 7206342175Scy CFLAGS="$CFLAGS -m64" 7207342175Scy do64bit_ok=yes 7208342175Scy 7209342175Scyfi 7210342175Scy 7211342175Scyfi 7212342175Scy 7213342175Scy # The combo of gcc + glibc has a bug related to inlining of 7214342175Scy # functions like strtod(). The -fno-builtin flag should address 7215342175Scy # this problem but it does not work. The -fno-inline flag is kind 7216342175Scy # of overkill but it works. Disable inlining only when one of the 7217342175Scy # files in compat/*.c is being linked in. 7218342175Scy 7219342175Scy if test x"${USE_COMPAT}" != x; then : 7220342175Scy CFLAGS="$CFLAGS -fno-inline" 7221342175Scyfi 7222342175Scy ;; 7223342175Scy Lynx*) 7224342175Scy SHLIB_CFLAGS="-fPIC" 7225342175Scy SHLIB_SUFFIX=".so" 7226342175Scy CFLAGS_OPTIMIZE=-02 7227342175Scy SHLIB_LD='${CC} -shared' 7228342175Scy LD_FLAGS="-Wl,--export-dynamic" 7229342175Scy if test $doRpath = yes; then : 7230342175Scy 7231342175Scy CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7232342175Scy LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7233342175Scyfi 7234342175Scy ;; 7235342175Scy OpenBSD-*) 7236342175Scy arch=`arch -s` 7237342175Scy case "$arch" in 7238342175Scy vax) 7239342175Scy SHLIB_SUFFIX="" 7240342175Scy SHARED_LIB_SUFFIX="" 7241342175Scy LDFLAGS="" 7242342175Scy ;; 7243342175Scy *) 7244342175Scy SHLIB_CFLAGS="-fPIC" 7245342175Scy SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 7246342175Scy SHLIB_SUFFIX=".so" 7247342175Scy if test $doRpath = yes; then : 7248342175Scy 7249342175Scy CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7250342175Scyfi 7251342175Scy LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7252342175Scy SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 7253342175Scy LDFLAGS="-Wl,-export-dynamic" 7254342175Scy ;; 7255342175Scy esac 7256342175Scy case "$arch" in 7257342175Scy vax) 7258342175Scy CFLAGS_OPTIMIZE="-O1" 7259342175Scy ;; 7260342175Scy *) 7261342175Scy CFLAGS_OPTIMIZE="-O2" 7262342175Scy ;; 7263342175Scy esac 7264342175Scy if test "${TCL_THREADS}" = "1"; then : 7265342175Scy 7266342175Scy # On OpenBSD: Compile with -pthread 7267342175Scy # Don't link with -lpthread 7268342175Scy LIBS=`echo $LIBS | sed s/-lpthread//` 7269342175Scy CFLAGS="$CFLAGS -pthread" 7270342175Scy 7271342175Scyfi 7272342175Scy # OpenBSD doesn't do version numbers with dots. 7273342175Scy UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7274342175Scy TCL_LIB_VERSIONS_OK=nodots 7275342175Scy ;; 7276342175Scy NetBSD-*) 7277342175Scy # NetBSD has ELF and can use 'cc -shared' to build shared libs 7278342175Scy SHLIB_CFLAGS="-fPIC" 7279342175Scy SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 7280342175Scy SHLIB_SUFFIX=".so" 7281342175Scy LDFLAGS="$LDFLAGS -export-dynamic" 7282342175Scy if test $doRpath = yes; then : 7283342175Scy 7284342175Scy CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7285342175Scyfi 7286342175Scy LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7287342175Scy if test "${TCL_THREADS}" = "1"; then : 7288342175Scy 7289342175Scy # The -pthread needs to go in the CFLAGS, not LIBS 7290342175Scy LIBS=`echo $LIBS | sed s/-pthread//` 7291342175Scy CFLAGS="$CFLAGS -pthread" 7292342175Scy LDFLAGS="$LDFLAGS -pthread" 7293342175Scy 7294342175Scyfi 7295342175Scy ;; 7296342175Scy FreeBSD-*) 7297342175Scy # This configuration from FreeBSD Ports. 7298342175Scy SHLIB_CFLAGS="-fPIC" 7299342175Scy SHLIB_LD="${CC} -shared" 7300342175Scy TCL_SHLIB_LD_EXTRAS="-Wl,-soname=\$@" 7301342175Scy TK_SHLIB_LD_EXTRAS="-Wl,-soname,\$@" 7302342175Scy SHLIB_SUFFIX=".so" 7303342175Scy LDFLAGS="" 7304342175Scy if test $doRpath = yes; then : 7305342175Scy 7306342175Scy CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7307342175Scy LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7308342175Scyfi 7309342175Scy if test "${TCL_THREADS}" = "1"; then : 7310342175Scy 7311342175Scy # The -pthread needs to go in the LDFLAGS, not LIBS 7312342175Scy LIBS=`echo $LIBS | sed s/-pthread//` 7313342175Scy CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 7314342175Scy LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 7315342175Scyfi 7316342175Scy case $system in 7317342175Scy FreeBSD-3.*) 7318342175Scy # Version numbers are dot-stripped by system policy. 7319342175Scy TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 7320342175Scy UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 7321342175Scy SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 7322342175Scy TCL_LIB_VERSIONS_OK=nodots 7323342175Scy ;; 7324342175Scy esac 7325342175Scy ;; 7326342175Scy Darwin-*) 7327342175Scy CFLAGS_OPTIMIZE="-Os" 7328342175Scy SHLIB_CFLAGS="-fno-common" 7329342175Scy # To avoid discrepancies between what headers configure sees during 7330342175Scy # preprocessing tests and compiling tests, move any -isysroot and 7331342175Scy # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 7332342175Scy CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 7333342175Scy awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 7334342175Scy if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 7335342175Scy CFLAGS="`echo " ${CFLAGS}" | \ 7336342175Scy awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 7337342175Scy if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 7338342175Scy if test $do64bit = yes; then : 7339342175Scy 7340342175Scy case `arch` in 7341342175Scy ppc) 7342342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 7343342175Scy$as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } 7344342175Scyif ${tcl_cv_cc_arch_ppc64+:} false; then : 7345342175Scy $as_echo_n "(cached) " >&6 7346342175Scyelse 7347342175Scy 7348342175Scy hold_cflags=$CFLAGS 7349342175Scy CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 7350342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351342175Scy/* end confdefs.h. */ 7352342175Scy 7353342175Scyint 7354342175Scymain () 7355342175Scy{ 7356342175Scy 7357342175Scy ; 7358342175Scy return 0; 7359342175Scy} 7360342175Scy_ACEOF 7361342175Scyif ac_fn_c_try_link "$LINENO"; then : 7362342175Scy tcl_cv_cc_arch_ppc64=yes 7363342175Scyelse 7364342175Scy tcl_cv_cc_arch_ppc64=no 7365342175Scyfi 7366342175Scyrm -f core conftest.err conftest.$ac_objext \ 7367342175Scy conftest$ac_exeext conftest.$ac_ext 7368342175Scy CFLAGS=$hold_cflags 7369342175Scyfi 7370342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 7371342175Scy$as_echo "$tcl_cv_cc_arch_ppc64" >&6; } 7372342175Scy if test $tcl_cv_cc_arch_ppc64 = yes; then : 7373342175Scy 7374342175Scy CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 7375342175Scy do64bit_ok=yes 7376342175Scy 7377342175Scyfi;; 7378342175Scy i386) 7379342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 7380342175Scy$as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } 7381342175Scyif ${tcl_cv_cc_arch_x86_64+:} false; then : 7382342175Scy $as_echo_n "(cached) " >&6 7383342175Scyelse 7384342175Scy 7385342175Scy hold_cflags=$CFLAGS 7386342175Scy CFLAGS="$CFLAGS -arch x86_64" 7387342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388342175Scy/* end confdefs.h. */ 7389342175Scy 7390342175Scyint 7391342175Scymain () 7392342175Scy{ 7393342175Scy 7394342175Scy ; 7395342175Scy return 0; 7396342175Scy} 7397342175Scy_ACEOF 7398342175Scyif ac_fn_c_try_link "$LINENO"; then : 7399342175Scy tcl_cv_cc_arch_x86_64=yes 7400342175Scyelse 7401342175Scy tcl_cv_cc_arch_x86_64=no 7402342175Scyfi 7403342175Scyrm -f core conftest.err conftest.$ac_objext \ 7404342175Scy conftest$ac_exeext conftest.$ac_ext 7405342175Scy CFLAGS=$hold_cflags 7406342175Scyfi 7407342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 7408342175Scy$as_echo "$tcl_cv_cc_arch_x86_64" >&6; } 7409342175Scy if test $tcl_cv_cc_arch_x86_64 = yes; then : 7410342175Scy 7411342175Scy CFLAGS="$CFLAGS -arch x86_64" 7412342175Scy do64bit_ok=yes 7413342175Scy 7414342175Scyfi;; 7415342175Scy *) 7416342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 7417342175Scy$as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 7418342175Scy esac 7419342175Scy 7420342175Scyelse 7421342175Scy 7422342175Scy # Check for combined 32-bit and 64-bit fat build 7423342175Scy if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 7424342175Scy && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then : 7425342175Scy 7426342175Scy fat_32_64=yes 7427342175Scyfi 7428342175Scy 7429342175Scyfi 7430342175Scy # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 7431342175Scy SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 7432342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 7433342175Scy$as_echo_n "checking if ld accepts -single_module flag... " >&6; } 7434342175Scyif ${tcl_cv_ld_single_module+:} false; then : 7435342175Scy $as_echo_n "(cached) " >&6 7436342175Scyelse 7437342175Scy 7438342175Scy hold_ldflags=$LDFLAGS 7439342175Scy LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 7440342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7441342175Scy/* end confdefs.h. */ 7442342175Scy 7443342175Scyint 7444342175Scymain () 7445342175Scy{ 7446342175Scyint i; 7447342175Scy ; 7448342175Scy return 0; 7449342175Scy} 7450342175Scy_ACEOF 7451342175Scyif ac_fn_c_try_link "$LINENO"; then : 7452342175Scy tcl_cv_ld_single_module=yes 7453342175Scyelse 7454342175Scy tcl_cv_ld_single_module=no 7455342175Scyfi 7456342175Scyrm -f core conftest.err conftest.$ac_objext \ 7457342175Scy conftest$ac_exeext conftest.$ac_ext 7458342175Scy LDFLAGS=$hold_ldflags 7459342175Scyfi 7460342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 7461342175Scy$as_echo "$tcl_cv_ld_single_module" >&6; } 7462342175Scy if test $tcl_cv_ld_single_module = yes; then : 7463342175Scy 7464342175Scy SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 7465342175Scy 7466342175Scyfi 7467342175Scy # TEA specific: link shlib with current and compatibility version flags 7468342175Scy vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 7469342175Scy SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 7470342175Scy SHLIB_SUFFIX=".dylib" 7471342175Scy # Don't use -prebind when building for Mac OS X 10.4 or later only: 7472342175Scy if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 7473342175Scy "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then : 7474342175Scy 7475342175Scy LDFLAGS="$LDFLAGS -prebind" 7476342175Scyfi 7477342175Scy LDFLAGS="$LDFLAGS -headerpad_max_install_names" 7478342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 7479342175Scy$as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } 7480342175Scyif ${tcl_cv_ld_search_paths_first+:} false; then : 7481342175Scy $as_echo_n "(cached) " >&6 7482342175Scyelse 7483342175Scy 7484342175Scy hold_ldflags=$LDFLAGS 7485342175Scy LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 7486342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7487342175Scy/* end confdefs.h. */ 7488342175Scy 7489342175Scyint 7490342175Scymain () 7491342175Scy{ 7492342175Scyint i; 7493342175Scy ; 7494342175Scy return 0; 7495342175Scy} 7496342175Scy_ACEOF 7497342175Scyif ac_fn_c_try_link "$LINENO"; then : 7498342175Scy tcl_cv_ld_search_paths_first=yes 7499342175Scyelse 7500342175Scy tcl_cv_ld_search_paths_first=no 7501342175Scyfi 7502342175Scyrm -f core conftest.err conftest.$ac_objext \ 7503342175Scy conftest$ac_exeext conftest.$ac_ext 7504342175Scy LDFLAGS=$hold_ldflags 7505342175Scyfi 7506342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 7507342175Scy$as_echo "$tcl_cv_ld_search_paths_first" >&6; } 7508342175Scy if test $tcl_cv_ld_search_paths_first = yes; then : 7509342175Scy 7510342175Scy LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 7511342175Scy 7512342175Scyfi 7513342175Scy if test "$tcl_cv_cc_visibility_hidden" != yes; then : 7514342175Scy 7515342175Scy 7516342175Scy$as_echo "#define MODULE_SCOPE __private_extern__" >>confdefs.h 7517342175Scy 7518342175Scy tcl_cv_cc_visibility_hidden=yes 7519342175Scy 7520342175Scyfi 7521342175Scy CC_SEARCH_FLAGS="" 7522342175Scy LD_SEARCH_FLAGS="" 7523342175Scy LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 7524342175Scy # TEA specific: for combined 32 & 64 bit fat builds of Tk 7525342175Scy # extensions, verify that 64-bit build is possible. 7526342175Scy if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then : 7527342175Scy 7528342175Scy if test "${TEA_WINDOWINGSYSTEM}" = x11; then : 7529342175Scy 7530342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit X11" >&5 7531342175Scy$as_echo_n "checking for 64-bit X11... " >&6; } 7532342175Scyif ${tcl_cv_lib_x11_64+:} false; then : 7533342175Scy $as_echo_n "(cached) " >&6 7534342175Scyelse 7535342175Scy 7536342175Scy for v in CFLAGS CPPFLAGS LDFLAGS; do 7537342175Scy eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 7538342175Scy done 7539342175Scy CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 7540342175Scy LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 7541342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7542342175Scy/* end confdefs.h. */ 7543342175Scy#include <X11/Xlib.h> 7544342175Scyint 7545342175Scymain () 7546342175Scy{ 7547342175ScyXrmInitialize(); 7548342175Scy ; 7549342175Scy return 0; 7550342175Scy} 7551342175Scy_ACEOF 7552342175Scyif ac_fn_c_try_link "$LINENO"; then : 7553342175Scy tcl_cv_lib_x11_64=yes 7554342175Scyelse 7555342175Scy tcl_cv_lib_x11_64=no 7556342175Scyfi 7557342175Scyrm -f core conftest.err conftest.$ac_objext \ 7558342175Scy conftest$ac_exeext conftest.$ac_ext 7559342175Scy for v in CFLAGS CPPFLAGS LDFLAGS; do 7560342175Scy eval $v'="$hold_'$v'"' 7561342175Scy done 7562342175Scyfi 7563342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_x11_64" >&5 7564342175Scy$as_echo "$tcl_cv_lib_x11_64" >&6; } 7565342175Scy 7566342175Scyfi 7567342175Scy if test "${TEA_WINDOWINGSYSTEM}" = aqua; then : 7568342175Scy 7569342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit Tk" >&5 7570342175Scy$as_echo_n "checking for 64-bit Tk... " >&6; } 7571342175Scyif ${tcl_cv_lib_tk_64+:} false; then : 7572342175Scy $as_echo_n "(cached) " >&6 7573342175Scyelse 7574342175Scy 7575342175Scy for v in CFLAGS CPPFLAGS LDFLAGS; do 7576342175Scy eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 7577342175Scy done 7578342175Scy CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 ${TCL_INCLUDES} ${TK_INCLUDES}" 7579342175Scy LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 7580342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7581342175Scy/* end confdefs.h. */ 7582342175Scy#include <tk.h> 7583342175Scyint 7584342175Scymain () 7585342175Scy{ 7586342175ScyTk_InitStubs(NULL, "", 0); 7587342175Scy ; 7588342175Scy return 0; 7589342175Scy} 7590342175Scy_ACEOF 7591342175Scyif ac_fn_c_try_link "$LINENO"; then : 7592342175Scy tcl_cv_lib_tk_64=yes 7593342175Scyelse 7594342175Scy tcl_cv_lib_tk_64=no 7595342175Scyfi 7596342175Scyrm -f core conftest.err conftest.$ac_objext \ 7597342175Scy conftest$ac_exeext conftest.$ac_ext 7598342175Scy for v in CFLAGS CPPFLAGS LDFLAGS; do 7599342175Scy eval $v'="$hold_'$v'"' 7600342175Scy done 7601342175Scyfi 7602342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_tk_64" >&5 7603342175Scy$as_echo "$tcl_cv_lib_tk_64" >&6; } 7604342175Scy 7605342175Scyfi 7606342175Scy # remove 64-bit arch flags from CFLAGS et al. if configuration 7607342175Scy # does not support 64-bit. 7608342175Scy if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then : 7609342175Scy 7610342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: Removing 64-bit architectures from compiler & linker flags" >&5 7611342175Scy$as_echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 7612342175Scy for v in CFLAGS CPPFLAGS LDFLAGS; do 7613342175Scy eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 7614342175Scy done 7615342175Scyfi 7616342175Scy 7617342175Scyfi 7618342175Scy ;; 7619342175Scy OS/390-*) 7620342175Scy CFLAGS_OPTIMIZE="" # Optimizer is buggy 7621342175Scy 7622342175Scy$as_echo "#define _OE_SOCKETS 1" >>confdefs.h 7623342175Scy 7624342175Scy ;; 7625342175Scy OSF1-V*) 7626342175Scy # Digital OSF/1 7627342175Scy SHLIB_CFLAGS="" 7628342175Scy if test "$SHARED_BUILD" = 1; then : 7629342175Scy 7630342175Scy SHLIB_LD='ld -shared -expect_unresolved "*"' 7631342175Scy 7632342175Scyelse 7633342175Scy 7634342175Scy SHLIB_LD='ld -non_shared -expect_unresolved "*"' 7635342175Scy 7636342175Scyfi 7637342175Scy SHLIB_SUFFIX=".so" 7638342175Scy if test $doRpath = yes; then : 7639342175Scy 7640342175Scy CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 7641342175Scy LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 7642342175Scyfi 7643342175Scy if test "$GCC" = yes; then : 7644342175Scy CFLAGS="$CFLAGS -mieee" 7645342175Scyelse 7646342175Scy 7647342175Scy CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 7648342175Scyfi 7649342175Scy # see pthread_intro(3) for pthread support on osf1, k.furukawa 7650342175Scy if test "${TCL_THREADS}" = 1; then : 7651342175Scy 7652342175Scy CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 7653342175Scy CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 7654342175Scy LIBS=`echo $LIBS | sed s/-lpthreads//` 7655342175Scy if test "$GCC" = yes; then : 7656342175Scy 7657342175Scy LIBS="$LIBS -lpthread -lmach -lexc" 7658342175Scy 7659342175Scyelse 7660342175Scy 7661342175Scy CFLAGS="$CFLAGS -pthread" 7662342175Scy LDFLAGS="$LDFLAGS -pthread" 7663342175Scy 7664342175Scyfi 7665342175Scy 7666342175Scyfi 7667342175Scy ;; 7668342175Scy QNX-6*) 7669342175Scy # QNX RTP 7670342175Scy # This may work for all QNX, but it was only reported for v6. 7671342175Scy SHLIB_CFLAGS="-fPIC" 7672342175Scy SHLIB_LD="ld -Bshareable -x" 7673342175Scy SHLIB_LD_LIBS="" 7674342175Scy SHLIB_SUFFIX=".so" 7675342175Scy CC_SEARCH_FLAGS="" 7676342175Scy LD_SEARCH_FLAGS="" 7677342175Scy ;; 7678342175Scy SCO_SV-3.2*) 7679342175Scy if test "$GCC" = yes; then : 7680342175Scy 7681342175Scy SHLIB_CFLAGS="-fPIC -melf" 7682342175Scy LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 7683342175Scy 7684342175Scyelse 7685342175Scy 7686342175Scy SHLIB_CFLAGS="-Kpic -belf" 7687342175Scy LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 7688342175Scy 7689342175Scyfi 7690342175Scy SHLIB_LD="ld -G" 7691342175Scy SHLIB_LD_LIBS="" 7692342175Scy SHLIB_SUFFIX=".so" 7693342175Scy CC_SEARCH_FLAGS="" 7694342175Scy LD_SEARCH_FLAGS="" 7695342175Scy ;; 7696342175Scy SunOS-5.[0-6]) 7697342175Scy # Careful to not let 5.10+ fall into this case 7698342175Scy 7699342175Scy # Note: If _REENTRANT isn't defined, then Solaris 7700342175Scy # won't define thread-safe library routines. 7701342175Scy 7702342175Scy 7703342175Scy$as_echo "#define _REENTRANT 1" >>confdefs.h 7704342175Scy 7705342175Scy 7706342175Scy$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 7707342175Scy 7708342175Scy 7709342175Scy SHLIB_CFLAGS="-KPIC" 7710342175Scy SHLIB_SUFFIX=".so" 7711342175Scy if test "$GCC" = yes; then : 7712342175Scy 7713342175Scy SHLIB_LD='${CC} -shared' 7714342175Scy CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7715342175Scy LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7716342175Scy 7717342175Scyelse 7718342175Scy 7719342175Scy SHLIB_LD="/usr/ccs/bin/ld -G -z text" 7720342175Scy CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7721342175Scy LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7722342175Scy 7723342175Scyfi 7724342175Scy ;; 7725342175Scy SunOS-5*) 7726342175Scy # Note: If _REENTRANT isn't defined, then Solaris 7727342175Scy # won't define thread-safe library routines. 7728342175Scy 7729342175Scy 7730342175Scy$as_echo "#define _REENTRANT 1" >>confdefs.h 7731342175Scy 7732342175Scy 7733342175Scy$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 7734342175Scy 7735342175Scy 7736342175Scy SHLIB_CFLAGS="-KPIC" 7737342175Scy 7738342175Scy # Check to enable 64-bit flags for compiler/linker 7739342175Scy if test "$do64bit" = yes; then : 7740342175Scy 7741342175Scy arch=`isainfo` 7742342175Scy if test "$arch" = "sparcv9 sparc"; then : 7743342175Scy 7744342175Scy if test "$GCC" = yes; then : 7745342175Scy 7746342175Scy if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then : 7747342175Scy 7748342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 7749342175Scy$as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 7750342175Scy 7751342175Scyelse 7752342175Scy 7753342175Scy do64bit_ok=yes 7754342175Scy CFLAGS="$CFLAGS -m64 -mcpu=v9" 7755342175Scy LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 7756342175Scy SHLIB_CFLAGS="-fPIC" 7757342175Scy 7758342175Scyfi 7759342175Scy 7760342175Scyelse 7761342175Scy 7762342175Scy do64bit_ok=yes 7763342175Scy if test "$do64bitVIS" = yes; then : 7764342175Scy 7765342175Scy CFLAGS="$CFLAGS -xarch=v9a" 7766342175Scy LDFLAGS_ARCH="-xarch=v9a" 7767342175Scy 7768342175Scyelse 7769342175Scy 7770342175Scy CFLAGS="$CFLAGS -xarch=v9" 7771342175Scy LDFLAGS_ARCH="-xarch=v9" 7772342175Scy 7773342175Scyfi 7774342175Scy # Solaris 64 uses this as well 7775342175Scy #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 7776342175Scy 7777342175Scyfi 7778342175Scy 7779342175Scyelse 7780342175Scy if test "$arch" = "amd64 i386"; then : 7781342175Scy 7782342175Scy if test "$GCC" = yes; then : 7783342175Scy 7784342175Scy case $system in 7785342175Scy SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 7786342175Scy do64bit_ok=yes 7787342175Scy CFLAGS="$CFLAGS -m64" 7788342175Scy LDFLAGS="$LDFLAGS -m64";; 7789342175Scy *) 7790342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 7791342175Scy$as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 7792342175Scy esac 7793342175Scy 7794342175Scyelse 7795342175Scy 7796342175Scy do64bit_ok=yes 7797342175Scy case $system in 7798342175Scy SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 7799342175Scy CFLAGS="$CFLAGS -m64" 7800342175Scy LDFLAGS="$LDFLAGS -m64";; 7801342175Scy *) 7802342175Scy CFLAGS="$CFLAGS -xarch=amd64" 7803342175Scy LDFLAGS="$LDFLAGS -xarch=amd64";; 7804342175Scy esac 7805342175Scy 7806342175Scyfi 7807342175Scy 7808342175Scyelse 7809342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 7810342175Scy$as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 7811342175Scyfi 7812342175Scyfi 7813342175Scy 7814342175Scyfi 7815342175Scy 7816342175Scy SHLIB_SUFFIX=".so" 7817342175Scy if test "$GCC" = yes; then : 7818342175Scy 7819342175Scy SHLIB_LD='${CC} -shared' 7820342175Scy CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7821342175Scy LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 7822342175Scy if test "$do64bit_ok" = yes; then : 7823342175Scy 7824342175Scy if test "$arch" = "sparcv9 sparc"; then : 7825342175Scy 7826342175Scy # We need to specify -static-libgcc or we need to 7827342175Scy # add the path to the sparv9 libgcc. 7828342175Scy # JH: static-libgcc is necessary for core Tcl, but may 7829342175Scy # not be necessary for extensions. 7830342175Scy SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 7831342175Scy # for finding sparcv9 libgcc, get the regular libgcc 7832342175Scy # path, remove so name and append 'sparcv9' 7833342175Scy #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 7834342175Scy #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 7835342175Scy 7836342175Scyelse 7837342175Scy if test "$arch" = "amd64 i386"; then : 7838342175Scy 7839342175Scy # JH: static-libgcc is necessary for core Tcl, but may 7840342175Scy # not be necessary for extensions. 7841342175Scy SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 7842342175Scy 7843342175Scyfi 7844342175Scyfi 7845342175Scy 7846342175Scyfi 7847342175Scy 7848342175Scyelse 7849342175Scy 7850342175Scy case $system in 7851342175Scy SunOS-5.[1-9][0-9]*) 7852342175Scy # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 7853342175Scy SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 7854342175Scy *) 7855342175Scy SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 7856342175Scy esac 7857342175Scy CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 7858342175Scy LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 7859342175Scy 7860342175Scyfi 7861342175Scy ;; 7862342175Scy UNIX_SV* | UnixWare-5*) 7863342175Scy SHLIB_CFLAGS="-KPIC" 7864342175Scy SHLIB_LD='${CC} -G' 7865342175Scy SHLIB_LD_LIBS="" 7866342175Scy SHLIB_SUFFIX=".so" 7867342175Scy # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers 7868342175Scy # that don't grok the -Bexport option. Test that it does. 7869342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 7870342175Scy$as_echo_n "checking for ld accepts -Bexport flag... " >&6; } 7871342175Scyif ${tcl_cv_ld_Bexport+:} false; then : 7872342175Scy $as_echo_n "(cached) " >&6 7873342175Scyelse 7874342175Scy 7875342175Scy hold_ldflags=$LDFLAGS 7876342175Scy LDFLAGS="$LDFLAGS -Wl,-Bexport" 7877342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878342175Scy/* end confdefs.h. */ 7879342175Scy 7880342175Scyint 7881342175Scymain () 7882342175Scy{ 7883342175Scyint i; 7884342175Scy ; 7885342175Scy return 0; 7886342175Scy} 7887342175Scy_ACEOF 7888342175Scyif ac_fn_c_try_link "$LINENO"; then : 7889342175Scy tcl_cv_ld_Bexport=yes 7890342175Scyelse 7891342175Scy tcl_cv_ld_Bexport=no 7892342175Scyfi 7893342175Scyrm -f core conftest.err conftest.$ac_objext \ 7894342175Scy conftest$ac_exeext conftest.$ac_ext 7895342175Scy LDFLAGS=$hold_ldflags 7896342175Scyfi 7897342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 7898342175Scy$as_echo "$tcl_cv_ld_Bexport" >&6; } 7899342175Scy if test $tcl_cv_ld_Bexport = yes; then : 7900342175Scy 7901342175Scy LDFLAGS="$LDFLAGS -Wl,-Bexport" 7902342175Scy 7903342175Scyfi 7904342175Scy CC_SEARCH_FLAGS="" 7905342175Scy LD_SEARCH_FLAGS="" 7906342175Scy ;; 7907342175Scy esac 7908342175Scy 7909342175Scy if test "$do64bit" = yes -a "$do64bit_ok" = no; then : 7910342175Scy 7911342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 7912342175Scy$as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 7913342175Scy 7914342175Scyfi 7915342175Scy 7916342175Scy 7917342175Scy 7918342175Scy # Add in the arch flags late to ensure it wasn't removed. 7919342175Scy # Not necessary in TEA, but this is aligned with core 7920342175Scy LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 7921342175Scy 7922342175Scy # If we're running gcc, then change the C flags for compiling shared 7923342175Scy # libraries to the right flags for gcc, instead of those for the 7924342175Scy # standard manufacturer compiler. 7925342175Scy 7926342175Scy if test "$GCC" = yes; then : 7927342175Scy 7928342175Scy case $system in 7929342175Scy AIX-*) ;; 7930342175Scy BSD/OS*) ;; 7931342175Scy CYGWIN_*|MINGW32_*) ;; 7932342175Scy IRIX*) ;; 7933342175Scy NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 7934342175Scy Darwin-*) ;; 7935342175Scy SCO_SV-3.2*) ;; 7936342175Scy windows) ;; 7937342175Scy *) SHLIB_CFLAGS="-fPIC" ;; 7938342175Scy esac 7939342175Scyfi 7940342175Scy 7941342175Scy if test "$tcl_cv_cc_visibility_hidden" != yes; then : 7942342175Scy 7943342175Scy 7944342175Scy$as_echo "#define MODULE_SCOPE extern" >>confdefs.h 7945342175Scy 7946342175Scy 7947342175Scyfi 7948342175Scy 7949342175Scy if test "$SHARED_LIB_SUFFIX" = ""; then : 7950342175Scy 7951342175Scy # TEA specific: use PACKAGE_VERSION instead of VERSION 7952342175Scy SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 7953342175Scyfi 7954342175Scy if test "$UNSHARED_LIB_SUFFIX" = ""; then : 7955342175Scy 7956342175Scy # TEA specific: use PACKAGE_VERSION instead of VERSION 7957342175Scy UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 7958342175Scyfi 7959342175Scy 7960342175Scy if test "${GCC}" = "yes" -a ${SHLIB_SUFFIX} = ".dll"; then 7961342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SEH support in compiler" >&5 7962342175Scy$as_echo_n "checking for SEH support in compiler... " >&6; } 7963342175Scyif ${tcl_cv_seh+:} false; then : 7964342175Scy $as_echo_n "(cached) " >&6 7965342175Scyelse 7966342175Scy if test "$cross_compiling" = yes; then : 7967342175Scy tcl_cv_seh=no 7968342175Scyelse 7969342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7970342175Scy/* end confdefs.h. */ 7971342175Scy 7972342175Scy#define WIN32_LEAN_AND_MEAN 7973342175Scy#include <windows.h> 7974342175Scy#undef WIN32_LEAN_AND_MEAN 7975342175Scy 7976342175Scy int main(int argc, char** argv) { 7977342175Scy int a, b = 0; 7978342175Scy __try { 7979342175Scy a = 666 / b; 7980342175Scy } 7981342175Scy __except (EXCEPTION_EXECUTE_HANDLER) { 7982342175Scy return 0; 7983342175Scy } 7984342175Scy return 1; 7985342175Scy } 7986342175Scy 7987342175Scy_ACEOF 7988342175Scyif ac_fn_c_try_run "$LINENO"; then : 7989342175Scy tcl_cv_seh=yes 7990342175Scyelse 7991342175Scy tcl_cv_seh=no 7992342175Scyfi 7993342175Scyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7994342175Scy conftest.$ac_objext conftest.beam conftest.$ac_ext 7995342175Scyfi 7996342175Scy 7997342175Scy 7998342175Scyfi 7999342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_seh" >&5 8000342175Scy$as_echo "$tcl_cv_seh" >&6; } 8001342175Scy if test "$tcl_cv_seh" = "no" ; then 8002342175Scy 8003342175Scy$as_echo "#define HAVE_NO_SEH 1" >>confdefs.h 8004342175Scy 8005342175Scy fi 8006342175Scy 8007342175Scy # 8008342175Scy # Check to see if the excpt.h include file provided contains the 8009342175Scy # definition for EXCEPTION_DISPOSITION; if not, which is the case 8010342175Scy # with Cygwin's version as of 2002-04-10, define it to be int, 8011342175Scy # sufficient for getting the current code to work. 8012342175Scy # 8013342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXCEPTION_DISPOSITION support in include files" >&5 8014342175Scy$as_echo_n "checking for EXCEPTION_DISPOSITION support in include files... " >&6; } 8015342175Scyif ${tcl_cv_eh_disposition+:} false; then : 8016342175Scy $as_echo_n "(cached) " >&6 8017342175Scyelse 8018342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8019342175Scy/* end confdefs.h. */ 8020342175Scy 8021342175Scy# define WIN32_LEAN_AND_MEAN 8022342175Scy# include <windows.h> 8023342175Scy# undef WIN32_LEAN_AND_MEAN 8024342175Scy 8025342175Scyint 8026342175Scymain () 8027342175Scy{ 8028342175Scy 8029342175Scy EXCEPTION_DISPOSITION x; 8030342175Scy 8031342175Scy ; 8032342175Scy return 0; 8033342175Scy} 8034342175Scy_ACEOF 8035342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8036342175Scy tcl_cv_eh_disposition=yes 8037342175Scyelse 8038342175Scy tcl_cv_eh_disposition=no 8039342175Scyfi 8040342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8041342175Scy 8042342175Scyfi 8043342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_eh_disposition" >&5 8044342175Scy$as_echo "$tcl_cv_eh_disposition" >&6; } 8045342175Scy if test "$tcl_cv_eh_disposition" = "no" ; then 8046342175Scy 8047342175Scy$as_echo "#define EXCEPTION_DISPOSITION int" >>confdefs.h 8048342175Scy 8049342175Scy fi 8050342175Scy 8051342175Scy # Check to see if winnt.h defines CHAR, SHORT, and LONG 8052342175Scy # even if VOID has already been #defined. The win32api 8053342175Scy # used by mingw and cygwin is known to do this. 8054342175Scy 8055342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winnt.h that ignores VOID define" >&5 8056342175Scy$as_echo_n "checking for winnt.h that ignores VOID define... " >&6; } 8057342175Scyif ${tcl_cv_winnt_ignore_void+:} false; then : 8058342175Scy $as_echo_n "(cached) " >&6 8059342175Scyelse 8060342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8061342175Scy/* end confdefs.h. */ 8062342175Scy 8063342175Scy#define VOID void 8064342175Scy#define WIN32_LEAN_AND_MEAN 8065342175Scy#include <windows.h> 8066342175Scy#undef WIN32_LEAN_AND_MEAN 8067342175Scy 8068342175Scyint 8069342175Scymain () 8070342175Scy{ 8071342175Scy 8072342175Scy CHAR c; 8073342175Scy SHORT s; 8074342175Scy LONG l; 8075342175Scy 8076342175Scy ; 8077342175Scy return 0; 8078342175Scy} 8079342175Scy_ACEOF 8080342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8081342175Scy tcl_cv_winnt_ignore_void=yes 8082342175Scyelse 8083342175Scy tcl_cv_winnt_ignore_void=no 8084342175Scyfi 8085342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8086342175Scy 8087342175Scyfi 8088342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_winnt_ignore_void" >&5 8089342175Scy$as_echo "$tcl_cv_winnt_ignore_void" >&6; } 8090342175Scy if test "$tcl_cv_winnt_ignore_void" = "yes" ; then 8091342175Scy 8092342175Scy$as_echo "#define HAVE_WINNT_IGNORE_VOID 1" >>confdefs.h 8093342175Scy 8094342175Scy fi 8095342175Scy fi 8096342175Scy 8097342175Scy # See if the compiler supports casting to a union type. 8098342175Scy # This is used to stop gcc from printing a compiler 8099342175Scy # warning when initializing a union member. 8100342175Scy 8101342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cast to union support" >&5 8102342175Scy$as_echo_n "checking for cast to union support... " >&6; } 8103342175Scyif ${tcl_cv_cast_to_union+:} false; then : 8104342175Scy $as_echo_n "(cached) " >&6 8105342175Scyelse 8106342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8107342175Scy/* end confdefs.h. */ 8108342175Scy 8109342175Scyint 8110342175Scymain () 8111342175Scy{ 8112342175Scy 8113342175Scy union foo { int i; double d; }; 8114342175Scy union foo f = (union foo) (int) 0; 8115342175Scy 8116342175Scy ; 8117342175Scy return 0; 8118342175Scy} 8119342175Scy_ACEOF 8120342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8121342175Scy tcl_cv_cast_to_union=yes 8122342175Scyelse 8123342175Scy tcl_cv_cast_to_union=no 8124342175Scyfi 8125342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8126342175Scy 8127342175Scyfi 8128342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cast_to_union" >&5 8129342175Scy$as_echo "$tcl_cv_cast_to_union" >&6; } 8130342175Scy if test "$tcl_cv_cast_to_union" = "yes"; then 8131342175Scy 8132342175Scy$as_echo "#define HAVE_CAST_TO_UNION 1" >>confdefs.h 8133342175Scy 8134342175Scy fi 8135342175Scy 8136342175Scy 8137342175Scy 8138342175Scy 8139342175Scy 8140342175Scy 8141342175Scy 8142342175Scy 8143342175Scy 8144342175Scy 8145342175Scy 8146342175Scy 8147342175Scy 8148342175Scy # These must be called after we do the basic CFLAGS checks and 8149342175Scy # verify any possible 64-bit or similar switches are necessary 8150342175Scy 8151342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required early compiler flags" >&5 8152342175Scy$as_echo_n "checking for required early compiler flags... " >&6; } 8153342175Scy tcl_flags="" 8154342175Scy 8155342175Scy if ${tcl_cv_flag__isoc99_source+:} false; then : 8156342175Scy $as_echo_n "(cached) " >&6 8157342175Scyelse 8158342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8159342175Scy/* end confdefs.h. */ 8160342175Scy#include <stdlib.h> 8161342175Scyint 8162342175Scymain () 8163342175Scy{ 8164342175Scychar *p = (char *)strtoll; char *q = (char *)strtoull; 8165342175Scy ; 8166342175Scy return 0; 8167342175Scy} 8168342175Scy_ACEOF 8169342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8170342175Scy tcl_cv_flag__isoc99_source=no 8171342175Scyelse 8172342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173342175Scy/* end confdefs.h. */ 8174342175Scy#define _ISOC99_SOURCE 1 8175342175Scy#include <stdlib.h> 8176342175Scyint 8177342175Scymain () 8178342175Scy{ 8179342175Scychar *p = (char *)strtoll; char *q = (char *)strtoull; 8180342175Scy ; 8181342175Scy return 0; 8182342175Scy} 8183342175Scy_ACEOF 8184342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8185342175Scy tcl_cv_flag__isoc99_source=yes 8186342175Scyelse 8187342175Scy tcl_cv_flag__isoc99_source=no 8188342175Scyfi 8189342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8190342175Scyfi 8191342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8192342175Scyfi 8193342175Scy 8194342175Scy if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 8195342175Scy 8196342175Scy$as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h 8197342175Scy 8198342175Scy tcl_flags="$tcl_flags _ISOC99_SOURCE" 8199342175Scy fi 8200342175Scy 8201342175Scy 8202342175Scy if ${tcl_cv_flag__largefile64_source+:} false; then : 8203342175Scy $as_echo_n "(cached) " >&6 8204342175Scyelse 8205342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8206342175Scy/* end confdefs.h. */ 8207342175Scy#include <sys/stat.h> 8208342175Scyint 8209342175Scymain () 8210342175Scy{ 8211342175Scystruct stat64 buf; int i = stat64("/", &buf); 8212342175Scy ; 8213342175Scy return 0; 8214342175Scy} 8215342175Scy_ACEOF 8216342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8217342175Scy tcl_cv_flag__largefile64_source=no 8218342175Scyelse 8219342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8220342175Scy/* end confdefs.h. */ 8221342175Scy#define _LARGEFILE64_SOURCE 1 8222342175Scy#include <sys/stat.h> 8223342175Scyint 8224342175Scymain () 8225342175Scy{ 8226342175Scystruct stat64 buf; int i = stat64("/", &buf); 8227342175Scy ; 8228342175Scy return 0; 8229342175Scy} 8230342175Scy_ACEOF 8231342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8232342175Scy tcl_cv_flag__largefile64_source=yes 8233342175Scyelse 8234342175Scy tcl_cv_flag__largefile64_source=no 8235342175Scyfi 8236342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8237342175Scyfi 8238342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8239342175Scyfi 8240342175Scy 8241342175Scy if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 8242342175Scy 8243342175Scy$as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h 8244342175Scy 8245342175Scy tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 8246342175Scy fi 8247342175Scy 8248342175Scy 8249342175Scy if ${tcl_cv_flag__largefile_source64+:} false; then : 8250342175Scy $as_echo_n "(cached) " >&6 8251342175Scyelse 8252342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8253342175Scy/* end confdefs.h. */ 8254342175Scy#include <sys/stat.h> 8255342175Scyint 8256342175Scymain () 8257342175Scy{ 8258342175Scychar *p = (char *)open64; 8259342175Scy ; 8260342175Scy return 0; 8261342175Scy} 8262342175Scy_ACEOF 8263342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8264342175Scy tcl_cv_flag__largefile_source64=no 8265342175Scyelse 8266342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8267342175Scy/* end confdefs.h. */ 8268342175Scy#define _LARGEFILE_SOURCE64 1 8269342175Scy#include <sys/stat.h> 8270342175Scyint 8271342175Scymain () 8272342175Scy{ 8273342175Scychar *p = (char *)open64; 8274342175Scy ; 8275342175Scy return 0; 8276342175Scy} 8277342175Scy_ACEOF 8278342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8279342175Scy tcl_cv_flag__largefile_source64=yes 8280342175Scyelse 8281342175Scy tcl_cv_flag__largefile_source64=no 8282342175Scyfi 8283342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8284342175Scyfi 8285342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8286342175Scyfi 8287342175Scy 8288342175Scy if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 8289342175Scy 8290342175Scy$as_echo "#define _LARGEFILE_SOURCE64 1" >>confdefs.h 8291342175Scy 8292342175Scy tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 8293342175Scy fi 8294342175Scy 8295342175Scy if test "x${tcl_flags}" = "x" ; then 8296342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8297342175Scy$as_echo "none" >&6; } 8298342175Scy else 8299342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_flags}" >&5 8300342175Scy$as_echo "${tcl_flags}" >&6; } 8301342175Scy fi 8302342175Scy 8303342175Scy 8304342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit integer type" >&5 8305342175Scy$as_echo_n "checking for 64-bit integer type... " >&6; } 8306342175Scy if ${tcl_cv_type_64bit+:} false; then : 8307342175Scy $as_echo_n "(cached) " >&6 8308342175Scyelse 8309342175Scy 8310342175Scy tcl_cv_type_64bit=none 8311342175Scy # See if the compiler knows natively about __int64 8312342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313342175Scy/* end confdefs.h. */ 8314342175Scy 8315342175Scyint 8316342175Scymain () 8317342175Scy{ 8318342175Scy__int64 value = (__int64) 0; 8319342175Scy ; 8320342175Scy return 0; 8321342175Scy} 8322342175Scy_ACEOF 8323342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8324342175Scy tcl_type_64bit=__int64 8325342175Scyelse 8326342175Scy tcl_type_64bit="long long" 8327342175Scyfi 8328342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8329342175Scy # See if we should use long anyway Note that we substitute in the 8330342175Scy # type that is our current guess for a 64-bit type inside this check 8331342175Scy # program, so it should be modified only carefully... 8332342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8333342175Scy/* end confdefs.h. */ 8334342175Scy 8335342175Scyint 8336342175Scymain () 8337342175Scy{ 8338342175Scyswitch (0) { 8339342175Scy case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 8340342175Scy } 8341342175Scy ; 8342342175Scy return 0; 8343342175Scy} 8344342175Scy_ACEOF 8345342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8346342175Scy tcl_cv_type_64bit=${tcl_type_64bit} 8347342175Scyfi 8348342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8349342175Scyfi 8350342175Scy 8351342175Scy if test "${tcl_cv_type_64bit}" = none ; then 8352342175Scy 8353342175Scy$as_echo "#define TCL_WIDE_INT_IS_LONG 1" >>confdefs.h 8354342175Scy 8355342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: using long" >&5 8356342175Scy$as_echo "using long" >&6; } 8357342175Scy elif test "${tcl_cv_type_64bit}" = "__int64" \ 8358342175Scy -a "${TEA_PLATFORM}" = "windows" ; then 8359342175Scy # TEA specific: We actually want to use the default tcl.h checks in 8360342175Scy # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 8361342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: using Tcl header defaults" >&5 8362342175Scy$as_echo "using Tcl header defaults" >&6; } 8363342175Scy else 8364342175Scy 8365342175Scycat >>confdefs.h <<_ACEOF 8366342175Scy#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 8367342175Scy_ACEOF 8368342175Scy 8369342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_cv_type_64bit}" >&5 8370342175Scy$as_echo "${tcl_cv_type_64bit}" >&6; } 8371342175Scy 8372342175Scy # Now check for auxiliary declarations 8373342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct dirent64" >&5 8374342175Scy$as_echo_n "checking for struct dirent64... " >&6; } 8375342175Scyif ${tcl_cv_struct_dirent64+:} false; then : 8376342175Scy $as_echo_n "(cached) " >&6 8377342175Scyelse 8378342175Scy 8379342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8380342175Scy/* end confdefs.h. */ 8381342175Scy#include <sys/types.h> 8382342175Scy#include <dirent.h> 8383342175Scyint 8384342175Scymain () 8385342175Scy{ 8386342175Scystruct dirent64 p; 8387342175Scy ; 8388342175Scy return 0; 8389342175Scy} 8390342175Scy_ACEOF 8391342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8392342175Scy tcl_cv_struct_dirent64=yes 8393342175Scyelse 8394342175Scy tcl_cv_struct_dirent64=no 8395342175Scyfi 8396342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8397342175Scyfi 8398342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_dirent64" >&5 8399342175Scy$as_echo "$tcl_cv_struct_dirent64" >&6; } 8400342175Scy if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 8401342175Scy 8402342175Scy$as_echo "#define HAVE_STRUCT_DIRENT64 1" >>confdefs.h 8403342175Scy 8404342175Scy fi 8405342175Scy 8406342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat64" >&5 8407342175Scy$as_echo_n "checking for struct stat64... " >&6; } 8408342175Scyif ${tcl_cv_struct_stat64+:} false; then : 8409342175Scy $as_echo_n "(cached) " >&6 8410342175Scyelse 8411342175Scy 8412342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8413342175Scy/* end confdefs.h. */ 8414342175Scy#include <sys/stat.h> 8415342175Scyint 8416342175Scymain () 8417342175Scy{ 8418342175Scystruct stat64 p; 8419342175Scy 8420342175Scy ; 8421342175Scy return 0; 8422342175Scy} 8423342175Scy_ACEOF 8424342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8425342175Scy tcl_cv_struct_stat64=yes 8426342175Scyelse 8427342175Scy tcl_cv_struct_stat64=no 8428342175Scyfi 8429342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8430342175Scyfi 8431342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_struct_stat64" >&5 8432342175Scy$as_echo "$tcl_cv_struct_stat64" >&6; } 8433342175Scy if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 8434342175Scy 8435342175Scy$as_echo "#define HAVE_STRUCT_STAT64 1" >>confdefs.h 8436342175Scy 8437342175Scy fi 8438342175Scy 8439342175Scy for ac_func in open64 lseek64 8440342175Scydo : 8441342175Scy as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8442342175Scyac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8443342175Scyif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8444342175Scy cat >>confdefs.h <<_ACEOF 8445342175Scy#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8446342175Scy_ACEOF 8447342175Scy 8448342175Scyfi 8449342175Scydone 8450342175Scy 8451342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5 8452342175Scy$as_echo_n "checking for off64_t... " >&6; } 8453342175Scy if ${tcl_cv_type_off64_t+:} false; then : 8454342175Scy $as_echo_n "(cached) " >&6 8455342175Scyelse 8456342175Scy 8457342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458342175Scy/* end confdefs.h. */ 8459342175Scy#include <sys/types.h> 8460342175Scyint 8461342175Scymain () 8462342175Scy{ 8463342175Scyoff64_t offset; 8464342175Scy 8465342175Scy ; 8466342175Scy return 0; 8467342175Scy} 8468342175Scy_ACEOF 8469342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8470342175Scy tcl_cv_type_off64_t=yes 8471342175Scyelse 8472342175Scy tcl_cv_type_off64_t=no 8473342175Scyfi 8474342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8475342175Scyfi 8476342175Scy 8477342175Scy if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 8478342175Scy test "x${ac_cv_func_lseek64}" = "xyes" && \ 8479342175Scy test "x${ac_cv_func_open64}" = "xyes" ; then 8480342175Scy 8481342175Scy$as_echo "#define HAVE_TYPE_OFF64_T 1" >>confdefs.h 8482342175Scy 8483342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8484342175Scy$as_echo "yes" >&6; } 8485342175Scy else 8486342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8487342175Scy$as_echo "no" >&6; } 8488342175Scy fi 8489342175Scy fi 8490342175Scy 8491342175Scy 8492342175Scy 8493342175Scy#-------------------------------------------------------------------- 8494342175Scy# Set the default compiler switches based on the --enable-symbols option. 8495342175Scy#-------------------------------------------------------------------- 8496342175Scy 8497342175Scy 8498342175Scy 8499342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build with symbols" >&5 8500342175Scy$as_echo_n "checking for build with symbols... " >&6; } 8501342175Scy # Check whether --enable-symbols was given. 8502342175Scyif test "${enable_symbols+set}" = set; then : 8503342175Scy enableval=$enable_symbols; tcl_ok=$enableval 8504342175Scyelse 8505342175Scy tcl_ok=no 8506342175Scyfi 8507342175Scy 8508342175Scy DBGX="" 8509342175Scy if test "$tcl_ok" = "no"; then 8510342175Scy CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE} -DNDEBUG" 8511342175Scy LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 8512342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8513342175Scy$as_echo "no" >&6; } 8514342175Scy else 8515342175Scy CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 8516342175Scy LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 8517342175Scy if test "$tcl_ok" = "yes"; then 8518342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (standard debugging)" >&5 8519342175Scy$as_echo "yes (standard debugging)" >&6; } 8520342175Scy fi 8521342175Scy fi 8522342175Scy # TEA specific: 8523342175Scy if test "${TEA_PLATFORM}" != "windows" ; then 8524342175Scy LDFLAGS_DEFAULT="${LDFLAGS}" 8525342175Scy fi 8526342175Scy 8527342175Scy 8528342175Scy 8529342175Scy 8530342175Scy if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 8531342175Scy 8532342175Scy$as_echo "#define TCL_MEM_DEBUG 1" >>confdefs.h 8533342175Scy 8534342175Scy fi 8535342175Scy 8536342175Scy if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 8537342175Scy if test "$tcl_ok" = "all"; then 8538342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled symbols mem debugging" >&5 8539342175Scy$as_echo "enabled symbols mem debugging" >&6; } 8540342175Scy else 8541342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled $tcl_ok debugging" >&5 8542342175Scy$as_echo "enabled $tcl_ok debugging" >&6; } 8543342175Scy fi 8544342175Scy fi 8545342175Scy 8546342175Scy 8547342175Scy#-------------------------------------------------------------------- 8548342175Scy# Everyone should be linking against the Tcl stub library. If you 8549342175Scy# can't for some reason, remove this definition. If you aren't using 8550342175Scy# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 8551342175Scy# link against the non-stubbed Tcl library. Add Tk too if necessary. 8552342175Scy#-------------------------------------------------------------------- 8553342175Scy 8554342175Scy 8555342175Scy$as_echo "#define USE_TCL_STUBS 1" >>confdefs.h 8556342175Scy 8557342175Scy#AC_DEFINE(USE_TK_STUBS, 1, [Use Tk stubs]) 8558342175Scy 8559342175Scy 8560342175Scy#-------------------------------------------------------------------- 8561342175Scy# Redefine fdatasync as fsync on systems that lack fdatasync 8562342175Scy#-------------------------------------------------------------------- 8563342175Scy# 8564342175Scy#AC_CHECK_FUNC(fdatasync, , AC_DEFINE(fdatasync, fsync)) 8565342175Scy# Check for library functions that SQLite can optionally use. 8566342175Scyfor ac_func in fdatasync usleep fullfsync localtime_r gmtime_r 8567342175Scydo : 8568342175Scy as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8569342175Scyac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8570342175Scyif eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8571342175Scy cat >>confdefs.h <<_ACEOF 8572342175Scy#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8573342175Scy_ACEOF 8574342175Scy 8575342175Scyfi 8576342175Scydone 8577342175Scy 8578342175Scy 8579342175Scyac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" 8580342175Scyif test "x$ac_cv_have_decl_strerror_r" = xyes; then : 8581342175Scy ac_have_decl=1 8582342175Scyelse 8583342175Scy ac_have_decl=0 8584342175Scyfi 8585342175Scy 8586342175Scycat >>confdefs.h <<_ACEOF 8587342175Scy#define HAVE_DECL_STRERROR_R $ac_have_decl 8588342175Scy_ACEOF 8589342175Scy 8590342175Scyfor ac_func in strerror_r 8591342175Scydo : 8592342175Scy ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" 8593342175Scyif test "x$ac_cv_func_strerror_r" = xyes; then : 8594342175Scy cat >>confdefs.h <<_ACEOF 8595342175Scy#define HAVE_STRERROR_R 1 8596342175Scy_ACEOF 8597342175Scy 8598342175Scyfi 8599342175Scydone 8600342175Scy 8601342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 8602342175Scy$as_echo_n "checking whether strerror_r returns char *... " >&6; } 8603342175Scyif ${ac_cv_func_strerror_r_char_p+:} false; then : 8604342175Scy $as_echo_n "(cached) " >&6 8605342175Scyelse 8606342175Scy 8607342175Scy ac_cv_func_strerror_r_char_p=no 8608342175Scy if test $ac_cv_have_decl_strerror_r = yes; then 8609342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8610342175Scy/* end confdefs.h. */ 8611342175Scy$ac_includes_default 8612342175Scyint 8613342175Scymain () 8614342175Scy{ 8615342175Scy 8616342175Scy char buf[100]; 8617342175Scy char x = *strerror_r (0, buf, sizeof buf); 8618342175Scy char *p = strerror_r (0, buf, sizeof buf); 8619342175Scy return !p || x; 8620342175Scy 8621342175Scy ; 8622342175Scy return 0; 8623342175Scy} 8624342175Scy_ACEOF 8625342175Scyif ac_fn_c_try_compile "$LINENO"; then : 8626342175Scy ac_cv_func_strerror_r_char_p=yes 8627342175Scyfi 8628342175Scyrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8629342175Scy else 8630342175Scy # strerror_r is not declared. Choose between 8631342175Scy # systems that have relatively inaccessible declarations for the 8632342175Scy # function. BeOS and DEC UNIX 4.0 fall in this category, but the 8633342175Scy # former has a strerror_r that returns char*, while the latter 8634342175Scy # has a strerror_r that returns `int'. 8635342175Scy # This test should segfault on the DEC system. 8636342175Scy if test "$cross_compiling" = yes; then : 8637342175Scy : 8638342175Scyelse 8639342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8640342175Scy/* end confdefs.h. */ 8641342175Scy$ac_includes_default 8642342175Scy extern char *strerror_r (); 8643342175Scyint 8644342175Scymain () 8645342175Scy{ 8646342175Scychar buf[100]; 8647342175Scy char x = *strerror_r (0, buf, sizeof buf); 8648342175Scy return ! isalpha (x); 8649342175Scy ; 8650342175Scy return 0; 8651342175Scy} 8652342175Scy_ACEOF 8653342175Scyif ac_fn_c_try_run "$LINENO"; then : 8654342175Scy ac_cv_func_strerror_r_char_p=yes 8655342175Scyfi 8656342175Scyrm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8657342175Scy conftest.$ac_objext conftest.beam conftest.$ac_ext 8658342175Scyfi 8659342175Scy 8660342175Scy fi 8661342175Scy 8662342175Scyfi 8663342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 8664342175Scy$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } 8665342175Scyif test $ac_cv_func_strerror_r_char_p = yes; then 8666342175Scy 8667342175Scy$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h 8668342175Scy 8669342175Scyfi 8670342175Scy 8671342175Scy 8672342175Scy 8673342175Scy#-------------------------------------------------------------------- 8674342175Scy# This macro generates a line to use when building a library. It 8675342175Scy# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 8676342175Scy# and TEA_LOAD_TCLCONFIG macros above. 8677342175Scy#-------------------------------------------------------------------- 8678342175Scy 8679342175Scy 8680342175Scy if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 8681342175Scy MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 8682342175Scy MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 8683342175Scy cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684342175Scy/* end confdefs.h. */ 8685342175Scy 8686342175Scy#if defined(_MSC_VER) && _MSC_VER >= 1400 8687342175Scyprint("manifest needed") 8688342175Scy#endif 8689342175Scy 8690342175Scy_ACEOF 8691342175Scyif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8692342175Scy $EGREP "manifest needed" >/dev/null 2>&1; then : 8693342175Scy 8694342175Scy # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 8695342175Scy VC_MANIFEST_EMBED_DLL="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2 ; fi" 8696342175Scy VC_MANIFEST_EMBED_EXE="if test -f \$@.manifest ; then mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1 ; fi" 8697342175Scy MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 8698342175Scy 8699342175Scy CLEANFILES="$CLEANFILES *.manifest" 8700342175Scy 8701342175Scy 8702342175Scyfi 8703342175Scyrm -f conftest* 8704342175Scy 8705342175Scy MAKE_STUB_LIB="\${STLIB_LD} -nodefaultlib -out:\$@ \$(PKG_STUB_OBJECTS)" 8706342175Scy else 8707342175Scy MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 8708342175Scy MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 8709342175Scy MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 8710342175Scy fi 8711342175Scy 8712342175Scy if test "${SHARED_BUILD}" = "1" ; then 8713342175Scy MAKE_LIB="${MAKE_SHARED_LIB} " 8714342175Scy else 8715342175Scy MAKE_LIB="${MAKE_STATIC_LIB} " 8716342175Scy fi 8717342175Scy 8718342175Scy #-------------------------------------------------------------------- 8719342175Scy # Shared libraries and static libraries have different names. 8720342175Scy # Use the double eval to make sure any variables in the suffix is 8721342175Scy # substituted. (@@@ Might not be necessary anymore) 8722342175Scy #-------------------------------------------------------------------- 8723342175Scy 8724342175Scy if test "${TEA_PLATFORM}" = "windows" ; then 8725342175Scy if test "${SHARED_BUILD}" = "1" ; then 8726342175Scy # We force the unresolved linking of symbols that are really in 8727342175Scy # the private libraries of Tcl and Tk. 8728342175Scy if test x"${TK_BIN_DIR}" != x ; then 8729342175Scy SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 8730342175Scy fi 8731342175Scy SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 8732342175Scy if test "$GCC" = "yes"; then 8733342175Scy SHLIB_LD_LIBS="${SHLIB_LD_LIBS} -static-libgcc" 8734342175Scy fi 8735342175Scy eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 8736342175Scy else 8737342175Scy eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 8738342175Scy if test "$GCC" = "yes"; then 8739342175Scy PKG_LIB_FILE=lib${PKG_LIB_FILE} 8740342175Scy fi 8741342175Scy fi 8742342175Scy # Some packages build their own stubs libraries 8743342175Scy eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 8744342175Scy if test "$GCC" = "yes"; then 8745342175Scy PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 8746342175Scy fi 8747342175Scy # These aren't needed on Windows (either MSVC or gcc) 8748342175Scy RANLIB=: 8749342175Scy RANLIB_STUB=: 8750342175Scy else 8751342175Scy RANLIB_STUB="${RANLIB}" 8752342175Scy if test "${SHARED_BUILD}" = "1" ; then 8753342175Scy SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 8754342175Scy if test x"${TK_BIN_DIR}" != x ; then 8755342175Scy SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 8756342175Scy fi 8757342175Scy eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 8758342175Scy RANLIB=: 8759342175Scy else 8760342175Scy eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 8761342175Scy fi 8762342175Scy # Some packages build their own stubs libraries 8763342175Scy eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 8764342175Scy fi 8765342175Scy 8766342175Scy # These are escaped so that only CFLAGS is picked up at configure time. 8767342175Scy # The other values will be substituted at make time. 8768342175Scy CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 8769342175Scy if test "${SHARED_BUILD}" = "1" ; then 8770342175Scy CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 8771342175Scy fi 8772342175Scy 8773342175Scy 8774342175Scy 8775342175Scy 8776342175Scy 8777342175Scy 8778342175Scy 8779342175Scy 8780342175Scy 8781342175Scy 8782342175Scy#-------------------------------------------------------------------- 8783342175Scy# Determine the name of the tclsh and/or wish executables in the 8784342175Scy# Tcl and Tk build directories or the location they were installed 8785342175Scy# into. These paths are used to support running test cases only, 8786342175Scy# the Makefile should not be making use of these paths to generate 8787342175Scy# a pkgIndex.tcl file or anything else at extension build time. 8788342175Scy#-------------------------------------------------------------------- 8789342175Scy 8790342175Scy 8791342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclsh" >&5 8792342175Scy$as_echo_n "checking for tclsh... " >&6; } 8793342175Scy if test -f "${TCL_BIN_DIR}/Makefile" ; then 8794342175Scy # tclConfig.sh is in Tcl build directory 8795342175Scy if test "${TEA_PLATFORM}" = "windows"; then 8796342175Scy TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 8797342175Scy else 8798342175Scy TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 8799342175Scy fi 8800342175Scy else 8801342175Scy # tclConfig.sh is in install location 8802342175Scy if test "${TEA_PLATFORM}" = "windows"; then 8803342175Scy TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 8804342175Scy else 8805342175Scy TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 8806342175Scy fi 8807342175Scy list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 8808342175Scy `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 8809342175Scy `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 8810342175Scy for i in $list ; do 8811342175Scy if test -f "$i/${TCLSH_PROG}" ; then 8812342175Scy REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 8813342175Scy break 8814342175Scy fi 8815342175Scy done 8816342175Scy TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 8817342175Scy fi 8818342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH_PROG}" >&5 8819342175Scy$as_echo "${TCLSH_PROG}" >&6; } 8820342175Scy 8821342175Scy 8822342175Scy#TEA_PROG_WISH 8823342175Scy 8824342175Scy#-------------------------------------------------------------------- 8825342175Scy# Finally, substitute all of the various values into the Makefile. 8826342175Scy# You may alternatively have a special pkgIndex.tcl.in or other files 8827342175Scy# which require substituting th AC variables in. Include these here. 8828342175Scy#-------------------------------------------------------------------- 8829342175Scy 8830342175Scyac_config_files="$ac_config_files Makefile pkgIndex.tcl" 8831342175Scy 8832342175Scycat >confcache <<\_ACEOF 8833342175Scy# This file is a shell script that caches the results of configure 8834342175Scy# tests run on this system so they can be shared between configure 8835342175Scy# scripts and configure runs, see configure's option --config-cache. 8836342175Scy# It is not useful on other systems. If it contains results you don't 8837342175Scy# want to keep, you may remove or edit it. 8838342175Scy# 8839342175Scy# config.status only pays attention to the cache file if you give it 8840342175Scy# the --recheck option to rerun configure. 8841342175Scy# 8842342175Scy# `ac_cv_env_foo' variables (set or unset) will be overridden when 8843342175Scy# loading this file, other *unset* `ac_cv_foo' will be assigned the 8844342175Scy# following values. 8845342175Scy 8846342175Scy_ACEOF 8847342175Scy 8848342175Scy# The following way of writing the cache mishandles newlines in values, 8849342175Scy# but we know of no workaround that is simple, portable, and efficient. 8850342175Scy# So, we kill variables containing newlines. 8851342175Scy# Ultrix sh set writes to stderr and can't be redirected directly, 8852342175Scy# and sets the high bit in the cache file unless we assign to the vars. 8853342175Scy( 8854342175Scy for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8855342175Scy eval ac_val=\$$ac_var 8856342175Scy case $ac_val in #( 8857342175Scy *${as_nl}*) 8858342175Scy case $ac_var in #( 8859342175Scy *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8860342175Scy$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8861342175Scy esac 8862342175Scy case $ac_var in #( 8863342175Scy _ | IFS | as_nl) ;; #( 8864342175Scy BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8865342175Scy *) { eval $ac_var=; unset $ac_var;} ;; 8866342175Scy esac ;; 8867342175Scy esac 8868342175Scy done 8869342175Scy 8870342175Scy (set) 2>&1 | 8871342175Scy case $as_nl`(ac_space=' '; set) 2>&1` in #( 8872342175Scy *${as_nl}ac_space=\ *) 8873342175Scy # `set' does not quote correctly, so add quotes: double-quote 8874342175Scy # substitution turns \\\\ into \\, and sed turns \\ into \. 8875342175Scy sed -n \ 8876342175Scy "s/'/'\\\\''/g; 8877342175Scy s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8878342175Scy ;; #( 8879342175Scy *) 8880342175Scy # `set' quotes correctly as required by POSIX, so do not add quotes. 8881342175Scy sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8882342175Scy ;; 8883342175Scy esac | 8884342175Scy sort 8885342175Scy) | 8886342175Scy sed ' 8887342175Scy /^ac_cv_env_/b end 8888342175Scy t clear 8889342175Scy :clear 8890342175Scy s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8891342175Scy t end 8892342175Scy s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8893342175Scy :end' >>confcache 8894342175Scyif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8895342175Scy if test -w "$cache_file"; then 8896342175Scy if test "x$cache_file" != "x/dev/null"; then 8897342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8898342175Scy$as_echo "$as_me: updating cache $cache_file" >&6;} 8899342175Scy if test ! -f "$cache_file" || test -h "$cache_file"; then 8900342175Scy cat confcache >"$cache_file" 8901342175Scy else 8902342175Scy case $cache_file in #( 8903342175Scy */* | ?:*) 8904342175Scy mv -f confcache "$cache_file"$$ && 8905342175Scy mv -f "$cache_file"$$ "$cache_file" ;; #( 8906342175Scy *) 8907342175Scy mv -f confcache "$cache_file" ;; 8908342175Scy esac 8909342175Scy fi 8910342175Scy fi 8911342175Scy else 8912342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8913342175Scy$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8914342175Scy fi 8915342175Scyfi 8916342175Scyrm -f confcache 8917342175Scy 8918342175Scytest "x$prefix" = xNONE && prefix=$ac_default_prefix 8919342175Scy# Let make expand exec_prefix. 8920342175Scytest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8921342175Scy 8922342175Scy# Transform confdefs.h into DEFS. 8923342175Scy# Protect against shell expansion while executing Makefile rules. 8924342175Scy# Protect against Makefile macro expansion. 8925342175Scy# 8926342175Scy# If the first sed substitution is executed (which looks for macros that 8927342175Scy# take arguments), then branch to the quote section. Otherwise, 8928342175Scy# look for a macro that doesn't take arguments. 8929342175Scyac_script=' 8930342175Scy:mline 8931342175Scy/\\$/{ 8932342175Scy N 8933342175Scy s,\\\n,, 8934342175Scy b mline 8935342175Scy} 8936342175Scyt clear 8937342175Scy:clear 8938342175Scys/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 8939342175Scyt quote 8940342175Scys/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 8941342175Scyt quote 8942342175Scyb any 8943342175Scy:quote 8944342175Scys/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 8945342175Scys/\[/\\&/g 8946342175Scys/\]/\\&/g 8947342175Scys/\$/$$/g 8948342175ScyH 8949342175Scy:any 8950342175Scy${ 8951342175Scy g 8952342175Scy s/^\n// 8953342175Scy s/\n/ /g 8954342175Scy p 8955342175Scy} 8956342175Scy' 8957342175ScyDEFS=`sed -n "$ac_script" confdefs.h` 8958342175Scy 8959342175Scy 8960342175Scyac_libobjs= 8961342175Scyac_ltlibobjs= 8962342175ScyU= 8963342175Scyfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8964342175Scy # 1. Remove the extension, and $U if already installed. 8965342175Scy ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8966342175Scy ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8967342175Scy # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8968342175Scy # will be set to the directory where LIBOBJS objects are built. 8969342175Scy as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8970342175Scy as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8971342175Scydone 8972342175ScyLIBOBJS=$ac_libobjs 8973342175Scy 8974342175ScyLTLIBOBJS=$ac_ltlibobjs 8975342175Scy 8976342175Scy 8977342175Scy 8978342175ScyCFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 8979342175Scy 8980342175Scy: "${CONFIG_STATUS=./config.status}" 8981342175Scyac_write_fail=0 8982342175Scyac_clean_files_save=$ac_clean_files 8983342175Scyac_clean_files="$ac_clean_files $CONFIG_STATUS" 8984342175Scy{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8985342175Scy$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8986342175Scyas_write_fail=0 8987342175Scycat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8988342175Scy#! $SHELL 8989342175Scy# Generated by $as_me. 8990342175Scy# Run this file to recreate the current configuration. 8991342175Scy# Compiler output produced by configure, useful for debugging 8992342175Scy# configure, is in config.log if it exists. 8993342175Scy 8994342175Scydebug=false 8995342175Scyac_cs_recheck=false 8996342175Scyac_cs_silent=false 8997342175Scy 8998342175ScySHELL=\${CONFIG_SHELL-$SHELL} 8999342175Scyexport SHELL 9000342175Scy_ASEOF 9001342175Scycat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9002342175Scy## -------------------- ## 9003342175Scy## M4sh Initialization. ## 9004342175Scy## -------------------- ## 9005342175Scy 9006342175Scy# Be more Bourne compatible 9007342175ScyDUALCASE=1; export DUALCASE # for MKS sh 9008342175Scyif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9009342175Scy emulate sh 9010342175Scy NULLCMD=: 9011342175Scy # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9012342175Scy # is contrary to our usage. Disable this feature. 9013342175Scy alias -g '${1+"$@"}'='"$@"' 9014342175Scy setopt NO_GLOB_SUBST 9015342175Scyelse 9016342175Scy case `(set -o) 2>/dev/null` in #( 9017342175Scy *posix*) : 9018342175Scy set -o posix ;; #( 9019342175Scy *) : 9020342175Scy ;; 9021342175Scyesac 9022342175Scyfi 9023342175Scy 9024342175Scy 9025342175Scyas_nl=' 9026342175Scy' 9027342175Scyexport as_nl 9028342175Scy# Printing a long string crashes Solaris 7 /usr/bin/printf. 9029342175Scyas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9030342175Scyas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9031342175Scyas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9032342175Scy# Prefer a ksh shell builtin over an external printf program on Solaris, 9033342175Scy# but without wasting forks for bash or zsh. 9034342175Scyif test -z "$BASH_VERSION$ZSH_VERSION" \ 9035342175Scy && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9036342175Scy as_echo='print -r --' 9037342175Scy as_echo_n='print -rn --' 9038342175Scyelif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9039342175Scy as_echo='printf %s\n' 9040342175Scy as_echo_n='printf %s' 9041342175Scyelse 9042342175Scy if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9043342175Scy as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9044342175Scy as_echo_n='/usr/ucb/echo -n' 9045342175Scy else 9046342175Scy as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9047342175Scy as_echo_n_body='eval 9048342175Scy arg=$1; 9049342175Scy case $arg in #( 9050342175Scy *"$as_nl"*) 9051342175Scy expr "X$arg" : "X\\(.*\\)$as_nl"; 9052342175Scy arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9053342175Scy esac; 9054342175Scy expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9055342175Scy ' 9056342175Scy export as_echo_n_body 9057342175Scy as_echo_n='sh -c $as_echo_n_body as_echo' 9058342175Scy fi 9059342175Scy export as_echo_body 9060342175Scy as_echo='sh -c $as_echo_body as_echo' 9061342175Scyfi 9062342175Scy 9063342175Scy# The user is always right. 9064342175Scyif test "${PATH_SEPARATOR+set}" != set; then 9065342175Scy PATH_SEPARATOR=: 9066342175Scy (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9067342175Scy (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9068342175Scy PATH_SEPARATOR=';' 9069342175Scy } 9070342175Scyfi 9071342175Scy 9072342175Scy 9073342175Scy# IFS 9074342175Scy# We need space, tab and new line, in precisely that order. Quoting is 9075342175Scy# there to prevent editors from complaining about space-tab. 9076342175Scy# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9077342175Scy# splitting by setting IFS to empty value.) 9078342175ScyIFS=" "" $as_nl" 9079342175Scy 9080342175Scy# Find who we are. Look in the path if we contain no directory separator. 9081342175Scyas_myself= 9082342175Scycase $0 in #(( 9083342175Scy *[\\/]* ) as_myself=$0 ;; 9084342175Scy *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9085342175Scyfor as_dir in $PATH 9086342175Scydo 9087342175Scy IFS=$as_save_IFS 9088342175Scy test -z "$as_dir" && as_dir=. 9089342175Scy test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9090342175Scy done 9091342175ScyIFS=$as_save_IFS 9092342175Scy 9093342175Scy ;; 9094342175Scyesac 9095342175Scy# We did not find ourselves, most probably we were run as `sh COMMAND' 9096342175Scy# in which case we are not to be found in the path. 9097342175Scyif test "x$as_myself" = x; then 9098342175Scy as_myself=$0 9099342175Scyfi 9100342175Scyif test ! -f "$as_myself"; then 9101342175Scy $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9102342175Scy exit 1 9103342175Scyfi 9104342175Scy 9105342175Scy# Unset variables that we do not need and which cause bugs (e.g. in 9106342175Scy# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9107342175Scy# suppresses any "Segmentation fault" message there. '((' could 9108342175Scy# trigger a bug in pdksh 5.2.14. 9109342175Scyfor as_var in BASH_ENV ENV MAIL MAILPATH 9110342175Scydo eval test x\${$as_var+set} = xset \ 9111342175Scy && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9112342175Scydone 9113342175ScyPS1='$ ' 9114342175ScyPS2='> ' 9115342175ScyPS4='+ ' 9116342175Scy 9117342175Scy# NLS nuisances. 9118342175ScyLC_ALL=C 9119342175Scyexport LC_ALL 9120342175ScyLANGUAGE=C 9121342175Scyexport LANGUAGE 9122342175Scy 9123342175Scy# CDPATH. 9124342175Scy(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9125342175Scy 9126342175Scy 9127342175Scy# as_fn_error STATUS ERROR [LINENO LOG_FD] 9128342175Scy# ---------------------------------------- 9129342175Scy# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9130342175Scy# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9131342175Scy# script with STATUS, using 1 if that was 0. 9132342175Scyas_fn_error () 9133342175Scy{ 9134342175Scy as_status=$1; test $as_status -eq 0 && as_status=1 9135342175Scy if test "$4"; then 9136342175Scy as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9137342175Scy $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9138342175Scy fi 9139342175Scy $as_echo "$as_me: error: $2" >&2 9140342175Scy as_fn_exit $as_status 9141342175Scy} # as_fn_error 9142342175Scy 9143342175Scy 9144342175Scy# as_fn_set_status STATUS 9145342175Scy# ----------------------- 9146342175Scy# Set $? to STATUS, without forking. 9147342175Scyas_fn_set_status () 9148342175Scy{ 9149342175Scy return $1 9150342175Scy} # as_fn_set_status 9151342175Scy 9152342175Scy# as_fn_exit STATUS 9153342175Scy# ----------------- 9154342175Scy# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9155342175Scyas_fn_exit () 9156342175Scy{ 9157342175Scy set +e 9158342175Scy as_fn_set_status $1 9159342175Scy exit $1 9160342175Scy} # as_fn_exit 9161342175Scy 9162342175Scy# as_fn_unset VAR 9163342175Scy# --------------- 9164342175Scy# Portably unset VAR. 9165342175Scyas_fn_unset () 9166342175Scy{ 9167342175Scy { eval $1=; unset $1;} 9168342175Scy} 9169342175Scyas_unset=as_fn_unset 9170342175Scy# as_fn_append VAR VALUE 9171342175Scy# ---------------------- 9172342175Scy# Append the text in VALUE to the end of the definition contained in VAR. Take 9173342175Scy# advantage of any shell optimizations that allow amortized linear growth over 9174342175Scy# repeated appends, instead of the typical quadratic growth present in naive 9175342175Scy# implementations. 9176342175Scyif (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9177342175Scy eval 'as_fn_append () 9178342175Scy { 9179342175Scy eval $1+=\$2 9180342175Scy }' 9181342175Scyelse 9182342175Scy as_fn_append () 9183342175Scy { 9184342175Scy eval $1=\$$1\$2 9185342175Scy } 9186342175Scyfi # as_fn_append 9187342175Scy 9188342175Scy# as_fn_arith ARG... 9189342175Scy# ------------------ 9190342175Scy# Perform arithmetic evaluation on the ARGs, and store the result in the 9191342175Scy# global $as_val. Take advantage of shells that can avoid forks. The arguments 9192342175Scy# must be portable across $(()) and expr. 9193342175Scyif (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9194342175Scy eval 'as_fn_arith () 9195342175Scy { 9196342175Scy as_val=$(( $* )) 9197342175Scy }' 9198342175Scyelse 9199342175Scy as_fn_arith () 9200342175Scy { 9201342175Scy as_val=`expr "$@" || test $? -eq 1` 9202342175Scy } 9203342175Scyfi # as_fn_arith 9204342175Scy 9205342175Scy 9206342175Scyif expr a : '\(a\)' >/dev/null 2>&1 && 9207342175Scy test "X`expr 00001 : '.*\(...\)'`" = X001; then 9208342175Scy as_expr=expr 9209342175Scyelse 9210342175Scy as_expr=false 9211342175Scyfi 9212342175Scy 9213342175Scyif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9214342175Scy as_basename=basename 9215342175Scyelse 9216342175Scy as_basename=false 9217342175Scyfi 9218342175Scy 9219342175Scyif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9220342175Scy as_dirname=dirname 9221342175Scyelse 9222342175Scy as_dirname=false 9223342175Scyfi 9224342175Scy 9225342175Scyas_me=`$as_basename -- "$0" || 9226342175Scy$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9227342175Scy X"$0" : 'X\(//\)$' \| \ 9228342175Scy X"$0" : 'X\(/\)' \| . 2>/dev/null || 9229342175Scy$as_echo X/"$0" | 9230342175Scy sed '/^.*\/\([^/][^/]*\)\/*$/{ 9231342175Scy s//\1/ 9232342175Scy q 9233342175Scy } 9234342175Scy /^X\/\(\/\/\)$/{ 9235342175Scy s//\1/ 9236342175Scy q 9237342175Scy } 9238342175Scy /^X\/\(\/\).*/{ 9239342175Scy s//\1/ 9240342175Scy q 9241342175Scy } 9242342175Scy s/.*/./; q'` 9243342175Scy 9244342175Scy# Avoid depending upon Character Ranges. 9245342175Scyas_cr_letters='abcdefghijklmnopqrstuvwxyz' 9246342175Scyas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9247342175Scyas_cr_Letters=$as_cr_letters$as_cr_LETTERS 9248342175Scyas_cr_digits='0123456789' 9249342175Scyas_cr_alnum=$as_cr_Letters$as_cr_digits 9250342175Scy 9251342175ScyECHO_C= ECHO_N= ECHO_T= 9252342175Scycase `echo -n x` in #((((( 9253342175Scy-n*) 9254342175Scy case `echo 'xy\c'` in 9255342175Scy *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9256342175Scy xy) ECHO_C='\c';; 9257342175Scy *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9258342175Scy ECHO_T=' ';; 9259342175Scy esac;; 9260342175Scy*) 9261342175Scy ECHO_N='-n';; 9262342175Scyesac 9263342175Scy 9264342175Scyrm -f conf$$ conf$$.exe conf$$.file 9265342175Scyif test -d conf$$.dir; then 9266342175Scy rm -f conf$$.dir/conf$$.file 9267342175Scyelse 9268342175Scy rm -f conf$$.dir 9269342175Scy mkdir conf$$.dir 2>/dev/null 9270342175Scyfi 9271342175Scyif (echo >conf$$.file) 2>/dev/null; then 9272342175Scy if ln -s conf$$.file conf$$ 2>/dev/null; then 9273342175Scy as_ln_s='ln -s' 9274342175Scy # ... but there are two gotchas: 9275342175Scy # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9276342175Scy # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9277342175Scy # In both cases, we have to default to `cp -pR'. 9278342175Scy ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9279342175Scy as_ln_s='cp -pR' 9280342175Scy elif ln conf$$.file conf$$ 2>/dev/null; then 9281342175Scy as_ln_s=ln 9282342175Scy else 9283342175Scy as_ln_s='cp -pR' 9284342175Scy fi 9285342175Scyelse 9286342175Scy as_ln_s='cp -pR' 9287342175Scyfi 9288342175Scyrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9289342175Scyrmdir conf$$.dir 2>/dev/null 9290342175Scy 9291342175Scy 9292342175Scy# as_fn_mkdir_p 9293342175Scy# ------------- 9294342175Scy# Create "$as_dir" as a directory, including parents if necessary. 9295342175Scyas_fn_mkdir_p () 9296342175Scy{ 9297342175Scy 9298342175Scy case $as_dir in #( 9299342175Scy -*) as_dir=./$as_dir;; 9300342175Scy esac 9301342175Scy test -d "$as_dir" || eval $as_mkdir_p || { 9302342175Scy as_dirs= 9303342175Scy while :; do 9304342175Scy case $as_dir in #( 9305342175Scy *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9306342175Scy *) as_qdir=$as_dir;; 9307342175Scy esac 9308342175Scy as_dirs="'$as_qdir' $as_dirs" 9309342175Scy as_dir=`$as_dirname -- "$as_dir" || 9310342175Scy$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9311342175Scy X"$as_dir" : 'X\(//\)[^/]' \| \ 9312342175Scy X"$as_dir" : 'X\(//\)$' \| \ 9313342175Scy X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9314342175Scy$as_echo X"$as_dir" | 9315342175Scy sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9316342175Scy s//\1/ 9317342175Scy q 9318342175Scy } 9319342175Scy /^X\(\/\/\)[^/].*/{ 9320342175Scy s//\1/ 9321342175Scy q 9322342175Scy } 9323342175Scy /^X\(\/\/\)$/{ 9324342175Scy s//\1/ 9325342175Scy q 9326342175Scy } 9327342175Scy /^X\(\/\).*/{ 9328342175Scy s//\1/ 9329342175Scy q 9330342175Scy } 9331342175Scy s/.*/./; q'` 9332342175Scy test -d "$as_dir" && break 9333342175Scy done 9334342175Scy test -z "$as_dirs" || eval "mkdir $as_dirs" 9335342175Scy } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9336342175Scy 9337342175Scy 9338342175Scy} # as_fn_mkdir_p 9339342175Scyif mkdir -p . 2>/dev/null; then 9340342175Scy as_mkdir_p='mkdir -p "$as_dir"' 9341342175Scyelse 9342342175Scy test -d ./-p && rmdir ./-p 9343342175Scy as_mkdir_p=false 9344342175Scyfi 9345342175Scy 9346342175Scy 9347342175Scy# as_fn_executable_p FILE 9348342175Scy# ----------------------- 9349342175Scy# Test if FILE is an executable regular file. 9350342175Scyas_fn_executable_p () 9351342175Scy{ 9352342175Scy test -f "$1" && test -x "$1" 9353342175Scy} # as_fn_executable_p 9354342175Scyas_test_x='test -x' 9355342175Scyas_executable_p=as_fn_executable_p 9356342175Scy 9357342175Scy# Sed expression to map a string onto a valid CPP name. 9358342175Scyas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9359342175Scy 9360342175Scy# Sed expression to map a string onto a valid variable name. 9361342175Scyas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9362342175Scy 9363342175Scy 9364342175Scyexec 6>&1 9365342175Scy## ----------------------------------- ## 9366342175Scy## Main body of $CONFIG_STATUS script. ## 9367342175Scy## ----------------------------------- ## 9368342175Scy_ASEOF 9369342175Scytest $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9370342175Scy 9371342175Scycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9372342175Scy# Save the log message, to keep $0 and so on meaningful, and to 9373342175Scy# report actual input values of CONFIG_FILES etc. instead of their 9374342175Scy# values after options handling. 9375342175Scyac_log=" 9376369951ScyThis file was extended by sqlite $as_me 3.35.5, which was 9377342175Scygenerated by GNU Autoconf 2.69. Invocation command line was 9378342175Scy 9379342175Scy CONFIG_FILES = $CONFIG_FILES 9380342175Scy CONFIG_HEADERS = $CONFIG_HEADERS 9381342175Scy CONFIG_LINKS = $CONFIG_LINKS 9382342175Scy CONFIG_COMMANDS = $CONFIG_COMMANDS 9383342175Scy $ $0 $@ 9384342175Scy 9385342175Scyon `(hostname || uname -n) 2>/dev/null | sed 1q` 9386342175Scy" 9387342175Scy 9388342175Scy_ACEOF 9389342175Scy 9390342175Scycase $ac_config_files in *" 9391342175Scy"*) set x $ac_config_files; shift; ac_config_files=$*;; 9392342175Scyesac 9393342175Scy 9394342175Scy 9395342175Scy 9396342175Scycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9397342175Scy# Files that config.status was made for. 9398342175Scyconfig_files="$ac_config_files" 9399342175Scy 9400342175Scy_ACEOF 9401342175Scy 9402342175Scycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9403342175Scyac_cs_usage="\ 9404342175Scy\`$as_me' instantiates files and other configuration actions 9405342175Scyfrom templates according to the current configuration. Unless the files 9406342175Scyand actions are specified as TAGs, all are instantiated by default. 9407342175Scy 9408342175ScyUsage: $0 [OPTION]... [TAG]... 9409342175Scy 9410342175Scy -h, --help print this help, then exit 9411342175Scy -V, --version print version number and configuration settings, then exit 9412342175Scy --config print configuration, then exit 9413342175Scy -q, --quiet, --silent 9414342175Scy do not print progress messages 9415342175Scy -d, --debug don't remove temporary files 9416342175Scy --recheck update $as_me by reconfiguring in the same conditions 9417342175Scy --file=FILE[:TEMPLATE] 9418342175Scy instantiate the configuration file FILE 9419342175Scy 9420342175ScyConfiguration files: 9421342175Scy$config_files 9422342175Scy 9423342175ScyReport bugs to the package provider." 9424342175Scy 9425342175Scy_ACEOF 9426342175Scycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9427342175Scyac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9428342175Scyac_cs_version="\\ 9429369951Scysqlite config.status 3.35.5 9430342175Scyconfigured by $0, generated by GNU Autoconf 2.69, 9431342175Scy with options \\"\$ac_cs_config\\" 9432342175Scy 9433342175ScyCopyright (C) 2012 Free Software Foundation, Inc. 9434342175ScyThis config.status script is free software; the Free Software Foundation 9435342175Scygives unlimited permission to copy, distribute and modify it." 9436342175Scy 9437342175Scyac_pwd='$ac_pwd' 9438342175Scysrcdir='$srcdir' 9439342175Scytest -n "\$AWK" || AWK=awk 9440342175Scy_ACEOF 9441342175Scy 9442342175Scycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9443342175Scy# The default lists apply if the user does not specify any file. 9444342175Scyac_need_defaults=: 9445342175Scywhile test $# != 0 9446342175Scydo 9447342175Scy case $1 in 9448342175Scy --*=?*) 9449342175Scy ac_option=`expr "X$1" : 'X\([^=]*\)='` 9450342175Scy ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9451342175Scy ac_shift=: 9452342175Scy ;; 9453342175Scy --*=) 9454342175Scy ac_option=`expr "X$1" : 'X\([^=]*\)='` 9455342175Scy ac_optarg= 9456342175Scy ac_shift=: 9457342175Scy ;; 9458342175Scy *) 9459342175Scy ac_option=$1 9460342175Scy ac_optarg=$2 9461342175Scy ac_shift=shift 9462342175Scy ;; 9463342175Scy esac 9464342175Scy 9465342175Scy case $ac_option in 9466342175Scy # Handling of the options. 9467342175Scy -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9468342175Scy ac_cs_recheck=: ;; 9469342175Scy --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9470342175Scy $as_echo "$ac_cs_version"; exit ;; 9471342175Scy --config | --confi | --conf | --con | --co | --c ) 9472342175Scy $as_echo "$ac_cs_config"; exit ;; 9473342175Scy --debug | --debu | --deb | --de | --d | -d ) 9474342175Scy debug=: ;; 9475342175Scy --file | --fil | --fi | --f ) 9476342175Scy $ac_shift 9477342175Scy case $ac_optarg in 9478342175Scy *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9479342175Scy '') as_fn_error $? "missing file argument" ;; 9480342175Scy esac 9481342175Scy as_fn_append CONFIG_FILES " '$ac_optarg'" 9482342175Scy ac_need_defaults=false;; 9483342175Scy --he | --h | --help | --hel | -h ) 9484342175Scy $as_echo "$ac_cs_usage"; exit ;; 9485342175Scy -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9486342175Scy | -silent | --silent | --silen | --sile | --sil | --si | --s) 9487342175Scy ac_cs_silent=: ;; 9488342175Scy 9489342175Scy # This is an error. 9490342175Scy -*) as_fn_error $? "unrecognized option: \`$1' 9491342175ScyTry \`$0 --help' for more information." ;; 9492342175Scy 9493342175Scy *) as_fn_append ac_config_targets " $1" 9494342175Scy ac_need_defaults=false ;; 9495342175Scy 9496342175Scy esac 9497342175Scy shift 9498342175Scydone 9499342175Scy 9500342175Scyac_configure_extra_args= 9501342175Scy 9502342175Scyif $ac_cs_silent; then 9503342175Scy exec 6>/dev/null 9504342175Scy ac_configure_extra_args="$ac_configure_extra_args --silent" 9505342175Scyfi 9506342175Scy 9507342175Scy_ACEOF 9508342175Scycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9509342175Scyif \$ac_cs_recheck; then 9510342175Scy set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9511342175Scy shift 9512342175Scy \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9513342175Scy CONFIG_SHELL='$SHELL' 9514342175Scy export CONFIG_SHELL 9515342175Scy exec "\$@" 9516342175Scyfi 9517342175Scy 9518342175Scy_ACEOF 9519342175Scycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9520342175Scyexec 5>>config.log 9521342175Scy{ 9522342175Scy echo 9523342175Scy sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9524342175Scy## Running $as_me. ## 9525342175Scy_ASBOX 9526342175Scy $as_echo "$ac_log" 9527342175Scy} >&5 9528342175Scy 9529342175Scy_ACEOF 9530342175Scycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9531342175Scy_ACEOF 9532342175Scy 9533342175Scycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9534342175Scy 9535342175Scy# Handling of arguments. 9536342175Scyfor ac_config_target in $ac_config_targets 9537342175Scydo 9538342175Scy case $ac_config_target in 9539342175Scy "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9540342175Scy "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 9541342175Scy 9542342175Scy *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9543342175Scy esac 9544342175Scydone 9545342175Scy 9546342175Scy 9547342175Scy# If the user did not use the arguments to specify the items to instantiate, 9548342175Scy# then the envvar interface is used. Set only those that are not. 9549342175Scy# We use the long form for the default assignment because of an extremely 9550342175Scy# bizarre bug on SunOS 4.1.3. 9551342175Scyif $ac_need_defaults; then 9552342175Scy test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9553342175Scyfi 9554342175Scy 9555342175Scy# Have a temporary directory for convenience. Make it in the build tree 9556342175Scy# simply because there is no reason against having it here, and in addition, 9557342175Scy# creating and moving files from /tmp can sometimes cause problems. 9558342175Scy# Hook for its removal unless debugging. 9559342175Scy# Note that there is a small window in which the directory will not be cleaned: 9560342175Scy# after its creation but before its name has been assigned to `$tmp'. 9561342175Scy$debug || 9562342175Scy{ 9563342175Scy tmp= ac_tmp= 9564342175Scy trap 'exit_status=$? 9565342175Scy : "${ac_tmp:=$tmp}" 9566342175Scy { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 9567342175Scy' 0 9568342175Scy trap 'as_fn_exit 1' 1 2 13 15 9569342175Scy} 9570342175Scy# Create a (secure) tmp directory for tmp files. 9571342175Scy 9572342175Scy{ 9573342175Scy tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9574342175Scy test -d "$tmp" 9575342175Scy} || 9576342175Scy{ 9577342175Scy tmp=./conf$$-$RANDOM 9578342175Scy (umask 077 && mkdir "$tmp") 9579342175Scy} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9580342175Scyac_tmp=$tmp 9581342175Scy 9582342175Scy# Set up the scripts for CONFIG_FILES section. 9583342175Scy# No need to generate them if there are no CONFIG_FILES. 9584342175Scy# This happens for instance with `./config.status config.h'. 9585342175Scyif test -n "$CONFIG_FILES"; then 9586342175Scy 9587342175Scy 9588342175Scyac_cr=`echo X | tr X '\015'` 9589342175Scy# On cygwin, bash can eat \r inside `` if the user requested igncr. 9590342175Scy# But we know of no other shell where ac_cr would be empty at this 9591342175Scy# point, so we can use a bashism as a fallback. 9592342175Scyif test "x$ac_cr" = x; then 9593342175Scy eval ac_cr=\$\'\\r\' 9594342175Scyfi 9595342175Scyac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9596342175Scyif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9597342175Scy ac_cs_awk_cr='\\r' 9598342175Scyelse 9599342175Scy ac_cs_awk_cr=$ac_cr 9600342175Scyfi 9601342175Scy 9602342175Scyecho 'BEGIN {' >"$ac_tmp/subs1.awk" && 9603342175Scy_ACEOF 9604342175Scy 9605342175Scy 9606342175Scy{ 9607342175Scy echo "cat >conf$$subs.awk <<_ACEOF" && 9608342175Scy echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9609342175Scy echo "_ACEOF" 9610342175Scy} >conf$$subs.sh || 9611342175Scy as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9612342175Scyac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9613342175Scyac_delim='%!_!# ' 9614342175Scyfor ac_last_try in false false false false false :; do 9615342175Scy . ./conf$$subs.sh || 9616342175Scy as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9617342175Scy 9618342175Scy ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9619342175Scy if test $ac_delim_n = $ac_delim_num; then 9620342175Scy break 9621342175Scy elif $ac_last_try; then 9622342175Scy as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9623342175Scy else 9624342175Scy ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9625342175Scy fi 9626342175Scydone 9627342175Scyrm -f conf$$subs.sh 9628342175Scy 9629342175Scycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9630342175Scycat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9631342175Scy_ACEOF 9632342175Scysed -n ' 9633342175Scyh 9634342175Scys/^/S["/; s/!.*/"]=/ 9635342175Scyp 9636342175Scyg 9637342175Scys/^[^!]*!// 9638342175Scy:repl 9639342175Scyt repl 9640342175Scys/'"$ac_delim"'$// 9641342175Scyt delim 9642342175Scy:nl 9643342175Scyh 9644342175Scys/\(.\{148\}\)..*/\1/ 9645342175Scyt more1 9646342175Scys/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9647342175Scyp 9648342175Scyn 9649342175Scyb repl 9650342175Scy:more1 9651342175Scys/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9652342175Scyp 9653342175Scyg 9654342175Scys/.\{148\}// 9655342175Scyt nl 9656342175Scy:delim 9657342175Scyh 9658342175Scys/\(.\{148\}\)..*/\1/ 9659342175Scyt more2 9660342175Scys/["\\]/\\&/g; s/^/"/; s/$/"/ 9661342175Scyp 9662342175Scyb 9663342175Scy:more2 9664342175Scys/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9665342175Scyp 9666342175Scyg 9667342175Scys/.\{148\}// 9668342175Scyt delim 9669342175Scy' <conf$$subs.awk | sed ' 9670342175Scy/^[^""]/{ 9671342175Scy N 9672342175Scy s/\n// 9673342175Scy} 9674342175Scy' >>$CONFIG_STATUS || ac_write_fail=1 9675342175Scyrm -f conf$$subs.awk 9676342175Scycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9677342175Scy_ACAWK 9678342175Scycat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9679342175Scy for (key in S) S_is_set[key] = 1 9680342175Scy FS = "" 9681342175Scy 9682342175Scy} 9683342175Scy{ 9684342175Scy line = $ 0 9685342175Scy nfields = split(line, field, "@") 9686342175Scy substed = 0 9687342175Scy len = length(field[1]) 9688342175Scy for (i = 2; i < nfields; i++) { 9689342175Scy key = field[i] 9690342175Scy keylen = length(key) 9691342175Scy if (S_is_set[key]) { 9692342175Scy value = S[key] 9693342175Scy line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9694342175Scy len += length(value) + length(field[++i]) 9695342175Scy substed = 1 9696342175Scy } else 9697342175Scy len += 1 + keylen 9698342175Scy } 9699342175Scy 9700342175Scy print line 9701342175Scy} 9702342175Scy 9703342175Scy_ACAWK 9704342175Scy_ACEOF 9705342175Scycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9706342175Scyif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9707342175Scy sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9708342175Scyelse 9709342175Scy cat 9710342175Scyfi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9711342175Scy || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9712342175Scy_ACEOF 9713342175Scy 9714342175Scy# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9715342175Scy# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9716342175Scy# trailing colons and then remove the whole line if VPATH becomes empty 9717342175Scy# (actually we leave an empty line to preserve line numbers). 9718342175Scyif test "x$srcdir" = x.; then 9719342175Scy ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9720342175Scyh 9721342175Scys/// 9722342175Scys/^/:/ 9723342175Scys/[ ]*$/:/ 9724342175Scys/:\$(srcdir):/:/g 9725342175Scys/:\${srcdir}:/:/g 9726342175Scys/:@srcdir@:/:/g 9727342175Scys/^:*// 9728342175Scys/:*$// 9729342175Scyx 9730342175Scys/\(=[ ]*\).*/\1/ 9731342175ScyG 9732342175Scys/\n// 9733342175Scys/^[^=]*=[ ]*$// 9734342175Scy}' 9735342175Scyfi 9736342175Scy 9737342175Scycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9738342175Scyfi # test -n "$CONFIG_FILES" 9739342175Scy 9740342175Scy 9741342175Scyeval set X " :F $CONFIG_FILES " 9742342175Scyshift 9743342175Scyfor ac_tag 9744342175Scydo 9745342175Scy case $ac_tag in 9746342175Scy :[FHLC]) ac_mode=$ac_tag; continue;; 9747342175Scy esac 9748342175Scy case $ac_mode$ac_tag in 9749342175Scy :[FHL]*:*);; 9750342175Scy :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9751342175Scy :[FH]-) ac_tag=-:-;; 9752342175Scy :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9753342175Scy esac 9754342175Scy ac_save_IFS=$IFS 9755342175Scy IFS=: 9756342175Scy set x $ac_tag 9757342175Scy IFS=$ac_save_IFS 9758342175Scy shift 9759342175Scy ac_file=$1 9760342175Scy shift 9761342175Scy 9762342175Scy case $ac_mode in 9763342175Scy :L) ac_source=$1;; 9764342175Scy :[FH]) 9765342175Scy ac_file_inputs= 9766342175Scy for ac_f 9767342175Scy do 9768342175Scy case $ac_f in 9769342175Scy -) ac_f="$ac_tmp/stdin";; 9770342175Scy *) # Look for the file first in the build tree, then in the source tree 9771342175Scy # (if the path is not absolute). The absolute path cannot be DOS-style, 9772342175Scy # because $ac_f cannot contain `:'. 9773342175Scy test -f "$ac_f" || 9774342175Scy case $ac_f in 9775342175Scy [\\/$]*) false;; 9776342175Scy *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9777342175Scy esac || 9778342175Scy as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9779342175Scy esac 9780342175Scy case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9781342175Scy as_fn_append ac_file_inputs " '$ac_f'" 9782342175Scy done 9783342175Scy 9784342175Scy # Let's still pretend it is `configure' which instantiates (i.e., don't 9785342175Scy # use $as_me), people would be surprised to read: 9786342175Scy # /* config.h. Generated by config.status. */ 9787342175Scy configure_input='Generated from '` 9788342175Scy $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9789342175Scy `' by configure.' 9790342175Scy if test x"$ac_file" != x-; then 9791342175Scy configure_input="$ac_file. $configure_input" 9792342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9793342175Scy$as_echo "$as_me: creating $ac_file" >&6;} 9794342175Scy fi 9795342175Scy # Neutralize special characters interpreted by sed in replacement strings. 9796342175Scy case $configure_input in #( 9797342175Scy *\&* | *\|* | *\\* ) 9798342175Scy ac_sed_conf_input=`$as_echo "$configure_input" | 9799342175Scy sed 's/[\\\\&|]/\\\\&/g'`;; #( 9800342175Scy *) ac_sed_conf_input=$configure_input;; 9801342175Scy esac 9802342175Scy 9803342175Scy case $ac_tag in 9804342175Scy *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9805342175Scy || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9806342175Scy esac 9807342175Scy ;; 9808342175Scy esac 9809342175Scy 9810342175Scy ac_dir=`$as_dirname -- "$ac_file" || 9811342175Scy$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9812342175Scy X"$ac_file" : 'X\(//\)[^/]' \| \ 9813342175Scy X"$ac_file" : 'X\(//\)$' \| \ 9814342175Scy X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9815342175Scy$as_echo X"$ac_file" | 9816342175Scy sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9817342175Scy s//\1/ 9818342175Scy q 9819342175Scy } 9820342175Scy /^X\(\/\/\)[^/].*/{ 9821342175Scy s//\1/ 9822342175Scy q 9823342175Scy } 9824342175Scy /^X\(\/\/\)$/{ 9825342175Scy s//\1/ 9826342175Scy q 9827342175Scy } 9828342175Scy /^X\(\/\).*/{ 9829342175Scy s//\1/ 9830342175Scy q 9831342175Scy } 9832342175Scy s/.*/./; q'` 9833342175Scy as_dir="$ac_dir"; as_fn_mkdir_p 9834342175Scy ac_builddir=. 9835342175Scy 9836342175Scycase "$ac_dir" in 9837342175Scy.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9838342175Scy*) 9839342175Scy ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9840342175Scy # A ".." for each directory in $ac_dir_suffix. 9841342175Scy ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9842342175Scy case $ac_top_builddir_sub in 9843342175Scy "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9844342175Scy *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9845342175Scy esac ;; 9846342175Scyesac 9847342175Scyac_abs_top_builddir=$ac_pwd 9848342175Scyac_abs_builddir=$ac_pwd$ac_dir_suffix 9849342175Scy# for backward compatibility: 9850342175Scyac_top_builddir=$ac_top_build_prefix 9851342175Scy 9852342175Scycase $srcdir in 9853342175Scy .) # We are building in place. 9854342175Scy ac_srcdir=. 9855342175Scy ac_top_srcdir=$ac_top_builddir_sub 9856342175Scy ac_abs_top_srcdir=$ac_pwd ;; 9857342175Scy [\\/]* | ?:[\\/]* ) # Absolute name. 9858342175Scy ac_srcdir=$srcdir$ac_dir_suffix; 9859342175Scy ac_top_srcdir=$srcdir 9860342175Scy ac_abs_top_srcdir=$srcdir ;; 9861342175Scy *) # Relative name. 9862342175Scy ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9863342175Scy ac_top_srcdir=$ac_top_build_prefix$srcdir 9864342175Scy ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9865342175Scyesac 9866342175Scyac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9867342175Scy 9868342175Scy 9869342175Scy case $ac_mode in 9870342175Scy :F) 9871342175Scy # 9872342175Scy # CONFIG_FILE 9873342175Scy # 9874342175Scy 9875342175Scy_ACEOF 9876342175Scy 9877342175Scycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9878342175Scy# If the template does not know about datarootdir, expand it. 9879342175Scy# FIXME: This hack should be removed a few years after 2.60. 9880342175Scyac_datarootdir_hack=; ac_datarootdir_seen= 9881342175Scyac_sed_dataroot=' 9882342175Scy/datarootdir/ { 9883342175Scy p 9884342175Scy q 9885342175Scy} 9886342175Scy/@datadir@/p 9887342175Scy/@docdir@/p 9888342175Scy/@infodir@/p 9889342175Scy/@localedir@/p 9890342175Scy/@mandir@/p' 9891342175Scycase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9892342175Scy*datarootdir*) ac_datarootdir_seen=yes;; 9893342175Scy*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9894342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9895342175Scy$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9896342175Scy_ACEOF 9897342175Scycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9898342175Scy ac_datarootdir_hack=' 9899342175Scy s&@datadir@&$datadir&g 9900342175Scy s&@docdir@&$docdir&g 9901342175Scy s&@infodir@&$infodir&g 9902342175Scy s&@localedir@&$localedir&g 9903342175Scy s&@mandir@&$mandir&g 9904342175Scy s&\\\${datarootdir}&$datarootdir&g' ;; 9905342175Scyesac 9906342175Scy_ACEOF 9907342175Scy 9908342175Scy# Neutralize VPATH when `$srcdir' = `.'. 9909342175Scy# Shell code in configure.ac might set extrasub. 9910342175Scy# FIXME: do we really want to maintain this feature? 9911342175Scycat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9912342175Scyac_sed_extra="$ac_vpsub 9913342175Scy$extrasub 9914342175Scy_ACEOF 9915342175Scycat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9916342175Scy:t 9917342175Scy/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9918342175Scys|@configure_input@|$ac_sed_conf_input|;t t 9919342175Scys&@top_builddir@&$ac_top_builddir_sub&;t t 9920342175Scys&@top_build_prefix@&$ac_top_build_prefix&;t t 9921342175Scys&@srcdir@&$ac_srcdir&;t t 9922342175Scys&@abs_srcdir@&$ac_abs_srcdir&;t t 9923342175Scys&@top_srcdir@&$ac_top_srcdir&;t t 9924342175Scys&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9925342175Scys&@builddir@&$ac_builddir&;t t 9926342175Scys&@abs_builddir@&$ac_abs_builddir&;t t 9927342175Scys&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9928342175Scy$ac_datarootdir_hack 9929342175Scy" 9930342175Scyeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 9931342175Scy >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9932342175Scy 9933342175Scytest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9934342175Scy { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 9935342175Scy { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 9936342175Scy "$ac_tmp/out"`; test -z "$ac_out"; } && 9937342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9938342175Scywhich seems to be undefined. Please make sure it is defined" >&5 9939342175Scy$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9940342175Scywhich seems to be undefined. Please make sure it is defined" >&2;} 9941342175Scy 9942342175Scy rm -f "$ac_tmp/stdin" 9943342175Scy case $ac_file in 9944342175Scy -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 9945342175Scy *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 9946342175Scy esac \ 9947342175Scy || as_fn_error $? "could not create $ac_file" "$LINENO" 5 9948342175Scy ;; 9949342175Scy 9950342175Scy 9951342175Scy 9952342175Scy esac 9953342175Scy 9954342175Scydone # for ac_tag 9955342175Scy 9956342175Scy 9957342175Scyas_fn_exit 0 9958342175Scy_ACEOF 9959342175Scyac_clean_files=$ac_clean_files_save 9960342175Scy 9961342175Scytest $ac_write_fail = 0 || 9962342175Scy as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 9963342175Scy 9964342175Scy 9965342175Scy# configure is writing to config.log, and then calls config.status. 9966342175Scy# config.status does its own redirection, appending to config.log. 9967342175Scy# Unfortunately, on DOS this fails, as config.log is still kept open 9968342175Scy# by configure, so config.status won't be able to write to it; its 9969342175Scy# output is simply discarded. So we exec the FD to /dev/null, 9970342175Scy# effectively closing config.log, so it can be properly (re)opened and 9971342175Scy# appended to by config.status. When coming back to configure, we 9972342175Scy# need to make the FD available again. 9973342175Scyif test "$no_create" != yes; then 9974342175Scy ac_cs_success=: 9975342175Scy ac_config_status_args= 9976342175Scy test "$silent" = yes && 9977342175Scy ac_config_status_args="$ac_config_status_args --quiet" 9978342175Scy exec 5>/dev/null 9979342175Scy $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9980342175Scy exec 5>>config.log 9981342175Scy # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9982342175Scy # would make configure fail if this is the last instruction. 9983342175Scy $ac_cs_success || as_fn_exit 1 9984342175Scyfi 9985342175Scyif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 9986342175Scy { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 9987342175Scy$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 9988342175Scyfi 9989342175Scy 9990