1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61 for Ffidl 0.6.1. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9## --------------------- ## 10## M4sh Initialization. ## 11## --------------------- ## 12 13# Be more Bourne compatible 14DUALCASE=1; export DUALCASE # for MKS sh 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16 emulate sh 17 NULLCMD=: 18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19 # is contrary to our usage. Disable this feature. 20 alias -g '${1+"$@"}'='"$@"' 21 setopt NO_GLOB_SUBST 22else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25esac 26 27fi 28 29 30 31 32# PATH needs CR 33# Avoid depending upon Character Ranges. 34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 37as_cr_digits='0123456789' 38as_cr_alnum=$as_cr_Letters$as_cr_digits 39 40# The user is always right. 41if test "${PATH_SEPARATOR+set}" != set; then 42 echo "#! /bin/sh" >conf$$.sh 43 echo "exit 0" >>conf$$.sh 44 chmod +x conf$$.sh 45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46 PATH_SEPARATOR=';' 47 else 48 PATH_SEPARATOR=: 49 fi 50 rm -f conf$$.sh 51fi 52 53# Support unset when possible. 54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56else 57 as_unset=false 58fi 59 60 61# IFS 62# We need space, tab and new line, in precisely that order. Quoting is 63# there to prevent editors from complaining about space-tab. 64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65# splitting by setting IFS to empty value.) 66as_nl=' 67' 68IFS=" "" $as_nl" 69 70# Find who we are. Look in the path if we contain no directory separator. 71case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74for as_dir in $PATH 75do 76 IFS=$as_save_IFS 77 test -z "$as_dir" && as_dir=. 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79done 80IFS=$as_save_IFS 81 82 ;; 83esac 84# We did not find ourselves, most probably we were run as `sh COMMAND' 85# in which case we are not to be found in the path. 86if test "x$as_myself" = x; then 87 as_myself=$0 88fi 89if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92fi 93 94# Work around bugs in pre-3.0 UWIN ksh. 95for as_var in ENV MAIL MAILPATH 96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97done 98PS1='$ ' 99PS2='> ' 100PS4='+ ' 101 102# NLS nuisances. 103for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 fi 113done 114 115# Required to use basename. 116if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119else 120 as_expr=false 121fi 122 123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125else 126 as_basename=false 127fi 128 129 130# Name of the executable. 131as_me=`$as_basename -- "$0" || 132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150# CDPATH. 151$as_unset CDPATH 152 153 154if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157else 158 as_have_required=no 159fi 160 161 if test $as_have_required = yes && (eval ": 162(as_func_return () { 163 (exit \$1) 164} 165as_func_success () { 166 as_func_return 0 167} 168as_func_failure () { 169 as_func_return 1 170} 171as_func_ret_success () { 172 return 0 173} 174as_func_ret_failure () { 175 return 1 176} 177 178exitcode=0 179if as_func_success; then 180 : 181else 182 exitcode=1 183 echo as_func_success failed. 184fi 185 186if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189fi 190 191if as_func_ret_success; then 192 : 193else 194 exitcode=1 195 echo as_func_ret_success failed. 196fi 197 198if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201fi 202 203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205else 206 exitcode=1 207 echo positional parameters were not saved. 208fi 209 210test \$exitcode = 0) || { (exit 1); exit 1; } 211 212( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217") 2> /dev/null; then 218 : 219else 220 as_candidate_shells= 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223do 224 IFS=$as_save_IFS 225 test -z "$as_dir" && as_dir=. 226 case $as_dir in 227 /*) 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232done 233IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250esac 251 252fi 253 254 255: 256_ASEOF 257}; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277(as_func_return () { 278 (exit $1) 279} 280as_func_success () { 281 as_func_return 0 282} 283as_func_failure () { 284 as_func_return 1 285} 286as_func_ret_success () { 287 return 0 288} 289as_func_ret_failure () { 290 return 1 291} 292 293exitcode=0 294if as_func_success; then 295 : 296else 297 exitcode=1 298 echo as_func_success failed. 299fi 300 301if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304fi 305 306if as_func_ret_success; then 307 : 308else 309 exitcode=1 310 echo as_func_ret_success failed. 311fi 312 313if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316fi 317 318if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320else 321 exitcode=1 322 echo positional parameters were not saved. 323fi 324 325test $exitcode = 0) || { (exit 1); exit 1; } 326 327( 328 as_lineno_1=$LINENO 329 as_lineno_2=$LINENO 330 test "x$as_lineno_1" != "x$as_lineno_2" && 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333_ASEOF 334}; then 335 break 336fi 337 338fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357fi 358 359 360fi 361 362fi 363 364 365 366(eval "as_func_return () { 367 (exit \$1) 368} 369as_func_success () { 370 as_func_return 0 371} 372as_func_failure () { 373 as_func_return 1 374} 375as_func_ret_success () { 376 return 0 377} 378as_func_ret_failure () { 379 return 1 380} 381 382exitcode=0 383if as_func_success; then 384 : 385else 386 exitcode=1 387 echo as_func_success failed. 388fi 389 390if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393fi 394 395if as_func_ret_success; then 396 : 397else 398 exitcode=1 399 echo as_func_ret_success failed. 400fi 401 402if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405fi 406 407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409else 410 exitcode=1 411 echo positional parameters were not saved. 412fi 413 414test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419} 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429 # uniformly replaced by the line number. The first 'sed' inserts a 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 447 N 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450 t loop 451 s/-\n.*// 452 ' >$as_me.lineno && 453 chmod +x "$as_me.lineno" || 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455 { (exit 1); exit 1; }; } 456 457 # Don't try to exec as it changes $[0], causing all sort of problems 458 # (the dirname of $[0] is not the place where we might find the 459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 461 # Exit status is that of the last command. 462 exit 463} 464 465 466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468else 469 as_dirname=false 470fi 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in 474-n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479*) 480 ECHO_N='-n';; 481esac 482 483if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 485 as_expr=expr 486else 487 as_expr=false 488fi 489 490rm -f conf$$ conf$$.exe conf$$.file 491if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496fi 497echo >conf$$.file 498if ln -s conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505 as_ln_s='cp -p' 506elif ln conf$$.file conf$$ 2>/dev/null; then 507 as_ln_s=ln 508else 509 as_ln_s='cp -p' 510fi 511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512rmdir conf$$.dir 2>/dev/null 513 514if mkdir -p . 2>/dev/null; then 515 as_mkdir_p=: 516else 517 test -d ./-p && rmdir ./-p 518 as_mkdir_p=false 519fi 520 521if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541fi 542as_executable_p=$as_test_x 543 544# Sed expression to map a string onto a valid CPP name. 545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546 547# Sed expression to map a string onto a valid variable name. 548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549 550 551 552exec 7<&0 </dev/null 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570SHELL=${CONFIG_SHELL-/bin/sh} 571 572# Identity of this package. 573PACKAGE_NAME='Ffidl' 574PACKAGE_TARNAME='ffidl' 575PACKAGE_VERSION='0.6.1' 576PACKAGE_STRING='Ffidl 0.6.1' 577PACKAGE_BUGREPORT='' 578 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='SHELL 616PATH_SEPARATOR 617PACKAGE_NAME 618PACKAGE_TARNAME 619PACKAGE_VERSION 620PACKAGE_STRING 621PACKAGE_BUGREPORT 622exec_prefix 623prefix 624program_transform_name 625bindir 626sbindir 627libexecdir 628datarootdir 629datadir 630sysconfdir 631sharedstatedir 632localstatedir 633includedir 634oldincludedir 635docdir 636infodir 637htmldir 638dvidir 639pdfdir 640psdir 641libdir 642localedir 643mandir 644DEFS 645ECHO_C 646ECHO_N 647ECHO_T 648LIBS 649build_alias 650host_alias 651target_alias 652CYGPATH 653EXEEXT 654PKG_LIB_FILE 655PKG_STUB_LIB_FILE 656PKG_STUB_SOURCES 657PKG_STUB_OBJECTS 658PKG_TCL_SOURCES 659PKG_HEADERS 660PKG_INCLUDES 661PKG_LIBS 662PKG_CFLAGS 663CONFIG_CLEAN_FILES 664TCL_VERSION 665TCL_PATCH_LEVEL 666TCL_BIN_DIR 667TCL_SRC_DIR 668TCL_LIB_FILE 669TCL_LIB_FLAG 670TCL_LIB_SPEC 671TCL_STUB_LIB_FILE 672TCL_STUB_LIB_FLAG 673TCL_STUB_LIB_SPEC 674CLEANFILES 675TCL_LIBS 676TCL_DEFS 677TCL_EXTRA_CFLAGS 678TCL_LD_FLAGS 679TCL_SHLIB_LD_LIBS 680CC 681CFLAGS 682LDFLAGS 683CPPFLAGS 684ac_ct_CC 685OBJEXT 686CPP 687INSTALL_PROGRAM 688INSTALL_SCRIPT 689INSTALL_DATA 690SET_MAKE 691RANLIB 692GREP 693EGREP 694MATH_LIBS 695PKG_SOURCES 696PKG_OBJECTS 697TCL_INCLUDES 698TCL_TOP_DIR_NATIVE 699FFIDL_TEST 700build 701build_cpu 702build_vendor 703build_os 704host 705host_cpu 706host_vendor 707host_os 708TCL_THREADS 709SHARED_BUILD 710AR 711CELIB_DIR 712CFLAGS_DEBUG 713CFLAGS_OPTIMIZE 714CFLAGS_WARNING 715STLIB_LD 716SHLIB_LD 717SHLIB_LD_LIBS 718SHLIB_CFLAGS 719LD_LIBRARY_PATH_VAR 720CFLAGS_DEFAULT 721LDFLAGS_DEFAULT 722TCL_DBGX 723MAKE_LIB 724MAKE_SHARED_LIB 725MAKE_STATIC_LIB 726MAKE_STUB_LIB 727RANLIB_STUB 728VC_MANIFEST_EMBED_DLL 729VC_MANIFEST_EMBED_EXE 730TCLSH_PROG 731LIBOBJS 732LTLIBOBJS' 733ac_subst_files='' 734 ac_precious_vars='build_alias 735host_alias 736target_alias 737CC 738CFLAGS 739LDFLAGS 740LIBS 741CPPFLAGS 742CPP' 743 744 745# Initialize some variables set by options. 746ac_init_help= 747ac_init_version=false 748# The variables have the same names as the options, with 749# dashes changed to underlines. 750cache_file=/dev/null 751exec_prefix=NONE 752no_create= 753no_recursion= 754prefix=NONE 755program_prefix=NONE 756program_suffix=NONE 757program_transform_name=s,x,x, 758silent= 759site= 760srcdir= 761verbose= 762x_includes=NONE 763x_libraries=NONE 764 765# Installation directory options. 766# These are left unexpanded so users can "make install exec_prefix=/foo" 767# and all the variables that are supposed to be based on exec_prefix 768# by default will actually change. 769# Use braces instead of parens because sh, perl, etc. also accept them. 770# (The list follows the same order as the GNU Coding Standards.) 771bindir='${exec_prefix}/bin' 772sbindir='${exec_prefix}/sbin' 773libexecdir='${exec_prefix}/libexec' 774datarootdir='${prefix}/share' 775datadir='${datarootdir}' 776sysconfdir='${prefix}/etc' 777sharedstatedir='${prefix}/com' 778localstatedir='${prefix}/var' 779includedir='${prefix}/include' 780oldincludedir='/usr/include' 781docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 782infodir='${datarootdir}/info' 783htmldir='${docdir}' 784dvidir='${docdir}' 785pdfdir='${docdir}' 786psdir='${docdir}' 787libdir='${exec_prefix}/lib' 788localedir='${datarootdir}/locale' 789mandir='${datarootdir}/man' 790 791ac_prev= 792ac_dashdash= 793for ac_option 794do 795 # If the previous option needs an argument, assign it. 796 if test -n "$ac_prev"; then 797 eval $ac_prev=\$ac_option 798 ac_prev= 799 continue 800 fi 801 802 case $ac_option in 803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 804 *) ac_optarg=yes ;; 805 esac 806 807 # Accept the important Cygnus configure options, so we can diagnose typos. 808 809 case $ac_dashdash$ac_option in 810 --) 811 ac_dashdash=yes ;; 812 813 -bindir | --bindir | --bindi | --bind | --bin | --bi) 814 ac_prev=bindir ;; 815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 816 bindir=$ac_optarg ;; 817 818 -build | --build | --buil | --bui | --bu) 819 ac_prev=build_alias ;; 820 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 821 build_alias=$ac_optarg ;; 822 823 -cache-file | --cache-file | --cache-fil | --cache-fi \ 824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 825 ac_prev=cache_file ;; 826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 828 cache_file=$ac_optarg ;; 829 830 --config-cache | -C) 831 cache_file=config.cache ;; 832 833 -datadir | --datadir | --datadi | --datad) 834 ac_prev=datadir ;; 835 -datadir=* | --datadir=* | --datadi=* | --datad=*) 836 datadir=$ac_optarg ;; 837 838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 839 | --dataroo | --dataro | --datar) 840 ac_prev=datarootdir ;; 841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 843 datarootdir=$ac_optarg ;; 844 845 -disable-* | --disable-*) 846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 847 # Reject names that are not valid shell variable names. 848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 850 { (exit 1); exit 1; }; } 851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 852 eval enable_$ac_feature=no ;; 853 854 -docdir | --docdir | --docdi | --doc | --do) 855 ac_prev=docdir ;; 856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 857 docdir=$ac_optarg ;; 858 859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 860 ac_prev=dvidir ;; 861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 862 dvidir=$ac_optarg ;; 863 864 -enable-* | --enable-*) 865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 866 # Reject names that are not valid shell variable names. 867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 869 { (exit 1); exit 1; }; } 870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 871 eval enable_$ac_feature=\$ac_optarg ;; 872 873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 875 | --exec | --exe | --ex) 876 ac_prev=exec_prefix ;; 877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 879 | --exec=* | --exe=* | --ex=*) 880 exec_prefix=$ac_optarg ;; 881 882 -gas | --gas | --ga | --g) 883 # Obsolete; use --with-gas. 884 with_gas=yes ;; 885 886 -help | --help | --hel | --he | -h) 887 ac_init_help=long ;; 888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 889 ac_init_help=recursive ;; 890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 891 ac_init_help=short ;; 892 893 -host | --host | --hos | --ho) 894 ac_prev=host_alias ;; 895 -host=* | --host=* | --hos=* | --ho=*) 896 host_alias=$ac_optarg ;; 897 898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 899 ac_prev=htmldir ;; 900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 901 | --ht=*) 902 htmldir=$ac_optarg ;; 903 904 -includedir | --includedir | --includedi | --included | --include \ 905 | --includ | --inclu | --incl | --inc) 906 ac_prev=includedir ;; 907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 908 | --includ=* | --inclu=* | --incl=* | --inc=*) 909 includedir=$ac_optarg ;; 910 911 -infodir | --infodir | --infodi | --infod | --info | --inf) 912 ac_prev=infodir ;; 913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 914 infodir=$ac_optarg ;; 915 916 -libdir | --libdir | --libdi | --libd) 917 ac_prev=libdir ;; 918 -libdir=* | --libdir=* | --libdi=* | --libd=*) 919 libdir=$ac_optarg ;; 920 921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 922 | --libexe | --libex | --libe) 923 ac_prev=libexecdir ;; 924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 925 | --libexe=* | --libex=* | --libe=*) 926 libexecdir=$ac_optarg ;; 927 928 -localedir | --localedir | --localedi | --localed | --locale) 929 ac_prev=localedir ;; 930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 931 localedir=$ac_optarg ;; 932 933 -localstatedir | --localstatedir | --localstatedi | --localstated \ 934 | --localstate | --localstat | --localsta | --localst | --locals) 935 ac_prev=localstatedir ;; 936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 938 localstatedir=$ac_optarg ;; 939 940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 941 ac_prev=mandir ;; 942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 943 mandir=$ac_optarg ;; 944 945 -nfp | --nfp | --nf) 946 # Obsolete; use --without-fp. 947 with_fp=no ;; 948 949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 950 | --no-cr | --no-c | -n) 951 no_create=yes ;; 952 953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 955 no_recursion=yes ;; 956 957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 959 | --oldin | --oldi | --old | --ol | --o) 960 ac_prev=oldincludedir ;; 961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 964 oldincludedir=$ac_optarg ;; 965 966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 967 ac_prev=prefix ;; 968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 969 prefix=$ac_optarg ;; 970 971 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 972 | --program-pre | --program-pr | --program-p) 973 ac_prev=program_prefix ;; 974 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 976 program_prefix=$ac_optarg ;; 977 978 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 979 | --program-suf | --program-su | --program-s) 980 ac_prev=program_suffix ;; 981 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 983 program_suffix=$ac_optarg ;; 984 985 -program-transform-name | --program-transform-name \ 986 | --program-transform-nam | --program-transform-na \ 987 | --program-transform-n | --program-transform- \ 988 | --program-transform | --program-transfor \ 989 | --program-transfo | --program-transf \ 990 | --program-trans | --program-tran \ 991 | --progr-tra | --program-tr | --program-t) 992 ac_prev=program_transform_name ;; 993 -program-transform-name=* | --program-transform-name=* \ 994 | --program-transform-nam=* | --program-transform-na=* \ 995 | --program-transform-n=* | --program-transform-=* \ 996 | --program-transform=* | --program-transfor=* \ 997 | --program-transfo=* | --program-transf=* \ 998 | --program-trans=* | --program-tran=* \ 999 | --progr-tra=* | --program-tr=* | --program-t=*) 1000 program_transform_name=$ac_optarg ;; 1001 1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1003 ac_prev=pdfdir ;; 1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1005 pdfdir=$ac_optarg ;; 1006 1007 -psdir | --psdir | --psdi | --psd | --ps) 1008 ac_prev=psdir ;; 1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1010 psdir=$ac_optarg ;; 1011 1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1013 | -silent | --silent | --silen | --sile | --sil) 1014 silent=yes ;; 1015 1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1017 ac_prev=sbindir ;; 1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1019 | --sbi=* | --sb=*) 1020 sbindir=$ac_optarg ;; 1021 1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1024 | --sharedst | --shareds | --shared | --share | --shar \ 1025 | --sha | --sh) 1026 ac_prev=sharedstatedir ;; 1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1030 | --sha=* | --sh=*) 1031 sharedstatedir=$ac_optarg ;; 1032 1033 -site | --site | --sit) 1034 ac_prev=site ;; 1035 -site=* | --site=* | --sit=*) 1036 site=$ac_optarg ;; 1037 1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1039 ac_prev=srcdir ;; 1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1041 srcdir=$ac_optarg ;; 1042 1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1044 | --syscon | --sysco | --sysc | --sys | --sy) 1045 ac_prev=sysconfdir ;; 1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1048 sysconfdir=$ac_optarg ;; 1049 1050 -target | --target | --targe | --targ | --tar | --ta | --t) 1051 ac_prev=target_alias ;; 1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1053 target_alias=$ac_optarg ;; 1054 1055 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1056 verbose=yes ;; 1057 1058 -version | --version | --versio | --versi | --vers | -V) 1059 ac_init_version=: ;; 1060 1061 -with-* | --with-*) 1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1063 # Reject names that are not valid shell variable names. 1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1065 { echo "$as_me: error: invalid package name: $ac_package" >&2 1066 { (exit 1); exit 1; }; } 1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1068 eval with_$ac_package=\$ac_optarg ;; 1069 1070 -without-* | --without-*) 1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1072 # Reject names that are not valid shell variable names. 1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1074 { echo "$as_me: error: invalid package name: $ac_package" >&2 1075 { (exit 1); exit 1; }; } 1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1077 eval with_$ac_package=no ;; 1078 1079 --x) 1080 # Obsolete; use --with-x. 1081 with_x=yes ;; 1082 1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1084 | --x-incl | --x-inc | --x-in | --x-i) 1085 ac_prev=x_includes ;; 1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1088 x_includes=$ac_optarg ;; 1089 1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1092 ac_prev=x_libraries ;; 1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1095 x_libraries=$ac_optarg ;; 1096 1097 -*) { echo "$as_me: error: unrecognized option: $ac_option 1098Try \`$0 --help' for more information." >&2 1099 { (exit 1); exit 1; }; } 1100 ;; 1101 1102 *=*) 1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1104 # Reject names that are not valid shell variable names. 1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1107 { (exit 1); exit 1; }; } 1108 eval $ac_envvar=\$ac_optarg 1109 export $ac_envvar ;; 1110 1111 *) 1112 # FIXME: should be removed in autoconf 3.0. 1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1117 ;; 1118 1119 esac 1120done 1121 1122if test -n "$ac_prev"; then 1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1124 { echo "$as_me: error: missing argument to $ac_option" >&2 1125 { (exit 1); exit 1; }; } 1126fi 1127 1128# Be sure to have absolute directory names. 1129for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1130 datadir sysconfdir sharedstatedir localstatedir includedir \ 1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1132 libdir localedir mandir 1133do 1134 eval ac_val=\$$ac_var 1135 case $ac_val in 1136 [\\/$]* | ?:[\\/]* ) continue;; 1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1138 esac 1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1140 { (exit 1); exit 1; }; } 1141done 1142 1143# There might be people who depend on the old broken behavior: `$host' 1144# used to hold the argument of --host etc. 1145# FIXME: To remove some day. 1146build=$build_alias 1147host=$host_alias 1148target=$target_alias 1149 1150# FIXME: To remove some day. 1151if test "x$host_alias" != x; then 1152 if test "x$build_alias" = x; then 1153 cross_compiling=maybe 1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1155 If a cross compiler is detected then cross compile mode will be used." >&2 1156 elif test "x$build_alias" != "x$host_alias"; then 1157 cross_compiling=yes 1158 fi 1159fi 1160 1161ac_tool_prefix= 1162test -n "$host_alias" && ac_tool_prefix=$host_alias- 1163 1164test "$silent" = yes && exec 6>/dev/null 1165 1166 1167ac_pwd=`pwd` && test -n "$ac_pwd" && 1168ac_ls_di=`ls -di .` && 1169ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1170 { echo "$as_me: error: Working directory cannot be determined" >&2 1171 { (exit 1); exit 1; }; } 1172test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1173 { echo "$as_me: error: pwd does not report name of working directory" >&2 1174 { (exit 1); exit 1; }; } 1175 1176 1177# Find the source files, if location was not specified. 1178if test -z "$srcdir"; then 1179 ac_srcdir_defaulted=yes 1180 # Try the directory containing this script, then the parent directory. 1181 ac_confdir=`$as_dirname -- "$0" || 1182$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1183 X"$0" : 'X\(//\)[^/]' \| \ 1184 X"$0" : 'X\(//\)$' \| \ 1185 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1186echo X"$0" | 1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1188 s//\1/ 1189 q 1190 } 1191 /^X\(\/\/\)[^/].*/{ 1192 s//\1/ 1193 q 1194 } 1195 /^X\(\/\/\)$/{ 1196 s//\1/ 1197 q 1198 } 1199 /^X\(\/\).*/{ 1200 s//\1/ 1201 q 1202 } 1203 s/.*/./; q'` 1204 srcdir=$ac_confdir 1205 if test ! -r "$srcdir/$ac_unique_file"; then 1206 srcdir=.. 1207 fi 1208else 1209 ac_srcdir_defaulted=no 1210fi 1211if test ! -r "$srcdir/$ac_unique_file"; then 1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1214 { (exit 1); exit 1; }; } 1215fi 1216ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1217ac_abs_confdir=`( 1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1219 { (exit 1); exit 1; }; } 1220 pwd)` 1221# When building in place, set srcdir=. 1222if test "$ac_abs_confdir" = "$ac_pwd"; then 1223 srcdir=. 1224fi 1225# Remove unnecessary trailing slashes from srcdir. 1226# Double slashes in file names in object file debugging info 1227# mess up M-x gdb in Emacs. 1228case $srcdir in 1229*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1230esac 1231for ac_var in $ac_precious_vars; do 1232 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1233 eval ac_env_${ac_var}_value=\$${ac_var} 1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1235 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1236done 1237 1238# 1239# Report the --help message. 1240# 1241if test "$ac_init_help" = "long"; then 1242 # Omit some internal or obsolete options to make the list less imposing. 1243 # This message is too long to be a string in the A/UX 3.1 sh. 1244 cat <<_ACEOF 1245\`configure' configures Ffidl 0.6.1 to adapt to many kinds of systems. 1246 1247Usage: $0 [OPTION]... [VAR=VALUE]... 1248 1249To assign environment variables (e.g., CC, CFLAGS...), specify them as 1250VAR=VALUE. See below for descriptions of some of the useful variables. 1251 1252Defaults for the options are specified in brackets. 1253 1254Configuration: 1255 -h, --help display this help and exit 1256 --help=short display options specific to this package 1257 --help=recursive display the short help of all the included packages 1258 -V, --version display version information and exit 1259 -q, --quiet, --silent do not print \`checking...' messages 1260 --cache-file=FILE cache test results in FILE [disabled] 1261 -C, --config-cache alias for \`--cache-file=config.cache' 1262 -n, --no-create do not create output files 1263 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1264 1265Installation directories: 1266 --prefix=PREFIX install architecture-independent files in PREFIX 1267 [$ac_default_prefix] 1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1269 [PREFIX] 1270 1271By default, \`make install' will install all the files in 1272\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1273an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1274for instance \`--prefix=\$HOME'. 1275 1276For better control, use the options below. 1277 1278Fine tuning of the installation directories: 1279 --bindir=DIR user executables [EPREFIX/bin] 1280 --sbindir=DIR system admin executables [EPREFIX/sbin] 1281 --libexecdir=DIR program executables [EPREFIX/libexec] 1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1285 --libdir=DIR object code libraries [EPREFIX/lib] 1286 --includedir=DIR C header files [PREFIX/include] 1287 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1290 --infodir=DIR info documentation [DATAROOTDIR/info] 1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1292 --mandir=DIR man documentation [DATAROOTDIR/man] 1293 --docdir=DIR documentation root [DATAROOTDIR/doc/ffidl] 1294 --htmldir=DIR html documentation [DOCDIR] 1295 --dvidir=DIR dvi documentation [DOCDIR] 1296 --pdfdir=DIR pdf documentation [DOCDIR] 1297 --psdir=DIR ps documentation [DOCDIR] 1298_ACEOF 1299 1300 cat <<\_ACEOF 1301 1302System types: 1303 --build=BUILD configure for building on BUILD [guessed] 1304 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1305_ACEOF 1306fi 1307 1308if test -n "$ac_init_help"; then 1309 case $ac_init_help in 1310 short | recursive ) echo "Configuration of Ffidl 0.6.1:";; 1311 esac 1312 cat <<\_ACEOF 1313 1314Optional Features: 1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1317 --enable-callbacks implement callbacks, if possible (default: on) 1318 --enable-test build ffidl test functions (default: off) 1319 --enable-threads build with threads 1320 --enable-shared build and link with shared libraries (default: on) 1321 --enable-64bit enable 64bit support (default: off) 1322 --enable-64bit-vis enable 64bit Sparc VIS support (default: off) 1323 --disable-rpath disable rpath support (default: on) 1324 --enable-wince enable Win/CE support (where applicable) 1325 --enable-symbols build with debugging symbols (default: off) 1326 1327Optional Packages: 1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1330 --with-tcl directory containing tcl configuration 1331 (tclConfig.sh) 1332 --with-tclinclude directory containing the public Tcl header files 1333 --with-libffi-include directory containing libffi headers 1334 --with-libffi-lib directory containing libffi library 1335 --with-celib=DIR use Windows/CE support library from DIR 1336 1337Some influential environment variables: 1338 CC C compiler command 1339 CFLAGS C compiler flags 1340 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1341 nonstandard directory <lib dir> 1342 LIBS libraries to pass to the linker, e.g. -l<library> 1343 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1344 you have headers in a nonstandard directory <include dir> 1345 CPP C preprocessor 1346 1347Use these variables to override the choices made by `configure' or to help 1348it to find libraries and programs with nonstandard names/locations. 1349 1350_ACEOF 1351ac_status=$? 1352fi 1353 1354if test "$ac_init_help" = "recursive"; then 1355 # If there are subdirs, report their specific --help. 1356 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1357 test -d "$ac_dir" || continue 1358 ac_builddir=. 1359 1360case "$ac_dir" in 1361.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1362*) 1363 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1364 # A ".." for each directory in $ac_dir_suffix. 1365 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1366 case $ac_top_builddir_sub in 1367 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1368 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1369 esac ;; 1370esac 1371ac_abs_top_builddir=$ac_pwd 1372ac_abs_builddir=$ac_pwd$ac_dir_suffix 1373# for backward compatibility: 1374ac_top_builddir=$ac_top_build_prefix 1375 1376case $srcdir in 1377 .) # We are building in place. 1378 ac_srcdir=. 1379 ac_top_srcdir=$ac_top_builddir_sub 1380 ac_abs_top_srcdir=$ac_pwd ;; 1381 [\\/]* | ?:[\\/]* ) # Absolute name. 1382 ac_srcdir=$srcdir$ac_dir_suffix; 1383 ac_top_srcdir=$srcdir 1384 ac_abs_top_srcdir=$srcdir ;; 1385 *) # Relative name. 1386 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1387 ac_top_srcdir=$ac_top_build_prefix$srcdir 1388 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1389esac 1390ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1391 1392 cd "$ac_dir" || { ac_status=$?; continue; } 1393 # Check for guested configure. 1394 if test -f "$ac_srcdir/configure.gnu"; then 1395 echo && 1396 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1397 elif test -f "$ac_srcdir/configure"; then 1398 echo && 1399 $SHELL "$ac_srcdir/configure" --help=recursive 1400 else 1401 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1402 fi || ac_status=$? 1403 cd "$ac_pwd" || { ac_status=$?; break; } 1404 done 1405fi 1406 1407test -n "$ac_init_help" && exit $ac_status 1408if $ac_init_version; then 1409 cat <<\_ACEOF 1410Ffidl configure 0.6.1 1411generated by GNU Autoconf 2.61 1412 1413Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 14142002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1415This configure script is free software; the Free Software Foundation 1416gives unlimited permission to copy, distribute and modify it. 1417_ACEOF 1418 exit 1419fi 1420cat >config.log <<_ACEOF 1421This file contains any messages produced by compilers while 1422running configure, to aid debugging if configure makes a mistake. 1423 1424It was created by Ffidl $as_me 0.6.1, which was 1425generated by GNU Autoconf 2.61. Invocation command line was 1426 1427 $ $0 $@ 1428 1429_ACEOF 1430exec 5>>config.log 1431{ 1432cat <<_ASUNAME 1433## --------- ## 1434## Platform. ## 1435## --------- ## 1436 1437hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1438uname -m = `(uname -m) 2>/dev/null || echo unknown` 1439uname -r = `(uname -r) 2>/dev/null || echo unknown` 1440uname -s = `(uname -s) 2>/dev/null || echo unknown` 1441uname -v = `(uname -v) 2>/dev/null || echo unknown` 1442 1443/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1444/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1445 1446/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1447/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1448/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1449/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1450/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1451/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1452/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1453 1454_ASUNAME 1455 1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1457for as_dir in $PATH 1458do 1459 IFS=$as_save_IFS 1460 test -z "$as_dir" && as_dir=. 1461 echo "PATH: $as_dir" 1462done 1463IFS=$as_save_IFS 1464 1465} >&5 1466 1467cat >&5 <<_ACEOF 1468 1469 1470## ----------- ## 1471## Core tests. ## 1472## ----------- ## 1473 1474_ACEOF 1475 1476 1477# Keep a trace of the command line. 1478# Strip out --no-create and --no-recursion so they do not pile up. 1479# Strip out --silent because we don't want to record it for future runs. 1480# Also quote any args containing shell meta-characters. 1481# Make two passes to allow for proper duplicate-argument suppression. 1482ac_configure_args= 1483ac_configure_args0= 1484ac_configure_args1= 1485ac_must_keep_next=false 1486for ac_pass in 1 2 1487do 1488 for ac_arg 1489 do 1490 case $ac_arg in 1491 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1492 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1493 | -silent | --silent | --silen | --sile | --sil) 1494 continue ;; 1495 *\'*) 1496 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1497 esac 1498 case $ac_pass in 1499 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1500 2) 1501 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1502 if test $ac_must_keep_next = true; then 1503 ac_must_keep_next=false # Got value, back to normal. 1504 else 1505 case $ac_arg in 1506 *=* | --config-cache | -C | -disable-* | --disable-* \ 1507 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1508 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1509 | -with-* | --with-* | -without-* | --without-* | --x) 1510 case "$ac_configure_args0 " in 1511 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1512 esac 1513 ;; 1514 -* ) ac_must_keep_next=true ;; 1515 esac 1516 fi 1517 ac_configure_args="$ac_configure_args '$ac_arg'" 1518 ;; 1519 esac 1520 done 1521done 1522$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1523$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1524 1525# When interrupted or exit'd, cleanup temporary files, and complete 1526# config.log. We remove comments because anyway the quotes in there 1527# would cause problems or look ugly. 1528# WARNING: Use '\'' to represent an apostrophe within the trap. 1529# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1530trap 'exit_status=$? 1531 # Save into config.log some information that might help in debugging. 1532 { 1533 echo 1534 1535 cat <<\_ASBOX 1536## ---------------- ## 1537## Cache variables. ## 1538## ---------------- ## 1539_ASBOX 1540 echo 1541 # The following way of writing the cache mishandles newlines in values, 1542( 1543 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1544 eval ac_val=\$$ac_var 1545 case $ac_val in #( 1546 *${as_nl}*) 1547 case $ac_var in #( 1548 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1549echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1550 esac 1551 case $ac_var in #( 1552 _ | IFS | as_nl) ;; #( 1553 *) $as_unset $ac_var ;; 1554 esac ;; 1555 esac 1556 done 1557 (set) 2>&1 | 1558 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1559 *${as_nl}ac_space=\ *) 1560 sed -n \ 1561 "s/'\''/'\''\\\\'\'''\''/g; 1562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1563 ;; #( 1564 *) 1565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1566 ;; 1567 esac | 1568 sort 1569) 1570 echo 1571 1572 cat <<\_ASBOX 1573## ----------------- ## 1574## Output variables. ## 1575## ----------------- ## 1576_ASBOX 1577 echo 1578 for ac_var in $ac_subst_vars 1579 do 1580 eval ac_val=\$$ac_var 1581 case $ac_val in 1582 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1583 esac 1584 echo "$ac_var='\''$ac_val'\''" 1585 done | sort 1586 echo 1587 1588 if test -n "$ac_subst_files"; then 1589 cat <<\_ASBOX 1590## ------------------- ## 1591## File substitutions. ## 1592## ------------------- ## 1593_ASBOX 1594 echo 1595 for ac_var in $ac_subst_files 1596 do 1597 eval ac_val=\$$ac_var 1598 case $ac_val in 1599 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1600 esac 1601 echo "$ac_var='\''$ac_val'\''" 1602 done | sort 1603 echo 1604 fi 1605 1606 if test -s confdefs.h; then 1607 cat <<\_ASBOX 1608## ----------- ## 1609## confdefs.h. ## 1610## ----------- ## 1611_ASBOX 1612 echo 1613 cat confdefs.h 1614 echo 1615 fi 1616 test "$ac_signal" != 0 && 1617 echo "$as_me: caught signal $ac_signal" 1618 echo "$as_me: exit $exit_status" 1619 } >&5 1620 rm -f core *.core core.conftest.* && 1621 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1622 exit $exit_status 1623' 0 1624for ac_signal in 1 2 13 15; do 1625 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1626done 1627ac_signal=0 1628 1629# confdefs.h avoids OS command line length limits that DEFS can exceed. 1630rm -f -r conftest* confdefs.h 1631 1632# Predefined preprocessor variables. 1633 1634cat >>confdefs.h <<_ACEOF 1635#define PACKAGE_NAME "$PACKAGE_NAME" 1636_ACEOF 1637 1638 1639cat >>confdefs.h <<_ACEOF 1640#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1641_ACEOF 1642 1643 1644cat >>confdefs.h <<_ACEOF 1645#define PACKAGE_VERSION "$PACKAGE_VERSION" 1646_ACEOF 1647 1648 1649cat >>confdefs.h <<_ACEOF 1650#define PACKAGE_STRING "$PACKAGE_STRING" 1651_ACEOF 1652 1653 1654cat >>confdefs.h <<_ACEOF 1655#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1656_ACEOF 1657 1658 1659# Let the site file select an alternate cache file if it wants to. 1660# Prefer explicitly selected file to automatically selected ones. 1661if test -n "$CONFIG_SITE"; then 1662 set x "$CONFIG_SITE" 1663elif test "x$prefix" != xNONE; then 1664 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1665else 1666 set x "$ac_default_prefix/share/config.site" \ 1667 "$ac_default_prefix/etc/config.site" 1668fi 1669shift 1670for ac_site_file 1671do 1672 if test -r "$ac_site_file"; then 1673 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1674echo "$as_me: loading site script $ac_site_file" >&6;} 1675 sed 's/^/| /' "$ac_site_file" >&5 1676 . "$ac_site_file" 1677 fi 1678done 1679 1680if test -r "$cache_file"; then 1681 # Some versions of bash will fail to source /dev/null (special 1682 # files actually), so we avoid doing that. 1683 if test -f "$cache_file"; then 1684 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1685echo "$as_me: loading cache $cache_file" >&6;} 1686 case $cache_file in 1687 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1688 *) . "./$cache_file";; 1689 esac 1690 fi 1691else 1692 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1693echo "$as_me: creating cache $cache_file" >&6;} 1694 >$cache_file 1695fi 1696 1697# Check that the precious variables saved in the cache have kept the same 1698# value. 1699ac_cache_corrupted=false 1700for ac_var in $ac_precious_vars; do 1701 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1702 eval ac_new_set=\$ac_env_${ac_var}_set 1703 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1704 eval ac_new_val=\$ac_env_${ac_var}_value 1705 case $ac_old_set,$ac_new_set in 1706 set,) 1707 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1708echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1709 ac_cache_corrupted=: ;; 1710 ,set) 1711 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1712echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1713 ac_cache_corrupted=: ;; 1714 ,);; 1715 *) 1716 if test "x$ac_old_val" != "x$ac_new_val"; then 1717 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1718echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1719 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1720echo "$as_me: former value: $ac_old_val" >&2;} 1721 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1722echo "$as_me: current value: $ac_new_val" >&2;} 1723 ac_cache_corrupted=: 1724 fi;; 1725 esac 1726 # Pass precious variables to config.status. 1727 if test "$ac_new_set" = set; then 1728 case $ac_new_val in 1729 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1730 *) ac_arg=$ac_var=$ac_new_val ;; 1731 esac 1732 case " $ac_configure_args " in 1733 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1734 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1735 esac 1736 fi 1737done 1738if $ac_cache_corrupted; then 1739 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1740echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1741 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1742echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1743 { (exit 1); exit 1; }; } 1744fi 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770ac_ext=c 1771ac_cpp='$CPP $CPPFLAGS' 1772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1774ac_compiler_gnu=$ac_cv_c_compiler_gnu 1775 1776 1777 1778 1779 1780#----------------------------------------------------------------------- 1781# Ffidl TEA configure 1782# 1783# Copyright (c) 2005-2008 Daniel A. Steffen. 1784# 1785# See the file "license.terms" for information on usage and redistribution 1786# of this file, and for a DISCLAIMER OF ALL WARRANTIES. 1787#----------------------------------------------------------------------- 1788 1789 1790cat >>confdefs.h <<_ACEOF 1791#define FFIDL_VERSION "$PACKAGE_VERSION" 1792_ACEOF 1793 1794 1795if test "`uname -s`" != "Darwin" -o "`uname -r | cut -f 1 -d .`" -lt 9; then 1796 { { echo "$as_me:$LINENO: error: Mac OS X 10.5 or later required!" >&5 1797echo "$as_me: error: Mac OS X 10.5 or later required!" >&2;} 1798 { (exit 1); exit 1; }; } 1799fi 1800 1801#-------------------------------------------------------------------- 1802# Call TEA_INIT as the first TEA_ macro to set up initial vars. 1803# This will define a ${TEA_PLATFORM} variable == "unix" or "windows" 1804# as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE. 1805#-------------------------------------------------------------------- 1806 1807 1808 # TEA extensions pass this us the version of TEA they think they 1809 # are compatible with. 1810 TEA_VERSION="3.9" 1811 1812 { echo "$as_me:$LINENO: checking for correct TEA configuration" >&5 1813echo $ECHO_N "checking for correct TEA configuration... $ECHO_C" >&6; } 1814 if test x"${PACKAGE_NAME}" = x ; then 1815 { { echo "$as_me:$LINENO: error: 1816The PACKAGE_NAME variable must be defined by your TEA configure.in" >&5 1817echo "$as_me: error: 1818The PACKAGE_NAME variable must be defined by your TEA configure.in" >&2;} 1819 { (exit 1); exit 1; }; } 1820 fi 1821 if test x"3.9" = x ; then 1822 { { echo "$as_me:$LINENO: error: 1823TEA version not specified." >&5 1824echo "$as_me: error: 1825TEA version not specified." >&2;} 1826 { (exit 1); exit 1; }; } 1827 elif test "3.9" != "${TEA_VERSION}" ; then 1828 { echo "$as_me:$LINENO: result: warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&5 1829echo "${ECHO_T}warning: requested TEA version \"3.9\", have \"${TEA_VERSION}\"" >&6; } 1830 else 1831 { echo "$as_me:$LINENO: result: ok (TEA ${TEA_VERSION})" >&5 1832echo "${ECHO_T}ok (TEA ${TEA_VERSION})" >&6; } 1833 fi 1834 case "`uname -s`" in 1835 *win32*|*WIN32*|*MINGW32_*) 1836 # Extract the first word of "cygpath", so it can be a program name with args. 1837set dummy cygpath; ac_word=$2 1838{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1840if test "${ac_cv_prog_CYGPATH+set}" = set; then 1841 echo $ECHO_N "(cached) $ECHO_C" >&6 1842else 1843 if test -n "$CYGPATH"; then 1844 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 1845else 1846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1847for as_dir in $PATH 1848do 1849 IFS=$as_save_IFS 1850 test -z "$as_dir" && as_dir=. 1851 for ac_exec_ext in '' $ac_executable_extensions; do 1852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1853 ac_cv_prog_CYGPATH="cygpath -w" 1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1855 break 2 1856 fi 1857done 1858done 1859IFS=$as_save_IFS 1860 1861 test -z "$ac_cv_prog_CYGPATH" && ac_cv_prog_CYGPATH="echo" 1862fi 1863fi 1864CYGPATH=$ac_cv_prog_CYGPATH 1865if test -n "$CYGPATH"; then 1866 { echo "$as_me:$LINENO: result: $CYGPATH" >&5 1867echo "${ECHO_T}$CYGPATH" >&6; } 1868else 1869 { echo "$as_me:$LINENO: result: no" >&5 1870echo "${ECHO_T}no" >&6; } 1871fi 1872 1873 1874 EXEEXT=".exe" 1875 TEA_PLATFORM="windows" 1876 ;; 1877 *CYGWIN_*) 1878 CYGPATH=echo 1879 EXEEXT=".exe" 1880 # TEA_PLATFORM is determined later in LOAD_TCLCONFIG 1881 ;; 1882 *) 1883 CYGPATH=echo 1884 EXEEXT="" 1885 TEA_PLATFORM="unix" 1886 ;; 1887 esac 1888 1889 # Check if exec_prefix is set. If not use fall back to prefix. 1890 # Note when adjusted, so that TEA_PREFIX can correct for this. 1891 # This is needed for recursive configures, since autoconf propagates 1892 # $prefix, but not $exec_prefix (doh!). 1893 if test x$exec_prefix = xNONE ; then 1894 exec_prefix_default=yes 1895 exec_prefix=$prefix 1896 fi 1897 1898 1899 1900 1901 # This package name must be replaced statically for AC_SUBST to work 1902 1903 # Substitute STUB_LIB_FILE in case package creates a stub library too. 1904 1905 1906 # We AC_SUBST these here to ensure they are subst'ed, 1907 # in case the user doesn't call TEA_ADD_... 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917ac_aux_dir= 1918for ac_dir in tclconfig "$srcdir"/tclconfig; do 1919 if test -f "$ac_dir/install-sh"; then 1920 ac_aux_dir=$ac_dir 1921 ac_install_sh="$ac_aux_dir/install-sh -c" 1922 break 1923 elif test -f "$ac_dir/install.sh"; then 1924 ac_aux_dir=$ac_dir 1925 ac_install_sh="$ac_aux_dir/install.sh -c" 1926 break 1927 elif test -f "$ac_dir/shtool"; then 1928 ac_aux_dir=$ac_dir 1929 ac_install_sh="$ac_aux_dir/shtool install -c" 1930 break 1931 fi 1932done 1933if test -z "$ac_aux_dir"; then 1934 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&5 1935echo "$as_me: error: cannot find install-sh or install.sh in tclconfig \"$srcdir\"/tclconfig" >&2;} 1936 { (exit 1); exit 1; }; } 1937fi 1938 1939# These three variables are undocumented and unsupported, 1940# and are intended to be withdrawn in a future Autoconf release. 1941# They can cause serious problems if a builder's source tree is in a directory 1942# whose full name contains unusual characters. 1943ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1944ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1945ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1946 1947 1948 1949#-------------------------------------------------------------------- 1950# ffidl autoheader 1951#-------------------------------------------------------------------- 1952 1953ac_config_headers="$ac_config_headers ffidlConfig.h" 1954 1955 1956 vars="-imacros ffidlConfig.h" 1957 for i in $vars; do 1958 PKG_INCLUDES="$PKG_INCLUDES $i" 1959 done 1960 1961 1962CONFIG_CLEAN_FILES=ffidlConfig.h 1963 1964 1965 1966 1967 1968#-------------------------------------------------------------------- 1969# Load the tclConfig.sh file 1970#-------------------------------------------------------------------- 1971 1972 1973 1974 # 1975 # Ok, lets find the tcl configuration 1976 # First, look for one uninstalled. 1977 # the alternative search directory is invoked by --with-tcl 1978 # 1979 1980 if test x"${no_tcl}" = x ; then 1981 # we reset no_tcl in case something fails here 1982 no_tcl=true 1983 1984# Check whether --with-tcl was given. 1985if test "${with_tcl+set}" = set; then 1986 withval=$with_tcl; with_tclconfig="${withval}" 1987fi 1988 1989 { echo "$as_me:$LINENO: checking for Tcl configuration" >&5 1990echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6; } 1991 if test "${ac_cv_c_tclconfig+set}" = set; then 1992 echo $ECHO_N "(cached) $ECHO_C" >&6 1993else 1994 1995 1996 # First check to see if --with-tcl was specified. 1997 if test x"${with_tclconfig}" != x ; then 1998 case "${with_tclconfig}" in 1999 */tclConfig.sh ) 2000 if test -f "${with_tclconfig}"; then 2001 { echo "$as_me:$LINENO: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&5 2002echo "$as_me: WARNING: --with-tcl argument should refer to directory containing tclConfig.sh, not to tclConfig.sh itself" >&2;} 2003 with_tclconfig="`echo "${with_tclconfig}" | sed 's!/tclConfig\.sh$!!'`" 2004 fi ;; 2005 esac 2006 if test -f "${with_tclconfig}/tclConfig.sh" ; then 2007 ac_cv_c_tclconfig="`(cd "${with_tclconfig}"; pwd)`" 2008 else 2009 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 2010echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} 2011 { (exit 1); exit 1; }; } 2012 fi 2013 fi 2014 2015 # then check for a private Tcl installation 2016 if test x"${ac_cv_c_tclconfig}" = x ; then 2017 for i in \ 2018 ../tcl \ 2019 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2020 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \ 2021 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \ 2022 ../../tcl \ 2023 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2024 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \ 2025 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \ 2026 ../../../tcl \ 2027 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2028 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \ 2029 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do 2030 if test "${TEA_PLATFORM}" = "windows" \ 2031 -a -f "$i/win/tclConfig.sh" ; then 2032 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2033 break 2034 fi 2035 if test -f "$i/unix/tclConfig.sh" ; then 2036 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2037 break 2038 fi 2039 done 2040 fi 2041 2042 # on Darwin, check in Framework installation locations 2043 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then 2044 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \ 2045 `ls -d /Library/Frameworks 2>/dev/null` \ 2046 `ls -d /Network/Library/Frameworks 2>/dev/null` \ 2047 `ls -d /System/Library/Frameworks 2>/dev/null` \ 2048 ; do 2049 if test -f "$i/Tcl.framework/tclConfig.sh" ; then 2050 ac_cv_c_tclconfig="`(cd $i/Tcl.framework; pwd)`" 2051 break 2052 fi 2053 done 2054 fi 2055 2056 # TEA specific: on Windows, check in common installation locations 2057 if test "${TEA_PLATFORM}" = "windows" \ 2058 -a x"${ac_cv_c_tclconfig}" = x ; then 2059 for i in `ls -d C:/Tcl/lib 2>/dev/null` \ 2060 `ls -d C:/Progra~1/Tcl/lib 2>/dev/null` \ 2061 ; do 2062 if test -f "$i/tclConfig.sh" ; then 2063 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2064 break 2065 fi 2066 done 2067 fi 2068 2069 # check in a few common install locations 2070 if test x"${ac_cv_c_tclconfig}" = x ; then 2071 for i in `ls -d ${libdir} 2>/dev/null` \ 2072 `ls -d ${exec_prefix}/lib 2>/dev/null` \ 2073 `ls -d ${prefix}/lib 2>/dev/null` \ 2074 `ls -d /usr/local/lib 2>/dev/null` \ 2075 `ls -d /usr/contrib/lib 2>/dev/null` \ 2076 `ls -d /usr/lib 2>/dev/null` \ 2077 `ls -d /usr/lib64 2>/dev/null` \ 2078 ; do 2079 if test -f "$i/tclConfig.sh" ; then 2080 ac_cv_c_tclconfig="`(cd $i; pwd)`" 2081 break 2082 fi 2083 done 2084 fi 2085 2086 # check in a few other private locations 2087 if test x"${ac_cv_c_tclconfig}" = x ; then 2088 for i in \ 2089 ${srcdir}/../tcl \ 2090 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \ 2091 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \ 2092 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do 2093 if test "${TEA_PLATFORM}" = "windows" \ 2094 -a -f "$i/win/tclConfig.sh" ; then 2095 ac_cv_c_tclconfig="`(cd $i/win; pwd)`" 2096 break 2097 fi 2098 if test -f "$i/unix/tclConfig.sh" ; then 2099 ac_cv_c_tclconfig="`(cd $i/unix; pwd)`" 2100 break 2101 fi 2102 done 2103 fi 2104 2105fi 2106 2107 2108 if test x"${ac_cv_c_tclconfig}" = x ; then 2109 TCL_BIN_DIR="# no Tcl configs found" 2110 { { echo "$as_me:$LINENO: error: Can't find Tcl configuration definitions" >&5 2111echo "$as_me: error: Can't find Tcl configuration definitions" >&2;} 2112 { (exit 1); exit 1; }; } 2113 else 2114 no_tcl= 2115 TCL_BIN_DIR="${ac_cv_c_tclconfig}" 2116 { echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5 2117echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2118 fi 2119 fi 2120 2121 2122 { echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5 2123echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6; } 2124 2125 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then 2126 { echo "$as_me:$LINENO: result: loading" >&5 2127echo "${ECHO_T}loading" >&6; } 2128 . "${TCL_BIN_DIR}/tclConfig.sh" 2129 else 2130 { echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5 2131echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; } 2132 fi 2133 2134 # eval is required to do the TCL_DBGX substitution 2135 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\"" 2136 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\"" 2137 2138 # If the TCL_BIN_DIR is the build directory (not the install directory), 2139 # then set the common variable name to the value of the build variables. 2140 # For example, the variable TCL_LIB_SPEC will be set to the value 2141 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC 2142 # instead of TCL_BUILD_LIB_SPEC since it will work with both an 2143 # installed and uninstalled version of Tcl. 2144 if test -f "${TCL_BIN_DIR}/Makefile" ; then 2145 TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" 2146 TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" 2147 TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" 2148 elif test "`uname -s`" = "Darwin"; then 2149 # If Tcl was built as a framework, attempt to use the libraries 2150 # from the framework at the given location so that linking works 2151 # against Tcl.framework installed in an arbitrary location. 2152 case ${TCL_DEFS} in 2153 *TCL_FRAMEWORK*) 2154 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then 2155 for i in "`cd "${TCL_BIN_DIR}"; pwd`" \ 2156 "`cd "${TCL_BIN_DIR}"/../..; pwd`"; do 2157 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then 2158 TCL_LIB_SPEC="-F`dirname "$i" | sed -e 's/ /\\\\ /g'` -framework ${TCL_LIB_FILE}" 2159 break 2160 fi 2161 done 2162 fi 2163 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then 2164 TCL_STUB_LIB_SPEC="-L`echo "${TCL_BIN_DIR}" | sed -e 's/ /\\\\ /g'` ${TCL_STUB_LIB_FLAG}" 2165 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}" 2166 fi 2167 ;; 2168 esac 2169 fi 2170 2171 # eval is required to do the TCL_DBGX substitution 2172 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\"" 2173 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\"" 2174 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\"" 2175 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\"" 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 case "`uname -s`" in 2191 *CYGWIN_*) 2192 { echo "$as_me:$LINENO: checking for cygwin variant" >&5 2193echo $ECHO_N "checking for cygwin variant... $ECHO_C" >&6; } 2194 case ${TCL_EXTRA_CFLAGS} in 2195 *-mwin32*|*-mno-cygwin*) 2196 TEA_PLATFORM="windows" 2197 CFLAGS="$CFLAGS -mwin32" 2198 { echo "$as_me:$LINENO: result: win32" >&5 2199echo "${ECHO_T}win32" >&6; } 2200 ;; 2201 *) 2202 TEA_PLATFORM="unix" 2203 { echo "$as_me:$LINENO: result: unix" >&5 2204echo "${ECHO_T}unix" >&6; } 2205 ;; 2206 esac 2207 EXEEXT=".exe" 2208 ;; 2209 *) 2210 ;; 2211 esac 2212 2213 # Do this here as we have fully defined TEA_PLATFORM now 2214 if test "${TEA_PLATFORM}" = "windows" ; then 2215 # The BUILD_$pkg is to define the correct extern storage class 2216 # handling when making this package 2217 2218cat >>confdefs.h <<_ACEOF 2219#define BUILD_${PACKAGE_NAME} 2220_ACEOF 2221 2222 CLEANFILES="$CLEANFILES *.lib *.dll *.pdb *.exp" 2223 fi 2224 2225 # TEA specific: 2226 2227 2228 2229 2230 2231 2232 2233 2234#----------------------------------------------------------------------- 2235# Handle the --prefix=... option by defaulting to what Tcl gave. 2236# Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER. 2237#----------------------------------------------------------------------- 2238 2239 2240 if test "${prefix}" = "NONE"; then 2241 prefix_default=yes 2242 if test x"${TCL_PREFIX}" != x; then 2243 { echo "$as_me:$LINENO: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&5 2244echo "$as_me: --prefix defaulting to TCL_PREFIX ${TCL_PREFIX}" >&6;} 2245 prefix=${TCL_PREFIX} 2246 else 2247 { echo "$as_me:$LINENO: --prefix defaulting to /usr/local" >&5 2248echo "$as_me: --prefix defaulting to /usr/local" >&6;} 2249 prefix=/usr/local 2250 fi 2251 fi 2252 if test "${exec_prefix}" = "NONE" -a x"${prefix_default}" = x"yes" \ 2253 -o x"${exec_prefix_default}" = x"yes" ; then 2254 if test x"${TCL_EXEC_PREFIX}" != x; then 2255 { echo "$as_me:$LINENO: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&5 2256echo "$as_me: --exec-prefix defaulting to TCL_EXEC_PREFIX ${TCL_EXEC_PREFIX}" >&6;} 2257 exec_prefix=${TCL_EXEC_PREFIX} 2258 else 2259 { echo "$as_me:$LINENO: --exec-prefix defaulting to ${prefix}" >&5 2260echo "$as_me: --exec-prefix defaulting to ${prefix}" >&6;} 2261 exec_prefix=$prefix 2262 fi 2263 fi 2264 2265 2266#----------------------------------------------------------------------- 2267# Standard compiler checks. 2268# This sets up CC by using the CC env var, or looks for gcc otherwise. 2269# This also calls AC_PROG_CC, AC_PROG_INSTALL and a few others to create 2270# the basic setup necessary to compile executables. 2271#----------------------------------------------------------------------- 2272 2273 2274 # Don't put any macros that use the compiler (e.g. AC_TRY_COMPILE) 2275 # in this macro, they need to go into TEA_SETUP_COMPILER instead. 2276 2277 # If the user did not set CFLAGS, set it now to keep 2278 # the AC_PROG_CC macro from adding "-g -O2". 2279 if test "${CFLAGS+set}" != "set" ; then 2280 CFLAGS="" 2281 fi 2282 2283 ac_ext=c 2284ac_cpp='$CPP $CPPFLAGS' 2285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2287ac_compiler_gnu=$ac_cv_c_compiler_gnu 2288if test -n "$ac_tool_prefix"; then 2289 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2290set dummy ${ac_tool_prefix}gcc; ac_word=$2 2291{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2293if test "${ac_cv_prog_CC+set}" = set; then 2294 echo $ECHO_N "(cached) $ECHO_C" >&6 2295else 2296 if test -n "$CC"; then 2297 ac_cv_prog_CC="$CC" # Let the user override the test. 2298else 2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 for ac_exec_ext in '' $ac_executable_extensions; do 2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2306 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2308 break 2 2309 fi 2310done 2311done 2312IFS=$as_save_IFS 2313 2314fi 2315fi 2316CC=$ac_cv_prog_CC 2317if test -n "$CC"; then 2318 { echo "$as_me:$LINENO: result: $CC" >&5 2319echo "${ECHO_T}$CC" >&6; } 2320else 2321 { echo "$as_me:$LINENO: result: no" >&5 2322echo "${ECHO_T}no" >&6; } 2323fi 2324 2325 2326fi 2327if test -z "$ac_cv_prog_CC"; then 2328 ac_ct_CC=$CC 2329 # Extract the first word of "gcc", so it can be a program name with args. 2330set dummy gcc; ac_word=$2 2331{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2333if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2334 echo $ECHO_N "(cached) $ECHO_C" >&6 2335else 2336 if test -n "$ac_ct_CC"; then 2337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2338else 2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2340for as_dir in $PATH 2341do 2342 IFS=$as_save_IFS 2343 test -z "$as_dir" && as_dir=. 2344 for ac_exec_ext in '' $ac_executable_extensions; do 2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2346 ac_cv_prog_ac_ct_CC="gcc" 2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2348 break 2 2349 fi 2350done 2351done 2352IFS=$as_save_IFS 2353 2354fi 2355fi 2356ac_ct_CC=$ac_cv_prog_ac_ct_CC 2357if test -n "$ac_ct_CC"; then 2358 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2359echo "${ECHO_T}$ac_ct_CC" >&6; } 2360else 2361 { echo "$as_me:$LINENO: result: no" >&5 2362echo "${ECHO_T}no" >&6; } 2363fi 2364 2365 if test "x$ac_ct_CC" = x; then 2366 CC="" 2367 else 2368 case $cross_compiling:$ac_tool_warned in 2369yes:) 2370{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2371whose name does not start with the host triplet. If you think this 2372configuration is useful to you, please write to autoconf@gnu.org." >&5 2373echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2374whose name does not start with the host triplet. If you think this 2375configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2376ac_tool_warned=yes ;; 2377esac 2378 CC=$ac_ct_CC 2379 fi 2380else 2381 CC="$ac_cv_prog_CC" 2382fi 2383 2384if test -z "$CC"; then 2385 if test -n "$ac_tool_prefix"; then 2386 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2387set dummy ${ac_tool_prefix}cc; ac_word=$2 2388{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2390if test "${ac_cv_prog_CC+set}" = set; then 2391 echo $ECHO_N "(cached) $ECHO_C" >&6 2392else 2393 if test -n "$CC"; then 2394 ac_cv_prog_CC="$CC" # Let the user override the test. 2395else 2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2397for as_dir in $PATH 2398do 2399 IFS=$as_save_IFS 2400 test -z "$as_dir" && as_dir=. 2401 for ac_exec_ext in '' $ac_executable_extensions; do 2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2403 ac_cv_prog_CC="${ac_tool_prefix}cc" 2404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2405 break 2 2406 fi 2407done 2408done 2409IFS=$as_save_IFS 2410 2411fi 2412fi 2413CC=$ac_cv_prog_CC 2414if test -n "$CC"; then 2415 { echo "$as_me:$LINENO: result: $CC" >&5 2416echo "${ECHO_T}$CC" >&6; } 2417else 2418 { echo "$as_me:$LINENO: result: no" >&5 2419echo "${ECHO_T}no" >&6; } 2420fi 2421 2422 2423 fi 2424fi 2425if test -z "$CC"; then 2426 # Extract the first word of "cc", so it can be a program name with args. 2427set dummy cc; ac_word=$2 2428{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2430if test "${ac_cv_prog_CC+set}" = set; then 2431 echo $ECHO_N "(cached) $ECHO_C" >&6 2432else 2433 if test -n "$CC"; then 2434 ac_cv_prog_CC="$CC" # Let the user override the test. 2435else 2436 ac_prog_rejected=no 2437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2438for as_dir in $PATH 2439do 2440 IFS=$as_save_IFS 2441 test -z "$as_dir" && as_dir=. 2442 for ac_exec_ext in '' $ac_executable_extensions; do 2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2445 ac_prog_rejected=yes 2446 continue 2447 fi 2448 ac_cv_prog_CC="cc" 2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2450 break 2 2451 fi 2452done 2453done 2454IFS=$as_save_IFS 2455 2456if test $ac_prog_rejected = yes; then 2457 # We found a bogon in the path, so make sure we never use it. 2458 set dummy $ac_cv_prog_CC 2459 shift 2460 if test $# != 0; then 2461 # We chose a different compiler from the bogus one. 2462 # However, it has the same basename, so the bogon will be chosen 2463 # first if we set CC to just the basename; use the full file name. 2464 shift 2465 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2466 fi 2467fi 2468fi 2469fi 2470CC=$ac_cv_prog_CC 2471if test -n "$CC"; then 2472 { echo "$as_me:$LINENO: result: $CC" >&5 2473echo "${ECHO_T}$CC" >&6; } 2474else 2475 { echo "$as_me:$LINENO: result: no" >&5 2476echo "${ECHO_T}no" >&6; } 2477fi 2478 2479 2480fi 2481if test -z "$CC"; then 2482 if test -n "$ac_tool_prefix"; then 2483 for ac_prog in cl.exe 2484 do 2485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2486set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2487{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2489if test "${ac_cv_prog_CC+set}" = set; then 2490 echo $ECHO_N "(cached) $ECHO_C" >&6 2491else 2492 if test -n "$CC"; then 2493 ac_cv_prog_CC="$CC" # Let the user override the test. 2494else 2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2496for as_dir in $PATH 2497do 2498 IFS=$as_save_IFS 2499 test -z "$as_dir" && as_dir=. 2500 for ac_exec_ext in '' $ac_executable_extensions; do 2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2502 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2504 break 2 2505 fi 2506done 2507done 2508IFS=$as_save_IFS 2509 2510fi 2511fi 2512CC=$ac_cv_prog_CC 2513if test -n "$CC"; then 2514 { echo "$as_me:$LINENO: result: $CC" >&5 2515echo "${ECHO_T}$CC" >&6; } 2516else 2517 { echo "$as_me:$LINENO: result: no" >&5 2518echo "${ECHO_T}no" >&6; } 2519fi 2520 2521 2522 test -n "$CC" && break 2523 done 2524fi 2525if test -z "$CC"; then 2526 ac_ct_CC=$CC 2527 for ac_prog in cl.exe 2528do 2529 # Extract the first word of "$ac_prog", so it can be a program name with args. 2530set dummy $ac_prog; ac_word=$2 2531{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2533if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2534 echo $ECHO_N "(cached) $ECHO_C" >&6 2535else 2536 if test -n "$ac_ct_CC"; then 2537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2538else 2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2540for as_dir in $PATH 2541do 2542 IFS=$as_save_IFS 2543 test -z "$as_dir" && as_dir=. 2544 for ac_exec_ext in '' $ac_executable_extensions; do 2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2546 ac_cv_prog_ac_ct_CC="$ac_prog" 2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2548 break 2 2549 fi 2550done 2551done 2552IFS=$as_save_IFS 2553 2554fi 2555fi 2556ac_ct_CC=$ac_cv_prog_ac_ct_CC 2557if test -n "$ac_ct_CC"; then 2558 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2559echo "${ECHO_T}$ac_ct_CC" >&6; } 2560else 2561 { echo "$as_me:$LINENO: result: no" >&5 2562echo "${ECHO_T}no" >&6; } 2563fi 2564 2565 2566 test -n "$ac_ct_CC" && break 2567done 2568 2569 if test "x$ac_ct_CC" = x; then 2570 CC="" 2571 else 2572 case $cross_compiling:$ac_tool_warned in 2573yes:) 2574{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2575whose name does not start with the host triplet. If you think this 2576configuration is useful to you, please write to autoconf@gnu.org." >&5 2577echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2578whose name does not start with the host triplet. If you think this 2579configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2580ac_tool_warned=yes ;; 2581esac 2582 CC=$ac_ct_CC 2583 fi 2584fi 2585 2586fi 2587 2588 2589test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2590See \`config.log' for more details." >&5 2591echo "$as_me: error: no acceptable C compiler found in \$PATH 2592See \`config.log' for more details." >&2;} 2593 { (exit 1); exit 1; }; } 2594 2595# Provide some information about the compiler. 2596echo "$as_me:$LINENO: checking for C compiler version" >&5 2597ac_compiler=`set X $ac_compile; echo $2` 2598{ (ac_try="$ac_compiler --version >&5" 2599case "(($ac_try" in 2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2601 *) ac_try_echo=$ac_try;; 2602esac 2603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2604 (eval "$ac_compiler --version >&5") 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); } 2608{ (ac_try="$ac_compiler -v >&5" 2609case "(($ac_try" in 2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2611 *) ac_try_echo=$ac_try;; 2612esac 2613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2614 (eval "$ac_compiler -v >&5") 2>&5 2615 ac_status=$? 2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2617 (exit $ac_status); } 2618{ (ac_try="$ac_compiler -V >&5" 2619case "(($ac_try" in 2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2621 *) ac_try_echo=$ac_try;; 2622esac 2623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2624 (eval "$ac_compiler -V >&5") 2>&5 2625 ac_status=$? 2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2627 (exit $ac_status); } 2628 2629cat >conftest.$ac_ext <<_ACEOF 2630/* confdefs.h. */ 2631_ACEOF 2632cat confdefs.h >>conftest.$ac_ext 2633cat >>conftest.$ac_ext <<_ACEOF 2634/* end confdefs.h. */ 2635 2636int 2637main () 2638{ 2639 2640 ; 2641 return 0; 2642} 2643_ACEOF 2644ac_clean_files_save=$ac_clean_files 2645ac_clean_files="$ac_clean_files a.out a.exe b.out" 2646# Try to create an executable without -o first, disregard a.out. 2647# It will help us diagnose broken compilers, and finding out an intuition 2648# of exeext. 2649{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2650echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2651ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2652# 2653# List of possible output files, starting from the most likely. 2654# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2655# only as a last resort. b.out is created by i960 compilers. 2656ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2657# 2658# The IRIX 6 linker writes into existing files which may not be 2659# executable, retaining their permissions. Remove them first so a 2660# subsequent execution test works. 2661ac_rmfiles= 2662for ac_file in $ac_files 2663do 2664 case $ac_file in 2665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2666 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2667 esac 2668done 2669rm -f $ac_rmfiles 2670 2671if { (ac_try="$ac_link_default" 2672case "(($ac_try" in 2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2674 *) ac_try_echo=$ac_try;; 2675esac 2676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2677 (eval "$ac_link_default") 2>&5 2678 ac_status=$? 2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2680 (exit $ac_status); }; then 2681 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2682# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2683# in a Makefile. We should not override ac_cv_exeext if it was cached, 2684# so that the user can short-circuit this test for compilers unknown to 2685# Autoconf. 2686for ac_file in $ac_files '' 2687do 2688 test -f "$ac_file" || continue 2689 case $ac_file in 2690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2691 ;; 2692 [ab].out ) 2693 # We found the default executable, but exeext='' is most 2694 # certainly right. 2695 break;; 2696 *.* ) 2697 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2698 then :; else 2699 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2700 fi 2701 # We set ac_cv_exeext here because the later test for it is not 2702 # safe: cross compilers may not add the suffix if given an `-o' 2703 # argument, so we may need to know it at that point already. 2704 # Even if this section looks crufty: it has the advantage of 2705 # actually working. 2706 break;; 2707 * ) 2708 break;; 2709 esac 2710done 2711test "$ac_cv_exeext" = no && ac_cv_exeext= 2712 2713else 2714 ac_file='' 2715fi 2716 2717{ echo "$as_me:$LINENO: result: $ac_file" >&5 2718echo "${ECHO_T}$ac_file" >&6; } 2719if test -z "$ac_file"; then 2720 echo "$as_me: failed program was:" >&5 2721sed 's/^/| /' conftest.$ac_ext >&5 2722 2723{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2724See \`config.log' for more details." >&5 2725echo "$as_me: error: C compiler cannot create executables 2726See \`config.log' for more details." >&2;} 2727 { (exit 77); exit 77; }; } 2728fi 2729 2730ac_exeext=$ac_cv_exeext 2731 2732# Check that the compiler produces executables we can run. If not, either 2733# the compiler is broken, or we cross compile. 2734{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2735echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2736# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2737# If not cross compiling, check that we can run a simple program. 2738if test "$cross_compiling" != yes; then 2739 if { ac_try='./$ac_file' 2740 { (case "(($ac_try" in 2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2742 *) ac_try_echo=$ac_try;; 2743esac 2744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2745 (eval "$ac_try") 2>&5 2746 ac_status=$? 2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 (exit $ac_status); }; }; then 2749 cross_compiling=no 2750 else 2751 if test "$cross_compiling" = maybe; then 2752 cross_compiling=yes 2753 else 2754 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2755If you meant to cross compile, use \`--host'. 2756See \`config.log' for more details." >&5 2757echo "$as_me: error: cannot run C compiled programs. 2758If you meant to cross compile, use \`--host'. 2759See \`config.log' for more details." >&2;} 2760 { (exit 1); exit 1; }; } 2761 fi 2762 fi 2763fi 2764{ echo "$as_me:$LINENO: result: yes" >&5 2765echo "${ECHO_T}yes" >&6; } 2766 2767rm -f a.out a.exe conftest$ac_cv_exeext b.out 2768ac_clean_files=$ac_clean_files_save 2769# Check that the compiler produces executables we can run. If not, either 2770# the compiler is broken, or we cross compile. 2771{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2772echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2773{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2774echo "${ECHO_T}$cross_compiling" >&6; } 2775 2776{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2777echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2778if { (ac_try="$ac_link" 2779case "(($ac_try" in 2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2781 *) ac_try_echo=$ac_try;; 2782esac 2783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2784 (eval "$ac_link") 2>&5 2785 ac_status=$? 2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2787 (exit $ac_status); }; then 2788 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2789# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2790# work properly (i.e., refer to `conftest.exe'), while it won't with 2791# `rm'. 2792for ac_file in conftest.exe conftest conftest.*; do 2793 test -f "$ac_file" || continue 2794 case $ac_file in 2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2796 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2797 break;; 2798 * ) break;; 2799 esac 2800done 2801else 2802 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2803See \`config.log' for more details." >&5 2804echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2805See \`config.log' for more details." >&2;} 2806 { (exit 1); exit 1; }; } 2807fi 2808 2809rm -f conftest$ac_cv_exeext 2810{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2811echo "${ECHO_T}$ac_cv_exeext" >&6; } 2812 2813rm -f conftest.$ac_ext 2814EXEEXT=$ac_cv_exeext 2815ac_exeext=$EXEEXT 2816{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2817echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2818if test "${ac_cv_objext+set}" = set; then 2819 echo $ECHO_N "(cached) $ECHO_C" >&6 2820else 2821 cat >conftest.$ac_ext <<_ACEOF 2822/* confdefs.h. */ 2823_ACEOF 2824cat confdefs.h >>conftest.$ac_ext 2825cat >>conftest.$ac_ext <<_ACEOF 2826/* end confdefs.h. */ 2827 2828int 2829main () 2830{ 2831 2832 ; 2833 return 0; 2834} 2835_ACEOF 2836rm -f conftest.o conftest.obj 2837if { (ac_try="$ac_compile" 2838case "(($ac_try" in 2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2840 *) ac_try_echo=$ac_try;; 2841esac 2842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2843 (eval "$ac_compile") 2>&5 2844 ac_status=$? 2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2846 (exit $ac_status); }; then 2847 for ac_file in conftest.o conftest.obj conftest.*; do 2848 test -f "$ac_file" || continue; 2849 case $ac_file in 2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2852 break;; 2853 esac 2854done 2855else 2856 echo "$as_me: failed program was:" >&5 2857sed 's/^/| /' conftest.$ac_ext >&5 2858 2859{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2860See \`config.log' for more details." >&5 2861echo "$as_me: error: cannot compute suffix of object files: cannot compile 2862See \`config.log' for more details." >&2;} 2863 { (exit 1); exit 1; }; } 2864fi 2865 2866rm -f conftest.$ac_cv_objext conftest.$ac_ext 2867fi 2868{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2869echo "${ECHO_T}$ac_cv_objext" >&6; } 2870OBJEXT=$ac_cv_objext 2871ac_objext=$OBJEXT 2872{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2873echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2874if test "${ac_cv_c_compiler_gnu+set}" = set; then 2875 echo $ECHO_N "(cached) $ECHO_C" >&6 2876else 2877 cat >conftest.$ac_ext <<_ACEOF 2878/* confdefs.h. */ 2879_ACEOF 2880cat confdefs.h >>conftest.$ac_ext 2881cat >>conftest.$ac_ext <<_ACEOF 2882/* end confdefs.h. */ 2883 2884int 2885main () 2886{ 2887#ifndef __GNUC__ 2888 choke me 2889#endif 2890 2891 ; 2892 return 0; 2893} 2894_ACEOF 2895rm -f conftest.$ac_objext 2896if { (ac_try="$ac_compile" 2897case "(($ac_try" in 2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2899 *) ac_try_echo=$ac_try;; 2900esac 2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2902 (eval "$ac_compile") 2>conftest.er1 2903 ac_status=$? 2904 grep -v '^ *+' conftest.er1 >conftest.err 2905 rm -f conftest.er1 2906 cat conftest.err >&5 2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2908 (exit $ac_status); } && { 2909 test -z "$ac_c_werror_flag" || 2910 test ! -s conftest.err 2911 } && test -s conftest.$ac_objext; then 2912 ac_compiler_gnu=yes 2913else 2914 echo "$as_me: failed program was:" >&5 2915sed 's/^/| /' conftest.$ac_ext >&5 2916 2917 ac_compiler_gnu=no 2918fi 2919 2920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2921ac_cv_c_compiler_gnu=$ac_compiler_gnu 2922 2923fi 2924{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2925echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2926GCC=`test $ac_compiler_gnu = yes && echo yes` 2927ac_test_CFLAGS=${CFLAGS+set} 2928ac_save_CFLAGS=$CFLAGS 2929{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2930echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2931if test "${ac_cv_prog_cc_g+set}" = set; then 2932 echo $ECHO_N "(cached) $ECHO_C" >&6 2933else 2934 ac_save_c_werror_flag=$ac_c_werror_flag 2935 ac_c_werror_flag=yes 2936 ac_cv_prog_cc_g=no 2937 CFLAGS="-g" 2938 cat >conftest.$ac_ext <<_ACEOF 2939/* confdefs.h. */ 2940_ACEOF 2941cat confdefs.h >>conftest.$ac_ext 2942cat >>conftest.$ac_ext <<_ACEOF 2943/* end confdefs.h. */ 2944 2945int 2946main () 2947{ 2948 2949 ; 2950 return 0; 2951} 2952_ACEOF 2953rm -f conftest.$ac_objext 2954if { (ac_try="$ac_compile" 2955case "(($ac_try" in 2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2957 *) ac_try_echo=$ac_try;; 2958esac 2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2960 (eval "$ac_compile") 2>conftest.er1 2961 ac_status=$? 2962 grep -v '^ *+' conftest.er1 >conftest.err 2963 rm -f conftest.er1 2964 cat conftest.err >&5 2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2966 (exit $ac_status); } && { 2967 test -z "$ac_c_werror_flag" || 2968 test ! -s conftest.err 2969 } && test -s conftest.$ac_objext; then 2970 ac_cv_prog_cc_g=yes 2971else 2972 echo "$as_me: failed program was:" >&5 2973sed 's/^/| /' conftest.$ac_ext >&5 2974 2975 CFLAGS="" 2976 cat >conftest.$ac_ext <<_ACEOF 2977/* confdefs.h. */ 2978_ACEOF 2979cat confdefs.h >>conftest.$ac_ext 2980cat >>conftest.$ac_ext <<_ACEOF 2981/* end confdefs.h. */ 2982 2983int 2984main () 2985{ 2986 2987 ; 2988 return 0; 2989} 2990_ACEOF 2991rm -f conftest.$ac_objext 2992if { (ac_try="$ac_compile" 2993case "(($ac_try" in 2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2995 *) ac_try_echo=$ac_try;; 2996esac 2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2998 (eval "$ac_compile") 2>conftest.er1 2999 ac_status=$? 3000 grep -v '^ *+' conftest.er1 >conftest.err 3001 rm -f conftest.er1 3002 cat conftest.err >&5 3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3004 (exit $ac_status); } && { 3005 test -z "$ac_c_werror_flag" || 3006 test ! -s conftest.err 3007 } && test -s conftest.$ac_objext; then 3008 : 3009else 3010 echo "$as_me: failed program was:" >&5 3011sed 's/^/| /' conftest.$ac_ext >&5 3012 3013 ac_c_werror_flag=$ac_save_c_werror_flag 3014 CFLAGS="-g" 3015 cat >conftest.$ac_ext <<_ACEOF 3016/* confdefs.h. */ 3017_ACEOF 3018cat confdefs.h >>conftest.$ac_ext 3019cat >>conftest.$ac_ext <<_ACEOF 3020/* end confdefs.h. */ 3021 3022int 3023main () 3024{ 3025 3026 ; 3027 return 0; 3028} 3029_ACEOF 3030rm -f conftest.$ac_objext 3031if { (ac_try="$ac_compile" 3032case "(($ac_try" in 3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3034 *) ac_try_echo=$ac_try;; 3035esac 3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3037 (eval "$ac_compile") 2>conftest.er1 3038 ac_status=$? 3039 grep -v '^ *+' conftest.er1 >conftest.err 3040 rm -f conftest.er1 3041 cat conftest.err >&5 3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); } && { 3044 test -z "$ac_c_werror_flag" || 3045 test ! -s conftest.err 3046 } && test -s conftest.$ac_objext; then 3047 ac_cv_prog_cc_g=yes 3048else 3049 echo "$as_me: failed program was:" >&5 3050sed 's/^/| /' conftest.$ac_ext >&5 3051 3052 3053fi 3054 3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3056fi 3057 3058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3059fi 3060 3061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3062 ac_c_werror_flag=$ac_save_c_werror_flag 3063fi 3064{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3065echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3066if test "$ac_test_CFLAGS" = set; then 3067 CFLAGS=$ac_save_CFLAGS 3068elif test $ac_cv_prog_cc_g = yes; then 3069 if test "$GCC" = yes; then 3070 CFLAGS="-g -O2" 3071 else 3072 CFLAGS="-g" 3073 fi 3074else 3075 if test "$GCC" = yes; then 3076 CFLAGS="-O2" 3077 else 3078 CFLAGS= 3079 fi 3080fi 3081{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3082echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3083if test "${ac_cv_prog_cc_c89+set}" = set; then 3084 echo $ECHO_N "(cached) $ECHO_C" >&6 3085else 3086 ac_cv_prog_cc_c89=no 3087ac_save_CC=$CC 3088cat >conftest.$ac_ext <<_ACEOF 3089/* confdefs.h. */ 3090_ACEOF 3091cat confdefs.h >>conftest.$ac_ext 3092cat >>conftest.$ac_ext <<_ACEOF 3093/* end confdefs.h. */ 3094#include <stdarg.h> 3095#include <stdio.h> 3096#include <sys/types.h> 3097#include <sys/stat.h> 3098/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3099struct buf { int x; }; 3100FILE * (*rcsopen) (struct buf *, struct stat *, int); 3101static char *e (p, i) 3102 char **p; 3103 int i; 3104{ 3105 return p[i]; 3106} 3107static char *f (char * (*g) (char **, int), char **p, ...) 3108{ 3109 char *s; 3110 va_list v; 3111 va_start (v,p); 3112 s = g (p, va_arg (v,int)); 3113 va_end (v); 3114 return s; 3115} 3116 3117/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3118 function prototypes and stuff, but not '\xHH' hex character constants. 3119 These don't provoke an error unfortunately, instead are silently treated 3120 as 'x'. The following induces an error, until -std is added to get 3121 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3122 array size at least. It's necessary to write '\x00'==0 to get something 3123 that's true only with -std. */ 3124int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3125 3126/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3127 inside strings and character constants. */ 3128#define FOO(x) 'x' 3129int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3130 3131int test (int i, double x); 3132struct s1 {int (*f) (int a);}; 3133struct s2 {int (*f) (double a);}; 3134int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3135int argc; 3136char **argv; 3137int 3138main () 3139{ 3140return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3141 ; 3142 return 0; 3143} 3144_ACEOF 3145for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3146 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3147do 3148 CC="$ac_save_CC $ac_arg" 3149 rm -f conftest.$ac_objext 3150if { (ac_try="$ac_compile" 3151case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3156 (eval "$ac_compile") 2>conftest.er1 3157 ac_status=$? 3158 grep -v '^ *+' conftest.er1 >conftest.err 3159 rm -f conftest.er1 3160 cat conftest.err >&5 3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3162 (exit $ac_status); } && { 3163 test -z "$ac_c_werror_flag" || 3164 test ! -s conftest.err 3165 } && test -s conftest.$ac_objext; then 3166 ac_cv_prog_cc_c89=$ac_arg 3167else 3168 echo "$as_me: failed program was:" >&5 3169sed 's/^/| /' conftest.$ac_ext >&5 3170 3171 3172fi 3173 3174rm -f core conftest.err conftest.$ac_objext 3175 test "x$ac_cv_prog_cc_c89" != "xno" && break 3176done 3177rm -f conftest.$ac_ext 3178CC=$ac_save_CC 3179 3180fi 3181# AC_CACHE_VAL 3182case "x$ac_cv_prog_cc_c89" in 3183 x) 3184 { echo "$as_me:$LINENO: result: none needed" >&5 3185echo "${ECHO_T}none needed" >&6; } ;; 3186 xno) 3187 { echo "$as_me:$LINENO: result: unsupported" >&5 3188echo "${ECHO_T}unsupported" >&6; } ;; 3189 *) 3190 CC="$CC $ac_cv_prog_cc_c89" 3191 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3192echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3193esac 3194 3195 3196ac_ext=c 3197ac_cpp='$CPP $CPPFLAGS' 3198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3200ac_compiler_gnu=$ac_cv_c_compiler_gnu 3201 3202 ac_ext=c 3203ac_cpp='$CPP $CPPFLAGS' 3204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3206ac_compiler_gnu=$ac_cv_c_compiler_gnu 3207{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3208echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3209# On Suns, sometimes $CPP names a directory. 3210if test -n "$CPP" && test -d "$CPP"; then 3211 CPP= 3212fi 3213if test -z "$CPP"; then 3214 if test "${ac_cv_prog_CPP+set}" = set; then 3215 echo $ECHO_N "(cached) $ECHO_C" >&6 3216else 3217 # Double quotes because CPP needs to be expanded 3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3219 do 3220 ac_preproc_ok=false 3221for ac_c_preproc_warn_flag in '' yes 3222do 3223 # Use a header file that comes with gcc, so configuring glibc 3224 # with a fresh cross-compiler works. 3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3226 # <limits.h> exists even on freestanding compilers. 3227 # On the NeXT, cc -E runs the code through the compiler's parser, 3228 # not just through cpp. "Syntax error" is here to catch this case. 3229 cat >conftest.$ac_ext <<_ACEOF 3230/* confdefs.h. */ 3231_ACEOF 3232cat confdefs.h >>conftest.$ac_ext 3233cat >>conftest.$ac_ext <<_ACEOF 3234/* end confdefs.h. */ 3235#ifdef __STDC__ 3236# include <limits.h> 3237#else 3238# include <assert.h> 3239#endif 3240 Syntax error 3241_ACEOF 3242if { (ac_try="$ac_cpp conftest.$ac_ext" 3243case "(($ac_try" in 3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3245 *) ac_try_echo=$ac_try;; 3246esac 3247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3249 ac_status=$? 3250 grep -v '^ *+' conftest.er1 >conftest.err 3251 rm -f conftest.er1 3252 cat conftest.err >&5 3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3254 (exit $ac_status); } >/dev/null && { 3255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3256 test ! -s conftest.err 3257 }; then 3258 : 3259else 3260 echo "$as_me: failed program was:" >&5 3261sed 's/^/| /' conftest.$ac_ext >&5 3262 3263 # Broken: fails on valid input. 3264continue 3265fi 3266 3267rm -f conftest.err conftest.$ac_ext 3268 3269 # OK, works on sane cases. Now check whether nonexistent headers 3270 # can be detected and how. 3271 cat >conftest.$ac_ext <<_ACEOF 3272/* confdefs.h. */ 3273_ACEOF 3274cat confdefs.h >>conftest.$ac_ext 3275cat >>conftest.$ac_ext <<_ACEOF 3276/* end confdefs.h. */ 3277#include <ac_nonexistent.h> 3278_ACEOF 3279if { (ac_try="$ac_cpp conftest.$ac_ext" 3280case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3286 ac_status=$? 3287 grep -v '^ *+' conftest.er1 >conftest.err 3288 rm -f conftest.er1 3289 cat conftest.err >&5 3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3291 (exit $ac_status); } >/dev/null && { 3292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3293 test ! -s conftest.err 3294 }; then 3295 # Broken: success on invalid input. 3296continue 3297else 3298 echo "$as_me: failed program was:" >&5 3299sed 's/^/| /' conftest.$ac_ext >&5 3300 3301 # Passes both tests. 3302ac_preproc_ok=: 3303break 3304fi 3305 3306rm -f conftest.err conftest.$ac_ext 3307 3308done 3309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3310rm -f conftest.err conftest.$ac_ext 3311if $ac_preproc_ok; then 3312 break 3313fi 3314 3315 done 3316 ac_cv_prog_CPP=$CPP 3317 3318fi 3319 CPP=$ac_cv_prog_CPP 3320else 3321 ac_cv_prog_CPP=$CPP 3322fi 3323{ echo "$as_me:$LINENO: result: $CPP" >&5 3324echo "${ECHO_T}$CPP" >&6; } 3325ac_preproc_ok=false 3326for ac_c_preproc_warn_flag in '' yes 3327do 3328 # Use a header file that comes with gcc, so configuring glibc 3329 # with a fresh cross-compiler works. 3330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3331 # <limits.h> exists even on freestanding compilers. 3332 # On the NeXT, cc -E runs the code through the compiler's parser, 3333 # not just through cpp. "Syntax error" is here to catch this case. 3334 cat >conftest.$ac_ext <<_ACEOF 3335/* confdefs.h. */ 3336_ACEOF 3337cat confdefs.h >>conftest.$ac_ext 3338cat >>conftest.$ac_ext <<_ACEOF 3339/* end confdefs.h. */ 3340#ifdef __STDC__ 3341# include <limits.h> 3342#else 3343# include <assert.h> 3344#endif 3345 Syntax error 3346_ACEOF 3347if { (ac_try="$ac_cpp conftest.$ac_ext" 3348case "(($ac_try" in 3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3350 *) ac_try_echo=$ac_try;; 3351esac 3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3354 ac_status=$? 3355 grep -v '^ *+' conftest.er1 >conftest.err 3356 rm -f conftest.er1 3357 cat conftest.err >&5 3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3359 (exit $ac_status); } >/dev/null && { 3360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3361 test ! -s conftest.err 3362 }; then 3363 : 3364else 3365 echo "$as_me: failed program was:" >&5 3366sed 's/^/| /' conftest.$ac_ext >&5 3367 3368 # Broken: fails on valid input. 3369continue 3370fi 3371 3372rm -f conftest.err conftest.$ac_ext 3373 3374 # OK, works on sane cases. Now check whether nonexistent headers 3375 # can be detected and how. 3376 cat >conftest.$ac_ext <<_ACEOF 3377/* confdefs.h. */ 3378_ACEOF 3379cat confdefs.h >>conftest.$ac_ext 3380cat >>conftest.$ac_ext <<_ACEOF 3381/* end confdefs.h. */ 3382#include <ac_nonexistent.h> 3383_ACEOF 3384if { (ac_try="$ac_cpp conftest.$ac_ext" 3385case "(($ac_try" in 3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3387 *) ac_try_echo=$ac_try;; 3388esac 3389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3391 ac_status=$? 3392 grep -v '^ *+' conftest.er1 >conftest.err 3393 rm -f conftest.er1 3394 cat conftest.err >&5 3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3396 (exit $ac_status); } >/dev/null && { 3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3398 test ! -s conftest.err 3399 }; then 3400 # Broken: success on invalid input. 3401continue 3402else 3403 echo "$as_me: failed program was:" >&5 3404sed 's/^/| /' conftest.$ac_ext >&5 3405 3406 # Passes both tests. 3407ac_preproc_ok=: 3408break 3409fi 3410 3411rm -f conftest.err conftest.$ac_ext 3412 3413done 3414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3415rm -f conftest.err conftest.$ac_ext 3416if $ac_preproc_ok; then 3417 : 3418else 3419 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3420See \`config.log' for more details." >&5 3421echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3422See \`config.log' for more details." >&2;} 3423 { (exit 1); exit 1; }; } 3424fi 3425 3426ac_ext=c 3427ac_cpp='$CPP $CPPFLAGS' 3428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3430ac_compiler_gnu=$ac_cv_c_compiler_gnu 3431 3432 3433 # Find a good install program. We prefer a C program (faster), 3434# so one script is as good as another. But avoid the broken or 3435# incompatible versions: 3436# SysV /etc/install, /usr/sbin/install 3437# SunOS /usr/etc/install 3438# IRIX /sbin/install 3439# AIX /bin/install 3440# AmigaOS /C/install, which installs bootblocks on floppy discs 3441# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3442# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3443# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3444# OS/2's system install, which has a completely different semantic 3445# ./install, which can be erroneously created by make from ./install.sh. 3446{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3447echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3448if test -z "$INSTALL"; then 3449if test "${ac_cv_path_install+set}" = set; then 3450 echo $ECHO_N "(cached) $ECHO_C" >&6 3451else 3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3453for as_dir in $PATH 3454do 3455 IFS=$as_save_IFS 3456 test -z "$as_dir" && as_dir=. 3457 # Account for people who put trailing slashes in PATH elements. 3458case $as_dir/ in 3459 ./ | .// | /cC/* | \ 3460 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3461 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3462 /usr/ucb/* ) ;; 3463 *) 3464 # OSF1 and SCO ODT 3.0 have their own names for install. 3465 # Don't use installbsd from OSF since it installs stuff as root 3466 # by default. 3467 for ac_prog in ginstall scoinst install; do 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3470 if test $ac_prog = install && 3471 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3472 # AIX install. It has an incompatible calling convention. 3473 : 3474 elif test $ac_prog = install && 3475 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3476 # program-specific install script used by HP pwplus--don't use. 3477 : 3478 else 3479 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3480 break 3 3481 fi 3482 fi 3483 done 3484 done 3485 ;; 3486esac 3487done 3488IFS=$as_save_IFS 3489 3490 3491fi 3492 if test "${ac_cv_path_install+set}" = set; then 3493 INSTALL=$ac_cv_path_install 3494 else 3495 # As a last resort, use the slow shell script. Don't cache a 3496 # value for INSTALL within a source directory, because that will 3497 # break other packages using the cache if that directory is 3498 # removed, or if the value is a relative name. 3499 INSTALL=$ac_install_sh 3500 fi 3501fi 3502{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3503echo "${ECHO_T}$INSTALL" >&6; } 3504 3505# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3506# It thinks the first close brace ends the variable substitution. 3507test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3508 3509test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3510 3511test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3512 3513 3514 #-------------------------------------------------------------------- 3515 # Checks to see if the make program sets the $MAKE variable. 3516 #-------------------------------------------------------------------- 3517 3518 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3519echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 3520set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3521if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 3522 echo $ECHO_N "(cached) $ECHO_C" >&6 3523else 3524 cat >conftest.make <<\_ACEOF 3525SHELL = /bin/sh 3526all: 3527 @echo '@@@%%%=$(MAKE)=@@@%%%' 3528_ACEOF 3529# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3530case `${MAKE-make} -f conftest.make 2>/dev/null` in 3531 *@@@%%%=?*=@@@%%%*) 3532 eval ac_cv_prog_make_${ac_make}_set=yes;; 3533 *) 3534 eval ac_cv_prog_make_${ac_make}_set=no;; 3535esac 3536rm -f conftest.make 3537fi 3538if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3539 { echo "$as_me:$LINENO: result: yes" >&5 3540echo "${ECHO_T}yes" >&6; } 3541 SET_MAKE= 3542else 3543 { echo "$as_me:$LINENO: result: no" >&5 3544echo "${ECHO_T}no" >&6; } 3545 SET_MAKE="MAKE=${MAKE-make}" 3546fi 3547 3548 3549 #-------------------------------------------------------------------- 3550 # Find ranlib 3551 #-------------------------------------------------------------------- 3552 3553 if test -n "$ac_tool_prefix"; then 3554 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3555set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3556{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3558if test "${ac_cv_prog_RANLIB+set}" = set; then 3559 echo $ECHO_N "(cached) $ECHO_C" >&6 3560else 3561 if test -n "$RANLIB"; then 3562 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3563else 3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3565for as_dir in $PATH 3566do 3567 IFS=$as_save_IFS 3568 test -z "$as_dir" && as_dir=. 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3571 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3573 break 2 3574 fi 3575done 3576done 3577IFS=$as_save_IFS 3578 3579fi 3580fi 3581RANLIB=$ac_cv_prog_RANLIB 3582if test -n "$RANLIB"; then 3583 { echo "$as_me:$LINENO: result: $RANLIB" >&5 3584echo "${ECHO_T}$RANLIB" >&6; } 3585else 3586 { echo "$as_me:$LINENO: result: no" >&5 3587echo "${ECHO_T}no" >&6; } 3588fi 3589 3590 3591fi 3592if test -z "$ac_cv_prog_RANLIB"; then 3593 ac_ct_RANLIB=$RANLIB 3594 # Extract the first word of "ranlib", so it can be a program name with args. 3595set dummy ranlib; ac_word=$2 3596{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3598if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3599 echo $ECHO_N "(cached) $ECHO_C" >&6 3600else 3601 if test -n "$ac_ct_RANLIB"; then 3602 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3603else 3604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3605for as_dir in $PATH 3606do 3607 IFS=$as_save_IFS 3608 test -z "$as_dir" && as_dir=. 3609 for ac_exec_ext in '' $ac_executable_extensions; do 3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3611 ac_cv_prog_ac_ct_RANLIB="ranlib" 3612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3613 break 2 3614 fi 3615done 3616done 3617IFS=$as_save_IFS 3618 3619fi 3620fi 3621ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3622if test -n "$ac_ct_RANLIB"; then 3623 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3624echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 3625else 3626 { echo "$as_me:$LINENO: result: no" >&5 3627echo "${ECHO_T}no" >&6; } 3628fi 3629 3630 if test "x$ac_ct_RANLIB" = x; then 3631 RANLIB=":" 3632 else 3633 case $cross_compiling:$ac_tool_warned in 3634yes:) 3635{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3636whose name does not start with the host triplet. If you think this 3637configuration is useful to you, please write to autoconf@gnu.org." >&5 3638echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3639whose name does not start with the host triplet. If you think this 3640configuration is useful to you, please write to autoconf@gnu.org." >&2;} 3641ac_tool_warned=yes ;; 3642esac 3643 RANLIB=$ac_ct_RANLIB 3644 fi 3645else 3646 RANLIB="$ac_cv_prog_RANLIB" 3647fi 3648 3649 3650 #-------------------------------------------------------------------- 3651 # Determines the correct binary file extension (.o, .obj, .exe etc.) 3652 #-------------------------------------------------------------------- 3653 3654 3655 3656 3657 3658 3659{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3660echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 3661if test "${ac_cv_path_GREP+set}" = set; then 3662 echo $ECHO_N "(cached) $ECHO_C" >&6 3663else 3664 # Extract the first word of "grep ggrep" to use in msg output 3665if test -z "$GREP"; then 3666set dummy grep ggrep; ac_prog_name=$2 3667if test "${ac_cv_path_GREP+set}" = set; then 3668 echo $ECHO_N "(cached) $ECHO_C" >&6 3669else 3670 ac_path_GREP_found=false 3671# Loop through the user's path and test for each of PROGNAME-LIST 3672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3673for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3674do 3675 IFS=$as_save_IFS 3676 test -z "$as_dir" && as_dir=. 3677 for ac_prog in grep ggrep; do 3678 for ac_exec_ext in '' $ac_executable_extensions; do 3679 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3680 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3681 # Check for GNU ac_path_GREP and select it if it is found. 3682 # Check for GNU $ac_path_GREP 3683case `"$ac_path_GREP" --version 2>&1` in 3684*GNU*) 3685 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3686*) 3687 ac_count=0 3688 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3689 while : 3690 do 3691 cat "conftest.in" "conftest.in" >"conftest.tmp" 3692 mv "conftest.tmp" "conftest.in" 3693 cp "conftest.in" "conftest.nl" 3694 echo 'GREP' >> "conftest.nl" 3695 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3697 ac_count=`expr $ac_count + 1` 3698 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3699 # Best one so far, save it but keep looking for a better one 3700 ac_cv_path_GREP="$ac_path_GREP" 3701 ac_path_GREP_max=$ac_count 3702 fi 3703 # 10*(2^10) chars as input seems more than enough 3704 test $ac_count -gt 10 && break 3705 done 3706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3707esac 3708 3709 3710 $ac_path_GREP_found && break 3 3711 done 3712done 3713 3714done 3715IFS=$as_save_IFS 3716 3717 3718fi 3719 3720GREP="$ac_cv_path_GREP" 3721if test -z "$GREP"; then 3722 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3723echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3724 { (exit 1); exit 1; }; } 3725fi 3726 3727else 3728 ac_cv_path_GREP=$GREP 3729fi 3730 3731 3732fi 3733{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 3734echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 3735 GREP="$ac_cv_path_GREP" 3736 3737 3738{ echo "$as_me:$LINENO: checking for egrep" >&5 3739echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 3740if test "${ac_cv_path_EGREP+set}" = set; then 3741 echo $ECHO_N "(cached) $ECHO_C" >&6 3742else 3743 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3744 then ac_cv_path_EGREP="$GREP -E" 3745 else 3746 # Extract the first word of "egrep" to use in msg output 3747if test -z "$EGREP"; then 3748set dummy egrep; ac_prog_name=$2 3749if test "${ac_cv_path_EGREP+set}" = set; then 3750 echo $ECHO_N "(cached) $ECHO_C" >&6 3751else 3752 ac_path_EGREP_found=false 3753# Loop through the user's path and test for each of PROGNAME-LIST 3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3756do 3757 IFS=$as_save_IFS 3758 test -z "$as_dir" && as_dir=. 3759 for ac_prog in egrep; do 3760 for ac_exec_ext in '' $ac_executable_extensions; do 3761 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3762 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3763 # Check for GNU ac_path_EGREP and select it if it is found. 3764 # Check for GNU $ac_path_EGREP 3765case `"$ac_path_EGREP" --version 2>&1` in 3766*GNU*) 3767 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3768*) 3769 ac_count=0 3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 3771 while : 3772 do 3773 cat "conftest.in" "conftest.in" >"conftest.tmp" 3774 mv "conftest.tmp" "conftest.in" 3775 cp "conftest.in" "conftest.nl" 3776 echo 'EGREP' >> "conftest.nl" 3777 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3779 ac_count=`expr $ac_count + 1` 3780 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3781 # Best one so far, save it but keep looking for a better one 3782 ac_cv_path_EGREP="$ac_path_EGREP" 3783 ac_path_EGREP_max=$ac_count 3784 fi 3785 # 10*(2^10) chars as input seems more than enough 3786 test $ac_count -gt 10 && break 3787 done 3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3789esac 3790 3791 3792 $ac_path_EGREP_found && break 3 3793 done 3794done 3795 3796done 3797IFS=$as_save_IFS 3798 3799 3800fi 3801 3802EGREP="$ac_cv_path_EGREP" 3803if test -z "$EGREP"; then 3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 3805echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 3806 { (exit 1); exit 1; }; } 3807fi 3808 3809else 3810 ac_cv_path_EGREP=$EGREP 3811fi 3812 3813 3814 fi 3815fi 3816{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 3817echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 3818 EGREP="$ac_cv_path_EGREP" 3819 3820 3821{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3822echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3823if test "${ac_cv_header_stdc+set}" = set; then 3824 echo $ECHO_N "(cached) $ECHO_C" >&6 3825else 3826 cat >conftest.$ac_ext <<_ACEOF 3827/* confdefs.h. */ 3828_ACEOF 3829cat confdefs.h >>conftest.$ac_ext 3830cat >>conftest.$ac_ext <<_ACEOF 3831/* end confdefs.h. */ 3832#include <stdlib.h> 3833#include <stdarg.h> 3834#include <string.h> 3835#include <float.h> 3836 3837int 3838main () 3839{ 3840 3841 ; 3842 return 0; 3843} 3844_ACEOF 3845rm -f conftest.$ac_objext 3846if { (ac_try="$ac_compile" 3847case "(($ac_try" in 3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3849 *) ac_try_echo=$ac_try;; 3850esac 3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3852 (eval "$ac_compile") 2>conftest.er1 3853 ac_status=$? 3854 grep -v '^ *+' conftest.er1 >conftest.err 3855 rm -f conftest.er1 3856 cat conftest.err >&5 3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3858 (exit $ac_status); } && { 3859 test -z "$ac_c_werror_flag" || 3860 test ! -s conftest.err 3861 } && test -s conftest.$ac_objext; then 3862 ac_cv_header_stdc=yes 3863else 3864 echo "$as_me: failed program was:" >&5 3865sed 's/^/| /' conftest.$ac_ext >&5 3866 3867 ac_cv_header_stdc=no 3868fi 3869 3870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3871 3872if test $ac_cv_header_stdc = yes; then 3873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3874 cat >conftest.$ac_ext <<_ACEOF 3875/* confdefs.h. */ 3876_ACEOF 3877cat confdefs.h >>conftest.$ac_ext 3878cat >>conftest.$ac_ext <<_ACEOF 3879/* end confdefs.h. */ 3880#include <string.h> 3881 3882_ACEOF 3883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3884 $EGREP "memchr" >/dev/null 2>&1; then 3885 : 3886else 3887 ac_cv_header_stdc=no 3888fi 3889rm -f -r conftest* 3890 3891fi 3892 3893if test $ac_cv_header_stdc = yes; then 3894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3895 cat >conftest.$ac_ext <<_ACEOF 3896/* confdefs.h. */ 3897_ACEOF 3898cat confdefs.h >>conftest.$ac_ext 3899cat >>conftest.$ac_ext <<_ACEOF 3900/* end confdefs.h. */ 3901#include <stdlib.h> 3902 3903_ACEOF 3904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3905 $EGREP "free" >/dev/null 2>&1; then 3906 : 3907else 3908 ac_cv_header_stdc=no 3909fi 3910rm -f -r conftest* 3911 3912fi 3913 3914if test $ac_cv_header_stdc = yes; then 3915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3916 if test "$cross_compiling" = yes; then 3917 : 3918else 3919 cat >conftest.$ac_ext <<_ACEOF 3920/* confdefs.h. */ 3921_ACEOF 3922cat confdefs.h >>conftest.$ac_ext 3923cat >>conftest.$ac_ext <<_ACEOF 3924/* end confdefs.h. */ 3925#include <ctype.h> 3926#include <stdlib.h> 3927#if ((' ' & 0x0FF) == 0x020) 3928# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3929# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3930#else 3931# define ISLOWER(c) \ 3932 (('a' <= (c) && (c) <= 'i') \ 3933 || ('j' <= (c) && (c) <= 'r') \ 3934 || ('s' <= (c) && (c) <= 'z')) 3935# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3936#endif 3937 3938#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3939int 3940main () 3941{ 3942 int i; 3943 for (i = 0; i < 256; i++) 3944 if (XOR (islower (i), ISLOWER (i)) 3945 || toupper (i) != TOUPPER (i)) 3946 return 2; 3947 return 0; 3948} 3949_ACEOF 3950rm -f conftest$ac_exeext 3951if { (ac_try="$ac_link" 3952case "(($ac_try" in 3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3954 *) ac_try_echo=$ac_try;; 3955esac 3956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3957 (eval "$ac_link") 2>&5 3958 ac_status=$? 3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3961 { (case "(($ac_try" in 3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3963 *) ac_try_echo=$ac_try;; 3964esac 3965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3966 (eval "$ac_try") 2>&5 3967 ac_status=$? 3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3969 (exit $ac_status); }; }; then 3970 : 3971else 3972 echo "$as_me: program exited with status $ac_status" >&5 3973echo "$as_me: failed program was:" >&5 3974sed 's/^/| /' conftest.$ac_ext >&5 3975 3976( exit $ac_status ) 3977ac_cv_header_stdc=no 3978fi 3979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3980fi 3981 3982 3983fi 3984fi 3985{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3986echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3987if test $ac_cv_header_stdc = yes; then 3988 3989cat >>confdefs.h <<\_ACEOF 3990#define STDC_HEADERS 1 3991_ACEOF 3992 3993fi 3994 3995# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4006 inttypes.h stdint.h unistd.h 4007do 4008as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4009{ echo "$as_me:$LINENO: checking for $ac_header" >&5 4010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4011if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4012 echo $ECHO_N "(cached) $ECHO_C" >&6 4013else 4014 cat >conftest.$ac_ext <<_ACEOF 4015/* confdefs.h. */ 4016_ACEOF 4017cat confdefs.h >>conftest.$ac_ext 4018cat >>conftest.$ac_ext <<_ACEOF 4019/* end confdefs.h. */ 4020$ac_includes_default 4021 4022#include <$ac_header> 4023_ACEOF 4024rm -f conftest.$ac_objext 4025if { (ac_try="$ac_compile" 4026case "(($ac_try" in 4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4028 *) ac_try_echo=$ac_try;; 4029esac 4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4031 (eval "$ac_compile") 2>conftest.er1 4032 ac_status=$? 4033 grep -v '^ *+' conftest.er1 >conftest.err 4034 rm -f conftest.er1 4035 cat conftest.err >&5 4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4037 (exit $ac_status); } && { 4038 test -z "$ac_c_werror_flag" || 4039 test ! -s conftest.err 4040 } && test -s conftest.$ac_objext; then 4041 eval "$as_ac_Header=yes" 4042else 4043 echo "$as_me: failed program was:" >&5 4044sed 's/^/| /' conftest.$ac_ext >&5 4045 4046 eval "$as_ac_Header=no" 4047fi 4048 4049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4050fi 4051ac_res=`eval echo '${'$as_ac_Header'}'` 4052 { echo "$as_me:$LINENO: result: $ac_res" >&5 4053echo "${ECHO_T}$ac_res" >&6; } 4054if test `eval echo '${'$as_ac_Header'}'` = yes; then 4055 cat >>confdefs.h <<_ACEOF 4056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4057_ACEOF 4058 4059fi 4060 4061done 4062 4063 4064 4065 # Any macros that use the compiler (e.g. AC_TRY_COMPILE) have to go here. 4066 4067 4068 #------------------------------------------------------------------------ 4069 # If we're using GCC, see if the compiler understands -pipe. If so, use it. 4070 # It makes compiling go faster. (This is only a performance feature.) 4071 #------------------------------------------------------------------------ 4072 4073 if test -z "$no_pipe" -a -n "$GCC"; then 4074 { echo "$as_me:$LINENO: checking if the compiler understands -pipe" >&5 4075echo $ECHO_N "checking if the compiler understands -pipe... $ECHO_C" >&6; } 4076if test "${tcl_cv_cc_pipe+set}" = set; then 4077 echo $ECHO_N "(cached) $ECHO_C" >&6 4078else 4079 4080 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -pipe" 4081 cat >conftest.$ac_ext <<_ACEOF 4082/* confdefs.h. */ 4083_ACEOF 4084cat confdefs.h >>conftest.$ac_ext 4085cat >>conftest.$ac_ext <<_ACEOF 4086/* end confdefs.h. */ 4087 4088int 4089main () 4090{ 4091 4092 ; 4093 return 0; 4094} 4095_ACEOF 4096rm -f conftest.$ac_objext 4097if { (ac_try="$ac_compile" 4098case "(($ac_try" in 4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4100 *) ac_try_echo=$ac_try;; 4101esac 4102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4103 (eval "$ac_compile") 2>conftest.er1 4104 ac_status=$? 4105 grep -v '^ *+' conftest.er1 >conftest.err 4106 rm -f conftest.er1 4107 cat conftest.err >&5 4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4109 (exit $ac_status); } && { 4110 test -z "$ac_c_werror_flag" || 4111 test ! -s conftest.err 4112 } && test -s conftest.$ac_objext; then 4113 tcl_cv_cc_pipe=yes 4114else 4115 echo "$as_me: failed program was:" >&5 4116sed 's/^/| /' conftest.$ac_ext >&5 4117 4118 tcl_cv_cc_pipe=no 4119fi 4120 4121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4122 CFLAGS=$hold_cflags 4123fi 4124{ echo "$as_me:$LINENO: result: $tcl_cv_cc_pipe" >&5 4125echo "${ECHO_T}$tcl_cv_cc_pipe" >&6; } 4126 if test $tcl_cv_cc_pipe = yes; then 4127 CFLAGS="$CFLAGS -pipe" 4128 fi 4129 fi 4130 4131 #-------------------------------------------------------------------- 4132 # Common compiler flag setup 4133 #-------------------------------------------------------------------- 4134 4135 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 4136echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } 4137if test "${ac_cv_c_bigendian+set}" = set; then 4138 echo $ECHO_N "(cached) $ECHO_C" >&6 4139else 4140 # See if sys/param.h defines the BYTE_ORDER macro. 4141cat >conftest.$ac_ext <<_ACEOF 4142/* confdefs.h. */ 4143_ACEOF 4144cat confdefs.h >>conftest.$ac_ext 4145cat >>conftest.$ac_ext <<_ACEOF 4146/* end confdefs.h. */ 4147#include <sys/types.h> 4148#include <sys/param.h> 4149 4150int 4151main () 4152{ 4153#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ 4154 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) 4155 bogus endian macros 4156#endif 4157 4158 ; 4159 return 0; 4160} 4161_ACEOF 4162rm -f conftest.$ac_objext 4163if { (ac_try="$ac_compile" 4164case "(($ac_try" in 4165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4166 *) ac_try_echo=$ac_try;; 4167esac 4168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4169 (eval "$ac_compile") 2>conftest.er1 4170 ac_status=$? 4171 grep -v '^ *+' conftest.er1 >conftest.err 4172 rm -f conftest.er1 4173 cat conftest.err >&5 4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 (exit $ac_status); } && { 4176 test -z "$ac_c_werror_flag" || 4177 test ! -s conftest.err 4178 } && test -s conftest.$ac_objext; then 4179 # It does; now see whether it defined to BIG_ENDIAN or not. 4180cat >conftest.$ac_ext <<_ACEOF 4181/* confdefs.h. */ 4182_ACEOF 4183cat confdefs.h >>conftest.$ac_ext 4184cat >>conftest.$ac_ext <<_ACEOF 4185/* end confdefs.h. */ 4186#include <sys/types.h> 4187#include <sys/param.h> 4188 4189int 4190main () 4191{ 4192#if BYTE_ORDER != BIG_ENDIAN 4193 not big endian 4194#endif 4195 4196 ; 4197 return 0; 4198} 4199_ACEOF 4200rm -f conftest.$ac_objext 4201if { (ac_try="$ac_compile" 4202case "(($ac_try" in 4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4204 *) ac_try_echo=$ac_try;; 4205esac 4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4207 (eval "$ac_compile") 2>conftest.er1 4208 ac_status=$? 4209 grep -v '^ *+' conftest.er1 >conftest.err 4210 rm -f conftest.er1 4211 cat conftest.err >&5 4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4213 (exit $ac_status); } && { 4214 test -z "$ac_c_werror_flag" || 4215 test ! -s conftest.err 4216 } && test -s conftest.$ac_objext; then 4217 ac_cv_c_bigendian=yes 4218else 4219 echo "$as_me: failed program was:" >&5 4220sed 's/^/| /' conftest.$ac_ext >&5 4221 4222 ac_cv_c_bigendian=no 4223fi 4224 4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4226else 4227 echo "$as_me: failed program was:" >&5 4228sed 's/^/| /' conftest.$ac_ext >&5 4229 4230 # It does not; compile a test program. 4231if test "$cross_compiling" = yes; then 4232 # try to guess the endianness by grepping values into an object file 4233 ac_cv_c_bigendian=unknown 4234 cat >conftest.$ac_ext <<_ACEOF 4235/* confdefs.h. */ 4236_ACEOF 4237cat confdefs.h >>conftest.$ac_ext 4238cat >>conftest.$ac_ext <<_ACEOF 4239/* end confdefs.h. */ 4240short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 4241short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 4242void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } 4243short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 4244short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 4245void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } 4246int 4247main () 4248{ 4249 _ascii (); _ebcdic (); 4250 ; 4251 return 0; 4252} 4253_ACEOF 4254rm -f conftest.$ac_objext 4255if { (ac_try="$ac_compile" 4256case "(($ac_try" in 4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4258 *) ac_try_echo=$ac_try;; 4259esac 4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4261 (eval "$ac_compile") 2>conftest.er1 4262 ac_status=$? 4263 grep -v '^ *+' conftest.er1 >conftest.err 4264 rm -f conftest.er1 4265 cat conftest.err >&5 4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4267 (exit $ac_status); } && { 4268 test -z "$ac_c_werror_flag" || 4269 test ! -s conftest.err 4270 } && test -s conftest.$ac_objext; then 4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then 4272 ac_cv_c_bigendian=yes 4273fi 4274if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 4275 if test "$ac_cv_c_bigendian" = unknown; then 4276 ac_cv_c_bigendian=no 4277 else 4278 # finding both strings is unlikely to happen, but who knows? 4279 ac_cv_c_bigendian=unknown 4280 fi 4281fi 4282else 4283 echo "$as_me: failed program was:" >&5 4284sed 's/^/| /' conftest.$ac_ext >&5 4285 4286 4287fi 4288 4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4290else 4291 cat >conftest.$ac_ext <<_ACEOF 4292/* confdefs.h. */ 4293_ACEOF 4294cat confdefs.h >>conftest.$ac_ext 4295cat >>conftest.$ac_ext <<_ACEOF 4296/* end confdefs.h. */ 4297$ac_includes_default 4298int 4299main () 4300{ 4301 4302 /* Are we little or big endian? From Harbison&Steele. */ 4303 union 4304 { 4305 long int l; 4306 char c[sizeof (long int)]; 4307 } u; 4308 u.l = 1; 4309 return u.c[sizeof (long int) - 1] == 1; 4310 4311 ; 4312 return 0; 4313} 4314_ACEOF 4315rm -f conftest$ac_exeext 4316if { (ac_try="$ac_link" 4317case "(($ac_try" in 4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4319 *) ac_try_echo=$ac_try;; 4320esac 4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4322 (eval "$ac_link") 2>&5 4323 ac_status=$? 4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4326 { (case "(($ac_try" in 4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4328 *) ac_try_echo=$ac_try;; 4329esac 4330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4331 (eval "$ac_try") 2>&5 4332 ac_status=$? 4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4334 (exit $ac_status); }; }; then 4335 ac_cv_c_bigendian=no 4336else 4337 echo "$as_me: program exited with status $ac_status" >&5 4338echo "$as_me: failed program was:" >&5 4339sed 's/^/| /' conftest.$ac_ext >&5 4340 4341( exit $ac_status ) 4342ac_cv_c_bigendian=yes 4343fi 4344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4345fi 4346 4347 4348fi 4349 4350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4351fi 4352{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 4353echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } 4354case $ac_cv_c_bigendian in 4355 yes) 4356 4357cat >>confdefs.h <<\_ACEOF 4358#define WORDS_BIGENDIAN 1 4359_ACEOF 4360 ;; 4361 no) 4362 ;; 4363 *) 4364 { { echo "$as_me:$LINENO: error: unknown endianness 4365presetting ac_cv_c_bigendian=no (or yes) will help" >&5 4366echo "$as_me: error: unknown endianness 4367presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} 4368 { (exit 1); exit 1; }; } ;; 4369esac 4370 4371 if test "${TEA_PLATFORM}" = "unix" ; then 4372 4373 #-------------------------------------------------------------------- 4374 # On a few very rare systems, all of the libm.a stuff is 4375 # already in libc.a. Set compiler flags accordingly. 4376 # Also, Linux requires the "ieee" library for math to work 4377 # right (and it must appear before "-lm"). 4378 #-------------------------------------------------------------------- 4379 4380 { echo "$as_me:$LINENO: checking for sin" >&5 4381echo $ECHO_N "checking for sin... $ECHO_C" >&6; } 4382if test "${ac_cv_func_sin+set}" = set; then 4383 echo $ECHO_N "(cached) $ECHO_C" >&6 4384else 4385 cat >conftest.$ac_ext <<_ACEOF 4386/* confdefs.h. */ 4387_ACEOF 4388cat confdefs.h >>conftest.$ac_ext 4389cat >>conftest.$ac_ext <<_ACEOF 4390/* end confdefs.h. */ 4391/* Define sin to an innocuous variant, in case <limits.h> declares sin. 4392 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4393#define sin innocuous_sin 4394 4395/* System header to define __stub macros and hopefully few prototypes, 4396 which can conflict with char sin (); below. 4397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4398 <limits.h> exists even on freestanding compilers. */ 4399 4400#ifdef __STDC__ 4401# include <limits.h> 4402#else 4403# include <assert.h> 4404#endif 4405 4406#undef sin 4407 4408/* Override any GCC internal prototype to avoid an error. 4409 Use char because int might match the return type of a GCC 4410 builtin and then its argument prototype would still apply. */ 4411#ifdef __cplusplus 4412extern "C" 4413#endif 4414char sin (); 4415/* The GNU C library defines this for functions which it implements 4416 to always fail with ENOSYS. Some functions are actually named 4417 something starting with __ and the normal name is an alias. */ 4418#if defined __stub_sin || defined __stub___sin 4419choke me 4420#endif 4421 4422int 4423main () 4424{ 4425return sin (); 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430rm -f conftest.$ac_objext conftest$ac_exeext 4431if { (ac_try="$ac_link" 4432case "(($ac_try" in 4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4434 *) ac_try_echo=$ac_try;; 4435esac 4436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4437 (eval "$ac_link") 2>conftest.er1 4438 ac_status=$? 4439 grep -v '^ *+' conftest.er1 >conftest.err 4440 rm -f conftest.er1 4441 cat conftest.err >&5 4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4443 (exit $ac_status); } && { 4444 test -z "$ac_c_werror_flag" || 4445 test ! -s conftest.err 4446 } && test -s conftest$ac_exeext && 4447 $as_test_x conftest$ac_exeext; then 4448 ac_cv_func_sin=yes 4449else 4450 echo "$as_me: failed program was:" >&5 4451sed 's/^/| /' conftest.$ac_ext >&5 4452 4453 ac_cv_func_sin=no 4454fi 4455 4456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4457 conftest$ac_exeext conftest.$ac_ext 4458fi 4459{ echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5 4460echo "${ECHO_T}$ac_cv_func_sin" >&6; } 4461if test $ac_cv_func_sin = yes; then 4462 MATH_LIBS="" 4463else 4464 MATH_LIBS="-lm" 4465fi 4466 4467 { echo "$as_me:$LINENO: checking for main in -lieee" >&5 4468echo $ECHO_N "checking for main in -lieee... $ECHO_C" >&6; } 4469if test "${ac_cv_lib_ieee_main+set}" = set; then 4470 echo $ECHO_N "(cached) $ECHO_C" >&6 4471else 4472 ac_check_lib_save_LIBS=$LIBS 4473LIBS="-lieee $LIBS" 4474cat >conftest.$ac_ext <<_ACEOF 4475/* confdefs.h. */ 4476_ACEOF 4477cat confdefs.h >>conftest.$ac_ext 4478cat >>conftest.$ac_ext <<_ACEOF 4479/* end confdefs.h. */ 4480 4481 4482int 4483main () 4484{ 4485return main (); 4486 ; 4487 return 0; 4488} 4489_ACEOF 4490rm -f conftest.$ac_objext conftest$ac_exeext 4491if { (ac_try="$ac_link" 4492case "(($ac_try" in 4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4494 *) ac_try_echo=$ac_try;; 4495esac 4496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4497 (eval "$ac_link") 2>conftest.er1 4498 ac_status=$? 4499 grep -v '^ *+' conftest.er1 >conftest.err 4500 rm -f conftest.er1 4501 cat conftest.err >&5 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); } && { 4504 test -z "$ac_c_werror_flag" || 4505 test ! -s conftest.err 4506 } && test -s conftest$ac_exeext && 4507 $as_test_x conftest$ac_exeext; then 4508 ac_cv_lib_ieee_main=yes 4509else 4510 echo "$as_me: failed program was:" >&5 4511sed 's/^/| /' conftest.$ac_ext >&5 4512 4513 ac_cv_lib_ieee_main=no 4514fi 4515 4516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4517 conftest$ac_exeext conftest.$ac_ext 4518LIBS=$ac_check_lib_save_LIBS 4519fi 4520{ echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_main" >&5 4521echo "${ECHO_T}$ac_cv_lib_ieee_main" >&6; } 4522if test $ac_cv_lib_ieee_main = yes; then 4523 MATH_LIBS="-lieee $MATH_LIBS" 4524fi 4525 4526 4527 #-------------------------------------------------------------------- 4528 # Interactive UNIX requires -linet instead of -lsocket, plus it 4529 # needs net/errno.h to define the socket-related error codes. 4530 #-------------------------------------------------------------------- 4531 4532 { echo "$as_me:$LINENO: checking for main in -linet" >&5 4533echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6; } 4534if test "${ac_cv_lib_inet_main+set}" = set; then 4535 echo $ECHO_N "(cached) $ECHO_C" >&6 4536else 4537 ac_check_lib_save_LIBS=$LIBS 4538LIBS="-linet $LIBS" 4539cat >conftest.$ac_ext <<_ACEOF 4540/* confdefs.h. */ 4541_ACEOF 4542cat confdefs.h >>conftest.$ac_ext 4543cat >>conftest.$ac_ext <<_ACEOF 4544/* end confdefs.h. */ 4545 4546 4547int 4548main () 4549{ 4550return main (); 4551 ; 4552 return 0; 4553} 4554_ACEOF 4555rm -f conftest.$ac_objext conftest$ac_exeext 4556if { (ac_try="$ac_link" 4557case "(($ac_try" in 4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4559 *) ac_try_echo=$ac_try;; 4560esac 4561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4562 (eval "$ac_link") 2>conftest.er1 4563 ac_status=$? 4564 grep -v '^ *+' conftest.er1 >conftest.err 4565 rm -f conftest.er1 4566 cat conftest.err >&5 4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4568 (exit $ac_status); } && { 4569 test -z "$ac_c_werror_flag" || 4570 test ! -s conftest.err 4571 } && test -s conftest$ac_exeext && 4572 $as_test_x conftest$ac_exeext; then 4573 ac_cv_lib_inet_main=yes 4574else 4575 echo "$as_me: failed program was:" >&5 4576sed 's/^/| /' conftest.$ac_ext >&5 4577 4578 ac_cv_lib_inet_main=no 4579fi 4580 4581rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4582 conftest$ac_exeext conftest.$ac_ext 4583LIBS=$ac_check_lib_save_LIBS 4584fi 4585{ echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5 4586echo "${ECHO_T}$ac_cv_lib_inet_main" >&6; } 4587if test $ac_cv_lib_inet_main = yes; then 4588 LIBS="$LIBS -linet" 4589fi 4590 4591 if test "${ac_cv_header_net_errno_h+set}" = set; then 4592 { echo "$as_me:$LINENO: checking for net/errno.h" >&5 4593echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4594if test "${ac_cv_header_net_errno_h+set}" = set; then 4595 echo $ECHO_N "(cached) $ECHO_C" >&6 4596fi 4597{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4598echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4599else 4600 # Is the header compilable? 4601{ echo "$as_me:$LINENO: checking net/errno.h usability" >&5 4602echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6; } 4603cat >conftest.$ac_ext <<_ACEOF 4604/* confdefs.h. */ 4605_ACEOF 4606cat confdefs.h >>conftest.$ac_ext 4607cat >>conftest.$ac_ext <<_ACEOF 4608/* end confdefs.h. */ 4609$ac_includes_default 4610#include <net/errno.h> 4611_ACEOF 4612rm -f conftest.$ac_objext 4613if { (ac_try="$ac_compile" 4614case "(($ac_try" in 4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4616 *) ac_try_echo=$ac_try;; 4617esac 4618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4619 (eval "$ac_compile") 2>conftest.er1 4620 ac_status=$? 4621 grep -v '^ *+' conftest.er1 >conftest.err 4622 rm -f conftest.er1 4623 cat conftest.err >&5 4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4625 (exit $ac_status); } && { 4626 test -z "$ac_c_werror_flag" || 4627 test ! -s conftest.err 4628 } && test -s conftest.$ac_objext; then 4629 ac_header_compiler=yes 4630else 4631 echo "$as_me: failed program was:" >&5 4632sed 's/^/| /' conftest.$ac_ext >&5 4633 4634 ac_header_compiler=no 4635fi 4636 4637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4638{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4639echo "${ECHO_T}$ac_header_compiler" >&6; } 4640 4641# Is the header present? 4642{ echo "$as_me:$LINENO: checking net/errno.h presence" >&5 4643echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6; } 4644cat >conftest.$ac_ext <<_ACEOF 4645/* confdefs.h. */ 4646_ACEOF 4647cat confdefs.h >>conftest.$ac_ext 4648cat >>conftest.$ac_ext <<_ACEOF 4649/* end confdefs.h. */ 4650#include <net/errno.h> 4651_ACEOF 4652if { (ac_try="$ac_cpp conftest.$ac_ext" 4653case "(($ac_try" in 4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4655 *) ac_try_echo=$ac_try;; 4656esac 4657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4659 ac_status=$? 4660 grep -v '^ *+' conftest.er1 >conftest.err 4661 rm -f conftest.er1 4662 cat conftest.err >&5 4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4664 (exit $ac_status); } >/dev/null && { 4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4666 test ! -s conftest.err 4667 }; then 4668 ac_header_preproc=yes 4669else 4670 echo "$as_me: failed program was:" >&5 4671sed 's/^/| /' conftest.$ac_ext >&5 4672 4673 ac_header_preproc=no 4674fi 4675 4676rm -f conftest.err conftest.$ac_ext 4677{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4678echo "${ECHO_T}$ac_header_preproc" >&6; } 4679 4680# So? What about this header? 4681case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4682 yes:no: ) 4683 { echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 4684echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 4685 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5 4686echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;} 4687 ac_header_preproc=yes 4688 ;; 4689 no:yes:* ) 4690 { echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5 4691echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;} 4692 { echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5 4693echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;} 4694 { echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5 4695echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;} 4696 { echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5 4697echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 4698 { echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5 4699echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;} 4700 { echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5 4701echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;} 4702 4703 ;; 4704esac 4705{ echo "$as_me:$LINENO: checking for net/errno.h" >&5 4706echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6; } 4707if test "${ac_cv_header_net_errno_h+set}" = set; then 4708 echo $ECHO_N "(cached) $ECHO_C" >&6 4709else 4710 ac_cv_header_net_errno_h=$ac_header_preproc 4711fi 4712{ echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5 4713echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6; } 4714 4715fi 4716if test $ac_cv_header_net_errno_h = yes; then 4717 4718 4719cat >>confdefs.h <<\_ACEOF 4720#define HAVE_NET_ERRNO_H 1 4721_ACEOF 4722 4723fi 4724 4725 4726 4727 #-------------------------------------------------------------------- 4728 # Check for the existence of the -lsocket and -lnsl libraries. 4729 # The order here is important, so that they end up in the right 4730 # order in the command line generated by make. Here are some 4731 # special considerations: 4732 # 1. Use "connect" and "accept" to check for -lsocket, and 4733 # "gethostbyname" to check for -lnsl. 4734 # 2. Use each function name only once: can't redo a check because 4735 # autoconf caches the results of the last check and won't redo it. 4736 # 3. Use -lnsl and -lsocket only if they supply procedures that 4737 # aren't already present in the normal libraries. This is because 4738 # IRIX 5.2 has libraries, but they aren't needed and they're 4739 # bogus: they goof up name resolution if used. 4740 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too. 4741 # To get around this problem, check for both libraries together 4742 # if -lsocket doesn't work by itself. 4743 #-------------------------------------------------------------------- 4744 4745 tcl_checkBoth=0 4746 { echo "$as_me:$LINENO: checking for connect" >&5 4747echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 4748if test "${ac_cv_func_connect+set}" = set; then 4749 echo $ECHO_N "(cached) $ECHO_C" >&6 4750else 4751 cat >conftest.$ac_ext <<_ACEOF 4752/* confdefs.h. */ 4753_ACEOF 4754cat confdefs.h >>conftest.$ac_ext 4755cat >>conftest.$ac_ext <<_ACEOF 4756/* end confdefs.h. */ 4757/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4758 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4759#define connect innocuous_connect 4760 4761/* System header to define __stub macros and hopefully few prototypes, 4762 which can conflict with char connect (); below. 4763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4764 <limits.h> exists even on freestanding compilers. */ 4765 4766#ifdef __STDC__ 4767# include <limits.h> 4768#else 4769# include <assert.h> 4770#endif 4771 4772#undef connect 4773 4774/* Override any GCC internal prototype to avoid an error. 4775 Use char because int might match the return type of a GCC 4776 builtin and then its argument prototype would still apply. */ 4777#ifdef __cplusplus 4778extern "C" 4779#endif 4780char connect (); 4781/* The GNU C library defines this for functions which it implements 4782 to always fail with ENOSYS. Some functions are actually named 4783 something starting with __ and the normal name is an alias. */ 4784#if defined __stub_connect || defined __stub___connect 4785choke me 4786#endif 4787 4788int 4789main () 4790{ 4791return connect (); 4792 ; 4793 return 0; 4794} 4795_ACEOF 4796rm -f conftest.$ac_objext conftest$ac_exeext 4797if { (ac_try="$ac_link" 4798case "(($ac_try" in 4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4800 *) ac_try_echo=$ac_try;; 4801esac 4802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4803 (eval "$ac_link") 2>conftest.er1 4804 ac_status=$? 4805 grep -v '^ *+' conftest.er1 >conftest.err 4806 rm -f conftest.er1 4807 cat conftest.err >&5 4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4809 (exit $ac_status); } && { 4810 test -z "$ac_c_werror_flag" || 4811 test ! -s conftest.err 4812 } && test -s conftest$ac_exeext && 4813 $as_test_x conftest$ac_exeext; then 4814 ac_cv_func_connect=yes 4815else 4816 echo "$as_me: failed program was:" >&5 4817sed 's/^/| /' conftest.$ac_ext >&5 4818 4819 ac_cv_func_connect=no 4820fi 4821 4822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4823 conftest$ac_exeext conftest.$ac_ext 4824fi 4825{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4826echo "${ECHO_T}$ac_cv_func_connect" >&6; } 4827if test $ac_cv_func_connect = yes; then 4828 tcl_checkSocket=0 4829else 4830 tcl_checkSocket=1 4831fi 4832 4833 if test "$tcl_checkSocket" = 1; then 4834 { echo "$as_me:$LINENO: checking for setsockopt" >&5 4835echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 4836if test "${ac_cv_func_setsockopt+set}" = set; then 4837 echo $ECHO_N "(cached) $ECHO_C" >&6 4838else 4839 cat >conftest.$ac_ext <<_ACEOF 4840/* confdefs.h. */ 4841_ACEOF 4842cat confdefs.h >>conftest.$ac_ext 4843cat >>conftest.$ac_ext <<_ACEOF 4844/* end confdefs.h. */ 4845/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. 4846 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4847#define setsockopt innocuous_setsockopt 4848 4849/* System header to define __stub macros and hopefully few prototypes, 4850 which can conflict with char setsockopt (); below. 4851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4852 <limits.h> exists even on freestanding compilers. */ 4853 4854#ifdef __STDC__ 4855# include <limits.h> 4856#else 4857# include <assert.h> 4858#endif 4859 4860#undef setsockopt 4861 4862/* Override any GCC internal prototype to avoid an error. 4863 Use char because int might match the return type of a GCC 4864 builtin and then its argument prototype would still apply. */ 4865#ifdef __cplusplus 4866extern "C" 4867#endif 4868char setsockopt (); 4869/* The GNU C library defines this for functions which it implements 4870 to always fail with ENOSYS. Some functions are actually named 4871 something starting with __ and the normal name is an alias. */ 4872#if defined __stub_setsockopt || defined __stub___setsockopt 4873choke me 4874#endif 4875 4876int 4877main () 4878{ 4879return setsockopt (); 4880 ; 4881 return 0; 4882} 4883_ACEOF 4884rm -f conftest.$ac_objext conftest$ac_exeext 4885if { (ac_try="$ac_link" 4886case "(($ac_try" in 4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4888 *) ac_try_echo=$ac_try;; 4889esac 4890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4891 (eval "$ac_link") 2>conftest.er1 4892 ac_status=$? 4893 grep -v '^ *+' conftest.er1 >conftest.err 4894 rm -f conftest.er1 4895 cat conftest.err >&5 4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4897 (exit $ac_status); } && { 4898 test -z "$ac_c_werror_flag" || 4899 test ! -s conftest.err 4900 } && test -s conftest$ac_exeext && 4901 $as_test_x conftest$ac_exeext; then 4902 ac_cv_func_setsockopt=yes 4903else 4904 echo "$as_me: failed program was:" >&5 4905sed 's/^/| /' conftest.$ac_ext >&5 4906 4907 ac_cv_func_setsockopt=no 4908fi 4909 4910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4911 conftest$ac_exeext conftest.$ac_ext 4912fi 4913{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 4914echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 4915if test $ac_cv_func_setsockopt = yes; then 4916 : 4917else 4918 { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 4919echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 4920if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 4921 echo $ECHO_N "(cached) $ECHO_C" >&6 4922else 4923 ac_check_lib_save_LIBS=$LIBS 4924LIBS="-lsocket $LIBS" 4925cat >conftest.$ac_ext <<_ACEOF 4926/* confdefs.h. */ 4927_ACEOF 4928cat confdefs.h >>conftest.$ac_ext 4929cat >>conftest.$ac_ext <<_ACEOF 4930/* end confdefs.h. */ 4931 4932/* Override any GCC internal prototype to avoid an error. 4933 Use char because int might match the return type of a GCC 4934 builtin and then its argument prototype would still apply. */ 4935#ifdef __cplusplus 4936extern "C" 4937#endif 4938char setsockopt (); 4939int 4940main () 4941{ 4942return setsockopt (); 4943 ; 4944 return 0; 4945} 4946_ACEOF 4947rm -f conftest.$ac_objext conftest$ac_exeext 4948if { (ac_try="$ac_link" 4949case "(($ac_try" in 4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4951 *) ac_try_echo=$ac_try;; 4952esac 4953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4954 (eval "$ac_link") 2>conftest.er1 4955 ac_status=$? 4956 grep -v '^ *+' conftest.er1 >conftest.err 4957 rm -f conftest.er1 4958 cat conftest.err >&5 4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4960 (exit $ac_status); } && { 4961 test -z "$ac_c_werror_flag" || 4962 test ! -s conftest.err 4963 } && test -s conftest$ac_exeext && 4964 $as_test_x conftest$ac_exeext; then 4965 ac_cv_lib_socket_setsockopt=yes 4966else 4967 echo "$as_me: failed program was:" >&5 4968sed 's/^/| /' conftest.$ac_ext >&5 4969 4970 ac_cv_lib_socket_setsockopt=no 4971fi 4972 4973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4974 conftest$ac_exeext conftest.$ac_ext 4975LIBS=$ac_check_lib_save_LIBS 4976fi 4977{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 4978echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 4979if test $ac_cv_lib_socket_setsockopt = yes; then 4980 LIBS="$LIBS -lsocket" 4981else 4982 tcl_checkBoth=1 4983fi 4984 4985fi 4986 4987 fi 4988 if test "$tcl_checkBoth" = 1; then 4989 tk_oldLibs=$LIBS 4990 LIBS="$LIBS -lsocket -lnsl" 4991 { echo "$as_me:$LINENO: checking for accept" >&5 4992echo $ECHO_N "checking for accept... $ECHO_C" >&6; } 4993if test "${ac_cv_func_accept+set}" = set; then 4994 echo $ECHO_N "(cached) $ECHO_C" >&6 4995else 4996 cat >conftest.$ac_ext <<_ACEOF 4997/* confdefs.h. */ 4998_ACEOF 4999cat confdefs.h >>conftest.$ac_ext 5000cat >>conftest.$ac_ext <<_ACEOF 5001/* end confdefs.h. */ 5002/* Define accept to an innocuous variant, in case <limits.h> declares accept. 5003 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5004#define accept innocuous_accept 5005 5006/* System header to define __stub macros and hopefully few prototypes, 5007 which can conflict with char accept (); below. 5008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5009 <limits.h> exists even on freestanding compilers. */ 5010 5011#ifdef __STDC__ 5012# include <limits.h> 5013#else 5014# include <assert.h> 5015#endif 5016 5017#undef accept 5018 5019/* Override any GCC internal prototype to avoid an error. 5020 Use char because int might match the return type of a GCC 5021 builtin and then its argument prototype would still apply. */ 5022#ifdef __cplusplus 5023extern "C" 5024#endif 5025char accept (); 5026/* The GNU C library defines this for functions which it implements 5027 to always fail with ENOSYS. Some functions are actually named 5028 something starting with __ and the normal name is an alias. */ 5029#if defined __stub_accept || defined __stub___accept 5030choke me 5031#endif 5032 5033int 5034main () 5035{ 5036return accept (); 5037 ; 5038 return 0; 5039} 5040_ACEOF 5041rm -f conftest.$ac_objext conftest$ac_exeext 5042if { (ac_try="$ac_link" 5043case "(($ac_try" in 5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5045 *) ac_try_echo=$ac_try;; 5046esac 5047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5048 (eval "$ac_link") 2>conftest.er1 5049 ac_status=$? 5050 grep -v '^ *+' conftest.er1 >conftest.err 5051 rm -f conftest.er1 5052 cat conftest.err >&5 5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5054 (exit $ac_status); } && { 5055 test -z "$ac_c_werror_flag" || 5056 test ! -s conftest.err 5057 } && test -s conftest$ac_exeext && 5058 $as_test_x conftest$ac_exeext; then 5059 ac_cv_func_accept=yes 5060else 5061 echo "$as_me: failed program was:" >&5 5062sed 's/^/| /' conftest.$ac_ext >&5 5063 5064 ac_cv_func_accept=no 5065fi 5066 5067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5068 conftest$ac_exeext conftest.$ac_ext 5069fi 5070{ echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5 5071echo "${ECHO_T}$ac_cv_func_accept" >&6; } 5072if test $ac_cv_func_accept = yes; then 5073 tcl_checkNsl=0 5074else 5075 LIBS=$tk_oldLibs 5076fi 5077 5078 fi 5079 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5080echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 5081if test "${ac_cv_func_gethostbyname+set}" = set; then 5082 echo $ECHO_N "(cached) $ECHO_C" >&6 5083else 5084 cat >conftest.$ac_ext <<_ACEOF 5085/* confdefs.h. */ 5086_ACEOF 5087cat confdefs.h >>conftest.$ac_ext 5088cat >>conftest.$ac_ext <<_ACEOF 5089/* end confdefs.h. */ 5090/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5091 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5092#define gethostbyname innocuous_gethostbyname 5093 5094/* System header to define __stub macros and hopefully few prototypes, 5095 which can conflict with char gethostbyname (); below. 5096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5097 <limits.h> exists even on freestanding compilers. */ 5098 5099#ifdef __STDC__ 5100# include <limits.h> 5101#else 5102# include <assert.h> 5103#endif 5104 5105#undef gethostbyname 5106 5107/* Override any GCC internal prototype to avoid an error. 5108 Use char because int might match the return type of a GCC 5109 builtin and then its argument prototype would still apply. */ 5110#ifdef __cplusplus 5111extern "C" 5112#endif 5113char gethostbyname (); 5114/* The GNU C library defines this for functions which it implements 5115 to always fail with ENOSYS. Some functions are actually named 5116 something starting with __ and the normal name is an alias. */ 5117#if defined __stub_gethostbyname || defined __stub___gethostbyname 5118choke me 5119#endif 5120 5121int 5122main () 5123{ 5124return gethostbyname (); 5125 ; 5126 return 0; 5127} 5128_ACEOF 5129rm -f conftest.$ac_objext conftest$ac_exeext 5130if { (ac_try="$ac_link" 5131case "(($ac_try" in 5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5133 *) ac_try_echo=$ac_try;; 5134esac 5135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5136 (eval "$ac_link") 2>conftest.er1 5137 ac_status=$? 5138 grep -v '^ *+' conftest.er1 >conftest.err 5139 rm -f conftest.er1 5140 cat conftest.err >&5 5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5142 (exit $ac_status); } && { 5143 test -z "$ac_c_werror_flag" || 5144 test ! -s conftest.err 5145 } && test -s conftest$ac_exeext && 5146 $as_test_x conftest$ac_exeext; then 5147 ac_cv_func_gethostbyname=yes 5148else 5149 echo "$as_me: failed program was:" >&5 5150sed 's/^/| /' conftest.$ac_ext >&5 5151 5152 ac_cv_func_gethostbyname=no 5153fi 5154 5155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5156 conftest$ac_exeext conftest.$ac_ext 5157fi 5158{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5159echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 5160if test $ac_cv_func_gethostbyname = yes; then 5161 : 5162else 5163 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5164echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5165if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5166 echo $ECHO_N "(cached) $ECHO_C" >&6 5167else 5168 ac_check_lib_save_LIBS=$LIBS 5169LIBS="-lnsl $LIBS" 5170cat >conftest.$ac_ext <<_ACEOF 5171/* confdefs.h. */ 5172_ACEOF 5173cat confdefs.h >>conftest.$ac_ext 5174cat >>conftest.$ac_ext <<_ACEOF 5175/* end confdefs.h. */ 5176 5177/* Override any GCC internal prototype to avoid an error. 5178 Use char because int might match the return type of a GCC 5179 builtin and then its argument prototype would still apply. */ 5180#ifdef __cplusplus 5181extern "C" 5182#endif 5183char gethostbyname (); 5184int 5185main () 5186{ 5187return gethostbyname (); 5188 ; 5189 return 0; 5190} 5191_ACEOF 5192rm -f conftest.$ac_objext conftest$ac_exeext 5193if { (ac_try="$ac_link" 5194case "(($ac_try" in 5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5196 *) ac_try_echo=$ac_try;; 5197esac 5198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5199 (eval "$ac_link") 2>conftest.er1 5200 ac_status=$? 5201 grep -v '^ *+' conftest.er1 >conftest.err 5202 rm -f conftest.er1 5203 cat conftest.err >&5 5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5205 (exit $ac_status); } && { 5206 test -z "$ac_c_werror_flag" || 5207 test ! -s conftest.err 5208 } && test -s conftest$ac_exeext && 5209 $as_test_x conftest$ac_exeext; then 5210 ac_cv_lib_nsl_gethostbyname=yes 5211else 5212 echo "$as_me: failed program was:" >&5 5213sed 's/^/| /' conftest.$ac_ext >&5 5214 5215 ac_cv_lib_nsl_gethostbyname=no 5216fi 5217 5218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5219 conftest$ac_exeext conftest.$ac_ext 5220LIBS=$ac_check_lib_save_LIBS 5221fi 5222{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5223echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5224if test $ac_cv_lib_nsl_gethostbyname = yes; then 5225 LIBS="$LIBS -lnsl" 5226fi 5227 5228fi 5229 5230 5231 # TEA specific: Don't perform the eval of the libraries here because 5232 # DL_LIBS won't be set until we call TEA_CONFIG_CFLAGS 5233 5234 TCL_LIBS='${DL_LIBS} ${LIBS} ${MATH_LIBS}' 5235 5236 5237 5238 5239 { echo "$as_me:$LINENO: checking dirent.h" >&5 5240echo $ECHO_N "checking dirent.h... $ECHO_C" >&6; } 5241if test "${tcl_cv_dirent_h+set}" = set; then 5242 echo $ECHO_N "(cached) $ECHO_C" >&6 5243else 5244 5245 cat >conftest.$ac_ext <<_ACEOF 5246/* confdefs.h. */ 5247_ACEOF 5248cat confdefs.h >>conftest.$ac_ext 5249cat >>conftest.$ac_ext <<_ACEOF 5250/* end confdefs.h. */ 5251#include <sys/types.h> 5252#include <dirent.h> 5253int 5254main () 5255{ 5256 5257#ifndef _POSIX_SOURCE 5258# ifdef __Lynx__ 5259 /* 5260 * Generate compilation error to make the test fail: Lynx headers 5261 * are only valid if really in the POSIX environment. 5262 */ 5263 5264 missing_procedure(); 5265# endif 5266#endif 5267DIR *d; 5268struct dirent *entryPtr; 5269char *p; 5270d = opendir("foobar"); 5271entryPtr = readdir(d); 5272p = entryPtr->d_name; 5273closedir(d); 5274 5275 ; 5276 return 0; 5277} 5278_ACEOF 5279rm -f conftest.$ac_objext conftest$ac_exeext 5280if { (ac_try="$ac_link" 5281case "(($ac_try" in 5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5283 *) ac_try_echo=$ac_try;; 5284esac 5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5286 (eval "$ac_link") 2>conftest.er1 5287 ac_status=$? 5288 grep -v '^ *+' conftest.er1 >conftest.err 5289 rm -f conftest.er1 5290 cat conftest.err >&5 5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5292 (exit $ac_status); } && { 5293 test -z "$ac_c_werror_flag" || 5294 test ! -s conftest.err 5295 } && test -s conftest$ac_exeext && 5296 $as_test_x conftest$ac_exeext; then 5297 tcl_cv_dirent_h=yes 5298else 5299 echo "$as_me: failed program was:" >&5 5300sed 's/^/| /' conftest.$ac_ext >&5 5301 5302 tcl_cv_dirent_h=no 5303fi 5304 5305rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5306 conftest$ac_exeext conftest.$ac_ext 5307fi 5308{ echo "$as_me:$LINENO: result: $tcl_cv_dirent_h" >&5 5309echo "${ECHO_T}$tcl_cv_dirent_h" >&6; } 5310 5311 if test $tcl_cv_dirent_h = no; then 5312 5313cat >>confdefs.h <<\_ACEOF 5314#define NO_DIRENT_H 1 5315_ACEOF 5316 5317 fi 5318 5319 # TEA specific: 5320 if test "${ac_cv_header_errno_h+set}" = set; then 5321 { echo "$as_me:$LINENO: checking for errno.h" >&5 5322echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5323if test "${ac_cv_header_errno_h+set}" = set; then 5324 echo $ECHO_N "(cached) $ECHO_C" >&6 5325fi 5326{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5327echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5328else 5329 # Is the header compilable? 5330{ echo "$as_me:$LINENO: checking errno.h usability" >&5 5331echo $ECHO_N "checking errno.h usability... $ECHO_C" >&6; } 5332cat >conftest.$ac_ext <<_ACEOF 5333/* confdefs.h. */ 5334_ACEOF 5335cat confdefs.h >>conftest.$ac_ext 5336cat >>conftest.$ac_ext <<_ACEOF 5337/* end confdefs.h. */ 5338$ac_includes_default 5339#include <errno.h> 5340_ACEOF 5341rm -f conftest.$ac_objext 5342if { (ac_try="$ac_compile" 5343case "(($ac_try" in 5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5345 *) ac_try_echo=$ac_try;; 5346esac 5347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5348 (eval "$ac_compile") 2>conftest.er1 5349 ac_status=$? 5350 grep -v '^ *+' conftest.er1 >conftest.err 5351 rm -f conftest.er1 5352 cat conftest.err >&5 5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5354 (exit $ac_status); } && { 5355 test -z "$ac_c_werror_flag" || 5356 test ! -s conftest.err 5357 } && test -s conftest.$ac_objext; then 5358 ac_header_compiler=yes 5359else 5360 echo "$as_me: failed program was:" >&5 5361sed 's/^/| /' conftest.$ac_ext >&5 5362 5363 ac_header_compiler=no 5364fi 5365 5366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5367{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5368echo "${ECHO_T}$ac_header_compiler" >&6; } 5369 5370# Is the header present? 5371{ echo "$as_me:$LINENO: checking errno.h presence" >&5 5372echo $ECHO_N "checking errno.h presence... $ECHO_C" >&6; } 5373cat >conftest.$ac_ext <<_ACEOF 5374/* confdefs.h. */ 5375_ACEOF 5376cat confdefs.h >>conftest.$ac_ext 5377cat >>conftest.$ac_ext <<_ACEOF 5378/* end confdefs.h. */ 5379#include <errno.h> 5380_ACEOF 5381if { (ac_try="$ac_cpp conftest.$ac_ext" 5382case "(($ac_try" in 5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5384 *) ac_try_echo=$ac_try;; 5385esac 5386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5388 ac_status=$? 5389 grep -v '^ *+' conftest.er1 >conftest.err 5390 rm -f conftest.er1 5391 cat conftest.err >&5 5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5393 (exit $ac_status); } >/dev/null && { 5394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5395 test ! -s conftest.err 5396 }; then 5397 ac_header_preproc=yes 5398else 5399 echo "$as_me: failed program was:" >&5 5400sed 's/^/| /' conftest.$ac_ext >&5 5401 5402 ac_header_preproc=no 5403fi 5404 5405rm -f conftest.err conftest.$ac_ext 5406{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5407echo "${ECHO_T}$ac_header_preproc" >&6; } 5408 5409# So? What about this header? 5410case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5411 yes:no: ) 5412 { echo "$as_me:$LINENO: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&5 5413echo "$as_me: WARNING: errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5414 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the compiler's result" >&5 5415echo "$as_me: WARNING: errno.h: proceeding with the compiler's result" >&2;} 5416 ac_header_preproc=yes 5417 ;; 5418 no:yes:* ) 5419 { echo "$as_me:$LINENO: WARNING: errno.h: present but cannot be compiled" >&5 5420echo "$as_me: WARNING: errno.h: present but cannot be compiled" >&2;} 5421 { echo "$as_me:$LINENO: WARNING: errno.h: check for missing prerequisite headers?" >&5 5422echo "$as_me: WARNING: errno.h: check for missing prerequisite headers?" >&2;} 5423 { echo "$as_me:$LINENO: WARNING: errno.h: see the Autoconf documentation" >&5 5424echo "$as_me: WARNING: errno.h: see the Autoconf documentation" >&2;} 5425 { echo "$as_me:$LINENO: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&5 5426echo "$as_me: WARNING: errno.h: section \"Present But Cannot Be Compiled\"" >&2;} 5427 { echo "$as_me:$LINENO: WARNING: errno.h: proceeding with the preprocessor's result" >&5 5428echo "$as_me: WARNING: errno.h: proceeding with the preprocessor's result" >&2;} 5429 { echo "$as_me:$LINENO: WARNING: errno.h: in the future, the compiler will take precedence" >&5 5430echo "$as_me: WARNING: errno.h: in the future, the compiler will take precedence" >&2;} 5431 5432 ;; 5433esac 5434{ echo "$as_me:$LINENO: checking for errno.h" >&5 5435echo $ECHO_N "checking for errno.h... $ECHO_C" >&6; } 5436if test "${ac_cv_header_errno_h+set}" = set; then 5437 echo $ECHO_N "(cached) $ECHO_C" >&6 5438else 5439 ac_cv_header_errno_h=$ac_header_preproc 5440fi 5441{ echo "$as_me:$LINENO: result: $ac_cv_header_errno_h" >&5 5442echo "${ECHO_T}$ac_cv_header_errno_h" >&6; } 5443 5444fi 5445if test $ac_cv_header_errno_h = yes; then 5446 : 5447else 5448 5449cat >>confdefs.h <<\_ACEOF 5450#define NO_ERRNO_H 1 5451_ACEOF 5452 5453fi 5454 5455 5456 if test "${ac_cv_header_float_h+set}" = set; then 5457 { echo "$as_me:$LINENO: checking for float.h" >&5 5458echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5459if test "${ac_cv_header_float_h+set}" = set; then 5460 echo $ECHO_N "(cached) $ECHO_C" >&6 5461fi 5462{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5463echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5464else 5465 # Is the header compilable? 5466{ echo "$as_me:$LINENO: checking float.h usability" >&5 5467echo $ECHO_N "checking float.h usability... $ECHO_C" >&6; } 5468cat >conftest.$ac_ext <<_ACEOF 5469/* confdefs.h. */ 5470_ACEOF 5471cat confdefs.h >>conftest.$ac_ext 5472cat >>conftest.$ac_ext <<_ACEOF 5473/* end confdefs.h. */ 5474$ac_includes_default 5475#include <float.h> 5476_ACEOF 5477rm -f conftest.$ac_objext 5478if { (ac_try="$ac_compile" 5479case "(($ac_try" in 5480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5481 *) ac_try_echo=$ac_try;; 5482esac 5483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5484 (eval "$ac_compile") 2>conftest.er1 5485 ac_status=$? 5486 grep -v '^ *+' conftest.er1 >conftest.err 5487 rm -f conftest.er1 5488 cat conftest.err >&5 5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5490 (exit $ac_status); } && { 5491 test -z "$ac_c_werror_flag" || 5492 test ! -s conftest.err 5493 } && test -s conftest.$ac_objext; then 5494 ac_header_compiler=yes 5495else 5496 echo "$as_me: failed program was:" >&5 5497sed 's/^/| /' conftest.$ac_ext >&5 5498 5499 ac_header_compiler=no 5500fi 5501 5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5503{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5504echo "${ECHO_T}$ac_header_compiler" >&6; } 5505 5506# Is the header present? 5507{ echo "$as_me:$LINENO: checking float.h presence" >&5 5508echo $ECHO_N "checking float.h presence... $ECHO_C" >&6; } 5509cat >conftest.$ac_ext <<_ACEOF 5510/* confdefs.h. */ 5511_ACEOF 5512cat confdefs.h >>conftest.$ac_ext 5513cat >>conftest.$ac_ext <<_ACEOF 5514/* end confdefs.h. */ 5515#include <float.h> 5516_ACEOF 5517if { (ac_try="$ac_cpp conftest.$ac_ext" 5518case "(($ac_try" in 5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5520 *) ac_try_echo=$ac_try;; 5521esac 5522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5524 ac_status=$? 5525 grep -v '^ *+' conftest.er1 >conftest.err 5526 rm -f conftest.er1 5527 cat conftest.err >&5 5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5529 (exit $ac_status); } >/dev/null && { 5530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5531 test ! -s conftest.err 5532 }; then 5533 ac_header_preproc=yes 5534else 5535 echo "$as_me: failed program was:" >&5 5536sed 's/^/| /' conftest.$ac_ext >&5 5537 5538 ac_header_preproc=no 5539fi 5540 5541rm -f conftest.err conftest.$ac_ext 5542{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5543echo "${ECHO_T}$ac_header_preproc" >&6; } 5544 5545# So? What about this header? 5546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5547 yes:no: ) 5548 { echo "$as_me:$LINENO: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&5 5549echo "$as_me: WARNING: float.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5550 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the compiler's result" >&5 5551echo "$as_me: WARNING: float.h: proceeding with the compiler's result" >&2;} 5552 ac_header_preproc=yes 5553 ;; 5554 no:yes:* ) 5555 { echo "$as_me:$LINENO: WARNING: float.h: present but cannot be compiled" >&5 5556echo "$as_me: WARNING: float.h: present but cannot be compiled" >&2;} 5557 { echo "$as_me:$LINENO: WARNING: float.h: check for missing prerequisite headers?" >&5 5558echo "$as_me: WARNING: float.h: check for missing prerequisite headers?" >&2;} 5559 { echo "$as_me:$LINENO: WARNING: float.h: see the Autoconf documentation" >&5 5560echo "$as_me: WARNING: float.h: see the Autoconf documentation" >&2;} 5561 { echo "$as_me:$LINENO: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&5 5562echo "$as_me: WARNING: float.h: section \"Present But Cannot Be Compiled\"" >&2;} 5563 { echo "$as_me:$LINENO: WARNING: float.h: proceeding with the preprocessor's result" >&5 5564echo "$as_me: WARNING: float.h: proceeding with the preprocessor's result" >&2;} 5565 { echo "$as_me:$LINENO: WARNING: float.h: in the future, the compiler will take precedence" >&5 5566echo "$as_me: WARNING: float.h: in the future, the compiler will take precedence" >&2;} 5567 5568 ;; 5569esac 5570{ echo "$as_me:$LINENO: checking for float.h" >&5 5571echo $ECHO_N "checking for float.h... $ECHO_C" >&6; } 5572if test "${ac_cv_header_float_h+set}" = set; then 5573 echo $ECHO_N "(cached) $ECHO_C" >&6 5574else 5575 ac_cv_header_float_h=$ac_header_preproc 5576fi 5577{ echo "$as_me:$LINENO: result: $ac_cv_header_float_h" >&5 5578echo "${ECHO_T}$ac_cv_header_float_h" >&6; } 5579 5580fi 5581if test $ac_cv_header_float_h = yes; then 5582 : 5583else 5584 5585cat >>confdefs.h <<\_ACEOF 5586#define NO_FLOAT_H 1 5587_ACEOF 5588 5589fi 5590 5591 5592 if test "${ac_cv_header_values_h+set}" = set; then 5593 { echo "$as_me:$LINENO: checking for values.h" >&5 5594echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5595if test "${ac_cv_header_values_h+set}" = set; then 5596 echo $ECHO_N "(cached) $ECHO_C" >&6 5597fi 5598{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5599echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5600else 5601 # Is the header compilable? 5602{ echo "$as_me:$LINENO: checking values.h usability" >&5 5603echo $ECHO_N "checking values.h usability... $ECHO_C" >&6; } 5604cat >conftest.$ac_ext <<_ACEOF 5605/* confdefs.h. */ 5606_ACEOF 5607cat confdefs.h >>conftest.$ac_ext 5608cat >>conftest.$ac_ext <<_ACEOF 5609/* end confdefs.h. */ 5610$ac_includes_default 5611#include <values.h> 5612_ACEOF 5613rm -f conftest.$ac_objext 5614if { (ac_try="$ac_compile" 5615case "(($ac_try" in 5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5617 *) ac_try_echo=$ac_try;; 5618esac 5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5620 (eval "$ac_compile") 2>conftest.er1 5621 ac_status=$? 5622 grep -v '^ *+' conftest.er1 >conftest.err 5623 rm -f conftest.er1 5624 cat conftest.err >&5 5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5626 (exit $ac_status); } && { 5627 test -z "$ac_c_werror_flag" || 5628 test ! -s conftest.err 5629 } && test -s conftest.$ac_objext; then 5630 ac_header_compiler=yes 5631else 5632 echo "$as_me: failed program was:" >&5 5633sed 's/^/| /' conftest.$ac_ext >&5 5634 5635 ac_header_compiler=no 5636fi 5637 5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5639{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5640echo "${ECHO_T}$ac_header_compiler" >&6; } 5641 5642# Is the header present? 5643{ echo "$as_me:$LINENO: checking values.h presence" >&5 5644echo $ECHO_N "checking values.h presence... $ECHO_C" >&6; } 5645cat >conftest.$ac_ext <<_ACEOF 5646/* confdefs.h. */ 5647_ACEOF 5648cat confdefs.h >>conftest.$ac_ext 5649cat >>conftest.$ac_ext <<_ACEOF 5650/* end confdefs.h. */ 5651#include <values.h> 5652_ACEOF 5653if { (ac_try="$ac_cpp conftest.$ac_ext" 5654case "(($ac_try" in 5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5656 *) ac_try_echo=$ac_try;; 5657esac 5658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5660 ac_status=$? 5661 grep -v '^ *+' conftest.er1 >conftest.err 5662 rm -f conftest.er1 5663 cat conftest.err >&5 5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5665 (exit $ac_status); } >/dev/null && { 5666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5667 test ! -s conftest.err 5668 }; then 5669 ac_header_preproc=yes 5670else 5671 echo "$as_me: failed program was:" >&5 5672sed 's/^/| /' conftest.$ac_ext >&5 5673 5674 ac_header_preproc=no 5675fi 5676 5677rm -f conftest.err conftest.$ac_ext 5678{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5679echo "${ECHO_T}$ac_header_preproc" >&6; } 5680 5681# So? What about this header? 5682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5683 yes:no: ) 5684 { echo "$as_me:$LINENO: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&5 5685echo "$as_me: WARNING: values.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5686 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the compiler's result" >&5 5687echo "$as_me: WARNING: values.h: proceeding with the compiler's result" >&2;} 5688 ac_header_preproc=yes 5689 ;; 5690 no:yes:* ) 5691 { echo "$as_me:$LINENO: WARNING: values.h: present but cannot be compiled" >&5 5692echo "$as_me: WARNING: values.h: present but cannot be compiled" >&2;} 5693 { echo "$as_me:$LINENO: WARNING: values.h: check for missing prerequisite headers?" >&5 5694echo "$as_me: WARNING: values.h: check for missing prerequisite headers?" >&2;} 5695 { echo "$as_me:$LINENO: WARNING: values.h: see the Autoconf documentation" >&5 5696echo "$as_me: WARNING: values.h: see the Autoconf documentation" >&2;} 5697 { echo "$as_me:$LINENO: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&5 5698echo "$as_me: WARNING: values.h: section \"Present But Cannot Be Compiled\"" >&2;} 5699 { echo "$as_me:$LINENO: WARNING: values.h: proceeding with the preprocessor's result" >&5 5700echo "$as_me: WARNING: values.h: proceeding with the preprocessor's result" >&2;} 5701 { echo "$as_me:$LINENO: WARNING: values.h: in the future, the compiler will take precedence" >&5 5702echo "$as_me: WARNING: values.h: in the future, the compiler will take precedence" >&2;} 5703 5704 ;; 5705esac 5706{ echo "$as_me:$LINENO: checking for values.h" >&5 5707echo $ECHO_N "checking for values.h... $ECHO_C" >&6; } 5708if test "${ac_cv_header_values_h+set}" = set; then 5709 echo $ECHO_N "(cached) $ECHO_C" >&6 5710else 5711 ac_cv_header_values_h=$ac_header_preproc 5712fi 5713{ echo "$as_me:$LINENO: result: $ac_cv_header_values_h" >&5 5714echo "${ECHO_T}$ac_cv_header_values_h" >&6; } 5715 5716fi 5717if test $ac_cv_header_values_h = yes; then 5718 : 5719else 5720 5721cat >>confdefs.h <<\_ACEOF 5722#define NO_VALUES_H 1 5723_ACEOF 5724 5725fi 5726 5727 5728 if test "${ac_cv_header_limits_h+set}" = set; then 5729 { echo "$as_me:$LINENO: checking for limits.h" >&5 5730echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5731if test "${ac_cv_header_limits_h+set}" = set; then 5732 echo $ECHO_N "(cached) $ECHO_C" >&6 5733fi 5734{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5735echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5736else 5737 # Is the header compilable? 5738{ echo "$as_me:$LINENO: checking limits.h usability" >&5 5739echo $ECHO_N "checking limits.h usability... $ECHO_C" >&6; } 5740cat >conftest.$ac_ext <<_ACEOF 5741/* confdefs.h. */ 5742_ACEOF 5743cat confdefs.h >>conftest.$ac_ext 5744cat >>conftest.$ac_ext <<_ACEOF 5745/* end confdefs.h. */ 5746$ac_includes_default 5747#include <limits.h> 5748_ACEOF 5749rm -f conftest.$ac_objext 5750if { (ac_try="$ac_compile" 5751case "(($ac_try" in 5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5753 *) ac_try_echo=$ac_try;; 5754esac 5755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5756 (eval "$ac_compile") 2>conftest.er1 5757 ac_status=$? 5758 grep -v '^ *+' conftest.er1 >conftest.err 5759 rm -f conftest.er1 5760 cat conftest.err >&5 5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5762 (exit $ac_status); } && { 5763 test -z "$ac_c_werror_flag" || 5764 test ! -s conftest.err 5765 } && test -s conftest.$ac_objext; then 5766 ac_header_compiler=yes 5767else 5768 echo "$as_me: failed program was:" >&5 5769sed 's/^/| /' conftest.$ac_ext >&5 5770 5771 ac_header_compiler=no 5772fi 5773 5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5775{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5776echo "${ECHO_T}$ac_header_compiler" >&6; } 5777 5778# Is the header present? 5779{ echo "$as_me:$LINENO: checking limits.h presence" >&5 5780echo $ECHO_N "checking limits.h presence... $ECHO_C" >&6; } 5781cat >conftest.$ac_ext <<_ACEOF 5782/* confdefs.h. */ 5783_ACEOF 5784cat confdefs.h >>conftest.$ac_ext 5785cat >>conftest.$ac_ext <<_ACEOF 5786/* end confdefs.h. */ 5787#include <limits.h> 5788_ACEOF 5789if { (ac_try="$ac_cpp conftest.$ac_ext" 5790case "(($ac_try" in 5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5792 *) ac_try_echo=$ac_try;; 5793esac 5794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5796 ac_status=$? 5797 grep -v '^ *+' conftest.er1 >conftest.err 5798 rm -f conftest.er1 5799 cat conftest.err >&5 5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5801 (exit $ac_status); } >/dev/null && { 5802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5803 test ! -s conftest.err 5804 }; then 5805 ac_header_preproc=yes 5806else 5807 echo "$as_me: failed program was:" >&5 5808sed 's/^/| /' conftest.$ac_ext >&5 5809 5810 ac_header_preproc=no 5811fi 5812 5813rm -f conftest.err conftest.$ac_ext 5814{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5815echo "${ECHO_T}$ac_header_preproc" >&6; } 5816 5817# So? What about this header? 5818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5819 yes:no: ) 5820 { echo "$as_me:$LINENO: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&5 5821echo "$as_me: WARNING: limits.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5822 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the compiler's result" >&5 5823echo "$as_me: WARNING: limits.h: proceeding with the compiler's result" >&2;} 5824 ac_header_preproc=yes 5825 ;; 5826 no:yes:* ) 5827 { echo "$as_me:$LINENO: WARNING: limits.h: present but cannot be compiled" >&5 5828echo "$as_me: WARNING: limits.h: present but cannot be compiled" >&2;} 5829 { echo "$as_me:$LINENO: WARNING: limits.h: check for missing prerequisite headers?" >&5 5830echo "$as_me: WARNING: limits.h: check for missing prerequisite headers?" >&2;} 5831 { echo "$as_me:$LINENO: WARNING: limits.h: see the Autoconf documentation" >&5 5832echo "$as_me: WARNING: limits.h: see the Autoconf documentation" >&2;} 5833 { echo "$as_me:$LINENO: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&5 5834echo "$as_me: WARNING: limits.h: section \"Present But Cannot Be Compiled\"" >&2;} 5835 { echo "$as_me:$LINENO: WARNING: limits.h: proceeding with the preprocessor's result" >&5 5836echo "$as_me: WARNING: limits.h: proceeding with the preprocessor's result" >&2;} 5837 { echo "$as_me:$LINENO: WARNING: limits.h: in the future, the compiler will take precedence" >&5 5838echo "$as_me: WARNING: limits.h: in the future, the compiler will take precedence" >&2;} 5839 5840 ;; 5841esac 5842{ echo "$as_me:$LINENO: checking for limits.h" >&5 5843echo $ECHO_N "checking for limits.h... $ECHO_C" >&6; } 5844if test "${ac_cv_header_limits_h+set}" = set; then 5845 echo $ECHO_N "(cached) $ECHO_C" >&6 5846else 5847 ac_cv_header_limits_h=$ac_header_preproc 5848fi 5849{ echo "$as_me:$LINENO: result: $ac_cv_header_limits_h" >&5 5850echo "${ECHO_T}$ac_cv_header_limits_h" >&6; } 5851 5852fi 5853if test $ac_cv_header_limits_h = yes; then 5854 5855cat >>confdefs.h <<\_ACEOF 5856#define HAVE_LIMITS_H 1 5857_ACEOF 5858 5859else 5860 5861cat >>confdefs.h <<\_ACEOF 5862#define NO_LIMITS_H 1 5863_ACEOF 5864 5865fi 5866 5867 5868 if test "${ac_cv_header_stdlib_h+set}" = set; then 5869 { echo "$as_me:$LINENO: checking for stdlib.h" >&5 5870echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5871if test "${ac_cv_header_stdlib_h+set}" = set; then 5872 echo $ECHO_N "(cached) $ECHO_C" >&6 5873fi 5874{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5875echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5876else 5877 # Is the header compilable? 5878{ echo "$as_me:$LINENO: checking stdlib.h usability" >&5 5879echo $ECHO_N "checking stdlib.h usability... $ECHO_C" >&6; } 5880cat >conftest.$ac_ext <<_ACEOF 5881/* confdefs.h. */ 5882_ACEOF 5883cat confdefs.h >>conftest.$ac_ext 5884cat >>conftest.$ac_ext <<_ACEOF 5885/* end confdefs.h. */ 5886$ac_includes_default 5887#include <stdlib.h> 5888_ACEOF 5889rm -f conftest.$ac_objext 5890if { (ac_try="$ac_compile" 5891case "(($ac_try" in 5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5893 *) ac_try_echo=$ac_try;; 5894esac 5895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5896 (eval "$ac_compile") 2>conftest.er1 5897 ac_status=$? 5898 grep -v '^ *+' conftest.er1 >conftest.err 5899 rm -f conftest.er1 5900 cat conftest.err >&5 5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5902 (exit $ac_status); } && { 5903 test -z "$ac_c_werror_flag" || 5904 test ! -s conftest.err 5905 } && test -s conftest.$ac_objext; then 5906 ac_header_compiler=yes 5907else 5908 echo "$as_me: failed program was:" >&5 5909sed 's/^/| /' conftest.$ac_ext >&5 5910 5911 ac_header_compiler=no 5912fi 5913 5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5915{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5916echo "${ECHO_T}$ac_header_compiler" >&6; } 5917 5918# Is the header present? 5919{ echo "$as_me:$LINENO: checking stdlib.h presence" >&5 5920echo $ECHO_N "checking stdlib.h presence... $ECHO_C" >&6; } 5921cat >conftest.$ac_ext <<_ACEOF 5922/* confdefs.h. */ 5923_ACEOF 5924cat confdefs.h >>conftest.$ac_ext 5925cat >>conftest.$ac_ext <<_ACEOF 5926/* end confdefs.h. */ 5927#include <stdlib.h> 5928_ACEOF 5929if { (ac_try="$ac_cpp conftest.$ac_ext" 5930case "(($ac_try" in 5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5932 *) ac_try_echo=$ac_try;; 5933esac 5934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5936 ac_status=$? 5937 grep -v '^ *+' conftest.er1 >conftest.err 5938 rm -f conftest.er1 5939 cat conftest.err >&5 5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5941 (exit $ac_status); } >/dev/null && { 5942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5943 test ! -s conftest.err 5944 }; then 5945 ac_header_preproc=yes 5946else 5947 echo "$as_me: failed program was:" >&5 5948sed 's/^/| /' conftest.$ac_ext >&5 5949 5950 ac_header_preproc=no 5951fi 5952 5953rm -f conftest.err conftest.$ac_ext 5954{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5955echo "${ECHO_T}$ac_header_preproc" >&6; } 5956 5957# So? What about this header? 5958case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5959 yes:no: ) 5960 { echo "$as_me:$LINENO: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 5961echo "$as_me: WARNING: stdlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 5962 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the compiler's result" >&5 5963echo "$as_me: WARNING: stdlib.h: proceeding with the compiler's result" >&2;} 5964 ac_header_preproc=yes 5965 ;; 5966 no:yes:* ) 5967 { echo "$as_me:$LINENO: WARNING: stdlib.h: present but cannot be compiled" >&5 5968echo "$as_me: WARNING: stdlib.h: present but cannot be compiled" >&2;} 5969 { echo "$as_me:$LINENO: WARNING: stdlib.h: check for missing prerequisite headers?" >&5 5970echo "$as_me: WARNING: stdlib.h: check for missing prerequisite headers?" >&2;} 5971 { echo "$as_me:$LINENO: WARNING: stdlib.h: see the Autoconf documentation" >&5 5972echo "$as_me: WARNING: stdlib.h: see the Autoconf documentation" >&2;} 5973 { echo "$as_me:$LINENO: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&5 5974echo "$as_me: WARNING: stdlib.h: section \"Present But Cannot Be Compiled\"" >&2;} 5975 { echo "$as_me:$LINENO: WARNING: stdlib.h: proceeding with the preprocessor's result" >&5 5976echo "$as_me: WARNING: stdlib.h: proceeding with the preprocessor's result" >&2;} 5977 { echo "$as_me:$LINENO: WARNING: stdlib.h: in the future, the compiler will take precedence" >&5 5978echo "$as_me: WARNING: stdlib.h: in the future, the compiler will take precedence" >&2;} 5979 5980 ;; 5981esac 5982{ echo "$as_me:$LINENO: checking for stdlib.h" >&5 5983echo $ECHO_N "checking for stdlib.h... $ECHO_C" >&6; } 5984if test "${ac_cv_header_stdlib_h+set}" = set; then 5985 echo $ECHO_N "(cached) $ECHO_C" >&6 5986else 5987 ac_cv_header_stdlib_h=$ac_header_preproc 5988fi 5989{ echo "$as_me:$LINENO: result: $ac_cv_header_stdlib_h" >&5 5990echo "${ECHO_T}$ac_cv_header_stdlib_h" >&6; } 5991 5992fi 5993if test $ac_cv_header_stdlib_h = yes; then 5994 tcl_ok=1 5995else 5996 tcl_ok=0 5997fi 5998 5999 6000 cat >conftest.$ac_ext <<_ACEOF 6001/* confdefs.h. */ 6002_ACEOF 6003cat confdefs.h >>conftest.$ac_ext 6004cat >>conftest.$ac_ext <<_ACEOF 6005/* end confdefs.h. */ 6006#include <stdlib.h> 6007 6008_ACEOF 6009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6010 $EGREP "strtol" >/dev/null 2>&1; then 6011 : 6012else 6013 tcl_ok=0 6014fi 6015rm -f -r conftest* 6016 6017 cat >conftest.$ac_ext <<_ACEOF 6018/* confdefs.h. */ 6019_ACEOF 6020cat confdefs.h >>conftest.$ac_ext 6021cat >>conftest.$ac_ext <<_ACEOF 6022/* end confdefs.h. */ 6023#include <stdlib.h> 6024 6025_ACEOF 6026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6027 $EGREP "strtoul" >/dev/null 2>&1; then 6028 : 6029else 6030 tcl_ok=0 6031fi 6032rm -f -r conftest* 6033 6034 cat >conftest.$ac_ext <<_ACEOF 6035/* confdefs.h. */ 6036_ACEOF 6037cat confdefs.h >>conftest.$ac_ext 6038cat >>conftest.$ac_ext <<_ACEOF 6039/* end confdefs.h. */ 6040#include <stdlib.h> 6041 6042_ACEOF 6043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6044 $EGREP "strtod" >/dev/null 2>&1; then 6045 : 6046else 6047 tcl_ok=0 6048fi 6049rm -f -r conftest* 6050 6051 if test $tcl_ok = 0; then 6052 6053cat >>confdefs.h <<\_ACEOF 6054#define NO_STDLIB_H 1 6055_ACEOF 6056 6057 fi 6058 if test "${ac_cv_header_string_h+set}" = set; then 6059 { echo "$as_me:$LINENO: checking for string.h" >&5 6060echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6061if test "${ac_cv_header_string_h+set}" = set; then 6062 echo $ECHO_N "(cached) $ECHO_C" >&6 6063fi 6064{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6065echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6066else 6067 # Is the header compilable? 6068{ echo "$as_me:$LINENO: checking string.h usability" >&5 6069echo $ECHO_N "checking string.h usability... $ECHO_C" >&6; } 6070cat >conftest.$ac_ext <<_ACEOF 6071/* confdefs.h. */ 6072_ACEOF 6073cat confdefs.h >>conftest.$ac_ext 6074cat >>conftest.$ac_ext <<_ACEOF 6075/* end confdefs.h. */ 6076$ac_includes_default 6077#include <string.h> 6078_ACEOF 6079rm -f conftest.$ac_objext 6080if { (ac_try="$ac_compile" 6081case "(($ac_try" in 6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6083 *) ac_try_echo=$ac_try;; 6084esac 6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6086 (eval "$ac_compile") 2>conftest.er1 6087 ac_status=$? 6088 grep -v '^ *+' conftest.er1 >conftest.err 6089 rm -f conftest.er1 6090 cat conftest.err >&5 6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6092 (exit $ac_status); } && { 6093 test -z "$ac_c_werror_flag" || 6094 test ! -s conftest.err 6095 } && test -s conftest.$ac_objext; then 6096 ac_header_compiler=yes 6097else 6098 echo "$as_me: failed program was:" >&5 6099sed 's/^/| /' conftest.$ac_ext >&5 6100 6101 ac_header_compiler=no 6102fi 6103 6104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6105{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6106echo "${ECHO_T}$ac_header_compiler" >&6; } 6107 6108# Is the header present? 6109{ echo "$as_me:$LINENO: checking string.h presence" >&5 6110echo $ECHO_N "checking string.h presence... $ECHO_C" >&6; } 6111cat >conftest.$ac_ext <<_ACEOF 6112/* confdefs.h. */ 6113_ACEOF 6114cat confdefs.h >>conftest.$ac_ext 6115cat >>conftest.$ac_ext <<_ACEOF 6116/* end confdefs.h. */ 6117#include <string.h> 6118_ACEOF 6119if { (ac_try="$ac_cpp conftest.$ac_ext" 6120case "(($ac_try" in 6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6122 *) ac_try_echo=$ac_try;; 6123esac 6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6126 ac_status=$? 6127 grep -v '^ *+' conftest.er1 >conftest.err 6128 rm -f conftest.er1 6129 cat conftest.err >&5 6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6131 (exit $ac_status); } >/dev/null && { 6132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6133 test ! -s conftest.err 6134 }; then 6135 ac_header_preproc=yes 6136else 6137 echo "$as_me: failed program was:" >&5 6138sed 's/^/| /' conftest.$ac_ext >&5 6139 6140 ac_header_preproc=no 6141fi 6142 6143rm -f conftest.err conftest.$ac_ext 6144{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6145echo "${ECHO_T}$ac_header_preproc" >&6; } 6146 6147# So? What about this header? 6148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6149 yes:no: ) 6150 { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5 6151echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6152 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5 6153echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;} 6154 ac_header_preproc=yes 6155 ;; 6156 no:yes:* ) 6157 { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5 6158echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;} 6159 { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5 6160echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;} 6161 { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5 6162echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;} 6163 { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5 6164echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;} 6165 { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5 6166echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;} 6167 { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5 6168echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;} 6169 6170 ;; 6171esac 6172{ echo "$as_me:$LINENO: checking for string.h" >&5 6173echo $ECHO_N "checking for string.h... $ECHO_C" >&6; } 6174if test "${ac_cv_header_string_h+set}" = set; then 6175 echo $ECHO_N "(cached) $ECHO_C" >&6 6176else 6177 ac_cv_header_string_h=$ac_header_preproc 6178fi 6179{ echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5 6180echo "${ECHO_T}$ac_cv_header_string_h" >&6; } 6181 6182fi 6183if test $ac_cv_header_string_h = yes; then 6184 tcl_ok=1 6185else 6186 tcl_ok=0 6187fi 6188 6189 6190 cat >conftest.$ac_ext <<_ACEOF 6191/* confdefs.h. */ 6192_ACEOF 6193cat confdefs.h >>conftest.$ac_ext 6194cat >>conftest.$ac_ext <<_ACEOF 6195/* end confdefs.h. */ 6196#include <string.h> 6197 6198_ACEOF 6199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6200 $EGREP "strstr" >/dev/null 2>&1; then 6201 : 6202else 6203 tcl_ok=0 6204fi 6205rm -f -r conftest* 6206 6207 cat >conftest.$ac_ext <<_ACEOF 6208/* confdefs.h. */ 6209_ACEOF 6210cat confdefs.h >>conftest.$ac_ext 6211cat >>conftest.$ac_ext <<_ACEOF 6212/* end confdefs.h. */ 6213#include <string.h> 6214 6215_ACEOF 6216if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6217 $EGREP "strerror" >/dev/null 2>&1; then 6218 : 6219else 6220 tcl_ok=0 6221fi 6222rm -f -r conftest* 6223 6224 6225 # See also memmove check below for a place where NO_STRING_H can be 6226 # set and why. 6227 6228 if test $tcl_ok = 0; then 6229 6230cat >>confdefs.h <<\_ACEOF 6231#define NO_STRING_H 1 6232_ACEOF 6233 6234 fi 6235 6236 if test "${ac_cv_header_sys_wait_h+set}" = set; then 6237 { echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6238echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6239if test "${ac_cv_header_sys_wait_h+set}" = set; then 6240 echo $ECHO_N "(cached) $ECHO_C" >&6 6241fi 6242{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6243echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6244else 6245 # Is the header compilable? 6246{ echo "$as_me:$LINENO: checking sys/wait.h usability" >&5 6247echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6; } 6248cat >conftest.$ac_ext <<_ACEOF 6249/* confdefs.h. */ 6250_ACEOF 6251cat confdefs.h >>conftest.$ac_ext 6252cat >>conftest.$ac_ext <<_ACEOF 6253/* end confdefs.h. */ 6254$ac_includes_default 6255#include <sys/wait.h> 6256_ACEOF 6257rm -f conftest.$ac_objext 6258if { (ac_try="$ac_compile" 6259case "(($ac_try" in 6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6261 *) ac_try_echo=$ac_try;; 6262esac 6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6264 (eval "$ac_compile") 2>conftest.er1 6265 ac_status=$? 6266 grep -v '^ *+' conftest.er1 >conftest.err 6267 rm -f conftest.er1 6268 cat conftest.err >&5 6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6270 (exit $ac_status); } && { 6271 test -z "$ac_c_werror_flag" || 6272 test ! -s conftest.err 6273 } && test -s conftest.$ac_objext; then 6274 ac_header_compiler=yes 6275else 6276 echo "$as_me: failed program was:" >&5 6277sed 's/^/| /' conftest.$ac_ext >&5 6278 6279 ac_header_compiler=no 6280fi 6281 6282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6283{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6284echo "${ECHO_T}$ac_header_compiler" >&6; } 6285 6286# Is the header present? 6287{ echo "$as_me:$LINENO: checking sys/wait.h presence" >&5 6288echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6; } 6289cat >conftest.$ac_ext <<_ACEOF 6290/* confdefs.h. */ 6291_ACEOF 6292cat confdefs.h >>conftest.$ac_ext 6293cat >>conftest.$ac_ext <<_ACEOF 6294/* end confdefs.h. */ 6295#include <sys/wait.h> 6296_ACEOF 6297if { (ac_try="$ac_cpp conftest.$ac_ext" 6298case "(($ac_try" in 6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6300 *) ac_try_echo=$ac_try;; 6301esac 6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6304 ac_status=$? 6305 grep -v '^ *+' conftest.er1 >conftest.err 6306 rm -f conftest.er1 6307 cat conftest.err >&5 6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6309 (exit $ac_status); } >/dev/null && { 6310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6311 test ! -s conftest.err 6312 }; then 6313 ac_header_preproc=yes 6314else 6315 echo "$as_me: failed program was:" >&5 6316sed 's/^/| /' conftest.$ac_ext >&5 6317 6318 ac_header_preproc=no 6319fi 6320 6321rm -f conftest.err conftest.$ac_ext 6322{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6323echo "${ECHO_T}$ac_header_preproc" >&6; } 6324 6325# So? What about this header? 6326case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6327 yes:no: ) 6328 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5 6329echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6330 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5 6331echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;} 6332 ac_header_preproc=yes 6333 ;; 6334 no:yes:* ) 6335 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5 6336echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;} 6337 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5 6338echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;} 6339 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5 6340echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;} 6341 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5 6342echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;} 6343 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5 6344echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;} 6345 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5 6346echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;} 6347 6348 ;; 6349esac 6350{ echo "$as_me:$LINENO: checking for sys/wait.h" >&5 6351echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6; } 6352if test "${ac_cv_header_sys_wait_h+set}" = set; then 6353 echo $ECHO_N "(cached) $ECHO_C" >&6 6354else 6355 ac_cv_header_sys_wait_h=$ac_header_preproc 6356fi 6357{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6358echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 6359 6360fi 6361if test $ac_cv_header_sys_wait_h = yes; then 6362 : 6363else 6364 6365cat >>confdefs.h <<\_ACEOF 6366#define NO_SYS_WAIT_H 1 6367_ACEOF 6368 6369fi 6370 6371 6372 if test "${ac_cv_header_dlfcn_h+set}" = set; then 6373 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6374echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6375if test "${ac_cv_header_dlfcn_h+set}" = set; then 6376 echo $ECHO_N "(cached) $ECHO_C" >&6 6377fi 6378{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6379echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6380else 6381 # Is the header compilable? 6382{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 6383echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 6384cat >conftest.$ac_ext <<_ACEOF 6385/* confdefs.h. */ 6386_ACEOF 6387cat confdefs.h >>conftest.$ac_ext 6388cat >>conftest.$ac_ext <<_ACEOF 6389/* end confdefs.h. */ 6390$ac_includes_default 6391#include <dlfcn.h> 6392_ACEOF 6393rm -f conftest.$ac_objext 6394if { (ac_try="$ac_compile" 6395case "(($ac_try" in 6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6397 *) ac_try_echo=$ac_try;; 6398esac 6399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6400 (eval "$ac_compile") 2>conftest.er1 6401 ac_status=$? 6402 grep -v '^ *+' conftest.er1 >conftest.err 6403 rm -f conftest.er1 6404 cat conftest.err >&5 6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6406 (exit $ac_status); } && { 6407 test -z "$ac_c_werror_flag" || 6408 test ! -s conftest.err 6409 } && test -s conftest.$ac_objext; then 6410 ac_header_compiler=yes 6411else 6412 echo "$as_me: failed program was:" >&5 6413sed 's/^/| /' conftest.$ac_ext >&5 6414 6415 ac_header_compiler=no 6416fi 6417 6418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6419{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6420echo "${ECHO_T}$ac_header_compiler" >&6; } 6421 6422# Is the header present? 6423{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 6424echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 6425cat >conftest.$ac_ext <<_ACEOF 6426/* confdefs.h. */ 6427_ACEOF 6428cat confdefs.h >>conftest.$ac_ext 6429cat >>conftest.$ac_ext <<_ACEOF 6430/* end confdefs.h. */ 6431#include <dlfcn.h> 6432_ACEOF 6433if { (ac_try="$ac_cpp conftest.$ac_ext" 6434case "(($ac_try" in 6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6436 *) ac_try_echo=$ac_try;; 6437esac 6438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6440 ac_status=$? 6441 grep -v '^ *+' conftest.er1 >conftest.err 6442 rm -f conftest.er1 6443 cat conftest.err >&5 6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6445 (exit $ac_status); } >/dev/null && { 6446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6447 test ! -s conftest.err 6448 }; then 6449 ac_header_preproc=yes 6450else 6451 echo "$as_me: failed program was:" >&5 6452sed 's/^/| /' conftest.$ac_ext >&5 6453 6454 ac_header_preproc=no 6455fi 6456 6457rm -f conftest.err conftest.$ac_ext 6458{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6459echo "${ECHO_T}$ac_header_preproc" >&6; } 6460 6461# So? What about this header? 6462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6463 yes:no: ) 6464 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 6465echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6466 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 6467echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 6468 ac_header_preproc=yes 6469 ;; 6470 no:yes:* ) 6471 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 6472echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 6473 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 6474echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 6475 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 6476echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 6477 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 6478echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 6479 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 6480echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 6481 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 6482echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 6483 6484 ;; 6485esac 6486{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 6487echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 6488if test "${ac_cv_header_dlfcn_h+set}" = set; then 6489 echo $ECHO_N "(cached) $ECHO_C" >&6 6490else 6491 ac_cv_header_dlfcn_h=$ac_header_preproc 6492fi 6493{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 6494echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 6495 6496fi 6497if test $ac_cv_header_dlfcn_h = yes; then 6498 : 6499else 6500 6501cat >>confdefs.h <<\_ACEOF 6502#define NO_DLFCN_H 1 6503_ACEOF 6504 6505fi 6506 6507 6508 6509 # OS/390 lacks sys/param.h (and doesn't need it, by chance). 6510 6511for ac_header in sys/param.h 6512do 6513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 6514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6515 { echo "$as_me:$LINENO: checking for $ac_header" >&5 6516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6518 echo $ECHO_N "(cached) $ECHO_C" >&6 6519fi 6520ac_res=`eval echo '${'$as_ac_Header'}'` 6521 { echo "$as_me:$LINENO: result: $ac_res" >&5 6522echo "${ECHO_T}$ac_res" >&6; } 6523else 6524 # Is the header compilable? 6525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6527cat >conftest.$ac_ext <<_ACEOF 6528/* confdefs.h. */ 6529_ACEOF 6530cat confdefs.h >>conftest.$ac_ext 6531cat >>conftest.$ac_ext <<_ACEOF 6532/* end confdefs.h. */ 6533$ac_includes_default 6534#include <$ac_header> 6535_ACEOF 6536rm -f conftest.$ac_objext 6537if { (ac_try="$ac_compile" 6538case "(($ac_try" in 6539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6540 *) ac_try_echo=$ac_try;; 6541esac 6542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6543 (eval "$ac_compile") 2>conftest.er1 6544 ac_status=$? 6545 grep -v '^ *+' conftest.er1 >conftest.err 6546 rm -f conftest.er1 6547 cat conftest.err >&5 6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6549 (exit $ac_status); } && { 6550 test -z "$ac_c_werror_flag" || 6551 test ! -s conftest.err 6552 } && test -s conftest.$ac_objext; then 6553 ac_header_compiler=yes 6554else 6555 echo "$as_me: failed program was:" >&5 6556sed 's/^/| /' conftest.$ac_ext >&5 6557 6558 ac_header_compiler=no 6559fi 6560 6561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6563echo "${ECHO_T}$ac_header_compiler" >&6; } 6564 6565# Is the header present? 6566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6568cat >conftest.$ac_ext <<_ACEOF 6569/* confdefs.h. */ 6570_ACEOF 6571cat confdefs.h >>conftest.$ac_ext 6572cat >>conftest.$ac_ext <<_ACEOF 6573/* end confdefs.h. */ 6574#include <$ac_header> 6575_ACEOF 6576if { (ac_try="$ac_cpp conftest.$ac_ext" 6577case "(($ac_try" in 6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6579 *) ac_try_echo=$ac_try;; 6580esac 6581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6583 ac_status=$? 6584 grep -v '^ *+' conftest.er1 >conftest.err 6585 rm -f conftest.er1 6586 cat conftest.err >&5 6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6588 (exit $ac_status); } >/dev/null && { 6589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6590 test ! -s conftest.err 6591 }; then 6592 ac_header_preproc=yes 6593else 6594 echo "$as_me: failed program was:" >&5 6595sed 's/^/| /' conftest.$ac_ext >&5 6596 6597 ac_header_preproc=no 6598fi 6599 6600rm -f conftest.err conftest.$ac_ext 6601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6602echo "${ECHO_T}$ac_header_preproc" >&6; } 6603 6604# So? What about this header? 6605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6606 yes:no: ) 6607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6611 ac_header_preproc=yes 6612 ;; 6613 no:yes:* ) 6614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6626 6627 ;; 6628esac 6629{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6632 echo $ECHO_N "(cached) $ECHO_C" >&6 6633else 6634 eval "$as_ac_Header=\$ac_header_preproc" 6635fi 6636ac_res=`eval echo '${'$as_ac_Header'}'` 6637 { echo "$as_me:$LINENO: result: $ac_res" >&5 6638echo "${ECHO_T}$ac_res" >&6; } 6639 6640fi 6641if test `eval echo '${'$as_ac_Header'}'` = yes; then 6642 cat >>confdefs.h <<_ACEOF 6643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6644_ACEOF 6645 6646fi 6647 6648done 6649 6650 6651 # Let the user call this, because if it triggers, they will 6652 # need a compat/strtod.c that is correct. Users can also 6653 # use Tcl_GetDouble(FromObj) instead. 6654 #TEA_BUGGY_STRTOD 6655 fi 6656 6657 6658#----------------------------------------------------------------------- 6659# Specify the C source files to compile in TEA_ADD_SOURCES, 6660# public headers that need to be installed in TEA_ADD_HEADERS, 6661# stub library C source files to compile in TEA_ADD_STUB_SOURCES, 6662# and runtime Tcl library files in TEA_ADD_TCL_SOURCES. 6663# This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS 6664# and PKG_TCL_SOURCES. 6665#----------------------------------------------------------------------- 6666 6667 6668 vars="ffidl.c" 6669 for i in $vars; do 6670 case $i in 6671 \$*) 6672 # allow $-var names 6673 PKG_SOURCES="$PKG_SOURCES $i" 6674 PKG_OBJECTS="$PKG_OBJECTS $i" 6675 ;; 6676 *) 6677 # check for existence - allows for generic/win/unix VPATH 6678 # To add more dirs here (like 'src'), you have to update VPATH 6679 # in Makefile.in as well 6680 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6681 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6682 -a ! -f "${srcdir}/macosx/$i" \ 6683 ; then 6684 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 6685echo "$as_me: error: could not find source file '$i'" >&2;} 6686 { (exit 1); exit 1; }; } 6687 fi 6688 PKG_SOURCES="$PKG_SOURCES $i" 6689 # this assumes it is in a VPATH dir 6690 i=`basename $i` 6691 # handle user calling this before or after TEA_SETUP_COMPILER 6692 if test x"${OBJEXT}" != x ; then 6693 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6694 else 6695 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6696 fi 6697 PKG_OBJECTS="$PKG_OBJECTS $j" 6698 ;; 6699 esac 6700 done 6701 6702 6703 6704 6705 vars="" 6706 for i in $vars; do 6707 # check for existence, be strict because it is installed 6708 if test ! -f "${srcdir}/$i" ; then 6709 { { echo "$as_me:$LINENO: error: could not find header file '${srcdir}/$i'" >&5 6710echo "$as_me: error: could not find header file '${srcdir}/$i'" >&2;} 6711 { (exit 1); exit 1; }; } 6712 fi 6713 PKG_HEADERS="$PKG_HEADERS $i" 6714 done 6715 6716 6717 6718 vars="" 6719 for i in $vars; do 6720 PKG_INCLUDES="$PKG_INCLUDES $i" 6721 done 6722 6723 6724 6725 vars="" 6726 for i in $vars; do 6727 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 6728 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 6729 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 6730 fi 6731 PKG_LIBS="$PKG_LIBS $i" 6732 done 6733 6734 6735 6736 PKG_CFLAGS="$PKG_CFLAGS -DMACOSX" 6737 6738 6739 6740 vars="" 6741 for i in $vars; do 6742 # check for existence - allows for generic/win/unix VPATH 6743 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 6744 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 6745 -a ! -f "${srcdir}/macosx/$i" \ 6746 ; then 6747 { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 6748echo "$as_me: error: could not find stub source file '$i'" >&2;} 6749 { (exit 1); exit 1; }; } 6750 fi 6751 PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" 6752 # this assumes it is in a VPATH dir 6753 i=`basename $i` 6754 # handle user calling this before or after TEA_SETUP_COMPILER 6755 if test x"${OBJEXT}" != x ; then 6756 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 6757 else 6758 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 6759 fi 6760 PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" 6761 done 6762 6763 6764 6765 6766 vars="library/ffidlrt.tcl" 6767 for i in $vars; do 6768 # check for existence, be strict because it is installed 6769 if test ! -f "${srcdir}/$i" ; then 6770 { { echo "$as_me:$LINENO: error: could not find tcl source file '${srcdir}/$i'" >&5 6771echo "$as_me: error: could not find tcl source file '${srcdir}/$i'" >&2;} 6772 { (exit 1); exit 1; }; } 6773 fi 6774 PKG_TCL_SOURCES="$PKG_TCL_SOURCES $i" 6775 done 6776 6777 6778 6779cat >>confdefs.h <<\_ACEOF 6780#define LOOKUP_TK_STUBS 1 6781_ACEOF 6782 6783 6784#-------------------------------------------------------------------- 6785# TEA_ADD_* any platform specific compiler/build info here. 6786#-------------------------------------------------------------------- 6787 6788 6789 6790#-------------------------------------------------------------------- 6791# Choose which headers you need. Extension authors should try very 6792# hard to only rely on the Tcl public header files. Internal headers 6793# contain private data structures and are subject to change without 6794# notice. 6795# This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG 6796#-------------------------------------------------------------------- 6797 6798#TEA_PUBLIC_TCL_HEADERS 6799 6800 { echo "$as_me:$LINENO: checking for Tcl public headers" >&5 6801echo $ECHO_N "checking for Tcl public headers... $ECHO_C" >&6; } 6802 6803 6804# Check whether --with-tclinclude was given. 6805if test "${with_tclinclude+set}" = set; then 6806 withval=$with_tclinclude; with_tclinclude=${withval} 6807fi 6808 6809 6810 if test "${ac_cv_c_tclh+set}" = set; then 6811 echo $ECHO_N "(cached) $ECHO_C" >&6 6812else 6813 6814 # Use the value from --with-tclinclude, if it was given 6815 6816 if test x"${with_tclinclude}" != x ; then 6817 if test -f "${with_tclinclude}/tcl.h" ; then 6818 ac_cv_c_tclh=${with_tclinclude} 6819 else 6820 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory does not contain tcl.h" >&5 6821echo "$as_me: error: ${with_tclinclude} directory does not contain tcl.h" >&2;} 6822 { (exit 1); exit 1; }; } 6823 fi 6824 else 6825 list="" 6826 if test "`uname -s`" = "Darwin"; then 6827 # If Tcl was built as a framework, attempt to use 6828 # the framework's Headers directory 6829 case ${TCL_DEFS} in 6830 *TCL_FRAMEWORK*) 6831 list="`ls -d ${TCL_BIN_DIR}/Headers 2>/dev/null`" 6832 ;; 6833 esac 6834 fi 6835 6836 # Look in the source dir only if Tcl is not installed, 6837 # and in that situation, look there before installed locations. 6838 if test -f "${TCL_BIN_DIR}/Makefile" ; then 6839 list="$list `ls -d ${TCL_SRC_DIR}/generic 2>/dev/null`" 6840 fi 6841 6842 # Check order: pkg --prefix location, Tcl's --prefix location, 6843 # relative to directory of tclConfig.sh. 6844 6845 eval "temp_includedir=${includedir}" 6846 list="$list \ 6847 `ls -d ${temp_includedir} 2>/dev/null` \ 6848 `ls -d ${TCL_PREFIX}/include 2>/dev/null` \ 6849 `ls -d ${TCL_BIN_DIR}/../include 2>/dev/null`" 6850 if test "${TEA_PLATFORM}" != "windows" -o "$GCC" = "yes"; then 6851 list="$list /usr/local/include /usr/include" 6852 if test x"${TCL_INCLUDE_SPEC}" != x ; then 6853 d=`echo "${TCL_INCLUDE_SPEC}" | sed -e 's/^-I//'` 6854 list="$list `ls -d ${d} 2>/dev/null`" 6855 fi 6856 fi 6857 for i in $list ; do 6858 if test -f "$i/tcl.h" ; then 6859 ac_cv_c_tclh=$i 6860 break 6861 fi 6862 done 6863 fi 6864 6865fi 6866 6867 6868 # Print a message based on how we determined the include path 6869 6870 if test x"${ac_cv_c_tclh}" = x ; then 6871 { { echo "$as_me:$LINENO: error: tcl.h not found. Please specify its location with --with-tclinclude" >&5 6872echo "$as_me: error: tcl.h not found. Please specify its location with --with-tclinclude" >&2;} 6873 { (exit 1); exit 1; }; } 6874 else 6875 { echo "$as_me:$LINENO: result: ${ac_cv_c_tclh}" >&5 6876echo "${ECHO_T}${ac_cv_c_tclh}" >&6; } 6877 fi 6878 6879 # Convert to a native path and substitute into the output files. 6880 6881 INCLUDE_DIR_NATIVE=`${CYGPATH} ${ac_cv_c_tclh}` 6882 6883 TCL_INCLUDES=-I\"${INCLUDE_DIR_NATIVE}\" 6884 6885 6886 6887 6888 # Allow for --with-tclinclude to take effect and define ${ac_cv_c_tclh} 6889 6890 { echo "$as_me:$LINENO: checking for Tcl private include files" >&5 6891echo $ECHO_N "checking for Tcl private include files... $ECHO_C" >&6; } 6892 6893 TCL_SRC_DIR_NATIVE=`${CYGPATH} ${TCL_SRC_DIR}` 6894 TCL_TOP_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}\" 6895 6896 # Check to see if tcl<Plat>Port.h isn't already with the public headers 6897 # Don't look for tclInt.h because that resides with tcl.h in the core 6898 # sources, but the <plat>Port headers are in a different directory 6899 if test "${TEA_PLATFORM}" = "windows" -a \ 6900 -f "${ac_cv_c_tclh}/tclWinPort.h"; then 6901 result="private headers found with public headers" 6902 elif test "${TEA_PLATFORM}" = "unix" -a \ 6903 -f "${ac_cv_c_tclh}/tclUnixPort.h"; then 6904 result="private headers found with public headers" 6905 else 6906 TCL_GENERIC_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/generic\" 6907 if test "${TEA_PLATFORM}" = "windows"; then 6908 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/win\" 6909 else 6910 TCL_PLATFORM_DIR_NATIVE=\"${TCL_SRC_DIR_NATIVE}/unix\" 6911 fi 6912 # Overwrite the previous TCL_INCLUDES as this should capture both 6913 # public and private headers in the same set. 6914 # We want to ensure these are substituted so as not to require 6915 # any *_NATIVE vars be defined in the Makefile 6916 TCL_INCLUDES="-I${TCL_GENERIC_DIR_NATIVE} -I${TCL_PLATFORM_DIR_NATIVE}" 6917 if test "`uname -s`" = "Darwin"; then 6918 # If Tcl was built as a framework, attempt to use 6919 # the framework's Headers and PrivateHeaders directories 6920 case ${TCL_DEFS} in 6921 *TCL_FRAMEWORK*) 6922 if test -d "${TCL_BIN_DIR}/Headers" -a \ 6923 -d "${TCL_BIN_DIR}/PrivateHeaders"; then 6924 TCL_INCLUDES="-I\"${TCL_BIN_DIR}/Headers\" -I\"${TCL_BIN_DIR}/PrivateHeaders\" ${TCL_INCLUDES}" 6925 else 6926 TCL_INCLUDES="${TCL_INCLUDES} ${TCL_INCLUDE_SPEC} `echo "${TCL_INCLUDE_SPEC}" | sed -e 's/Headers/PrivateHeaders/'`" 6927 fi 6928 ;; 6929 esac 6930 result="Using ${TCL_INCLUDES}" 6931 else 6932 if test ! -f "${TCL_SRC_DIR}/generic/tclInt.h" ; then 6933 { { echo "$as_me:$LINENO: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&5 6934echo "$as_me: error: Cannot find private header tclInt.h in ${TCL_SRC_DIR}" >&2;} 6935 { (exit 1); exit 1; }; } 6936 fi 6937 result="Using srcdir found in tclConfig.sh: ${TCL_SRC_DIR}" 6938 fi 6939 fi 6940 6941 6942 6943 6944 { echo "$as_me:$LINENO: result: ${result}" >&5 6945echo "${ECHO_T}${result}" >&6; } 6946 6947 6948#-------------------------------------------------------------------- 6949# ffidl specific configuration 6950#-------------------------------------------------------------------- 6951 6952 6953# Check whether --with-libffi-include was given. 6954if test "${with_libffi_include+set}" = set; then 6955 withval=$with_libffi_include; with_libffi_include=${withval} 6956fi 6957 6958{ echo "$as_me:$LINENO: checking for directory with ffi.h" >&5 6959echo $ECHO_N "checking for directory with ffi.h... $ECHO_C" >&6; } 6960if test "${tcl_cv_path_ffi_h+set}" = set; then 6961 echo $ECHO_N "(cached) $ECHO_C" >&6 6962else 6963 6964 l="$with_libffi_include $prefix/include $prefix/include/ffi /usr/local/include /usr/local/include/ffi /usr/include /usr/include/ffi" 6965 for d in $l; do if test -r "$d/ffi.h"; then 6966 tcl_cv_path_ffi_h="$d"; break; fi; done 6967fi 6968{ echo "$as_me:$LINENO: result: $tcl_cv_path_ffi_h" >&5 6969echo "${ECHO_T}$tcl_cv_path_ffi_h" >&6; } 6970if test -n "$tcl_cv_path_ffi_h"; then 6971 6972 vars="-I$tcl_cv_path_ffi_h" 6973 for i in $vars; do 6974 PKG_INCLUDES="$PKG_INCLUDES $i" 6975 done 6976 6977 6978else 6979 { { echo "$as_me:$LINENO: error: ffi.h not found!" >&5 6980echo "$as_me: error: ffi.h not found!" >&2;} 6981 { (exit 1); exit 1; }; } 6982fi 6983 6984 6985# Check whether --with-libffi-lib was given. 6986if test "${with_libffi_lib+set}" = set; then 6987 withval=$with_libffi_lib; with_libffi_lib=${withval} 6988fi 6989 6990{ echo "$as_me:$LINENO: checking for directory with libffi library" >&5 6991echo $ECHO_N "checking for directory with libffi library... $ECHO_C" >&6; } 6992if test "${tcl_cv_path_libffi+set}" = set; then 6993 echo $ECHO_N "(cached) $ECHO_C" >&6 6994else 6995 6996 l="$with_libffi_lib $exec_prefix/lib $prefix/lib /usr/local/lib /usr/lib" 6997 for d in $l; do if test -r "$d/libffi.dylib" -o -r "$d/libffi.a"; then 6998 tcl_cv_path_libffi="$d"; break; fi; done 6999fi 7000{ echo "$as_me:$LINENO: result: $tcl_cv_path_libffi" >&5 7001echo "${ECHO_T}$tcl_cv_path_libffi" >&6; } 7002if test "$tcl_cv_path_libffi" != "built-in"; then 7003 7004 vars="-L$tcl_cv_path_libffi -lffi" 7005 for i in $vars; do 7006 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 7007 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 7008 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 7009 fi 7010 PKG_LIBS="$PKG_LIBS $i" 7011 done 7012 7013 7014else 7015 { { echo "$as_me:$LINENO: error: libffi not found!" >&5 7016echo "$as_me: error: libffi not found!" >&2;} 7017 { (exit 1); exit 1; }; } 7018fi 7019 7020{ echo "$as_me:$LINENO: checking whether to implement callbacks" >&5 7021echo $ECHO_N "checking whether to implement callbacks... $ECHO_C" >&6; } 7022# Check whether --enable-callbacks was given. 7023if test "${enable_callbacks+set}" = set; then 7024 enableval=$enable_callbacks; tcl_ok=$enableval 7025else 7026 tcl_ok=yes 7027fi 7028 7029{ echo "$as_me:$LINENO: result: $tcl_ok" >&5 7030echo "${ECHO_T}$tcl_ok" >&6; } 7031if test "$tcl_ok" = "yes"; then 7032 7033cat >>confdefs.h <<\_ACEOF 7034#define USE_CALLBACKS 1 7035_ACEOF 7036 7037fi 7038 7039{ echo "$as_me:$LINENO: checking whether to build ffidl test functions" >&5 7040echo $ECHO_N "checking whether to build ffidl test functions... $ECHO_C" >&6; } 7041# Check whether --enable-test was given. 7042if test "${enable_test+set}" = set; then 7043 enableval=$enable_test; tcl_ok=$enableval 7044else 7045 tcl_ok=no 7046fi 7047 7048{ echo "$as_me:$LINENO: result: $tcl_ok" >&5 7049echo "${ECHO_T}$tcl_ok" >&6; } 7050if test "$tcl_ok" = "yes"; then 7051 7052 vars="ffidl_test.c" 7053 for i in $vars; do 7054 case $i in 7055 \$*) 7056 # allow $-var names 7057 PKG_SOURCES="$PKG_SOURCES $i" 7058 PKG_OBJECTS="$PKG_OBJECTS $i" 7059 ;; 7060 *) 7061 # check for existence - allows for generic/win/unix VPATH 7062 # To add more dirs here (like 'src'), you have to update VPATH 7063 # in Makefile.in as well 7064 if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ 7065 -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ 7066 -a ! -f "${srcdir}/macosx/$i" \ 7067 ; then 7068 { { echo "$as_me:$LINENO: error: could not find source file '$i'" >&5 7069echo "$as_me: error: could not find source file '$i'" >&2;} 7070 { (exit 1); exit 1; }; } 7071 fi 7072 PKG_SOURCES="$PKG_SOURCES $i" 7073 # this assumes it is in a VPATH dir 7074 i=`basename $i` 7075 # handle user calling this before or after TEA_SETUP_COMPILER 7076 if test x"${OBJEXT}" != x ; then 7077 j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" 7078 else 7079 j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" 7080 fi 7081 PKG_OBJECTS="$PKG_OBJECTS $j" 7082 ;; 7083 esac 7084 done 7085 7086 7087 7088 FFIDL_TEST=1 7089fi 7090 7091 7092 7093{ echo "$as_me:$LINENO: checking whether char is unsigned" >&5 7094echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; } 7095if test "${ac_cv_c_char_unsigned+set}" = set; then 7096 echo $ECHO_N "(cached) $ECHO_C" >&6 7097else 7098 cat >conftest.$ac_ext <<_ACEOF 7099/* confdefs.h. */ 7100_ACEOF 7101cat confdefs.h >>conftest.$ac_ext 7102cat >>conftest.$ac_ext <<_ACEOF 7103/* end confdefs.h. */ 7104$ac_includes_default 7105int 7106main () 7107{ 7108static int test_array [1 - 2 * !(((char) -1) < 0)]; 7109test_array [0] = 0 7110 7111 ; 7112 return 0; 7113} 7114_ACEOF 7115rm -f conftest.$ac_objext 7116if { (ac_try="$ac_compile" 7117case "(($ac_try" in 7118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7119 *) ac_try_echo=$ac_try;; 7120esac 7121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7122 (eval "$ac_compile") 2>conftest.er1 7123 ac_status=$? 7124 grep -v '^ *+' conftest.er1 >conftest.err 7125 rm -f conftest.er1 7126 cat conftest.err >&5 7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7128 (exit $ac_status); } && { 7129 test -z "$ac_c_werror_flag" || 7130 test ! -s conftest.err 7131 } && test -s conftest.$ac_objext; then 7132 ac_cv_c_char_unsigned=no 7133else 7134 echo "$as_me: failed program was:" >&5 7135sed 's/^/| /' conftest.$ac_ext >&5 7136 7137 ac_cv_c_char_unsigned=yes 7138fi 7139 7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7141fi 7142{ echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 7143echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; } 7144if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 7145 cat >>confdefs.h <<\_ACEOF 7146#define __CHAR_UNSIGNED__ 1 7147_ACEOF 7148 7149fi 7150 7151{ echo "$as_me:$LINENO: checking for char" >&5 7152echo $ECHO_N "checking for char... $ECHO_C" >&6; } 7153if test "${ac_cv_type_char+set}" = set; then 7154 echo $ECHO_N "(cached) $ECHO_C" >&6 7155else 7156 cat >conftest.$ac_ext <<_ACEOF 7157/* confdefs.h. */ 7158_ACEOF 7159cat confdefs.h >>conftest.$ac_ext 7160cat >>conftest.$ac_ext <<_ACEOF 7161/* end confdefs.h. */ 7162$ac_includes_default 7163typedef char ac__type_new_; 7164int 7165main () 7166{ 7167if ((ac__type_new_ *) 0) 7168 return 0; 7169if (sizeof (ac__type_new_)) 7170 return 0; 7171 ; 7172 return 0; 7173} 7174_ACEOF 7175rm -f conftest.$ac_objext 7176if { (ac_try="$ac_compile" 7177case "(($ac_try" in 7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7179 *) ac_try_echo=$ac_try;; 7180esac 7181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7182 (eval "$ac_compile") 2>conftest.er1 7183 ac_status=$? 7184 grep -v '^ *+' conftest.er1 >conftest.err 7185 rm -f conftest.er1 7186 cat conftest.err >&5 7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7188 (exit $ac_status); } && { 7189 test -z "$ac_c_werror_flag" || 7190 test ! -s conftest.err 7191 } && test -s conftest.$ac_objext; then 7192 ac_cv_type_char=yes 7193else 7194 echo "$as_me: failed program was:" >&5 7195sed 's/^/| /' conftest.$ac_ext >&5 7196 7197 ac_cv_type_char=no 7198fi 7199 7200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7201fi 7202{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 7203echo "${ECHO_T}$ac_cv_type_char" >&6; } 7204 7205# The cast to long int works around a bug in the HP C Compiler 7206# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7207# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7208# This bug is HP SR number 8606223364. 7209{ echo "$as_me:$LINENO: checking size of char" >&5 7210echo $ECHO_N "checking size of char... $ECHO_C" >&6; } 7211if test "${ac_cv_sizeof_char+set}" = set; then 7212 echo $ECHO_N "(cached) $ECHO_C" >&6 7213else 7214 if test "$cross_compiling" = yes; then 7215 # Depending upon the size, compute the lo and hi bounds. 7216cat >conftest.$ac_ext <<_ACEOF 7217/* confdefs.h. */ 7218_ACEOF 7219cat confdefs.h >>conftest.$ac_ext 7220cat >>conftest.$ac_ext <<_ACEOF 7221/* end confdefs.h. */ 7222$ac_includes_default 7223 typedef char ac__type_sizeof_; 7224int 7225main () 7226{ 7227static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7228test_array [0] = 0 7229 7230 ; 7231 return 0; 7232} 7233_ACEOF 7234rm -f conftest.$ac_objext 7235if { (ac_try="$ac_compile" 7236case "(($ac_try" in 7237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7238 *) ac_try_echo=$ac_try;; 7239esac 7240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7241 (eval "$ac_compile") 2>conftest.er1 7242 ac_status=$? 7243 grep -v '^ *+' conftest.er1 >conftest.err 7244 rm -f conftest.er1 7245 cat conftest.err >&5 7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7247 (exit $ac_status); } && { 7248 test -z "$ac_c_werror_flag" || 7249 test ! -s conftest.err 7250 } && test -s conftest.$ac_objext; then 7251 ac_lo=0 ac_mid=0 7252 while :; do 7253 cat >conftest.$ac_ext <<_ACEOF 7254/* confdefs.h. */ 7255_ACEOF 7256cat confdefs.h >>conftest.$ac_ext 7257cat >>conftest.$ac_ext <<_ACEOF 7258/* end confdefs.h. */ 7259$ac_includes_default 7260 typedef char ac__type_sizeof_; 7261int 7262main () 7263{ 7264static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7265test_array [0] = 0 7266 7267 ; 7268 return 0; 7269} 7270_ACEOF 7271rm -f conftest.$ac_objext 7272if { (ac_try="$ac_compile" 7273case "(($ac_try" in 7274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7275 *) ac_try_echo=$ac_try;; 7276esac 7277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7278 (eval "$ac_compile") 2>conftest.er1 7279 ac_status=$? 7280 grep -v '^ *+' conftest.er1 >conftest.err 7281 rm -f conftest.er1 7282 cat conftest.err >&5 7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7284 (exit $ac_status); } && { 7285 test -z "$ac_c_werror_flag" || 7286 test ! -s conftest.err 7287 } && test -s conftest.$ac_objext; then 7288 ac_hi=$ac_mid; break 7289else 7290 echo "$as_me: failed program was:" >&5 7291sed 's/^/| /' conftest.$ac_ext >&5 7292 7293 ac_lo=`expr $ac_mid + 1` 7294 if test $ac_lo -le $ac_mid; then 7295 ac_lo= ac_hi= 7296 break 7297 fi 7298 ac_mid=`expr 2 '*' $ac_mid + 1` 7299fi 7300 7301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7302 done 7303else 7304 echo "$as_me: failed program was:" >&5 7305sed 's/^/| /' conftest.$ac_ext >&5 7306 7307 cat >conftest.$ac_ext <<_ACEOF 7308/* confdefs.h. */ 7309_ACEOF 7310cat confdefs.h >>conftest.$ac_ext 7311cat >>conftest.$ac_ext <<_ACEOF 7312/* end confdefs.h. */ 7313$ac_includes_default 7314 typedef char ac__type_sizeof_; 7315int 7316main () 7317{ 7318static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 7319test_array [0] = 0 7320 7321 ; 7322 return 0; 7323} 7324_ACEOF 7325rm -f conftest.$ac_objext 7326if { (ac_try="$ac_compile" 7327case "(($ac_try" in 7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7329 *) ac_try_echo=$ac_try;; 7330esac 7331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7332 (eval "$ac_compile") 2>conftest.er1 7333 ac_status=$? 7334 grep -v '^ *+' conftest.er1 >conftest.err 7335 rm -f conftest.er1 7336 cat conftest.err >&5 7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7338 (exit $ac_status); } && { 7339 test -z "$ac_c_werror_flag" || 7340 test ! -s conftest.err 7341 } && test -s conftest.$ac_objext; then 7342 ac_hi=-1 ac_mid=-1 7343 while :; do 7344 cat >conftest.$ac_ext <<_ACEOF 7345/* confdefs.h. */ 7346_ACEOF 7347cat confdefs.h >>conftest.$ac_ext 7348cat >>conftest.$ac_ext <<_ACEOF 7349/* end confdefs.h. */ 7350$ac_includes_default 7351 typedef char ac__type_sizeof_; 7352int 7353main () 7354{ 7355static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7356test_array [0] = 0 7357 7358 ; 7359 return 0; 7360} 7361_ACEOF 7362rm -f conftest.$ac_objext 7363if { (ac_try="$ac_compile" 7364case "(($ac_try" in 7365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7366 *) ac_try_echo=$ac_try;; 7367esac 7368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7369 (eval "$ac_compile") 2>conftest.er1 7370 ac_status=$? 7371 grep -v '^ *+' conftest.er1 >conftest.err 7372 rm -f conftest.er1 7373 cat conftest.err >&5 7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7375 (exit $ac_status); } && { 7376 test -z "$ac_c_werror_flag" || 7377 test ! -s conftest.err 7378 } && test -s conftest.$ac_objext; then 7379 ac_lo=$ac_mid; break 7380else 7381 echo "$as_me: failed program was:" >&5 7382sed 's/^/| /' conftest.$ac_ext >&5 7383 7384 ac_hi=`expr '(' $ac_mid ')' - 1` 7385 if test $ac_mid -le $ac_hi; then 7386 ac_lo= ac_hi= 7387 break 7388 fi 7389 ac_mid=`expr 2 '*' $ac_mid` 7390fi 7391 7392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7393 done 7394else 7395 echo "$as_me: failed program was:" >&5 7396sed 's/^/| /' conftest.$ac_ext >&5 7397 7398 ac_lo= ac_hi= 7399fi 7400 7401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7402fi 7403 7404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7405# Binary search between lo and hi bounds. 7406while test "x$ac_lo" != "x$ac_hi"; do 7407 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7408 cat >conftest.$ac_ext <<_ACEOF 7409/* confdefs.h. */ 7410_ACEOF 7411cat confdefs.h >>conftest.$ac_ext 7412cat >>conftest.$ac_ext <<_ACEOF 7413/* end confdefs.h. */ 7414$ac_includes_default 7415 typedef char ac__type_sizeof_; 7416int 7417main () 7418{ 7419static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7420test_array [0] = 0 7421 7422 ; 7423 return 0; 7424} 7425_ACEOF 7426rm -f conftest.$ac_objext 7427if { (ac_try="$ac_compile" 7428case "(($ac_try" in 7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7430 *) ac_try_echo=$ac_try;; 7431esac 7432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7433 (eval "$ac_compile") 2>conftest.er1 7434 ac_status=$? 7435 grep -v '^ *+' conftest.er1 >conftest.err 7436 rm -f conftest.er1 7437 cat conftest.err >&5 7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7439 (exit $ac_status); } && { 7440 test -z "$ac_c_werror_flag" || 7441 test ! -s conftest.err 7442 } && test -s conftest.$ac_objext; then 7443 ac_hi=$ac_mid 7444else 7445 echo "$as_me: failed program was:" >&5 7446sed 's/^/| /' conftest.$ac_ext >&5 7447 7448 ac_lo=`expr '(' $ac_mid ')' + 1` 7449fi 7450 7451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7452done 7453case $ac_lo in 7454?*) ac_cv_sizeof_char=$ac_lo;; 7455'') if test "$ac_cv_type_char" = yes; then 7456 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 7457See \`config.log' for more details." >&5 7458echo "$as_me: error: cannot compute sizeof (char) 7459See \`config.log' for more details." >&2;} 7460 { (exit 77); exit 77; }; } 7461 else 7462 ac_cv_sizeof_char=0 7463 fi ;; 7464esac 7465else 7466 cat >conftest.$ac_ext <<_ACEOF 7467/* confdefs.h. */ 7468_ACEOF 7469cat confdefs.h >>conftest.$ac_ext 7470cat >>conftest.$ac_ext <<_ACEOF 7471/* end confdefs.h. */ 7472$ac_includes_default 7473 typedef char ac__type_sizeof_; 7474static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 7475static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 7476#include <stdio.h> 7477#include <stdlib.h> 7478int 7479main () 7480{ 7481 7482 FILE *f = fopen ("conftest.val", "w"); 7483 if (! f) 7484 return 1; 7485 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 7486 { 7487 long int i = longval (); 7488 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7489 return 1; 7490 fprintf (f, "%ld\n", i); 7491 } 7492 else 7493 { 7494 unsigned long int i = ulongval (); 7495 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7496 return 1; 7497 fprintf (f, "%lu\n", i); 7498 } 7499 return ferror (f) || fclose (f) != 0; 7500 7501 ; 7502 return 0; 7503} 7504_ACEOF 7505rm -f conftest$ac_exeext 7506if { (ac_try="$ac_link" 7507case "(($ac_try" in 7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7509 *) ac_try_echo=$ac_try;; 7510esac 7511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7512 (eval "$ac_link") 2>&5 7513 ac_status=$? 7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7515 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7516 { (case "(($ac_try" in 7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7518 *) ac_try_echo=$ac_try;; 7519esac 7520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7521 (eval "$ac_try") 2>&5 7522 ac_status=$? 7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7524 (exit $ac_status); }; }; then 7525 ac_cv_sizeof_char=`cat conftest.val` 7526else 7527 echo "$as_me: program exited with status $ac_status" >&5 7528echo "$as_me: failed program was:" >&5 7529sed 's/^/| /' conftest.$ac_ext >&5 7530 7531( exit $ac_status ) 7532if test "$ac_cv_type_char" = yes; then 7533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char) 7534See \`config.log' for more details." >&5 7535echo "$as_me: error: cannot compute sizeof (char) 7536See \`config.log' for more details." >&2;} 7537 { (exit 77); exit 77; }; } 7538 else 7539 ac_cv_sizeof_char=0 7540 fi 7541fi 7542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7543fi 7544rm -f conftest.val 7545fi 7546{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 7547echo "${ECHO_T}$ac_cv_sizeof_char" >&6; } 7548 7549 7550 7551cat >>confdefs.h <<_ACEOF 7552#define SIZEOF_CHAR $ac_cv_sizeof_char 7553_ACEOF 7554 7555 7556{ echo "$as_me:$LINENO: checking for char" >&5 7557echo $ECHO_N "checking for char... $ECHO_C" >&6; } 7558if test "${ac_cv_type_char+set}" = set; then 7559 echo $ECHO_N "(cached) $ECHO_C" >&6 7560else 7561 cat >conftest.$ac_ext <<_ACEOF 7562/* confdefs.h. */ 7563_ACEOF 7564cat confdefs.h >>conftest.$ac_ext 7565cat >>conftest.$ac_ext <<_ACEOF 7566/* end confdefs.h. */ 7567$ac_includes_default 7568typedef char ac__type_new_; 7569int 7570main () 7571{ 7572if ((ac__type_new_ *) 0) 7573 return 0; 7574if (sizeof (ac__type_new_)) 7575 return 0; 7576 ; 7577 return 0; 7578} 7579_ACEOF 7580rm -f conftest.$ac_objext 7581if { (ac_try="$ac_compile" 7582case "(($ac_try" in 7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7584 *) ac_try_echo=$ac_try;; 7585esac 7586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7587 (eval "$ac_compile") 2>conftest.er1 7588 ac_status=$? 7589 grep -v '^ *+' conftest.er1 >conftest.err 7590 rm -f conftest.er1 7591 cat conftest.err >&5 7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7593 (exit $ac_status); } && { 7594 test -z "$ac_c_werror_flag" || 7595 test ! -s conftest.err 7596 } && test -s conftest.$ac_objext; then 7597 ac_cv_type_char=yes 7598else 7599 echo "$as_me: failed program was:" >&5 7600sed 's/^/| /' conftest.$ac_ext >&5 7601 7602 ac_cv_type_char=no 7603fi 7604 7605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7606fi 7607{ echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 7608echo "${ECHO_T}$ac_cv_type_char" >&6; } 7609 7610# The cast to long int works around a bug in the HP C Compiler, 7611# see AC_CHECK_SIZEOF for more information. 7612{ echo "$as_me:$LINENO: checking alignment of char" >&5 7613echo $ECHO_N "checking alignment of char... $ECHO_C" >&6; } 7614if test "${ac_cv_alignof_char+set}" = set; then 7615 echo $ECHO_N "(cached) $ECHO_C" >&6 7616else 7617 if test "$cross_compiling" = yes; then 7618 # Depending upon the size, compute the lo and hi bounds. 7619cat >conftest.$ac_ext <<_ACEOF 7620/* confdefs.h. */ 7621_ACEOF 7622cat confdefs.h >>conftest.$ac_ext 7623cat >>conftest.$ac_ext <<_ACEOF 7624/* end confdefs.h. */ 7625$ac_includes_default 7626#ifndef offsetof 7627# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 7628#endif 7629typedef struct { char x; char y; } ac__type_alignof_; 7630int 7631main () 7632{ 7633static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; 7634test_array [0] = 0 7635 7636 ; 7637 return 0; 7638} 7639_ACEOF 7640rm -f conftest.$ac_objext 7641if { (ac_try="$ac_compile" 7642case "(($ac_try" in 7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7644 *) ac_try_echo=$ac_try;; 7645esac 7646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7647 (eval "$ac_compile") 2>conftest.er1 7648 ac_status=$? 7649 grep -v '^ *+' conftest.er1 >conftest.err 7650 rm -f conftest.er1 7651 cat conftest.err >&5 7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7653 (exit $ac_status); } && { 7654 test -z "$ac_c_werror_flag" || 7655 test ! -s conftest.err 7656 } && test -s conftest.$ac_objext; then 7657 ac_lo=0 ac_mid=0 7658 while :; do 7659 cat >conftest.$ac_ext <<_ACEOF 7660/* confdefs.h. */ 7661_ACEOF 7662cat confdefs.h >>conftest.$ac_ext 7663cat >>conftest.$ac_ext <<_ACEOF 7664/* end confdefs.h. */ 7665$ac_includes_default 7666#ifndef offsetof 7667# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 7668#endif 7669typedef struct { char x; char y; } ac__type_alignof_; 7670int 7671main () 7672{ 7673static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 7674test_array [0] = 0 7675 7676 ; 7677 return 0; 7678} 7679_ACEOF 7680rm -f conftest.$ac_objext 7681if { (ac_try="$ac_compile" 7682case "(($ac_try" in 7683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7684 *) ac_try_echo=$ac_try;; 7685esac 7686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7687 (eval "$ac_compile") 2>conftest.er1 7688 ac_status=$? 7689 grep -v '^ *+' conftest.er1 >conftest.err 7690 rm -f conftest.er1 7691 cat conftest.err >&5 7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7693 (exit $ac_status); } && { 7694 test -z "$ac_c_werror_flag" || 7695 test ! -s conftest.err 7696 } && test -s conftest.$ac_objext; then 7697 ac_hi=$ac_mid; break 7698else 7699 echo "$as_me: failed program was:" >&5 7700sed 's/^/| /' conftest.$ac_ext >&5 7701 7702 ac_lo=`expr $ac_mid + 1` 7703 if test $ac_lo -le $ac_mid; then 7704 ac_lo= ac_hi= 7705 break 7706 fi 7707 ac_mid=`expr 2 '*' $ac_mid + 1` 7708fi 7709 7710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7711 done 7712else 7713 echo "$as_me: failed program was:" >&5 7714sed 's/^/| /' conftest.$ac_ext >&5 7715 7716 cat >conftest.$ac_ext <<_ACEOF 7717/* confdefs.h. */ 7718_ACEOF 7719cat confdefs.h >>conftest.$ac_ext 7720cat >>conftest.$ac_ext <<_ACEOF 7721/* end confdefs.h. */ 7722$ac_includes_default 7723#ifndef offsetof 7724# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 7725#endif 7726typedef struct { char x; char y; } ac__type_alignof_; 7727int 7728main () 7729{ 7730static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)]; 7731test_array [0] = 0 7732 7733 ; 7734 return 0; 7735} 7736_ACEOF 7737rm -f conftest.$ac_objext 7738if { (ac_try="$ac_compile" 7739case "(($ac_try" in 7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7741 *) ac_try_echo=$ac_try;; 7742esac 7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7744 (eval "$ac_compile") 2>conftest.er1 7745 ac_status=$? 7746 grep -v '^ *+' conftest.er1 >conftest.err 7747 rm -f conftest.er1 7748 cat conftest.err >&5 7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7750 (exit $ac_status); } && { 7751 test -z "$ac_c_werror_flag" || 7752 test ! -s conftest.err 7753 } && test -s conftest.$ac_objext; then 7754 ac_hi=-1 ac_mid=-1 7755 while :; do 7756 cat >conftest.$ac_ext <<_ACEOF 7757/* confdefs.h. */ 7758_ACEOF 7759cat confdefs.h >>conftest.$ac_ext 7760cat >>conftest.$ac_ext <<_ACEOF 7761/* end confdefs.h. */ 7762$ac_includes_default 7763#ifndef offsetof 7764# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 7765#endif 7766typedef struct { char x; char y; } ac__type_alignof_; 7767int 7768main () 7769{ 7770static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)]; 7771test_array [0] = 0 7772 7773 ; 7774 return 0; 7775} 7776_ACEOF 7777rm -f conftest.$ac_objext 7778if { (ac_try="$ac_compile" 7779case "(($ac_try" in 7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7781 *) ac_try_echo=$ac_try;; 7782esac 7783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7784 (eval "$ac_compile") 2>conftest.er1 7785 ac_status=$? 7786 grep -v '^ *+' conftest.er1 >conftest.err 7787 rm -f conftest.er1 7788 cat conftest.err >&5 7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7790 (exit $ac_status); } && { 7791 test -z "$ac_c_werror_flag" || 7792 test ! -s conftest.err 7793 } && test -s conftest.$ac_objext; then 7794 ac_lo=$ac_mid; break 7795else 7796 echo "$as_me: failed program was:" >&5 7797sed 's/^/| /' conftest.$ac_ext >&5 7798 7799 ac_hi=`expr '(' $ac_mid ')' - 1` 7800 if test $ac_mid -le $ac_hi; then 7801 ac_lo= ac_hi= 7802 break 7803 fi 7804 ac_mid=`expr 2 '*' $ac_mid` 7805fi 7806 7807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7808 done 7809else 7810 echo "$as_me: failed program was:" >&5 7811sed 's/^/| /' conftest.$ac_ext >&5 7812 7813 ac_lo= ac_hi= 7814fi 7815 7816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7817fi 7818 7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7820# Binary search between lo and hi bounds. 7821while test "x$ac_lo" != "x$ac_hi"; do 7822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7823 cat >conftest.$ac_ext <<_ACEOF 7824/* confdefs.h. */ 7825_ACEOF 7826cat confdefs.h >>conftest.$ac_ext 7827cat >>conftest.$ac_ext <<_ACEOF 7828/* end confdefs.h. */ 7829$ac_includes_default 7830#ifndef offsetof 7831# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 7832#endif 7833typedef struct { char x; char y; } ac__type_alignof_; 7834int 7835main () 7836{ 7837static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 7838test_array [0] = 0 7839 7840 ; 7841 return 0; 7842} 7843_ACEOF 7844rm -f conftest.$ac_objext 7845if { (ac_try="$ac_compile" 7846case "(($ac_try" in 7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7848 *) ac_try_echo=$ac_try;; 7849esac 7850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7851 (eval "$ac_compile") 2>conftest.er1 7852 ac_status=$? 7853 grep -v '^ *+' conftest.er1 >conftest.err 7854 rm -f conftest.er1 7855 cat conftest.err >&5 7856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7857 (exit $ac_status); } && { 7858 test -z "$ac_c_werror_flag" || 7859 test ! -s conftest.err 7860 } && test -s conftest.$ac_objext; then 7861 ac_hi=$ac_mid 7862else 7863 echo "$as_me: failed program was:" >&5 7864sed 's/^/| /' conftest.$ac_ext >&5 7865 7866 ac_lo=`expr '(' $ac_mid ')' + 1` 7867fi 7868 7869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7870done 7871case $ac_lo in 7872?*) ac_cv_alignof_char=$ac_lo;; 7873'') if test "$ac_cv_type_char" = yes; then 7874 { { echo "$as_me:$LINENO: error: cannot compute alignment of char 7875See \`config.log' for more details." >&5 7876echo "$as_me: error: cannot compute alignment of char 7877See \`config.log' for more details." >&2;} 7878 { (exit 77); exit 77; }; } 7879 else 7880 ac_cv_alignof_char=0 7881 fi ;; 7882esac 7883else 7884 cat >conftest.$ac_ext <<_ACEOF 7885/* confdefs.h. */ 7886_ACEOF 7887cat confdefs.h >>conftest.$ac_ext 7888cat >>conftest.$ac_ext <<_ACEOF 7889/* end confdefs.h. */ 7890$ac_includes_default 7891#ifndef offsetof 7892# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 7893#endif 7894typedef struct { char x; char y; } ac__type_alignof_; 7895static long int longval () { return (long int) offsetof (ac__type_alignof_, y); } 7896static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); } 7897#include <stdio.h> 7898#include <stdlib.h> 7899int 7900main () 7901{ 7902 7903 FILE *f = fopen ("conftest.val", "w"); 7904 if (! f) 7905 return 1; 7906 if (((long int) offsetof (ac__type_alignof_, y)) < 0) 7907 { 7908 long int i = longval (); 7909 if (i != ((long int) offsetof (ac__type_alignof_, y))) 7910 return 1; 7911 fprintf (f, "%ld\n", i); 7912 } 7913 else 7914 { 7915 unsigned long int i = ulongval (); 7916 if (i != ((long int) offsetof (ac__type_alignof_, y))) 7917 return 1; 7918 fprintf (f, "%lu\n", i); 7919 } 7920 return ferror (f) || fclose (f) != 0; 7921 7922 ; 7923 return 0; 7924} 7925_ACEOF 7926rm -f conftest$ac_exeext 7927if { (ac_try="$ac_link" 7928case "(($ac_try" in 7929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7930 *) ac_try_echo=$ac_try;; 7931esac 7932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7933 (eval "$ac_link") 2>&5 7934 ac_status=$? 7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7937 { (case "(($ac_try" in 7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7939 *) ac_try_echo=$ac_try;; 7940esac 7941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7942 (eval "$ac_try") 2>&5 7943 ac_status=$? 7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7945 (exit $ac_status); }; }; then 7946 ac_cv_alignof_char=`cat conftest.val` 7947else 7948 echo "$as_me: program exited with status $ac_status" >&5 7949echo "$as_me: failed program was:" >&5 7950sed 's/^/| /' conftest.$ac_ext >&5 7951 7952( exit $ac_status ) 7953if test "$ac_cv_type_char" = yes; then 7954 { { echo "$as_me:$LINENO: error: cannot compute alignment of char 7955See \`config.log' for more details." >&5 7956echo "$as_me: error: cannot compute alignment of char 7957See \`config.log' for more details." >&2;} 7958 { (exit 77); exit 77; }; } 7959 else 7960 ac_cv_alignof_char=0 7961 fi 7962fi 7963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7964fi 7965rm -f conftest.val 7966fi 7967{ echo "$as_me:$LINENO: result: $ac_cv_alignof_char" >&5 7968echo "${ECHO_T}$ac_cv_alignof_char" >&6; } 7969 7970 7971 7972cat >>confdefs.h <<_ACEOF 7973#define ALIGNOF_CHAR $ac_cv_alignof_char 7974_ACEOF 7975 7976 7977{ echo "$as_me:$LINENO: checking for short" >&5 7978echo $ECHO_N "checking for short... $ECHO_C" >&6; } 7979if test "${ac_cv_type_short+set}" = set; then 7980 echo $ECHO_N "(cached) $ECHO_C" >&6 7981else 7982 cat >conftest.$ac_ext <<_ACEOF 7983/* confdefs.h. */ 7984_ACEOF 7985cat confdefs.h >>conftest.$ac_ext 7986cat >>conftest.$ac_ext <<_ACEOF 7987/* end confdefs.h. */ 7988$ac_includes_default 7989typedef short ac__type_new_; 7990int 7991main () 7992{ 7993if ((ac__type_new_ *) 0) 7994 return 0; 7995if (sizeof (ac__type_new_)) 7996 return 0; 7997 ; 7998 return 0; 7999} 8000_ACEOF 8001rm -f conftest.$ac_objext 8002if { (ac_try="$ac_compile" 8003case "(($ac_try" in 8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8005 *) ac_try_echo=$ac_try;; 8006esac 8007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8008 (eval "$ac_compile") 2>conftest.er1 8009 ac_status=$? 8010 grep -v '^ *+' conftest.er1 >conftest.err 8011 rm -f conftest.er1 8012 cat conftest.err >&5 8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8014 (exit $ac_status); } && { 8015 test -z "$ac_c_werror_flag" || 8016 test ! -s conftest.err 8017 } && test -s conftest.$ac_objext; then 8018 ac_cv_type_short=yes 8019else 8020 echo "$as_me: failed program was:" >&5 8021sed 's/^/| /' conftest.$ac_ext >&5 8022 8023 ac_cv_type_short=no 8024fi 8025 8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8027fi 8028{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 8029echo "${ECHO_T}$ac_cv_type_short" >&6; } 8030 8031# The cast to long int works around a bug in the HP C Compiler 8032# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8033# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8034# This bug is HP SR number 8606223364. 8035{ echo "$as_me:$LINENO: checking size of short" >&5 8036echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 8037if test "${ac_cv_sizeof_short+set}" = set; then 8038 echo $ECHO_N "(cached) $ECHO_C" >&6 8039else 8040 if test "$cross_compiling" = yes; then 8041 # Depending upon the size, compute the lo and hi bounds. 8042cat >conftest.$ac_ext <<_ACEOF 8043/* confdefs.h. */ 8044_ACEOF 8045cat confdefs.h >>conftest.$ac_ext 8046cat >>conftest.$ac_ext <<_ACEOF 8047/* end confdefs.h. */ 8048$ac_includes_default 8049 typedef short ac__type_sizeof_; 8050int 8051main () 8052{ 8053static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8054test_array [0] = 0 8055 8056 ; 8057 return 0; 8058} 8059_ACEOF 8060rm -f conftest.$ac_objext 8061if { (ac_try="$ac_compile" 8062case "(($ac_try" in 8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8064 *) ac_try_echo=$ac_try;; 8065esac 8066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8067 (eval "$ac_compile") 2>conftest.er1 8068 ac_status=$? 8069 grep -v '^ *+' conftest.er1 >conftest.err 8070 rm -f conftest.er1 8071 cat conftest.err >&5 8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8073 (exit $ac_status); } && { 8074 test -z "$ac_c_werror_flag" || 8075 test ! -s conftest.err 8076 } && test -s conftest.$ac_objext; then 8077 ac_lo=0 ac_mid=0 8078 while :; do 8079 cat >conftest.$ac_ext <<_ACEOF 8080/* confdefs.h. */ 8081_ACEOF 8082cat confdefs.h >>conftest.$ac_ext 8083cat >>conftest.$ac_ext <<_ACEOF 8084/* end confdefs.h. */ 8085$ac_includes_default 8086 typedef short ac__type_sizeof_; 8087int 8088main () 8089{ 8090static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8091test_array [0] = 0 8092 8093 ; 8094 return 0; 8095} 8096_ACEOF 8097rm -f conftest.$ac_objext 8098if { (ac_try="$ac_compile" 8099case "(($ac_try" in 8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8101 *) ac_try_echo=$ac_try;; 8102esac 8103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8104 (eval "$ac_compile") 2>conftest.er1 8105 ac_status=$? 8106 grep -v '^ *+' conftest.er1 >conftest.err 8107 rm -f conftest.er1 8108 cat conftest.err >&5 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8110 (exit $ac_status); } && { 8111 test -z "$ac_c_werror_flag" || 8112 test ! -s conftest.err 8113 } && test -s conftest.$ac_objext; then 8114 ac_hi=$ac_mid; break 8115else 8116 echo "$as_me: failed program was:" >&5 8117sed 's/^/| /' conftest.$ac_ext >&5 8118 8119 ac_lo=`expr $ac_mid + 1` 8120 if test $ac_lo -le $ac_mid; then 8121 ac_lo= ac_hi= 8122 break 8123 fi 8124 ac_mid=`expr 2 '*' $ac_mid + 1` 8125fi 8126 8127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8128 done 8129else 8130 echo "$as_me: failed program was:" >&5 8131sed 's/^/| /' conftest.$ac_ext >&5 8132 8133 cat >conftest.$ac_ext <<_ACEOF 8134/* confdefs.h. */ 8135_ACEOF 8136cat confdefs.h >>conftest.$ac_ext 8137cat >>conftest.$ac_ext <<_ACEOF 8138/* end confdefs.h. */ 8139$ac_includes_default 8140 typedef short ac__type_sizeof_; 8141int 8142main () 8143{ 8144static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8145test_array [0] = 0 8146 8147 ; 8148 return 0; 8149} 8150_ACEOF 8151rm -f conftest.$ac_objext 8152if { (ac_try="$ac_compile" 8153case "(($ac_try" in 8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8155 *) ac_try_echo=$ac_try;; 8156esac 8157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8158 (eval "$ac_compile") 2>conftest.er1 8159 ac_status=$? 8160 grep -v '^ *+' conftest.er1 >conftest.err 8161 rm -f conftest.er1 8162 cat conftest.err >&5 8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8164 (exit $ac_status); } && { 8165 test -z "$ac_c_werror_flag" || 8166 test ! -s conftest.err 8167 } && test -s conftest.$ac_objext; then 8168 ac_hi=-1 ac_mid=-1 8169 while :; do 8170 cat >conftest.$ac_ext <<_ACEOF 8171/* confdefs.h. */ 8172_ACEOF 8173cat confdefs.h >>conftest.$ac_ext 8174cat >>conftest.$ac_ext <<_ACEOF 8175/* end confdefs.h. */ 8176$ac_includes_default 8177 typedef short ac__type_sizeof_; 8178int 8179main () 8180{ 8181static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 8182test_array [0] = 0 8183 8184 ; 8185 return 0; 8186} 8187_ACEOF 8188rm -f conftest.$ac_objext 8189if { (ac_try="$ac_compile" 8190case "(($ac_try" in 8191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8192 *) ac_try_echo=$ac_try;; 8193esac 8194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8195 (eval "$ac_compile") 2>conftest.er1 8196 ac_status=$? 8197 grep -v '^ *+' conftest.er1 >conftest.err 8198 rm -f conftest.er1 8199 cat conftest.err >&5 8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8201 (exit $ac_status); } && { 8202 test -z "$ac_c_werror_flag" || 8203 test ! -s conftest.err 8204 } && test -s conftest.$ac_objext; then 8205 ac_lo=$ac_mid; break 8206else 8207 echo "$as_me: failed program was:" >&5 8208sed 's/^/| /' conftest.$ac_ext >&5 8209 8210 ac_hi=`expr '(' $ac_mid ')' - 1` 8211 if test $ac_mid -le $ac_hi; then 8212 ac_lo= ac_hi= 8213 break 8214 fi 8215 ac_mid=`expr 2 '*' $ac_mid` 8216fi 8217 8218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8219 done 8220else 8221 echo "$as_me: failed program was:" >&5 8222sed 's/^/| /' conftest.$ac_ext >&5 8223 8224 ac_lo= ac_hi= 8225fi 8226 8227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8228fi 8229 8230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8231# Binary search between lo and hi bounds. 8232while test "x$ac_lo" != "x$ac_hi"; do 8233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8234 cat >conftest.$ac_ext <<_ACEOF 8235/* confdefs.h. */ 8236_ACEOF 8237cat confdefs.h >>conftest.$ac_ext 8238cat >>conftest.$ac_ext <<_ACEOF 8239/* end confdefs.h. */ 8240$ac_includes_default 8241 typedef short ac__type_sizeof_; 8242int 8243main () 8244{ 8245static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8246test_array [0] = 0 8247 8248 ; 8249 return 0; 8250} 8251_ACEOF 8252rm -f conftest.$ac_objext 8253if { (ac_try="$ac_compile" 8254case "(($ac_try" in 8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8256 *) ac_try_echo=$ac_try;; 8257esac 8258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8259 (eval "$ac_compile") 2>conftest.er1 8260 ac_status=$? 8261 grep -v '^ *+' conftest.er1 >conftest.err 8262 rm -f conftest.er1 8263 cat conftest.err >&5 8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8265 (exit $ac_status); } && { 8266 test -z "$ac_c_werror_flag" || 8267 test ! -s conftest.err 8268 } && test -s conftest.$ac_objext; then 8269 ac_hi=$ac_mid 8270else 8271 echo "$as_me: failed program was:" >&5 8272sed 's/^/| /' conftest.$ac_ext >&5 8273 8274 ac_lo=`expr '(' $ac_mid ')' + 1` 8275fi 8276 8277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8278done 8279case $ac_lo in 8280?*) ac_cv_sizeof_short=$ac_lo;; 8281'') if test "$ac_cv_type_short" = yes; then 8282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 8283See \`config.log' for more details." >&5 8284echo "$as_me: error: cannot compute sizeof (short) 8285See \`config.log' for more details." >&2;} 8286 { (exit 77); exit 77; }; } 8287 else 8288 ac_cv_sizeof_short=0 8289 fi ;; 8290esac 8291else 8292 cat >conftest.$ac_ext <<_ACEOF 8293/* confdefs.h. */ 8294_ACEOF 8295cat confdefs.h >>conftest.$ac_ext 8296cat >>conftest.$ac_ext <<_ACEOF 8297/* end confdefs.h. */ 8298$ac_includes_default 8299 typedef short ac__type_sizeof_; 8300static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 8301static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 8302#include <stdio.h> 8303#include <stdlib.h> 8304int 8305main () 8306{ 8307 8308 FILE *f = fopen ("conftest.val", "w"); 8309 if (! f) 8310 return 1; 8311 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 8312 { 8313 long int i = longval (); 8314 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8315 return 1; 8316 fprintf (f, "%ld\n", i); 8317 } 8318 else 8319 { 8320 unsigned long int i = ulongval (); 8321 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8322 return 1; 8323 fprintf (f, "%lu\n", i); 8324 } 8325 return ferror (f) || fclose (f) != 0; 8326 8327 ; 8328 return 0; 8329} 8330_ACEOF 8331rm -f conftest$ac_exeext 8332if { (ac_try="$ac_link" 8333case "(($ac_try" in 8334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8335 *) ac_try_echo=$ac_try;; 8336esac 8337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8338 (eval "$ac_link") 2>&5 8339 ac_status=$? 8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8342 { (case "(($ac_try" in 8343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8344 *) ac_try_echo=$ac_try;; 8345esac 8346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8347 (eval "$ac_try") 2>&5 8348 ac_status=$? 8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8350 (exit $ac_status); }; }; then 8351 ac_cv_sizeof_short=`cat conftest.val` 8352else 8353 echo "$as_me: program exited with status $ac_status" >&5 8354echo "$as_me: failed program was:" >&5 8355sed 's/^/| /' conftest.$ac_ext >&5 8356 8357( exit $ac_status ) 8358if test "$ac_cv_type_short" = yes; then 8359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 8360See \`config.log' for more details." >&5 8361echo "$as_me: error: cannot compute sizeof (short) 8362See \`config.log' for more details." >&2;} 8363 { (exit 77); exit 77; }; } 8364 else 8365 ac_cv_sizeof_short=0 8366 fi 8367fi 8368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8369fi 8370rm -f conftest.val 8371fi 8372{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 8373echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 8374 8375 8376 8377cat >>confdefs.h <<_ACEOF 8378#define SIZEOF_SHORT $ac_cv_sizeof_short 8379_ACEOF 8380 8381 8382{ echo "$as_me:$LINENO: checking for short" >&5 8383echo $ECHO_N "checking for short... $ECHO_C" >&6; } 8384if test "${ac_cv_type_short+set}" = set; then 8385 echo $ECHO_N "(cached) $ECHO_C" >&6 8386else 8387 cat >conftest.$ac_ext <<_ACEOF 8388/* confdefs.h. */ 8389_ACEOF 8390cat confdefs.h >>conftest.$ac_ext 8391cat >>conftest.$ac_ext <<_ACEOF 8392/* end confdefs.h. */ 8393$ac_includes_default 8394typedef short ac__type_new_; 8395int 8396main () 8397{ 8398if ((ac__type_new_ *) 0) 8399 return 0; 8400if (sizeof (ac__type_new_)) 8401 return 0; 8402 ; 8403 return 0; 8404} 8405_ACEOF 8406rm -f conftest.$ac_objext 8407if { (ac_try="$ac_compile" 8408case "(($ac_try" in 8409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8410 *) ac_try_echo=$ac_try;; 8411esac 8412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8413 (eval "$ac_compile") 2>conftest.er1 8414 ac_status=$? 8415 grep -v '^ *+' conftest.er1 >conftest.err 8416 rm -f conftest.er1 8417 cat conftest.err >&5 8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8419 (exit $ac_status); } && { 8420 test -z "$ac_c_werror_flag" || 8421 test ! -s conftest.err 8422 } && test -s conftest.$ac_objext; then 8423 ac_cv_type_short=yes 8424else 8425 echo "$as_me: failed program was:" >&5 8426sed 's/^/| /' conftest.$ac_ext >&5 8427 8428 ac_cv_type_short=no 8429fi 8430 8431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8432fi 8433{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 8434echo "${ECHO_T}$ac_cv_type_short" >&6; } 8435 8436# The cast to long int works around a bug in the HP C Compiler, 8437# see AC_CHECK_SIZEOF for more information. 8438{ echo "$as_me:$LINENO: checking alignment of short" >&5 8439echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; } 8440if test "${ac_cv_alignof_short+set}" = set; then 8441 echo $ECHO_N "(cached) $ECHO_C" >&6 8442else 8443 if test "$cross_compiling" = yes; then 8444 # Depending upon the size, compute the lo and hi bounds. 8445cat >conftest.$ac_ext <<_ACEOF 8446/* confdefs.h. */ 8447_ACEOF 8448cat confdefs.h >>conftest.$ac_ext 8449cat >>conftest.$ac_ext <<_ACEOF 8450/* end confdefs.h. */ 8451$ac_includes_default 8452#ifndef offsetof 8453# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 8454#endif 8455typedef struct { char x; short y; } ac__type_alignof_; 8456int 8457main () 8458{ 8459static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; 8460test_array [0] = 0 8461 8462 ; 8463 return 0; 8464} 8465_ACEOF 8466rm -f conftest.$ac_objext 8467if { (ac_try="$ac_compile" 8468case "(($ac_try" in 8469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8470 *) ac_try_echo=$ac_try;; 8471esac 8472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8473 (eval "$ac_compile") 2>conftest.er1 8474 ac_status=$? 8475 grep -v '^ *+' conftest.er1 >conftest.err 8476 rm -f conftest.er1 8477 cat conftest.err >&5 8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8479 (exit $ac_status); } && { 8480 test -z "$ac_c_werror_flag" || 8481 test ! -s conftest.err 8482 } && test -s conftest.$ac_objext; then 8483 ac_lo=0 ac_mid=0 8484 while :; do 8485 cat >conftest.$ac_ext <<_ACEOF 8486/* confdefs.h. */ 8487_ACEOF 8488cat confdefs.h >>conftest.$ac_ext 8489cat >>conftest.$ac_ext <<_ACEOF 8490/* end confdefs.h. */ 8491$ac_includes_default 8492#ifndef offsetof 8493# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 8494#endif 8495typedef struct { char x; short y; } ac__type_alignof_; 8496int 8497main () 8498{ 8499static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 8500test_array [0] = 0 8501 8502 ; 8503 return 0; 8504} 8505_ACEOF 8506rm -f conftest.$ac_objext 8507if { (ac_try="$ac_compile" 8508case "(($ac_try" in 8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8510 *) ac_try_echo=$ac_try;; 8511esac 8512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8513 (eval "$ac_compile") 2>conftest.er1 8514 ac_status=$? 8515 grep -v '^ *+' conftest.er1 >conftest.err 8516 rm -f conftest.er1 8517 cat conftest.err >&5 8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8519 (exit $ac_status); } && { 8520 test -z "$ac_c_werror_flag" || 8521 test ! -s conftest.err 8522 } && test -s conftest.$ac_objext; then 8523 ac_hi=$ac_mid; break 8524else 8525 echo "$as_me: failed program was:" >&5 8526sed 's/^/| /' conftest.$ac_ext >&5 8527 8528 ac_lo=`expr $ac_mid + 1` 8529 if test $ac_lo -le $ac_mid; then 8530 ac_lo= ac_hi= 8531 break 8532 fi 8533 ac_mid=`expr 2 '*' $ac_mid + 1` 8534fi 8535 8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8537 done 8538else 8539 echo "$as_me: failed program was:" >&5 8540sed 's/^/| /' conftest.$ac_ext >&5 8541 8542 cat >conftest.$ac_ext <<_ACEOF 8543/* confdefs.h. */ 8544_ACEOF 8545cat confdefs.h >>conftest.$ac_ext 8546cat >>conftest.$ac_ext <<_ACEOF 8547/* end confdefs.h. */ 8548$ac_includes_default 8549#ifndef offsetof 8550# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 8551#endif 8552typedef struct { char x; short y; } ac__type_alignof_; 8553int 8554main () 8555{ 8556static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)]; 8557test_array [0] = 0 8558 8559 ; 8560 return 0; 8561} 8562_ACEOF 8563rm -f conftest.$ac_objext 8564if { (ac_try="$ac_compile" 8565case "(($ac_try" in 8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8567 *) ac_try_echo=$ac_try;; 8568esac 8569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8570 (eval "$ac_compile") 2>conftest.er1 8571 ac_status=$? 8572 grep -v '^ *+' conftest.er1 >conftest.err 8573 rm -f conftest.er1 8574 cat conftest.err >&5 8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8576 (exit $ac_status); } && { 8577 test -z "$ac_c_werror_flag" || 8578 test ! -s conftest.err 8579 } && test -s conftest.$ac_objext; then 8580 ac_hi=-1 ac_mid=-1 8581 while :; do 8582 cat >conftest.$ac_ext <<_ACEOF 8583/* confdefs.h. */ 8584_ACEOF 8585cat confdefs.h >>conftest.$ac_ext 8586cat >>conftest.$ac_ext <<_ACEOF 8587/* end confdefs.h. */ 8588$ac_includes_default 8589#ifndef offsetof 8590# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 8591#endif 8592typedef struct { char x; short y; } ac__type_alignof_; 8593int 8594main () 8595{ 8596static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)]; 8597test_array [0] = 0 8598 8599 ; 8600 return 0; 8601} 8602_ACEOF 8603rm -f conftest.$ac_objext 8604if { (ac_try="$ac_compile" 8605case "(($ac_try" in 8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8607 *) ac_try_echo=$ac_try;; 8608esac 8609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8610 (eval "$ac_compile") 2>conftest.er1 8611 ac_status=$? 8612 grep -v '^ *+' conftest.er1 >conftest.err 8613 rm -f conftest.er1 8614 cat conftest.err >&5 8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8616 (exit $ac_status); } && { 8617 test -z "$ac_c_werror_flag" || 8618 test ! -s conftest.err 8619 } && test -s conftest.$ac_objext; then 8620 ac_lo=$ac_mid; break 8621else 8622 echo "$as_me: failed program was:" >&5 8623sed 's/^/| /' conftest.$ac_ext >&5 8624 8625 ac_hi=`expr '(' $ac_mid ')' - 1` 8626 if test $ac_mid -le $ac_hi; then 8627 ac_lo= ac_hi= 8628 break 8629 fi 8630 ac_mid=`expr 2 '*' $ac_mid` 8631fi 8632 8633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8634 done 8635else 8636 echo "$as_me: failed program was:" >&5 8637sed 's/^/| /' conftest.$ac_ext >&5 8638 8639 ac_lo= ac_hi= 8640fi 8641 8642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8643fi 8644 8645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8646# Binary search between lo and hi bounds. 8647while test "x$ac_lo" != "x$ac_hi"; do 8648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8649 cat >conftest.$ac_ext <<_ACEOF 8650/* confdefs.h. */ 8651_ACEOF 8652cat confdefs.h >>conftest.$ac_ext 8653cat >>conftest.$ac_ext <<_ACEOF 8654/* end confdefs.h. */ 8655$ac_includes_default 8656#ifndef offsetof 8657# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 8658#endif 8659typedef struct { char x; short y; } ac__type_alignof_; 8660int 8661main () 8662{ 8663static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 8664test_array [0] = 0 8665 8666 ; 8667 return 0; 8668} 8669_ACEOF 8670rm -f conftest.$ac_objext 8671if { (ac_try="$ac_compile" 8672case "(($ac_try" in 8673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8674 *) ac_try_echo=$ac_try;; 8675esac 8676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8677 (eval "$ac_compile") 2>conftest.er1 8678 ac_status=$? 8679 grep -v '^ *+' conftest.er1 >conftest.err 8680 rm -f conftest.er1 8681 cat conftest.err >&5 8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8683 (exit $ac_status); } && { 8684 test -z "$ac_c_werror_flag" || 8685 test ! -s conftest.err 8686 } && test -s conftest.$ac_objext; then 8687 ac_hi=$ac_mid 8688else 8689 echo "$as_me: failed program was:" >&5 8690sed 's/^/| /' conftest.$ac_ext >&5 8691 8692 ac_lo=`expr '(' $ac_mid ')' + 1` 8693fi 8694 8695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8696done 8697case $ac_lo in 8698?*) ac_cv_alignof_short=$ac_lo;; 8699'') if test "$ac_cv_type_short" = yes; then 8700 { { echo "$as_me:$LINENO: error: cannot compute alignment of short 8701See \`config.log' for more details." >&5 8702echo "$as_me: error: cannot compute alignment of short 8703See \`config.log' for more details." >&2;} 8704 { (exit 77); exit 77; }; } 8705 else 8706 ac_cv_alignof_short=0 8707 fi ;; 8708esac 8709else 8710 cat >conftest.$ac_ext <<_ACEOF 8711/* confdefs.h. */ 8712_ACEOF 8713cat confdefs.h >>conftest.$ac_ext 8714cat >>conftest.$ac_ext <<_ACEOF 8715/* end confdefs.h. */ 8716$ac_includes_default 8717#ifndef offsetof 8718# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 8719#endif 8720typedef struct { char x; short y; } ac__type_alignof_; 8721static long int longval () { return (long int) offsetof (ac__type_alignof_, y); } 8722static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); } 8723#include <stdio.h> 8724#include <stdlib.h> 8725int 8726main () 8727{ 8728 8729 FILE *f = fopen ("conftest.val", "w"); 8730 if (! f) 8731 return 1; 8732 if (((long int) offsetof (ac__type_alignof_, y)) < 0) 8733 { 8734 long int i = longval (); 8735 if (i != ((long int) offsetof (ac__type_alignof_, y))) 8736 return 1; 8737 fprintf (f, "%ld\n", i); 8738 } 8739 else 8740 { 8741 unsigned long int i = ulongval (); 8742 if (i != ((long int) offsetof (ac__type_alignof_, y))) 8743 return 1; 8744 fprintf (f, "%lu\n", i); 8745 } 8746 return ferror (f) || fclose (f) != 0; 8747 8748 ; 8749 return 0; 8750} 8751_ACEOF 8752rm -f conftest$ac_exeext 8753if { (ac_try="$ac_link" 8754case "(($ac_try" in 8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8756 *) ac_try_echo=$ac_try;; 8757esac 8758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8759 (eval "$ac_link") 2>&5 8760 ac_status=$? 8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8762 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8763 { (case "(($ac_try" in 8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8765 *) ac_try_echo=$ac_try;; 8766esac 8767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8768 (eval "$ac_try") 2>&5 8769 ac_status=$? 8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8771 (exit $ac_status); }; }; then 8772 ac_cv_alignof_short=`cat conftest.val` 8773else 8774 echo "$as_me: program exited with status $ac_status" >&5 8775echo "$as_me: failed program was:" >&5 8776sed 's/^/| /' conftest.$ac_ext >&5 8777 8778( exit $ac_status ) 8779if test "$ac_cv_type_short" = yes; then 8780 { { echo "$as_me:$LINENO: error: cannot compute alignment of short 8781See \`config.log' for more details." >&5 8782echo "$as_me: error: cannot compute alignment of short 8783See \`config.log' for more details." >&2;} 8784 { (exit 77); exit 77; }; } 8785 else 8786 ac_cv_alignof_short=0 8787 fi 8788fi 8789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8790fi 8791rm -f conftest.val 8792fi 8793{ echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5 8794echo "${ECHO_T}$ac_cv_alignof_short" >&6; } 8795 8796 8797 8798cat >>confdefs.h <<_ACEOF 8799#define ALIGNOF_SHORT $ac_cv_alignof_short 8800_ACEOF 8801 8802 8803{ echo "$as_me:$LINENO: checking for int" >&5 8804echo $ECHO_N "checking for int... $ECHO_C" >&6; } 8805if test "${ac_cv_type_int+set}" = set; then 8806 echo $ECHO_N "(cached) $ECHO_C" >&6 8807else 8808 cat >conftest.$ac_ext <<_ACEOF 8809/* confdefs.h. */ 8810_ACEOF 8811cat confdefs.h >>conftest.$ac_ext 8812cat >>conftest.$ac_ext <<_ACEOF 8813/* end confdefs.h. */ 8814$ac_includes_default 8815typedef int ac__type_new_; 8816int 8817main () 8818{ 8819if ((ac__type_new_ *) 0) 8820 return 0; 8821if (sizeof (ac__type_new_)) 8822 return 0; 8823 ; 8824 return 0; 8825} 8826_ACEOF 8827rm -f conftest.$ac_objext 8828if { (ac_try="$ac_compile" 8829case "(($ac_try" in 8830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8831 *) ac_try_echo=$ac_try;; 8832esac 8833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8834 (eval "$ac_compile") 2>conftest.er1 8835 ac_status=$? 8836 grep -v '^ *+' conftest.er1 >conftest.err 8837 rm -f conftest.er1 8838 cat conftest.err >&5 8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8840 (exit $ac_status); } && { 8841 test -z "$ac_c_werror_flag" || 8842 test ! -s conftest.err 8843 } && test -s conftest.$ac_objext; then 8844 ac_cv_type_int=yes 8845else 8846 echo "$as_me: failed program was:" >&5 8847sed 's/^/| /' conftest.$ac_ext >&5 8848 8849 ac_cv_type_int=no 8850fi 8851 8852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8853fi 8854{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 8855echo "${ECHO_T}$ac_cv_type_int" >&6; } 8856 8857# The cast to long int works around a bug in the HP C Compiler 8858# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8859# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8860# This bug is HP SR number 8606223364. 8861{ echo "$as_me:$LINENO: checking size of int" >&5 8862echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 8863if test "${ac_cv_sizeof_int+set}" = set; then 8864 echo $ECHO_N "(cached) $ECHO_C" >&6 8865else 8866 if test "$cross_compiling" = yes; then 8867 # Depending upon the size, compute the lo and hi bounds. 8868cat >conftest.$ac_ext <<_ACEOF 8869/* confdefs.h. */ 8870_ACEOF 8871cat confdefs.h >>conftest.$ac_ext 8872cat >>conftest.$ac_ext <<_ACEOF 8873/* end confdefs.h. */ 8874$ac_includes_default 8875 typedef int ac__type_sizeof_; 8876int 8877main () 8878{ 8879static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 8880test_array [0] = 0 8881 8882 ; 8883 return 0; 8884} 8885_ACEOF 8886rm -f conftest.$ac_objext 8887if { (ac_try="$ac_compile" 8888case "(($ac_try" in 8889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8890 *) ac_try_echo=$ac_try;; 8891esac 8892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8893 (eval "$ac_compile") 2>conftest.er1 8894 ac_status=$? 8895 grep -v '^ *+' conftest.er1 >conftest.err 8896 rm -f conftest.er1 8897 cat conftest.err >&5 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 (exit $ac_status); } && { 8900 test -z "$ac_c_werror_flag" || 8901 test ! -s conftest.err 8902 } && test -s conftest.$ac_objext; then 8903 ac_lo=0 ac_mid=0 8904 while :; do 8905 cat >conftest.$ac_ext <<_ACEOF 8906/* confdefs.h. */ 8907_ACEOF 8908cat confdefs.h >>conftest.$ac_ext 8909cat >>conftest.$ac_ext <<_ACEOF 8910/* end confdefs.h. */ 8911$ac_includes_default 8912 typedef int ac__type_sizeof_; 8913int 8914main () 8915{ 8916static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8917test_array [0] = 0 8918 8919 ; 8920 return 0; 8921} 8922_ACEOF 8923rm -f conftest.$ac_objext 8924if { (ac_try="$ac_compile" 8925case "(($ac_try" in 8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8927 *) ac_try_echo=$ac_try;; 8928esac 8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8930 (eval "$ac_compile") 2>conftest.er1 8931 ac_status=$? 8932 grep -v '^ *+' conftest.er1 >conftest.err 8933 rm -f conftest.er1 8934 cat conftest.err >&5 8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8936 (exit $ac_status); } && { 8937 test -z "$ac_c_werror_flag" || 8938 test ! -s conftest.err 8939 } && test -s conftest.$ac_objext; then 8940 ac_hi=$ac_mid; break 8941else 8942 echo "$as_me: failed program was:" >&5 8943sed 's/^/| /' conftest.$ac_ext >&5 8944 8945 ac_lo=`expr $ac_mid + 1` 8946 if test $ac_lo -le $ac_mid; then 8947 ac_lo= ac_hi= 8948 break 8949 fi 8950 ac_mid=`expr 2 '*' $ac_mid + 1` 8951fi 8952 8953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8954 done 8955else 8956 echo "$as_me: failed program was:" >&5 8957sed 's/^/| /' conftest.$ac_ext >&5 8958 8959 cat >conftest.$ac_ext <<_ACEOF 8960/* confdefs.h. */ 8961_ACEOF 8962cat confdefs.h >>conftest.$ac_ext 8963cat >>conftest.$ac_ext <<_ACEOF 8964/* end confdefs.h. */ 8965$ac_includes_default 8966 typedef int ac__type_sizeof_; 8967int 8968main () 8969{ 8970static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 8971test_array [0] = 0 8972 8973 ; 8974 return 0; 8975} 8976_ACEOF 8977rm -f conftest.$ac_objext 8978if { (ac_try="$ac_compile" 8979case "(($ac_try" in 8980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8981 *) ac_try_echo=$ac_try;; 8982esac 8983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8984 (eval "$ac_compile") 2>conftest.er1 8985 ac_status=$? 8986 grep -v '^ *+' conftest.er1 >conftest.err 8987 rm -f conftest.er1 8988 cat conftest.err >&5 8989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8990 (exit $ac_status); } && { 8991 test -z "$ac_c_werror_flag" || 8992 test ! -s conftest.err 8993 } && test -s conftest.$ac_objext; then 8994 ac_hi=-1 ac_mid=-1 8995 while :; do 8996 cat >conftest.$ac_ext <<_ACEOF 8997/* confdefs.h. */ 8998_ACEOF 8999cat confdefs.h >>conftest.$ac_ext 9000cat >>conftest.$ac_ext <<_ACEOF 9001/* end confdefs.h. */ 9002$ac_includes_default 9003 typedef int ac__type_sizeof_; 9004int 9005main () 9006{ 9007static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 9008test_array [0] = 0 9009 9010 ; 9011 return 0; 9012} 9013_ACEOF 9014rm -f conftest.$ac_objext 9015if { (ac_try="$ac_compile" 9016case "(($ac_try" in 9017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9018 *) ac_try_echo=$ac_try;; 9019esac 9020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9021 (eval "$ac_compile") 2>conftest.er1 9022 ac_status=$? 9023 grep -v '^ *+' conftest.er1 >conftest.err 9024 rm -f conftest.er1 9025 cat conftest.err >&5 9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9027 (exit $ac_status); } && { 9028 test -z "$ac_c_werror_flag" || 9029 test ! -s conftest.err 9030 } && test -s conftest.$ac_objext; then 9031 ac_lo=$ac_mid; break 9032else 9033 echo "$as_me: failed program was:" >&5 9034sed 's/^/| /' conftest.$ac_ext >&5 9035 9036 ac_hi=`expr '(' $ac_mid ')' - 1` 9037 if test $ac_mid -le $ac_hi; then 9038 ac_lo= ac_hi= 9039 break 9040 fi 9041 ac_mid=`expr 2 '*' $ac_mid` 9042fi 9043 9044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9045 done 9046else 9047 echo "$as_me: failed program was:" >&5 9048sed 's/^/| /' conftest.$ac_ext >&5 9049 9050 ac_lo= ac_hi= 9051fi 9052 9053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9054fi 9055 9056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9057# Binary search between lo and hi bounds. 9058while test "x$ac_lo" != "x$ac_hi"; do 9059 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9060 cat >conftest.$ac_ext <<_ACEOF 9061/* confdefs.h. */ 9062_ACEOF 9063cat confdefs.h >>conftest.$ac_ext 9064cat >>conftest.$ac_ext <<_ACEOF 9065/* end confdefs.h. */ 9066$ac_includes_default 9067 typedef int ac__type_sizeof_; 9068int 9069main () 9070{ 9071static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 9072test_array [0] = 0 9073 9074 ; 9075 return 0; 9076} 9077_ACEOF 9078rm -f conftest.$ac_objext 9079if { (ac_try="$ac_compile" 9080case "(($ac_try" in 9081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9082 *) ac_try_echo=$ac_try;; 9083esac 9084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9085 (eval "$ac_compile") 2>conftest.er1 9086 ac_status=$? 9087 grep -v '^ *+' conftest.er1 >conftest.err 9088 rm -f conftest.er1 9089 cat conftest.err >&5 9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9091 (exit $ac_status); } && { 9092 test -z "$ac_c_werror_flag" || 9093 test ! -s conftest.err 9094 } && test -s conftest.$ac_objext; then 9095 ac_hi=$ac_mid 9096else 9097 echo "$as_me: failed program was:" >&5 9098sed 's/^/| /' conftest.$ac_ext >&5 9099 9100 ac_lo=`expr '(' $ac_mid ')' + 1` 9101fi 9102 9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9104done 9105case $ac_lo in 9106?*) ac_cv_sizeof_int=$ac_lo;; 9107'') if test "$ac_cv_type_int" = yes; then 9108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 9109See \`config.log' for more details." >&5 9110echo "$as_me: error: cannot compute sizeof (int) 9111See \`config.log' for more details." >&2;} 9112 { (exit 77); exit 77; }; } 9113 else 9114 ac_cv_sizeof_int=0 9115 fi ;; 9116esac 9117else 9118 cat >conftest.$ac_ext <<_ACEOF 9119/* confdefs.h. */ 9120_ACEOF 9121cat confdefs.h >>conftest.$ac_ext 9122cat >>conftest.$ac_ext <<_ACEOF 9123/* end confdefs.h. */ 9124$ac_includes_default 9125 typedef int ac__type_sizeof_; 9126static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 9127static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 9128#include <stdio.h> 9129#include <stdlib.h> 9130int 9131main () 9132{ 9133 9134 FILE *f = fopen ("conftest.val", "w"); 9135 if (! f) 9136 return 1; 9137 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 9138 { 9139 long int i = longval (); 9140 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9141 return 1; 9142 fprintf (f, "%ld\n", i); 9143 } 9144 else 9145 { 9146 unsigned long int i = ulongval (); 9147 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9148 return 1; 9149 fprintf (f, "%lu\n", i); 9150 } 9151 return ferror (f) || fclose (f) != 0; 9152 9153 ; 9154 return 0; 9155} 9156_ACEOF 9157rm -f conftest$ac_exeext 9158if { (ac_try="$ac_link" 9159case "(($ac_try" in 9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9161 *) ac_try_echo=$ac_try;; 9162esac 9163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9164 (eval "$ac_link") 2>&5 9165 ac_status=$? 9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9168 { (case "(($ac_try" in 9169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9170 *) ac_try_echo=$ac_try;; 9171esac 9172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9173 (eval "$ac_try") 2>&5 9174 ac_status=$? 9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9176 (exit $ac_status); }; }; then 9177 ac_cv_sizeof_int=`cat conftest.val` 9178else 9179 echo "$as_me: program exited with status $ac_status" >&5 9180echo "$as_me: failed program was:" >&5 9181sed 's/^/| /' conftest.$ac_ext >&5 9182 9183( exit $ac_status ) 9184if test "$ac_cv_type_int" = yes; then 9185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 9186See \`config.log' for more details." >&5 9187echo "$as_me: error: cannot compute sizeof (int) 9188See \`config.log' for more details." >&2;} 9189 { (exit 77); exit 77; }; } 9190 else 9191 ac_cv_sizeof_int=0 9192 fi 9193fi 9194rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9195fi 9196rm -f conftest.val 9197fi 9198{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 9199echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 9200 9201 9202 9203cat >>confdefs.h <<_ACEOF 9204#define SIZEOF_INT $ac_cv_sizeof_int 9205_ACEOF 9206 9207 9208{ echo "$as_me:$LINENO: checking for int" >&5 9209echo $ECHO_N "checking for int... $ECHO_C" >&6; } 9210if test "${ac_cv_type_int+set}" = set; then 9211 echo $ECHO_N "(cached) $ECHO_C" >&6 9212else 9213 cat >conftest.$ac_ext <<_ACEOF 9214/* confdefs.h. */ 9215_ACEOF 9216cat confdefs.h >>conftest.$ac_ext 9217cat >>conftest.$ac_ext <<_ACEOF 9218/* end confdefs.h. */ 9219$ac_includes_default 9220typedef int ac__type_new_; 9221int 9222main () 9223{ 9224if ((ac__type_new_ *) 0) 9225 return 0; 9226if (sizeof (ac__type_new_)) 9227 return 0; 9228 ; 9229 return 0; 9230} 9231_ACEOF 9232rm -f conftest.$ac_objext 9233if { (ac_try="$ac_compile" 9234case "(($ac_try" in 9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9236 *) ac_try_echo=$ac_try;; 9237esac 9238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9239 (eval "$ac_compile") 2>conftest.er1 9240 ac_status=$? 9241 grep -v '^ *+' conftest.er1 >conftest.err 9242 rm -f conftest.er1 9243 cat conftest.err >&5 9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9245 (exit $ac_status); } && { 9246 test -z "$ac_c_werror_flag" || 9247 test ! -s conftest.err 9248 } && test -s conftest.$ac_objext; then 9249 ac_cv_type_int=yes 9250else 9251 echo "$as_me: failed program was:" >&5 9252sed 's/^/| /' conftest.$ac_ext >&5 9253 9254 ac_cv_type_int=no 9255fi 9256 9257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9258fi 9259{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 9260echo "${ECHO_T}$ac_cv_type_int" >&6; } 9261 9262# The cast to long int works around a bug in the HP C Compiler, 9263# see AC_CHECK_SIZEOF for more information. 9264{ echo "$as_me:$LINENO: checking alignment of int" >&5 9265echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; } 9266if test "${ac_cv_alignof_int+set}" = set; then 9267 echo $ECHO_N "(cached) $ECHO_C" >&6 9268else 9269 if test "$cross_compiling" = yes; then 9270 # Depending upon the size, compute the lo and hi bounds. 9271cat >conftest.$ac_ext <<_ACEOF 9272/* confdefs.h. */ 9273_ACEOF 9274cat confdefs.h >>conftest.$ac_ext 9275cat >>conftest.$ac_ext <<_ACEOF 9276/* end confdefs.h. */ 9277$ac_includes_default 9278#ifndef offsetof 9279# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 9280#endif 9281typedef struct { char x; int y; } ac__type_alignof_; 9282int 9283main () 9284{ 9285static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; 9286test_array [0] = 0 9287 9288 ; 9289 return 0; 9290} 9291_ACEOF 9292rm -f conftest.$ac_objext 9293if { (ac_try="$ac_compile" 9294case "(($ac_try" in 9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9296 *) ac_try_echo=$ac_try;; 9297esac 9298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9299 (eval "$ac_compile") 2>conftest.er1 9300 ac_status=$? 9301 grep -v '^ *+' conftest.er1 >conftest.err 9302 rm -f conftest.er1 9303 cat conftest.err >&5 9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9305 (exit $ac_status); } && { 9306 test -z "$ac_c_werror_flag" || 9307 test ! -s conftest.err 9308 } && test -s conftest.$ac_objext; then 9309 ac_lo=0 ac_mid=0 9310 while :; do 9311 cat >conftest.$ac_ext <<_ACEOF 9312/* confdefs.h. */ 9313_ACEOF 9314cat confdefs.h >>conftest.$ac_ext 9315cat >>conftest.$ac_ext <<_ACEOF 9316/* end confdefs.h. */ 9317$ac_includes_default 9318#ifndef offsetof 9319# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 9320#endif 9321typedef struct { char x; int y; } ac__type_alignof_; 9322int 9323main () 9324{ 9325static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 9326test_array [0] = 0 9327 9328 ; 9329 return 0; 9330} 9331_ACEOF 9332rm -f conftest.$ac_objext 9333if { (ac_try="$ac_compile" 9334case "(($ac_try" in 9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9336 *) ac_try_echo=$ac_try;; 9337esac 9338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9339 (eval "$ac_compile") 2>conftest.er1 9340 ac_status=$? 9341 grep -v '^ *+' conftest.er1 >conftest.err 9342 rm -f conftest.er1 9343 cat conftest.err >&5 9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9345 (exit $ac_status); } && { 9346 test -z "$ac_c_werror_flag" || 9347 test ! -s conftest.err 9348 } && test -s conftest.$ac_objext; then 9349 ac_hi=$ac_mid; break 9350else 9351 echo "$as_me: failed program was:" >&5 9352sed 's/^/| /' conftest.$ac_ext >&5 9353 9354 ac_lo=`expr $ac_mid + 1` 9355 if test $ac_lo -le $ac_mid; then 9356 ac_lo= ac_hi= 9357 break 9358 fi 9359 ac_mid=`expr 2 '*' $ac_mid + 1` 9360fi 9361 9362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9363 done 9364else 9365 echo "$as_me: failed program was:" >&5 9366sed 's/^/| /' conftest.$ac_ext >&5 9367 9368 cat >conftest.$ac_ext <<_ACEOF 9369/* confdefs.h. */ 9370_ACEOF 9371cat confdefs.h >>conftest.$ac_ext 9372cat >>conftest.$ac_ext <<_ACEOF 9373/* end confdefs.h. */ 9374$ac_includes_default 9375#ifndef offsetof 9376# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 9377#endif 9378typedef struct { char x; int y; } ac__type_alignof_; 9379int 9380main () 9381{ 9382static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)]; 9383test_array [0] = 0 9384 9385 ; 9386 return 0; 9387} 9388_ACEOF 9389rm -f conftest.$ac_objext 9390if { (ac_try="$ac_compile" 9391case "(($ac_try" in 9392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9393 *) ac_try_echo=$ac_try;; 9394esac 9395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9396 (eval "$ac_compile") 2>conftest.er1 9397 ac_status=$? 9398 grep -v '^ *+' conftest.er1 >conftest.err 9399 rm -f conftest.er1 9400 cat conftest.err >&5 9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9402 (exit $ac_status); } && { 9403 test -z "$ac_c_werror_flag" || 9404 test ! -s conftest.err 9405 } && test -s conftest.$ac_objext; then 9406 ac_hi=-1 ac_mid=-1 9407 while :; do 9408 cat >conftest.$ac_ext <<_ACEOF 9409/* confdefs.h. */ 9410_ACEOF 9411cat confdefs.h >>conftest.$ac_ext 9412cat >>conftest.$ac_ext <<_ACEOF 9413/* end confdefs.h. */ 9414$ac_includes_default 9415#ifndef offsetof 9416# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 9417#endif 9418typedef struct { char x; int y; } ac__type_alignof_; 9419int 9420main () 9421{ 9422static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)]; 9423test_array [0] = 0 9424 9425 ; 9426 return 0; 9427} 9428_ACEOF 9429rm -f conftest.$ac_objext 9430if { (ac_try="$ac_compile" 9431case "(($ac_try" in 9432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9433 *) ac_try_echo=$ac_try;; 9434esac 9435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9436 (eval "$ac_compile") 2>conftest.er1 9437 ac_status=$? 9438 grep -v '^ *+' conftest.er1 >conftest.err 9439 rm -f conftest.er1 9440 cat conftest.err >&5 9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9442 (exit $ac_status); } && { 9443 test -z "$ac_c_werror_flag" || 9444 test ! -s conftest.err 9445 } && test -s conftest.$ac_objext; then 9446 ac_lo=$ac_mid; break 9447else 9448 echo "$as_me: failed program was:" >&5 9449sed 's/^/| /' conftest.$ac_ext >&5 9450 9451 ac_hi=`expr '(' $ac_mid ')' - 1` 9452 if test $ac_mid -le $ac_hi; then 9453 ac_lo= ac_hi= 9454 break 9455 fi 9456 ac_mid=`expr 2 '*' $ac_mid` 9457fi 9458 9459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9460 done 9461else 9462 echo "$as_me: failed program was:" >&5 9463sed 's/^/| /' conftest.$ac_ext >&5 9464 9465 ac_lo= ac_hi= 9466fi 9467 9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9469fi 9470 9471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9472# Binary search between lo and hi bounds. 9473while test "x$ac_lo" != "x$ac_hi"; do 9474 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9475 cat >conftest.$ac_ext <<_ACEOF 9476/* confdefs.h. */ 9477_ACEOF 9478cat confdefs.h >>conftest.$ac_ext 9479cat >>conftest.$ac_ext <<_ACEOF 9480/* end confdefs.h. */ 9481$ac_includes_default 9482#ifndef offsetof 9483# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 9484#endif 9485typedef struct { char x; int y; } ac__type_alignof_; 9486int 9487main () 9488{ 9489static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 9490test_array [0] = 0 9491 9492 ; 9493 return 0; 9494} 9495_ACEOF 9496rm -f conftest.$ac_objext 9497if { (ac_try="$ac_compile" 9498case "(($ac_try" in 9499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9500 *) ac_try_echo=$ac_try;; 9501esac 9502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9503 (eval "$ac_compile") 2>conftest.er1 9504 ac_status=$? 9505 grep -v '^ *+' conftest.er1 >conftest.err 9506 rm -f conftest.er1 9507 cat conftest.err >&5 9508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9509 (exit $ac_status); } && { 9510 test -z "$ac_c_werror_flag" || 9511 test ! -s conftest.err 9512 } && test -s conftest.$ac_objext; then 9513 ac_hi=$ac_mid 9514else 9515 echo "$as_me: failed program was:" >&5 9516sed 's/^/| /' conftest.$ac_ext >&5 9517 9518 ac_lo=`expr '(' $ac_mid ')' + 1` 9519fi 9520 9521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9522done 9523case $ac_lo in 9524?*) ac_cv_alignof_int=$ac_lo;; 9525'') if test "$ac_cv_type_int" = yes; then 9526 { { echo "$as_me:$LINENO: error: cannot compute alignment of int 9527See \`config.log' for more details." >&5 9528echo "$as_me: error: cannot compute alignment of int 9529See \`config.log' for more details." >&2;} 9530 { (exit 77); exit 77; }; } 9531 else 9532 ac_cv_alignof_int=0 9533 fi ;; 9534esac 9535else 9536 cat >conftest.$ac_ext <<_ACEOF 9537/* confdefs.h. */ 9538_ACEOF 9539cat confdefs.h >>conftest.$ac_ext 9540cat >>conftest.$ac_ext <<_ACEOF 9541/* end confdefs.h. */ 9542$ac_includes_default 9543#ifndef offsetof 9544# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 9545#endif 9546typedef struct { char x; int y; } ac__type_alignof_; 9547static long int longval () { return (long int) offsetof (ac__type_alignof_, y); } 9548static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); } 9549#include <stdio.h> 9550#include <stdlib.h> 9551int 9552main () 9553{ 9554 9555 FILE *f = fopen ("conftest.val", "w"); 9556 if (! f) 9557 return 1; 9558 if (((long int) offsetof (ac__type_alignof_, y)) < 0) 9559 { 9560 long int i = longval (); 9561 if (i != ((long int) offsetof (ac__type_alignof_, y))) 9562 return 1; 9563 fprintf (f, "%ld\n", i); 9564 } 9565 else 9566 { 9567 unsigned long int i = ulongval (); 9568 if (i != ((long int) offsetof (ac__type_alignof_, y))) 9569 return 1; 9570 fprintf (f, "%lu\n", i); 9571 } 9572 return ferror (f) || fclose (f) != 0; 9573 9574 ; 9575 return 0; 9576} 9577_ACEOF 9578rm -f conftest$ac_exeext 9579if { (ac_try="$ac_link" 9580case "(($ac_try" in 9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9582 *) ac_try_echo=$ac_try;; 9583esac 9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9585 (eval "$ac_link") 2>&5 9586 ac_status=$? 9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9589 { (case "(($ac_try" in 9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9591 *) ac_try_echo=$ac_try;; 9592esac 9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9594 (eval "$ac_try") 2>&5 9595 ac_status=$? 9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9597 (exit $ac_status); }; }; then 9598 ac_cv_alignof_int=`cat conftest.val` 9599else 9600 echo "$as_me: program exited with status $ac_status" >&5 9601echo "$as_me: failed program was:" >&5 9602sed 's/^/| /' conftest.$ac_ext >&5 9603 9604( exit $ac_status ) 9605if test "$ac_cv_type_int" = yes; then 9606 { { echo "$as_me:$LINENO: error: cannot compute alignment of int 9607See \`config.log' for more details." >&5 9608echo "$as_me: error: cannot compute alignment of int 9609See \`config.log' for more details." >&2;} 9610 { (exit 77); exit 77; }; } 9611 else 9612 ac_cv_alignof_int=0 9613 fi 9614fi 9615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 9616fi 9617rm -f conftest.val 9618fi 9619{ echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5 9620echo "${ECHO_T}$ac_cv_alignof_int" >&6; } 9621 9622 9623 9624cat >>confdefs.h <<_ACEOF 9625#define ALIGNOF_INT $ac_cv_alignof_int 9626_ACEOF 9627 9628 9629{ echo "$as_me:$LINENO: checking for long" >&5 9630echo $ECHO_N "checking for long... $ECHO_C" >&6; } 9631if test "${ac_cv_type_long+set}" = set; then 9632 echo $ECHO_N "(cached) $ECHO_C" >&6 9633else 9634 cat >conftest.$ac_ext <<_ACEOF 9635/* confdefs.h. */ 9636_ACEOF 9637cat confdefs.h >>conftest.$ac_ext 9638cat >>conftest.$ac_ext <<_ACEOF 9639/* end confdefs.h. */ 9640$ac_includes_default 9641typedef long ac__type_new_; 9642int 9643main () 9644{ 9645if ((ac__type_new_ *) 0) 9646 return 0; 9647if (sizeof (ac__type_new_)) 9648 return 0; 9649 ; 9650 return 0; 9651} 9652_ACEOF 9653rm -f conftest.$ac_objext 9654if { (ac_try="$ac_compile" 9655case "(($ac_try" in 9656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9657 *) ac_try_echo=$ac_try;; 9658esac 9659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9660 (eval "$ac_compile") 2>conftest.er1 9661 ac_status=$? 9662 grep -v '^ *+' conftest.er1 >conftest.err 9663 rm -f conftest.er1 9664 cat conftest.err >&5 9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9666 (exit $ac_status); } && { 9667 test -z "$ac_c_werror_flag" || 9668 test ! -s conftest.err 9669 } && test -s conftest.$ac_objext; then 9670 ac_cv_type_long=yes 9671else 9672 echo "$as_me: failed program was:" >&5 9673sed 's/^/| /' conftest.$ac_ext >&5 9674 9675 ac_cv_type_long=no 9676fi 9677 9678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9679fi 9680{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 9681echo "${ECHO_T}$ac_cv_type_long" >&6; } 9682 9683# The cast to long int works around a bug in the HP C Compiler 9684# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9685# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9686# This bug is HP SR number 8606223364. 9687{ echo "$as_me:$LINENO: checking size of long" >&5 9688echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 9689if test "${ac_cv_sizeof_long+set}" = set; then 9690 echo $ECHO_N "(cached) $ECHO_C" >&6 9691else 9692 if test "$cross_compiling" = yes; then 9693 # Depending upon the size, compute the lo and hi bounds. 9694cat >conftest.$ac_ext <<_ACEOF 9695/* confdefs.h. */ 9696_ACEOF 9697cat confdefs.h >>conftest.$ac_ext 9698cat >>conftest.$ac_ext <<_ACEOF 9699/* end confdefs.h. */ 9700$ac_includes_default 9701 typedef long ac__type_sizeof_; 9702int 9703main () 9704{ 9705static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 9706test_array [0] = 0 9707 9708 ; 9709 return 0; 9710} 9711_ACEOF 9712rm -f conftest.$ac_objext 9713if { (ac_try="$ac_compile" 9714case "(($ac_try" in 9715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9716 *) ac_try_echo=$ac_try;; 9717esac 9718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9719 (eval "$ac_compile") 2>conftest.er1 9720 ac_status=$? 9721 grep -v '^ *+' conftest.er1 >conftest.err 9722 rm -f conftest.er1 9723 cat conftest.err >&5 9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9725 (exit $ac_status); } && { 9726 test -z "$ac_c_werror_flag" || 9727 test ! -s conftest.err 9728 } && test -s conftest.$ac_objext; then 9729 ac_lo=0 ac_mid=0 9730 while :; do 9731 cat >conftest.$ac_ext <<_ACEOF 9732/* confdefs.h. */ 9733_ACEOF 9734cat confdefs.h >>conftest.$ac_ext 9735cat >>conftest.$ac_ext <<_ACEOF 9736/* end confdefs.h. */ 9737$ac_includes_default 9738 typedef long ac__type_sizeof_; 9739int 9740main () 9741{ 9742static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 9743test_array [0] = 0 9744 9745 ; 9746 return 0; 9747} 9748_ACEOF 9749rm -f conftest.$ac_objext 9750if { (ac_try="$ac_compile" 9751case "(($ac_try" in 9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9753 *) ac_try_echo=$ac_try;; 9754esac 9755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9756 (eval "$ac_compile") 2>conftest.er1 9757 ac_status=$? 9758 grep -v '^ *+' conftest.er1 >conftest.err 9759 rm -f conftest.er1 9760 cat conftest.err >&5 9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9762 (exit $ac_status); } && { 9763 test -z "$ac_c_werror_flag" || 9764 test ! -s conftest.err 9765 } && test -s conftest.$ac_objext; then 9766 ac_hi=$ac_mid; break 9767else 9768 echo "$as_me: failed program was:" >&5 9769sed 's/^/| /' conftest.$ac_ext >&5 9770 9771 ac_lo=`expr $ac_mid + 1` 9772 if test $ac_lo -le $ac_mid; then 9773 ac_lo= ac_hi= 9774 break 9775 fi 9776 ac_mid=`expr 2 '*' $ac_mid + 1` 9777fi 9778 9779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9780 done 9781else 9782 echo "$as_me: failed program was:" >&5 9783sed 's/^/| /' conftest.$ac_ext >&5 9784 9785 cat >conftest.$ac_ext <<_ACEOF 9786/* confdefs.h. */ 9787_ACEOF 9788cat confdefs.h >>conftest.$ac_ext 9789cat >>conftest.$ac_ext <<_ACEOF 9790/* end confdefs.h. */ 9791$ac_includes_default 9792 typedef long ac__type_sizeof_; 9793int 9794main () 9795{ 9796static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 9797test_array [0] = 0 9798 9799 ; 9800 return 0; 9801} 9802_ACEOF 9803rm -f conftest.$ac_objext 9804if { (ac_try="$ac_compile" 9805case "(($ac_try" in 9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9807 *) ac_try_echo=$ac_try;; 9808esac 9809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9810 (eval "$ac_compile") 2>conftest.er1 9811 ac_status=$? 9812 grep -v '^ *+' conftest.er1 >conftest.err 9813 rm -f conftest.er1 9814 cat conftest.err >&5 9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9816 (exit $ac_status); } && { 9817 test -z "$ac_c_werror_flag" || 9818 test ! -s conftest.err 9819 } && test -s conftest.$ac_objext; then 9820 ac_hi=-1 ac_mid=-1 9821 while :; do 9822 cat >conftest.$ac_ext <<_ACEOF 9823/* confdefs.h. */ 9824_ACEOF 9825cat confdefs.h >>conftest.$ac_ext 9826cat >>conftest.$ac_ext <<_ACEOF 9827/* end confdefs.h. */ 9828$ac_includes_default 9829 typedef long ac__type_sizeof_; 9830int 9831main () 9832{ 9833static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 9834test_array [0] = 0 9835 9836 ; 9837 return 0; 9838} 9839_ACEOF 9840rm -f conftest.$ac_objext 9841if { (ac_try="$ac_compile" 9842case "(($ac_try" in 9843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9844 *) ac_try_echo=$ac_try;; 9845esac 9846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9847 (eval "$ac_compile") 2>conftest.er1 9848 ac_status=$? 9849 grep -v '^ *+' conftest.er1 >conftest.err 9850 rm -f conftest.er1 9851 cat conftest.err >&5 9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9853 (exit $ac_status); } && { 9854 test -z "$ac_c_werror_flag" || 9855 test ! -s conftest.err 9856 } && test -s conftest.$ac_objext; then 9857 ac_lo=$ac_mid; break 9858else 9859 echo "$as_me: failed program was:" >&5 9860sed 's/^/| /' conftest.$ac_ext >&5 9861 9862 ac_hi=`expr '(' $ac_mid ')' - 1` 9863 if test $ac_mid -le $ac_hi; then 9864 ac_lo= ac_hi= 9865 break 9866 fi 9867 ac_mid=`expr 2 '*' $ac_mid` 9868fi 9869 9870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9871 done 9872else 9873 echo "$as_me: failed program was:" >&5 9874sed 's/^/| /' conftest.$ac_ext >&5 9875 9876 ac_lo= ac_hi= 9877fi 9878 9879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9880fi 9881 9882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9883# Binary search between lo and hi bounds. 9884while test "x$ac_lo" != "x$ac_hi"; do 9885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 9886 cat >conftest.$ac_ext <<_ACEOF 9887/* confdefs.h. */ 9888_ACEOF 9889cat confdefs.h >>conftest.$ac_ext 9890cat >>conftest.$ac_ext <<_ACEOF 9891/* end confdefs.h. */ 9892$ac_includes_default 9893 typedef long ac__type_sizeof_; 9894int 9895main () 9896{ 9897static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 9898test_array [0] = 0 9899 9900 ; 9901 return 0; 9902} 9903_ACEOF 9904rm -f conftest.$ac_objext 9905if { (ac_try="$ac_compile" 9906case "(($ac_try" in 9907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9908 *) ac_try_echo=$ac_try;; 9909esac 9910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9911 (eval "$ac_compile") 2>conftest.er1 9912 ac_status=$? 9913 grep -v '^ *+' conftest.er1 >conftest.err 9914 rm -f conftest.er1 9915 cat conftest.err >&5 9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9917 (exit $ac_status); } && { 9918 test -z "$ac_c_werror_flag" || 9919 test ! -s conftest.err 9920 } && test -s conftest.$ac_objext; then 9921 ac_hi=$ac_mid 9922else 9923 echo "$as_me: failed program was:" >&5 9924sed 's/^/| /' conftest.$ac_ext >&5 9925 9926 ac_lo=`expr '(' $ac_mid ')' + 1` 9927fi 9928 9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9930done 9931case $ac_lo in 9932?*) ac_cv_sizeof_long=$ac_lo;; 9933'') if test "$ac_cv_type_long" = yes; then 9934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 9935See \`config.log' for more details." >&5 9936echo "$as_me: error: cannot compute sizeof (long) 9937See \`config.log' for more details." >&2;} 9938 { (exit 77); exit 77; }; } 9939 else 9940 ac_cv_sizeof_long=0 9941 fi ;; 9942esac 9943else 9944 cat >conftest.$ac_ext <<_ACEOF 9945/* confdefs.h. */ 9946_ACEOF 9947cat confdefs.h >>conftest.$ac_ext 9948cat >>conftest.$ac_ext <<_ACEOF 9949/* end confdefs.h. */ 9950$ac_includes_default 9951 typedef long ac__type_sizeof_; 9952static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 9953static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 9954#include <stdio.h> 9955#include <stdlib.h> 9956int 9957main () 9958{ 9959 9960 FILE *f = fopen ("conftest.val", "w"); 9961 if (! f) 9962 return 1; 9963 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 9964 { 9965 long int i = longval (); 9966 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9967 return 1; 9968 fprintf (f, "%ld\n", i); 9969 } 9970 else 9971 { 9972 unsigned long int i = ulongval (); 9973 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 9974 return 1; 9975 fprintf (f, "%lu\n", i); 9976 } 9977 return ferror (f) || fclose (f) != 0; 9978 9979 ; 9980 return 0; 9981} 9982_ACEOF 9983rm -f conftest$ac_exeext 9984if { (ac_try="$ac_link" 9985case "(($ac_try" in 9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9987 *) ac_try_echo=$ac_try;; 9988esac 9989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9990 (eval "$ac_link") 2>&5 9991 ac_status=$? 9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 9994 { (case "(($ac_try" in 9995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9996 *) ac_try_echo=$ac_try;; 9997esac 9998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 9999 (eval "$ac_try") 2>&5 10000 ac_status=$? 10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10002 (exit $ac_status); }; }; then 10003 ac_cv_sizeof_long=`cat conftest.val` 10004else 10005 echo "$as_me: program exited with status $ac_status" >&5 10006echo "$as_me: failed program was:" >&5 10007sed 's/^/| /' conftest.$ac_ext >&5 10008 10009( exit $ac_status ) 10010if test "$ac_cv_type_long" = yes; then 10011 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 10012See \`config.log' for more details." >&5 10013echo "$as_me: error: cannot compute sizeof (long) 10014See \`config.log' for more details." >&2;} 10015 { (exit 77); exit 77; }; } 10016 else 10017 ac_cv_sizeof_long=0 10018 fi 10019fi 10020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10021fi 10022rm -f conftest.val 10023fi 10024{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 10025echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 10026 10027 10028 10029cat >>confdefs.h <<_ACEOF 10030#define SIZEOF_LONG $ac_cv_sizeof_long 10031_ACEOF 10032 10033 10034{ echo "$as_me:$LINENO: checking for long" >&5 10035echo $ECHO_N "checking for long... $ECHO_C" >&6; } 10036if test "${ac_cv_type_long+set}" = set; then 10037 echo $ECHO_N "(cached) $ECHO_C" >&6 10038else 10039 cat >conftest.$ac_ext <<_ACEOF 10040/* confdefs.h. */ 10041_ACEOF 10042cat confdefs.h >>conftest.$ac_ext 10043cat >>conftest.$ac_ext <<_ACEOF 10044/* end confdefs.h. */ 10045$ac_includes_default 10046typedef long ac__type_new_; 10047int 10048main () 10049{ 10050if ((ac__type_new_ *) 0) 10051 return 0; 10052if (sizeof (ac__type_new_)) 10053 return 0; 10054 ; 10055 return 0; 10056} 10057_ACEOF 10058rm -f conftest.$ac_objext 10059if { (ac_try="$ac_compile" 10060case "(($ac_try" in 10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10062 *) ac_try_echo=$ac_try;; 10063esac 10064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10065 (eval "$ac_compile") 2>conftest.er1 10066 ac_status=$? 10067 grep -v '^ *+' conftest.er1 >conftest.err 10068 rm -f conftest.er1 10069 cat conftest.err >&5 10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10071 (exit $ac_status); } && { 10072 test -z "$ac_c_werror_flag" || 10073 test ! -s conftest.err 10074 } && test -s conftest.$ac_objext; then 10075 ac_cv_type_long=yes 10076else 10077 echo "$as_me: failed program was:" >&5 10078sed 's/^/| /' conftest.$ac_ext >&5 10079 10080 ac_cv_type_long=no 10081fi 10082 10083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10084fi 10085{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 10086echo "${ECHO_T}$ac_cv_type_long" >&6; } 10087 10088# The cast to long int works around a bug in the HP C Compiler, 10089# see AC_CHECK_SIZEOF for more information. 10090{ echo "$as_me:$LINENO: checking alignment of long" >&5 10091echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; } 10092if test "${ac_cv_alignof_long+set}" = set; then 10093 echo $ECHO_N "(cached) $ECHO_C" >&6 10094else 10095 if test "$cross_compiling" = yes; then 10096 # Depending upon the size, compute the lo and hi bounds. 10097cat >conftest.$ac_ext <<_ACEOF 10098/* confdefs.h. */ 10099_ACEOF 10100cat confdefs.h >>conftest.$ac_ext 10101cat >>conftest.$ac_ext <<_ACEOF 10102/* end confdefs.h. */ 10103$ac_includes_default 10104#ifndef offsetof 10105# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 10106#endif 10107typedef struct { char x; long y; } ac__type_alignof_; 10108int 10109main () 10110{ 10111static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; 10112test_array [0] = 0 10113 10114 ; 10115 return 0; 10116} 10117_ACEOF 10118rm -f conftest.$ac_objext 10119if { (ac_try="$ac_compile" 10120case "(($ac_try" in 10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10122 *) ac_try_echo=$ac_try;; 10123esac 10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10125 (eval "$ac_compile") 2>conftest.er1 10126 ac_status=$? 10127 grep -v '^ *+' conftest.er1 >conftest.err 10128 rm -f conftest.er1 10129 cat conftest.err >&5 10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10131 (exit $ac_status); } && { 10132 test -z "$ac_c_werror_flag" || 10133 test ! -s conftest.err 10134 } && test -s conftest.$ac_objext; then 10135 ac_lo=0 ac_mid=0 10136 while :; do 10137 cat >conftest.$ac_ext <<_ACEOF 10138/* confdefs.h. */ 10139_ACEOF 10140cat confdefs.h >>conftest.$ac_ext 10141cat >>conftest.$ac_ext <<_ACEOF 10142/* end confdefs.h. */ 10143$ac_includes_default 10144#ifndef offsetof 10145# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 10146#endif 10147typedef struct { char x; long y; } ac__type_alignof_; 10148int 10149main () 10150{ 10151static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 10152test_array [0] = 0 10153 10154 ; 10155 return 0; 10156} 10157_ACEOF 10158rm -f conftest.$ac_objext 10159if { (ac_try="$ac_compile" 10160case "(($ac_try" in 10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10162 *) ac_try_echo=$ac_try;; 10163esac 10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10165 (eval "$ac_compile") 2>conftest.er1 10166 ac_status=$? 10167 grep -v '^ *+' conftest.er1 >conftest.err 10168 rm -f conftest.er1 10169 cat conftest.err >&5 10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10171 (exit $ac_status); } && { 10172 test -z "$ac_c_werror_flag" || 10173 test ! -s conftest.err 10174 } && test -s conftest.$ac_objext; then 10175 ac_hi=$ac_mid; break 10176else 10177 echo "$as_me: failed program was:" >&5 10178sed 's/^/| /' conftest.$ac_ext >&5 10179 10180 ac_lo=`expr $ac_mid + 1` 10181 if test $ac_lo -le $ac_mid; then 10182 ac_lo= ac_hi= 10183 break 10184 fi 10185 ac_mid=`expr 2 '*' $ac_mid + 1` 10186fi 10187 10188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10189 done 10190else 10191 echo "$as_me: failed program was:" >&5 10192sed 's/^/| /' conftest.$ac_ext >&5 10193 10194 cat >conftest.$ac_ext <<_ACEOF 10195/* confdefs.h. */ 10196_ACEOF 10197cat confdefs.h >>conftest.$ac_ext 10198cat >>conftest.$ac_ext <<_ACEOF 10199/* end confdefs.h. */ 10200$ac_includes_default 10201#ifndef offsetof 10202# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 10203#endif 10204typedef struct { char x; long y; } ac__type_alignof_; 10205int 10206main () 10207{ 10208static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)]; 10209test_array [0] = 0 10210 10211 ; 10212 return 0; 10213} 10214_ACEOF 10215rm -f conftest.$ac_objext 10216if { (ac_try="$ac_compile" 10217case "(($ac_try" in 10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10219 *) ac_try_echo=$ac_try;; 10220esac 10221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10222 (eval "$ac_compile") 2>conftest.er1 10223 ac_status=$? 10224 grep -v '^ *+' conftest.er1 >conftest.err 10225 rm -f conftest.er1 10226 cat conftest.err >&5 10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10228 (exit $ac_status); } && { 10229 test -z "$ac_c_werror_flag" || 10230 test ! -s conftest.err 10231 } && test -s conftest.$ac_objext; then 10232 ac_hi=-1 ac_mid=-1 10233 while :; do 10234 cat >conftest.$ac_ext <<_ACEOF 10235/* confdefs.h. */ 10236_ACEOF 10237cat confdefs.h >>conftest.$ac_ext 10238cat >>conftest.$ac_ext <<_ACEOF 10239/* end confdefs.h. */ 10240$ac_includes_default 10241#ifndef offsetof 10242# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 10243#endif 10244typedef struct { char x; long y; } ac__type_alignof_; 10245int 10246main () 10247{ 10248static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)]; 10249test_array [0] = 0 10250 10251 ; 10252 return 0; 10253} 10254_ACEOF 10255rm -f conftest.$ac_objext 10256if { (ac_try="$ac_compile" 10257case "(($ac_try" in 10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10259 *) ac_try_echo=$ac_try;; 10260esac 10261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10262 (eval "$ac_compile") 2>conftest.er1 10263 ac_status=$? 10264 grep -v '^ *+' conftest.er1 >conftest.err 10265 rm -f conftest.er1 10266 cat conftest.err >&5 10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10268 (exit $ac_status); } && { 10269 test -z "$ac_c_werror_flag" || 10270 test ! -s conftest.err 10271 } && test -s conftest.$ac_objext; then 10272 ac_lo=$ac_mid; break 10273else 10274 echo "$as_me: failed program was:" >&5 10275sed 's/^/| /' conftest.$ac_ext >&5 10276 10277 ac_hi=`expr '(' $ac_mid ')' - 1` 10278 if test $ac_mid -le $ac_hi; then 10279 ac_lo= ac_hi= 10280 break 10281 fi 10282 ac_mid=`expr 2 '*' $ac_mid` 10283fi 10284 10285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10286 done 10287else 10288 echo "$as_me: failed program was:" >&5 10289sed 's/^/| /' conftest.$ac_ext >&5 10290 10291 ac_lo= ac_hi= 10292fi 10293 10294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10295fi 10296 10297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10298# Binary search between lo and hi bounds. 10299while test "x$ac_lo" != "x$ac_hi"; do 10300 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10301 cat >conftest.$ac_ext <<_ACEOF 10302/* confdefs.h. */ 10303_ACEOF 10304cat confdefs.h >>conftest.$ac_ext 10305cat >>conftest.$ac_ext <<_ACEOF 10306/* end confdefs.h. */ 10307$ac_includes_default 10308#ifndef offsetof 10309# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 10310#endif 10311typedef struct { char x; long y; } ac__type_alignof_; 10312int 10313main () 10314{ 10315static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 10316test_array [0] = 0 10317 10318 ; 10319 return 0; 10320} 10321_ACEOF 10322rm -f conftest.$ac_objext 10323if { (ac_try="$ac_compile" 10324case "(($ac_try" in 10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10326 *) ac_try_echo=$ac_try;; 10327esac 10328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10329 (eval "$ac_compile") 2>conftest.er1 10330 ac_status=$? 10331 grep -v '^ *+' conftest.er1 >conftest.err 10332 rm -f conftest.er1 10333 cat conftest.err >&5 10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10335 (exit $ac_status); } && { 10336 test -z "$ac_c_werror_flag" || 10337 test ! -s conftest.err 10338 } && test -s conftest.$ac_objext; then 10339 ac_hi=$ac_mid 10340else 10341 echo "$as_me: failed program was:" >&5 10342sed 's/^/| /' conftest.$ac_ext >&5 10343 10344 ac_lo=`expr '(' $ac_mid ')' + 1` 10345fi 10346 10347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10348done 10349case $ac_lo in 10350?*) ac_cv_alignof_long=$ac_lo;; 10351'') if test "$ac_cv_type_long" = yes; then 10352 { { echo "$as_me:$LINENO: error: cannot compute alignment of long 10353See \`config.log' for more details." >&5 10354echo "$as_me: error: cannot compute alignment of long 10355See \`config.log' for more details." >&2;} 10356 { (exit 77); exit 77; }; } 10357 else 10358 ac_cv_alignof_long=0 10359 fi ;; 10360esac 10361else 10362 cat >conftest.$ac_ext <<_ACEOF 10363/* confdefs.h. */ 10364_ACEOF 10365cat confdefs.h >>conftest.$ac_ext 10366cat >>conftest.$ac_ext <<_ACEOF 10367/* end confdefs.h. */ 10368$ac_includes_default 10369#ifndef offsetof 10370# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 10371#endif 10372typedef struct { char x; long y; } ac__type_alignof_; 10373static long int longval () { return (long int) offsetof (ac__type_alignof_, y); } 10374static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); } 10375#include <stdio.h> 10376#include <stdlib.h> 10377int 10378main () 10379{ 10380 10381 FILE *f = fopen ("conftest.val", "w"); 10382 if (! f) 10383 return 1; 10384 if (((long int) offsetof (ac__type_alignof_, y)) < 0) 10385 { 10386 long int i = longval (); 10387 if (i != ((long int) offsetof (ac__type_alignof_, y))) 10388 return 1; 10389 fprintf (f, "%ld\n", i); 10390 } 10391 else 10392 { 10393 unsigned long int i = ulongval (); 10394 if (i != ((long int) offsetof (ac__type_alignof_, y))) 10395 return 1; 10396 fprintf (f, "%lu\n", i); 10397 } 10398 return ferror (f) || fclose (f) != 0; 10399 10400 ; 10401 return 0; 10402} 10403_ACEOF 10404rm -f conftest$ac_exeext 10405if { (ac_try="$ac_link" 10406case "(($ac_try" in 10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10408 *) ac_try_echo=$ac_try;; 10409esac 10410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10411 (eval "$ac_link") 2>&5 10412 ac_status=$? 10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10415 { (case "(($ac_try" in 10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10417 *) ac_try_echo=$ac_try;; 10418esac 10419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10420 (eval "$ac_try") 2>&5 10421 ac_status=$? 10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10423 (exit $ac_status); }; }; then 10424 ac_cv_alignof_long=`cat conftest.val` 10425else 10426 echo "$as_me: program exited with status $ac_status" >&5 10427echo "$as_me: failed program was:" >&5 10428sed 's/^/| /' conftest.$ac_ext >&5 10429 10430( exit $ac_status ) 10431if test "$ac_cv_type_long" = yes; then 10432 { { echo "$as_me:$LINENO: error: cannot compute alignment of long 10433See \`config.log' for more details." >&5 10434echo "$as_me: error: cannot compute alignment of long 10435See \`config.log' for more details." >&2;} 10436 { (exit 77); exit 77; }; } 10437 else 10438 ac_cv_alignof_long=0 10439 fi 10440fi 10441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10442fi 10443rm -f conftest.val 10444fi 10445{ echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5 10446echo "${ECHO_T}$ac_cv_alignof_long" >&6; } 10447 10448 10449 10450cat >>confdefs.h <<_ACEOF 10451#define ALIGNOF_LONG $ac_cv_alignof_long 10452_ACEOF 10453 10454 10455{ echo "$as_me:$LINENO: checking for long long" >&5 10456echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 10457if test "${ac_cv_type_long_long+set}" = set; then 10458 echo $ECHO_N "(cached) $ECHO_C" >&6 10459else 10460 cat >conftest.$ac_ext <<_ACEOF 10461/* confdefs.h. */ 10462_ACEOF 10463cat confdefs.h >>conftest.$ac_ext 10464cat >>conftest.$ac_ext <<_ACEOF 10465/* end confdefs.h. */ 10466$ac_includes_default 10467typedef long long ac__type_new_; 10468int 10469main () 10470{ 10471if ((ac__type_new_ *) 0) 10472 return 0; 10473if (sizeof (ac__type_new_)) 10474 return 0; 10475 ; 10476 return 0; 10477} 10478_ACEOF 10479rm -f conftest.$ac_objext 10480if { (ac_try="$ac_compile" 10481case "(($ac_try" in 10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10483 *) ac_try_echo=$ac_try;; 10484esac 10485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10486 (eval "$ac_compile") 2>conftest.er1 10487 ac_status=$? 10488 grep -v '^ *+' conftest.er1 >conftest.err 10489 rm -f conftest.er1 10490 cat conftest.err >&5 10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10492 (exit $ac_status); } && { 10493 test -z "$ac_c_werror_flag" || 10494 test ! -s conftest.err 10495 } && test -s conftest.$ac_objext; then 10496 ac_cv_type_long_long=yes 10497else 10498 echo "$as_me: failed program was:" >&5 10499sed 's/^/| /' conftest.$ac_ext >&5 10500 10501 ac_cv_type_long_long=no 10502fi 10503 10504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10505fi 10506{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 10507echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 10508if test $ac_cv_type_long_long = yes; then 10509 10510cat >>confdefs.h <<_ACEOF 10511#define HAVE_LONG_LONG 1 10512_ACEOF 10513 10514 10515fi 10516 10517{ echo "$as_me:$LINENO: checking for long long" >&5 10518echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 10519if test "${ac_cv_type_long_long+set}" = set; then 10520 echo $ECHO_N "(cached) $ECHO_C" >&6 10521else 10522 cat >conftest.$ac_ext <<_ACEOF 10523/* confdefs.h. */ 10524_ACEOF 10525cat confdefs.h >>conftest.$ac_ext 10526cat >>conftest.$ac_ext <<_ACEOF 10527/* end confdefs.h. */ 10528$ac_includes_default 10529typedef long long ac__type_new_; 10530int 10531main () 10532{ 10533if ((ac__type_new_ *) 0) 10534 return 0; 10535if (sizeof (ac__type_new_)) 10536 return 0; 10537 ; 10538 return 0; 10539} 10540_ACEOF 10541rm -f conftest.$ac_objext 10542if { (ac_try="$ac_compile" 10543case "(($ac_try" in 10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10545 *) ac_try_echo=$ac_try;; 10546esac 10547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10548 (eval "$ac_compile") 2>conftest.er1 10549 ac_status=$? 10550 grep -v '^ *+' conftest.er1 >conftest.err 10551 rm -f conftest.er1 10552 cat conftest.err >&5 10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10554 (exit $ac_status); } && { 10555 test -z "$ac_c_werror_flag" || 10556 test ! -s conftest.err 10557 } && test -s conftest.$ac_objext; then 10558 ac_cv_type_long_long=yes 10559else 10560 echo "$as_me: failed program was:" >&5 10561sed 's/^/| /' conftest.$ac_ext >&5 10562 10563 ac_cv_type_long_long=no 10564fi 10565 10566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10567fi 10568{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 10569echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 10570 10571# The cast to long int works around a bug in the HP C Compiler 10572# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10573# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10574# This bug is HP SR number 8606223364. 10575{ echo "$as_me:$LINENO: checking size of long long" >&5 10576echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } 10577if test "${ac_cv_sizeof_long_long+set}" = set; then 10578 echo $ECHO_N "(cached) $ECHO_C" >&6 10579else 10580 if test "$cross_compiling" = yes; then 10581 # Depending upon the size, compute the lo and hi bounds. 10582cat >conftest.$ac_ext <<_ACEOF 10583/* confdefs.h. */ 10584_ACEOF 10585cat confdefs.h >>conftest.$ac_ext 10586cat >>conftest.$ac_ext <<_ACEOF 10587/* end confdefs.h. */ 10588$ac_includes_default 10589 typedef long long ac__type_sizeof_; 10590int 10591main () 10592{ 10593static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 10594test_array [0] = 0 10595 10596 ; 10597 return 0; 10598} 10599_ACEOF 10600rm -f conftest.$ac_objext 10601if { (ac_try="$ac_compile" 10602case "(($ac_try" in 10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10604 *) ac_try_echo=$ac_try;; 10605esac 10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10607 (eval "$ac_compile") 2>conftest.er1 10608 ac_status=$? 10609 grep -v '^ *+' conftest.er1 >conftest.err 10610 rm -f conftest.er1 10611 cat conftest.err >&5 10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10613 (exit $ac_status); } && { 10614 test -z "$ac_c_werror_flag" || 10615 test ! -s conftest.err 10616 } && test -s conftest.$ac_objext; then 10617 ac_lo=0 ac_mid=0 10618 while :; do 10619 cat >conftest.$ac_ext <<_ACEOF 10620/* confdefs.h. */ 10621_ACEOF 10622cat confdefs.h >>conftest.$ac_ext 10623cat >>conftest.$ac_ext <<_ACEOF 10624/* end confdefs.h. */ 10625$ac_includes_default 10626 typedef long long ac__type_sizeof_; 10627int 10628main () 10629{ 10630static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 10631test_array [0] = 0 10632 10633 ; 10634 return 0; 10635} 10636_ACEOF 10637rm -f conftest.$ac_objext 10638if { (ac_try="$ac_compile" 10639case "(($ac_try" in 10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10641 *) ac_try_echo=$ac_try;; 10642esac 10643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10644 (eval "$ac_compile") 2>conftest.er1 10645 ac_status=$? 10646 grep -v '^ *+' conftest.er1 >conftest.err 10647 rm -f conftest.er1 10648 cat conftest.err >&5 10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10650 (exit $ac_status); } && { 10651 test -z "$ac_c_werror_flag" || 10652 test ! -s conftest.err 10653 } && test -s conftest.$ac_objext; then 10654 ac_hi=$ac_mid; break 10655else 10656 echo "$as_me: failed program was:" >&5 10657sed 's/^/| /' conftest.$ac_ext >&5 10658 10659 ac_lo=`expr $ac_mid + 1` 10660 if test $ac_lo -le $ac_mid; then 10661 ac_lo= ac_hi= 10662 break 10663 fi 10664 ac_mid=`expr 2 '*' $ac_mid + 1` 10665fi 10666 10667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10668 done 10669else 10670 echo "$as_me: failed program was:" >&5 10671sed 's/^/| /' conftest.$ac_ext >&5 10672 10673 cat >conftest.$ac_ext <<_ACEOF 10674/* confdefs.h. */ 10675_ACEOF 10676cat confdefs.h >>conftest.$ac_ext 10677cat >>conftest.$ac_ext <<_ACEOF 10678/* end confdefs.h. */ 10679$ac_includes_default 10680 typedef long long ac__type_sizeof_; 10681int 10682main () 10683{ 10684static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 10685test_array [0] = 0 10686 10687 ; 10688 return 0; 10689} 10690_ACEOF 10691rm -f conftest.$ac_objext 10692if { (ac_try="$ac_compile" 10693case "(($ac_try" in 10694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10695 *) ac_try_echo=$ac_try;; 10696esac 10697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10698 (eval "$ac_compile") 2>conftest.er1 10699 ac_status=$? 10700 grep -v '^ *+' conftest.er1 >conftest.err 10701 rm -f conftest.er1 10702 cat conftest.err >&5 10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10704 (exit $ac_status); } && { 10705 test -z "$ac_c_werror_flag" || 10706 test ! -s conftest.err 10707 } && test -s conftest.$ac_objext; then 10708 ac_hi=-1 ac_mid=-1 10709 while :; do 10710 cat >conftest.$ac_ext <<_ACEOF 10711/* confdefs.h. */ 10712_ACEOF 10713cat confdefs.h >>conftest.$ac_ext 10714cat >>conftest.$ac_ext <<_ACEOF 10715/* end confdefs.h. */ 10716$ac_includes_default 10717 typedef long long ac__type_sizeof_; 10718int 10719main () 10720{ 10721static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 10722test_array [0] = 0 10723 10724 ; 10725 return 0; 10726} 10727_ACEOF 10728rm -f conftest.$ac_objext 10729if { (ac_try="$ac_compile" 10730case "(($ac_try" in 10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10732 *) ac_try_echo=$ac_try;; 10733esac 10734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10735 (eval "$ac_compile") 2>conftest.er1 10736 ac_status=$? 10737 grep -v '^ *+' conftest.er1 >conftest.err 10738 rm -f conftest.er1 10739 cat conftest.err >&5 10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10741 (exit $ac_status); } && { 10742 test -z "$ac_c_werror_flag" || 10743 test ! -s conftest.err 10744 } && test -s conftest.$ac_objext; then 10745 ac_lo=$ac_mid; break 10746else 10747 echo "$as_me: failed program was:" >&5 10748sed 's/^/| /' conftest.$ac_ext >&5 10749 10750 ac_hi=`expr '(' $ac_mid ')' - 1` 10751 if test $ac_mid -le $ac_hi; then 10752 ac_lo= ac_hi= 10753 break 10754 fi 10755 ac_mid=`expr 2 '*' $ac_mid` 10756fi 10757 10758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10759 done 10760else 10761 echo "$as_me: failed program was:" >&5 10762sed 's/^/| /' conftest.$ac_ext >&5 10763 10764 ac_lo= ac_hi= 10765fi 10766 10767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10768fi 10769 10770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10771# Binary search between lo and hi bounds. 10772while test "x$ac_lo" != "x$ac_hi"; do 10773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 10774 cat >conftest.$ac_ext <<_ACEOF 10775/* confdefs.h. */ 10776_ACEOF 10777cat confdefs.h >>conftest.$ac_ext 10778cat >>conftest.$ac_ext <<_ACEOF 10779/* end confdefs.h. */ 10780$ac_includes_default 10781 typedef long long ac__type_sizeof_; 10782int 10783main () 10784{ 10785static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 10786test_array [0] = 0 10787 10788 ; 10789 return 0; 10790} 10791_ACEOF 10792rm -f conftest.$ac_objext 10793if { (ac_try="$ac_compile" 10794case "(($ac_try" in 10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10796 *) ac_try_echo=$ac_try;; 10797esac 10798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10799 (eval "$ac_compile") 2>conftest.er1 10800 ac_status=$? 10801 grep -v '^ *+' conftest.er1 >conftest.err 10802 rm -f conftest.er1 10803 cat conftest.err >&5 10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10805 (exit $ac_status); } && { 10806 test -z "$ac_c_werror_flag" || 10807 test ! -s conftest.err 10808 } && test -s conftest.$ac_objext; then 10809 ac_hi=$ac_mid 10810else 10811 echo "$as_me: failed program was:" >&5 10812sed 's/^/| /' conftest.$ac_ext >&5 10813 10814 ac_lo=`expr '(' $ac_mid ')' + 1` 10815fi 10816 10817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10818done 10819case $ac_lo in 10820?*) ac_cv_sizeof_long_long=$ac_lo;; 10821'') if test "$ac_cv_type_long_long" = yes; then 10822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 10823See \`config.log' for more details." >&5 10824echo "$as_me: error: cannot compute sizeof (long long) 10825See \`config.log' for more details." >&2;} 10826 { (exit 77); exit 77; }; } 10827 else 10828 ac_cv_sizeof_long_long=0 10829 fi ;; 10830esac 10831else 10832 cat >conftest.$ac_ext <<_ACEOF 10833/* confdefs.h. */ 10834_ACEOF 10835cat confdefs.h >>conftest.$ac_ext 10836cat >>conftest.$ac_ext <<_ACEOF 10837/* end confdefs.h. */ 10838$ac_includes_default 10839 typedef long long ac__type_sizeof_; 10840static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 10841static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 10842#include <stdio.h> 10843#include <stdlib.h> 10844int 10845main () 10846{ 10847 10848 FILE *f = fopen ("conftest.val", "w"); 10849 if (! f) 10850 return 1; 10851 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 10852 { 10853 long int i = longval (); 10854 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 10855 return 1; 10856 fprintf (f, "%ld\n", i); 10857 } 10858 else 10859 { 10860 unsigned long int i = ulongval (); 10861 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 10862 return 1; 10863 fprintf (f, "%lu\n", i); 10864 } 10865 return ferror (f) || fclose (f) != 0; 10866 10867 ; 10868 return 0; 10869} 10870_ACEOF 10871rm -f conftest$ac_exeext 10872if { (ac_try="$ac_link" 10873case "(($ac_try" in 10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10875 *) ac_try_echo=$ac_try;; 10876esac 10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10878 (eval "$ac_link") 2>&5 10879 ac_status=$? 10880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10882 { (case "(($ac_try" in 10883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10884 *) ac_try_echo=$ac_try;; 10885esac 10886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10887 (eval "$ac_try") 2>&5 10888 ac_status=$? 10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10890 (exit $ac_status); }; }; then 10891 ac_cv_sizeof_long_long=`cat conftest.val` 10892else 10893 echo "$as_me: program exited with status $ac_status" >&5 10894echo "$as_me: failed program was:" >&5 10895sed 's/^/| /' conftest.$ac_ext >&5 10896 10897( exit $ac_status ) 10898if test "$ac_cv_type_long_long" = yes; then 10899 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) 10900See \`config.log' for more details." >&5 10901echo "$as_me: error: cannot compute sizeof (long long) 10902See \`config.log' for more details." >&2;} 10903 { (exit 77); exit 77; }; } 10904 else 10905 ac_cv_sizeof_long_long=0 10906 fi 10907fi 10908rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10909fi 10910rm -f conftest.val 10911fi 10912{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 10913echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } 10914 10915 10916 10917cat >>confdefs.h <<_ACEOF 10918#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 10919_ACEOF 10920 10921 10922{ echo "$as_me:$LINENO: checking for long long" >&5 10923echo $ECHO_N "checking for long long... $ECHO_C" >&6; } 10924if test "${ac_cv_type_long_long+set}" = set; then 10925 echo $ECHO_N "(cached) $ECHO_C" >&6 10926else 10927 cat >conftest.$ac_ext <<_ACEOF 10928/* confdefs.h. */ 10929_ACEOF 10930cat confdefs.h >>conftest.$ac_ext 10931cat >>conftest.$ac_ext <<_ACEOF 10932/* end confdefs.h. */ 10933$ac_includes_default 10934typedef long long ac__type_new_; 10935int 10936main () 10937{ 10938if ((ac__type_new_ *) 0) 10939 return 0; 10940if (sizeof (ac__type_new_)) 10941 return 0; 10942 ; 10943 return 0; 10944} 10945_ACEOF 10946rm -f conftest.$ac_objext 10947if { (ac_try="$ac_compile" 10948case "(($ac_try" in 10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10950 *) ac_try_echo=$ac_try;; 10951esac 10952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 10953 (eval "$ac_compile") 2>conftest.er1 10954 ac_status=$? 10955 grep -v '^ *+' conftest.er1 >conftest.err 10956 rm -f conftest.er1 10957 cat conftest.err >&5 10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10959 (exit $ac_status); } && { 10960 test -z "$ac_c_werror_flag" || 10961 test ! -s conftest.err 10962 } && test -s conftest.$ac_objext; then 10963 ac_cv_type_long_long=yes 10964else 10965 echo "$as_me: failed program was:" >&5 10966sed 's/^/| /' conftest.$ac_ext >&5 10967 10968 ac_cv_type_long_long=no 10969fi 10970 10971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10972fi 10973{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 10974echo "${ECHO_T}$ac_cv_type_long_long" >&6; } 10975 10976# The cast to long int works around a bug in the HP C Compiler, 10977# see AC_CHECK_SIZEOF for more information. 10978{ echo "$as_me:$LINENO: checking alignment of long long" >&5 10979echo $ECHO_N "checking alignment of long long... $ECHO_C" >&6; } 10980if test "${ac_cv_alignof_long_long+set}" = set; then 10981 echo $ECHO_N "(cached) $ECHO_C" >&6 10982else 10983 if test "$cross_compiling" = yes; then 10984 # Depending upon the size, compute the lo and hi bounds. 10985cat >conftest.$ac_ext <<_ACEOF 10986/* confdefs.h. */ 10987_ACEOF 10988cat confdefs.h >>conftest.$ac_ext 10989cat >>conftest.$ac_ext <<_ACEOF 10990/* end confdefs.h. */ 10991$ac_includes_default 10992#ifndef offsetof 10993# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 10994#endif 10995typedef struct { char x; long long y; } ac__type_alignof_; 10996int 10997main () 10998{ 10999static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; 11000test_array [0] = 0 11001 11002 ; 11003 return 0; 11004} 11005_ACEOF 11006rm -f conftest.$ac_objext 11007if { (ac_try="$ac_compile" 11008case "(($ac_try" in 11009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11010 *) ac_try_echo=$ac_try;; 11011esac 11012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11013 (eval "$ac_compile") 2>conftest.er1 11014 ac_status=$? 11015 grep -v '^ *+' conftest.er1 >conftest.err 11016 rm -f conftest.er1 11017 cat conftest.err >&5 11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11019 (exit $ac_status); } && { 11020 test -z "$ac_c_werror_flag" || 11021 test ! -s conftest.err 11022 } && test -s conftest.$ac_objext; then 11023 ac_lo=0 ac_mid=0 11024 while :; do 11025 cat >conftest.$ac_ext <<_ACEOF 11026/* confdefs.h. */ 11027_ACEOF 11028cat confdefs.h >>conftest.$ac_ext 11029cat >>conftest.$ac_ext <<_ACEOF 11030/* end confdefs.h. */ 11031$ac_includes_default 11032#ifndef offsetof 11033# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 11034#endif 11035typedef struct { char x; long long y; } ac__type_alignof_; 11036int 11037main () 11038{ 11039static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 11040test_array [0] = 0 11041 11042 ; 11043 return 0; 11044} 11045_ACEOF 11046rm -f conftest.$ac_objext 11047if { (ac_try="$ac_compile" 11048case "(($ac_try" in 11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11050 *) ac_try_echo=$ac_try;; 11051esac 11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11053 (eval "$ac_compile") 2>conftest.er1 11054 ac_status=$? 11055 grep -v '^ *+' conftest.er1 >conftest.err 11056 rm -f conftest.er1 11057 cat conftest.err >&5 11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11059 (exit $ac_status); } && { 11060 test -z "$ac_c_werror_flag" || 11061 test ! -s conftest.err 11062 } && test -s conftest.$ac_objext; then 11063 ac_hi=$ac_mid; break 11064else 11065 echo "$as_me: failed program was:" >&5 11066sed 's/^/| /' conftest.$ac_ext >&5 11067 11068 ac_lo=`expr $ac_mid + 1` 11069 if test $ac_lo -le $ac_mid; then 11070 ac_lo= ac_hi= 11071 break 11072 fi 11073 ac_mid=`expr 2 '*' $ac_mid + 1` 11074fi 11075 11076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11077 done 11078else 11079 echo "$as_me: failed program was:" >&5 11080sed 's/^/| /' conftest.$ac_ext >&5 11081 11082 cat >conftest.$ac_ext <<_ACEOF 11083/* confdefs.h. */ 11084_ACEOF 11085cat confdefs.h >>conftest.$ac_ext 11086cat >>conftest.$ac_ext <<_ACEOF 11087/* end confdefs.h. */ 11088$ac_includes_default 11089#ifndef offsetof 11090# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 11091#endif 11092typedef struct { char x; long long y; } ac__type_alignof_; 11093int 11094main () 11095{ 11096static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)]; 11097test_array [0] = 0 11098 11099 ; 11100 return 0; 11101} 11102_ACEOF 11103rm -f conftest.$ac_objext 11104if { (ac_try="$ac_compile" 11105case "(($ac_try" in 11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11107 *) ac_try_echo=$ac_try;; 11108esac 11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11110 (eval "$ac_compile") 2>conftest.er1 11111 ac_status=$? 11112 grep -v '^ *+' conftest.er1 >conftest.err 11113 rm -f conftest.er1 11114 cat conftest.err >&5 11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11116 (exit $ac_status); } && { 11117 test -z "$ac_c_werror_flag" || 11118 test ! -s conftest.err 11119 } && test -s conftest.$ac_objext; then 11120 ac_hi=-1 ac_mid=-1 11121 while :; do 11122 cat >conftest.$ac_ext <<_ACEOF 11123/* confdefs.h. */ 11124_ACEOF 11125cat confdefs.h >>conftest.$ac_ext 11126cat >>conftest.$ac_ext <<_ACEOF 11127/* end confdefs.h. */ 11128$ac_includes_default 11129#ifndef offsetof 11130# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 11131#endif 11132typedef struct { char x; long long y; } ac__type_alignof_; 11133int 11134main () 11135{ 11136static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)]; 11137test_array [0] = 0 11138 11139 ; 11140 return 0; 11141} 11142_ACEOF 11143rm -f conftest.$ac_objext 11144if { (ac_try="$ac_compile" 11145case "(($ac_try" in 11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11147 *) ac_try_echo=$ac_try;; 11148esac 11149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11150 (eval "$ac_compile") 2>conftest.er1 11151 ac_status=$? 11152 grep -v '^ *+' conftest.er1 >conftest.err 11153 rm -f conftest.er1 11154 cat conftest.err >&5 11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11156 (exit $ac_status); } && { 11157 test -z "$ac_c_werror_flag" || 11158 test ! -s conftest.err 11159 } && test -s conftest.$ac_objext; then 11160 ac_lo=$ac_mid; break 11161else 11162 echo "$as_me: failed program was:" >&5 11163sed 's/^/| /' conftest.$ac_ext >&5 11164 11165 ac_hi=`expr '(' $ac_mid ')' - 1` 11166 if test $ac_mid -le $ac_hi; then 11167 ac_lo= ac_hi= 11168 break 11169 fi 11170 ac_mid=`expr 2 '*' $ac_mid` 11171fi 11172 11173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11174 done 11175else 11176 echo "$as_me: failed program was:" >&5 11177sed 's/^/| /' conftest.$ac_ext >&5 11178 11179 ac_lo= ac_hi= 11180fi 11181 11182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11183fi 11184 11185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11186# Binary search between lo and hi bounds. 11187while test "x$ac_lo" != "x$ac_hi"; do 11188 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11189 cat >conftest.$ac_ext <<_ACEOF 11190/* confdefs.h. */ 11191_ACEOF 11192cat confdefs.h >>conftest.$ac_ext 11193cat >>conftest.$ac_ext <<_ACEOF 11194/* end confdefs.h. */ 11195$ac_includes_default 11196#ifndef offsetof 11197# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 11198#endif 11199typedef struct { char x; long long y; } ac__type_alignof_; 11200int 11201main () 11202{ 11203static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 11204test_array [0] = 0 11205 11206 ; 11207 return 0; 11208} 11209_ACEOF 11210rm -f conftest.$ac_objext 11211if { (ac_try="$ac_compile" 11212case "(($ac_try" in 11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11214 *) ac_try_echo=$ac_try;; 11215esac 11216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11217 (eval "$ac_compile") 2>conftest.er1 11218 ac_status=$? 11219 grep -v '^ *+' conftest.er1 >conftest.err 11220 rm -f conftest.er1 11221 cat conftest.err >&5 11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11223 (exit $ac_status); } && { 11224 test -z "$ac_c_werror_flag" || 11225 test ! -s conftest.err 11226 } && test -s conftest.$ac_objext; then 11227 ac_hi=$ac_mid 11228else 11229 echo "$as_me: failed program was:" >&5 11230sed 's/^/| /' conftest.$ac_ext >&5 11231 11232 ac_lo=`expr '(' $ac_mid ')' + 1` 11233fi 11234 11235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11236done 11237case $ac_lo in 11238?*) ac_cv_alignof_long_long=$ac_lo;; 11239'') if test "$ac_cv_type_long_long" = yes; then 11240 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long 11241See \`config.log' for more details." >&5 11242echo "$as_me: error: cannot compute alignment of long long 11243See \`config.log' for more details." >&2;} 11244 { (exit 77); exit 77; }; } 11245 else 11246 ac_cv_alignof_long_long=0 11247 fi ;; 11248esac 11249else 11250 cat >conftest.$ac_ext <<_ACEOF 11251/* confdefs.h. */ 11252_ACEOF 11253cat confdefs.h >>conftest.$ac_ext 11254cat >>conftest.$ac_ext <<_ACEOF 11255/* end confdefs.h. */ 11256$ac_includes_default 11257#ifndef offsetof 11258# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 11259#endif 11260typedef struct { char x; long long y; } ac__type_alignof_; 11261static long int longval () { return (long int) offsetof (ac__type_alignof_, y); } 11262static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); } 11263#include <stdio.h> 11264#include <stdlib.h> 11265int 11266main () 11267{ 11268 11269 FILE *f = fopen ("conftest.val", "w"); 11270 if (! f) 11271 return 1; 11272 if (((long int) offsetof (ac__type_alignof_, y)) < 0) 11273 { 11274 long int i = longval (); 11275 if (i != ((long int) offsetof (ac__type_alignof_, y))) 11276 return 1; 11277 fprintf (f, "%ld\n", i); 11278 } 11279 else 11280 { 11281 unsigned long int i = ulongval (); 11282 if (i != ((long int) offsetof (ac__type_alignof_, y))) 11283 return 1; 11284 fprintf (f, "%lu\n", i); 11285 } 11286 return ferror (f) || fclose (f) != 0; 11287 11288 ; 11289 return 0; 11290} 11291_ACEOF 11292rm -f conftest$ac_exeext 11293if { (ac_try="$ac_link" 11294case "(($ac_try" in 11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11296 *) ac_try_echo=$ac_try;; 11297esac 11298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11299 (eval "$ac_link") 2>&5 11300 ac_status=$? 11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11303 { (case "(($ac_try" in 11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11305 *) ac_try_echo=$ac_try;; 11306esac 11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11308 (eval "$ac_try") 2>&5 11309 ac_status=$? 11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11311 (exit $ac_status); }; }; then 11312 ac_cv_alignof_long_long=`cat conftest.val` 11313else 11314 echo "$as_me: program exited with status $ac_status" >&5 11315echo "$as_me: failed program was:" >&5 11316sed 's/^/| /' conftest.$ac_ext >&5 11317 11318( exit $ac_status ) 11319if test "$ac_cv_type_long_long" = yes; then 11320 { { echo "$as_me:$LINENO: error: cannot compute alignment of long long 11321See \`config.log' for more details." >&5 11322echo "$as_me: error: cannot compute alignment of long long 11323See \`config.log' for more details." >&2;} 11324 { (exit 77); exit 77; }; } 11325 else 11326 ac_cv_alignof_long_long=0 11327 fi 11328fi 11329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11330fi 11331rm -f conftest.val 11332fi 11333{ echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long" >&5 11334echo "${ECHO_T}$ac_cv_alignof_long_long" >&6; } 11335 11336 11337 11338cat >>confdefs.h <<_ACEOF 11339#define ALIGNOF_LONG_LONG $ac_cv_alignof_long_long 11340_ACEOF 11341 11342 11343{ echo "$as_me:$LINENO: checking for float" >&5 11344echo $ECHO_N "checking for float... $ECHO_C" >&6; } 11345if test "${ac_cv_type_float+set}" = set; then 11346 echo $ECHO_N "(cached) $ECHO_C" >&6 11347else 11348 cat >conftest.$ac_ext <<_ACEOF 11349/* confdefs.h. */ 11350_ACEOF 11351cat confdefs.h >>conftest.$ac_ext 11352cat >>conftest.$ac_ext <<_ACEOF 11353/* end confdefs.h. */ 11354$ac_includes_default 11355typedef float ac__type_new_; 11356int 11357main () 11358{ 11359if ((ac__type_new_ *) 0) 11360 return 0; 11361if (sizeof (ac__type_new_)) 11362 return 0; 11363 ; 11364 return 0; 11365} 11366_ACEOF 11367rm -f conftest.$ac_objext 11368if { (ac_try="$ac_compile" 11369case "(($ac_try" in 11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11371 *) ac_try_echo=$ac_try;; 11372esac 11373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11374 (eval "$ac_compile") 2>conftest.er1 11375 ac_status=$? 11376 grep -v '^ *+' conftest.er1 >conftest.err 11377 rm -f conftest.er1 11378 cat conftest.err >&5 11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11380 (exit $ac_status); } && { 11381 test -z "$ac_c_werror_flag" || 11382 test ! -s conftest.err 11383 } && test -s conftest.$ac_objext; then 11384 ac_cv_type_float=yes 11385else 11386 echo "$as_me: failed program was:" >&5 11387sed 's/^/| /' conftest.$ac_ext >&5 11388 11389 ac_cv_type_float=no 11390fi 11391 11392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11393fi 11394{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 11395echo "${ECHO_T}$ac_cv_type_float" >&6; } 11396 11397# The cast to long int works around a bug in the HP C Compiler 11398# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11399# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11400# This bug is HP SR number 8606223364. 11401{ echo "$as_me:$LINENO: checking size of float" >&5 11402echo $ECHO_N "checking size of float... $ECHO_C" >&6; } 11403if test "${ac_cv_sizeof_float+set}" = set; then 11404 echo $ECHO_N "(cached) $ECHO_C" >&6 11405else 11406 if test "$cross_compiling" = yes; then 11407 # Depending upon the size, compute the lo and hi bounds. 11408cat >conftest.$ac_ext <<_ACEOF 11409/* confdefs.h. */ 11410_ACEOF 11411cat confdefs.h >>conftest.$ac_ext 11412cat >>conftest.$ac_ext <<_ACEOF 11413/* end confdefs.h. */ 11414$ac_includes_default 11415 typedef float ac__type_sizeof_; 11416int 11417main () 11418{ 11419static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 11420test_array [0] = 0 11421 11422 ; 11423 return 0; 11424} 11425_ACEOF 11426rm -f conftest.$ac_objext 11427if { (ac_try="$ac_compile" 11428case "(($ac_try" in 11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11430 *) ac_try_echo=$ac_try;; 11431esac 11432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11433 (eval "$ac_compile") 2>conftest.er1 11434 ac_status=$? 11435 grep -v '^ *+' conftest.er1 >conftest.err 11436 rm -f conftest.er1 11437 cat conftest.err >&5 11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11439 (exit $ac_status); } && { 11440 test -z "$ac_c_werror_flag" || 11441 test ! -s conftest.err 11442 } && test -s conftest.$ac_objext; then 11443 ac_lo=0 ac_mid=0 11444 while :; do 11445 cat >conftest.$ac_ext <<_ACEOF 11446/* confdefs.h. */ 11447_ACEOF 11448cat confdefs.h >>conftest.$ac_ext 11449cat >>conftest.$ac_ext <<_ACEOF 11450/* end confdefs.h. */ 11451$ac_includes_default 11452 typedef float ac__type_sizeof_; 11453int 11454main () 11455{ 11456static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 11457test_array [0] = 0 11458 11459 ; 11460 return 0; 11461} 11462_ACEOF 11463rm -f conftest.$ac_objext 11464if { (ac_try="$ac_compile" 11465case "(($ac_try" in 11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11467 *) ac_try_echo=$ac_try;; 11468esac 11469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11470 (eval "$ac_compile") 2>conftest.er1 11471 ac_status=$? 11472 grep -v '^ *+' conftest.er1 >conftest.err 11473 rm -f conftest.er1 11474 cat conftest.err >&5 11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11476 (exit $ac_status); } && { 11477 test -z "$ac_c_werror_flag" || 11478 test ! -s conftest.err 11479 } && test -s conftest.$ac_objext; then 11480 ac_hi=$ac_mid; break 11481else 11482 echo "$as_me: failed program was:" >&5 11483sed 's/^/| /' conftest.$ac_ext >&5 11484 11485 ac_lo=`expr $ac_mid + 1` 11486 if test $ac_lo -le $ac_mid; then 11487 ac_lo= ac_hi= 11488 break 11489 fi 11490 ac_mid=`expr 2 '*' $ac_mid + 1` 11491fi 11492 11493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11494 done 11495else 11496 echo "$as_me: failed program was:" >&5 11497sed 's/^/| /' conftest.$ac_ext >&5 11498 11499 cat >conftest.$ac_ext <<_ACEOF 11500/* confdefs.h. */ 11501_ACEOF 11502cat confdefs.h >>conftest.$ac_ext 11503cat >>conftest.$ac_ext <<_ACEOF 11504/* end confdefs.h. */ 11505$ac_includes_default 11506 typedef float ac__type_sizeof_; 11507int 11508main () 11509{ 11510static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 11511test_array [0] = 0 11512 11513 ; 11514 return 0; 11515} 11516_ACEOF 11517rm -f conftest.$ac_objext 11518if { (ac_try="$ac_compile" 11519case "(($ac_try" in 11520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11521 *) ac_try_echo=$ac_try;; 11522esac 11523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11524 (eval "$ac_compile") 2>conftest.er1 11525 ac_status=$? 11526 grep -v '^ *+' conftest.er1 >conftest.err 11527 rm -f conftest.er1 11528 cat conftest.err >&5 11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11530 (exit $ac_status); } && { 11531 test -z "$ac_c_werror_flag" || 11532 test ! -s conftest.err 11533 } && test -s conftest.$ac_objext; then 11534 ac_hi=-1 ac_mid=-1 11535 while :; do 11536 cat >conftest.$ac_ext <<_ACEOF 11537/* confdefs.h. */ 11538_ACEOF 11539cat confdefs.h >>conftest.$ac_ext 11540cat >>conftest.$ac_ext <<_ACEOF 11541/* end confdefs.h. */ 11542$ac_includes_default 11543 typedef float ac__type_sizeof_; 11544int 11545main () 11546{ 11547static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 11548test_array [0] = 0 11549 11550 ; 11551 return 0; 11552} 11553_ACEOF 11554rm -f conftest.$ac_objext 11555if { (ac_try="$ac_compile" 11556case "(($ac_try" in 11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11558 *) ac_try_echo=$ac_try;; 11559esac 11560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11561 (eval "$ac_compile") 2>conftest.er1 11562 ac_status=$? 11563 grep -v '^ *+' conftest.er1 >conftest.err 11564 rm -f conftest.er1 11565 cat conftest.err >&5 11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11567 (exit $ac_status); } && { 11568 test -z "$ac_c_werror_flag" || 11569 test ! -s conftest.err 11570 } && test -s conftest.$ac_objext; then 11571 ac_lo=$ac_mid; break 11572else 11573 echo "$as_me: failed program was:" >&5 11574sed 's/^/| /' conftest.$ac_ext >&5 11575 11576 ac_hi=`expr '(' $ac_mid ')' - 1` 11577 if test $ac_mid -le $ac_hi; then 11578 ac_lo= ac_hi= 11579 break 11580 fi 11581 ac_mid=`expr 2 '*' $ac_mid` 11582fi 11583 11584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11585 done 11586else 11587 echo "$as_me: failed program was:" >&5 11588sed 's/^/| /' conftest.$ac_ext >&5 11589 11590 ac_lo= ac_hi= 11591fi 11592 11593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11594fi 11595 11596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11597# Binary search between lo and hi bounds. 11598while test "x$ac_lo" != "x$ac_hi"; do 11599 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 11600 cat >conftest.$ac_ext <<_ACEOF 11601/* confdefs.h. */ 11602_ACEOF 11603cat confdefs.h >>conftest.$ac_ext 11604cat >>conftest.$ac_ext <<_ACEOF 11605/* end confdefs.h. */ 11606$ac_includes_default 11607 typedef float ac__type_sizeof_; 11608int 11609main () 11610{ 11611static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 11612test_array [0] = 0 11613 11614 ; 11615 return 0; 11616} 11617_ACEOF 11618rm -f conftest.$ac_objext 11619if { (ac_try="$ac_compile" 11620case "(($ac_try" in 11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11622 *) ac_try_echo=$ac_try;; 11623esac 11624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11625 (eval "$ac_compile") 2>conftest.er1 11626 ac_status=$? 11627 grep -v '^ *+' conftest.er1 >conftest.err 11628 rm -f conftest.er1 11629 cat conftest.err >&5 11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11631 (exit $ac_status); } && { 11632 test -z "$ac_c_werror_flag" || 11633 test ! -s conftest.err 11634 } && test -s conftest.$ac_objext; then 11635 ac_hi=$ac_mid 11636else 11637 echo "$as_me: failed program was:" >&5 11638sed 's/^/| /' conftest.$ac_ext >&5 11639 11640 ac_lo=`expr '(' $ac_mid ')' + 1` 11641fi 11642 11643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11644done 11645case $ac_lo in 11646?*) ac_cv_sizeof_float=$ac_lo;; 11647'') if test "$ac_cv_type_float" = yes; then 11648 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) 11649See \`config.log' for more details." >&5 11650echo "$as_me: error: cannot compute sizeof (float) 11651See \`config.log' for more details." >&2;} 11652 { (exit 77); exit 77; }; } 11653 else 11654 ac_cv_sizeof_float=0 11655 fi ;; 11656esac 11657else 11658 cat >conftest.$ac_ext <<_ACEOF 11659/* confdefs.h. */ 11660_ACEOF 11661cat confdefs.h >>conftest.$ac_ext 11662cat >>conftest.$ac_ext <<_ACEOF 11663/* end confdefs.h. */ 11664$ac_includes_default 11665 typedef float ac__type_sizeof_; 11666static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 11667static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 11668#include <stdio.h> 11669#include <stdlib.h> 11670int 11671main () 11672{ 11673 11674 FILE *f = fopen ("conftest.val", "w"); 11675 if (! f) 11676 return 1; 11677 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 11678 { 11679 long int i = longval (); 11680 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 11681 return 1; 11682 fprintf (f, "%ld\n", i); 11683 } 11684 else 11685 { 11686 unsigned long int i = ulongval (); 11687 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 11688 return 1; 11689 fprintf (f, "%lu\n", i); 11690 } 11691 return ferror (f) || fclose (f) != 0; 11692 11693 ; 11694 return 0; 11695} 11696_ACEOF 11697rm -f conftest$ac_exeext 11698if { (ac_try="$ac_link" 11699case "(($ac_try" in 11700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11701 *) ac_try_echo=$ac_try;; 11702esac 11703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11704 (eval "$ac_link") 2>&5 11705 ac_status=$? 11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 11708 { (case "(($ac_try" in 11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11710 *) ac_try_echo=$ac_try;; 11711esac 11712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11713 (eval "$ac_try") 2>&5 11714 ac_status=$? 11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11716 (exit $ac_status); }; }; then 11717 ac_cv_sizeof_float=`cat conftest.val` 11718else 11719 echo "$as_me: program exited with status $ac_status" >&5 11720echo "$as_me: failed program was:" >&5 11721sed 's/^/| /' conftest.$ac_ext >&5 11722 11723( exit $ac_status ) 11724if test "$ac_cv_type_float" = yes; then 11725 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) 11726See \`config.log' for more details." >&5 11727echo "$as_me: error: cannot compute sizeof (float) 11728See \`config.log' for more details." >&2;} 11729 { (exit 77); exit 77; }; } 11730 else 11731 ac_cv_sizeof_float=0 11732 fi 11733fi 11734rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11735fi 11736rm -f conftest.val 11737fi 11738{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 11739echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } 11740 11741 11742 11743cat >>confdefs.h <<_ACEOF 11744#define SIZEOF_FLOAT $ac_cv_sizeof_float 11745_ACEOF 11746 11747 11748{ echo "$as_me:$LINENO: checking for float" >&5 11749echo $ECHO_N "checking for float... $ECHO_C" >&6; } 11750if test "${ac_cv_type_float+set}" = set; then 11751 echo $ECHO_N "(cached) $ECHO_C" >&6 11752else 11753 cat >conftest.$ac_ext <<_ACEOF 11754/* confdefs.h. */ 11755_ACEOF 11756cat confdefs.h >>conftest.$ac_ext 11757cat >>conftest.$ac_ext <<_ACEOF 11758/* end confdefs.h. */ 11759$ac_includes_default 11760typedef float ac__type_new_; 11761int 11762main () 11763{ 11764if ((ac__type_new_ *) 0) 11765 return 0; 11766if (sizeof (ac__type_new_)) 11767 return 0; 11768 ; 11769 return 0; 11770} 11771_ACEOF 11772rm -f conftest.$ac_objext 11773if { (ac_try="$ac_compile" 11774case "(($ac_try" in 11775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11776 *) ac_try_echo=$ac_try;; 11777esac 11778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11779 (eval "$ac_compile") 2>conftest.er1 11780 ac_status=$? 11781 grep -v '^ *+' conftest.er1 >conftest.err 11782 rm -f conftest.er1 11783 cat conftest.err >&5 11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11785 (exit $ac_status); } && { 11786 test -z "$ac_c_werror_flag" || 11787 test ! -s conftest.err 11788 } && test -s conftest.$ac_objext; then 11789 ac_cv_type_float=yes 11790else 11791 echo "$as_me: failed program was:" >&5 11792sed 's/^/| /' conftest.$ac_ext >&5 11793 11794 ac_cv_type_float=no 11795fi 11796 11797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11798fi 11799{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 11800echo "${ECHO_T}$ac_cv_type_float" >&6; } 11801 11802# The cast to long int works around a bug in the HP C Compiler, 11803# see AC_CHECK_SIZEOF for more information. 11804{ echo "$as_me:$LINENO: checking alignment of float" >&5 11805echo $ECHO_N "checking alignment of float... $ECHO_C" >&6; } 11806if test "${ac_cv_alignof_float+set}" = set; then 11807 echo $ECHO_N "(cached) $ECHO_C" >&6 11808else 11809 if test "$cross_compiling" = yes; then 11810 # Depending upon the size, compute the lo and hi bounds. 11811cat >conftest.$ac_ext <<_ACEOF 11812/* confdefs.h. */ 11813_ACEOF 11814cat confdefs.h >>conftest.$ac_ext 11815cat >>conftest.$ac_ext <<_ACEOF 11816/* end confdefs.h. */ 11817$ac_includes_default 11818#ifndef offsetof 11819# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 11820#endif 11821typedef struct { char x; float y; } ac__type_alignof_; 11822int 11823main () 11824{ 11825static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; 11826test_array [0] = 0 11827 11828 ; 11829 return 0; 11830} 11831_ACEOF 11832rm -f conftest.$ac_objext 11833if { (ac_try="$ac_compile" 11834case "(($ac_try" in 11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11836 *) ac_try_echo=$ac_try;; 11837esac 11838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11839 (eval "$ac_compile") 2>conftest.er1 11840 ac_status=$? 11841 grep -v '^ *+' conftest.er1 >conftest.err 11842 rm -f conftest.er1 11843 cat conftest.err >&5 11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11845 (exit $ac_status); } && { 11846 test -z "$ac_c_werror_flag" || 11847 test ! -s conftest.err 11848 } && test -s conftest.$ac_objext; then 11849 ac_lo=0 ac_mid=0 11850 while :; do 11851 cat >conftest.$ac_ext <<_ACEOF 11852/* confdefs.h. */ 11853_ACEOF 11854cat confdefs.h >>conftest.$ac_ext 11855cat >>conftest.$ac_ext <<_ACEOF 11856/* end confdefs.h. */ 11857$ac_includes_default 11858#ifndef offsetof 11859# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 11860#endif 11861typedef struct { char x; float y; } ac__type_alignof_; 11862int 11863main () 11864{ 11865static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 11866test_array [0] = 0 11867 11868 ; 11869 return 0; 11870} 11871_ACEOF 11872rm -f conftest.$ac_objext 11873if { (ac_try="$ac_compile" 11874case "(($ac_try" in 11875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11876 *) ac_try_echo=$ac_try;; 11877esac 11878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11879 (eval "$ac_compile") 2>conftest.er1 11880 ac_status=$? 11881 grep -v '^ *+' conftest.er1 >conftest.err 11882 rm -f conftest.er1 11883 cat conftest.err >&5 11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11885 (exit $ac_status); } && { 11886 test -z "$ac_c_werror_flag" || 11887 test ! -s conftest.err 11888 } && test -s conftest.$ac_objext; then 11889 ac_hi=$ac_mid; break 11890else 11891 echo "$as_me: failed program was:" >&5 11892sed 's/^/| /' conftest.$ac_ext >&5 11893 11894 ac_lo=`expr $ac_mid + 1` 11895 if test $ac_lo -le $ac_mid; then 11896 ac_lo= ac_hi= 11897 break 11898 fi 11899 ac_mid=`expr 2 '*' $ac_mid + 1` 11900fi 11901 11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11903 done 11904else 11905 echo "$as_me: failed program was:" >&5 11906sed 's/^/| /' conftest.$ac_ext >&5 11907 11908 cat >conftest.$ac_ext <<_ACEOF 11909/* confdefs.h. */ 11910_ACEOF 11911cat confdefs.h >>conftest.$ac_ext 11912cat >>conftest.$ac_ext <<_ACEOF 11913/* end confdefs.h. */ 11914$ac_includes_default 11915#ifndef offsetof 11916# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 11917#endif 11918typedef struct { char x; float y; } ac__type_alignof_; 11919int 11920main () 11921{ 11922static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)]; 11923test_array [0] = 0 11924 11925 ; 11926 return 0; 11927} 11928_ACEOF 11929rm -f conftest.$ac_objext 11930if { (ac_try="$ac_compile" 11931case "(($ac_try" in 11932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11933 *) ac_try_echo=$ac_try;; 11934esac 11935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11936 (eval "$ac_compile") 2>conftest.er1 11937 ac_status=$? 11938 grep -v '^ *+' conftest.er1 >conftest.err 11939 rm -f conftest.er1 11940 cat conftest.err >&5 11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11942 (exit $ac_status); } && { 11943 test -z "$ac_c_werror_flag" || 11944 test ! -s conftest.err 11945 } && test -s conftest.$ac_objext; then 11946 ac_hi=-1 ac_mid=-1 11947 while :; do 11948 cat >conftest.$ac_ext <<_ACEOF 11949/* confdefs.h. */ 11950_ACEOF 11951cat confdefs.h >>conftest.$ac_ext 11952cat >>conftest.$ac_ext <<_ACEOF 11953/* end confdefs.h. */ 11954$ac_includes_default 11955#ifndef offsetof 11956# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 11957#endif 11958typedef struct { char x; float y; } ac__type_alignof_; 11959int 11960main () 11961{ 11962static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)]; 11963test_array [0] = 0 11964 11965 ; 11966 return 0; 11967} 11968_ACEOF 11969rm -f conftest.$ac_objext 11970if { (ac_try="$ac_compile" 11971case "(($ac_try" in 11972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11973 *) ac_try_echo=$ac_try;; 11974esac 11975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 11976 (eval "$ac_compile") 2>conftest.er1 11977 ac_status=$? 11978 grep -v '^ *+' conftest.er1 >conftest.err 11979 rm -f conftest.er1 11980 cat conftest.err >&5 11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11982 (exit $ac_status); } && { 11983 test -z "$ac_c_werror_flag" || 11984 test ! -s conftest.err 11985 } && test -s conftest.$ac_objext; then 11986 ac_lo=$ac_mid; break 11987else 11988 echo "$as_me: failed program was:" >&5 11989sed 's/^/| /' conftest.$ac_ext >&5 11990 11991 ac_hi=`expr '(' $ac_mid ')' - 1` 11992 if test $ac_mid -le $ac_hi; then 11993 ac_lo= ac_hi= 11994 break 11995 fi 11996 ac_mid=`expr 2 '*' $ac_mid` 11997fi 11998 11999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12000 done 12001else 12002 echo "$as_me: failed program was:" >&5 12003sed 's/^/| /' conftest.$ac_ext >&5 12004 12005 ac_lo= ac_hi= 12006fi 12007 12008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12009fi 12010 12011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12012# Binary search between lo and hi bounds. 12013while test "x$ac_lo" != "x$ac_hi"; do 12014 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12015 cat >conftest.$ac_ext <<_ACEOF 12016/* confdefs.h. */ 12017_ACEOF 12018cat confdefs.h >>conftest.$ac_ext 12019cat >>conftest.$ac_ext <<_ACEOF 12020/* end confdefs.h. */ 12021$ac_includes_default 12022#ifndef offsetof 12023# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 12024#endif 12025typedef struct { char x; float y; } ac__type_alignof_; 12026int 12027main () 12028{ 12029static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 12030test_array [0] = 0 12031 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036rm -f conftest.$ac_objext 12037if { (ac_try="$ac_compile" 12038case "(($ac_try" in 12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12040 *) ac_try_echo=$ac_try;; 12041esac 12042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12043 (eval "$ac_compile") 2>conftest.er1 12044 ac_status=$? 12045 grep -v '^ *+' conftest.er1 >conftest.err 12046 rm -f conftest.er1 12047 cat conftest.err >&5 12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12049 (exit $ac_status); } && { 12050 test -z "$ac_c_werror_flag" || 12051 test ! -s conftest.err 12052 } && test -s conftest.$ac_objext; then 12053 ac_hi=$ac_mid 12054else 12055 echo "$as_me: failed program was:" >&5 12056sed 's/^/| /' conftest.$ac_ext >&5 12057 12058 ac_lo=`expr '(' $ac_mid ')' + 1` 12059fi 12060 12061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12062done 12063case $ac_lo in 12064?*) ac_cv_alignof_float=$ac_lo;; 12065'') if test "$ac_cv_type_float" = yes; then 12066 { { echo "$as_me:$LINENO: error: cannot compute alignment of float 12067See \`config.log' for more details." >&5 12068echo "$as_me: error: cannot compute alignment of float 12069See \`config.log' for more details." >&2;} 12070 { (exit 77); exit 77; }; } 12071 else 12072 ac_cv_alignof_float=0 12073 fi ;; 12074esac 12075else 12076 cat >conftest.$ac_ext <<_ACEOF 12077/* confdefs.h. */ 12078_ACEOF 12079cat confdefs.h >>conftest.$ac_ext 12080cat >>conftest.$ac_ext <<_ACEOF 12081/* end confdefs.h. */ 12082$ac_includes_default 12083#ifndef offsetof 12084# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 12085#endif 12086typedef struct { char x; float y; } ac__type_alignof_; 12087static long int longval () { return (long int) offsetof (ac__type_alignof_, y); } 12088static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); } 12089#include <stdio.h> 12090#include <stdlib.h> 12091int 12092main () 12093{ 12094 12095 FILE *f = fopen ("conftest.val", "w"); 12096 if (! f) 12097 return 1; 12098 if (((long int) offsetof (ac__type_alignof_, y)) < 0) 12099 { 12100 long int i = longval (); 12101 if (i != ((long int) offsetof (ac__type_alignof_, y))) 12102 return 1; 12103 fprintf (f, "%ld\n", i); 12104 } 12105 else 12106 { 12107 unsigned long int i = ulongval (); 12108 if (i != ((long int) offsetof (ac__type_alignof_, y))) 12109 return 1; 12110 fprintf (f, "%lu\n", i); 12111 } 12112 return ferror (f) || fclose (f) != 0; 12113 12114 ; 12115 return 0; 12116} 12117_ACEOF 12118rm -f conftest$ac_exeext 12119if { (ac_try="$ac_link" 12120case "(($ac_try" in 12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12122 *) ac_try_echo=$ac_try;; 12123esac 12124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12125 (eval "$ac_link") 2>&5 12126 ac_status=$? 12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12129 { (case "(($ac_try" in 12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12131 *) ac_try_echo=$ac_try;; 12132esac 12133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12134 (eval "$ac_try") 2>&5 12135 ac_status=$? 12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12137 (exit $ac_status); }; }; then 12138 ac_cv_alignof_float=`cat conftest.val` 12139else 12140 echo "$as_me: program exited with status $ac_status" >&5 12141echo "$as_me: failed program was:" >&5 12142sed 's/^/| /' conftest.$ac_ext >&5 12143 12144( exit $ac_status ) 12145if test "$ac_cv_type_float" = yes; then 12146 { { echo "$as_me:$LINENO: error: cannot compute alignment of float 12147See \`config.log' for more details." >&5 12148echo "$as_me: error: cannot compute alignment of float 12149See \`config.log' for more details." >&2;} 12150 { (exit 77); exit 77; }; } 12151 else 12152 ac_cv_alignof_float=0 12153 fi 12154fi 12155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12156fi 12157rm -f conftest.val 12158fi 12159{ echo "$as_me:$LINENO: result: $ac_cv_alignof_float" >&5 12160echo "${ECHO_T}$ac_cv_alignof_float" >&6; } 12161 12162 12163 12164cat >>confdefs.h <<_ACEOF 12165#define ALIGNOF_FLOAT $ac_cv_alignof_float 12166_ACEOF 12167 12168 12169{ echo "$as_me:$LINENO: checking for double" >&5 12170echo $ECHO_N "checking for double... $ECHO_C" >&6; } 12171if test "${ac_cv_type_double+set}" = set; then 12172 echo $ECHO_N "(cached) $ECHO_C" >&6 12173else 12174 cat >conftest.$ac_ext <<_ACEOF 12175/* confdefs.h. */ 12176_ACEOF 12177cat confdefs.h >>conftest.$ac_ext 12178cat >>conftest.$ac_ext <<_ACEOF 12179/* end confdefs.h. */ 12180$ac_includes_default 12181typedef double ac__type_new_; 12182int 12183main () 12184{ 12185if ((ac__type_new_ *) 0) 12186 return 0; 12187if (sizeof (ac__type_new_)) 12188 return 0; 12189 ; 12190 return 0; 12191} 12192_ACEOF 12193rm -f conftest.$ac_objext 12194if { (ac_try="$ac_compile" 12195case "(($ac_try" in 12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12197 *) ac_try_echo=$ac_try;; 12198esac 12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12200 (eval "$ac_compile") 2>conftest.er1 12201 ac_status=$? 12202 grep -v '^ *+' conftest.er1 >conftest.err 12203 rm -f conftest.er1 12204 cat conftest.err >&5 12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12206 (exit $ac_status); } && { 12207 test -z "$ac_c_werror_flag" || 12208 test ! -s conftest.err 12209 } && test -s conftest.$ac_objext; then 12210 ac_cv_type_double=yes 12211else 12212 echo "$as_me: failed program was:" >&5 12213sed 's/^/| /' conftest.$ac_ext >&5 12214 12215 ac_cv_type_double=no 12216fi 12217 12218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12219fi 12220{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 12221echo "${ECHO_T}$ac_cv_type_double" >&6; } 12222 12223# The cast to long int works around a bug in the HP C Compiler 12224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12226# This bug is HP SR number 8606223364. 12227{ echo "$as_me:$LINENO: checking size of double" >&5 12228echo $ECHO_N "checking size of double... $ECHO_C" >&6; } 12229if test "${ac_cv_sizeof_double+set}" = set; then 12230 echo $ECHO_N "(cached) $ECHO_C" >&6 12231else 12232 if test "$cross_compiling" = yes; then 12233 # Depending upon the size, compute the lo and hi bounds. 12234cat >conftest.$ac_ext <<_ACEOF 12235/* confdefs.h. */ 12236_ACEOF 12237cat confdefs.h >>conftest.$ac_ext 12238cat >>conftest.$ac_ext <<_ACEOF 12239/* end confdefs.h. */ 12240$ac_includes_default 12241 typedef double ac__type_sizeof_; 12242int 12243main () 12244{ 12245static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 12246test_array [0] = 0 12247 12248 ; 12249 return 0; 12250} 12251_ACEOF 12252rm -f conftest.$ac_objext 12253if { (ac_try="$ac_compile" 12254case "(($ac_try" in 12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12256 *) ac_try_echo=$ac_try;; 12257esac 12258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12259 (eval "$ac_compile") 2>conftest.er1 12260 ac_status=$? 12261 grep -v '^ *+' conftest.er1 >conftest.err 12262 rm -f conftest.er1 12263 cat conftest.err >&5 12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12265 (exit $ac_status); } && { 12266 test -z "$ac_c_werror_flag" || 12267 test ! -s conftest.err 12268 } && test -s conftest.$ac_objext; then 12269 ac_lo=0 ac_mid=0 12270 while :; do 12271 cat >conftest.$ac_ext <<_ACEOF 12272/* confdefs.h. */ 12273_ACEOF 12274cat confdefs.h >>conftest.$ac_ext 12275cat >>conftest.$ac_ext <<_ACEOF 12276/* end confdefs.h. */ 12277$ac_includes_default 12278 typedef double ac__type_sizeof_; 12279int 12280main () 12281{ 12282static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12283test_array [0] = 0 12284 12285 ; 12286 return 0; 12287} 12288_ACEOF 12289rm -f conftest.$ac_objext 12290if { (ac_try="$ac_compile" 12291case "(($ac_try" in 12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12293 *) ac_try_echo=$ac_try;; 12294esac 12295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12296 (eval "$ac_compile") 2>conftest.er1 12297 ac_status=$? 12298 grep -v '^ *+' conftest.er1 >conftest.err 12299 rm -f conftest.er1 12300 cat conftest.err >&5 12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12302 (exit $ac_status); } && { 12303 test -z "$ac_c_werror_flag" || 12304 test ! -s conftest.err 12305 } && test -s conftest.$ac_objext; then 12306 ac_hi=$ac_mid; break 12307else 12308 echo "$as_me: failed program was:" >&5 12309sed 's/^/| /' conftest.$ac_ext >&5 12310 12311 ac_lo=`expr $ac_mid + 1` 12312 if test $ac_lo -le $ac_mid; then 12313 ac_lo= ac_hi= 12314 break 12315 fi 12316 ac_mid=`expr 2 '*' $ac_mid + 1` 12317fi 12318 12319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12320 done 12321else 12322 echo "$as_me: failed program was:" >&5 12323sed 's/^/| /' conftest.$ac_ext >&5 12324 12325 cat >conftest.$ac_ext <<_ACEOF 12326/* confdefs.h. */ 12327_ACEOF 12328cat confdefs.h >>conftest.$ac_ext 12329cat >>conftest.$ac_ext <<_ACEOF 12330/* end confdefs.h. */ 12331$ac_includes_default 12332 typedef double ac__type_sizeof_; 12333int 12334main () 12335{ 12336static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 12337test_array [0] = 0 12338 12339 ; 12340 return 0; 12341} 12342_ACEOF 12343rm -f conftest.$ac_objext 12344if { (ac_try="$ac_compile" 12345case "(($ac_try" in 12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12347 *) ac_try_echo=$ac_try;; 12348esac 12349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12350 (eval "$ac_compile") 2>conftest.er1 12351 ac_status=$? 12352 grep -v '^ *+' conftest.er1 >conftest.err 12353 rm -f conftest.er1 12354 cat conftest.err >&5 12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12356 (exit $ac_status); } && { 12357 test -z "$ac_c_werror_flag" || 12358 test ! -s conftest.err 12359 } && test -s conftest.$ac_objext; then 12360 ac_hi=-1 ac_mid=-1 12361 while :; do 12362 cat >conftest.$ac_ext <<_ACEOF 12363/* confdefs.h. */ 12364_ACEOF 12365cat confdefs.h >>conftest.$ac_ext 12366cat >>conftest.$ac_ext <<_ACEOF 12367/* end confdefs.h. */ 12368$ac_includes_default 12369 typedef double ac__type_sizeof_; 12370int 12371main () 12372{ 12373static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 12374test_array [0] = 0 12375 12376 ; 12377 return 0; 12378} 12379_ACEOF 12380rm -f conftest.$ac_objext 12381if { (ac_try="$ac_compile" 12382case "(($ac_try" in 12383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12384 *) ac_try_echo=$ac_try;; 12385esac 12386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12387 (eval "$ac_compile") 2>conftest.er1 12388 ac_status=$? 12389 grep -v '^ *+' conftest.er1 >conftest.err 12390 rm -f conftest.er1 12391 cat conftest.err >&5 12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12393 (exit $ac_status); } && { 12394 test -z "$ac_c_werror_flag" || 12395 test ! -s conftest.err 12396 } && test -s conftest.$ac_objext; then 12397 ac_lo=$ac_mid; break 12398else 12399 echo "$as_me: failed program was:" >&5 12400sed 's/^/| /' conftest.$ac_ext >&5 12401 12402 ac_hi=`expr '(' $ac_mid ')' - 1` 12403 if test $ac_mid -le $ac_hi; then 12404 ac_lo= ac_hi= 12405 break 12406 fi 12407 ac_mid=`expr 2 '*' $ac_mid` 12408fi 12409 12410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12411 done 12412else 12413 echo "$as_me: failed program was:" >&5 12414sed 's/^/| /' conftest.$ac_ext >&5 12415 12416 ac_lo= ac_hi= 12417fi 12418 12419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12420fi 12421 12422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12423# Binary search between lo and hi bounds. 12424while test "x$ac_lo" != "x$ac_hi"; do 12425 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12426 cat >conftest.$ac_ext <<_ACEOF 12427/* confdefs.h. */ 12428_ACEOF 12429cat confdefs.h >>conftest.$ac_ext 12430cat >>conftest.$ac_ext <<_ACEOF 12431/* end confdefs.h. */ 12432$ac_includes_default 12433 typedef double ac__type_sizeof_; 12434int 12435main () 12436{ 12437static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 12438test_array [0] = 0 12439 12440 ; 12441 return 0; 12442} 12443_ACEOF 12444rm -f conftest.$ac_objext 12445if { (ac_try="$ac_compile" 12446case "(($ac_try" in 12447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12448 *) ac_try_echo=$ac_try;; 12449esac 12450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12451 (eval "$ac_compile") 2>conftest.er1 12452 ac_status=$? 12453 grep -v '^ *+' conftest.er1 >conftest.err 12454 rm -f conftest.er1 12455 cat conftest.err >&5 12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12457 (exit $ac_status); } && { 12458 test -z "$ac_c_werror_flag" || 12459 test ! -s conftest.err 12460 } && test -s conftest.$ac_objext; then 12461 ac_hi=$ac_mid 12462else 12463 echo "$as_me: failed program was:" >&5 12464sed 's/^/| /' conftest.$ac_ext >&5 12465 12466 ac_lo=`expr '(' $ac_mid ')' + 1` 12467fi 12468 12469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12470done 12471case $ac_lo in 12472?*) ac_cv_sizeof_double=$ac_lo;; 12473'') if test "$ac_cv_type_double" = yes; then 12474 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) 12475See \`config.log' for more details." >&5 12476echo "$as_me: error: cannot compute sizeof (double) 12477See \`config.log' for more details." >&2;} 12478 { (exit 77); exit 77; }; } 12479 else 12480 ac_cv_sizeof_double=0 12481 fi ;; 12482esac 12483else 12484 cat >conftest.$ac_ext <<_ACEOF 12485/* confdefs.h. */ 12486_ACEOF 12487cat confdefs.h >>conftest.$ac_ext 12488cat >>conftest.$ac_ext <<_ACEOF 12489/* end confdefs.h. */ 12490$ac_includes_default 12491 typedef double ac__type_sizeof_; 12492static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 12493static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 12494#include <stdio.h> 12495#include <stdlib.h> 12496int 12497main () 12498{ 12499 12500 FILE *f = fopen ("conftest.val", "w"); 12501 if (! f) 12502 return 1; 12503 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 12504 { 12505 long int i = longval (); 12506 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12507 return 1; 12508 fprintf (f, "%ld\n", i); 12509 } 12510 else 12511 { 12512 unsigned long int i = ulongval (); 12513 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 12514 return 1; 12515 fprintf (f, "%lu\n", i); 12516 } 12517 return ferror (f) || fclose (f) != 0; 12518 12519 ; 12520 return 0; 12521} 12522_ACEOF 12523rm -f conftest$ac_exeext 12524if { (ac_try="$ac_link" 12525case "(($ac_try" in 12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12527 *) ac_try_echo=$ac_try;; 12528esac 12529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12530 (eval "$ac_link") 2>&5 12531 ac_status=$? 12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12534 { (case "(($ac_try" in 12535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12536 *) ac_try_echo=$ac_try;; 12537esac 12538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12539 (eval "$ac_try") 2>&5 12540 ac_status=$? 12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12542 (exit $ac_status); }; }; then 12543 ac_cv_sizeof_double=`cat conftest.val` 12544else 12545 echo "$as_me: program exited with status $ac_status" >&5 12546echo "$as_me: failed program was:" >&5 12547sed 's/^/| /' conftest.$ac_ext >&5 12548 12549( exit $ac_status ) 12550if test "$ac_cv_type_double" = yes; then 12551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) 12552See \`config.log' for more details." >&5 12553echo "$as_me: error: cannot compute sizeof (double) 12554See \`config.log' for more details." >&2;} 12555 { (exit 77); exit 77; }; } 12556 else 12557 ac_cv_sizeof_double=0 12558 fi 12559fi 12560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12561fi 12562rm -f conftest.val 12563fi 12564{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 12565echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } 12566 12567 12568 12569cat >>confdefs.h <<_ACEOF 12570#define SIZEOF_DOUBLE $ac_cv_sizeof_double 12571_ACEOF 12572 12573 12574{ echo "$as_me:$LINENO: checking for double" >&5 12575echo $ECHO_N "checking for double... $ECHO_C" >&6; } 12576if test "${ac_cv_type_double+set}" = set; then 12577 echo $ECHO_N "(cached) $ECHO_C" >&6 12578else 12579 cat >conftest.$ac_ext <<_ACEOF 12580/* confdefs.h. */ 12581_ACEOF 12582cat confdefs.h >>conftest.$ac_ext 12583cat >>conftest.$ac_ext <<_ACEOF 12584/* end confdefs.h. */ 12585$ac_includes_default 12586typedef double ac__type_new_; 12587int 12588main () 12589{ 12590if ((ac__type_new_ *) 0) 12591 return 0; 12592if (sizeof (ac__type_new_)) 12593 return 0; 12594 ; 12595 return 0; 12596} 12597_ACEOF 12598rm -f conftest.$ac_objext 12599if { (ac_try="$ac_compile" 12600case "(($ac_try" in 12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12602 *) ac_try_echo=$ac_try;; 12603esac 12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12605 (eval "$ac_compile") 2>conftest.er1 12606 ac_status=$? 12607 grep -v '^ *+' conftest.er1 >conftest.err 12608 rm -f conftest.er1 12609 cat conftest.err >&5 12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12611 (exit $ac_status); } && { 12612 test -z "$ac_c_werror_flag" || 12613 test ! -s conftest.err 12614 } && test -s conftest.$ac_objext; then 12615 ac_cv_type_double=yes 12616else 12617 echo "$as_me: failed program was:" >&5 12618sed 's/^/| /' conftest.$ac_ext >&5 12619 12620 ac_cv_type_double=no 12621fi 12622 12623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12624fi 12625{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 12626echo "${ECHO_T}$ac_cv_type_double" >&6; } 12627 12628# The cast to long int works around a bug in the HP C Compiler, 12629# see AC_CHECK_SIZEOF for more information. 12630{ echo "$as_me:$LINENO: checking alignment of double" >&5 12631echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; } 12632if test "${ac_cv_alignof_double+set}" = set; then 12633 echo $ECHO_N "(cached) $ECHO_C" >&6 12634else 12635 if test "$cross_compiling" = yes; then 12636 # Depending upon the size, compute the lo and hi bounds. 12637cat >conftest.$ac_ext <<_ACEOF 12638/* confdefs.h. */ 12639_ACEOF 12640cat confdefs.h >>conftest.$ac_ext 12641cat >>conftest.$ac_ext <<_ACEOF 12642/* end confdefs.h. */ 12643$ac_includes_default 12644#ifndef offsetof 12645# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 12646#endif 12647typedef struct { char x; double y; } ac__type_alignof_; 12648int 12649main () 12650{ 12651static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; 12652test_array [0] = 0 12653 12654 ; 12655 return 0; 12656} 12657_ACEOF 12658rm -f conftest.$ac_objext 12659if { (ac_try="$ac_compile" 12660case "(($ac_try" in 12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12662 *) ac_try_echo=$ac_try;; 12663esac 12664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12665 (eval "$ac_compile") 2>conftest.er1 12666 ac_status=$? 12667 grep -v '^ *+' conftest.er1 >conftest.err 12668 rm -f conftest.er1 12669 cat conftest.err >&5 12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12671 (exit $ac_status); } && { 12672 test -z "$ac_c_werror_flag" || 12673 test ! -s conftest.err 12674 } && test -s conftest.$ac_objext; then 12675 ac_lo=0 ac_mid=0 12676 while :; do 12677 cat >conftest.$ac_ext <<_ACEOF 12678/* confdefs.h. */ 12679_ACEOF 12680cat confdefs.h >>conftest.$ac_ext 12681cat >>conftest.$ac_ext <<_ACEOF 12682/* end confdefs.h. */ 12683$ac_includes_default 12684#ifndef offsetof 12685# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 12686#endif 12687typedef struct { char x; double y; } ac__type_alignof_; 12688int 12689main () 12690{ 12691static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 12692test_array [0] = 0 12693 12694 ; 12695 return 0; 12696} 12697_ACEOF 12698rm -f conftest.$ac_objext 12699if { (ac_try="$ac_compile" 12700case "(($ac_try" in 12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12702 *) ac_try_echo=$ac_try;; 12703esac 12704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12705 (eval "$ac_compile") 2>conftest.er1 12706 ac_status=$? 12707 grep -v '^ *+' conftest.er1 >conftest.err 12708 rm -f conftest.er1 12709 cat conftest.err >&5 12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12711 (exit $ac_status); } && { 12712 test -z "$ac_c_werror_flag" || 12713 test ! -s conftest.err 12714 } && test -s conftest.$ac_objext; then 12715 ac_hi=$ac_mid; break 12716else 12717 echo "$as_me: failed program was:" >&5 12718sed 's/^/| /' conftest.$ac_ext >&5 12719 12720 ac_lo=`expr $ac_mid + 1` 12721 if test $ac_lo -le $ac_mid; then 12722 ac_lo= ac_hi= 12723 break 12724 fi 12725 ac_mid=`expr 2 '*' $ac_mid + 1` 12726fi 12727 12728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12729 done 12730else 12731 echo "$as_me: failed program was:" >&5 12732sed 's/^/| /' conftest.$ac_ext >&5 12733 12734 cat >conftest.$ac_ext <<_ACEOF 12735/* confdefs.h. */ 12736_ACEOF 12737cat confdefs.h >>conftest.$ac_ext 12738cat >>conftest.$ac_ext <<_ACEOF 12739/* end confdefs.h. */ 12740$ac_includes_default 12741#ifndef offsetof 12742# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 12743#endif 12744typedef struct { char x; double y; } ac__type_alignof_; 12745int 12746main () 12747{ 12748static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)]; 12749test_array [0] = 0 12750 12751 ; 12752 return 0; 12753} 12754_ACEOF 12755rm -f conftest.$ac_objext 12756if { (ac_try="$ac_compile" 12757case "(($ac_try" in 12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12759 *) ac_try_echo=$ac_try;; 12760esac 12761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12762 (eval "$ac_compile") 2>conftest.er1 12763 ac_status=$? 12764 grep -v '^ *+' conftest.er1 >conftest.err 12765 rm -f conftest.er1 12766 cat conftest.err >&5 12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12768 (exit $ac_status); } && { 12769 test -z "$ac_c_werror_flag" || 12770 test ! -s conftest.err 12771 } && test -s conftest.$ac_objext; then 12772 ac_hi=-1 ac_mid=-1 12773 while :; do 12774 cat >conftest.$ac_ext <<_ACEOF 12775/* confdefs.h. */ 12776_ACEOF 12777cat confdefs.h >>conftest.$ac_ext 12778cat >>conftest.$ac_ext <<_ACEOF 12779/* end confdefs.h. */ 12780$ac_includes_default 12781#ifndef offsetof 12782# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 12783#endif 12784typedef struct { char x; double y; } ac__type_alignof_; 12785int 12786main () 12787{ 12788static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)]; 12789test_array [0] = 0 12790 12791 ; 12792 return 0; 12793} 12794_ACEOF 12795rm -f conftest.$ac_objext 12796if { (ac_try="$ac_compile" 12797case "(($ac_try" in 12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12799 *) ac_try_echo=$ac_try;; 12800esac 12801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12802 (eval "$ac_compile") 2>conftest.er1 12803 ac_status=$? 12804 grep -v '^ *+' conftest.er1 >conftest.err 12805 rm -f conftest.er1 12806 cat conftest.err >&5 12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12808 (exit $ac_status); } && { 12809 test -z "$ac_c_werror_flag" || 12810 test ! -s conftest.err 12811 } && test -s conftest.$ac_objext; then 12812 ac_lo=$ac_mid; break 12813else 12814 echo "$as_me: failed program was:" >&5 12815sed 's/^/| /' conftest.$ac_ext >&5 12816 12817 ac_hi=`expr '(' $ac_mid ')' - 1` 12818 if test $ac_mid -le $ac_hi; then 12819 ac_lo= ac_hi= 12820 break 12821 fi 12822 ac_mid=`expr 2 '*' $ac_mid` 12823fi 12824 12825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12826 done 12827else 12828 echo "$as_me: failed program was:" >&5 12829sed 's/^/| /' conftest.$ac_ext >&5 12830 12831 ac_lo= ac_hi= 12832fi 12833 12834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12835fi 12836 12837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12838# Binary search between lo and hi bounds. 12839while test "x$ac_lo" != "x$ac_hi"; do 12840 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 12841 cat >conftest.$ac_ext <<_ACEOF 12842/* confdefs.h. */ 12843_ACEOF 12844cat confdefs.h >>conftest.$ac_ext 12845cat >>conftest.$ac_ext <<_ACEOF 12846/* end confdefs.h. */ 12847$ac_includes_default 12848#ifndef offsetof 12849# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 12850#endif 12851typedef struct { char x; double y; } ac__type_alignof_; 12852int 12853main () 12854{ 12855static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 12856test_array [0] = 0 12857 12858 ; 12859 return 0; 12860} 12861_ACEOF 12862rm -f conftest.$ac_objext 12863if { (ac_try="$ac_compile" 12864case "(($ac_try" in 12865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12866 *) ac_try_echo=$ac_try;; 12867esac 12868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12869 (eval "$ac_compile") 2>conftest.er1 12870 ac_status=$? 12871 grep -v '^ *+' conftest.er1 >conftest.err 12872 rm -f conftest.er1 12873 cat conftest.err >&5 12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12875 (exit $ac_status); } && { 12876 test -z "$ac_c_werror_flag" || 12877 test ! -s conftest.err 12878 } && test -s conftest.$ac_objext; then 12879 ac_hi=$ac_mid 12880else 12881 echo "$as_me: failed program was:" >&5 12882sed 's/^/| /' conftest.$ac_ext >&5 12883 12884 ac_lo=`expr '(' $ac_mid ')' + 1` 12885fi 12886 12887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12888done 12889case $ac_lo in 12890?*) ac_cv_alignof_double=$ac_lo;; 12891'') if test "$ac_cv_type_double" = yes; then 12892 { { echo "$as_me:$LINENO: error: cannot compute alignment of double 12893See \`config.log' for more details." >&5 12894echo "$as_me: error: cannot compute alignment of double 12895See \`config.log' for more details." >&2;} 12896 { (exit 77); exit 77; }; } 12897 else 12898 ac_cv_alignof_double=0 12899 fi ;; 12900esac 12901else 12902 cat >conftest.$ac_ext <<_ACEOF 12903/* confdefs.h. */ 12904_ACEOF 12905cat confdefs.h >>conftest.$ac_ext 12906cat >>conftest.$ac_ext <<_ACEOF 12907/* end confdefs.h. */ 12908$ac_includes_default 12909#ifndef offsetof 12910# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 12911#endif 12912typedef struct { char x; double y; } ac__type_alignof_; 12913static long int longval () { return (long int) offsetof (ac__type_alignof_, y); } 12914static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); } 12915#include <stdio.h> 12916#include <stdlib.h> 12917int 12918main () 12919{ 12920 12921 FILE *f = fopen ("conftest.val", "w"); 12922 if (! f) 12923 return 1; 12924 if (((long int) offsetof (ac__type_alignof_, y)) < 0) 12925 { 12926 long int i = longval (); 12927 if (i != ((long int) offsetof (ac__type_alignof_, y))) 12928 return 1; 12929 fprintf (f, "%ld\n", i); 12930 } 12931 else 12932 { 12933 unsigned long int i = ulongval (); 12934 if (i != ((long int) offsetof (ac__type_alignof_, y))) 12935 return 1; 12936 fprintf (f, "%lu\n", i); 12937 } 12938 return ferror (f) || fclose (f) != 0; 12939 12940 ; 12941 return 0; 12942} 12943_ACEOF 12944rm -f conftest$ac_exeext 12945if { (ac_try="$ac_link" 12946case "(($ac_try" in 12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12948 *) ac_try_echo=$ac_try;; 12949esac 12950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12951 (eval "$ac_link") 2>&5 12952 ac_status=$? 12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12955 { (case "(($ac_try" in 12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12957 *) ac_try_echo=$ac_try;; 12958esac 12959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 12960 (eval "$ac_try") 2>&5 12961 ac_status=$? 12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12963 (exit $ac_status); }; }; then 12964 ac_cv_alignof_double=`cat conftest.val` 12965else 12966 echo "$as_me: program exited with status $ac_status" >&5 12967echo "$as_me: failed program was:" >&5 12968sed 's/^/| /' conftest.$ac_ext >&5 12969 12970( exit $ac_status ) 12971if test "$ac_cv_type_double" = yes; then 12972 { { echo "$as_me:$LINENO: error: cannot compute alignment of double 12973See \`config.log' for more details." >&5 12974echo "$as_me: error: cannot compute alignment of double 12975See \`config.log' for more details." >&2;} 12976 { (exit 77); exit 77; }; } 12977 else 12978 ac_cv_alignof_double=0 12979 fi 12980fi 12981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12982fi 12983rm -f conftest.val 12984fi 12985{ echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5 12986echo "${ECHO_T}$ac_cv_alignof_double" >&6; } 12987 12988 12989 12990cat >>confdefs.h <<_ACEOF 12991#define ALIGNOF_DOUBLE $ac_cv_alignof_double 12992_ACEOF 12993 12994 12995 12996 12997 { echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5 12998echo $ECHO_N "checking for long double with more range or precision than double... $ECHO_C" >&6; } 12999if test "${ac_cv_type_long_double_wider+set}" = set; then 13000 echo $ECHO_N "(cached) $ECHO_C" >&6 13001else 13002 cat >conftest.$ac_ext <<_ACEOF 13003/* confdefs.h. */ 13004_ACEOF 13005cat confdefs.h >>conftest.$ac_ext 13006cat >>conftest.$ac_ext <<_ACEOF 13007/* end confdefs.h. */ 13008#include <float.h> 13009 long double const a[] = 13010 { 13011 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, 13012 LDBL_MIN, LDBL_MAX, LDBL_EPSILON 13013 }; 13014 long double 13015 f (long double x) 13016 { 13017 return ((x + (unsigned long int) 10) * (-1 / x) + a[0] 13018 + (x ? f (x) : 'c')); 13019 } 13020 13021int 13022main () 13023{ 13024static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) 13025 + (DBL_MANT_DIG < LDBL_MANT_DIG) 13026 - (LDBL_MAX_EXP < DBL_MAX_EXP) 13027 - (LDBL_MANT_DIG < DBL_MANT_DIG))) 13028 && (int) LDBL_EPSILON == 0 13029 )]; 13030test_array [0] = 0 13031 13032 ; 13033 return 0; 13034} 13035_ACEOF 13036rm -f conftest.$ac_objext 13037if { (ac_try="$ac_compile" 13038case "(($ac_try" in 13039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13040 *) ac_try_echo=$ac_try;; 13041esac 13042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13043 (eval "$ac_compile") 2>conftest.er1 13044 ac_status=$? 13045 grep -v '^ *+' conftest.er1 >conftest.err 13046 rm -f conftest.er1 13047 cat conftest.err >&5 13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13049 (exit $ac_status); } && { 13050 test -z "$ac_c_werror_flag" || 13051 test ! -s conftest.err 13052 } && test -s conftest.$ac_objext; then 13053 ac_cv_type_long_double_wider=yes 13054else 13055 echo "$as_me: failed program was:" >&5 13056sed 's/^/| /' conftest.$ac_ext >&5 13057 13058 ac_cv_type_long_double_wider=no 13059fi 13060 13061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13062fi 13063{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5 13064echo "${ECHO_T}$ac_cv_type_long_double_wider" >&6; } 13065 if test $ac_cv_type_long_double_wider = yes; then 13066 13067cat >>confdefs.h <<\_ACEOF 13068#define HAVE_LONG_DOUBLE_WIDER 1 13069_ACEOF 13070 13071 fi 13072 13073 ac_cv_c_long_double=$ac_cv_type_long_double_wider 13074 if test $ac_cv_c_long_double = yes; then 13075 13076cat >>confdefs.h <<\_ACEOF 13077#define HAVE_LONG_DOUBLE 1 13078_ACEOF 13079 13080 fi 13081 13082{ echo "$as_me:$LINENO: checking for long double" >&5 13083echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 13084if test "${ac_cv_type_long_double+set}" = set; then 13085 echo $ECHO_N "(cached) $ECHO_C" >&6 13086else 13087 cat >conftest.$ac_ext <<_ACEOF 13088/* confdefs.h. */ 13089_ACEOF 13090cat confdefs.h >>conftest.$ac_ext 13091cat >>conftest.$ac_ext <<_ACEOF 13092/* end confdefs.h. */ 13093$ac_includes_default 13094typedef long double ac__type_new_; 13095int 13096main () 13097{ 13098if ((ac__type_new_ *) 0) 13099 return 0; 13100if (sizeof (ac__type_new_)) 13101 return 0; 13102 ; 13103 return 0; 13104} 13105_ACEOF 13106rm -f conftest.$ac_objext 13107if { (ac_try="$ac_compile" 13108case "(($ac_try" in 13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13110 *) ac_try_echo=$ac_try;; 13111esac 13112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13113 (eval "$ac_compile") 2>conftest.er1 13114 ac_status=$? 13115 grep -v '^ *+' conftest.er1 >conftest.err 13116 rm -f conftest.er1 13117 cat conftest.err >&5 13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13119 (exit $ac_status); } && { 13120 test -z "$ac_c_werror_flag" || 13121 test ! -s conftest.err 13122 } && test -s conftest.$ac_objext; then 13123 ac_cv_type_long_double=yes 13124else 13125 echo "$as_me: failed program was:" >&5 13126sed 's/^/| /' conftest.$ac_ext >&5 13127 13128 ac_cv_type_long_double=no 13129fi 13130 13131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13132fi 13133{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 13134echo "${ECHO_T}$ac_cv_type_long_double" >&6; } 13135 13136# The cast to long int works around a bug in the HP C Compiler 13137# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13138# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13139# This bug is HP SR number 8606223364. 13140{ echo "$as_me:$LINENO: checking size of long double" >&5 13141echo $ECHO_N "checking size of long double... $ECHO_C" >&6; } 13142if test "${ac_cv_sizeof_long_double+set}" = set; then 13143 echo $ECHO_N "(cached) $ECHO_C" >&6 13144else 13145 if test "$cross_compiling" = yes; then 13146 # Depending upon the size, compute the lo and hi bounds. 13147cat >conftest.$ac_ext <<_ACEOF 13148/* confdefs.h. */ 13149_ACEOF 13150cat confdefs.h >>conftest.$ac_ext 13151cat >>conftest.$ac_ext <<_ACEOF 13152/* end confdefs.h. */ 13153$ac_includes_default 13154 typedef long double ac__type_sizeof_; 13155int 13156main () 13157{ 13158static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 13159test_array [0] = 0 13160 13161 ; 13162 return 0; 13163} 13164_ACEOF 13165rm -f conftest.$ac_objext 13166if { (ac_try="$ac_compile" 13167case "(($ac_try" in 13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13169 *) ac_try_echo=$ac_try;; 13170esac 13171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13172 (eval "$ac_compile") 2>conftest.er1 13173 ac_status=$? 13174 grep -v '^ *+' conftest.er1 >conftest.err 13175 rm -f conftest.er1 13176 cat conftest.err >&5 13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13178 (exit $ac_status); } && { 13179 test -z "$ac_c_werror_flag" || 13180 test ! -s conftest.err 13181 } && test -s conftest.$ac_objext; then 13182 ac_lo=0 ac_mid=0 13183 while :; do 13184 cat >conftest.$ac_ext <<_ACEOF 13185/* confdefs.h. */ 13186_ACEOF 13187cat confdefs.h >>conftest.$ac_ext 13188cat >>conftest.$ac_ext <<_ACEOF 13189/* end confdefs.h. */ 13190$ac_includes_default 13191 typedef long double ac__type_sizeof_; 13192int 13193main () 13194{ 13195static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13196test_array [0] = 0 13197 13198 ; 13199 return 0; 13200} 13201_ACEOF 13202rm -f conftest.$ac_objext 13203if { (ac_try="$ac_compile" 13204case "(($ac_try" in 13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13206 *) ac_try_echo=$ac_try;; 13207esac 13208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13209 (eval "$ac_compile") 2>conftest.er1 13210 ac_status=$? 13211 grep -v '^ *+' conftest.er1 >conftest.err 13212 rm -f conftest.er1 13213 cat conftest.err >&5 13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13215 (exit $ac_status); } && { 13216 test -z "$ac_c_werror_flag" || 13217 test ! -s conftest.err 13218 } && test -s conftest.$ac_objext; then 13219 ac_hi=$ac_mid; break 13220else 13221 echo "$as_me: failed program was:" >&5 13222sed 's/^/| /' conftest.$ac_ext >&5 13223 13224 ac_lo=`expr $ac_mid + 1` 13225 if test $ac_lo -le $ac_mid; then 13226 ac_lo= ac_hi= 13227 break 13228 fi 13229 ac_mid=`expr 2 '*' $ac_mid + 1` 13230fi 13231 13232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13233 done 13234else 13235 echo "$as_me: failed program was:" >&5 13236sed 's/^/| /' conftest.$ac_ext >&5 13237 13238 cat >conftest.$ac_ext <<_ACEOF 13239/* confdefs.h. */ 13240_ACEOF 13241cat confdefs.h >>conftest.$ac_ext 13242cat >>conftest.$ac_ext <<_ACEOF 13243/* end confdefs.h. */ 13244$ac_includes_default 13245 typedef long double ac__type_sizeof_; 13246int 13247main () 13248{ 13249static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 13250test_array [0] = 0 13251 13252 ; 13253 return 0; 13254} 13255_ACEOF 13256rm -f conftest.$ac_objext 13257if { (ac_try="$ac_compile" 13258case "(($ac_try" in 13259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13260 *) ac_try_echo=$ac_try;; 13261esac 13262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13263 (eval "$ac_compile") 2>conftest.er1 13264 ac_status=$? 13265 grep -v '^ *+' conftest.er1 >conftest.err 13266 rm -f conftest.er1 13267 cat conftest.err >&5 13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13269 (exit $ac_status); } && { 13270 test -z "$ac_c_werror_flag" || 13271 test ! -s conftest.err 13272 } && test -s conftest.$ac_objext; then 13273 ac_hi=-1 ac_mid=-1 13274 while :; do 13275 cat >conftest.$ac_ext <<_ACEOF 13276/* confdefs.h. */ 13277_ACEOF 13278cat confdefs.h >>conftest.$ac_ext 13279cat >>conftest.$ac_ext <<_ACEOF 13280/* end confdefs.h. */ 13281$ac_includes_default 13282 typedef long double ac__type_sizeof_; 13283int 13284main () 13285{ 13286static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 13287test_array [0] = 0 13288 13289 ; 13290 return 0; 13291} 13292_ACEOF 13293rm -f conftest.$ac_objext 13294if { (ac_try="$ac_compile" 13295case "(($ac_try" in 13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13297 *) ac_try_echo=$ac_try;; 13298esac 13299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13300 (eval "$ac_compile") 2>conftest.er1 13301 ac_status=$? 13302 grep -v '^ *+' conftest.er1 >conftest.err 13303 rm -f conftest.er1 13304 cat conftest.err >&5 13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13306 (exit $ac_status); } && { 13307 test -z "$ac_c_werror_flag" || 13308 test ! -s conftest.err 13309 } && test -s conftest.$ac_objext; then 13310 ac_lo=$ac_mid; break 13311else 13312 echo "$as_me: failed program was:" >&5 13313sed 's/^/| /' conftest.$ac_ext >&5 13314 13315 ac_hi=`expr '(' $ac_mid ')' - 1` 13316 if test $ac_mid -le $ac_hi; then 13317 ac_lo= ac_hi= 13318 break 13319 fi 13320 ac_mid=`expr 2 '*' $ac_mid` 13321fi 13322 13323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13324 done 13325else 13326 echo "$as_me: failed program was:" >&5 13327sed 's/^/| /' conftest.$ac_ext >&5 13328 13329 ac_lo= ac_hi= 13330fi 13331 13332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13333fi 13334 13335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13336# Binary search between lo and hi bounds. 13337while test "x$ac_lo" != "x$ac_hi"; do 13338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13339 cat >conftest.$ac_ext <<_ACEOF 13340/* confdefs.h. */ 13341_ACEOF 13342cat confdefs.h >>conftest.$ac_ext 13343cat >>conftest.$ac_ext <<_ACEOF 13344/* end confdefs.h. */ 13345$ac_includes_default 13346 typedef long double ac__type_sizeof_; 13347int 13348main () 13349{ 13350static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 13351test_array [0] = 0 13352 13353 ; 13354 return 0; 13355} 13356_ACEOF 13357rm -f conftest.$ac_objext 13358if { (ac_try="$ac_compile" 13359case "(($ac_try" in 13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13361 *) ac_try_echo=$ac_try;; 13362esac 13363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13364 (eval "$ac_compile") 2>conftest.er1 13365 ac_status=$? 13366 grep -v '^ *+' conftest.er1 >conftest.err 13367 rm -f conftest.er1 13368 cat conftest.err >&5 13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13370 (exit $ac_status); } && { 13371 test -z "$ac_c_werror_flag" || 13372 test ! -s conftest.err 13373 } && test -s conftest.$ac_objext; then 13374 ac_hi=$ac_mid 13375else 13376 echo "$as_me: failed program was:" >&5 13377sed 's/^/| /' conftest.$ac_ext >&5 13378 13379 ac_lo=`expr '(' $ac_mid ')' + 1` 13380fi 13381 13382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13383done 13384case $ac_lo in 13385?*) ac_cv_sizeof_long_double=$ac_lo;; 13386'') if test "$ac_cv_type_long_double" = yes; then 13387 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) 13388See \`config.log' for more details." >&5 13389echo "$as_me: error: cannot compute sizeof (long double) 13390See \`config.log' for more details." >&2;} 13391 { (exit 77); exit 77; }; } 13392 else 13393 ac_cv_sizeof_long_double=0 13394 fi ;; 13395esac 13396else 13397 cat >conftest.$ac_ext <<_ACEOF 13398/* confdefs.h. */ 13399_ACEOF 13400cat confdefs.h >>conftest.$ac_ext 13401cat >>conftest.$ac_ext <<_ACEOF 13402/* end confdefs.h. */ 13403$ac_includes_default 13404 typedef long double ac__type_sizeof_; 13405static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 13406static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 13407#include <stdio.h> 13408#include <stdlib.h> 13409int 13410main () 13411{ 13412 13413 FILE *f = fopen ("conftest.val", "w"); 13414 if (! f) 13415 return 1; 13416 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 13417 { 13418 long int i = longval (); 13419 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13420 return 1; 13421 fprintf (f, "%ld\n", i); 13422 } 13423 else 13424 { 13425 unsigned long int i = ulongval (); 13426 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 13427 return 1; 13428 fprintf (f, "%lu\n", i); 13429 } 13430 return ferror (f) || fclose (f) != 0; 13431 13432 ; 13433 return 0; 13434} 13435_ACEOF 13436rm -f conftest$ac_exeext 13437if { (ac_try="$ac_link" 13438case "(($ac_try" in 13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13440 *) ac_try_echo=$ac_try;; 13441esac 13442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13443 (eval "$ac_link") 2>&5 13444 ac_status=$? 13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13447 { (case "(($ac_try" in 13448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13449 *) ac_try_echo=$ac_try;; 13450esac 13451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13452 (eval "$ac_try") 2>&5 13453 ac_status=$? 13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13455 (exit $ac_status); }; }; then 13456 ac_cv_sizeof_long_double=`cat conftest.val` 13457else 13458 echo "$as_me: program exited with status $ac_status" >&5 13459echo "$as_me: failed program was:" >&5 13460sed 's/^/| /' conftest.$ac_ext >&5 13461 13462( exit $ac_status ) 13463if test "$ac_cv_type_long_double" = yes; then 13464 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double) 13465See \`config.log' for more details." >&5 13466echo "$as_me: error: cannot compute sizeof (long double) 13467See \`config.log' for more details." >&2;} 13468 { (exit 77); exit 77; }; } 13469 else 13470 ac_cv_sizeof_long_double=0 13471 fi 13472fi 13473rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13474fi 13475rm -f conftest.val 13476fi 13477{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5 13478echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; } 13479 13480 13481 13482cat >>confdefs.h <<_ACEOF 13483#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 13484_ACEOF 13485 13486 13487{ echo "$as_me:$LINENO: checking for long double" >&5 13488echo $ECHO_N "checking for long double... $ECHO_C" >&6; } 13489if test "${ac_cv_type_long_double+set}" = set; then 13490 echo $ECHO_N "(cached) $ECHO_C" >&6 13491else 13492 cat >conftest.$ac_ext <<_ACEOF 13493/* confdefs.h. */ 13494_ACEOF 13495cat confdefs.h >>conftest.$ac_ext 13496cat >>conftest.$ac_ext <<_ACEOF 13497/* end confdefs.h. */ 13498$ac_includes_default 13499typedef long double ac__type_new_; 13500int 13501main () 13502{ 13503if ((ac__type_new_ *) 0) 13504 return 0; 13505if (sizeof (ac__type_new_)) 13506 return 0; 13507 ; 13508 return 0; 13509} 13510_ACEOF 13511rm -f conftest.$ac_objext 13512if { (ac_try="$ac_compile" 13513case "(($ac_try" in 13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13515 *) ac_try_echo=$ac_try;; 13516esac 13517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13518 (eval "$ac_compile") 2>conftest.er1 13519 ac_status=$? 13520 grep -v '^ *+' conftest.er1 >conftest.err 13521 rm -f conftest.er1 13522 cat conftest.err >&5 13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13524 (exit $ac_status); } && { 13525 test -z "$ac_c_werror_flag" || 13526 test ! -s conftest.err 13527 } && test -s conftest.$ac_objext; then 13528 ac_cv_type_long_double=yes 13529else 13530 echo "$as_me: failed program was:" >&5 13531sed 's/^/| /' conftest.$ac_ext >&5 13532 13533 ac_cv_type_long_double=no 13534fi 13535 13536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13537fi 13538{ echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5 13539echo "${ECHO_T}$ac_cv_type_long_double" >&6; } 13540 13541# The cast to long int works around a bug in the HP C Compiler, 13542# see AC_CHECK_SIZEOF for more information. 13543{ echo "$as_me:$LINENO: checking alignment of long double" >&5 13544echo $ECHO_N "checking alignment of long double... $ECHO_C" >&6; } 13545if test "${ac_cv_alignof_long_double+set}" = set; then 13546 echo $ECHO_N "(cached) $ECHO_C" >&6 13547else 13548 if test "$cross_compiling" = yes; then 13549 # Depending upon the size, compute the lo and hi bounds. 13550cat >conftest.$ac_ext <<_ACEOF 13551/* confdefs.h. */ 13552_ACEOF 13553cat confdefs.h >>conftest.$ac_ext 13554cat >>conftest.$ac_ext <<_ACEOF 13555/* end confdefs.h. */ 13556$ac_includes_default 13557#ifndef offsetof 13558# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 13559#endif 13560typedef struct { char x; long double y; } ac__type_alignof_; 13561int 13562main () 13563{ 13564static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; 13565test_array [0] = 0 13566 13567 ; 13568 return 0; 13569} 13570_ACEOF 13571rm -f conftest.$ac_objext 13572if { (ac_try="$ac_compile" 13573case "(($ac_try" in 13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13575 *) ac_try_echo=$ac_try;; 13576esac 13577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13578 (eval "$ac_compile") 2>conftest.er1 13579 ac_status=$? 13580 grep -v '^ *+' conftest.er1 >conftest.err 13581 rm -f conftest.er1 13582 cat conftest.err >&5 13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13584 (exit $ac_status); } && { 13585 test -z "$ac_c_werror_flag" || 13586 test ! -s conftest.err 13587 } && test -s conftest.$ac_objext; then 13588 ac_lo=0 ac_mid=0 13589 while :; do 13590 cat >conftest.$ac_ext <<_ACEOF 13591/* confdefs.h. */ 13592_ACEOF 13593cat confdefs.h >>conftest.$ac_ext 13594cat >>conftest.$ac_ext <<_ACEOF 13595/* end confdefs.h. */ 13596$ac_includes_default 13597#ifndef offsetof 13598# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 13599#endif 13600typedef struct { char x; long double y; } ac__type_alignof_; 13601int 13602main () 13603{ 13604static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 13605test_array [0] = 0 13606 13607 ; 13608 return 0; 13609} 13610_ACEOF 13611rm -f conftest.$ac_objext 13612if { (ac_try="$ac_compile" 13613case "(($ac_try" in 13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13615 *) ac_try_echo=$ac_try;; 13616esac 13617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13618 (eval "$ac_compile") 2>conftest.er1 13619 ac_status=$? 13620 grep -v '^ *+' conftest.er1 >conftest.err 13621 rm -f conftest.er1 13622 cat conftest.err >&5 13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13624 (exit $ac_status); } && { 13625 test -z "$ac_c_werror_flag" || 13626 test ! -s conftest.err 13627 } && test -s conftest.$ac_objext; then 13628 ac_hi=$ac_mid; break 13629else 13630 echo "$as_me: failed program was:" >&5 13631sed 's/^/| /' conftest.$ac_ext >&5 13632 13633 ac_lo=`expr $ac_mid + 1` 13634 if test $ac_lo -le $ac_mid; then 13635 ac_lo= ac_hi= 13636 break 13637 fi 13638 ac_mid=`expr 2 '*' $ac_mid + 1` 13639fi 13640 13641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13642 done 13643else 13644 echo "$as_me: failed program was:" >&5 13645sed 's/^/| /' conftest.$ac_ext >&5 13646 13647 cat >conftest.$ac_ext <<_ACEOF 13648/* confdefs.h. */ 13649_ACEOF 13650cat confdefs.h >>conftest.$ac_ext 13651cat >>conftest.$ac_ext <<_ACEOF 13652/* end confdefs.h. */ 13653$ac_includes_default 13654#ifndef offsetof 13655# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 13656#endif 13657typedef struct { char x; long double y; } ac__type_alignof_; 13658int 13659main () 13660{ 13661static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)]; 13662test_array [0] = 0 13663 13664 ; 13665 return 0; 13666} 13667_ACEOF 13668rm -f conftest.$ac_objext 13669if { (ac_try="$ac_compile" 13670case "(($ac_try" in 13671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13672 *) ac_try_echo=$ac_try;; 13673esac 13674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13675 (eval "$ac_compile") 2>conftest.er1 13676 ac_status=$? 13677 grep -v '^ *+' conftest.er1 >conftest.err 13678 rm -f conftest.er1 13679 cat conftest.err >&5 13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13681 (exit $ac_status); } && { 13682 test -z "$ac_c_werror_flag" || 13683 test ! -s conftest.err 13684 } && test -s conftest.$ac_objext; then 13685 ac_hi=-1 ac_mid=-1 13686 while :; do 13687 cat >conftest.$ac_ext <<_ACEOF 13688/* confdefs.h. */ 13689_ACEOF 13690cat confdefs.h >>conftest.$ac_ext 13691cat >>conftest.$ac_ext <<_ACEOF 13692/* end confdefs.h. */ 13693$ac_includes_default 13694#ifndef offsetof 13695# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 13696#endif 13697typedef struct { char x; long double y; } ac__type_alignof_; 13698int 13699main () 13700{ 13701static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)]; 13702test_array [0] = 0 13703 13704 ; 13705 return 0; 13706} 13707_ACEOF 13708rm -f conftest.$ac_objext 13709if { (ac_try="$ac_compile" 13710case "(($ac_try" in 13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13712 *) ac_try_echo=$ac_try;; 13713esac 13714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13715 (eval "$ac_compile") 2>conftest.er1 13716 ac_status=$? 13717 grep -v '^ *+' conftest.er1 >conftest.err 13718 rm -f conftest.er1 13719 cat conftest.err >&5 13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13721 (exit $ac_status); } && { 13722 test -z "$ac_c_werror_flag" || 13723 test ! -s conftest.err 13724 } && test -s conftest.$ac_objext; then 13725 ac_lo=$ac_mid; break 13726else 13727 echo "$as_me: failed program was:" >&5 13728sed 's/^/| /' conftest.$ac_ext >&5 13729 13730 ac_hi=`expr '(' $ac_mid ')' - 1` 13731 if test $ac_mid -le $ac_hi; then 13732 ac_lo= ac_hi= 13733 break 13734 fi 13735 ac_mid=`expr 2 '*' $ac_mid` 13736fi 13737 13738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13739 done 13740else 13741 echo "$as_me: failed program was:" >&5 13742sed 's/^/| /' conftest.$ac_ext >&5 13743 13744 ac_lo= ac_hi= 13745fi 13746 13747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13748fi 13749 13750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13751# Binary search between lo and hi bounds. 13752while test "x$ac_lo" != "x$ac_hi"; do 13753 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 13754 cat >conftest.$ac_ext <<_ACEOF 13755/* confdefs.h. */ 13756_ACEOF 13757cat confdefs.h >>conftest.$ac_ext 13758cat >>conftest.$ac_ext <<_ACEOF 13759/* end confdefs.h. */ 13760$ac_includes_default 13761#ifndef offsetof 13762# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 13763#endif 13764typedef struct { char x; long double y; } ac__type_alignof_; 13765int 13766main () 13767{ 13768static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 13769test_array [0] = 0 13770 13771 ; 13772 return 0; 13773} 13774_ACEOF 13775rm -f conftest.$ac_objext 13776if { (ac_try="$ac_compile" 13777case "(($ac_try" in 13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13779 *) ac_try_echo=$ac_try;; 13780esac 13781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13782 (eval "$ac_compile") 2>conftest.er1 13783 ac_status=$? 13784 grep -v '^ *+' conftest.er1 >conftest.err 13785 rm -f conftest.er1 13786 cat conftest.err >&5 13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13788 (exit $ac_status); } && { 13789 test -z "$ac_c_werror_flag" || 13790 test ! -s conftest.err 13791 } && test -s conftest.$ac_objext; then 13792 ac_hi=$ac_mid 13793else 13794 echo "$as_me: failed program was:" >&5 13795sed 's/^/| /' conftest.$ac_ext >&5 13796 13797 ac_lo=`expr '(' $ac_mid ')' + 1` 13798fi 13799 13800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13801done 13802case $ac_lo in 13803?*) ac_cv_alignof_long_double=$ac_lo;; 13804'') if test "$ac_cv_type_long_double" = yes; then 13805 { { echo "$as_me:$LINENO: error: cannot compute alignment of long double 13806See \`config.log' for more details." >&5 13807echo "$as_me: error: cannot compute alignment of long double 13808See \`config.log' for more details." >&2;} 13809 { (exit 77); exit 77; }; } 13810 else 13811 ac_cv_alignof_long_double=0 13812 fi ;; 13813esac 13814else 13815 cat >conftest.$ac_ext <<_ACEOF 13816/* confdefs.h. */ 13817_ACEOF 13818cat confdefs.h >>conftest.$ac_ext 13819cat >>conftest.$ac_ext <<_ACEOF 13820/* end confdefs.h. */ 13821$ac_includes_default 13822#ifndef offsetof 13823# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 13824#endif 13825typedef struct { char x; long double y; } ac__type_alignof_; 13826static long int longval () { return (long int) offsetof (ac__type_alignof_, y); } 13827static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); } 13828#include <stdio.h> 13829#include <stdlib.h> 13830int 13831main () 13832{ 13833 13834 FILE *f = fopen ("conftest.val", "w"); 13835 if (! f) 13836 return 1; 13837 if (((long int) offsetof (ac__type_alignof_, y)) < 0) 13838 { 13839 long int i = longval (); 13840 if (i != ((long int) offsetof (ac__type_alignof_, y))) 13841 return 1; 13842 fprintf (f, "%ld\n", i); 13843 } 13844 else 13845 { 13846 unsigned long int i = ulongval (); 13847 if (i != ((long int) offsetof (ac__type_alignof_, y))) 13848 return 1; 13849 fprintf (f, "%lu\n", i); 13850 } 13851 return ferror (f) || fclose (f) != 0; 13852 13853 ; 13854 return 0; 13855} 13856_ACEOF 13857rm -f conftest$ac_exeext 13858if { (ac_try="$ac_link" 13859case "(($ac_try" in 13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13861 *) ac_try_echo=$ac_try;; 13862esac 13863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13864 (eval "$ac_link") 2>&5 13865 ac_status=$? 13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13868 { (case "(($ac_try" in 13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13870 *) ac_try_echo=$ac_try;; 13871esac 13872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13873 (eval "$ac_try") 2>&5 13874 ac_status=$? 13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13876 (exit $ac_status); }; }; then 13877 ac_cv_alignof_long_double=`cat conftest.val` 13878else 13879 echo "$as_me: program exited with status $ac_status" >&5 13880echo "$as_me: failed program was:" >&5 13881sed 's/^/| /' conftest.$ac_ext >&5 13882 13883( exit $ac_status ) 13884if test "$ac_cv_type_long_double" = yes; then 13885 { { echo "$as_me:$LINENO: error: cannot compute alignment of long double 13886See \`config.log' for more details." >&5 13887echo "$as_me: error: cannot compute alignment of long double 13888See \`config.log' for more details." >&2;} 13889 { (exit 77); exit 77; }; } 13890 else 13891 ac_cv_alignof_long_double=0 13892 fi 13893fi 13894rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13895fi 13896rm -f conftest.val 13897fi 13898{ echo "$as_me:$LINENO: result: $ac_cv_alignof_long_double" >&5 13899echo "${ECHO_T}$ac_cv_alignof_long_double" >&6; } 13900 13901 13902 13903cat >>confdefs.h <<_ACEOF 13904#define ALIGNOF_LONG_DOUBLE $ac_cv_alignof_long_double 13905_ACEOF 13906 13907 13908{ echo "$as_me:$LINENO: checking for void *" >&5 13909echo $ECHO_N "checking for void *... $ECHO_C" >&6; } 13910if test "${ac_cv_type_void_p+set}" = set; then 13911 echo $ECHO_N "(cached) $ECHO_C" >&6 13912else 13913 cat >conftest.$ac_ext <<_ACEOF 13914/* confdefs.h. */ 13915_ACEOF 13916cat confdefs.h >>conftest.$ac_ext 13917cat >>conftest.$ac_ext <<_ACEOF 13918/* end confdefs.h. */ 13919$ac_includes_default 13920typedef void * ac__type_new_; 13921int 13922main () 13923{ 13924if ((ac__type_new_ *) 0) 13925 return 0; 13926if (sizeof (ac__type_new_)) 13927 return 0; 13928 ; 13929 return 0; 13930} 13931_ACEOF 13932rm -f conftest.$ac_objext 13933if { (ac_try="$ac_compile" 13934case "(($ac_try" in 13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13936 *) ac_try_echo=$ac_try;; 13937esac 13938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13939 (eval "$ac_compile") 2>conftest.er1 13940 ac_status=$? 13941 grep -v '^ *+' conftest.er1 >conftest.err 13942 rm -f conftest.er1 13943 cat conftest.err >&5 13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13945 (exit $ac_status); } && { 13946 test -z "$ac_c_werror_flag" || 13947 test ! -s conftest.err 13948 } && test -s conftest.$ac_objext; then 13949 ac_cv_type_void_p=yes 13950else 13951 echo "$as_me: failed program was:" >&5 13952sed 's/^/| /' conftest.$ac_ext >&5 13953 13954 ac_cv_type_void_p=no 13955fi 13956 13957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13958fi 13959{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 13960echo "${ECHO_T}$ac_cv_type_void_p" >&6; } 13961 13962# The cast to long int works around a bug in the HP C Compiler 13963# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13964# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13965# This bug is HP SR number 8606223364. 13966{ echo "$as_me:$LINENO: checking size of void *" >&5 13967echo $ECHO_N "checking size of void *... $ECHO_C" >&6; } 13968if test "${ac_cv_sizeof_void_p+set}" = set; then 13969 echo $ECHO_N "(cached) $ECHO_C" >&6 13970else 13971 if test "$cross_compiling" = yes; then 13972 # Depending upon the size, compute the lo and hi bounds. 13973cat >conftest.$ac_ext <<_ACEOF 13974/* confdefs.h. */ 13975_ACEOF 13976cat confdefs.h >>conftest.$ac_ext 13977cat >>conftest.$ac_ext <<_ACEOF 13978/* end confdefs.h. */ 13979$ac_includes_default 13980 typedef void * ac__type_sizeof_; 13981int 13982main () 13983{ 13984static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 13985test_array [0] = 0 13986 13987 ; 13988 return 0; 13989} 13990_ACEOF 13991rm -f conftest.$ac_objext 13992if { (ac_try="$ac_compile" 13993case "(($ac_try" in 13994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13995 *) ac_try_echo=$ac_try;; 13996esac 13997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 13998 (eval "$ac_compile") 2>conftest.er1 13999 ac_status=$? 14000 grep -v '^ *+' conftest.er1 >conftest.err 14001 rm -f conftest.er1 14002 cat conftest.err >&5 14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14004 (exit $ac_status); } && { 14005 test -z "$ac_c_werror_flag" || 14006 test ! -s conftest.err 14007 } && test -s conftest.$ac_objext; then 14008 ac_lo=0 ac_mid=0 14009 while :; do 14010 cat >conftest.$ac_ext <<_ACEOF 14011/* confdefs.h. */ 14012_ACEOF 14013cat confdefs.h >>conftest.$ac_ext 14014cat >>conftest.$ac_ext <<_ACEOF 14015/* end confdefs.h. */ 14016$ac_includes_default 14017 typedef void * ac__type_sizeof_; 14018int 14019main () 14020{ 14021static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 14022test_array [0] = 0 14023 14024 ; 14025 return 0; 14026} 14027_ACEOF 14028rm -f conftest.$ac_objext 14029if { (ac_try="$ac_compile" 14030case "(($ac_try" in 14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14032 *) ac_try_echo=$ac_try;; 14033esac 14034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14035 (eval "$ac_compile") 2>conftest.er1 14036 ac_status=$? 14037 grep -v '^ *+' conftest.er1 >conftest.err 14038 rm -f conftest.er1 14039 cat conftest.err >&5 14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14041 (exit $ac_status); } && { 14042 test -z "$ac_c_werror_flag" || 14043 test ! -s conftest.err 14044 } && test -s conftest.$ac_objext; then 14045 ac_hi=$ac_mid; break 14046else 14047 echo "$as_me: failed program was:" >&5 14048sed 's/^/| /' conftest.$ac_ext >&5 14049 14050 ac_lo=`expr $ac_mid + 1` 14051 if test $ac_lo -le $ac_mid; then 14052 ac_lo= ac_hi= 14053 break 14054 fi 14055 ac_mid=`expr 2 '*' $ac_mid + 1` 14056fi 14057 14058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14059 done 14060else 14061 echo "$as_me: failed program was:" >&5 14062sed 's/^/| /' conftest.$ac_ext >&5 14063 14064 cat >conftest.$ac_ext <<_ACEOF 14065/* confdefs.h. */ 14066_ACEOF 14067cat confdefs.h >>conftest.$ac_ext 14068cat >>conftest.$ac_ext <<_ACEOF 14069/* end confdefs.h. */ 14070$ac_includes_default 14071 typedef void * ac__type_sizeof_; 14072int 14073main () 14074{ 14075static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 14076test_array [0] = 0 14077 14078 ; 14079 return 0; 14080} 14081_ACEOF 14082rm -f conftest.$ac_objext 14083if { (ac_try="$ac_compile" 14084case "(($ac_try" in 14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14086 *) ac_try_echo=$ac_try;; 14087esac 14088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14089 (eval "$ac_compile") 2>conftest.er1 14090 ac_status=$? 14091 grep -v '^ *+' conftest.er1 >conftest.err 14092 rm -f conftest.er1 14093 cat conftest.err >&5 14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14095 (exit $ac_status); } && { 14096 test -z "$ac_c_werror_flag" || 14097 test ! -s conftest.err 14098 } && test -s conftest.$ac_objext; then 14099 ac_hi=-1 ac_mid=-1 14100 while :; do 14101 cat >conftest.$ac_ext <<_ACEOF 14102/* confdefs.h. */ 14103_ACEOF 14104cat confdefs.h >>conftest.$ac_ext 14105cat >>conftest.$ac_ext <<_ACEOF 14106/* end confdefs.h. */ 14107$ac_includes_default 14108 typedef void * ac__type_sizeof_; 14109int 14110main () 14111{ 14112static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 14113test_array [0] = 0 14114 14115 ; 14116 return 0; 14117} 14118_ACEOF 14119rm -f conftest.$ac_objext 14120if { (ac_try="$ac_compile" 14121case "(($ac_try" in 14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14123 *) ac_try_echo=$ac_try;; 14124esac 14125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14126 (eval "$ac_compile") 2>conftest.er1 14127 ac_status=$? 14128 grep -v '^ *+' conftest.er1 >conftest.err 14129 rm -f conftest.er1 14130 cat conftest.err >&5 14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14132 (exit $ac_status); } && { 14133 test -z "$ac_c_werror_flag" || 14134 test ! -s conftest.err 14135 } && test -s conftest.$ac_objext; then 14136 ac_lo=$ac_mid; break 14137else 14138 echo "$as_me: failed program was:" >&5 14139sed 's/^/| /' conftest.$ac_ext >&5 14140 14141 ac_hi=`expr '(' $ac_mid ')' - 1` 14142 if test $ac_mid -le $ac_hi; then 14143 ac_lo= ac_hi= 14144 break 14145 fi 14146 ac_mid=`expr 2 '*' $ac_mid` 14147fi 14148 14149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14150 done 14151else 14152 echo "$as_me: failed program was:" >&5 14153sed 's/^/| /' conftest.$ac_ext >&5 14154 14155 ac_lo= ac_hi= 14156fi 14157 14158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14159fi 14160 14161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14162# Binary search between lo and hi bounds. 14163while test "x$ac_lo" != "x$ac_hi"; do 14164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14165 cat >conftest.$ac_ext <<_ACEOF 14166/* confdefs.h. */ 14167_ACEOF 14168cat confdefs.h >>conftest.$ac_ext 14169cat >>conftest.$ac_ext <<_ACEOF 14170/* end confdefs.h. */ 14171$ac_includes_default 14172 typedef void * ac__type_sizeof_; 14173int 14174main () 14175{ 14176static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 14177test_array [0] = 0 14178 14179 ; 14180 return 0; 14181} 14182_ACEOF 14183rm -f conftest.$ac_objext 14184if { (ac_try="$ac_compile" 14185case "(($ac_try" in 14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14187 *) ac_try_echo=$ac_try;; 14188esac 14189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14190 (eval "$ac_compile") 2>conftest.er1 14191 ac_status=$? 14192 grep -v '^ *+' conftest.er1 >conftest.err 14193 rm -f conftest.er1 14194 cat conftest.err >&5 14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14196 (exit $ac_status); } && { 14197 test -z "$ac_c_werror_flag" || 14198 test ! -s conftest.err 14199 } && test -s conftest.$ac_objext; then 14200 ac_hi=$ac_mid 14201else 14202 echo "$as_me: failed program was:" >&5 14203sed 's/^/| /' conftest.$ac_ext >&5 14204 14205 ac_lo=`expr '(' $ac_mid ')' + 1` 14206fi 14207 14208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14209done 14210case $ac_lo in 14211?*) ac_cv_sizeof_void_p=$ac_lo;; 14212'') if test "$ac_cv_type_void_p" = yes; then 14213 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) 14214See \`config.log' for more details." >&5 14215echo "$as_me: error: cannot compute sizeof (void *) 14216See \`config.log' for more details." >&2;} 14217 { (exit 77); exit 77; }; } 14218 else 14219 ac_cv_sizeof_void_p=0 14220 fi ;; 14221esac 14222else 14223 cat >conftest.$ac_ext <<_ACEOF 14224/* confdefs.h. */ 14225_ACEOF 14226cat confdefs.h >>conftest.$ac_ext 14227cat >>conftest.$ac_ext <<_ACEOF 14228/* end confdefs.h. */ 14229$ac_includes_default 14230 typedef void * ac__type_sizeof_; 14231static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 14232static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 14233#include <stdio.h> 14234#include <stdlib.h> 14235int 14236main () 14237{ 14238 14239 FILE *f = fopen ("conftest.val", "w"); 14240 if (! f) 14241 return 1; 14242 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 14243 { 14244 long int i = longval (); 14245 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 14246 return 1; 14247 fprintf (f, "%ld\n", i); 14248 } 14249 else 14250 { 14251 unsigned long int i = ulongval (); 14252 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 14253 return 1; 14254 fprintf (f, "%lu\n", i); 14255 } 14256 return ferror (f) || fclose (f) != 0; 14257 14258 ; 14259 return 0; 14260} 14261_ACEOF 14262rm -f conftest$ac_exeext 14263if { (ac_try="$ac_link" 14264case "(($ac_try" in 14265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14266 *) ac_try_echo=$ac_try;; 14267esac 14268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14269 (eval "$ac_link") 2>&5 14270 ac_status=$? 14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14273 { (case "(($ac_try" in 14274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14275 *) ac_try_echo=$ac_try;; 14276esac 14277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14278 (eval "$ac_try") 2>&5 14279 ac_status=$? 14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14281 (exit $ac_status); }; }; then 14282 ac_cv_sizeof_void_p=`cat conftest.val` 14283else 14284 echo "$as_me: program exited with status $ac_status" >&5 14285echo "$as_me: failed program was:" >&5 14286sed 's/^/| /' conftest.$ac_ext >&5 14287 14288( exit $ac_status ) 14289if test "$ac_cv_type_void_p" = yes; then 14290 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *) 14291See \`config.log' for more details." >&5 14292echo "$as_me: error: cannot compute sizeof (void *) 14293See \`config.log' for more details." >&2;} 14294 { (exit 77); exit 77; }; } 14295 else 14296 ac_cv_sizeof_void_p=0 14297 fi 14298fi 14299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14300fi 14301rm -f conftest.val 14302fi 14303{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 14304echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; } 14305 14306 14307 14308cat >>confdefs.h <<_ACEOF 14309#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14310_ACEOF 14311 14312 14313{ echo "$as_me:$LINENO: checking for void *" >&5 14314echo $ECHO_N "checking for void *... $ECHO_C" >&6; } 14315if test "${ac_cv_type_void_p+set}" = set; then 14316 echo $ECHO_N "(cached) $ECHO_C" >&6 14317else 14318 cat >conftest.$ac_ext <<_ACEOF 14319/* confdefs.h. */ 14320_ACEOF 14321cat confdefs.h >>conftest.$ac_ext 14322cat >>conftest.$ac_ext <<_ACEOF 14323/* end confdefs.h. */ 14324$ac_includes_default 14325typedef void * ac__type_new_; 14326int 14327main () 14328{ 14329if ((ac__type_new_ *) 0) 14330 return 0; 14331if (sizeof (ac__type_new_)) 14332 return 0; 14333 ; 14334 return 0; 14335} 14336_ACEOF 14337rm -f conftest.$ac_objext 14338if { (ac_try="$ac_compile" 14339case "(($ac_try" in 14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14341 *) ac_try_echo=$ac_try;; 14342esac 14343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14344 (eval "$ac_compile") 2>conftest.er1 14345 ac_status=$? 14346 grep -v '^ *+' conftest.er1 >conftest.err 14347 rm -f conftest.er1 14348 cat conftest.err >&5 14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14350 (exit $ac_status); } && { 14351 test -z "$ac_c_werror_flag" || 14352 test ! -s conftest.err 14353 } && test -s conftest.$ac_objext; then 14354 ac_cv_type_void_p=yes 14355else 14356 echo "$as_me: failed program was:" >&5 14357sed 's/^/| /' conftest.$ac_ext >&5 14358 14359 ac_cv_type_void_p=no 14360fi 14361 14362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14363fi 14364{ echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 14365echo "${ECHO_T}$ac_cv_type_void_p" >&6; } 14366 14367# The cast to long int works around a bug in the HP C Compiler, 14368# see AC_CHECK_SIZEOF for more information. 14369{ echo "$as_me:$LINENO: checking alignment of void *" >&5 14370echo $ECHO_N "checking alignment of void *... $ECHO_C" >&6; } 14371if test "${ac_cv_alignof_void_p+set}" = set; then 14372 echo $ECHO_N "(cached) $ECHO_C" >&6 14373else 14374 if test "$cross_compiling" = yes; then 14375 # Depending upon the size, compute the lo and hi bounds. 14376cat >conftest.$ac_ext <<_ACEOF 14377/* confdefs.h. */ 14378_ACEOF 14379cat confdefs.h >>conftest.$ac_ext 14380cat >>conftest.$ac_ext <<_ACEOF 14381/* end confdefs.h. */ 14382$ac_includes_default 14383#ifndef offsetof 14384# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 14385#endif 14386typedef struct { char x; void * y; } ac__type_alignof_; 14387int 14388main () 14389{ 14390static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)]; 14391test_array [0] = 0 14392 14393 ; 14394 return 0; 14395} 14396_ACEOF 14397rm -f conftest.$ac_objext 14398if { (ac_try="$ac_compile" 14399case "(($ac_try" in 14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14401 *) ac_try_echo=$ac_try;; 14402esac 14403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14404 (eval "$ac_compile") 2>conftest.er1 14405 ac_status=$? 14406 grep -v '^ *+' conftest.er1 >conftest.err 14407 rm -f conftest.er1 14408 cat conftest.err >&5 14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14410 (exit $ac_status); } && { 14411 test -z "$ac_c_werror_flag" || 14412 test ! -s conftest.err 14413 } && test -s conftest.$ac_objext; then 14414 ac_lo=0 ac_mid=0 14415 while :; do 14416 cat >conftest.$ac_ext <<_ACEOF 14417/* confdefs.h. */ 14418_ACEOF 14419cat confdefs.h >>conftest.$ac_ext 14420cat >>conftest.$ac_ext <<_ACEOF 14421/* end confdefs.h. */ 14422$ac_includes_default 14423#ifndef offsetof 14424# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 14425#endif 14426typedef struct { char x; void * y; } ac__type_alignof_; 14427int 14428main () 14429{ 14430static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 14431test_array [0] = 0 14432 14433 ; 14434 return 0; 14435} 14436_ACEOF 14437rm -f conftest.$ac_objext 14438if { (ac_try="$ac_compile" 14439case "(($ac_try" in 14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14441 *) ac_try_echo=$ac_try;; 14442esac 14443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14444 (eval "$ac_compile") 2>conftest.er1 14445 ac_status=$? 14446 grep -v '^ *+' conftest.er1 >conftest.err 14447 rm -f conftest.er1 14448 cat conftest.err >&5 14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14450 (exit $ac_status); } && { 14451 test -z "$ac_c_werror_flag" || 14452 test ! -s conftest.err 14453 } && test -s conftest.$ac_objext; then 14454 ac_hi=$ac_mid; break 14455else 14456 echo "$as_me: failed program was:" >&5 14457sed 's/^/| /' conftest.$ac_ext >&5 14458 14459 ac_lo=`expr $ac_mid + 1` 14460 if test $ac_lo -le $ac_mid; then 14461 ac_lo= ac_hi= 14462 break 14463 fi 14464 ac_mid=`expr 2 '*' $ac_mid + 1` 14465fi 14466 14467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14468 done 14469else 14470 echo "$as_me: failed program was:" >&5 14471sed 's/^/| /' conftest.$ac_ext >&5 14472 14473 cat >conftest.$ac_ext <<_ACEOF 14474/* confdefs.h. */ 14475_ACEOF 14476cat confdefs.h >>conftest.$ac_ext 14477cat >>conftest.$ac_ext <<_ACEOF 14478/* end confdefs.h. */ 14479$ac_includes_default 14480#ifndef offsetof 14481# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 14482#endif 14483typedef struct { char x; void * y; } ac__type_alignof_; 14484int 14485main () 14486{ 14487static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)]; 14488test_array [0] = 0 14489 14490 ; 14491 return 0; 14492} 14493_ACEOF 14494rm -f conftest.$ac_objext 14495if { (ac_try="$ac_compile" 14496case "(($ac_try" in 14497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14498 *) ac_try_echo=$ac_try;; 14499esac 14500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14501 (eval "$ac_compile") 2>conftest.er1 14502 ac_status=$? 14503 grep -v '^ *+' conftest.er1 >conftest.err 14504 rm -f conftest.er1 14505 cat conftest.err >&5 14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14507 (exit $ac_status); } && { 14508 test -z "$ac_c_werror_flag" || 14509 test ! -s conftest.err 14510 } && test -s conftest.$ac_objext; then 14511 ac_hi=-1 ac_mid=-1 14512 while :; do 14513 cat >conftest.$ac_ext <<_ACEOF 14514/* confdefs.h. */ 14515_ACEOF 14516cat confdefs.h >>conftest.$ac_ext 14517cat >>conftest.$ac_ext <<_ACEOF 14518/* end confdefs.h. */ 14519$ac_includes_default 14520#ifndef offsetof 14521# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 14522#endif 14523typedef struct { char x; void * y; } ac__type_alignof_; 14524int 14525main () 14526{ 14527static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)]; 14528test_array [0] = 0 14529 14530 ; 14531 return 0; 14532} 14533_ACEOF 14534rm -f conftest.$ac_objext 14535if { (ac_try="$ac_compile" 14536case "(($ac_try" in 14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14538 *) ac_try_echo=$ac_try;; 14539esac 14540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14541 (eval "$ac_compile") 2>conftest.er1 14542 ac_status=$? 14543 grep -v '^ *+' conftest.er1 >conftest.err 14544 rm -f conftest.er1 14545 cat conftest.err >&5 14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14547 (exit $ac_status); } && { 14548 test -z "$ac_c_werror_flag" || 14549 test ! -s conftest.err 14550 } && test -s conftest.$ac_objext; then 14551 ac_lo=$ac_mid; break 14552else 14553 echo "$as_me: failed program was:" >&5 14554sed 's/^/| /' conftest.$ac_ext >&5 14555 14556 ac_hi=`expr '(' $ac_mid ')' - 1` 14557 if test $ac_mid -le $ac_hi; then 14558 ac_lo= ac_hi= 14559 break 14560 fi 14561 ac_mid=`expr 2 '*' $ac_mid` 14562fi 14563 14564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14565 done 14566else 14567 echo "$as_me: failed program was:" >&5 14568sed 's/^/| /' conftest.$ac_ext >&5 14569 14570 ac_lo= ac_hi= 14571fi 14572 14573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14574fi 14575 14576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14577# Binary search between lo and hi bounds. 14578while test "x$ac_lo" != "x$ac_hi"; do 14579 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14580 cat >conftest.$ac_ext <<_ACEOF 14581/* confdefs.h. */ 14582_ACEOF 14583cat confdefs.h >>conftest.$ac_ext 14584cat >>conftest.$ac_ext <<_ACEOF 14585/* end confdefs.h. */ 14586$ac_includes_default 14587#ifndef offsetof 14588# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 14589#endif 14590typedef struct { char x; void * y; } ac__type_alignof_; 14591int 14592main () 14593{ 14594static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)]; 14595test_array [0] = 0 14596 14597 ; 14598 return 0; 14599} 14600_ACEOF 14601rm -f conftest.$ac_objext 14602if { (ac_try="$ac_compile" 14603case "(($ac_try" in 14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14605 *) ac_try_echo=$ac_try;; 14606esac 14607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14608 (eval "$ac_compile") 2>conftest.er1 14609 ac_status=$? 14610 grep -v '^ *+' conftest.er1 >conftest.err 14611 rm -f conftest.er1 14612 cat conftest.err >&5 14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14614 (exit $ac_status); } && { 14615 test -z "$ac_c_werror_flag" || 14616 test ! -s conftest.err 14617 } && test -s conftest.$ac_objext; then 14618 ac_hi=$ac_mid 14619else 14620 echo "$as_me: failed program was:" >&5 14621sed 's/^/| /' conftest.$ac_ext >&5 14622 14623 ac_lo=`expr '(' $ac_mid ')' + 1` 14624fi 14625 14626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14627done 14628case $ac_lo in 14629?*) ac_cv_alignof_void_p=$ac_lo;; 14630'') if test "$ac_cv_type_void_p" = yes; then 14631 { { echo "$as_me:$LINENO: error: cannot compute alignment of void * 14632See \`config.log' for more details." >&5 14633echo "$as_me: error: cannot compute alignment of void * 14634See \`config.log' for more details." >&2;} 14635 { (exit 77); exit 77; }; } 14636 else 14637 ac_cv_alignof_void_p=0 14638 fi ;; 14639esac 14640else 14641 cat >conftest.$ac_ext <<_ACEOF 14642/* confdefs.h. */ 14643_ACEOF 14644cat confdefs.h >>conftest.$ac_ext 14645cat >>conftest.$ac_ext <<_ACEOF 14646/* end confdefs.h. */ 14647$ac_includes_default 14648#ifndef offsetof 14649# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0) 14650#endif 14651typedef struct { char x; void * y; } ac__type_alignof_; 14652static long int longval () { return (long int) offsetof (ac__type_alignof_, y); } 14653static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); } 14654#include <stdio.h> 14655#include <stdlib.h> 14656int 14657main () 14658{ 14659 14660 FILE *f = fopen ("conftest.val", "w"); 14661 if (! f) 14662 return 1; 14663 if (((long int) offsetof (ac__type_alignof_, y)) < 0) 14664 { 14665 long int i = longval (); 14666 if (i != ((long int) offsetof (ac__type_alignof_, y))) 14667 return 1; 14668 fprintf (f, "%ld\n", i); 14669 } 14670 else 14671 { 14672 unsigned long int i = ulongval (); 14673 if (i != ((long int) offsetof (ac__type_alignof_, y))) 14674 return 1; 14675 fprintf (f, "%lu\n", i); 14676 } 14677 return ferror (f) || fclose (f) != 0; 14678 14679 ; 14680 return 0; 14681} 14682_ACEOF 14683rm -f conftest$ac_exeext 14684if { (ac_try="$ac_link" 14685case "(($ac_try" in 14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14687 *) ac_try_echo=$ac_try;; 14688esac 14689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14690 (eval "$ac_link") 2>&5 14691 ac_status=$? 14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14694 { (case "(($ac_try" in 14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14696 *) ac_try_echo=$ac_try;; 14697esac 14698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14699 (eval "$ac_try") 2>&5 14700 ac_status=$? 14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14702 (exit $ac_status); }; }; then 14703 ac_cv_alignof_void_p=`cat conftest.val` 14704else 14705 echo "$as_me: program exited with status $ac_status" >&5 14706echo "$as_me: failed program was:" >&5 14707sed 's/^/| /' conftest.$ac_ext >&5 14708 14709( exit $ac_status ) 14710if test "$ac_cv_type_void_p" = yes; then 14711 { { echo "$as_me:$LINENO: error: cannot compute alignment of void * 14712See \`config.log' for more details." >&5 14713echo "$as_me: error: cannot compute alignment of void * 14714See \`config.log' for more details." >&2;} 14715 { (exit 77); exit 77; }; } 14716 else 14717 ac_cv_alignof_void_p=0 14718 fi 14719fi 14720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14721fi 14722rm -f conftest.val 14723fi 14724{ echo "$as_me:$LINENO: result: $ac_cv_alignof_void_p" >&5 14725echo "${ECHO_T}$ac_cv_alignof_void_p" >&6; } 14726 14727 14728 14729cat >>confdefs.h <<_ACEOF 14730#define ALIGNOF_VOID_P $ac_cv_alignof_void_p 14731_ACEOF 14732 14733 14734 14735# Make sure we can run config.sub. 14736$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 14737 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 14738echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 14739 { (exit 1); exit 1; }; } 14740 14741{ echo "$as_me:$LINENO: checking build system type" >&5 14742echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 14743if test "${ac_cv_build+set}" = set; then 14744 echo $ECHO_N "(cached) $ECHO_C" >&6 14745else 14746 ac_build_alias=$build_alias 14747test "x$ac_build_alias" = x && 14748 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 14749test "x$ac_build_alias" = x && 14750 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 14751echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 14752 { (exit 1); exit 1; }; } 14753ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 14754 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 14755echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 14756 { (exit 1); exit 1; }; } 14757 14758fi 14759{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 14760echo "${ECHO_T}$ac_cv_build" >&6; } 14761case $ac_cv_build in 14762*-*-*) ;; 14763*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 14764echo "$as_me: error: invalid value of canonical build" >&2;} 14765 { (exit 1); exit 1; }; };; 14766esac 14767build=$ac_cv_build 14768ac_save_IFS=$IFS; IFS='-' 14769set x $ac_cv_build 14770shift 14771build_cpu=$1 14772build_vendor=$2 14773shift; shift 14774# Remember, the first character of IFS is used to create $*, 14775# except with old shells: 14776build_os=$* 14777IFS=$ac_save_IFS 14778case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 14779 14780 14781{ echo "$as_me:$LINENO: checking host system type" >&5 14782echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 14783if test "${ac_cv_host+set}" = set; then 14784 echo $ECHO_N "(cached) $ECHO_C" >&6 14785else 14786 if test "x$host_alias" = x; then 14787 ac_cv_host=$ac_cv_build 14788else 14789 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 14790 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 14791echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 14792 { (exit 1); exit 1; }; } 14793fi 14794 14795fi 14796{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 14797echo "${ECHO_T}$ac_cv_host" >&6; } 14798case $ac_cv_host in 14799*-*-*) ;; 14800*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 14801echo "$as_me: error: invalid value of canonical host" >&2;} 14802 { (exit 1); exit 1; }; };; 14803esac 14804host=$ac_cv_host 14805ac_save_IFS=$IFS; IFS='-' 14806set x $ac_cv_host 14807shift 14808host_cpu=$1 14809host_vendor=$2 14810shift; shift 14811# Remember, the first character of IFS is used to create $*, 14812# except with old shells: 14813host_os=$* 14814IFS=$ac_save_IFS 14815case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 14816 14817 14818eval 14819cat >>confdefs.h <<_ACEOF 14820#define CANONICAL_HOST "${host}" 14821_ACEOF 14822 14823 14824#-------------------------------------------------------------------- 14825# Check whether --enable-threads or --disable-threads was given. 14826# This auto-enables if Tcl was compiled threaded. 14827#-------------------------------------------------------------------- 14828 14829 14830 # Check whether --enable-threads was given. 14831if test "${enable_threads+set}" = set; then 14832 enableval=$enable_threads; tcl_ok=$enableval 14833else 14834 tcl_ok=yes 14835fi 14836 14837 14838 if test "${enable_threads+set}" = set; then 14839 enableval="$enable_threads" 14840 tcl_ok=$enableval 14841 else 14842 tcl_ok=yes 14843 fi 14844 14845 if test "$tcl_ok" = "yes" -o "${TCL_THREADS}" = 1; then 14846 TCL_THREADS=1 14847 14848 if test "${TEA_PLATFORM}" != "windows" ; then 14849 # We are always OK on Windows, so check what this platform wants: 14850 14851 # USE_THREAD_ALLOC tells us to try the special thread-based 14852 # allocator that significantly reduces lock contention 14853 14854cat >>confdefs.h <<\_ACEOF 14855#define USE_THREAD_ALLOC 1 14856_ACEOF 14857 14858 14859cat >>confdefs.h <<\_ACEOF 14860#define _REENTRANT 1 14861_ACEOF 14862 14863 if test "`uname -s`" = "SunOS" ; then 14864 14865cat >>confdefs.h <<\_ACEOF 14866#define _POSIX_PTHREAD_SEMANTICS 1 14867_ACEOF 14868 14869 fi 14870 14871cat >>confdefs.h <<\_ACEOF 14872#define _THREAD_SAFE 1 14873_ACEOF 14874 14875 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5 14876echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 14877if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then 14878 echo $ECHO_N "(cached) $ECHO_C" >&6 14879else 14880 ac_check_lib_save_LIBS=$LIBS 14881LIBS="-lpthread $LIBS" 14882cat >conftest.$ac_ext <<_ACEOF 14883/* confdefs.h. */ 14884_ACEOF 14885cat confdefs.h >>conftest.$ac_ext 14886cat >>conftest.$ac_ext <<_ACEOF 14887/* end confdefs.h. */ 14888 14889/* Override any GCC internal prototype to avoid an error. 14890 Use char because int might match the return type of a GCC 14891 builtin and then its argument prototype would still apply. */ 14892#ifdef __cplusplus 14893extern "C" 14894#endif 14895char pthread_mutex_init (); 14896int 14897main () 14898{ 14899return pthread_mutex_init (); 14900 ; 14901 return 0; 14902} 14903_ACEOF 14904rm -f conftest.$ac_objext conftest$ac_exeext 14905if { (ac_try="$ac_link" 14906case "(($ac_try" in 14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14908 *) ac_try_echo=$ac_try;; 14909esac 14910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14911 (eval "$ac_link") 2>conftest.er1 14912 ac_status=$? 14913 grep -v '^ *+' conftest.er1 >conftest.err 14914 rm -f conftest.er1 14915 cat conftest.err >&5 14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14917 (exit $ac_status); } && { 14918 test -z "$ac_c_werror_flag" || 14919 test ! -s conftest.err 14920 } && test -s conftest$ac_exeext && 14921 $as_test_x conftest$ac_exeext; then 14922 ac_cv_lib_pthread_pthread_mutex_init=yes 14923else 14924 echo "$as_me: failed program was:" >&5 14925sed 's/^/| /' conftest.$ac_ext >&5 14926 14927 ac_cv_lib_pthread_pthread_mutex_init=no 14928fi 14929 14930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 14931 conftest$ac_exeext conftest.$ac_ext 14932LIBS=$ac_check_lib_save_LIBS 14933fi 14934{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 14935echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; } 14936if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then 14937 tcl_ok=yes 14938else 14939 tcl_ok=no 14940fi 14941 14942 if test "$tcl_ok" = "no"; then 14943 # Check a little harder for __pthread_mutex_init in the same 14944 # library, as some systems hide it there until pthread.h is 14945 # defined. We could alternatively do an AC_TRY_COMPILE with 14946 # pthread.h, but that will work with libpthread really doesn't 14947 # exist, like AIX 4.2. [Bug: 4359] 14948 { echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5 14949echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6; } 14950if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then 14951 echo $ECHO_N "(cached) $ECHO_C" >&6 14952else 14953 ac_check_lib_save_LIBS=$LIBS 14954LIBS="-lpthread $LIBS" 14955cat >conftest.$ac_ext <<_ACEOF 14956/* confdefs.h. */ 14957_ACEOF 14958cat confdefs.h >>conftest.$ac_ext 14959cat >>conftest.$ac_ext <<_ACEOF 14960/* end confdefs.h. */ 14961 14962/* Override any GCC internal prototype to avoid an error. 14963 Use char because int might match the return type of a GCC 14964 builtin and then its argument prototype would still apply. */ 14965#ifdef __cplusplus 14966extern "C" 14967#endif 14968char __pthread_mutex_init (); 14969int 14970main () 14971{ 14972return __pthread_mutex_init (); 14973 ; 14974 return 0; 14975} 14976_ACEOF 14977rm -f conftest.$ac_objext conftest$ac_exeext 14978if { (ac_try="$ac_link" 14979case "(($ac_try" in 14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14981 *) ac_try_echo=$ac_try;; 14982esac 14983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 14984 (eval "$ac_link") 2>conftest.er1 14985 ac_status=$? 14986 grep -v '^ *+' conftest.er1 >conftest.err 14987 rm -f conftest.er1 14988 cat conftest.err >&5 14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14990 (exit $ac_status); } && { 14991 test -z "$ac_c_werror_flag" || 14992 test ! -s conftest.err 14993 } && test -s conftest$ac_exeext && 14994 $as_test_x conftest$ac_exeext; then 14995 ac_cv_lib_pthread___pthread_mutex_init=yes 14996else 14997 echo "$as_me: failed program was:" >&5 14998sed 's/^/| /' conftest.$ac_ext >&5 14999 15000 ac_cv_lib_pthread___pthread_mutex_init=no 15001fi 15002 15003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15004 conftest$ac_exeext conftest.$ac_ext 15005LIBS=$ac_check_lib_save_LIBS 15006fi 15007{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5 15008echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6; } 15009if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then 15010 tcl_ok=yes 15011else 15012 tcl_ok=no 15013fi 15014 15015 fi 15016 15017 if test "$tcl_ok" = "yes"; then 15018 # The space is needed 15019 THREADS_LIBS=" -lpthread" 15020 else 15021 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5 15022echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6; } 15023if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then 15024 echo $ECHO_N "(cached) $ECHO_C" >&6 15025else 15026 ac_check_lib_save_LIBS=$LIBS 15027LIBS="-lpthreads $LIBS" 15028cat >conftest.$ac_ext <<_ACEOF 15029/* confdefs.h. */ 15030_ACEOF 15031cat confdefs.h >>conftest.$ac_ext 15032cat >>conftest.$ac_ext <<_ACEOF 15033/* end confdefs.h. */ 15034 15035/* Override any GCC internal prototype to avoid an error. 15036 Use char because int might match the return type of a GCC 15037 builtin and then its argument prototype would still apply. */ 15038#ifdef __cplusplus 15039extern "C" 15040#endif 15041char pthread_mutex_init (); 15042int 15043main () 15044{ 15045return pthread_mutex_init (); 15046 ; 15047 return 0; 15048} 15049_ACEOF 15050rm -f conftest.$ac_objext conftest$ac_exeext 15051if { (ac_try="$ac_link" 15052case "(($ac_try" in 15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15054 *) ac_try_echo=$ac_try;; 15055esac 15056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15057 (eval "$ac_link") 2>conftest.er1 15058 ac_status=$? 15059 grep -v '^ *+' conftest.er1 >conftest.err 15060 rm -f conftest.er1 15061 cat conftest.err >&5 15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15063 (exit $ac_status); } && { 15064 test -z "$ac_c_werror_flag" || 15065 test ! -s conftest.err 15066 } && test -s conftest$ac_exeext && 15067 $as_test_x conftest$ac_exeext; then 15068 ac_cv_lib_pthreads_pthread_mutex_init=yes 15069else 15070 echo "$as_me: failed program was:" >&5 15071sed 's/^/| /' conftest.$ac_ext >&5 15072 15073 ac_cv_lib_pthreads_pthread_mutex_init=no 15074fi 15075 15076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15077 conftest$ac_exeext conftest.$ac_ext 15078LIBS=$ac_check_lib_save_LIBS 15079fi 15080{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5 15081echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6; } 15082if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then 15083 tcl_ok=yes 15084else 15085 tcl_ok=no 15086fi 15087 15088 if test "$tcl_ok" = "yes"; then 15089 # The space is needed 15090 THREADS_LIBS=" -lpthreads" 15091 else 15092 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc" >&5 15093echo $ECHO_N "checking for pthread_mutex_init in -lc... $ECHO_C" >&6; } 15094if test "${ac_cv_lib_c_pthread_mutex_init+set}" = set; then 15095 echo $ECHO_N "(cached) $ECHO_C" >&6 15096else 15097 ac_check_lib_save_LIBS=$LIBS 15098LIBS="-lc $LIBS" 15099cat >conftest.$ac_ext <<_ACEOF 15100/* confdefs.h. */ 15101_ACEOF 15102cat confdefs.h >>conftest.$ac_ext 15103cat >>conftest.$ac_ext <<_ACEOF 15104/* end confdefs.h. */ 15105 15106/* Override any GCC internal prototype to avoid an error. 15107 Use char because int might match the return type of a GCC 15108 builtin and then its argument prototype would still apply. */ 15109#ifdef __cplusplus 15110extern "C" 15111#endif 15112char pthread_mutex_init (); 15113int 15114main () 15115{ 15116return pthread_mutex_init (); 15117 ; 15118 return 0; 15119} 15120_ACEOF 15121rm -f conftest.$ac_objext conftest$ac_exeext 15122if { (ac_try="$ac_link" 15123case "(($ac_try" in 15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15125 *) ac_try_echo=$ac_try;; 15126esac 15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15128 (eval "$ac_link") 2>conftest.er1 15129 ac_status=$? 15130 grep -v '^ *+' conftest.er1 >conftest.err 15131 rm -f conftest.er1 15132 cat conftest.err >&5 15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15134 (exit $ac_status); } && { 15135 test -z "$ac_c_werror_flag" || 15136 test ! -s conftest.err 15137 } && test -s conftest$ac_exeext && 15138 $as_test_x conftest$ac_exeext; then 15139 ac_cv_lib_c_pthread_mutex_init=yes 15140else 15141 echo "$as_me: failed program was:" >&5 15142sed 's/^/| /' conftest.$ac_ext >&5 15143 15144 ac_cv_lib_c_pthread_mutex_init=no 15145fi 15146 15147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15148 conftest$ac_exeext conftest.$ac_ext 15149LIBS=$ac_check_lib_save_LIBS 15150fi 15151{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_pthread_mutex_init" >&5 15152echo "${ECHO_T}$ac_cv_lib_c_pthread_mutex_init" >&6; } 15153if test $ac_cv_lib_c_pthread_mutex_init = yes; then 15154 tcl_ok=yes 15155else 15156 tcl_ok=no 15157fi 15158 15159 if test "$tcl_ok" = "no"; then 15160 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lc_r" >&5 15161echo $ECHO_N "checking for pthread_mutex_init in -lc_r... $ECHO_C" >&6; } 15162if test "${ac_cv_lib_c_r_pthread_mutex_init+set}" = set; then 15163 echo $ECHO_N "(cached) $ECHO_C" >&6 15164else 15165 ac_check_lib_save_LIBS=$LIBS 15166LIBS="-lc_r $LIBS" 15167cat >conftest.$ac_ext <<_ACEOF 15168/* confdefs.h. */ 15169_ACEOF 15170cat confdefs.h >>conftest.$ac_ext 15171cat >>conftest.$ac_ext <<_ACEOF 15172/* end confdefs.h. */ 15173 15174/* Override any GCC internal prototype to avoid an error. 15175 Use char because int might match the return type of a GCC 15176 builtin and then its argument prototype would still apply. */ 15177#ifdef __cplusplus 15178extern "C" 15179#endif 15180char pthread_mutex_init (); 15181int 15182main () 15183{ 15184return pthread_mutex_init (); 15185 ; 15186 return 0; 15187} 15188_ACEOF 15189rm -f conftest.$ac_objext conftest$ac_exeext 15190if { (ac_try="$ac_link" 15191case "(($ac_try" in 15192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15193 *) ac_try_echo=$ac_try;; 15194esac 15195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15196 (eval "$ac_link") 2>conftest.er1 15197 ac_status=$? 15198 grep -v '^ *+' conftest.er1 >conftest.err 15199 rm -f conftest.er1 15200 cat conftest.err >&5 15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15202 (exit $ac_status); } && { 15203 test -z "$ac_c_werror_flag" || 15204 test ! -s conftest.err 15205 } && test -s conftest$ac_exeext && 15206 $as_test_x conftest$ac_exeext; then 15207 ac_cv_lib_c_r_pthread_mutex_init=yes 15208else 15209 echo "$as_me: failed program was:" >&5 15210sed 's/^/| /' conftest.$ac_ext >&5 15211 15212 ac_cv_lib_c_r_pthread_mutex_init=no 15213fi 15214 15215rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15216 conftest$ac_exeext conftest.$ac_ext 15217LIBS=$ac_check_lib_save_LIBS 15218fi 15219{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_mutex_init" >&5 15220echo "${ECHO_T}$ac_cv_lib_c_r_pthread_mutex_init" >&6; } 15221if test $ac_cv_lib_c_r_pthread_mutex_init = yes; then 15222 tcl_ok=yes 15223else 15224 tcl_ok=no 15225fi 15226 15227 if test "$tcl_ok" = "yes"; then 15228 # The space is needed 15229 THREADS_LIBS=" -pthread" 15230 else 15231 TCL_THREADS=0 15232 { echo "$as_me:$LINENO: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&5 15233echo "$as_me: WARNING: Do not know how to find pthread lib on your system - thread support disabled" >&2;} 15234 fi 15235 fi 15236 fi 15237 fi 15238 fi 15239 else 15240 TCL_THREADS=0 15241 fi 15242 # Do checking message here to not mess up interleaved configure output 15243 { echo "$as_me:$LINENO: checking for building with threads" >&5 15244echo $ECHO_N "checking for building with threads... $ECHO_C" >&6; } 15245 if test "${TCL_THREADS}" = 1; then 15246 15247cat >>confdefs.h <<\_ACEOF 15248#define TCL_THREADS 1 15249_ACEOF 15250 15251 { echo "$as_me:$LINENO: result: yes (default)" >&5 15252echo "${ECHO_T}yes (default)" >&6; } 15253 else 15254 { echo "$as_me:$LINENO: result: no" >&5 15255echo "${ECHO_T}no" >&6; } 15256 fi 15257 # TCL_THREADS sanity checking. See if our request for building with 15258 # threads is the same as the way Tcl was built. If not, warn the user. 15259 case ${TCL_DEFS} in 15260 *THREADS=1*) 15261 if test "${TCL_THREADS}" = "0"; then 15262 { echo "$as_me:$LINENO: WARNING: 15263 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 15264 that IS thread-enabled. It is recommended to use --enable-threads." >&5 15265echo "$as_me: WARNING: 15266 Building ${PACKAGE_NAME} without threads enabled, but building against Tcl 15267 that IS thread-enabled. It is recommended to use --enable-threads." >&2;} 15268 fi 15269 ;; 15270 *) 15271 if test "${TCL_THREADS}" = "1"; then 15272 { echo "$as_me:$LINENO: WARNING: 15273 --enable-threads requested, but building against a Tcl that is NOT 15274 thread-enabled. This is an OK configuration that will also run in 15275 a thread-enabled core." >&5 15276echo "$as_me: WARNING: 15277 --enable-threads requested, but building against a Tcl that is NOT 15278 thread-enabled. This is an OK configuration that will also run in 15279 a thread-enabled core." >&2;} 15280 fi 15281 ;; 15282 esac 15283 15284 15285 15286#-------------------------------------------------------------------- 15287# The statement below defines a collection of symbols related to 15288# building as a shared library instead of a static library. 15289#-------------------------------------------------------------------- 15290 15291 15292 { echo "$as_me:$LINENO: checking how to build libraries" >&5 15293echo $ECHO_N "checking how to build libraries... $ECHO_C" >&6; } 15294 # Check whether --enable-shared was given. 15295if test "${enable_shared+set}" = set; then 15296 enableval=$enable_shared; tcl_ok=$enableval 15297else 15298 tcl_ok=yes 15299fi 15300 15301 15302 if test "${enable_shared+set}" = set; then 15303 enableval="$enable_shared" 15304 tcl_ok=$enableval 15305 else 15306 tcl_ok=yes 15307 fi 15308 15309 if test "$tcl_ok" = "yes" ; then 15310 { echo "$as_me:$LINENO: result: shared" >&5 15311echo "${ECHO_T}shared" >&6; } 15312 SHARED_BUILD=1 15313 else 15314 { echo "$as_me:$LINENO: result: static" >&5 15315echo "${ECHO_T}static" >&6; } 15316 SHARED_BUILD=0 15317 15318cat >>confdefs.h <<\_ACEOF 15319#define STATIC_BUILD 1 15320_ACEOF 15321 15322 fi 15323 15324 15325 15326#-------------------------------------------------------------------- 15327# This macro figures out what flags to use with the compiler/linker 15328# when building shared/static debug/optimized objects. This information 15329# can be taken from the tclConfig.sh file, but this figures it all out. 15330#-------------------------------------------------------------------- 15331 15332 15333 15334 15335 # Step 0.a: Enable 64 bit support? 15336 15337 { echo "$as_me:$LINENO: checking if 64bit support is requested" >&5 15338echo $ECHO_N "checking if 64bit support is requested... $ECHO_C" >&6; } 15339 # Check whether --enable-64bit was given. 15340if test "${enable_64bit+set}" = set; then 15341 enableval=$enable_64bit; do64bit=$enableval 15342else 15343 do64bit=no 15344fi 15345 15346 { echo "$as_me:$LINENO: result: $do64bit" >&5 15347echo "${ECHO_T}$do64bit" >&6; } 15348 15349 # Step 0.b: Enable Solaris 64 bit VIS support? 15350 15351 { echo "$as_me:$LINENO: checking if 64bit Sparc VIS support is requested" >&5 15352echo $ECHO_N "checking if 64bit Sparc VIS support is requested... $ECHO_C" >&6; } 15353 # Check whether --enable-64bit-vis was given. 15354if test "${enable_64bit_vis+set}" = set; then 15355 enableval=$enable_64bit_vis; do64bitVIS=$enableval 15356else 15357 do64bitVIS=no 15358fi 15359 15360 { echo "$as_me:$LINENO: result: $do64bitVIS" >&5 15361echo "${ECHO_T}$do64bitVIS" >&6; } 15362 # Force 64bit on with VIS 15363 if test "$do64bitVIS" = "yes"; then 15364 do64bit=yes 15365fi 15366 15367 15368 # Step 0.c: Check if visibility support is available. Do this here so 15369 # that platform specific alternatives can be used below if this fails. 15370 15371 { echo "$as_me:$LINENO: checking if compiler supports visibility \"hidden\"" >&5 15372echo $ECHO_N "checking if compiler supports visibility \"hidden\"... $ECHO_C" >&6; } 15373if test "${tcl_cv_cc_visibility_hidden+set}" = set; then 15374 echo $ECHO_N "(cached) $ECHO_C" >&6 15375else 15376 15377 hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -Werror" 15378 cat >conftest.$ac_ext <<_ACEOF 15379/* confdefs.h. */ 15380_ACEOF 15381cat confdefs.h >>conftest.$ac_ext 15382cat >>conftest.$ac_ext <<_ACEOF 15383/* end confdefs.h. */ 15384 15385 extern __attribute__((__visibility__("hidden"))) void f(void); 15386 void f(void) {} 15387int 15388main () 15389{ 15390f(); 15391 ; 15392 return 0; 15393} 15394_ACEOF 15395rm -f conftest.$ac_objext conftest$ac_exeext 15396if { (ac_try="$ac_link" 15397case "(($ac_try" in 15398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15399 *) ac_try_echo=$ac_try;; 15400esac 15401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15402 (eval "$ac_link") 2>conftest.er1 15403 ac_status=$? 15404 grep -v '^ *+' conftest.er1 >conftest.err 15405 rm -f conftest.er1 15406 cat conftest.err >&5 15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15408 (exit $ac_status); } && { 15409 test -z "$ac_c_werror_flag" || 15410 test ! -s conftest.err 15411 } && test -s conftest$ac_exeext && 15412 $as_test_x conftest$ac_exeext; then 15413 tcl_cv_cc_visibility_hidden=yes 15414else 15415 echo "$as_me: failed program was:" >&5 15416sed 's/^/| /' conftest.$ac_ext >&5 15417 15418 tcl_cv_cc_visibility_hidden=no 15419fi 15420 15421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15422 conftest$ac_exeext conftest.$ac_ext 15423 CFLAGS=$hold_cflags 15424fi 15425{ echo "$as_me:$LINENO: result: $tcl_cv_cc_visibility_hidden" >&5 15426echo "${ECHO_T}$tcl_cv_cc_visibility_hidden" >&6; } 15427 if test $tcl_cv_cc_visibility_hidden = yes; then 15428 15429 15430cat >>confdefs.h <<\_ACEOF 15431#define MODULE_SCOPE extern __attribute__((__visibility__("hidden"))) 15432_ACEOF 15433 15434 15435fi 15436 15437 15438 # Step 0.d: Disable -rpath support? 15439 15440 { echo "$as_me:$LINENO: checking if rpath support is requested" >&5 15441echo $ECHO_N "checking if rpath support is requested... $ECHO_C" >&6; } 15442 # Check whether --enable-rpath was given. 15443if test "${enable_rpath+set}" = set; then 15444 enableval=$enable_rpath; doRpath=$enableval 15445else 15446 doRpath=yes 15447fi 15448 15449 { echo "$as_me:$LINENO: result: $doRpath" >&5 15450echo "${ECHO_T}$doRpath" >&6; } 15451 15452 # TEA specific: Cross-compiling options for Windows/CE builds? 15453 15454 if test "${TEA_PLATFORM}" = windows; then 15455 15456 { echo "$as_me:$LINENO: checking if Windows/CE build is requested" >&5 15457echo $ECHO_N "checking if Windows/CE build is requested... $ECHO_C" >&6; } 15458 # Check whether --enable-wince was given. 15459if test "${enable_wince+set}" = set; then 15460 enableval=$enable_wince; doWince=$enableval 15461else 15462 doWince=no 15463fi 15464 15465 { echo "$as_me:$LINENO: result: $doWince" >&5 15466echo "${ECHO_T}$doWince" >&6; } 15467 15468fi 15469 15470 15471 # Set the variable "system" to hold the name and version number 15472 # for the system. 15473 15474 15475 { echo "$as_me:$LINENO: checking system version" >&5 15476echo $ECHO_N "checking system version... $ECHO_C" >&6; } 15477if test "${tcl_cv_sys_version+set}" = set; then 15478 echo $ECHO_N "(cached) $ECHO_C" >&6 15479else 15480 15481 # TEA specific: 15482 if test "${TEA_PLATFORM}" = "windows" ; then 15483 tcl_cv_sys_version=windows 15484 else 15485 tcl_cv_sys_version=`uname -s`-`uname -r` 15486 if test "$?" -ne 0 ; then 15487 { echo "$as_me:$LINENO: WARNING: can't find uname command" >&5 15488echo "$as_me: WARNING: can't find uname command" >&2;} 15489 tcl_cv_sys_version=unknown 15490 else 15491 if test "`uname -s`" = "AIX" ; then 15492 tcl_cv_sys_version=AIX-`uname -v`.`uname -r` 15493 fi 15494 fi 15495 fi 15496 15497fi 15498{ echo "$as_me:$LINENO: result: $tcl_cv_sys_version" >&5 15499echo "${ECHO_T}$tcl_cv_sys_version" >&6; } 15500 system=$tcl_cv_sys_version 15501 15502 15503 # Require ranlib early so we can override it in special cases below. 15504 15505 15506 15507 # Set configuration options based on system name and version. 15508 # This is similar to Tcl's unix/tcl.m4 except that we've added a 15509 # "windows" case and removed some core-only vars. 15510 15511 do64bit_ok=no 15512 # default to '{$LIBS}' and set to "" on per-platform necessary basis 15513 SHLIB_LD_LIBS='${LIBS}' 15514 # When ld needs options to work in 64-bit mode, put them in 15515 # LDFLAGS_ARCH so they eventually end up in LDFLAGS even if [load] 15516 # is disabled by the user. [Bug 1016796] 15517 LDFLAGS_ARCH="" 15518 UNSHARED_LIB_SUFFIX="" 15519 # TEA specific: use PACKAGE_VERSION instead of VERSION 15520 TCL_TRIM_DOTS='`echo ${PACKAGE_VERSION} | tr -d .`' 15521 ECHO_VERSION='`echo ${PACKAGE_VERSION}`' 15522 TCL_LIB_VERSIONS_OK=ok 15523 CFLAGS_DEBUG=-g 15524 CFLAGS_OPTIMIZE=-O 15525 if test "$GCC" = yes; then 15526 15527 # TEA specific: 15528 CFLAGS_OPTIMIZE=-O2 15529 CFLAGS_WARNING="-Wall" 15530 15531else 15532 CFLAGS_WARNING="" 15533fi 15534 15535 # Extract the first word of "ar", so it can be a program name with args. 15536set dummy ar; ac_word=$2 15537{ echo "$as_me:$LINENO: checking for $ac_word" >&5 15538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 15539if test "${ac_cv_prog_AR+set}" = set; then 15540 echo $ECHO_N "(cached) $ECHO_C" >&6 15541else 15542 if test -n "$AR"; then 15543 ac_cv_prog_AR="$AR" # Let the user override the test. 15544else 15545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15546for as_dir in $PATH 15547do 15548 IFS=$as_save_IFS 15549 test -z "$as_dir" && as_dir=. 15550 for ac_exec_ext in '' $ac_executable_extensions; do 15551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15552 ac_cv_prog_AR="ar" 15553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 15554 break 2 15555 fi 15556done 15557done 15558IFS=$as_save_IFS 15559 15560fi 15561fi 15562AR=$ac_cv_prog_AR 15563if test -n "$AR"; then 15564 { echo "$as_me:$LINENO: result: $AR" >&5 15565echo "${ECHO_T}$AR" >&6; } 15566else 15567 { echo "$as_me:$LINENO: result: no" >&5 15568echo "${ECHO_T}no" >&6; } 15569fi 15570 15571 15572 STLIB_LD='${AR} cr' 15573 LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" 15574 if test "x$SHLIB_VERSION" = x; then 15575 SHLIB_VERSION="1.0" 15576fi 15577 15578 case $system in 15579 # TEA specific: 15580 windows) 15581 # This is a 2-stage check to make sure we have the 64-bit SDK 15582 # We have to know where the SDK is installed. 15583 # This magic is based on MS Platform SDK for Win2003 SP1 - hobbs 15584 # MACHINE is IX86 for LINK, but this is used by the manifest, 15585 # which requires x86|amd64|ia64. 15586 MACHINE="X86" 15587 if test "$do64bit" != "no" ; then 15588 if test "x${MSSDK}x" = "xx" ; then 15589 MSSDK="C:/Progra~1/Microsoft Platform SDK" 15590 fi 15591 MSSDK=`echo "$MSSDK" | sed -e 's!\\\!/!g'` 15592 PATH64="" 15593 case "$do64bit" in 15594 amd64|x64|yes) 15595 MACHINE="AMD64" ; # default to AMD64 64-bit build 15596 PATH64="${MSSDK}/Bin/Win64/x86/AMD64" 15597 ;; 15598 ia64) 15599 MACHINE="IA64" 15600 PATH64="${MSSDK}/Bin/Win64" 15601 ;; 15602 esac 15603 if test ! -d "${PATH64}" ; then 15604 { echo "$as_me:$LINENO: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&5 15605echo "$as_me: WARNING: Could not find 64-bit $MACHINE SDK to enable 64bit mode" >&2;} 15606 { echo "$as_me:$LINENO: WARNING: Ensure latest Platform SDK is installed" >&5 15607echo "$as_me: WARNING: Ensure latest Platform SDK is installed" >&2;} 15608 do64bit="no" 15609 else 15610 { echo "$as_me:$LINENO: result: Using 64-bit $MACHINE mode" >&5 15611echo "${ECHO_T} Using 64-bit $MACHINE mode" >&6; } 15612 do64bit_ok="yes" 15613 fi 15614 fi 15615 15616 if test "$doWince" != "no" ; then 15617 if test "$do64bit" != "no" ; then 15618 { { echo "$as_me:$LINENO: error: Windows/CE and 64-bit builds incompatible" >&5 15619echo "$as_me: error: Windows/CE and 64-bit builds incompatible" >&2;} 15620 { (exit 1); exit 1; }; } 15621 fi 15622 if test "$GCC" = "yes" ; then 15623 { { echo "$as_me:$LINENO: error: Windows/CE and GCC builds incompatible" >&5 15624echo "$as_me: error: Windows/CE and GCC builds incompatible" >&2;} 15625 { (exit 1); exit 1; }; } 15626 fi 15627 15628 # First, look for one uninstalled. 15629 # the alternative search directory is invoked by --with-celib 15630 15631 if test x"${no_celib}" = x ; then 15632 # we reset no_celib in case something fails here 15633 no_celib=true 15634 15635# Check whether --with-celib was given. 15636if test "${with_celib+set}" = set; then 15637 withval=$with_celib; with_celibconfig=${withval} 15638fi 15639 15640 { echo "$as_me:$LINENO: checking for Windows/CE celib directory" >&5 15641echo $ECHO_N "checking for Windows/CE celib directory... $ECHO_C" >&6; } 15642 if test "${ac_cv_c_celibconfig+set}" = set; then 15643 echo $ECHO_N "(cached) $ECHO_C" >&6 15644else 15645 15646 # First check to see if --with-celibconfig was specified. 15647 if test x"${with_celibconfig}" != x ; then 15648 if test -d "${with_celibconfig}/inc" ; then 15649 ac_cv_c_celibconfig=`(cd ${with_celibconfig}; pwd)` 15650 else 15651 { { echo "$as_me:$LINENO: error: ${with_celibconfig} directory doesn't contain inc directory" >&5 15652echo "$as_me: error: ${with_celibconfig} directory doesn't contain inc directory" >&2;} 15653 { (exit 1); exit 1; }; } 15654 fi 15655 fi 15656 15657 # then check for a celib library 15658 if test x"${ac_cv_c_celibconfig}" = x ; then 15659 for i in \ 15660 ../celib-palm-3.0 \ 15661 ../celib \ 15662 ../../celib-palm-3.0 \ 15663 ../../celib \ 15664 `ls -dr ../celib-*3.[0-9]* 2>/dev/null` \ 15665 ${srcdir}/../celib-palm-3.0 \ 15666 ${srcdir}/../celib \ 15667 `ls -dr ${srcdir}/../celib-*3.[0-9]* 2>/dev/null` \ 15668 ; do 15669 if test -d "$i/inc" ; then 15670 ac_cv_c_celibconfig=`(cd $i; pwd)` 15671 break 15672 fi 15673 done 15674 fi 15675 15676fi 15677 15678 if test x"${ac_cv_c_celibconfig}" = x ; then 15679 { { echo "$as_me:$LINENO: error: Cannot find celib support library directory" >&5 15680echo "$as_me: error: Cannot find celib support library directory" >&2;} 15681 { (exit 1); exit 1; }; } 15682 else 15683 no_celib= 15684 CELIB_DIR=${ac_cv_c_celibconfig} 15685 CELIB_DIR=`echo "$CELIB_DIR" | sed -e 's!\\\!/!g'` 15686 { echo "$as_me:$LINENO: result: found $CELIB_DIR" >&5 15687echo "${ECHO_T}found $CELIB_DIR" >&6; } 15688 fi 15689 fi 15690 15691 # Set defaults for common evc4/PPC2003 setup 15692 # Currently Tcl requires 300+, possibly 420+ for sockets 15693 CEVERSION=420; # could be 211 300 301 400 420 ... 15694 TARGETCPU=ARMV4; # could be ARMV4 ARM MIPS SH3 X86 ... 15695 ARCH=ARM; # could be ARM MIPS X86EM ... 15696 PLATFORM="Pocket PC 2003"; # or "Pocket PC 2002" 15697 if test "$doWince" != "yes"; then 15698 # If !yes then the user specified something 15699 # Reset ARCH to allow user to skip specifying it 15700 ARCH= 15701 eval `echo $doWince | awk -F, '{ \ 15702 if (length($1)) { printf "CEVERSION=\"%s\"\n", $1; \ 15703 if ($1 < 400) { printf "PLATFORM=\"Pocket PC 2002\"\n" } }; \ 15704 if (length($2)) { printf "TARGETCPU=\"%s\"\n", toupper($2) }; \ 15705 if (length($3)) { printf "ARCH=\"%s\"\n", toupper($3) }; \ 15706 if (length($4)) { printf "PLATFORM=\"%s\"\n", $4 }; \ 15707 }'` 15708 if test "x${ARCH}" = "x" ; then 15709 ARCH=$TARGETCPU; 15710 fi 15711 fi 15712 OSVERSION=WCE$CEVERSION; 15713 if test "x${WCEROOT}" = "x" ; then 15714 WCEROOT="C:/Program Files/Microsoft eMbedded C++ 4.0" 15715 if test ! -d "${WCEROOT}" ; then 15716 WCEROOT="C:/Program Files/Microsoft eMbedded Tools" 15717 fi 15718 fi 15719 if test "x${SDKROOT}" = "x" ; then 15720 SDKROOT="C:/Program Files/Windows CE Tools" 15721 if test ! -d "${SDKROOT}" ; then 15722 SDKROOT="C:/Windows CE Tools" 15723 fi 15724 fi 15725 WCEROOT=`echo "$WCEROOT" | sed -e 's!\\\!/!g'` 15726 SDKROOT=`echo "$SDKROOT" | sed -e 's!\\\!/!g'` 15727 if test ! -d "${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" \ 15728 -o ! -d "${WCEROOT}/EVC/${OSVERSION}/bin"; then 15729 { { echo "$as_me:$LINENO: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&5 15730echo "$as_me: error: could not find PocketPC SDK or target compiler to enable WinCE mode $CEVERSION,$TARGETCPU,$ARCH,$PLATFORM" >&2;} 15731 { (exit 1); exit 1; }; } 15732 doWince="no" 15733 else 15734 # We could PATH_NOSPACE these, but that's not important, 15735 # as long as we quote them when used. 15736 CEINCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include" 15737 if test -d "${CEINCLUDE}/${TARGETCPU}" ; then 15738 CEINCLUDE="${CEINCLUDE}/${TARGETCPU}" 15739 fi 15740 CELIBPATH="${SDKROOT}/${OSVERSION}/${PLATFORM}/Lib/${TARGETCPU}" 15741 fi 15742 fi 15743 15744 if test "$GCC" != "yes" ; then 15745 if test "${SHARED_BUILD}" = "0" ; then 15746 runtime=-MT 15747 else 15748 runtime=-MD 15749 fi 15750 15751 if test "$do64bit" != "no" ; then 15752 # All this magic is necessary for the Win64 SDK RC1 - hobbs 15753 CC="\"${PATH64}/cl.exe\"" 15754 CFLAGS="${CFLAGS} -I\"${MSSDK}/Include\" -I\"${MSSDK}/Include/crt\" -I\"${MSSDK}/Include/crt/sys\"" 15755 RC="\"${MSSDK}/bin/rc.exe\"" 15756 lflags="-nologo -MACHINE:${MACHINE} -LIBPATH:\"${MSSDK}/Lib/${MACHINE}\"" 15757 LINKBIN="\"${PATH64}/link.exe\"" 15758 CFLAGS_DEBUG="-nologo -Zi -Od -W3 ${runtime}d" 15759 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 15760 # Avoid 'unresolved external symbol __security_cookie' 15761 # errors, c.f. http://support.microsoft.com/?id=894573 15762 15763 vars="bufferoverflowU.lib" 15764 for i in $vars; do 15765 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" = "yes" ; then 15766 # Convert foo.lib to -lfoo for GCC. No-op if not *.lib 15767 i=`echo "$i" | sed -e 's/^\([^-].*\)\.lib$/-l\1/i'` 15768 fi 15769 PKG_LIBS="$PKG_LIBS $i" 15770 done 15771 15772 15773 elif test "$doWince" != "no" ; then 15774 CEBINROOT="${WCEROOT}/EVC/${OSVERSION}/bin" 15775 if test "${TARGETCPU}" = "X86"; then 15776 CC="\"${CEBINROOT}/cl.exe\"" 15777 else 15778 CC="\"${CEBINROOT}/cl${ARCH}.exe\"" 15779 fi 15780 CFLAGS="$CFLAGS -I\"${CELIB_DIR}/inc\" -I\"${CEINCLUDE}\"" 15781 RC="\"${WCEROOT}/Common/EVC/bin/rc.exe\"" 15782 arch=`echo ${ARCH} | awk '{print tolower($0)}'` 15783 defs="${ARCH} _${ARCH}_ ${arch} PALM_SIZE _MT _WINDOWS" 15784 if test "${SHARED_BUILD}" = "1" ; then 15785 # Static CE builds require static celib as well 15786 defs="${defs} _DLL" 15787 fi 15788 for i in $defs ; do 15789 15790cat >>confdefs.h <<_ACEOF 15791#define $i 1 15792_ACEOF 15793 15794 done 15795 15796cat >>confdefs.h <<_ACEOF 15797#define _WIN32_WCE $CEVERSION 15798_ACEOF 15799 15800 15801cat >>confdefs.h <<_ACEOF 15802#define UNDER_CE $CEVERSION 15803_ACEOF 15804 15805 CFLAGS_DEBUG="-nologo -Zi -Od" 15806 CFLAGS_OPTIMIZE="-nologo -Ox" 15807 lversion=`echo ${CEVERSION} | sed -e 's/\(.\)\(..\)/\1\.\2/'` 15808 lflags="-MACHINE:${ARCH} -LIBPATH:\"${CELIBPATH}\" -subsystem:windowsce,${lversion} -nologo" 15809 LINKBIN="\"${CEBINROOT}/link.exe\"" 15810 15811 else 15812 RC="rc" 15813 lflags="-nologo" 15814 LINKBIN="link" 15815 CFLAGS_DEBUG="-nologo -Z7 -Od -W3 -WX ${runtime}d" 15816 CFLAGS_OPTIMIZE="-nologo -O2 -W2 ${runtime}" 15817 fi 15818 fi 15819 15820 if test "$GCC" = "yes"; then 15821 # mingw gcc mode 15822 RC="windres" 15823 CFLAGS_DEBUG="-g" 15824 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 15825 SHLIB_LD="$CC -shared" 15826 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 15827 LDFLAGS_CONSOLE="-wl,--subsystem,console ${lflags}" 15828 LDFLAGS_WINDOW="-wl,--subsystem,windows ${lflags}" 15829 else 15830 SHLIB_LD="${LINKBIN} -dll ${lflags}" 15831 # link -lib only works when -lib is the first arg 15832 STLIB_LD="${LINKBIN} -lib ${lflags}" 15833 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.lib' 15834 PATHTYPE=-w 15835 # For information on what debugtype is most useful, see: 15836 # http://msdn.microsoft.com/library/en-us/dnvc60/html/gendepdebug.asp 15837 # and also 15838 # http://msdn2.microsoft.com/en-us/library/y0zzbyt4%28VS.80%29.aspx 15839 # This essentially turns it all on. 15840 LDFLAGS_DEBUG="-debug -debugtype:cv" 15841 LDFLAGS_OPTIMIZE="-release" 15842 if test "$doWince" != "no" ; then 15843 LDFLAGS_CONSOLE="-link ${lflags}" 15844 LDFLAGS_WINDOW=${LDFLAGS_CONSOLE} 15845 else 15846 LDFLAGS_CONSOLE="-link -subsystem:console ${lflags}" 15847 LDFLAGS_WINDOW="-link -subsystem:windows ${lflags}" 15848 fi 15849 fi 15850 15851 SHLIB_SUFFIX=".dll" 15852 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.dll' 15853 15854 TCL_LIB_VERSIONS_OK=nodots 15855 ;; 15856 AIX-*) 15857 if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"; then 15858 15859 # AIX requires the _r compiler when gcc isn't being used 15860 case "${CC}" in 15861 *_r|*_r\ *) 15862 # ok ... 15863 ;; 15864 *) 15865 # Make sure only first arg gets _r 15866 CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'` 15867 ;; 15868 esac 15869 { echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5 15870echo "${ECHO_T}Using $CC for compiling with threads" >&6; } 15871 15872fi 15873 15874 LIBS="$LIBS -lc" 15875 SHLIB_CFLAGS="" 15876 SHLIB_SUFFIX=".so" 15877 15878 LD_LIBRARY_PATH_VAR="LIBPATH" 15879 15880 # Check to enable 64-bit flags for compiler/linker 15881 if test "$do64bit" = yes; then 15882 15883 if test "$GCC" = yes; then 15884 15885 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 15886echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 15887 15888else 15889 15890 do64bit_ok=yes 15891 CFLAGS="$CFLAGS -q64" 15892 LDFLAGS_ARCH="-q64" 15893 RANLIB="${RANLIB} -X64" 15894 AR="${AR} -X64" 15895 SHLIB_LD_FLAGS="-b64" 15896 15897fi 15898 15899 15900fi 15901 15902 15903 if test "`uname -m`" = ia64; then 15904 15905 # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC 15906 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 15907 if test "$GCC" = yes; then 15908 15909 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 15910 15911else 15912 15913 CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' 15914 15915fi 15916 15917 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 15918 15919else 15920 15921 if test "$GCC" = yes; then 15922 15923 SHLIB_LD='${CC} -shared -Wl,-bexpall' 15924 15925else 15926 15927 SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bexpall -H512 -T512 -bnoentry" 15928 LDFLAGS="$LDFLAGS -brtl" 15929 15930fi 15931 15932 SHLIB_LD="${SHLIB_LD} ${SHLIB_LD_FLAGS}" 15933 CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' 15934 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 15935 15936fi 15937 15938 ;; 15939 BeOS*) 15940 SHLIB_CFLAGS="-fPIC" 15941 SHLIB_LD='${CC} -nostart' 15942 SHLIB_SUFFIX=".so" 15943 15944 #----------------------------------------------------------- 15945 # Check for inet_ntoa in -lbind, for BeOS (which also needs 15946 # -lsocket, even if the network functions are in -lnet which 15947 # is always linked to, for compatibility. 15948 #----------------------------------------------------------- 15949 { echo "$as_me:$LINENO: checking for inet_ntoa in -lbind" >&5 15950echo $ECHO_N "checking for inet_ntoa in -lbind... $ECHO_C" >&6; } 15951if test "${ac_cv_lib_bind_inet_ntoa+set}" = set; then 15952 echo $ECHO_N "(cached) $ECHO_C" >&6 15953else 15954 ac_check_lib_save_LIBS=$LIBS 15955LIBS="-lbind $LIBS" 15956cat >conftest.$ac_ext <<_ACEOF 15957/* confdefs.h. */ 15958_ACEOF 15959cat confdefs.h >>conftest.$ac_ext 15960cat >>conftest.$ac_ext <<_ACEOF 15961/* end confdefs.h. */ 15962 15963/* Override any GCC internal prototype to avoid an error. 15964 Use char because int might match the return type of a GCC 15965 builtin and then its argument prototype would still apply. */ 15966#ifdef __cplusplus 15967extern "C" 15968#endif 15969char inet_ntoa (); 15970int 15971main () 15972{ 15973return inet_ntoa (); 15974 ; 15975 return 0; 15976} 15977_ACEOF 15978rm -f conftest.$ac_objext conftest$ac_exeext 15979if { (ac_try="$ac_link" 15980case "(($ac_try" in 15981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15982 *) ac_try_echo=$ac_try;; 15983esac 15984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 15985 (eval "$ac_link") 2>conftest.er1 15986 ac_status=$? 15987 grep -v '^ *+' conftest.er1 >conftest.err 15988 rm -f conftest.er1 15989 cat conftest.err >&5 15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15991 (exit $ac_status); } && { 15992 test -z "$ac_c_werror_flag" || 15993 test ! -s conftest.err 15994 } && test -s conftest$ac_exeext && 15995 $as_test_x conftest$ac_exeext; then 15996 ac_cv_lib_bind_inet_ntoa=yes 15997else 15998 echo "$as_me: failed program was:" >&5 15999sed 's/^/| /' conftest.$ac_ext >&5 16000 16001 ac_cv_lib_bind_inet_ntoa=no 16002fi 16003 16004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16005 conftest$ac_exeext conftest.$ac_ext 16006LIBS=$ac_check_lib_save_LIBS 16007fi 16008{ echo "$as_me:$LINENO: result: $ac_cv_lib_bind_inet_ntoa" >&5 16009echo "${ECHO_T}$ac_cv_lib_bind_inet_ntoa" >&6; } 16010if test $ac_cv_lib_bind_inet_ntoa = yes; then 16011 LIBS="$LIBS -lbind -lsocket" 16012fi 16013 16014 ;; 16015 BSD/OS-4.*) 16016 SHLIB_CFLAGS="-export-dynamic -fPIC" 16017 SHLIB_LD='${CC} -shared' 16018 SHLIB_SUFFIX=".so" 16019 LDFLAGS="$LDFLAGS -export-dynamic" 16020 CC_SEARCH_FLAGS="" 16021 LD_SEARCH_FLAGS="" 16022 ;; 16023 CYGWIN_*) 16024 SHLIB_CFLAGS="" 16025 SHLIB_LD='${CC} -shared' 16026 SHLIB_SUFFIX=".dll" 16027 EXE_SUFFIX=".exe" 16028 CC_SEARCH_FLAGS="" 16029 LD_SEARCH_FLAGS="" 16030 ;; 16031 Haiku*) 16032 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 16033 SHLIB_CFLAGS="-fPIC" 16034 SHLIB_SUFFIX=".so" 16035 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' 16036 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnetwork" >&5 16037echo $ECHO_N "checking for inet_ntoa in -lnetwork... $ECHO_C" >&6; } 16038if test "${ac_cv_lib_network_inet_ntoa+set}" = set; then 16039 echo $ECHO_N "(cached) $ECHO_C" >&6 16040else 16041 ac_check_lib_save_LIBS=$LIBS 16042LIBS="-lnetwork $LIBS" 16043cat >conftest.$ac_ext <<_ACEOF 16044/* confdefs.h. */ 16045_ACEOF 16046cat confdefs.h >>conftest.$ac_ext 16047cat >>conftest.$ac_ext <<_ACEOF 16048/* end confdefs.h. */ 16049 16050/* Override any GCC internal prototype to avoid an error. 16051 Use char because int might match the return type of a GCC 16052 builtin and then its argument prototype would still apply. */ 16053#ifdef __cplusplus 16054extern "C" 16055#endif 16056char inet_ntoa (); 16057int 16058main () 16059{ 16060return inet_ntoa (); 16061 ; 16062 return 0; 16063} 16064_ACEOF 16065rm -f conftest.$ac_objext conftest$ac_exeext 16066if { (ac_try="$ac_link" 16067case "(($ac_try" in 16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16069 *) ac_try_echo=$ac_try;; 16070esac 16071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16072 (eval "$ac_link") 2>conftest.er1 16073 ac_status=$? 16074 grep -v '^ *+' conftest.er1 >conftest.err 16075 rm -f conftest.er1 16076 cat conftest.err >&5 16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16078 (exit $ac_status); } && { 16079 test -z "$ac_c_werror_flag" || 16080 test ! -s conftest.err 16081 } && test -s conftest$ac_exeext && 16082 $as_test_x conftest$ac_exeext; then 16083 ac_cv_lib_network_inet_ntoa=yes 16084else 16085 echo "$as_me: failed program was:" >&5 16086sed 's/^/| /' conftest.$ac_ext >&5 16087 16088 ac_cv_lib_network_inet_ntoa=no 16089fi 16090 16091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16092 conftest$ac_exeext conftest.$ac_ext 16093LIBS=$ac_check_lib_save_LIBS 16094fi 16095{ echo "$as_me:$LINENO: result: $ac_cv_lib_network_inet_ntoa" >&5 16096echo "${ECHO_T}$ac_cv_lib_network_inet_ntoa" >&6; } 16097if test $ac_cv_lib_network_inet_ntoa = yes; then 16098 LIBS="$LIBS -lnetwork" 16099fi 16100 16101 ;; 16102 HP-UX-*.11.*) 16103 # Use updated header definitions where possible 16104 16105cat >>confdefs.h <<\_ACEOF 16106#define _XOPEN_SOURCE_EXTENDED 1 16107_ACEOF 16108 16109 # TEA specific: Needed by Tcl, but not most extensions 16110 #AC_DEFINE(_XOPEN_SOURCE, 1, [Do we want to use the XOPEN network library?]) 16111 #LIBS="$LIBS -lxnet" # Use the XOPEN network library 16112 16113 if test "`uname -m`" = ia64; then 16114 16115 SHLIB_SUFFIX=".so" 16116 # Use newer C++ library for C++ extensions 16117 #if test "$GCC" != "yes" ; then 16118 # CPPFLAGS="-AA" 16119 #fi 16120 16121else 16122 16123 SHLIB_SUFFIX=".sl" 16124 16125fi 16126 16127 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 16128echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } 16129if test "${ac_cv_lib_dld_shl_load+set}" = set; then 16130 echo $ECHO_N "(cached) $ECHO_C" >&6 16131else 16132 ac_check_lib_save_LIBS=$LIBS 16133LIBS="-ldld $LIBS" 16134cat >conftest.$ac_ext <<_ACEOF 16135/* confdefs.h. */ 16136_ACEOF 16137cat confdefs.h >>conftest.$ac_ext 16138cat >>conftest.$ac_ext <<_ACEOF 16139/* end confdefs.h. */ 16140 16141/* Override any GCC internal prototype to avoid an error. 16142 Use char because int might match the return type of a GCC 16143 builtin and then its argument prototype would still apply. */ 16144#ifdef __cplusplus 16145extern "C" 16146#endif 16147char shl_load (); 16148int 16149main () 16150{ 16151return shl_load (); 16152 ; 16153 return 0; 16154} 16155_ACEOF 16156rm -f conftest.$ac_objext conftest$ac_exeext 16157if { (ac_try="$ac_link" 16158case "(($ac_try" in 16159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16160 *) ac_try_echo=$ac_try;; 16161esac 16162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16163 (eval "$ac_link") 2>conftest.er1 16164 ac_status=$? 16165 grep -v '^ *+' conftest.er1 >conftest.err 16166 rm -f conftest.er1 16167 cat conftest.err >&5 16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16169 (exit $ac_status); } && { 16170 test -z "$ac_c_werror_flag" || 16171 test ! -s conftest.err 16172 } && test -s conftest$ac_exeext && 16173 $as_test_x conftest$ac_exeext; then 16174 ac_cv_lib_dld_shl_load=yes 16175else 16176 echo "$as_me: failed program was:" >&5 16177sed 's/^/| /' conftest.$ac_ext >&5 16178 16179 ac_cv_lib_dld_shl_load=no 16180fi 16181 16182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16183 conftest$ac_exeext conftest.$ac_ext 16184LIBS=$ac_check_lib_save_LIBS 16185fi 16186{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 16187echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } 16188if test $ac_cv_lib_dld_shl_load = yes; then 16189 tcl_ok=yes 16190else 16191 tcl_ok=no 16192fi 16193 16194 if test "$tcl_ok" = yes; then 16195 16196 LDFLAGS="$LDFLAGS -E" 16197 CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' 16198 LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' 16199 LD_LIBRARY_PATH_VAR="SHLIB_PATH" 16200 16201fi 16202 16203 if test "$GCC" = yes; then 16204 16205 SHLIB_LD='${CC} -shared' 16206 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 16207 16208else 16209 16210 CFLAGS="$CFLAGS -z" 16211 # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc 16212 #CFLAGS="$CFLAGS +DAportable" 16213 SHLIB_CFLAGS="+z" 16214 SHLIB_LD="ld -b" 16215 16216fi 16217 16218 16219 # Check to enable 64-bit flags for compiler/linker 16220 if test "$do64bit" = "yes"; then 16221 16222 if test "$GCC" = yes; then 16223 16224 case `${CC} -dumpmachine` in 16225 hppa64*) 16226 # 64-bit gcc in use. Fix flags for GNU ld. 16227 do64bit_ok=yes 16228 SHLIB_LD='${CC} -shared' 16229 if test $doRpath = yes; then 16230 16231 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 16232fi 16233 16234 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 16235 ;; 16236 *) 16237 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 16238echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} 16239 ;; 16240 esac 16241 16242else 16243 16244 do64bit_ok=yes 16245 CFLAGS="$CFLAGS +DD64" 16246 LDFLAGS_ARCH="+DD64" 16247 16248fi 16249 16250 16251fi 16252 ;; 16253 IRIX-6.*) 16254 SHLIB_CFLAGS="" 16255 SHLIB_LD="ld -n32 -shared -rdata_shared" 16256 SHLIB_SUFFIX=".so" 16257 if test $doRpath = yes; then 16258 16259 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 16260 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 16261fi 16262 16263 if test "$GCC" = yes; then 16264 16265 CFLAGS="$CFLAGS -mabi=n32" 16266 LDFLAGS="$LDFLAGS -mabi=n32" 16267 16268else 16269 16270 case $system in 16271 IRIX-6.3) 16272 # Use to build 6.2 compatible binaries on 6.3. 16273 CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" 16274 ;; 16275 *) 16276 CFLAGS="$CFLAGS -n32" 16277 ;; 16278 esac 16279 LDFLAGS="$LDFLAGS -n32" 16280 16281fi 16282 16283 ;; 16284 IRIX64-6.*) 16285 SHLIB_CFLAGS="" 16286 SHLIB_LD="ld -n32 -shared -rdata_shared" 16287 SHLIB_SUFFIX=".so" 16288 if test $doRpath = yes; then 16289 16290 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 16291 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 16292fi 16293 16294 16295 # Check to enable 64-bit flags for compiler/linker 16296 16297 if test "$do64bit" = yes; then 16298 16299 if test "$GCC" = yes; then 16300 16301 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported by gcc" >&5 16302echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} 16303 16304else 16305 16306 do64bit_ok=yes 16307 SHLIB_LD="ld -64 -shared -rdata_shared" 16308 CFLAGS="$CFLAGS -64" 16309 LDFLAGS_ARCH="-64" 16310 16311fi 16312 16313 16314fi 16315 16316 ;; 16317 Linux*) 16318 SHLIB_CFLAGS="-fPIC" 16319 SHLIB_SUFFIX=".so" 16320 16321 # TEA specific: 16322 CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" 16323 16324 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 16325 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT}' 16326 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 16327 if test $doRpath = yes; then 16328 16329 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 16330fi 16331 16332 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 16333 if test "`uname -m`" = "alpha"; then 16334 CFLAGS="$CFLAGS -mieee" 16335fi 16336 16337 if test $do64bit = yes; then 16338 16339 { echo "$as_me:$LINENO: checking if compiler accepts -m64 flag" >&5 16340echo $ECHO_N "checking if compiler accepts -m64 flag... $ECHO_C" >&6; } 16341if test "${tcl_cv_cc_m64+set}" = set; then 16342 echo $ECHO_N "(cached) $ECHO_C" >&6 16343else 16344 16345 hold_cflags=$CFLAGS 16346 CFLAGS="$CFLAGS -m64" 16347 cat >conftest.$ac_ext <<_ACEOF 16348/* confdefs.h. */ 16349_ACEOF 16350cat confdefs.h >>conftest.$ac_ext 16351cat >>conftest.$ac_ext <<_ACEOF 16352/* end confdefs.h. */ 16353 16354int 16355main () 16356{ 16357 16358 ; 16359 return 0; 16360} 16361_ACEOF 16362rm -f conftest.$ac_objext conftest$ac_exeext 16363if { (ac_try="$ac_link" 16364case "(($ac_try" in 16365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16366 *) ac_try_echo=$ac_try;; 16367esac 16368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16369 (eval "$ac_link") 2>conftest.er1 16370 ac_status=$? 16371 grep -v '^ *+' conftest.er1 >conftest.err 16372 rm -f conftest.er1 16373 cat conftest.err >&5 16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16375 (exit $ac_status); } && { 16376 test -z "$ac_c_werror_flag" || 16377 test ! -s conftest.err 16378 } && test -s conftest$ac_exeext && 16379 $as_test_x conftest$ac_exeext; then 16380 tcl_cv_cc_m64=yes 16381else 16382 echo "$as_me: failed program was:" >&5 16383sed 's/^/| /' conftest.$ac_ext >&5 16384 16385 tcl_cv_cc_m64=no 16386fi 16387 16388rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16389 conftest$ac_exeext conftest.$ac_ext 16390 CFLAGS=$hold_cflags 16391fi 16392{ echo "$as_me:$LINENO: result: $tcl_cv_cc_m64" >&5 16393echo "${ECHO_T}$tcl_cv_cc_m64" >&6; } 16394 if test $tcl_cv_cc_m64 = yes; then 16395 16396 CFLAGS="$CFLAGS -m64" 16397 do64bit_ok=yes 16398 16399fi 16400 16401 16402fi 16403 16404 16405 # The combo of gcc + glibc has a bug related to inlining of 16406 # functions like strtod(). The -fno-builtin flag should address 16407 # this problem but it does not work. The -fno-inline flag is kind 16408 # of overkill but it works. Disable inlining only when one of the 16409 # files in compat/*.c is being linked in. 16410 16411 if test x"${USE_COMPAT}" != x; then 16412 CFLAGS="$CFLAGS -fno-inline" 16413fi 16414 16415 16416 ;; 16417 GNU*) 16418 SHLIB_CFLAGS="-fPIC" 16419 SHLIB_SUFFIX=".so" 16420 16421 SHLIB_LD='${CC} -shared' 16422 LDFLAGS="$LDFLAGS -Wl,--export-dynamic" 16423 CC_SEARCH_FLAGS="" 16424 LD_SEARCH_FLAGS="" 16425 if test "`uname -m`" = "alpha"; then 16426 CFLAGS="$CFLAGS -mieee" 16427fi 16428 16429 ;; 16430 Lynx*) 16431 SHLIB_CFLAGS="-fPIC" 16432 SHLIB_SUFFIX=".so" 16433 CFLAGS_OPTIMIZE=-02 16434 SHLIB_LD='${CC} -shared' 16435 LD_FLAGS="-Wl,--export-dynamic" 16436 if test $doRpath = yes; then 16437 16438 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 16439 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 16440fi 16441 16442 ;; 16443 OpenBSD-*) 16444 SHLIB_CFLAGS="-fPIC" 16445 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 16446 SHLIB_SUFFIX=".so" 16447 if test $doRpath = yes; then 16448 16449 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 16450fi 16451 16452 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 16453 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.${SHLIB_VERSION}' 16454 { echo "$as_me:$LINENO: checking for ELF" >&5 16455echo $ECHO_N "checking for ELF... $ECHO_C" >&6; } 16456if test "${tcl_cv_ld_elf+set}" = set; then 16457 echo $ECHO_N "(cached) $ECHO_C" >&6 16458else 16459 16460 cat >conftest.$ac_ext <<_ACEOF 16461/* confdefs.h. */ 16462_ACEOF 16463cat confdefs.h >>conftest.$ac_ext 16464cat >>conftest.$ac_ext <<_ACEOF 16465/* end confdefs.h. */ 16466 16467#ifdef __ELF__ 16468 yes 16469#endif 16470 16471_ACEOF 16472if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16473 $EGREP "yes" >/dev/null 2>&1; then 16474 tcl_cv_ld_elf=yes 16475else 16476 tcl_cv_ld_elf=no 16477fi 16478rm -f -r conftest* 16479 16480fi 16481{ echo "$as_me:$LINENO: result: $tcl_cv_ld_elf" >&5 16482echo "${ECHO_T}$tcl_cv_ld_elf" >&6; } 16483 if test $tcl_cv_ld_elf = yes; then 16484 16485 LDFLAGS=-Wl,-export-dynamic 16486 16487else 16488 LDFLAGS="" 16489fi 16490 16491 if test "${TCL_THREADS}" = "1"; then 16492 16493 # OpenBSD builds and links with -pthread, never -lpthread. 16494 LIBS=`echo $LIBS | sed s/-lpthread//` 16495 CFLAGS="$CFLAGS -pthread" 16496 SHLIB_CFLAGS="$SHLIB_CFLAGS -pthread" 16497 16498fi 16499 16500 # OpenBSD doesn't do version numbers with dots. 16501 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 16502 TCL_LIB_VERSIONS_OK=nodots 16503 ;; 16504 NetBSD-*|FreeBSD-[3-4].*) 16505 # FreeBSD 3.* and greater have ELF. 16506 # NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs 16507 SHLIB_CFLAGS="-fPIC" 16508 SHLIB_LD='${CC} -shared ${SHLIB_CFLAGS}' 16509 SHLIB_SUFFIX=".so" 16510 LDFLAGS="$LDFLAGS -export-dynamic" 16511 if test $doRpath = yes; then 16512 16513 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 16514fi 16515 16516 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 16517 if test "${TCL_THREADS}" = "1"; then 16518 16519 # The -pthread needs to go in the CFLAGS, not LIBS 16520 LIBS=`echo $LIBS | sed s/-pthread//` 16521 CFLAGS="$CFLAGS -pthread" 16522 LDFLAGS="$LDFLAGS -pthread" 16523 16524fi 16525 16526 case $system in 16527 FreeBSD-3.*) 16528 # FreeBSD-3 doesn't handle version numbers with dots. 16529 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 16530 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' 16531 TCL_LIB_VERSIONS_OK=nodots 16532 ;; 16533 esac 16534 ;; 16535 FreeBSD-*) 16536 # This configuration from FreeBSD Ports. 16537 SHLIB_CFLAGS="-fPIC" 16538 SHLIB_LD="${CC} -shared" 16539 TCL_SHLIB_LD_EXTRAS="-soname \$@" 16540 SHLIB_SUFFIX=".so" 16541 LDFLAGS="" 16542 if test $doRpath = yes; then 16543 16544 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 16545 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 16546fi 16547 16548 if test "${TCL_THREADS}" = "1"; then 16549 16550 # The -pthread needs to go in the LDFLAGS, not LIBS 16551 LIBS=`echo $LIBS | sed s/-pthread//` 16552 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 16553 LDFLAGS="$LDFLAGS $PTHREAD_LIBS" 16554fi 16555 16556 # Version numbers are dot-stripped by system policy. 16557 TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .` 16558 UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a' 16559 SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1' 16560 TCL_LIB_VERSIONS_OK=nodots 16561 ;; 16562 Darwin-*) 16563 CFLAGS_OPTIMIZE="-Os" 16564 SHLIB_CFLAGS="-fno-common" 16565 # To avoid discrepancies between what headers configure sees during 16566 # preprocessing tests and compiling tests, move any -isysroot and 16567 # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: 16568 CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ 16569 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 16570 if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" 16571 CFLAGS="`echo " ${CFLAGS}" | \ 16572 awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ 16573 if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" 16574 if test $do64bit = yes; then 16575 16576 case `arch` in 16577 ppc) 16578 { echo "$as_me:$LINENO: checking if compiler accepts -arch ppc64 flag" >&5 16579echo $ECHO_N "checking if compiler accepts -arch ppc64 flag... $ECHO_C" >&6; } 16580if test "${tcl_cv_cc_arch_ppc64+set}" = set; then 16581 echo $ECHO_N "(cached) $ECHO_C" >&6 16582else 16583 16584 hold_cflags=$CFLAGS 16585 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 16586 cat >conftest.$ac_ext <<_ACEOF 16587/* confdefs.h. */ 16588_ACEOF 16589cat confdefs.h >>conftest.$ac_ext 16590cat >>conftest.$ac_ext <<_ACEOF 16591/* end confdefs.h. */ 16592 16593int 16594main () 16595{ 16596 16597 ; 16598 return 0; 16599} 16600_ACEOF 16601rm -f conftest.$ac_objext conftest$ac_exeext 16602if { (ac_try="$ac_link" 16603case "(($ac_try" in 16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16605 *) ac_try_echo=$ac_try;; 16606esac 16607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16608 (eval "$ac_link") 2>conftest.er1 16609 ac_status=$? 16610 grep -v '^ *+' conftest.er1 >conftest.err 16611 rm -f conftest.er1 16612 cat conftest.err >&5 16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16614 (exit $ac_status); } && { 16615 test -z "$ac_c_werror_flag" || 16616 test ! -s conftest.err 16617 } && test -s conftest$ac_exeext && 16618 $as_test_x conftest$ac_exeext; then 16619 tcl_cv_cc_arch_ppc64=yes 16620else 16621 echo "$as_me: failed program was:" >&5 16622sed 's/^/| /' conftest.$ac_ext >&5 16623 16624 tcl_cv_cc_arch_ppc64=no 16625fi 16626 16627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16628 conftest$ac_exeext conftest.$ac_ext 16629 CFLAGS=$hold_cflags 16630fi 16631{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_ppc64" >&5 16632echo "${ECHO_T}$tcl_cv_cc_arch_ppc64" >&6; } 16633 if test $tcl_cv_cc_arch_ppc64 = yes; then 16634 16635 CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" 16636 do64bit_ok=yes 16637 16638fi 16639;; 16640 i386) 16641 { echo "$as_me:$LINENO: checking if compiler accepts -arch x86_64 flag" >&5 16642echo $ECHO_N "checking if compiler accepts -arch x86_64 flag... $ECHO_C" >&6; } 16643if test "${tcl_cv_cc_arch_x86_64+set}" = set; then 16644 echo $ECHO_N "(cached) $ECHO_C" >&6 16645else 16646 16647 hold_cflags=$CFLAGS 16648 CFLAGS="$CFLAGS -arch x86_64" 16649 cat >conftest.$ac_ext <<_ACEOF 16650/* confdefs.h. */ 16651_ACEOF 16652cat confdefs.h >>conftest.$ac_ext 16653cat >>conftest.$ac_ext <<_ACEOF 16654/* end confdefs.h. */ 16655 16656int 16657main () 16658{ 16659 16660 ; 16661 return 0; 16662} 16663_ACEOF 16664rm -f conftest.$ac_objext conftest$ac_exeext 16665if { (ac_try="$ac_link" 16666case "(($ac_try" in 16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16668 *) ac_try_echo=$ac_try;; 16669esac 16670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16671 (eval "$ac_link") 2>conftest.er1 16672 ac_status=$? 16673 grep -v '^ *+' conftest.er1 >conftest.err 16674 rm -f conftest.er1 16675 cat conftest.err >&5 16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16677 (exit $ac_status); } && { 16678 test -z "$ac_c_werror_flag" || 16679 test ! -s conftest.err 16680 } && test -s conftest$ac_exeext && 16681 $as_test_x conftest$ac_exeext; then 16682 tcl_cv_cc_arch_x86_64=yes 16683else 16684 echo "$as_me: failed program was:" >&5 16685sed 's/^/| /' conftest.$ac_ext >&5 16686 16687 tcl_cv_cc_arch_x86_64=no 16688fi 16689 16690rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16691 conftest$ac_exeext conftest.$ac_ext 16692 CFLAGS=$hold_cflags 16693fi 16694{ echo "$as_me:$LINENO: result: $tcl_cv_cc_arch_x86_64" >&5 16695echo "${ECHO_T}$tcl_cv_cc_arch_x86_64" >&6; } 16696 if test $tcl_cv_cc_arch_x86_64 = yes; then 16697 16698 CFLAGS="$CFLAGS -arch x86_64" 16699 do64bit_ok=yes 16700 16701fi 16702;; 16703 *) 16704 { echo "$as_me:$LINENO: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 16705echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; 16706 esac 16707 16708else 16709 16710 # Check for combined 32-bit and 64-bit fat build 16711 if echo "$CFLAGS " |grep -E -q -- '-arch (ppc64|x86_64) ' \ 16712 && echo "$CFLAGS " |grep -E -q -- '-arch (ppc|i386) '; then 16713 16714 fat_32_64=yes 16715fi 16716 16717 16718fi 16719 16720 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 16721 SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS_DEFAULT}' 16722 { echo "$as_me:$LINENO: checking if ld accepts -single_module flag" >&5 16723echo $ECHO_N "checking if ld accepts -single_module flag... $ECHO_C" >&6; } 16724if test "${tcl_cv_ld_single_module+set}" = set; then 16725 echo $ECHO_N "(cached) $ECHO_C" >&6 16726else 16727 16728 hold_ldflags=$LDFLAGS 16729 LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" 16730 cat >conftest.$ac_ext <<_ACEOF 16731/* confdefs.h. */ 16732_ACEOF 16733cat confdefs.h >>conftest.$ac_ext 16734cat >>conftest.$ac_ext <<_ACEOF 16735/* end confdefs.h. */ 16736 16737int 16738main () 16739{ 16740int i; 16741 ; 16742 return 0; 16743} 16744_ACEOF 16745rm -f conftest.$ac_objext conftest$ac_exeext 16746if { (ac_try="$ac_link" 16747case "(($ac_try" in 16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16749 *) ac_try_echo=$ac_try;; 16750esac 16751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16752 (eval "$ac_link") 2>conftest.er1 16753 ac_status=$? 16754 grep -v '^ *+' conftest.er1 >conftest.err 16755 rm -f conftest.er1 16756 cat conftest.err >&5 16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16758 (exit $ac_status); } && { 16759 test -z "$ac_c_werror_flag" || 16760 test ! -s conftest.err 16761 } && test -s conftest$ac_exeext && 16762 $as_test_x conftest$ac_exeext; then 16763 tcl_cv_ld_single_module=yes 16764else 16765 echo "$as_me: failed program was:" >&5 16766sed 's/^/| /' conftest.$ac_ext >&5 16767 16768 tcl_cv_ld_single_module=no 16769fi 16770 16771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16772 conftest$ac_exeext conftest.$ac_ext 16773 LDFLAGS=$hold_ldflags 16774fi 16775{ echo "$as_me:$LINENO: result: $tcl_cv_ld_single_module" >&5 16776echo "${ECHO_T}$tcl_cv_ld_single_module" >&6; } 16777 if test $tcl_cv_ld_single_module = yes; then 16778 16779 SHLIB_LD="${SHLIB_LD} -Wl,-single_module" 16780 16781fi 16782 16783 # TEA specific: link shlib with current and compatiblity version flags 16784 vers=`echo ${PACKAGE_VERSION} | sed -e 's/^\([0-9]\{1,5\}\)\(\(\.[0-9]\{1,3\}\)\{0,2\}\).*$/\1\2/p' -e d` 16785 SHLIB_LD="${SHLIB_LD} -current_version ${vers:-0} -compatibility_version ${vers:-0}" 16786 SHLIB_SUFFIX=".dylib" 16787 # Don't use -prebind when building for Mac OS X 10.4 or later only: 16788 if test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ 16789 "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4; then 16790 16791 LDFLAGS="$LDFLAGS -prebind" 16792fi 16793 16794 LDFLAGS="$LDFLAGS -headerpad_max_install_names" 16795 { echo "$as_me:$LINENO: checking if ld accepts -search_paths_first flag" >&5 16796echo $ECHO_N "checking if ld accepts -search_paths_first flag... $ECHO_C" >&6; } 16797if test "${tcl_cv_ld_search_paths_first+set}" = set; then 16798 echo $ECHO_N "(cached) $ECHO_C" >&6 16799else 16800 16801 hold_ldflags=$LDFLAGS 16802 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 16803 cat >conftest.$ac_ext <<_ACEOF 16804/* confdefs.h. */ 16805_ACEOF 16806cat confdefs.h >>conftest.$ac_ext 16807cat >>conftest.$ac_ext <<_ACEOF 16808/* end confdefs.h. */ 16809 16810int 16811main () 16812{ 16813int i; 16814 ; 16815 return 0; 16816} 16817_ACEOF 16818rm -f conftest.$ac_objext conftest$ac_exeext 16819if { (ac_try="$ac_link" 16820case "(($ac_try" in 16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16822 *) ac_try_echo=$ac_try;; 16823esac 16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16825 (eval "$ac_link") 2>conftest.er1 16826 ac_status=$? 16827 grep -v '^ *+' conftest.er1 >conftest.err 16828 rm -f conftest.er1 16829 cat conftest.err >&5 16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16831 (exit $ac_status); } && { 16832 test -z "$ac_c_werror_flag" || 16833 test ! -s conftest.err 16834 } && test -s conftest$ac_exeext && 16835 $as_test_x conftest$ac_exeext; then 16836 tcl_cv_ld_search_paths_first=yes 16837else 16838 echo "$as_me: failed program was:" >&5 16839sed 's/^/| /' conftest.$ac_ext >&5 16840 16841 tcl_cv_ld_search_paths_first=no 16842fi 16843 16844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16845 conftest$ac_exeext conftest.$ac_ext 16846 LDFLAGS=$hold_ldflags 16847fi 16848{ echo "$as_me:$LINENO: result: $tcl_cv_ld_search_paths_first" >&5 16849echo "${ECHO_T}$tcl_cv_ld_search_paths_first" >&6; } 16850 if test $tcl_cv_ld_search_paths_first = yes; then 16851 16852 LDFLAGS="$LDFLAGS -Wl,-search_paths_first" 16853 16854fi 16855 16856 if test "$tcl_cv_cc_visibility_hidden" != yes; then 16857 16858 16859cat >>confdefs.h <<\_ACEOF 16860#define MODULE_SCOPE __private_extern__ 16861_ACEOF 16862 16863 tcl_cv_cc_visibility_hidden=yes 16864 16865fi 16866 16867 CC_SEARCH_FLAGS="" 16868 LD_SEARCH_FLAGS="" 16869 LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" 16870 # TEA specific: for combined 32 & 64 bit fat builds of Tk 16871 # extensions, verify that 64-bit build is possible. 16872 if test "$fat_32_64" = yes && test -n "${TK_BIN_DIR}"; then 16873 16874 if test "${TEA_WINDOWINGSYSTEM}" = x11; then 16875 16876 { echo "$as_me:$LINENO: checking for 64-bit X11" >&5 16877echo $ECHO_N "checking for 64-bit X11... $ECHO_C" >&6; } 16878if test "${tcl_cv_lib_x11_64+set}" = set; then 16879 echo $ECHO_N "(cached) $ECHO_C" >&6 16880else 16881 16882 for v in CFLAGS CPPFLAGS LDFLAGS; do 16883 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 16884 done 16885 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include" 16886 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -lX11" 16887 cat >conftest.$ac_ext <<_ACEOF 16888/* confdefs.h. */ 16889_ACEOF 16890cat confdefs.h >>conftest.$ac_ext 16891cat >>conftest.$ac_ext <<_ACEOF 16892/* end confdefs.h. */ 16893#include <X11/Xlib.h> 16894int 16895main () 16896{ 16897XrmInitialize(); 16898 ; 16899 return 0; 16900} 16901_ACEOF 16902rm -f conftest.$ac_objext conftest$ac_exeext 16903if { (ac_try="$ac_link" 16904case "(($ac_try" in 16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16906 *) ac_try_echo=$ac_try;; 16907esac 16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16909 (eval "$ac_link") 2>conftest.er1 16910 ac_status=$? 16911 grep -v '^ *+' conftest.er1 >conftest.err 16912 rm -f conftest.er1 16913 cat conftest.err >&5 16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16915 (exit $ac_status); } && { 16916 test -z "$ac_c_werror_flag" || 16917 test ! -s conftest.err 16918 } && test -s conftest$ac_exeext && 16919 $as_test_x conftest$ac_exeext; then 16920 tcl_cv_lib_x11_64=yes 16921else 16922 echo "$as_me: failed program was:" >&5 16923sed 's/^/| /' conftest.$ac_ext >&5 16924 16925 tcl_cv_lib_x11_64=no 16926fi 16927 16928rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16929 conftest$ac_exeext conftest.$ac_ext 16930 for v in CFLAGS CPPFLAGS LDFLAGS; do 16931 eval $v'="$hold_'$v'"' 16932 done 16933fi 16934{ echo "$as_me:$LINENO: result: $tcl_cv_lib_x11_64" >&5 16935echo "${ECHO_T}$tcl_cv_lib_x11_64" >&6; } 16936 16937fi 16938 16939 if test "${TEA_WINDOWINGSYSTEM}" = aqua; then 16940 16941 { echo "$as_me:$LINENO: checking for 64-bit Tk" >&5 16942echo $ECHO_N "checking for 64-bit Tk... $ECHO_C" >&6; } 16943if test "${tcl_cv_lib_tk_64+set}" = set; then 16944 echo $ECHO_N "(cached) $ECHO_C" >&6 16945else 16946 16947 for v in CFLAGS CPPFLAGS LDFLAGS; do 16948 eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' 16949 done 16950 CPPFLAGS="$CPPFLAGS -DUSE_TCL_STUBS=1 -DUSE_TK_STUBS=1 `eval "echo ${TCL_INCLUDES} ${TK_INCLUDES}"`" 16951 LDFLAGS="$LDFLAGS ${TCL_STUB_LIB_SPEC} ${TK_STUB_LIB_SPEC}" 16952 cat >conftest.$ac_ext <<_ACEOF 16953/* confdefs.h. */ 16954_ACEOF 16955cat confdefs.h >>conftest.$ac_ext 16956cat >>conftest.$ac_ext <<_ACEOF 16957/* end confdefs.h. */ 16958#include <tk.h> 16959int 16960main () 16961{ 16962Tk_InitStubs(NULL, "", 0); 16963 ; 16964 return 0; 16965} 16966_ACEOF 16967rm -f conftest.$ac_objext conftest$ac_exeext 16968if { (ac_try="$ac_link" 16969case "(($ac_try" in 16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16971 *) ac_try_echo=$ac_try;; 16972esac 16973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16974 (eval "$ac_link") 2>conftest.er1 16975 ac_status=$? 16976 grep -v '^ *+' conftest.er1 >conftest.err 16977 rm -f conftest.er1 16978 cat conftest.err >&5 16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16980 (exit $ac_status); } && { 16981 test -z "$ac_c_werror_flag" || 16982 test ! -s conftest.err 16983 } && test -s conftest$ac_exeext && 16984 $as_test_x conftest$ac_exeext; then 16985 tcl_cv_lib_tk_64=yes 16986else 16987 echo "$as_me: failed program was:" >&5 16988sed 's/^/| /' conftest.$ac_ext >&5 16989 16990 tcl_cv_lib_tk_64=no 16991fi 16992 16993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 16994 conftest$ac_exeext conftest.$ac_ext 16995 for v in CFLAGS CPPFLAGS LDFLAGS; do 16996 eval $v'="$hold_'$v'"' 16997 done 16998fi 16999{ echo "$as_me:$LINENO: result: $tcl_cv_lib_tk_64" >&5 17000echo "${ECHO_T}$tcl_cv_lib_tk_64" >&6; } 17001 17002fi 17003 17004 # remove 64-bit arch flags from CFLAGS et al. if configuration 17005 # does not support 64-bit. 17006 if test "$tcl_cv_lib_tk_64" = no -o "$tcl_cv_lib_x11_64" = no; then 17007 17008 { echo "$as_me:$LINENO: Removing 64-bit architectures from compiler & linker flags" >&5 17009echo "$as_me: Removing 64-bit architectures from compiler & linker flags" >&6;} 17010 for v in CFLAGS CPPFLAGS LDFLAGS; do 17011 eval $v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' 17012 done 17013fi 17014 17015 17016fi 17017 17018 ;; 17019 OS/390-*) 17020 CFLAGS_OPTIMIZE="" # Optimizer is buggy 17021 17022cat >>confdefs.h <<\_ACEOF 17023#define _OE_SOCKETS 1 17024_ACEOF 17025 17026 ;; 17027 OSF1-V*) 17028 # Digital OSF/1 17029 SHLIB_CFLAGS="" 17030 if test "$SHARED_BUILD" = 1; then 17031 17032 SHLIB_LD='ld -shared -expect_unresolved "*"' 17033 17034else 17035 17036 SHLIB_LD='ld -non_shared -expect_unresolved "*"' 17037 17038fi 17039 17040 SHLIB_SUFFIX=".so" 17041 if test $doRpath = yes; then 17042 17043 CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' 17044 LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' 17045fi 17046 17047 if test "$GCC" = yes; then 17048 CFLAGS="$CFLAGS -mieee" 17049else 17050 17051 CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" 17052fi 17053 17054 # see pthread_intro(3) for pthread support on osf1, k.furukawa 17055 if test "${TCL_THREADS}" = 1; then 17056 17057 CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" 17058 CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" 17059 LIBS=`echo $LIBS | sed s/-lpthreads//` 17060 if test "$GCC" = yes; then 17061 17062 LIBS="$LIBS -lpthread -lmach -lexc" 17063 17064else 17065 17066 CFLAGS="$CFLAGS -pthread" 17067 LDFLAGS="$LDFLAGS -pthread" 17068 17069fi 17070 17071 17072fi 17073 17074 ;; 17075 QNX-6*) 17076 # QNX RTP 17077 # This may work for all QNX, but it was only reported for v6. 17078 SHLIB_CFLAGS="-fPIC" 17079 SHLIB_LD="ld -Bshareable -x" 17080 SHLIB_LD_LIBS="" 17081 SHLIB_SUFFIX=".so" 17082 CC_SEARCH_FLAGS="" 17083 LD_SEARCH_FLAGS="" 17084 ;; 17085 SCO_SV-3.2*) 17086 if test "$GCC" = yes; then 17087 17088 SHLIB_CFLAGS="-fPIC -melf" 17089 LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" 17090 17091else 17092 17093 SHLIB_CFLAGS="-Kpic -belf" 17094 LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" 17095 17096fi 17097 17098 SHLIB_LD="ld -G" 17099 SHLIB_LD_LIBS="" 17100 SHLIB_SUFFIX=".so" 17101 CC_SEARCH_FLAGS="" 17102 LD_SEARCH_FLAGS="" 17103 ;; 17104 SunOS-5.[0-6]) 17105 # Careful to not let 5.10+ fall into this case 17106 17107 # Note: If _REENTRANT isn't defined, then Solaris 17108 # won't define thread-safe library routines. 17109 17110 17111cat >>confdefs.h <<\_ACEOF 17112#define _REENTRANT 1 17113_ACEOF 17114 17115 17116cat >>confdefs.h <<\_ACEOF 17117#define _POSIX_PTHREAD_SEMANTICS 1 17118_ACEOF 17119 17120 17121 SHLIB_CFLAGS="-KPIC" 17122 SHLIB_SUFFIX=".so" 17123 if test "$GCC" = yes; then 17124 17125 SHLIB_LD='${CC} -shared' 17126 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 17127 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 17128 17129else 17130 17131 SHLIB_LD="/usr/ccs/bin/ld -G -z text" 17132 CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 17133 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 17134 17135fi 17136 17137 ;; 17138 SunOS-5*) 17139 # Note: If _REENTRANT isn't defined, then Solaris 17140 # won't define thread-safe library routines. 17141 17142 17143cat >>confdefs.h <<\_ACEOF 17144#define _REENTRANT 1 17145_ACEOF 17146 17147 17148cat >>confdefs.h <<\_ACEOF 17149#define _POSIX_PTHREAD_SEMANTICS 1 17150_ACEOF 17151 17152 17153 SHLIB_CFLAGS="-KPIC" 17154 17155 # Check to enable 64-bit flags for compiler/linker 17156 if test "$do64bit" = yes; then 17157 17158 arch=`isainfo` 17159 if test "$arch" = "sparcv9 sparc"; then 17160 17161 if test "$GCC" = yes; then 17162 17163 if test "`${CC} -dumpversion | awk -F. '{print $1}'`" -lt 3; then 17164 17165 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 17166echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} 17167 17168else 17169 17170 do64bit_ok=yes 17171 CFLAGS="$CFLAGS -m64 -mcpu=v9" 17172 LDFLAGS="$LDFLAGS -m64 -mcpu=v9" 17173 SHLIB_CFLAGS="-fPIC" 17174 17175fi 17176 17177 17178else 17179 17180 do64bit_ok=yes 17181 if test "$do64bitVIS" = yes; then 17182 17183 CFLAGS="$CFLAGS -xarch=v9a" 17184 LDFLAGS_ARCH="-xarch=v9a" 17185 17186else 17187 17188 CFLAGS="$CFLAGS -xarch=v9" 17189 LDFLAGS_ARCH="-xarch=v9" 17190 17191fi 17192 17193 # Solaris 64 uses this as well 17194 #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" 17195 17196fi 17197 17198 17199else 17200 if test "$arch" = "amd64 i386"; then 17201 17202 if test "$GCC" = yes; then 17203 17204 case $system in 17205 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 17206 do64bit_ok=yes 17207 CFLAGS="$CFLAGS -m64" 17208 LDFLAGS="$LDFLAGS -m64";; 17209 *) 17210 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported with GCC on $system" >&5 17211echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;};; 17212 esac 17213 17214else 17215 17216 do64bit_ok=yes 17217 case $system in 17218 SunOS-5.1[1-9]*|SunOS-5.[2-9][0-9]*) 17219 CFLAGS="$CFLAGS -m64" 17220 LDFLAGS="$LDFLAGS -m64";; 17221 *) 17222 CFLAGS="$CFLAGS -xarch=amd64" 17223 LDFLAGS="$LDFLAGS -xarch=amd64";; 17224 esac 17225 17226fi 17227 17228 17229else 17230 { echo "$as_me:$LINENO: WARNING: 64bit mode not supported for $arch" >&5 17231echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} 17232fi 17233 17234fi 17235 17236 17237fi 17238 17239 17240 SHLIB_SUFFIX=".so" 17241 if test "$GCC" = yes; then 17242 17243 SHLIB_LD='${CC} -shared' 17244 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 17245 LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} 17246 if test "$do64bit_ok" = yes; then 17247 17248 if test "$arch" = "sparcv9 sparc"; then 17249 17250 # We need to specify -static-libgcc or we need to 17251 # add the path to the sparv9 libgcc. 17252 # JH: static-libgcc is necessary for core Tcl, but may 17253 # not be necessary for extensions. 17254 SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" 17255 # for finding sparcv9 libgcc, get the regular libgcc 17256 # path, remove so name and append 'sparcv9' 17257 #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." 17258 #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" 17259 17260else 17261 if test "$arch" = "amd64 i386"; then 17262 17263 # JH: static-libgcc is necessary for core Tcl, but may 17264 # not be necessary for extensions. 17265 SHLIB_LD="$SHLIB_LD -m64 -static-libgcc" 17266 17267fi 17268 17269fi 17270 17271 17272fi 17273 17274 17275else 17276 17277 case $system in 17278 SunOS-5.[1-9][0-9]*) 17279 # TEA specific: use LDFLAGS_DEFAULT instead of LDFLAGS 17280 SHLIB_LD='${CC} -G -z text ${LDFLAGS_DEFAULT}';; 17281 *) 17282 SHLIB_LD='/usr/ccs/bin/ld -G -z text';; 17283 esac 17284 CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' 17285 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' 17286 17287fi 17288 17289 ;; 17290 esac 17291 17292 if test "$do64bit" = yes -a "$do64bit_ok" = no; then 17293 17294 { echo "$as_me:$LINENO: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 17295echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} 17296 17297fi 17298 17299 17300 17301 17302 # Add in the arch flags late to ensure it wasn't removed. 17303 # Not necessary in TEA, but this is aligned with core 17304 LDFLAGS="$LDFLAGS $LDFLAGS_ARCH" 17305 17306 # If we're running gcc, then change the C flags for compiling shared 17307 # libraries to the right flags for gcc, instead of those for the 17308 # standard manufacturer compiler. 17309 17310 if test "$GCC" = yes; then 17311 17312 case $system in 17313 AIX-*) ;; 17314 BSD/OS*) ;; 17315 CYGWIN_*) ;; 17316 IRIX*) ;; 17317 NetBSD-*|FreeBSD-*|OpenBSD-*) ;; 17318 Darwin-*) ;; 17319 SCO_SV-3.2*) ;; 17320 windows) ;; 17321 *) SHLIB_CFLAGS="-fPIC" ;; 17322 esac 17323fi 17324 17325 17326 if test "$tcl_cv_cc_visibility_hidden" != yes; then 17327 17328 17329cat >>confdefs.h <<\_ACEOF 17330#define MODULE_SCOPE extern 17331_ACEOF 17332 17333 17334cat >>confdefs.h <<\_ACEOF 17335#define NO_VIZ 17336_ACEOF 17337 17338 17339fi 17340 17341 17342 if test "$SHARED_LIB_SUFFIX" = ""; then 17343 17344 # TEA specific: use PACKAGE_VERSION instead of VERSION 17345 SHARED_LIB_SUFFIX='${PACKAGE_VERSION}${SHLIB_SUFFIX}' 17346fi 17347 17348 if test "$UNSHARED_LIB_SUFFIX" = ""; then 17349 17350 # TEA specific: use PACKAGE_VERSION instead of VERSION 17351 UNSHARED_LIB_SUFFIX='${PACKAGE_VERSION}.a' 17352fi 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 # These must be called after we do the basic CFLAGS checks and 17368 # verify any possible 64-bit or similar switches are necessary 17369 17370 { echo "$as_me:$LINENO: checking for required early compiler flags" >&5 17371echo $ECHO_N "checking for required early compiler flags... $ECHO_C" >&6; } 17372 tcl_flags="" 17373 17374 if test "${tcl_cv_flag__isoc99_source+set}" = set; then 17375 echo $ECHO_N "(cached) $ECHO_C" >&6 17376else 17377 cat >conftest.$ac_ext <<_ACEOF 17378/* confdefs.h. */ 17379_ACEOF 17380cat confdefs.h >>conftest.$ac_ext 17381cat >>conftest.$ac_ext <<_ACEOF 17382/* end confdefs.h. */ 17383#include <stdlib.h> 17384int 17385main () 17386{ 17387char *p = (char *)strtoll; char *q = (char *)strtoull; 17388 ; 17389 return 0; 17390} 17391_ACEOF 17392rm -f conftest.$ac_objext 17393if { (ac_try="$ac_compile" 17394case "(($ac_try" in 17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17396 *) ac_try_echo=$ac_try;; 17397esac 17398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17399 (eval "$ac_compile") 2>conftest.er1 17400 ac_status=$? 17401 grep -v '^ *+' conftest.er1 >conftest.err 17402 rm -f conftest.er1 17403 cat conftest.err >&5 17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17405 (exit $ac_status); } && { 17406 test -z "$ac_c_werror_flag" || 17407 test ! -s conftest.err 17408 } && test -s conftest.$ac_objext; then 17409 tcl_cv_flag__isoc99_source=no 17410else 17411 echo "$as_me: failed program was:" >&5 17412sed 's/^/| /' conftest.$ac_ext >&5 17413 17414 cat >conftest.$ac_ext <<_ACEOF 17415/* confdefs.h. */ 17416_ACEOF 17417cat confdefs.h >>conftest.$ac_ext 17418cat >>conftest.$ac_ext <<_ACEOF 17419/* end confdefs.h. */ 17420#define _ISOC99_SOURCE 1 17421#include <stdlib.h> 17422int 17423main () 17424{ 17425char *p = (char *)strtoll; char *q = (char *)strtoull; 17426 ; 17427 return 0; 17428} 17429_ACEOF 17430rm -f conftest.$ac_objext 17431if { (ac_try="$ac_compile" 17432case "(($ac_try" in 17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17434 *) ac_try_echo=$ac_try;; 17435esac 17436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17437 (eval "$ac_compile") 2>conftest.er1 17438 ac_status=$? 17439 grep -v '^ *+' conftest.er1 >conftest.err 17440 rm -f conftest.er1 17441 cat conftest.err >&5 17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17443 (exit $ac_status); } && { 17444 test -z "$ac_c_werror_flag" || 17445 test ! -s conftest.err 17446 } && test -s conftest.$ac_objext; then 17447 tcl_cv_flag__isoc99_source=yes 17448else 17449 echo "$as_me: failed program was:" >&5 17450sed 's/^/| /' conftest.$ac_ext >&5 17451 17452 tcl_cv_flag__isoc99_source=no 17453fi 17454 17455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17456fi 17457 17458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17459fi 17460 17461 if test "x${tcl_cv_flag__isoc99_source}" = "xyes" ; then 17462 17463cat >>confdefs.h <<\_ACEOF 17464#define _ISOC99_SOURCE 1 17465_ACEOF 17466 17467 tcl_flags="$tcl_flags _ISOC99_SOURCE" 17468 fi 17469 17470 17471 if test "${tcl_cv_flag__largefile64_source+set}" = set; then 17472 echo $ECHO_N "(cached) $ECHO_C" >&6 17473else 17474 cat >conftest.$ac_ext <<_ACEOF 17475/* confdefs.h. */ 17476_ACEOF 17477cat confdefs.h >>conftest.$ac_ext 17478cat >>conftest.$ac_ext <<_ACEOF 17479/* end confdefs.h. */ 17480#include <sys/stat.h> 17481int 17482main () 17483{ 17484struct stat64 buf; int i = stat64("/", &buf); 17485 ; 17486 return 0; 17487} 17488_ACEOF 17489rm -f conftest.$ac_objext 17490if { (ac_try="$ac_compile" 17491case "(($ac_try" in 17492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17493 *) ac_try_echo=$ac_try;; 17494esac 17495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17496 (eval "$ac_compile") 2>conftest.er1 17497 ac_status=$? 17498 grep -v '^ *+' conftest.er1 >conftest.err 17499 rm -f conftest.er1 17500 cat conftest.err >&5 17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17502 (exit $ac_status); } && { 17503 test -z "$ac_c_werror_flag" || 17504 test ! -s conftest.err 17505 } && test -s conftest.$ac_objext; then 17506 tcl_cv_flag__largefile64_source=no 17507else 17508 echo "$as_me: failed program was:" >&5 17509sed 's/^/| /' conftest.$ac_ext >&5 17510 17511 cat >conftest.$ac_ext <<_ACEOF 17512/* confdefs.h. */ 17513_ACEOF 17514cat confdefs.h >>conftest.$ac_ext 17515cat >>conftest.$ac_ext <<_ACEOF 17516/* end confdefs.h. */ 17517#define _LARGEFILE64_SOURCE 1 17518#include <sys/stat.h> 17519int 17520main () 17521{ 17522struct stat64 buf; int i = stat64("/", &buf); 17523 ; 17524 return 0; 17525} 17526_ACEOF 17527rm -f conftest.$ac_objext 17528if { (ac_try="$ac_compile" 17529case "(($ac_try" in 17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17531 *) ac_try_echo=$ac_try;; 17532esac 17533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17534 (eval "$ac_compile") 2>conftest.er1 17535 ac_status=$? 17536 grep -v '^ *+' conftest.er1 >conftest.err 17537 rm -f conftest.er1 17538 cat conftest.err >&5 17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17540 (exit $ac_status); } && { 17541 test -z "$ac_c_werror_flag" || 17542 test ! -s conftest.err 17543 } && test -s conftest.$ac_objext; then 17544 tcl_cv_flag__largefile64_source=yes 17545else 17546 echo "$as_me: failed program was:" >&5 17547sed 's/^/| /' conftest.$ac_ext >&5 17548 17549 tcl_cv_flag__largefile64_source=no 17550fi 17551 17552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17553fi 17554 17555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17556fi 17557 17558 if test "x${tcl_cv_flag__largefile64_source}" = "xyes" ; then 17559 17560cat >>confdefs.h <<\_ACEOF 17561#define _LARGEFILE64_SOURCE 1 17562_ACEOF 17563 17564 tcl_flags="$tcl_flags _LARGEFILE64_SOURCE" 17565 fi 17566 17567 17568 if test "${tcl_cv_flag__largefile_source64+set}" = set; then 17569 echo $ECHO_N "(cached) $ECHO_C" >&6 17570else 17571 cat >conftest.$ac_ext <<_ACEOF 17572/* confdefs.h. */ 17573_ACEOF 17574cat confdefs.h >>conftest.$ac_ext 17575cat >>conftest.$ac_ext <<_ACEOF 17576/* end confdefs.h. */ 17577#include <sys/stat.h> 17578int 17579main () 17580{ 17581char *p = (char *)open64; 17582 ; 17583 return 0; 17584} 17585_ACEOF 17586rm -f conftest.$ac_objext 17587if { (ac_try="$ac_compile" 17588case "(($ac_try" in 17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17590 *) ac_try_echo=$ac_try;; 17591esac 17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17593 (eval "$ac_compile") 2>conftest.er1 17594 ac_status=$? 17595 grep -v '^ *+' conftest.er1 >conftest.err 17596 rm -f conftest.er1 17597 cat conftest.err >&5 17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17599 (exit $ac_status); } && { 17600 test -z "$ac_c_werror_flag" || 17601 test ! -s conftest.err 17602 } && test -s conftest.$ac_objext; then 17603 tcl_cv_flag__largefile_source64=no 17604else 17605 echo "$as_me: failed program was:" >&5 17606sed 's/^/| /' conftest.$ac_ext >&5 17607 17608 cat >conftest.$ac_ext <<_ACEOF 17609/* confdefs.h. */ 17610_ACEOF 17611cat confdefs.h >>conftest.$ac_ext 17612cat >>conftest.$ac_ext <<_ACEOF 17613/* end confdefs.h. */ 17614#define _LARGEFILE_SOURCE64 1 17615#include <sys/stat.h> 17616int 17617main () 17618{ 17619char *p = (char *)open64; 17620 ; 17621 return 0; 17622} 17623_ACEOF 17624rm -f conftest.$ac_objext 17625if { (ac_try="$ac_compile" 17626case "(($ac_try" in 17627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17628 *) ac_try_echo=$ac_try;; 17629esac 17630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17631 (eval "$ac_compile") 2>conftest.er1 17632 ac_status=$? 17633 grep -v '^ *+' conftest.er1 >conftest.err 17634 rm -f conftest.er1 17635 cat conftest.err >&5 17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17637 (exit $ac_status); } && { 17638 test -z "$ac_c_werror_flag" || 17639 test ! -s conftest.err 17640 } && test -s conftest.$ac_objext; then 17641 tcl_cv_flag__largefile_source64=yes 17642else 17643 echo "$as_me: failed program was:" >&5 17644sed 's/^/| /' conftest.$ac_ext >&5 17645 17646 tcl_cv_flag__largefile_source64=no 17647fi 17648 17649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17650fi 17651 17652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17653fi 17654 17655 if test "x${tcl_cv_flag__largefile_source64}" = "xyes" ; then 17656 17657cat >>confdefs.h <<\_ACEOF 17658#define _LARGEFILE_SOURCE64 1 17659_ACEOF 17660 17661 tcl_flags="$tcl_flags _LARGEFILE_SOURCE64" 17662 fi 17663 17664 if test "x${tcl_flags}" = "x" ; then 17665 { echo "$as_me:$LINENO: result: none" >&5 17666echo "${ECHO_T}none" >&6; } 17667 else 17668 { echo "$as_me:$LINENO: result: ${tcl_flags}" >&5 17669echo "${ECHO_T}${tcl_flags}" >&6; } 17670 fi 17671 17672 17673 { echo "$as_me:$LINENO: checking for 64-bit integer type" >&5 17674echo $ECHO_N "checking for 64-bit integer type... $ECHO_C" >&6; } 17675 if test "${tcl_cv_type_64bit+set}" = set; then 17676 echo $ECHO_N "(cached) $ECHO_C" >&6 17677else 17678 17679 tcl_cv_type_64bit=none 17680 # See if the compiler knows natively about __int64 17681 cat >conftest.$ac_ext <<_ACEOF 17682/* confdefs.h. */ 17683_ACEOF 17684cat confdefs.h >>conftest.$ac_ext 17685cat >>conftest.$ac_ext <<_ACEOF 17686/* end confdefs.h. */ 17687 17688int 17689main () 17690{ 17691__int64 value = (__int64) 0; 17692 ; 17693 return 0; 17694} 17695_ACEOF 17696rm -f conftest.$ac_objext 17697if { (ac_try="$ac_compile" 17698case "(($ac_try" in 17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17700 *) ac_try_echo=$ac_try;; 17701esac 17702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17703 (eval "$ac_compile") 2>conftest.er1 17704 ac_status=$? 17705 grep -v '^ *+' conftest.er1 >conftest.err 17706 rm -f conftest.er1 17707 cat conftest.err >&5 17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17709 (exit $ac_status); } && { 17710 test -z "$ac_c_werror_flag" || 17711 test ! -s conftest.err 17712 } && test -s conftest.$ac_objext; then 17713 tcl_type_64bit=__int64 17714else 17715 echo "$as_me: failed program was:" >&5 17716sed 's/^/| /' conftest.$ac_ext >&5 17717 17718 tcl_type_64bit="long long" 17719fi 17720 17721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17722 # See if we should use long anyway Note that we substitute in the 17723 # type that is our current guess for a 64-bit type inside this check 17724 # program, so it should be modified only carefully... 17725 cat >conftest.$ac_ext <<_ACEOF 17726/* confdefs.h. */ 17727_ACEOF 17728cat confdefs.h >>conftest.$ac_ext 17729cat >>conftest.$ac_ext <<_ACEOF 17730/* end confdefs.h. */ 17731 17732int 17733main () 17734{ 17735switch (0) { 17736 case 1: case (sizeof(${tcl_type_64bit})==sizeof(long)): ; 17737 } 17738 ; 17739 return 0; 17740} 17741_ACEOF 17742rm -f conftest.$ac_objext 17743if { (ac_try="$ac_compile" 17744case "(($ac_try" in 17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17746 *) ac_try_echo=$ac_try;; 17747esac 17748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17749 (eval "$ac_compile") 2>conftest.er1 17750 ac_status=$? 17751 grep -v '^ *+' conftest.er1 >conftest.err 17752 rm -f conftest.er1 17753 cat conftest.err >&5 17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17755 (exit $ac_status); } && { 17756 test -z "$ac_c_werror_flag" || 17757 test ! -s conftest.err 17758 } && test -s conftest.$ac_objext; then 17759 tcl_cv_type_64bit=${tcl_type_64bit} 17760else 17761 echo "$as_me: failed program was:" >&5 17762sed 's/^/| /' conftest.$ac_ext >&5 17763 17764 17765fi 17766 17767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17768fi 17769 17770 if test "${tcl_cv_type_64bit}" = none ; then 17771 17772cat >>confdefs.h <<\_ACEOF 17773#define TCL_WIDE_INT_IS_LONG 1 17774_ACEOF 17775 17776 { echo "$as_me:$LINENO: result: using long" >&5 17777echo "${ECHO_T}using long" >&6; } 17778 elif test "${tcl_cv_type_64bit}" = "__int64" \ 17779 -a "${TEA_PLATFORM}" = "windows" ; then 17780 # TEA specific: We actually want to use the default tcl.h checks in 17781 # this case to handle both TCL_WIDE_INT_TYPE and TCL_LL_MODIFIER* 17782 { echo "$as_me:$LINENO: result: using Tcl header defaults" >&5 17783echo "${ECHO_T}using Tcl header defaults" >&6; } 17784 else 17785 17786cat >>confdefs.h <<_ACEOF 17787#define TCL_WIDE_INT_TYPE ${tcl_cv_type_64bit} 17788_ACEOF 17789 17790 { echo "$as_me:$LINENO: result: ${tcl_cv_type_64bit}" >&5 17791echo "${ECHO_T}${tcl_cv_type_64bit}" >&6; } 17792 17793 # Now check for auxiliary declarations 17794 { echo "$as_me:$LINENO: checking for struct dirent64" >&5 17795echo $ECHO_N "checking for struct dirent64... $ECHO_C" >&6; } 17796if test "${tcl_cv_struct_dirent64+set}" = set; then 17797 echo $ECHO_N "(cached) $ECHO_C" >&6 17798else 17799 17800 cat >conftest.$ac_ext <<_ACEOF 17801/* confdefs.h. */ 17802_ACEOF 17803cat confdefs.h >>conftest.$ac_ext 17804cat >>conftest.$ac_ext <<_ACEOF 17805/* end confdefs.h. */ 17806#include <sys/types.h> 17807#include <sys/dirent.h> 17808int 17809main () 17810{ 17811struct dirent64 p; 17812 ; 17813 return 0; 17814} 17815_ACEOF 17816rm -f conftest.$ac_objext 17817if { (ac_try="$ac_compile" 17818case "(($ac_try" in 17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17820 *) ac_try_echo=$ac_try;; 17821esac 17822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17823 (eval "$ac_compile") 2>conftest.er1 17824 ac_status=$? 17825 grep -v '^ *+' conftest.er1 >conftest.err 17826 rm -f conftest.er1 17827 cat conftest.err >&5 17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17829 (exit $ac_status); } && { 17830 test -z "$ac_c_werror_flag" || 17831 test ! -s conftest.err 17832 } && test -s conftest.$ac_objext; then 17833 tcl_cv_struct_dirent64=yes 17834else 17835 echo "$as_me: failed program was:" >&5 17836sed 's/^/| /' conftest.$ac_ext >&5 17837 17838 tcl_cv_struct_dirent64=no 17839fi 17840 17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17842fi 17843{ echo "$as_me:$LINENO: result: $tcl_cv_struct_dirent64" >&5 17844echo "${ECHO_T}$tcl_cv_struct_dirent64" >&6; } 17845 if test "x${tcl_cv_struct_dirent64}" = "xyes" ; then 17846 17847cat >>confdefs.h <<\_ACEOF 17848#define HAVE_STRUCT_DIRENT64 1 17849_ACEOF 17850 17851 fi 17852 17853 { echo "$as_me:$LINENO: checking for struct stat64" >&5 17854echo $ECHO_N "checking for struct stat64... $ECHO_C" >&6; } 17855if test "${tcl_cv_struct_stat64+set}" = set; then 17856 echo $ECHO_N "(cached) $ECHO_C" >&6 17857else 17858 17859 cat >conftest.$ac_ext <<_ACEOF 17860/* confdefs.h. */ 17861_ACEOF 17862cat confdefs.h >>conftest.$ac_ext 17863cat >>conftest.$ac_ext <<_ACEOF 17864/* end confdefs.h. */ 17865#include <sys/stat.h> 17866int 17867main () 17868{ 17869struct stat64 p; 17870 17871 ; 17872 return 0; 17873} 17874_ACEOF 17875rm -f conftest.$ac_objext 17876if { (ac_try="$ac_compile" 17877case "(($ac_try" in 17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17879 *) ac_try_echo=$ac_try;; 17880esac 17881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17882 (eval "$ac_compile") 2>conftest.er1 17883 ac_status=$? 17884 grep -v '^ *+' conftest.er1 >conftest.err 17885 rm -f conftest.er1 17886 cat conftest.err >&5 17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17888 (exit $ac_status); } && { 17889 test -z "$ac_c_werror_flag" || 17890 test ! -s conftest.err 17891 } && test -s conftest.$ac_objext; then 17892 tcl_cv_struct_stat64=yes 17893else 17894 echo "$as_me: failed program was:" >&5 17895sed 's/^/| /' conftest.$ac_ext >&5 17896 17897 tcl_cv_struct_stat64=no 17898fi 17899 17900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17901fi 17902{ echo "$as_me:$LINENO: result: $tcl_cv_struct_stat64" >&5 17903echo "${ECHO_T}$tcl_cv_struct_stat64" >&6; } 17904 if test "x${tcl_cv_struct_stat64}" = "xyes" ; then 17905 17906cat >>confdefs.h <<\_ACEOF 17907#define HAVE_STRUCT_STAT64 1 17908_ACEOF 17909 17910 fi 17911 17912 17913 17914for ac_func in open64 lseek64 17915do 17916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17917{ echo "$as_me:$LINENO: checking for $ac_func" >&5 17918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 17919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 17920 echo $ECHO_N "(cached) $ECHO_C" >&6 17921else 17922 cat >conftest.$ac_ext <<_ACEOF 17923/* confdefs.h. */ 17924_ACEOF 17925cat confdefs.h >>conftest.$ac_ext 17926cat >>conftest.$ac_ext <<_ACEOF 17927/* end confdefs.h. */ 17928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 17929 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17930#define $ac_func innocuous_$ac_func 17931 17932/* System header to define __stub macros and hopefully few prototypes, 17933 which can conflict with char $ac_func (); below. 17934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17935 <limits.h> exists even on freestanding compilers. */ 17936 17937#ifdef __STDC__ 17938# include <limits.h> 17939#else 17940# include <assert.h> 17941#endif 17942 17943#undef $ac_func 17944 17945/* Override any GCC internal prototype to avoid an error. 17946 Use char because int might match the return type of a GCC 17947 builtin and then its argument prototype would still apply. */ 17948#ifdef __cplusplus 17949extern "C" 17950#endif 17951char $ac_func (); 17952/* The GNU C library defines this for functions which it implements 17953 to always fail with ENOSYS. Some functions are actually named 17954 something starting with __ and the normal name is an alias. */ 17955#if defined __stub_$ac_func || defined __stub___$ac_func 17956choke me 17957#endif 17958 17959int 17960main () 17961{ 17962return $ac_func (); 17963 ; 17964 return 0; 17965} 17966_ACEOF 17967rm -f conftest.$ac_objext conftest$ac_exeext 17968if { (ac_try="$ac_link" 17969case "(($ac_try" in 17970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 17971 *) ac_try_echo=$ac_try;; 17972esac 17973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 17974 (eval "$ac_link") 2>conftest.er1 17975 ac_status=$? 17976 grep -v '^ *+' conftest.er1 >conftest.err 17977 rm -f conftest.er1 17978 cat conftest.err >&5 17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17980 (exit $ac_status); } && { 17981 test -z "$ac_c_werror_flag" || 17982 test ! -s conftest.err 17983 } && test -s conftest$ac_exeext && 17984 $as_test_x conftest$ac_exeext; then 17985 eval "$as_ac_var=yes" 17986else 17987 echo "$as_me: failed program was:" >&5 17988sed 's/^/| /' conftest.$ac_ext >&5 17989 17990 eval "$as_ac_var=no" 17991fi 17992 17993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 17994 conftest$ac_exeext conftest.$ac_ext 17995fi 17996ac_res=`eval echo '${'$as_ac_var'}'` 17997 { echo "$as_me:$LINENO: result: $ac_res" >&5 17998echo "${ECHO_T}$ac_res" >&6; } 17999if test `eval echo '${'$as_ac_var'}'` = yes; then 18000 cat >>confdefs.h <<_ACEOF 18001#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18002_ACEOF 18003 18004fi 18005done 18006 18007 { echo "$as_me:$LINENO: checking for off64_t" >&5 18008echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; } 18009 if test "${tcl_cv_type_off64_t+set}" = set; then 18010 echo $ECHO_N "(cached) $ECHO_C" >&6 18011else 18012 18013 cat >conftest.$ac_ext <<_ACEOF 18014/* confdefs.h. */ 18015_ACEOF 18016cat confdefs.h >>conftest.$ac_ext 18017cat >>conftest.$ac_ext <<_ACEOF 18018/* end confdefs.h. */ 18019#include <sys/types.h> 18020int 18021main () 18022{ 18023off64_t offset; 18024 18025 ; 18026 return 0; 18027} 18028_ACEOF 18029rm -f conftest.$ac_objext 18030if { (ac_try="$ac_compile" 18031case "(($ac_try" in 18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 18033 *) ac_try_echo=$ac_try;; 18034esac 18035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 18036 (eval "$ac_compile") 2>conftest.er1 18037 ac_status=$? 18038 grep -v '^ *+' conftest.er1 >conftest.err 18039 rm -f conftest.er1 18040 cat conftest.err >&5 18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18042 (exit $ac_status); } && { 18043 test -z "$ac_c_werror_flag" || 18044 test ! -s conftest.err 18045 } && test -s conftest.$ac_objext; then 18046 tcl_cv_type_off64_t=yes 18047else 18048 echo "$as_me: failed program was:" >&5 18049sed 's/^/| /' conftest.$ac_ext >&5 18050 18051 tcl_cv_type_off64_t=no 18052fi 18053 18054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18055fi 18056 18057 if test "x${tcl_cv_type_off64_t}" = "xyes" && \ 18058 test "x${ac_cv_func_lseek64}" = "xyes" && \ 18059 test "x${ac_cv_func_open64}" = "xyes" ; then 18060 18061cat >>confdefs.h <<\_ACEOF 18062#define HAVE_TYPE_OFF64_T 1 18063_ACEOF 18064 18065 { echo "$as_me:$LINENO: result: yes" >&5 18066echo "${ECHO_T}yes" >&6; } 18067 else 18068 { echo "$as_me:$LINENO: result: no" >&5 18069echo "${ECHO_T}no" >&6; } 18070 fi 18071 fi 18072 18073 18074 18075#-------------------------------------------------------------------- 18076# Set the default compiler switches based on the --enable-symbols option. 18077#-------------------------------------------------------------------- 18078 18079 18080 18081 { echo "$as_me:$LINENO: checking for build with symbols" >&5 18082echo $ECHO_N "checking for build with symbols... $ECHO_C" >&6; } 18083 # Check whether --enable-symbols was given. 18084if test "${enable_symbols+set}" = set; then 18085 enableval=$enable_symbols; tcl_ok=$enableval 18086else 18087 tcl_ok=no 18088fi 18089 18090 DBGX="" 18091 if test "$tcl_ok" = "no"; then 18092 CFLAGS_DEFAULT="${CFLAGS_OPTIMIZE}" 18093 LDFLAGS_DEFAULT="${LDFLAGS_OPTIMIZE}" 18094 { echo "$as_me:$LINENO: result: no" >&5 18095echo "${ECHO_T}no" >&6; } 18096 else 18097 CFLAGS_DEFAULT="${CFLAGS_DEBUG}" 18098 LDFLAGS_DEFAULT="${LDFLAGS_DEBUG}" 18099 if test "$tcl_ok" = "yes"; then 18100 { echo "$as_me:$LINENO: result: yes (standard debugging)" >&5 18101echo "${ECHO_T}yes (standard debugging)" >&6; } 18102 fi 18103 fi 18104 # TEA specific: 18105 if test "${TEA_PLATFORM}" != "windows" ; then 18106 LDFLAGS_DEFAULT="${LDFLAGS}" 18107 fi 18108 18109 18110 18111 18112 if test "$tcl_ok" = "mem" -o "$tcl_ok" = "all"; then 18113 18114cat >>confdefs.h <<\_ACEOF 18115#define TCL_MEM_DEBUG 1 18116_ACEOF 18117 18118 fi 18119 18120 if test "$tcl_ok" != "yes" -a "$tcl_ok" != "no"; then 18121 if test "$tcl_ok" = "all"; then 18122 { echo "$as_me:$LINENO: result: enabled symbols mem debugging" >&5 18123echo "${ECHO_T}enabled symbols mem debugging" >&6; } 18124 else 18125 { echo "$as_me:$LINENO: result: enabled $tcl_ok debugging" >&5 18126echo "${ECHO_T}enabled $tcl_ok debugging" >&6; } 18127 fi 18128 fi 18129 18130 18131#-------------------------------------------------------------------- 18132# Everyone should be linking against the Tcl stub library. If you 18133# can't for some reason, remove this definition. If you aren't using 18134# stubs, you also need to modify the SHLIB_LD_LIBS setting below to 18135# link against the non-stubbed Tcl library. Add Tk too if necessary. 18136#-------------------------------------------------------------------- 18137 18138 18139cat >>confdefs.h <<\_ACEOF 18140#define USE_TCL_STUBS 1 18141_ACEOF 18142 18143 18144#-------------------------------------------------------------------- 18145# This macro generates a line to use when building a library. It 18146# depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS, 18147# and TEA_LOAD_TCLCONFIG macros above. 18148#-------------------------------------------------------------------- 18149 18150 18151 if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then 18152 MAKE_STATIC_LIB="\${STLIB_LD} -out:\$@ \$(PKG_OBJECTS)" 18153 MAKE_SHARED_LIB="\${SHLIB_LD} \${SHLIB_LD_LIBS} \${LDFLAGS_DEFAULT} -out:\$@ \$(PKG_OBJECTS)" 18154 cat >conftest.$ac_ext <<_ACEOF 18155/* confdefs.h. */ 18156_ACEOF 18157cat confdefs.h >>conftest.$ac_ext 18158cat >>conftest.$ac_ext <<_ACEOF 18159/* end confdefs.h. */ 18160 18161#if defined(_MSC_VER) && _MSC_VER >= 1400 18162print("manifest needed") 18163#endif 18164 18165_ACEOF 18166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18167 $EGREP "manifest needed" >/dev/null 2>&1; then 18168 18169 # Could do a CHECK_PROG for mt, but should always be with MSVC8+ 18170 VC_MANIFEST_EMBED_DLL="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;2" 18171 VC_MANIFEST_EMBED_EXE="mt.exe -nologo -manifest \$@.manifest -outputresource:\$@\;1" 18172 MAKE_SHARED_LIB="${MAKE_SHARED_LIB} ; ${VC_MANIFEST_EMBED_DLL}" 18173 18174 CLEANFILES="$CLEANFILES *.manifest" 18175 18176 18177fi 18178rm -f -r conftest* 18179 18180 MAKE_STUB_LIB="\${STLIB_LD} -out:\$@ \$(PKG_STUB_OBJECTS)" 18181 else 18182 MAKE_STATIC_LIB="\${STLIB_LD} \$@ \$(PKG_OBJECTS)" 18183 MAKE_SHARED_LIB="\${SHLIB_LD} -o \$@ \$(PKG_OBJECTS) \${SHLIB_LD_LIBS}" 18184 MAKE_STUB_LIB="\${STLIB_LD} \$@ \$(PKG_STUB_OBJECTS)" 18185 fi 18186 18187 if test "${SHARED_BUILD}" = "1" ; then 18188 MAKE_LIB="${MAKE_SHARED_LIB} " 18189 else 18190 MAKE_LIB="${MAKE_STATIC_LIB} " 18191 fi 18192 18193 #-------------------------------------------------------------------- 18194 # Shared libraries and static libraries have different names. 18195 # Use the double eval to make sure any variables in the suffix is 18196 # substituted. (@@@ Might not be necessary anymore) 18197 #-------------------------------------------------------------------- 18198 18199 if test "${TEA_PLATFORM}" = "windows" ; then 18200 if test "${SHARED_BUILD}" = "1" ; then 18201 # We force the unresolved linking of symbols that are really in 18202 # the private libraries of Tcl and Tk. 18203 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}`\"" 18204 if test x"${TK_BIN_DIR}" != x ; then 18205 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} \"`${CYGPATH} ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}`\"" 18206 fi 18207 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 18208 else 18209 eval eval "PKG_LIB_FILE=${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 18210 fi 18211 # Some packages build their own stubs libraries 18212 eval eval "PKG_STUB_LIB_FILE=${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 18213 if test "$GCC" = "yes"; then 18214 PKG_STUB_LIB_FILE=lib${PKG_STUB_LIB_FILE} 18215 fi 18216 # These aren't needed on Windows (either MSVC or gcc) 18217 RANLIB=: 18218 RANLIB_STUB=: 18219 else 18220 RANLIB_STUB="${RANLIB}" 18221 if test "${SHARED_BUILD}" = "1" ; then 18222 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TCL_STUB_LIB_SPEC}" 18223 if test x"${TK_BIN_DIR}" != x ; then 18224 SHLIB_LD_LIBS="${SHLIB_LD_LIBS} ${TK_STUB_LIB_SPEC}" 18225 fi 18226 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${SHARED_LIB_SUFFIX}" 18227 RANLIB=: 18228 else 18229 eval eval "PKG_LIB_FILE=lib${PACKAGE_NAME}${UNSHARED_LIB_SUFFIX}" 18230 fi 18231 # Some packages build their own stubs libraries 18232 eval eval "PKG_STUB_LIB_FILE=lib${PACKAGE_NAME}stub${UNSHARED_LIB_SUFFIX}" 18233 fi 18234 18235 # These are escaped so that only CFLAGS is picked up at configure time. 18236 # The other values will be substituted at make time. 18237 CFLAGS="${CFLAGS} \${CFLAGS_DEFAULT} \${CFLAGS_WARNING}" 18238 if test "${SHARED_BUILD}" = "1" ; then 18239 CFLAGS="${CFLAGS} \${SHLIB_CFLAGS}" 18240 fi 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251#-------------------------------------------------------------------- 18252# Determine the name of the tclsh and/or wish executables in the 18253# Tcl and Tk build directories or the location they were installed 18254# into. These paths are used to support running test cases only, 18255# the Makefile should not be making use of these paths to generate 18256# a pkgIndex.tcl file or anything else at extension build time. 18257#-------------------------------------------------------------------- 18258 18259 18260 { echo "$as_me:$LINENO: checking for tclsh" >&5 18261echo $ECHO_N "checking for tclsh... $ECHO_C" >&6; } 18262 if test -f "${TCL_BIN_DIR}/Makefile" ; then 18263 # tclConfig.sh is in Tcl build directory 18264 if test "${TEA_PLATFORM}" = "windows"; then 18265 TCLSH_PROG="${TCL_BIN_DIR}/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 18266 else 18267 TCLSH_PROG="${TCL_BIN_DIR}/tclsh" 18268 fi 18269 else 18270 # tclConfig.sh is in install location 18271 if test "${TEA_PLATFORM}" = "windows"; then 18272 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}${TCL_DBGX}${EXEEXT}" 18273 else 18274 TCLSH_PROG="tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}${TCL_DBGX}" 18275 fi 18276 list="`ls -d ${TCL_BIN_DIR}/../bin 2>/dev/null` \ 18277 `ls -d ${TCL_BIN_DIR}/.. 2>/dev/null` \ 18278 `ls -d ${TCL_PREFIX}/bin 2>/dev/null`" 18279 for i in $list ; do 18280 if test -f "$i/${TCLSH_PROG}" ; then 18281 REAL_TCL_BIN_DIR="`cd "$i"; pwd`/" 18282 break 18283 fi 18284 done 18285 TCLSH_PROG="${REAL_TCL_BIN_DIR}${TCLSH_PROG}" 18286 fi 18287 { echo "$as_me:$LINENO: result: ${TCLSH_PROG}" >&5 18288echo "${ECHO_T}${TCLSH_PROG}" >&6; } 18289 18290 18291 18292#-------------------------------------------------------------------- 18293# Finally, substitute all of the various values into the Makefile. 18294# You may alternatively have a special pkgIndex.tcl.in or other files 18295# which require substituting th AC variables in. Include these here. 18296#-------------------------------------------------------------------- 18297 18298ac_config_files="$ac_config_files GNUmakefile pkgIndex.tcl" 18299 18300cat >confcache <<\_ACEOF 18301# This file is a shell script that caches the results of configure 18302# tests run on this system so they can be shared between configure 18303# scripts and configure runs, see configure's option --config-cache. 18304# It is not useful on other systems. If it contains results you don't 18305# want to keep, you may remove or edit it. 18306# 18307# config.status only pays attention to the cache file if you give it 18308# the --recheck option to rerun configure. 18309# 18310# `ac_cv_env_foo' variables (set or unset) will be overridden when 18311# loading this file, other *unset* `ac_cv_foo' will be assigned the 18312# following values. 18313 18314_ACEOF 18315 18316# The following way of writing the cache mishandles newlines in values, 18317# but we know of no workaround that is simple, portable, and efficient. 18318# So, we kill variables containing newlines. 18319# Ultrix sh set writes to stderr and can't be redirected directly, 18320# and sets the high bit in the cache file unless we assign to the vars. 18321( 18322 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18323 eval ac_val=\$$ac_var 18324 case $ac_val in #( 18325 *${as_nl}*) 18326 case $ac_var in #( 18327 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 18328echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 18329 esac 18330 case $ac_var in #( 18331 _ | IFS | as_nl) ;; #( 18332 *) $as_unset $ac_var ;; 18333 esac ;; 18334 esac 18335 done 18336 18337 (set) 2>&1 | 18338 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18339 *${as_nl}ac_space=\ *) 18340 # `set' does not quote correctly, so add quotes (double-quote 18341 # substitution turns \\\\ into \\, and sed turns \\ into \). 18342 sed -n \ 18343 "s/'/'\\\\''/g; 18344 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18345 ;; #( 18346 *) 18347 # `set' quotes correctly as required by POSIX, so do not add quotes. 18348 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18349 ;; 18350 esac | 18351 sort 18352) | 18353 sed ' 18354 /^ac_cv_env_/b end 18355 t clear 18356 :clear 18357 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18358 t end 18359 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18360 :end' >>confcache 18361if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18362 if test -w "$cache_file"; then 18363 test "x$cache_file" != "x/dev/null" && 18364 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 18365echo "$as_me: updating cache $cache_file" >&6;} 18366 cat confcache >$cache_file 18367 else 18368 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 18369echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18370 fi 18371fi 18372rm -f confcache 18373 18374test "x$prefix" = xNONE && prefix=$ac_default_prefix 18375# Let make expand exec_prefix. 18376test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18377 18378DEFS=-DHAVE_CONFIG_H 18379 18380ac_libobjs= 18381ac_ltlibobjs= 18382for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18383 # 1. Remove the extension, and $U if already installed. 18384 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18385 ac_i=`echo "$ac_i" | sed "$ac_script"` 18386 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18387 # will be set to the directory where LIBOBJS objects are built. 18388 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18389 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 18390done 18391LIBOBJS=$ac_libobjs 18392 18393LTLIBOBJS=$ac_ltlibobjs 18394 18395 18396CFLAGS="${CFLAGS} ${CPPFLAGS}"; CPPFLAGS="" 18397 18398: ${CONFIG_STATUS=./config.status} 18399ac_clean_files_save=$ac_clean_files 18400ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18401{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 18402echo "$as_me: creating $CONFIG_STATUS" >&6;} 18403cat >$CONFIG_STATUS <<_ACEOF 18404#! $SHELL 18405# Generated by $as_me. 18406# Run this file to recreate the current configuration. 18407# Compiler output produced by configure, useful for debugging 18408# configure, is in config.log if it exists. 18409 18410debug=false 18411ac_cs_recheck=false 18412ac_cs_silent=false 18413SHELL=\${CONFIG_SHELL-$SHELL} 18414_ACEOF 18415 18416cat >>$CONFIG_STATUS <<\_ACEOF 18417## --------------------- ## 18418## M4sh Initialization. ## 18419## --------------------- ## 18420 18421# Be more Bourne compatible 18422DUALCASE=1; export DUALCASE # for MKS sh 18423if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18424 emulate sh 18425 NULLCMD=: 18426 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 18427 # is contrary to our usage. Disable this feature. 18428 alias -g '${1+"$@"}'='"$@"' 18429 setopt NO_GLOB_SUBST 18430else 18431 case `(set -o) 2>/dev/null` in 18432 *posix*) set -o posix ;; 18433esac 18434 18435fi 18436 18437 18438 18439 18440# PATH needs CR 18441# Avoid depending upon Character Ranges. 18442as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18443as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18444as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18445as_cr_digits='0123456789' 18446as_cr_alnum=$as_cr_Letters$as_cr_digits 18447 18448# The user is always right. 18449if test "${PATH_SEPARATOR+set}" != set; then 18450 echo "#! /bin/sh" >conf$$.sh 18451 echo "exit 0" >>conf$$.sh 18452 chmod +x conf$$.sh 18453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 18454 PATH_SEPARATOR=';' 18455 else 18456 PATH_SEPARATOR=: 18457 fi 18458 rm -f conf$$.sh 18459fi 18460 18461# Support unset when possible. 18462if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 18463 as_unset=unset 18464else 18465 as_unset=false 18466fi 18467 18468 18469# IFS 18470# We need space, tab and new line, in precisely that order. Quoting is 18471# there to prevent editors from complaining about space-tab. 18472# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18473# splitting by setting IFS to empty value.) 18474as_nl=' 18475' 18476IFS=" "" $as_nl" 18477 18478# Find who we are. Look in the path if we contain no directory separator. 18479case $0 in 18480 *[\\/]* ) as_myself=$0 ;; 18481 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18482for as_dir in $PATH 18483do 18484 IFS=$as_save_IFS 18485 test -z "$as_dir" && as_dir=. 18486 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18487done 18488IFS=$as_save_IFS 18489 18490 ;; 18491esac 18492# We did not find ourselves, most probably we were run as `sh COMMAND' 18493# in which case we are not to be found in the path. 18494if test "x$as_myself" = x; then 18495 as_myself=$0 18496fi 18497if test ! -f "$as_myself"; then 18498 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18499 { (exit 1); exit 1; } 18500fi 18501 18502# Work around bugs in pre-3.0 UWIN ksh. 18503for as_var in ENV MAIL MAILPATH 18504do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 18505done 18506PS1='$ ' 18507PS2='> ' 18508PS4='+ ' 18509 18510# NLS nuisances. 18511for as_var in \ 18512 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 18513 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 18514 LC_TELEPHONE LC_TIME 18515do 18516 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 18517 eval $as_var=C; export $as_var 18518 else 18519 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 18520 fi 18521done 18522 18523# Required to use basename. 18524if expr a : '\(a\)' >/dev/null 2>&1 && 18525 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18526 as_expr=expr 18527else 18528 as_expr=false 18529fi 18530 18531if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18532 as_basename=basename 18533else 18534 as_basename=false 18535fi 18536 18537 18538# Name of the executable. 18539as_me=`$as_basename -- "$0" || 18540$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18541 X"$0" : 'X\(//\)$' \| \ 18542 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18543echo X/"$0" | 18544 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18545 s//\1/ 18546 q 18547 } 18548 /^X\/\(\/\/\)$/{ 18549 s//\1/ 18550 q 18551 } 18552 /^X\/\(\/\).*/{ 18553 s//\1/ 18554 q 18555 } 18556 s/.*/./; q'` 18557 18558# CDPATH. 18559$as_unset CDPATH 18560 18561 18562 18563 as_lineno_1=$LINENO 18564 as_lineno_2=$LINENO 18565 test "x$as_lineno_1" != "x$as_lineno_2" && 18566 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 18567 18568 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 18569 # uniformly replaced by the line number. The first 'sed' inserts a 18570 # line-number line after each line using $LINENO; the second 'sed' 18571 # does the real work. The second script uses 'N' to pair each 18572 # line-number line with the line containing $LINENO, and appends 18573 # trailing '-' during substitution so that $LINENO is not a special 18574 # case at line end. 18575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 18576 # scripts with optimization help from Paolo Bonzini. Blame Lee 18577 # E. McMahon (1931-1989) for sed's syntax. :-) 18578 sed -n ' 18579 p 18580 /[$]LINENO/= 18581 ' <$as_myself | 18582 sed ' 18583 s/[$]LINENO.*/&-/ 18584 t lineno 18585 b 18586 :lineno 18587 N 18588 :loop 18589 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 18590 t loop 18591 s/-\n.*// 18592 ' >$as_me.lineno && 18593 chmod +x "$as_me.lineno" || 18594 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 18595 { (exit 1); exit 1; }; } 18596 18597 # Don't try to exec as it changes $[0], causing all sort of problems 18598 # (the dirname of $[0] is not the place where we might find the 18599 # original and so on. Autoconf is especially sensitive to this). 18600 . "./$as_me.lineno" 18601 # Exit status is that of the last command. 18602 exit 18603} 18604 18605 18606if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18607 as_dirname=dirname 18608else 18609 as_dirname=false 18610fi 18611 18612ECHO_C= ECHO_N= ECHO_T= 18613case `echo -n x` in 18614-n*) 18615 case `echo 'x\c'` in 18616 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18617 *) ECHO_C='\c';; 18618 esac;; 18619*) 18620 ECHO_N='-n';; 18621esac 18622 18623if expr a : '\(a\)' >/dev/null 2>&1 && 18624 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18625 as_expr=expr 18626else 18627 as_expr=false 18628fi 18629 18630rm -f conf$$ conf$$.exe conf$$.file 18631if test -d conf$$.dir; then 18632 rm -f conf$$.dir/conf$$.file 18633else 18634 rm -f conf$$.dir 18635 mkdir conf$$.dir 18636fi 18637echo >conf$$.file 18638if ln -s conf$$.file conf$$ 2>/dev/null; then 18639 as_ln_s='ln -s' 18640 # ... but there are two gotchas: 18641 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18642 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18643 # In both cases, we have to default to `cp -p'. 18644 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18645 as_ln_s='cp -p' 18646elif ln conf$$.file conf$$ 2>/dev/null; then 18647 as_ln_s=ln 18648else 18649 as_ln_s='cp -p' 18650fi 18651rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18652rmdir conf$$.dir 2>/dev/null 18653 18654if mkdir -p . 2>/dev/null; then 18655 as_mkdir_p=: 18656else 18657 test -d ./-p && rmdir ./-p 18658 as_mkdir_p=false 18659fi 18660 18661if test -x / >/dev/null 2>&1; then 18662 as_test_x='test -x' 18663else 18664 if ls -dL / >/dev/null 2>&1; then 18665 as_ls_L_option=L 18666 else 18667 as_ls_L_option= 18668 fi 18669 as_test_x=' 18670 eval sh -c '\'' 18671 if test -d "$1"; then 18672 test -d "$1/."; 18673 else 18674 case $1 in 18675 -*)set "./$1";; 18676 esac; 18677 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 18678 ???[sx]*):;;*)false;;esac;fi 18679 '\'' sh 18680 ' 18681fi 18682as_executable_p=$as_test_x 18683 18684# Sed expression to map a string onto a valid CPP name. 18685as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18686 18687# Sed expression to map a string onto a valid variable name. 18688as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18689 18690 18691exec 6>&1 18692 18693# Save the log message, to keep $[0] and so on meaningful, and to 18694# report actual input values of CONFIG_FILES etc. instead of their 18695# values after options handling. 18696ac_log=" 18697This file was extended by Ffidl $as_me 0.6.1, which was 18698generated by GNU Autoconf 2.61. Invocation command line was 18699 18700 CONFIG_FILES = $CONFIG_FILES 18701 CONFIG_HEADERS = $CONFIG_HEADERS 18702 CONFIG_LINKS = $CONFIG_LINKS 18703 CONFIG_COMMANDS = $CONFIG_COMMANDS 18704 $ $0 $@ 18705 18706on `(hostname || uname -n) 2>/dev/null | sed 1q` 18707" 18708 18709_ACEOF 18710 18711cat >>$CONFIG_STATUS <<_ACEOF 18712# Files that config.status was made for. 18713config_files="$ac_config_files" 18714config_headers="$ac_config_headers" 18715 18716_ACEOF 18717 18718cat >>$CONFIG_STATUS <<\_ACEOF 18719ac_cs_usage="\ 18720\`$as_me' instantiates files from templates according to the 18721current configuration. 18722 18723Usage: $0 [OPTIONS] [FILE]... 18724 18725 -h, --help print this help, then exit 18726 -V, --version print version number and configuration settings, then exit 18727 -q, --quiet do not print progress messages 18728 -d, --debug don't remove temporary files 18729 --recheck update $as_me by reconfiguring in the same conditions 18730 --file=FILE[:TEMPLATE] 18731 instantiate the configuration file FILE 18732 --header=FILE[:TEMPLATE] 18733 instantiate the configuration header FILE 18734 18735Configuration files: 18736$config_files 18737 18738Configuration headers: 18739$config_headers 18740 18741Report bugs to <bug-autoconf@gnu.org>." 18742 18743_ACEOF 18744cat >>$CONFIG_STATUS <<_ACEOF 18745ac_cs_version="\\ 18746Ffidl config.status 0.6.1 18747configured by $0, generated by GNU Autoconf 2.61, 18748 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 18749 18750Copyright (C) 2006 Free Software Foundation, Inc. 18751This config.status script is free software; the Free Software Foundation 18752gives unlimited permission to copy, distribute and modify it." 18753 18754ac_pwd='$ac_pwd' 18755srcdir='$srcdir' 18756INSTALL='$INSTALL' 18757_ACEOF 18758 18759cat >>$CONFIG_STATUS <<\_ACEOF 18760# If no file are specified by the user, then we need to provide default 18761# value. By we need to know if files were specified by the user. 18762ac_need_defaults=: 18763while test $# != 0 18764do 18765 case $1 in 18766 --*=*) 18767 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18768 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18769 ac_shift=: 18770 ;; 18771 *) 18772 ac_option=$1 18773 ac_optarg=$2 18774 ac_shift=shift 18775 ;; 18776 esac 18777 18778 case $ac_option in 18779 # Handling of the options. 18780 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18781 ac_cs_recheck=: ;; 18782 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18783 echo "$ac_cs_version"; exit ;; 18784 --debug | --debu | --deb | --de | --d | -d ) 18785 debug=: ;; 18786 --file | --fil | --fi | --f ) 18787 $ac_shift 18788 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 18789 ac_need_defaults=false;; 18790 --header | --heade | --head | --hea ) 18791 $ac_shift 18792 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 18793 ac_need_defaults=false;; 18794 --he | --h) 18795 # Conflict between --help and --header 18796 { echo "$as_me: error: ambiguous option: $1 18797Try \`$0 --help' for more information." >&2 18798 { (exit 1); exit 1; }; };; 18799 --help | --hel | -h ) 18800 echo "$ac_cs_usage"; exit ;; 18801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18802 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18803 ac_cs_silent=: ;; 18804 18805 # This is an error. 18806 -*) { echo "$as_me: error: unrecognized option: $1 18807Try \`$0 --help' for more information." >&2 18808 { (exit 1); exit 1; }; } ;; 18809 18810 *) ac_config_targets="$ac_config_targets $1" 18811 ac_need_defaults=false ;; 18812 18813 esac 18814 shift 18815done 18816 18817ac_configure_extra_args= 18818 18819if $ac_cs_silent; then 18820 exec 6>/dev/null 18821 ac_configure_extra_args="$ac_configure_extra_args --silent" 18822fi 18823 18824_ACEOF 18825cat >>$CONFIG_STATUS <<_ACEOF 18826if \$ac_cs_recheck; then 18827 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 18828 CONFIG_SHELL=$SHELL 18829 export CONFIG_SHELL 18830 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18831fi 18832 18833_ACEOF 18834cat >>$CONFIG_STATUS <<\_ACEOF 18835exec 5>>config.log 18836{ 18837 echo 18838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18839## Running $as_me. ## 18840_ASBOX 18841 echo "$ac_log" 18842} >&5 18843 18844_ACEOF 18845cat >>$CONFIG_STATUS <<_ACEOF 18846_ACEOF 18847 18848cat >>$CONFIG_STATUS <<\_ACEOF 18849 18850# Handling of arguments. 18851for ac_config_target in $ac_config_targets 18852do 18853 case $ac_config_target in 18854 "ffidlConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ffidlConfig.h" ;; 18855 "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;; 18856 "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; 18857 18858 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 18859echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 18860 { (exit 1); exit 1; }; };; 18861 esac 18862done 18863 18864 18865# If the user did not use the arguments to specify the items to instantiate, 18866# then the envvar interface is used. Set only those that are not. 18867# We use the long form for the default assignment because of an extremely 18868# bizarre bug on SunOS 4.1.3. 18869if $ac_need_defaults; then 18870 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18871 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18872fi 18873 18874# Have a temporary directory for convenience. Make it in the build tree 18875# simply because there is no reason against having it here, and in addition, 18876# creating and moving files from /tmp can sometimes cause problems. 18877# Hook for its removal unless debugging. 18878# Note that there is a small window in which the directory will not be cleaned: 18879# after its creation but before its name has been assigned to `$tmp'. 18880$debug || 18881{ 18882 tmp= 18883 trap 'exit_status=$? 18884 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18885' 0 18886 trap '{ (exit 1); exit 1; }' 1 2 13 15 18887} 18888# Create a (secure) tmp directory for tmp files. 18889 18890{ 18891 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18892 test -n "$tmp" && test -d "$tmp" 18893} || 18894{ 18895 tmp=./conf$$-$RANDOM 18896 (umask 077 && mkdir "$tmp") 18897} || 18898{ 18899 echo "$me: cannot create a temporary directory in ." >&2 18900 { (exit 1); exit 1; } 18901} 18902 18903# 18904# Set up the sed scripts for CONFIG_FILES section. 18905# 18906 18907# No need to generate the scripts if there are no CONFIG_FILES. 18908# This happens for instance when ./config.status config.h 18909if test -n "$CONFIG_FILES"; then 18910 18911_ACEOF 18912 18913 18914 18915ac_delim='%!_!# ' 18916for ac_last_try in false false false false false :; do 18917 cat >conf$$subs.sed <<_ACEOF 18918SHELL!$SHELL$ac_delim 18919PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 18920PACKAGE_NAME!$PACKAGE_NAME$ac_delim 18921PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 18922PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 18923PACKAGE_STRING!$PACKAGE_STRING$ac_delim 18924PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 18925exec_prefix!$exec_prefix$ac_delim 18926prefix!$prefix$ac_delim 18927program_transform_name!$program_transform_name$ac_delim 18928bindir!$bindir$ac_delim 18929sbindir!$sbindir$ac_delim 18930libexecdir!$libexecdir$ac_delim 18931datarootdir!$datarootdir$ac_delim 18932datadir!$datadir$ac_delim 18933sysconfdir!$sysconfdir$ac_delim 18934sharedstatedir!$sharedstatedir$ac_delim 18935localstatedir!$localstatedir$ac_delim 18936includedir!$includedir$ac_delim 18937oldincludedir!$oldincludedir$ac_delim 18938docdir!$docdir$ac_delim 18939infodir!$infodir$ac_delim 18940htmldir!$htmldir$ac_delim 18941dvidir!$dvidir$ac_delim 18942pdfdir!$pdfdir$ac_delim 18943psdir!$psdir$ac_delim 18944libdir!$libdir$ac_delim 18945localedir!$localedir$ac_delim 18946mandir!$mandir$ac_delim 18947DEFS!$DEFS$ac_delim 18948ECHO_C!$ECHO_C$ac_delim 18949ECHO_N!$ECHO_N$ac_delim 18950ECHO_T!$ECHO_T$ac_delim 18951LIBS!$LIBS$ac_delim 18952build_alias!$build_alias$ac_delim 18953host_alias!$host_alias$ac_delim 18954target_alias!$target_alias$ac_delim 18955CYGPATH!$CYGPATH$ac_delim 18956EXEEXT!$EXEEXT$ac_delim 18957PKG_LIB_FILE!$PKG_LIB_FILE$ac_delim 18958PKG_STUB_LIB_FILE!$PKG_STUB_LIB_FILE$ac_delim 18959PKG_STUB_SOURCES!$PKG_STUB_SOURCES$ac_delim 18960PKG_STUB_OBJECTS!$PKG_STUB_OBJECTS$ac_delim 18961PKG_TCL_SOURCES!$PKG_TCL_SOURCES$ac_delim 18962PKG_HEADERS!$PKG_HEADERS$ac_delim 18963PKG_INCLUDES!$PKG_INCLUDES$ac_delim 18964PKG_LIBS!$PKG_LIBS$ac_delim 18965PKG_CFLAGS!$PKG_CFLAGS$ac_delim 18966CONFIG_CLEAN_FILES!$CONFIG_CLEAN_FILES$ac_delim 18967TCL_VERSION!$TCL_VERSION$ac_delim 18968TCL_PATCH_LEVEL!$TCL_PATCH_LEVEL$ac_delim 18969TCL_BIN_DIR!$TCL_BIN_DIR$ac_delim 18970TCL_SRC_DIR!$TCL_SRC_DIR$ac_delim 18971TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim 18972TCL_LIB_FLAG!$TCL_LIB_FLAG$ac_delim 18973TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim 18974TCL_STUB_LIB_FILE!$TCL_STUB_LIB_FILE$ac_delim 18975TCL_STUB_LIB_FLAG!$TCL_STUB_LIB_FLAG$ac_delim 18976TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim 18977CLEANFILES!$CLEANFILES$ac_delim 18978TCL_LIBS!$TCL_LIBS$ac_delim 18979TCL_DEFS!$TCL_DEFS$ac_delim 18980TCL_EXTRA_CFLAGS!$TCL_EXTRA_CFLAGS$ac_delim 18981TCL_LD_FLAGS!$TCL_LD_FLAGS$ac_delim 18982TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim 18983CC!$CC$ac_delim 18984CFLAGS!$CFLAGS$ac_delim 18985LDFLAGS!$LDFLAGS$ac_delim 18986CPPFLAGS!$CPPFLAGS$ac_delim 18987ac_ct_CC!$ac_ct_CC$ac_delim 18988OBJEXT!$OBJEXT$ac_delim 18989CPP!$CPP$ac_delim 18990INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 18991INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 18992INSTALL_DATA!$INSTALL_DATA$ac_delim 18993SET_MAKE!$SET_MAKE$ac_delim 18994RANLIB!$RANLIB$ac_delim 18995GREP!$GREP$ac_delim 18996EGREP!$EGREP$ac_delim 18997MATH_LIBS!$MATH_LIBS$ac_delim 18998PKG_SOURCES!$PKG_SOURCES$ac_delim 18999PKG_OBJECTS!$PKG_OBJECTS$ac_delim 19000TCL_INCLUDES!$TCL_INCLUDES$ac_delim 19001TCL_TOP_DIR_NATIVE!$TCL_TOP_DIR_NATIVE$ac_delim 19002FFIDL_TEST!$FFIDL_TEST$ac_delim 19003build!$build$ac_delim 19004build_cpu!$build_cpu$ac_delim 19005build_vendor!$build_vendor$ac_delim 19006build_os!$build_os$ac_delim 19007host!$host$ac_delim 19008host_cpu!$host_cpu$ac_delim 19009host_vendor!$host_vendor$ac_delim 19010host_os!$host_os$ac_delim 19011TCL_THREADS!$TCL_THREADS$ac_delim 19012SHARED_BUILD!$SHARED_BUILD$ac_delim 19013AR!$AR$ac_delim 19014CELIB_DIR!$CELIB_DIR$ac_delim 19015_ACEOF 19016 19017 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 19018 break 19019 elif $ac_last_try; then 19020 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 19021echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 19022 { (exit 1); exit 1; }; } 19023 else 19024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19025 fi 19026done 19027 19028ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 19029if test -n "$ac_eof"; then 19030 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 19031 ac_eof=`expr $ac_eof + 1` 19032fi 19033 19034cat >>$CONFIG_STATUS <<_ACEOF 19035cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 19036/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19037_ACEOF 19038sed ' 19039s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 19040s/^/s,@/; s/!/@,|#_!!_#|/ 19041:n 19042t n 19043s/'"$ac_delim"'$/,g/; t 19044s/$/\\/; p 19045N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 19046' >>$CONFIG_STATUS <conf$$subs.sed 19047rm -f conf$$subs.sed 19048cat >>$CONFIG_STATUS <<_ACEOF 19049CEOF$ac_eof 19050_ACEOF 19051 19052 19053ac_delim='%!_!# ' 19054for ac_last_try in false false false false false :; do 19055 cat >conf$$subs.sed <<_ACEOF 19056CFLAGS_DEBUG!$CFLAGS_DEBUG$ac_delim 19057CFLAGS_OPTIMIZE!$CFLAGS_OPTIMIZE$ac_delim 19058CFLAGS_WARNING!$CFLAGS_WARNING$ac_delim 19059STLIB_LD!$STLIB_LD$ac_delim 19060SHLIB_LD!$SHLIB_LD$ac_delim 19061SHLIB_LD_LIBS!$SHLIB_LD_LIBS$ac_delim 19062SHLIB_CFLAGS!$SHLIB_CFLAGS$ac_delim 19063LD_LIBRARY_PATH_VAR!$LD_LIBRARY_PATH_VAR$ac_delim 19064CFLAGS_DEFAULT!$CFLAGS_DEFAULT$ac_delim 19065LDFLAGS_DEFAULT!$LDFLAGS_DEFAULT$ac_delim 19066TCL_DBGX!$TCL_DBGX$ac_delim 19067MAKE_LIB!$MAKE_LIB$ac_delim 19068MAKE_SHARED_LIB!$MAKE_SHARED_LIB$ac_delim 19069MAKE_STATIC_LIB!$MAKE_STATIC_LIB$ac_delim 19070MAKE_STUB_LIB!$MAKE_STUB_LIB$ac_delim 19071RANLIB_STUB!$RANLIB_STUB$ac_delim 19072VC_MANIFEST_EMBED_DLL!$VC_MANIFEST_EMBED_DLL$ac_delim 19073VC_MANIFEST_EMBED_EXE!$VC_MANIFEST_EMBED_EXE$ac_delim 19074TCLSH_PROG!$TCLSH_PROG$ac_delim 19075LIBOBJS!$LIBOBJS$ac_delim 19076LTLIBOBJS!$LTLIBOBJS$ac_delim 19077_ACEOF 19078 19079 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then 19080 break 19081 elif $ac_last_try; then 19082 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 19083echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 19084 { (exit 1); exit 1; }; } 19085 else 19086 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19087 fi 19088done 19089 19090ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 19091if test -n "$ac_eof"; then 19092 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 19093 ac_eof=`expr $ac_eof + 1` 19094fi 19095 19096cat >>$CONFIG_STATUS <<_ACEOF 19097cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof 19098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 19099_ACEOF 19100sed ' 19101s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 19102s/^/s,@/; s/!/@,|#_!!_#|/ 19103:n 19104t n 19105s/'"$ac_delim"'$/,g/; t 19106s/$/\\/; p 19107N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 19108' >>$CONFIG_STATUS <conf$$subs.sed 19109rm -f conf$$subs.sed 19110cat >>$CONFIG_STATUS <<_ACEOF 19111:end 19112s/|#_!!_#|//g 19113CEOF$ac_eof 19114_ACEOF 19115 19116 19117# VPATH may cause trouble with some makes, so we remove $(srcdir), 19118# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19119# trailing colons and then remove the whole line if VPATH becomes empty 19120# (actually we leave an empty line to preserve line numbers). 19121if test "x$srcdir" = x.; then 19122 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19123s/:*\$(srcdir):*/:/ 19124s/:*\${srcdir}:*/:/ 19125s/:*@srcdir@:*/:/ 19126s/^\([^=]*=[ ]*\):*/\1/ 19127s/:*$// 19128s/^[^=]*=[ ]*$// 19129}' 19130fi 19131 19132cat >>$CONFIG_STATUS <<\_ACEOF 19133fi # test -n "$CONFIG_FILES" 19134 19135 19136for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 19137do 19138 case $ac_tag in 19139 :[FHLC]) ac_mode=$ac_tag; continue;; 19140 esac 19141 case $ac_mode$ac_tag in 19142 :[FHL]*:*);; 19143 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 19144echo "$as_me: error: Invalid tag $ac_tag." >&2;} 19145 { (exit 1); exit 1; }; };; 19146 :[FH]-) ac_tag=-:-;; 19147 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19148 esac 19149 ac_save_IFS=$IFS 19150 IFS=: 19151 set x $ac_tag 19152 IFS=$ac_save_IFS 19153 shift 19154 ac_file=$1 19155 shift 19156 19157 case $ac_mode in 19158 :L) ac_source=$1;; 19159 :[FH]) 19160 ac_file_inputs= 19161 for ac_f 19162 do 19163 case $ac_f in 19164 -) ac_f="$tmp/stdin";; 19165 *) # Look for the file first in the build tree, then in the source tree 19166 # (if the path is not absolute). The absolute path cannot be DOS-style, 19167 # because $ac_f cannot contain `:'. 19168 test -f "$ac_f" || 19169 case $ac_f in 19170 [\\/$]*) false;; 19171 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19172 esac || 19173 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 19174echo "$as_me: error: cannot find input file: $ac_f" >&2;} 19175 { (exit 1); exit 1; }; };; 19176 esac 19177 ac_file_inputs="$ac_file_inputs $ac_f" 19178 done 19179 19180 # Let's still pretend it is `configure' which instantiates (i.e., don't 19181 # use $as_me), people would be surprised to read: 19182 # /* config.h. Generated by config.status. */ 19183 configure_input="Generated from "`IFS=: 19184 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 19185 if test x"$ac_file" != x-; then 19186 configure_input="$ac_file. $configure_input" 19187 { echo "$as_me:$LINENO: creating $ac_file" >&5 19188echo "$as_me: creating $ac_file" >&6;} 19189 fi 19190 19191 case $ac_tag in 19192 *:-:* | *:-) cat >"$tmp/stdin";; 19193 esac 19194 ;; 19195 esac 19196 19197 ac_dir=`$as_dirname -- "$ac_file" || 19198$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19199 X"$ac_file" : 'X\(//\)[^/]' \| \ 19200 X"$ac_file" : 'X\(//\)$' \| \ 19201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19202echo X"$ac_file" | 19203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19204 s//\1/ 19205 q 19206 } 19207 /^X\(\/\/\)[^/].*/{ 19208 s//\1/ 19209 q 19210 } 19211 /^X\(\/\/\)$/{ 19212 s//\1/ 19213 q 19214 } 19215 /^X\(\/\).*/{ 19216 s//\1/ 19217 q 19218 } 19219 s/.*/./; q'` 19220 { as_dir="$ac_dir" 19221 case $as_dir in #( 19222 -*) as_dir=./$as_dir;; 19223 esac 19224 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 19225 as_dirs= 19226 while :; do 19227 case $as_dir in #( 19228 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 19229 *) as_qdir=$as_dir;; 19230 esac 19231 as_dirs="'$as_qdir' $as_dirs" 19232 as_dir=`$as_dirname -- "$as_dir" || 19233$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19234 X"$as_dir" : 'X\(//\)[^/]' \| \ 19235 X"$as_dir" : 'X\(//\)$' \| \ 19236 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19237echo X"$as_dir" | 19238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19239 s//\1/ 19240 q 19241 } 19242 /^X\(\/\/\)[^/].*/{ 19243 s//\1/ 19244 q 19245 } 19246 /^X\(\/\/\)$/{ 19247 s//\1/ 19248 q 19249 } 19250 /^X\(\/\).*/{ 19251 s//\1/ 19252 q 19253 } 19254 s/.*/./; q'` 19255 test -d "$as_dir" && break 19256 done 19257 test -z "$as_dirs" || eval "mkdir $as_dirs" 19258 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 19259echo "$as_me: error: cannot create directory $as_dir" >&2;} 19260 { (exit 1); exit 1; }; }; } 19261 ac_builddir=. 19262 19263case "$ac_dir" in 19264.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19265*) 19266 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 19267 # A ".." for each directory in $ac_dir_suffix. 19268 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 19269 case $ac_top_builddir_sub in 19270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19272 esac ;; 19273esac 19274ac_abs_top_builddir=$ac_pwd 19275ac_abs_builddir=$ac_pwd$ac_dir_suffix 19276# for backward compatibility: 19277ac_top_builddir=$ac_top_build_prefix 19278 19279case $srcdir in 19280 .) # We are building in place. 19281 ac_srcdir=. 19282 ac_top_srcdir=$ac_top_builddir_sub 19283 ac_abs_top_srcdir=$ac_pwd ;; 19284 [\\/]* | ?:[\\/]* ) # Absolute name. 19285 ac_srcdir=$srcdir$ac_dir_suffix; 19286 ac_top_srcdir=$srcdir 19287 ac_abs_top_srcdir=$srcdir ;; 19288 *) # Relative name. 19289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19290 ac_top_srcdir=$ac_top_build_prefix$srcdir 19291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19292esac 19293ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19294 19295 19296 case $ac_mode in 19297 :F) 19298 # 19299 # CONFIG_FILE 19300 # 19301 19302 case $INSTALL in 19303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19304 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19305 esac 19306_ACEOF 19307 19308cat >>$CONFIG_STATUS <<\_ACEOF 19309# If the template does not know about datarootdir, expand it. 19310# FIXME: This hack should be removed a few years after 2.60. 19311ac_datarootdir_hack=; ac_datarootdir_seen= 19312 19313case `sed -n '/datarootdir/ { 19314 p 19315 q 19316} 19317/@datadir@/p 19318/@docdir@/p 19319/@infodir@/p 19320/@localedir@/p 19321/@mandir@/p 19322' $ac_file_inputs` in 19323*datarootdir*) ac_datarootdir_seen=yes;; 19324*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19325 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19326echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19327_ACEOF 19328cat >>$CONFIG_STATUS <<_ACEOF 19329 ac_datarootdir_hack=' 19330 s&@datadir@&$datadir&g 19331 s&@docdir@&$docdir&g 19332 s&@infodir@&$infodir&g 19333 s&@localedir@&$localedir&g 19334 s&@mandir@&$mandir&g 19335 s&\\\${datarootdir}&$datarootdir&g' ;; 19336esac 19337_ACEOF 19338 19339# Neutralize VPATH when `$srcdir' = `.'. 19340# Shell code in configure.ac might set extrasub. 19341# FIXME: do we really want to maintain this feature? 19342cat >>$CONFIG_STATUS <<_ACEOF 19343 sed "$ac_vpsub 19344$extrasub 19345_ACEOF 19346cat >>$CONFIG_STATUS <<\_ACEOF 19347:t 19348/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19349s&@configure_input@&$configure_input&;t t 19350s&@top_builddir@&$ac_top_builddir_sub&;t t 19351s&@srcdir@&$ac_srcdir&;t t 19352s&@abs_srcdir@&$ac_abs_srcdir&;t t 19353s&@top_srcdir@&$ac_top_srcdir&;t t 19354s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19355s&@builddir@&$ac_builddir&;t t 19356s&@abs_builddir@&$ac_abs_builddir&;t t 19357s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19358s&@INSTALL@&$ac_INSTALL&;t t 19359$ac_datarootdir_hack 19360" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 19361 19362test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19363 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 19364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 19365 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19366which seems to be undefined. Please make sure it is defined." >&5 19367echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19368which seems to be undefined. Please make sure it is defined." >&2;} 19369 19370 rm -f "$tmp/stdin" 19371 case $ac_file in 19372 -) cat "$tmp/out"; rm -f "$tmp/out";; 19373 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 19374 esac 19375 ;; 19376 :H) 19377 # 19378 # CONFIG_HEADER 19379 # 19380_ACEOF 19381 19382# Transform confdefs.h into a sed script `conftest.defines', that 19383# substitutes the proper values into config.h.in to produce config.h. 19384rm -f conftest.defines conftest.tail 19385# First, append a space to every undef/define line, to ease matching. 19386echo 's/$/ /' >conftest.defines 19387# Then, protect against being on the right side of a sed subst, or in 19388# an unquoted here document, in config.status. If some macros were 19389# called several times there might be several #defines for the same 19390# symbol, which is useless. But do not sort them, since the last 19391# AC_DEFINE must be honored. 19392ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19393# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 19394# NAME is the cpp macro being defined, VALUE is the value it is being given. 19395# PARAMS is the parameter list in the macro definition--in most cases, it's 19396# just an empty string. 19397ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 19398ac_dB='\\)[ (].*,\\1define\\2' 19399ac_dC=' ' 19400ac_dD=' ,' 19401 19402uniq confdefs.h | 19403 sed -n ' 19404 t rset 19405 :rset 19406 s/^[ ]*#[ ]*define[ ][ ]*// 19407 t ok 19408 d 19409 :ok 19410 s/[\\&,]/\\&/g 19411 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 19412 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 19413 ' >>conftest.defines 19414 19415# Remove the space that was appended to ease matching. 19416# Then replace #undef with comments. This is necessary, for 19417# example, in the case of _POSIX_SOURCE, which is predefined and required 19418# on some systems where configure will not decide to define it. 19419# (The regexp can be short, since the line contains either #define or #undef.) 19420echo 's/ $// 19421s,^[ #]*u.*,/* & */,' >>conftest.defines 19422 19423# Break up conftest.defines: 19424ac_max_sed_lines=50 19425 19426# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 19427# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 19428# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 19429# et cetera. 19430ac_in='$ac_file_inputs' 19431ac_out='"$tmp/out1"' 19432ac_nxt='"$tmp/out2"' 19433 19434while : 19435do 19436 # Write a here document: 19437 cat >>$CONFIG_STATUS <<_ACEOF 19438 # First, check the format of the line: 19439 cat >"\$tmp/defines.sed" <<\\CEOF 19440/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*/b def 19441/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 19442b 19443:def 19444_ACEOF 19445 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 19446 echo 'CEOF 19447 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 19448 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 19449 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 19450 grep . conftest.tail >/dev/null || break 19451 rm -f conftest.defines 19452 mv conftest.tail conftest.defines 19453done 19454rm -f conftest.defines conftest.tail 19455 19456echo "ac_result=$ac_in" >>$CONFIG_STATUS 19457cat >>$CONFIG_STATUS <<\_ACEOF 19458 if test x"$ac_file" != x-; then 19459 echo "/* $configure_input */" >"$tmp/config.h" 19460 cat "$ac_result" >>"$tmp/config.h" 19461 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 19462 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 19463echo "$as_me: $ac_file is unchanged" >&6;} 19464 else 19465 rm -f $ac_file 19466 mv "$tmp/config.h" $ac_file 19467 fi 19468 else 19469 echo "/* $configure_input */" 19470 cat "$ac_result" 19471 fi 19472 rm -f "$tmp/out12" 19473 ;; 19474 19475 19476 esac 19477 19478done # for ac_tag 19479 19480 19481{ (exit 0); exit 0; } 19482_ACEOF 19483chmod +x $CONFIG_STATUS 19484ac_clean_files=$ac_clean_files_save 19485 19486 19487# configure is writing to config.log, and then calls config.status. 19488# config.status does its own redirection, appending to config.log. 19489# Unfortunately, on DOS this fails, as config.log is still kept open 19490# by configure, so config.status won't be able to write to it; its 19491# output is simply discarded. So we exec the FD to /dev/null, 19492# effectively closing config.log, so it can be properly (re)opened and 19493# appended to by config.status. When coming back to configure, we 19494# need to make the FD available again. 19495if test "$no_create" != yes; then 19496 ac_cs_success=: 19497 ac_config_status_args= 19498 test "$silent" = yes && 19499 ac_config_status_args="$ac_config_status_args --quiet" 19500 exec 5>/dev/null 19501 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19502 exec 5>>config.log 19503 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19504 # would make configure fail if this is the last instruction. 19505 $ac_cs_success || { (exit 1); exit 1; } 19506fi 19507 19508