1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.61. 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= 574PACKAGE_TARNAME= 575PACKAGE_VERSION= 576PACKAGE_STRING= 577PACKAGE_BUGREPORT= 578 579ac_unique_file="src/grace-module.c" 580ac_default_prefix=/usr/local 581# Factoring default headers for most tests. 582ac_includes_default="\ 583#include <stdio.h> 584#ifdef HAVE_SYS_TYPES_H 585# include <sys/types.h> 586#endif 587#ifdef HAVE_SYS_STAT_H 588# include <sys/stat.h> 589#endif 590#ifdef STDC_HEADERS 591# include <stdlib.h> 592# include <stddef.h> 593#else 594# ifdef HAVE_STDLIB_H 595# include <stdlib.h> 596# endif 597#endif 598#ifdef HAVE_STRING_H 599# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 600# include <memory.h> 601# endif 602# include <string.h> 603#endif 604#ifdef HAVE_STRINGS_H 605# include <strings.h> 606#endif 607#ifdef HAVE_INTTYPES_H 608# include <inttypes.h> 609#endif 610#ifdef HAVE_STDINT_H 611# include <stdint.h> 612#endif 613#ifdef HAVE_UNISTD_H 614# include <unistd.h> 615#endif" 616 617ac_subst_vars='RPATH 618SHELL 619PATH_SEPARATOR 620PACKAGE_NAME 621PACKAGE_TARNAME 622PACKAGE_VERSION 623PACKAGE_STRING 624PACKAGE_BUGREPORT 625exec_prefix 626prefix 627program_transform_name 628bindir 629sbindir 630libexecdir 631datarootdir 632datadir 633sysconfdir 634sharedstatedir 635localstatedir 636includedir 637oldincludedir 638docdir 639infodir 640htmldir 641dvidir 642pdfdir 643psdir 644libdir 645localedir 646mandir 647DEFS 648ECHO_C 649ECHO_N 650ECHO_T 651LIBS 652build_alias 653host_alias 654target_alias 655build 656build_cpu 657build_vendor 658build_os 659host 660host_cpu 661host_vendor 662host_os 663RANLIB 664INSTALL_PROGRAM 665INSTALL_SCRIPT 666INSTALL_DATA 667SET_MAKE 668CONFIG_DIR 669CC 670CFLAGS 671LDFLAGS 672CPPFLAGS 673ac_ct_CC 674EXEEXT 675OBJEXT 676CPP 677GREP 678EGREP 679DYNAMIC_LINK_LIB 680ELF_CC 681ELF_CFLAGS 682ELF_LINK 683ELF_LINK_CMD 684ELF_DEP_LIBS 685DYNAMIC_LINK_FLAGS 686CC_SHARED 687ELFLIB 688ELFLIB_MAJOR 689ELFLIB_MAJOR_MINOR 690ELFLIB_MAJOR_MINOR_MICRO 691SLANG_LIB_FOR_MODULES 692DLL_IMPLIB_NAME 693INSTALL_MODULE 694INSTALL_ELFLIB_TARGET 695ELFLIB_BUILD_NAME 696SLANG_DLL_CFLAGS 697XMKMF 698X_CFLAGS 699X_PRE_LIBS 700X_LIBS 701X_EXTRA_LIBS 702SLANG_LIB 703SLANG_INC 704slang_version 705slang_major_version 706slang_minor_version 707slang_patchlevel_version 708MODULE_INSTALL_DIR 709SL_FILES_INSTALL_DIR 710LIBOBJS 711LTLIBOBJS' 712ac_subst_files='' 713 ac_precious_vars='build_alias 714host_alias 715target_alias 716CC 717CFLAGS 718LDFLAGS 719LIBS 720CPPFLAGS 721CPP 722XMKMF' 723 724 725# Initialize some variables set by options. 726ac_init_help= 727ac_init_version=false 728# The variables have the same names as the options, with 729# dashes changed to underlines. 730cache_file=/dev/null 731exec_prefix=NONE 732no_create= 733no_recursion= 734prefix=NONE 735program_prefix=NONE 736program_suffix=NONE 737program_transform_name=s,x,x, 738silent= 739site= 740srcdir= 741verbose= 742x_includes=NONE 743x_libraries=NONE 744 745# Installation directory options. 746# These are left unexpanded so users can "make install exec_prefix=/foo" 747# and all the variables that are supposed to be based on exec_prefix 748# by default will actually change. 749# Use braces instead of parens because sh, perl, etc. also accept them. 750# (The list follows the same order as the GNU Coding Standards.) 751bindir='${exec_prefix}/bin' 752sbindir='${exec_prefix}/sbin' 753libexecdir='${exec_prefix}/libexec' 754datarootdir='${prefix}/share' 755datadir='${datarootdir}' 756sysconfdir='${prefix}/etc' 757sharedstatedir='${prefix}/com' 758localstatedir='${prefix}/var' 759includedir='${prefix}/include' 760oldincludedir='/usr/include' 761docdir='${datarootdir}/doc/${PACKAGE}' 762infodir='${datarootdir}/info' 763htmldir='${docdir}' 764dvidir='${docdir}' 765pdfdir='${docdir}' 766psdir='${docdir}' 767libdir='${exec_prefix}/lib' 768localedir='${datarootdir}/locale' 769mandir='${datarootdir}/man' 770 771ac_prev= 772ac_dashdash= 773for ac_option 774do 775 # If the previous option needs an argument, assign it. 776 if test -n "$ac_prev"; then 777 eval $ac_prev=\$ac_option 778 ac_prev= 779 continue 780 fi 781 782 case $ac_option in 783 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 784 *) ac_optarg=yes ;; 785 esac 786 787 # Accept the important Cygnus configure options, so we can diagnose typos. 788 789 case $ac_dashdash$ac_option in 790 --) 791 ac_dashdash=yes ;; 792 793 -bindir | --bindir | --bindi | --bind | --bin | --bi) 794 ac_prev=bindir ;; 795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 796 bindir=$ac_optarg ;; 797 798 -build | --build | --buil | --bui | --bu) 799 ac_prev=build_alias ;; 800 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 801 build_alias=$ac_optarg ;; 802 803 -cache-file | --cache-file | --cache-fil | --cache-fi \ 804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 805 ac_prev=cache_file ;; 806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 808 cache_file=$ac_optarg ;; 809 810 --config-cache | -C) 811 cache_file=config.cache ;; 812 813 -datadir | --datadir | --datadi | --datad) 814 ac_prev=datadir ;; 815 -datadir=* | --datadir=* | --datadi=* | --datad=*) 816 datadir=$ac_optarg ;; 817 818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 819 | --dataroo | --dataro | --datar) 820 ac_prev=datarootdir ;; 821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 823 datarootdir=$ac_optarg ;; 824 825 -disable-* | --disable-*) 826 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 827 # Reject names that are not valid shell variable names. 828 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 829 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 830 { (exit 1); exit 1; }; } 831 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 832 eval enable_$ac_feature=no ;; 833 834 -docdir | --docdir | --docdi | --doc | --do) 835 ac_prev=docdir ;; 836 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 837 docdir=$ac_optarg ;; 838 839 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 840 ac_prev=dvidir ;; 841 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 842 dvidir=$ac_optarg ;; 843 844 -enable-* | --enable-*) 845 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 846 # Reject names that are not valid shell variable names. 847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 849 { (exit 1); exit 1; }; } 850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 851 eval enable_$ac_feature=\$ac_optarg ;; 852 853 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 854 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 855 | --exec | --exe | --ex) 856 ac_prev=exec_prefix ;; 857 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 858 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 859 | --exec=* | --exe=* | --ex=*) 860 exec_prefix=$ac_optarg ;; 861 862 -gas | --gas | --ga | --g) 863 # Obsolete; use --with-gas. 864 with_gas=yes ;; 865 866 -help | --help | --hel | --he | -h) 867 ac_init_help=long ;; 868 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 869 ac_init_help=recursive ;; 870 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 871 ac_init_help=short ;; 872 873 -host | --host | --hos | --ho) 874 ac_prev=host_alias ;; 875 -host=* | --host=* | --hos=* | --ho=*) 876 host_alias=$ac_optarg ;; 877 878 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 879 ac_prev=htmldir ;; 880 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 881 | --ht=*) 882 htmldir=$ac_optarg ;; 883 884 -includedir | --includedir | --includedi | --included | --include \ 885 | --includ | --inclu | --incl | --inc) 886 ac_prev=includedir ;; 887 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 888 | --includ=* | --inclu=* | --incl=* | --inc=*) 889 includedir=$ac_optarg ;; 890 891 -infodir | --infodir | --infodi | --infod | --info | --inf) 892 ac_prev=infodir ;; 893 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 894 infodir=$ac_optarg ;; 895 896 -libdir | --libdir | --libdi | --libd) 897 ac_prev=libdir ;; 898 -libdir=* | --libdir=* | --libdi=* | --libd=*) 899 libdir=$ac_optarg ;; 900 901 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 902 | --libexe | --libex | --libe) 903 ac_prev=libexecdir ;; 904 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 905 | --libexe=* | --libex=* | --libe=*) 906 libexecdir=$ac_optarg ;; 907 908 -localedir | --localedir | --localedi | --localed | --locale) 909 ac_prev=localedir ;; 910 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 911 localedir=$ac_optarg ;; 912 913 -localstatedir | --localstatedir | --localstatedi | --localstated \ 914 | --localstate | --localstat | --localsta | --localst | --locals) 915 ac_prev=localstatedir ;; 916 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 917 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 918 localstatedir=$ac_optarg ;; 919 920 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 921 ac_prev=mandir ;; 922 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 923 mandir=$ac_optarg ;; 924 925 -nfp | --nfp | --nf) 926 # Obsolete; use --without-fp. 927 with_fp=no ;; 928 929 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 930 | --no-cr | --no-c | -n) 931 no_create=yes ;; 932 933 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 934 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 935 no_recursion=yes ;; 936 937 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 938 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 939 | --oldin | --oldi | --old | --ol | --o) 940 ac_prev=oldincludedir ;; 941 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 942 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 943 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 944 oldincludedir=$ac_optarg ;; 945 946 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 947 ac_prev=prefix ;; 948 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 949 prefix=$ac_optarg ;; 950 951 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 952 | --program-pre | --program-pr | --program-p) 953 ac_prev=program_prefix ;; 954 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 955 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 956 program_prefix=$ac_optarg ;; 957 958 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 959 | --program-suf | --program-su | --program-s) 960 ac_prev=program_suffix ;; 961 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 962 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 963 program_suffix=$ac_optarg ;; 964 965 -program-transform-name | --program-transform-name \ 966 | --program-transform-nam | --program-transform-na \ 967 | --program-transform-n | --program-transform- \ 968 | --program-transform | --program-transfor \ 969 | --program-transfo | --program-transf \ 970 | --program-trans | --program-tran \ 971 | --progr-tra | --program-tr | --program-t) 972 ac_prev=program_transform_name ;; 973 -program-transform-name=* | --program-transform-name=* \ 974 | --program-transform-nam=* | --program-transform-na=* \ 975 | --program-transform-n=* | --program-transform-=* \ 976 | --program-transform=* | --program-transfor=* \ 977 | --program-transfo=* | --program-transf=* \ 978 | --program-trans=* | --program-tran=* \ 979 | --progr-tra=* | --program-tr=* | --program-t=*) 980 program_transform_name=$ac_optarg ;; 981 982 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 983 ac_prev=pdfdir ;; 984 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 985 pdfdir=$ac_optarg ;; 986 987 -psdir | --psdir | --psdi | --psd | --ps) 988 ac_prev=psdir ;; 989 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 990 psdir=$ac_optarg ;; 991 992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 993 | -silent | --silent | --silen | --sile | --sil) 994 silent=yes ;; 995 996 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 997 ac_prev=sbindir ;; 998 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 999 | --sbi=* | --sb=*) 1000 sbindir=$ac_optarg ;; 1001 1002 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1003 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1004 | --sharedst | --shareds | --shared | --share | --shar \ 1005 | --sha | --sh) 1006 ac_prev=sharedstatedir ;; 1007 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1008 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1009 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1010 | --sha=* | --sh=*) 1011 sharedstatedir=$ac_optarg ;; 1012 1013 -site | --site | --sit) 1014 ac_prev=site ;; 1015 -site=* | --site=* | --sit=*) 1016 site=$ac_optarg ;; 1017 1018 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1019 ac_prev=srcdir ;; 1020 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1021 srcdir=$ac_optarg ;; 1022 1023 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1024 | --syscon | --sysco | --sysc | --sys | --sy) 1025 ac_prev=sysconfdir ;; 1026 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1027 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1028 sysconfdir=$ac_optarg ;; 1029 1030 -target | --target | --targe | --targ | --tar | --ta | --t) 1031 ac_prev=target_alias ;; 1032 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1033 target_alias=$ac_optarg ;; 1034 1035 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1036 verbose=yes ;; 1037 1038 -version | --version | --versio | --versi | --vers | -V) 1039 ac_init_version=: ;; 1040 1041 -with-* | --with-*) 1042 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1043 # Reject names that are not valid shell variable names. 1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1045 { echo "$as_me: error: invalid package name: $ac_package" >&2 1046 { (exit 1); exit 1; }; } 1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1048 eval with_$ac_package=\$ac_optarg ;; 1049 1050 -without-* | --without-*) 1051 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1052 # Reject names that are not valid shell variable names. 1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1054 { echo "$as_me: error: invalid package name: $ac_package" >&2 1055 { (exit 1); exit 1; }; } 1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1057 eval with_$ac_package=no ;; 1058 1059 --x) 1060 # Obsolete; use --with-x. 1061 with_x=yes ;; 1062 1063 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1064 | --x-incl | --x-inc | --x-in | --x-i) 1065 ac_prev=x_includes ;; 1066 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1067 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1068 x_includes=$ac_optarg ;; 1069 1070 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1071 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1072 ac_prev=x_libraries ;; 1073 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1074 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1075 x_libraries=$ac_optarg ;; 1076 1077 -*) { echo "$as_me: error: unrecognized option: $ac_option 1078Try \`$0 --help' for more information." >&2 1079 { (exit 1); exit 1; }; } 1080 ;; 1081 1082 *=*) 1083 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1084 # Reject names that are not valid shell variable names. 1085 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1086 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1087 { (exit 1); exit 1; }; } 1088 eval $ac_envvar=\$ac_optarg 1089 export $ac_envvar ;; 1090 1091 *) 1092 # FIXME: should be removed in autoconf 3.0. 1093 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1094 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1095 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1096 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1097 ;; 1098 1099 esac 1100done 1101 1102if test -n "$ac_prev"; then 1103 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1104 { echo "$as_me: error: missing argument to $ac_option" >&2 1105 { (exit 1); exit 1; }; } 1106fi 1107 1108# Be sure to have absolute directory names. 1109for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1110 datadir sysconfdir sharedstatedir localstatedir includedir \ 1111 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1112 libdir localedir mandir 1113do 1114 eval ac_val=\$$ac_var 1115 case $ac_val in 1116 [\\/$]* | ?:[\\/]* ) continue;; 1117 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1118 esac 1119 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1120 { (exit 1); exit 1; }; } 1121done 1122 1123# There might be people who depend on the old broken behavior: `$host' 1124# used to hold the argument of --host etc. 1125# FIXME: To remove some day. 1126build=$build_alias 1127host=$host_alias 1128target=$target_alias 1129 1130# FIXME: To remove some day. 1131if test "x$host_alias" != x; then 1132 if test "x$build_alias" = x; then 1133 cross_compiling=maybe 1134 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1135 If a cross compiler is detected then cross compile mode will be used." >&2 1136 elif test "x$build_alias" != "x$host_alias"; then 1137 cross_compiling=yes 1138 fi 1139fi 1140 1141ac_tool_prefix= 1142test -n "$host_alias" && ac_tool_prefix=$host_alias- 1143 1144test "$silent" = yes && exec 6>/dev/null 1145 1146 1147ac_pwd=`pwd` && test -n "$ac_pwd" && 1148ac_ls_di=`ls -di .` && 1149ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1150 { echo "$as_me: error: Working directory cannot be determined" >&2 1151 { (exit 1); exit 1; }; } 1152test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1153 { echo "$as_me: error: pwd does not report name of working directory" >&2 1154 { (exit 1); exit 1; }; } 1155 1156 1157# Find the source files, if location was not specified. 1158if test -z "$srcdir"; then 1159 ac_srcdir_defaulted=yes 1160 # Try the directory containing this script, then the parent directory. 1161 ac_confdir=`$as_dirname -- "$0" || 1162$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1163 X"$0" : 'X\(//\)[^/]' \| \ 1164 X"$0" : 'X\(//\)$' \| \ 1165 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1166echo X"$0" | 1167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1168 s//\1/ 1169 q 1170 } 1171 /^X\(\/\/\)[^/].*/{ 1172 s//\1/ 1173 q 1174 } 1175 /^X\(\/\/\)$/{ 1176 s//\1/ 1177 q 1178 } 1179 /^X\(\/\).*/{ 1180 s//\1/ 1181 q 1182 } 1183 s/.*/./; q'` 1184 srcdir=$ac_confdir 1185 if test ! -r "$srcdir/$ac_unique_file"; then 1186 srcdir=.. 1187 fi 1188else 1189 ac_srcdir_defaulted=no 1190fi 1191if test ! -r "$srcdir/$ac_unique_file"; then 1192 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1193 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1194 { (exit 1); exit 1; }; } 1195fi 1196ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1197ac_abs_confdir=`( 1198 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1199 { (exit 1); exit 1; }; } 1200 pwd)` 1201# When building in place, set srcdir=. 1202if test "$ac_abs_confdir" = "$ac_pwd"; then 1203 srcdir=. 1204fi 1205# Remove unnecessary trailing slashes from srcdir. 1206# Double slashes in file names in object file debugging info 1207# mess up M-x gdb in Emacs. 1208case $srcdir in 1209*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1210esac 1211for ac_var in $ac_precious_vars; do 1212 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1213 eval ac_env_${ac_var}_value=\$${ac_var} 1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1215 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1216done 1217 1218# 1219# Report the --help message. 1220# 1221if test "$ac_init_help" = "long"; then 1222 # Omit some internal or obsolete options to make the list less imposing. 1223 # This message is too long to be a string in the A/UX 3.1 sh. 1224 cat <<_ACEOF 1225\`configure' configures this package to adapt to many kinds of systems. 1226 1227Usage: $0 [OPTION]... [VAR=VALUE]... 1228 1229To assign environment variables (e.g., CC, CFLAGS...), specify them as 1230VAR=VALUE. See below for descriptions of some of the useful variables. 1231 1232Defaults for the options are specified in brackets. 1233 1234Configuration: 1235 -h, --help display this help and exit 1236 --help=short display options specific to this package 1237 --help=recursive display the short help of all the included packages 1238 -V, --version display version information and exit 1239 -q, --quiet, --silent do not print \`checking...' messages 1240 --cache-file=FILE cache test results in FILE [disabled] 1241 -C, --config-cache alias for \`--cache-file=config.cache' 1242 -n, --no-create do not create output files 1243 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1244 1245Installation directories: 1246 --prefix=PREFIX install architecture-independent files in PREFIX 1247 [$ac_default_prefix] 1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1249 [PREFIX] 1250 1251By default, \`make install' will install all the files in 1252\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1253an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1254for instance \`--prefix=\$HOME'. 1255 1256For better control, use the options below. 1257 1258Fine tuning of the installation directories: 1259 --bindir=DIR user executables [EPREFIX/bin] 1260 --sbindir=DIR system admin executables [EPREFIX/sbin] 1261 --libexecdir=DIR program executables [EPREFIX/libexec] 1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1265 --libdir=DIR object code libraries [EPREFIX/lib] 1266 --includedir=DIR C header files [PREFIX/include] 1267 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1270 --infodir=DIR info documentation [DATAROOTDIR/info] 1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1272 --mandir=DIR man documentation [DATAROOTDIR/man] 1273 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1274 --htmldir=DIR html documentation [DOCDIR] 1275 --dvidir=DIR dvi documentation [DOCDIR] 1276 --pdfdir=DIR pdf documentation [DOCDIR] 1277 --psdir=DIR ps documentation [DOCDIR] 1278_ACEOF 1279 1280 cat <<\_ACEOF 1281 1282X features: 1283 --x-includes=DIR X include files are in DIR 1284 --x-libraries=DIR X library files are in DIR 1285 1286System types: 1287 --build=BUILD configure for building on BUILD [guessed] 1288 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1289_ACEOF 1290fi 1291 1292if test -n "$ac_init_help"; then 1293 1294 cat <<\_ACEOF 1295 1296Optional Packages: 1297 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1298 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1299 --with-x use the X Window System 1300 --with-slang=DIR Use DIR/lib and DIR/include for slang 1301 --with-slanglib=DIR slang library in DIR 1302 --with-slanginc=DIR slang include files in DIR 1303 1304Some influential environment variables: 1305 CC C compiler command 1306 CFLAGS C compiler flags 1307 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1308 nonstandard directory <lib dir> 1309 LIBS libraries to pass to the linker, e.g. -l<library> 1310 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1311 you have headers in a nonstandard directory <include dir> 1312 CPP C preprocessor 1313 XMKMF Path to xmkmf, Makefile generator for X Window System 1314 1315Use these variables to override the choices made by `configure' or to help 1316it to find libraries and programs with nonstandard names/locations. 1317 1318_ACEOF 1319ac_status=$? 1320fi 1321 1322if test "$ac_init_help" = "recursive"; then 1323 # If there are subdirs, report their specific --help. 1324 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1325 test -d "$ac_dir" || continue 1326 ac_builddir=. 1327 1328case "$ac_dir" in 1329.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1330*) 1331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1332 # A ".." for each directory in $ac_dir_suffix. 1333 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1334 case $ac_top_builddir_sub in 1335 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1336 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1337 esac ;; 1338esac 1339ac_abs_top_builddir=$ac_pwd 1340ac_abs_builddir=$ac_pwd$ac_dir_suffix 1341# for backward compatibility: 1342ac_top_builddir=$ac_top_build_prefix 1343 1344case $srcdir in 1345 .) # We are building in place. 1346 ac_srcdir=. 1347 ac_top_srcdir=$ac_top_builddir_sub 1348 ac_abs_top_srcdir=$ac_pwd ;; 1349 [\\/]* | ?:[\\/]* ) # Absolute name. 1350 ac_srcdir=$srcdir$ac_dir_suffix; 1351 ac_top_srcdir=$srcdir 1352 ac_abs_top_srcdir=$srcdir ;; 1353 *) # Relative name. 1354 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1355 ac_top_srcdir=$ac_top_build_prefix$srcdir 1356 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1357esac 1358ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1359 1360 cd "$ac_dir" || { ac_status=$?; continue; } 1361 # Check for guested configure. 1362 if test -f "$ac_srcdir/configure.gnu"; then 1363 echo && 1364 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1365 elif test -f "$ac_srcdir/configure"; then 1366 echo && 1367 $SHELL "$ac_srcdir/configure" --help=recursive 1368 else 1369 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1370 fi || ac_status=$? 1371 cd "$ac_pwd" || { ac_status=$?; break; } 1372 done 1373fi 1374 1375test -n "$ac_init_help" && exit $ac_status 1376if $ac_init_version; then 1377 cat <<\_ACEOF 1378configure 1379generated by GNU Autoconf 2.61 1380 1381Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 13822002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1383This configure script is free software; the Free Software Foundation 1384gives unlimited permission to copy, distribute and modify it. 1385_ACEOF 1386 exit 1387fi 1388cat >config.log <<_ACEOF 1389This file contains any messages produced by compilers while 1390running configure, to aid debugging if configure makes a mistake. 1391 1392It was created by $as_me, which was 1393generated by GNU Autoconf 2.61. Invocation command line was 1394 1395 $ $0 $@ 1396 1397_ACEOF 1398exec 5>>config.log 1399{ 1400cat <<_ASUNAME 1401## --------- ## 1402## Platform. ## 1403## --------- ## 1404 1405hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1406uname -m = `(uname -m) 2>/dev/null || echo unknown` 1407uname -r = `(uname -r) 2>/dev/null || echo unknown` 1408uname -s = `(uname -s) 2>/dev/null || echo unknown` 1409uname -v = `(uname -v) 2>/dev/null || echo unknown` 1410 1411/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1412/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1413 1414/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1415/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1416/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1417/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1418/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1419/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1420/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1421 1422_ASUNAME 1423 1424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1425for as_dir in $PATH 1426do 1427 IFS=$as_save_IFS 1428 test -z "$as_dir" && as_dir=. 1429 echo "PATH: $as_dir" 1430done 1431IFS=$as_save_IFS 1432 1433} >&5 1434 1435cat >&5 <<_ACEOF 1436 1437 1438## ----------- ## 1439## Core tests. ## 1440## ----------- ## 1441 1442_ACEOF 1443 1444 1445# Keep a trace of the command line. 1446# Strip out --no-create and --no-recursion so they do not pile up. 1447# Strip out --silent because we don't want to record it for future runs. 1448# Also quote any args containing shell meta-characters. 1449# Make two passes to allow for proper duplicate-argument suppression. 1450ac_configure_args= 1451ac_configure_args0= 1452ac_configure_args1= 1453ac_must_keep_next=false 1454for ac_pass in 1 2 1455do 1456 for ac_arg 1457 do 1458 case $ac_arg in 1459 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1461 | -silent | --silent | --silen | --sile | --sil) 1462 continue ;; 1463 *\'*) 1464 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1465 esac 1466 case $ac_pass in 1467 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1468 2) 1469 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1470 if test $ac_must_keep_next = true; then 1471 ac_must_keep_next=false # Got value, back to normal. 1472 else 1473 case $ac_arg in 1474 *=* | --config-cache | -C | -disable-* | --disable-* \ 1475 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1476 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1477 | -with-* | --with-* | -without-* | --without-* | --x) 1478 case "$ac_configure_args0 " in 1479 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1480 esac 1481 ;; 1482 -* ) ac_must_keep_next=true ;; 1483 esac 1484 fi 1485 ac_configure_args="$ac_configure_args '$ac_arg'" 1486 ;; 1487 esac 1488 done 1489done 1490$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1491$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1492 1493# When interrupted or exit'd, cleanup temporary files, and complete 1494# config.log. We remove comments because anyway the quotes in there 1495# would cause problems or look ugly. 1496# WARNING: Use '\'' to represent an apostrophe within the trap. 1497# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1498trap 'exit_status=$? 1499 # Save into config.log some information that might help in debugging. 1500 { 1501 echo 1502 1503 cat <<\_ASBOX 1504## ---------------- ## 1505## Cache variables. ## 1506## ---------------- ## 1507_ASBOX 1508 echo 1509 # The following way of writing the cache mishandles newlines in values, 1510( 1511 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1512 eval ac_val=\$$ac_var 1513 case $ac_val in #( 1514 *${as_nl}*) 1515 case $ac_var in #( 1516 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1517echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1518 esac 1519 case $ac_var in #( 1520 _ | IFS | as_nl) ;; #( 1521 *) $as_unset $ac_var ;; 1522 esac ;; 1523 esac 1524 done 1525 (set) 2>&1 | 1526 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1527 *${as_nl}ac_space=\ *) 1528 sed -n \ 1529 "s/'\''/'\''\\\\'\'''\''/g; 1530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1531 ;; #( 1532 *) 1533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1534 ;; 1535 esac | 1536 sort 1537) 1538 echo 1539 1540 cat <<\_ASBOX 1541## ----------------- ## 1542## Output variables. ## 1543## ----------------- ## 1544_ASBOX 1545 echo 1546 for ac_var in $ac_subst_vars 1547 do 1548 eval ac_val=\$$ac_var 1549 case $ac_val in 1550 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1551 esac 1552 echo "$ac_var='\''$ac_val'\''" 1553 done | sort 1554 echo 1555 1556 if test -n "$ac_subst_files"; then 1557 cat <<\_ASBOX 1558## ------------------- ## 1559## File substitutions. ## 1560## ------------------- ## 1561_ASBOX 1562 echo 1563 for ac_var in $ac_subst_files 1564 do 1565 eval ac_val=\$$ac_var 1566 case $ac_val in 1567 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1568 esac 1569 echo "$ac_var='\''$ac_val'\''" 1570 done | sort 1571 echo 1572 fi 1573 1574 if test -s confdefs.h; then 1575 cat <<\_ASBOX 1576## ----------- ## 1577## confdefs.h. ## 1578## ----------- ## 1579_ASBOX 1580 echo 1581 cat confdefs.h 1582 echo 1583 fi 1584 test "$ac_signal" != 0 && 1585 echo "$as_me: caught signal $ac_signal" 1586 echo "$as_me: exit $exit_status" 1587 } >&5 1588 rm -f core *.core core.conftest.* && 1589 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1590 exit $exit_status 1591' 0 1592for ac_signal in 1 2 13 15; do 1593 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1594done 1595ac_signal=0 1596 1597# confdefs.h avoids OS command line length limits that DEFS can exceed. 1598rm -f -r conftest* confdefs.h 1599 1600# Predefined preprocessor variables. 1601 1602cat >>confdefs.h <<_ACEOF 1603#define PACKAGE_NAME "$PACKAGE_NAME" 1604_ACEOF 1605 1606 1607cat >>confdefs.h <<_ACEOF 1608#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1609_ACEOF 1610 1611 1612cat >>confdefs.h <<_ACEOF 1613#define PACKAGE_VERSION "$PACKAGE_VERSION" 1614_ACEOF 1615 1616 1617cat >>confdefs.h <<_ACEOF 1618#define PACKAGE_STRING "$PACKAGE_STRING" 1619_ACEOF 1620 1621 1622cat >>confdefs.h <<_ACEOF 1623#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1624_ACEOF 1625 1626 1627# Let the site file select an alternate cache file if it wants to. 1628# Prefer explicitly selected file to automatically selected ones. 1629if test -n "$CONFIG_SITE"; then 1630 set x "$CONFIG_SITE" 1631elif test "x$prefix" != xNONE; then 1632 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1633else 1634 set x "$ac_default_prefix/share/config.site" \ 1635 "$ac_default_prefix/etc/config.site" 1636fi 1637shift 1638for ac_site_file 1639do 1640 if test -r "$ac_site_file"; then 1641 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1642echo "$as_me: loading site script $ac_site_file" >&6;} 1643 sed 's/^/| /' "$ac_site_file" >&5 1644 . "$ac_site_file" 1645 fi 1646done 1647 1648if test -r "$cache_file"; then 1649 # Some versions of bash will fail to source /dev/null (special 1650 # files actually), so we avoid doing that. 1651 if test -f "$cache_file"; then 1652 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1653echo "$as_me: loading cache $cache_file" >&6;} 1654 case $cache_file in 1655 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1656 *) . "./$cache_file";; 1657 esac 1658 fi 1659else 1660 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1661echo "$as_me: creating cache $cache_file" >&6;} 1662 >$cache_file 1663fi 1664 1665# Check that the precious variables saved in the cache have kept the same 1666# value. 1667ac_cache_corrupted=false 1668for ac_var in $ac_precious_vars; do 1669 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1670 eval ac_new_set=\$ac_env_${ac_var}_set 1671 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1672 eval ac_new_val=\$ac_env_${ac_var}_value 1673 case $ac_old_set,$ac_new_set in 1674 set,) 1675 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1676echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1677 ac_cache_corrupted=: ;; 1678 ,set) 1679 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1680echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1681 ac_cache_corrupted=: ;; 1682 ,);; 1683 *) 1684 if test "x$ac_old_val" != "x$ac_new_val"; then 1685 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1686echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1687 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1688echo "$as_me: former value: $ac_old_val" >&2;} 1689 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1690echo "$as_me: current value: $ac_new_val" >&2;} 1691 ac_cache_corrupted=: 1692 fi;; 1693 esac 1694 # Pass precious variables to config.status. 1695 if test "$ac_new_set" = set; then 1696 case $ac_new_val in 1697 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1698 *) ac_arg=$ac_var=$ac_new_val ;; 1699 esac 1700 case " $ac_configure_args " in 1701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1702 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1703 esac 1704 fi 1705done 1706if $ac_cache_corrupted; then 1707 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1708echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1709 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1710echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1711 { (exit 1); exit 1; }; } 1712fi 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730ac_ext=c 1731ac_cpp='$CPP $CPPFLAGS' 1732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1734ac_compiler_gnu=$ac_cv_c_compiler_gnu 1735 1736 1737 1738 1739ac_aux_dir= 1740for ac_dir in autoconf "$srcdir"/autoconf; do 1741 if test -f "$ac_dir/install-sh"; then 1742 ac_aux_dir=$ac_dir 1743 ac_install_sh="$ac_aux_dir/install-sh -c" 1744 break 1745 elif test -f "$ac_dir/install.sh"; then 1746 ac_aux_dir=$ac_dir 1747 ac_install_sh="$ac_aux_dir/install.sh -c" 1748 break 1749 elif test -f "$ac_dir/shtool"; then 1750 ac_aux_dir=$ac_dir 1751 ac_install_sh="$ac_aux_dir/shtool install -c" 1752 break 1753 fi 1754done 1755if test -z "$ac_aux_dir"; then 1756 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5 1757echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;} 1758 { (exit 1); exit 1; }; } 1759fi 1760 1761# These three variables are undocumented and unsupported, 1762# and are intended to be withdrawn in a future Autoconf release. 1763# They can cause serious problems if a builder's source tree is in a directory 1764# whose full name contains unusual characters. 1765ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1766ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1767ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1768 1769 1770# Make sure we can run config.sub. 1771$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 1772 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 1773echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 1774 { (exit 1); exit 1; }; } 1775 1776{ echo "$as_me:$LINENO: checking build system type" >&5 1777echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 1778if test "${ac_cv_build+set}" = set; then 1779 echo $ECHO_N "(cached) $ECHO_C" >&6 1780else 1781 ac_build_alias=$build_alias 1782test "x$ac_build_alias" = x && 1783 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 1784test "x$ac_build_alias" = x && 1785 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1786echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1787 { (exit 1); exit 1; }; } 1788ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 1789 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 1790echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 1791 { (exit 1); exit 1; }; } 1792 1793fi 1794{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1795echo "${ECHO_T}$ac_cv_build" >&6; } 1796case $ac_cv_build in 1797*-*-*) ;; 1798*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 1799echo "$as_me: error: invalid value of canonical build" >&2;} 1800 { (exit 1); exit 1; }; };; 1801esac 1802build=$ac_cv_build 1803ac_save_IFS=$IFS; IFS='-' 1804set x $ac_cv_build 1805shift 1806build_cpu=$1 1807build_vendor=$2 1808shift; shift 1809# Remember, the first character of IFS is used to create $*, 1810# except with old shells: 1811build_os=$* 1812IFS=$ac_save_IFS 1813case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 1814 1815 1816{ echo "$as_me:$LINENO: checking host system type" >&5 1817echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 1818if test "${ac_cv_host+set}" = set; then 1819 echo $ECHO_N "(cached) $ECHO_C" >&6 1820else 1821 if test "x$host_alias" = x; then 1822 ac_cv_host=$ac_cv_build 1823else 1824 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 1825 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 1826echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 1827 { (exit 1); exit 1; }; } 1828fi 1829 1830fi 1831{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1832echo "${ECHO_T}$ac_cv_host" >&6; } 1833case $ac_cv_host in 1834*-*-*) ;; 1835*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 1836echo "$as_me: error: invalid value of canonical host" >&2;} 1837 { (exit 1); exit 1; }; };; 1838esac 1839host=$ac_cv_host 1840ac_save_IFS=$IFS; IFS='-' 1841set x $ac_cv_host 1842shift 1843host_cpu=$1 1844host_vendor=$2 1845shift; shift 1846# Remember, the first character of IFS is used to create $*, 1847# except with old shells: 1848host_os=$* 1849IFS=$ac_save_IFS 1850case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 1851 1852 1853if test -n "$ac_tool_prefix"; then 1854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 1855set dummy ${ac_tool_prefix}ranlib; ac_word=$2 1856{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1858if test "${ac_cv_prog_RANLIB+set}" = set; then 1859 echo $ECHO_N "(cached) $ECHO_C" >&6 1860else 1861 if test -n "$RANLIB"; then 1862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1863else 1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1865for as_dir in $PATH 1866do 1867 IFS=$as_save_IFS 1868 test -z "$as_dir" && as_dir=. 1869 for ac_exec_ext in '' $ac_executable_extensions; do 1870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1873 break 2 1874 fi 1875done 1876done 1877IFS=$as_save_IFS 1878 1879fi 1880fi 1881RANLIB=$ac_cv_prog_RANLIB 1882if test -n "$RANLIB"; then 1883 { echo "$as_me:$LINENO: result: $RANLIB" >&5 1884echo "${ECHO_T}$RANLIB" >&6; } 1885else 1886 { echo "$as_me:$LINENO: result: no" >&5 1887echo "${ECHO_T}no" >&6; } 1888fi 1889 1890 1891fi 1892if test -z "$ac_cv_prog_RANLIB"; then 1893 ac_ct_RANLIB=$RANLIB 1894 # Extract the first word of "ranlib", so it can be a program name with args. 1895set dummy ranlib; ac_word=$2 1896{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1898if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 1899 echo $ECHO_N "(cached) $ECHO_C" >&6 1900else 1901 if test -n "$ac_ct_RANLIB"; then 1902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 1903else 1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1905for as_dir in $PATH 1906do 1907 IFS=$as_save_IFS 1908 test -z "$as_dir" && as_dir=. 1909 for ac_exec_ext in '' $ac_executable_extensions; do 1910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1911 ac_cv_prog_ac_ct_RANLIB="ranlib" 1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1913 break 2 1914 fi 1915done 1916done 1917IFS=$as_save_IFS 1918 1919fi 1920fi 1921ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 1922if test -n "$ac_ct_RANLIB"; then 1923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 1924echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 1925else 1926 { echo "$as_me:$LINENO: result: no" >&5 1927echo "${ECHO_T}no" >&6; } 1928fi 1929 1930 if test "x$ac_ct_RANLIB" = x; then 1931 RANLIB=":" 1932 else 1933 case $cross_compiling:$ac_tool_warned in 1934yes:) 1935{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1936whose name does not start with the host triplet. If you think this 1937configuration is useful to you, please write to autoconf@gnu.org." >&5 1938echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1939whose name does not start with the host triplet. If you think this 1940configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1941ac_tool_warned=yes ;; 1942esac 1943 RANLIB=$ac_ct_RANLIB 1944 fi 1945else 1946 RANLIB="$ac_cv_prog_RANLIB" 1947fi 1948 1949# Find a good install program. We prefer a C program (faster), 1950# so one script is as good as another. But avoid the broken or 1951# incompatible versions: 1952# SysV /etc/install, /usr/sbin/install 1953# SunOS /usr/etc/install 1954# IRIX /sbin/install 1955# AIX /bin/install 1956# AmigaOS /C/install, which installs bootblocks on floppy discs 1957# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1958# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1959# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1960# OS/2's system install, which has a completely different semantic 1961# ./install, which can be erroneously created by make from ./install.sh. 1962{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1963echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 1964if test -z "$INSTALL"; then 1965if test "${ac_cv_path_install+set}" = set; then 1966 echo $ECHO_N "(cached) $ECHO_C" >&6 1967else 1968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1969for as_dir in $PATH 1970do 1971 IFS=$as_save_IFS 1972 test -z "$as_dir" && as_dir=. 1973 # Account for people who put trailing slashes in PATH elements. 1974case $as_dir/ in 1975 ./ | .// | /cC/* | \ 1976 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1977 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1978 /usr/ucb/* ) ;; 1979 *) 1980 # OSF1 and SCO ODT 3.0 have their own names for install. 1981 # Don't use installbsd from OSF since it installs stuff as root 1982 # by default. 1983 for ac_prog in ginstall scoinst install; do 1984 for ac_exec_ext in '' $ac_executable_extensions; do 1985 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1986 if test $ac_prog = install && 1987 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1988 # AIX install. It has an incompatible calling convention. 1989 : 1990 elif test $ac_prog = install && 1991 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1992 # program-specific install script used by HP pwplus--don't use. 1993 : 1994 else 1995 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1996 break 3 1997 fi 1998 fi 1999 done 2000 done 2001 ;; 2002esac 2003done 2004IFS=$as_save_IFS 2005 2006 2007fi 2008 if test "${ac_cv_path_install+set}" = set; then 2009 INSTALL=$ac_cv_path_install 2010 else 2011 # As a last resort, use the slow shell script. Don't cache a 2012 # value for INSTALL within a source directory, because that will 2013 # break other packages using the cache if that directory is 2014 # removed, or if the value is a relative name. 2015 INSTALL=$ac_install_sh 2016 fi 2017fi 2018{ echo "$as_me:$LINENO: result: $INSTALL" >&5 2019echo "${ECHO_T}$INSTALL" >&6; } 2020 2021# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2022# It thinks the first close brace ends the variable substitution. 2023test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2024 2025test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2026 2027test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2028 2029{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2030echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 2031set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2032if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2033 echo $ECHO_N "(cached) $ECHO_C" >&6 2034else 2035 cat >conftest.make <<\_ACEOF 2036SHELL = /bin/sh 2037all: 2038 @echo '@@@%%%=$(MAKE)=@@@%%%' 2039_ACEOF 2040# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2041case `${MAKE-make} -f conftest.make 2>/dev/null` in 2042 *@@@%%%=?*=@@@%%%*) 2043 eval ac_cv_prog_make_${ac_make}_set=yes;; 2044 *) 2045 eval ac_cv_prog_make_${ac_make}_set=no;; 2046esac 2047rm -f conftest.make 2048fi 2049if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2050 { echo "$as_me:$LINENO: result: yes" >&5 2051echo "${ECHO_T}yes" >&6; } 2052 SET_MAKE= 2053else 2054 { echo "$as_me:$LINENO: result: no" >&5 2055echo "${ECHO_T}no" >&6; } 2056 SET_MAKE="MAKE=${MAKE-make}" 2057fi 2058 2059 2060 2061#These variable are initialized by JD init function 2062CONFIG_DIR=`pwd` 2063cd $srcdir 2064if test "`pwd`" != "$CONFIG_DIR" 2065then 2066 { { echo "$as_me:$LINENO: error: \"This software does not support configuring from another directory. See the INSTALL file\"" >&5 2067echo "$as_me: error: \"This software does not support configuring from another directory. See the INSTALL file\"" >&2;} 2068 { (exit 1); exit 1; }; } 2069fi 2070# Note: these will differ if one is a symbolic link 2071if test -f /usr/bin/dirname; then 2072 JD_Above_Dir=`dirname $CONFIG_DIR` 2073else 2074# system is a loser 2075 JD_Above_Dir=`cd ..;pwd` 2076fi 2077JD_Above_Dir2=`cd ..;pwd` 2078 2079 2080 2081{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 2082echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 2083if test "${ac_cv_path_GREP+set}" = set; then 2084 echo $ECHO_N "(cached) $ECHO_C" >&6 2085else 2086 # Extract the first word of "grep ggrep" to use in msg output 2087if test -z "$GREP"; then 2088set dummy grep ggrep; ac_prog_name=$2 2089if test "${ac_cv_path_GREP+set}" = set; then 2090 echo $ECHO_N "(cached) $ECHO_C" >&6 2091else 2092 ac_path_GREP_found=false 2093# Loop through the user's path and test for each of PROGNAME-LIST 2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2095for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2096do 2097 IFS=$as_save_IFS 2098 test -z "$as_dir" && as_dir=. 2099 for ac_prog in grep ggrep; do 2100 for ac_exec_ext in '' $ac_executable_extensions; do 2101 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 2102 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 2103 # Check for GNU ac_path_GREP and select it if it is found. 2104 # Check for GNU $ac_path_GREP 2105case `"$ac_path_GREP" --version 2>&1` in 2106*GNU*) 2107 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 2108*) 2109 ac_count=0 2110 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 2111 while : 2112 do 2113 cat "conftest.in" "conftest.in" >"conftest.tmp" 2114 mv "conftest.tmp" "conftest.in" 2115 cp "conftest.in" "conftest.nl" 2116 echo 'GREP' >> "conftest.nl" 2117 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 2118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2119 ac_count=`expr $ac_count + 1` 2120 if test $ac_count -gt ${ac_path_GREP_max-0}; then 2121 # Best one so far, save it but keep looking for a better one 2122 ac_cv_path_GREP="$ac_path_GREP" 2123 ac_path_GREP_max=$ac_count 2124 fi 2125 # 10*(2^10) chars as input seems more than enough 2126 test $ac_count -gt 10 && break 2127 done 2128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2129esac 2130 2131 2132 $ac_path_GREP_found && break 3 2133 done 2134done 2135 2136done 2137IFS=$as_save_IFS 2138 2139 2140fi 2141 2142GREP="$ac_cv_path_GREP" 2143if test -z "$GREP"; then 2144 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 2145echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 2146 { (exit 1); exit 1; }; } 2147fi 2148 2149else 2150 ac_cv_path_GREP=$GREP 2151fi 2152 2153 2154fi 2155{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 2156echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 2157 GREP="$ac_cv_path_GREP" 2158 2159 2160{ echo "$as_me:$LINENO: checking for egrep" >&5 2161echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 2162if test "${ac_cv_path_EGREP+set}" = set; then 2163 echo $ECHO_N "(cached) $ECHO_C" >&6 2164else 2165 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 2166 then ac_cv_path_EGREP="$GREP -E" 2167 else 2168 # Extract the first word of "egrep" to use in msg output 2169if test -z "$EGREP"; then 2170set dummy egrep; ac_prog_name=$2 2171if test "${ac_cv_path_EGREP+set}" = set; then 2172 echo $ECHO_N "(cached) $ECHO_C" >&6 2173else 2174 ac_path_EGREP_found=false 2175# Loop through the user's path and test for each of PROGNAME-LIST 2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 2178do 2179 IFS=$as_save_IFS 2180 test -z "$as_dir" && as_dir=. 2181 for ac_prog in egrep; do 2182 for ac_exec_ext in '' $ac_executable_extensions; do 2183 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 2184 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 2185 # Check for GNU ac_path_EGREP and select it if it is found. 2186 # Check for GNU $ac_path_EGREP 2187case `"$ac_path_EGREP" --version 2>&1` in 2188*GNU*) 2189 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 2190*) 2191 ac_count=0 2192 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 2193 while : 2194 do 2195 cat "conftest.in" "conftest.in" >"conftest.tmp" 2196 mv "conftest.tmp" "conftest.in" 2197 cp "conftest.in" "conftest.nl" 2198 echo 'EGREP' >> "conftest.nl" 2199 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 2200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 2201 ac_count=`expr $ac_count + 1` 2202 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 2203 # Best one so far, save it but keep looking for a better one 2204 ac_cv_path_EGREP="$ac_path_EGREP" 2205 ac_path_EGREP_max=$ac_count 2206 fi 2207 # 10*(2^10) chars as input seems more than enough 2208 test $ac_count -gt 10 && break 2209 done 2210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 2211esac 2212 2213 2214 $ac_path_EGREP_found && break 3 2215 done 2216done 2217 2218done 2219IFS=$as_save_IFS 2220 2221 2222fi 2223 2224EGREP="$ac_cv_path_EGREP" 2225if test -z "$EGREP"; then 2226 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 2227echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 2228 { (exit 1); exit 1; }; } 2229fi 2230 2231else 2232 ac_cv_path_EGREP=$EGREP 2233fi 2234 2235 2236 fi 2237fi 2238{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 2239echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 2240 EGREP="$ac_cv_path_EGREP" 2241 2242 2243 2244ac_ext=c 2245ac_cpp='$CPP $CPPFLAGS' 2246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2248ac_compiler_gnu=$ac_cv_c_compiler_gnu 2249if test -n "$ac_tool_prefix"; then 2250 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2251set dummy ${ac_tool_prefix}gcc; ac_word=$2 2252{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2254if test "${ac_cv_prog_CC+set}" = set; then 2255 echo $ECHO_N "(cached) $ECHO_C" >&6 2256else 2257 if test -n "$CC"; then 2258 ac_cv_prog_CC="$CC" # Let the user override the test. 2259else 2260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2261for as_dir in $PATH 2262do 2263 IFS=$as_save_IFS 2264 test -z "$as_dir" && as_dir=. 2265 for ac_exec_ext in '' $ac_executable_extensions; do 2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2267 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2269 break 2 2270 fi 2271done 2272done 2273IFS=$as_save_IFS 2274 2275fi 2276fi 2277CC=$ac_cv_prog_CC 2278if test -n "$CC"; then 2279 { echo "$as_me:$LINENO: result: $CC" >&5 2280echo "${ECHO_T}$CC" >&6; } 2281else 2282 { echo "$as_me:$LINENO: result: no" >&5 2283echo "${ECHO_T}no" >&6; } 2284fi 2285 2286 2287fi 2288if test -z "$ac_cv_prog_CC"; then 2289 ac_ct_CC=$CC 2290 # Extract the first word of "gcc", so it can be a program name with args. 2291set dummy gcc; ac_word=$2 2292{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2294if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2295 echo $ECHO_N "(cached) $ECHO_C" >&6 2296else 2297 if test -n "$ac_ct_CC"; then 2298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2299else 2300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2301for as_dir in $PATH 2302do 2303 IFS=$as_save_IFS 2304 test -z "$as_dir" && as_dir=. 2305 for ac_exec_ext in '' $ac_executable_extensions; do 2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2307 ac_cv_prog_ac_ct_CC="gcc" 2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2309 break 2 2310 fi 2311done 2312done 2313IFS=$as_save_IFS 2314 2315fi 2316fi 2317ac_ct_CC=$ac_cv_prog_ac_ct_CC 2318if test -n "$ac_ct_CC"; then 2319 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2320echo "${ECHO_T}$ac_ct_CC" >&6; } 2321else 2322 { echo "$as_me:$LINENO: result: no" >&5 2323echo "${ECHO_T}no" >&6; } 2324fi 2325 2326 if test "x$ac_ct_CC" = x; then 2327 CC="" 2328 else 2329 case $cross_compiling:$ac_tool_warned in 2330yes:) 2331{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2332whose name does not start with the host triplet. If you think this 2333configuration is useful to you, please write to autoconf@gnu.org." >&5 2334echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2335whose name does not start with the host triplet. If you think this 2336configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2337ac_tool_warned=yes ;; 2338esac 2339 CC=$ac_ct_CC 2340 fi 2341else 2342 CC="$ac_cv_prog_CC" 2343fi 2344 2345if test -z "$CC"; then 2346 if test -n "$ac_tool_prefix"; then 2347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2348set dummy ${ac_tool_prefix}cc; ac_word=$2 2349{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2351if test "${ac_cv_prog_CC+set}" = set; then 2352 echo $ECHO_N "(cached) $ECHO_C" >&6 2353else 2354 if test -n "$CC"; then 2355 ac_cv_prog_CC="$CC" # Let the user override the test. 2356else 2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358for as_dir in $PATH 2359do 2360 IFS=$as_save_IFS 2361 test -z "$as_dir" && as_dir=. 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2364 ac_cv_prog_CC="${ac_tool_prefix}cc" 2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2366 break 2 2367 fi 2368done 2369done 2370IFS=$as_save_IFS 2371 2372fi 2373fi 2374CC=$ac_cv_prog_CC 2375if test -n "$CC"; then 2376 { echo "$as_me:$LINENO: result: $CC" >&5 2377echo "${ECHO_T}$CC" >&6; } 2378else 2379 { echo "$as_me:$LINENO: result: no" >&5 2380echo "${ECHO_T}no" >&6; } 2381fi 2382 2383 2384 fi 2385fi 2386if test -z "$CC"; then 2387 # Extract the first word of "cc", so it can be a program name with args. 2388set dummy cc; ac_word=$2 2389{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2391if test "${ac_cv_prog_CC+set}" = set; then 2392 echo $ECHO_N "(cached) $ECHO_C" >&6 2393else 2394 if test -n "$CC"; then 2395 ac_cv_prog_CC="$CC" # Let the user override the test. 2396else 2397 ac_prog_rejected=no 2398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2399for as_dir in $PATH 2400do 2401 IFS=$as_save_IFS 2402 test -z "$as_dir" && as_dir=. 2403 for ac_exec_ext in '' $ac_executable_extensions; do 2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2406 ac_prog_rejected=yes 2407 continue 2408 fi 2409 ac_cv_prog_CC="cc" 2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2411 break 2 2412 fi 2413done 2414done 2415IFS=$as_save_IFS 2416 2417if test $ac_prog_rejected = yes; then 2418 # We found a bogon in the path, so make sure we never use it. 2419 set dummy $ac_cv_prog_CC 2420 shift 2421 if test $# != 0; then 2422 # We chose a different compiler from the bogus one. 2423 # However, it has the same basename, so the bogon will be chosen 2424 # first if we set CC to just the basename; use the full file name. 2425 shift 2426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2427 fi 2428fi 2429fi 2430fi 2431CC=$ac_cv_prog_CC 2432if test -n "$CC"; then 2433 { echo "$as_me:$LINENO: result: $CC" >&5 2434echo "${ECHO_T}$CC" >&6; } 2435else 2436 { echo "$as_me:$LINENO: result: no" >&5 2437echo "${ECHO_T}no" >&6; } 2438fi 2439 2440 2441fi 2442if test -z "$CC"; then 2443 if test -n "$ac_tool_prefix"; then 2444 for ac_prog in cl.exe 2445 do 2446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2447set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2448{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2450if test "${ac_cv_prog_CC+set}" = set; then 2451 echo $ECHO_N "(cached) $ECHO_C" >&6 2452else 2453 if test -n "$CC"; then 2454 ac_cv_prog_CC="$CC" # Let the user override the test. 2455else 2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2457for as_dir in $PATH 2458do 2459 IFS=$as_save_IFS 2460 test -z "$as_dir" && as_dir=. 2461 for ac_exec_ext in '' $ac_executable_extensions; do 2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2465 break 2 2466 fi 2467done 2468done 2469IFS=$as_save_IFS 2470 2471fi 2472fi 2473CC=$ac_cv_prog_CC 2474if test -n "$CC"; then 2475 { echo "$as_me:$LINENO: result: $CC" >&5 2476echo "${ECHO_T}$CC" >&6; } 2477else 2478 { echo "$as_me:$LINENO: result: no" >&5 2479echo "${ECHO_T}no" >&6; } 2480fi 2481 2482 2483 test -n "$CC" && break 2484 done 2485fi 2486if test -z "$CC"; then 2487 ac_ct_CC=$CC 2488 for ac_prog in cl.exe 2489do 2490 # Extract the first word of "$ac_prog", so it can be a program name with args. 2491set dummy $ac_prog; ac_word=$2 2492{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2494if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2495 echo $ECHO_N "(cached) $ECHO_C" >&6 2496else 2497 if test -n "$ac_ct_CC"; then 2498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2499else 2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2501for as_dir in $PATH 2502do 2503 IFS=$as_save_IFS 2504 test -z "$as_dir" && as_dir=. 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2507 ac_cv_prog_ac_ct_CC="$ac_prog" 2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2509 break 2 2510 fi 2511done 2512done 2513IFS=$as_save_IFS 2514 2515fi 2516fi 2517ac_ct_CC=$ac_cv_prog_ac_ct_CC 2518if test -n "$ac_ct_CC"; then 2519 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2520echo "${ECHO_T}$ac_ct_CC" >&6; } 2521else 2522 { echo "$as_me:$LINENO: result: no" >&5 2523echo "${ECHO_T}no" >&6; } 2524fi 2525 2526 2527 test -n "$ac_ct_CC" && break 2528done 2529 2530 if test "x$ac_ct_CC" = x; then 2531 CC="" 2532 else 2533 case $cross_compiling:$ac_tool_warned in 2534yes:) 2535{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2536whose name does not start with the host triplet. If you think this 2537configuration is useful to you, please write to autoconf@gnu.org." >&5 2538echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2539whose name does not start with the host triplet. If you think this 2540configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2541ac_tool_warned=yes ;; 2542esac 2543 CC=$ac_ct_CC 2544 fi 2545fi 2546 2547fi 2548 2549 2550test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2551See \`config.log' for more details." >&5 2552echo "$as_me: error: no acceptable C compiler found in \$PATH 2553See \`config.log' for more details." >&2;} 2554 { (exit 1); exit 1; }; } 2555 2556# Provide some information about the compiler. 2557echo "$as_me:$LINENO: checking for C compiler version" >&5 2558ac_compiler=`set X $ac_compile; echo $2` 2559{ (ac_try="$ac_compiler --version >&5" 2560case "(($ac_try" in 2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2562 *) ac_try_echo=$ac_try;; 2563esac 2564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2565 (eval "$ac_compiler --version >&5") 2>&5 2566 ac_status=$? 2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2568 (exit $ac_status); } 2569{ (ac_try="$ac_compiler -v >&5" 2570case "(($ac_try" in 2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2572 *) ac_try_echo=$ac_try;; 2573esac 2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2575 (eval "$ac_compiler -v >&5") 2>&5 2576 ac_status=$? 2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2578 (exit $ac_status); } 2579{ (ac_try="$ac_compiler -V >&5" 2580case "(($ac_try" in 2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2582 *) ac_try_echo=$ac_try;; 2583esac 2584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2585 (eval "$ac_compiler -V >&5") 2>&5 2586 ac_status=$? 2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2588 (exit $ac_status); } 2589 2590cat >conftest.$ac_ext <<_ACEOF 2591/* confdefs.h. */ 2592_ACEOF 2593cat confdefs.h >>conftest.$ac_ext 2594cat >>conftest.$ac_ext <<_ACEOF 2595/* end confdefs.h. */ 2596 2597int 2598main () 2599{ 2600 2601 ; 2602 return 0; 2603} 2604_ACEOF 2605ac_clean_files_save=$ac_clean_files 2606ac_clean_files="$ac_clean_files a.out a.exe b.out" 2607# Try to create an executable without -o first, disregard a.out. 2608# It will help us diagnose broken compilers, and finding out an intuition 2609# of exeext. 2610{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2611echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2612ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2613# 2614# List of possible output files, starting from the most likely. 2615# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2616# only as a last resort. b.out is created by i960 compilers. 2617ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2618# 2619# The IRIX 6 linker writes into existing files which may not be 2620# executable, retaining their permissions. Remove them first so a 2621# subsequent execution test works. 2622ac_rmfiles= 2623for ac_file in $ac_files 2624do 2625 case $ac_file in 2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2627 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2628 esac 2629done 2630rm -f $ac_rmfiles 2631 2632if { (ac_try="$ac_link_default" 2633case "(($ac_try" in 2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2635 *) ac_try_echo=$ac_try;; 2636esac 2637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2638 (eval "$ac_link_default") 2>&5 2639 ac_status=$? 2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2641 (exit $ac_status); }; then 2642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2643# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2644# in a Makefile. We should not override ac_cv_exeext if it was cached, 2645# so that the user can short-circuit this test for compilers unknown to 2646# Autoconf. 2647for ac_file in $ac_files '' 2648do 2649 test -f "$ac_file" || continue 2650 case $ac_file in 2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2652 ;; 2653 [ab].out ) 2654 # We found the default executable, but exeext='' is most 2655 # certainly right. 2656 break;; 2657 *.* ) 2658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2659 then :; else 2660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2661 fi 2662 # We set ac_cv_exeext here because the later test for it is not 2663 # safe: cross compilers may not add the suffix if given an `-o' 2664 # argument, so we may need to know it at that point already. 2665 # Even if this section looks crufty: it has the advantage of 2666 # actually working. 2667 break;; 2668 * ) 2669 break;; 2670 esac 2671done 2672test "$ac_cv_exeext" = no && ac_cv_exeext= 2673 2674else 2675 ac_file='' 2676fi 2677 2678{ echo "$as_me:$LINENO: result: $ac_file" >&5 2679echo "${ECHO_T}$ac_file" >&6; } 2680if test -z "$ac_file"; then 2681 echo "$as_me: failed program was:" >&5 2682sed 's/^/| /' conftest.$ac_ext >&5 2683 2684{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2685See \`config.log' for more details." >&5 2686echo "$as_me: error: C compiler cannot create executables 2687See \`config.log' for more details." >&2;} 2688 { (exit 77); exit 77; }; } 2689fi 2690 2691ac_exeext=$ac_cv_exeext 2692 2693# Check that the compiler produces executables we can run. If not, either 2694# the compiler is broken, or we cross compile. 2695{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2696echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2697# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2698# If not cross compiling, check that we can run a simple program. 2699if test "$cross_compiling" != yes; then 2700 if { ac_try='./$ac_file' 2701 { (case "(($ac_try" in 2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2703 *) ac_try_echo=$ac_try;; 2704esac 2705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2706 (eval "$ac_try") 2>&5 2707 ac_status=$? 2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2709 (exit $ac_status); }; }; then 2710 cross_compiling=no 2711 else 2712 if test "$cross_compiling" = maybe; then 2713 cross_compiling=yes 2714 else 2715 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2716If you meant to cross compile, use \`--host'. 2717See \`config.log' for more details." >&5 2718echo "$as_me: error: cannot run C compiled programs. 2719If you meant to cross compile, use \`--host'. 2720See \`config.log' for more details." >&2;} 2721 { (exit 1); exit 1; }; } 2722 fi 2723 fi 2724fi 2725{ echo "$as_me:$LINENO: result: yes" >&5 2726echo "${ECHO_T}yes" >&6; } 2727 2728rm -f a.out a.exe conftest$ac_cv_exeext b.out 2729ac_clean_files=$ac_clean_files_save 2730# Check that the compiler produces executables we can run. If not, either 2731# the compiler is broken, or we cross compile. 2732{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2733echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2734{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2735echo "${ECHO_T}$cross_compiling" >&6; } 2736 2737{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2738echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2739if { (ac_try="$ac_link" 2740case "(($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_link") 2>&5 2746 ac_status=$? 2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2748 (exit $ac_status); }; then 2749 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2750# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2751# work properly (i.e., refer to `conftest.exe'), while it won't with 2752# `rm'. 2753for ac_file in conftest.exe conftest conftest.*; do 2754 test -f "$ac_file" || continue 2755 case $ac_file in 2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2758 break;; 2759 * ) break;; 2760 esac 2761done 2762else 2763 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2764See \`config.log' for more details." >&5 2765echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2766See \`config.log' for more details." >&2;} 2767 { (exit 1); exit 1; }; } 2768fi 2769 2770rm -f conftest$ac_cv_exeext 2771{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2772echo "${ECHO_T}$ac_cv_exeext" >&6; } 2773 2774rm -f conftest.$ac_ext 2775EXEEXT=$ac_cv_exeext 2776ac_exeext=$EXEEXT 2777{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2778echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2779if test "${ac_cv_objext+set}" = set; then 2780 echo $ECHO_N "(cached) $ECHO_C" >&6 2781else 2782 cat >conftest.$ac_ext <<_ACEOF 2783/* confdefs.h. */ 2784_ACEOF 2785cat confdefs.h >>conftest.$ac_ext 2786cat >>conftest.$ac_ext <<_ACEOF 2787/* end confdefs.h. */ 2788 2789int 2790main () 2791{ 2792 2793 ; 2794 return 0; 2795} 2796_ACEOF 2797rm -f conftest.o conftest.obj 2798if { (ac_try="$ac_compile" 2799case "(($ac_try" in 2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2801 *) ac_try_echo=$ac_try;; 2802esac 2803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2804 (eval "$ac_compile") 2>&5 2805 ac_status=$? 2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2807 (exit $ac_status); }; then 2808 for ac_file in conftest.o conftest.obj conftest.*; do 2809 test -f "$ac_file" || continue; 2810 case $ac_file in 2811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2812 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2813 break;; 2814 esac 2815done 2816else 2817 echo "$as_me: failed program was:" >&5 2818sed 's/^/| /' conftest.$ac_ext >&5 2819 2820{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2821See \`config.log' for more details." >&5 2822echo "$as_me: error: cannot compute suffix of object files: cannot compile 2823See \`config.log' for more details." >&2;} 2824 { (exit 1); exit 1; }; } 2825fi 2826 2827rm -f conftest.$ac_cv_objext conftest.$ac_ext 2828fi 2829{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2830echo "${ECHO_T}$ac_cv_objext" >&6; } 2831OBJEXT=$ac_cv_objext 2832ac_objext=$OBJEXT 2833{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2834echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2835if test "${ac_cv_c_compiler_gnu+set}" = set; then 2836 echo $ECHO_N "(cached) $ECHO_C" >&6 2837else 2838 cat >conftest.$ac_ext <<_ACEOF 2839/* confdefs.h. */ 2840_ACEOF 2841cat confdefs.h >>conftest.$ac_ext 2842cat >>conftest.$ac_ext <<_ACEOF 2843/* end confdefs.h. */ 2844 2845int 2846main () 2847{ 2848#ifndef __GNUC__ 2849 choke me 2850#endif 2851 2852 ; 2853 return 0; 2854} 2855_ACEOF 2856rm -f conftest.$ac_objext 2857if { (ac_try="$ac_compile" 2858case "(($ac_try" in 2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2860 *) ac_try_echo=$ac_try;; 2861esac 2862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2863 (eval "$ac_compile") 2>conftest.er1 2864 ac_status=$? 2865 grep -v '^ *+' conftest.er1 >conftest.err 2866 rm -f conftest.er1 2867 cat conftest.err >&5 2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2869 (exit $ac_status); } && { 2870 test -z "$ac_c_werror_flag" || 2871 test ! -s conftest.err 2872 } && test -s conftest.$ac_objext; then 2873 ac_compiler_gnu=yes 2874else 2875 echo "$as_me: failed program was:" >&5 2876sed 's/^/| /' conftest.$ac_ext >&5 2877 2878 ac_compiler_gnu=no 2879fi 2880 2881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2882ac_cv_c_compiler_gnu=$ac_compiler_gnu 2883 2884fi 2885{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2886echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2887GCC=`test $ac_compiler_gnu = yes && echo yes` 2888ac_test_CFLAGS=${CFLAGS+set} 2889ac_save_CFLAGS=$CFLAGS 2890{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2891echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2892if test "${ac_cv_prog_cc_g+set}" = set; then 2893 echo $ECHO_N "(cached) $ECHO_C" >&6 2894else 2895 ac_save_c_werror_flag=$ac_c_werror_flag 2896 ac_c_werror_flag=yes 2897 ac_cv_prog_cc_g=no 2898 CFLAGS="-g" 2899 cat >conftest.$ac_ext <<_ACEOF 2900/* confdefs.h. */ 2901_ACEOF 2902cat confdefs.h >>conftest.$ac_ext 2903cat >>conftest.$ac_ext <<_ACEOF 2904/* end confdefs.h. */ 2905 2906int 2907main () 2908{ 2909 2910 ; 2911 return 0; 2912} 2913_ACEOF 2914rm -f conftest.$ac_objext 2915if { (ac_try="$ac_compile" 2916case "(($ac_try" in 2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2918 *) ac_try_echo=$ac_try;; 2919esac 2920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2921 (eval "$ac_compile") 2>conftest.er1 2922 ac_status=$? 2923 grep -v '^ *+' conftest.er1 >conftest.err 2924 rm -f conftest.er1 2925 cat conftest.err >&5 2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2927 (exit $ac_status); } && { 2928 test -z "$ac_c_werror_flag" || 2929 test ! -s conftest.err 2930 } && test -s conftest.$ac_objext; then 2931 ac_cv_prog_cc_g=yes 2932else 2933 echo "$as_me: failed program was:" >&5 2934sed 's/^/| /' conftest.$ac_ext >&5 2935 2936 CFLAGS="" 2937 cat >conftest.$ac_ext <<_ACEOF 2938/* confdefs.h. */ 2939_ACEOF 2940cat confdefs.h >>conftest.$ac_ext 2941cat >>conftest.$ac_ext <<_ACEOF 2942/* end confdefs.h. */ 2943 2944int 2945main () 2946{ 2947 2948 ; 2949 return 0; 2950} 2951_ACEOF 2952rm -f conftest.$ac_objext 2953if { (ac_try="$ac_compile" 2954case "(($ac_try" in 2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2956 *) ac_try_echo=$ac_try;; 2957esac 2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2959 (eval "$ac_compile") 2>conftest.er1 2960 ac_status=$? 2961 grep -v '^ *+' conftest.er1 >conftest.err 2962 rm -f conftest.er1 2963 cat conftest.err >&5 2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2965 (exit $ac_status); } && { 2966 test -z "$ac_c_werror_flag" || 2967 test ! -s conftest.err 2968 } && test -s conftest.$ac_objext; then 2969 : 2970else 2971 echo "$as_me: failed program was:" >&5 2972sed 's/^/| /' conftest.$ac_ext >&5 2973 2974 ac_c_werror_flag=$ac_save_c_werror_flag 2975 CFLAGS="-g" 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 ac_cv_prog_cc_g=yes 3009else 3010 echo "$as_me: failed program was:" >&5 3011sed 's/^/| /' conftest.$ac_ext >&5 3012 3013 3014fi 3015 3016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3017fi 3018 3019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3020fi 3021 3022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3023 ac_c_werror_flag=$ac_save_c_werror_flag 3024fi 3025{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3026echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3027if test "$ac_test_CFLAGS" = set; then 3028 CFLAGS=$ac_save_CFLAGS 3029elif test $ac_cv_prog_cc_g = yes; then 3030 if test "$GCC" = yes; then 3031 CFLAGS="-g -O2" 3032 else 3033 CFLAGS="-g" 3034 fi 3035else 3036 if test "$GCC" = yes; then 3037 CFLAGS="-O2" 3038 else 3039 CFLAGS= 3040 fi 3041fi 3042{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3043echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3044if test "${ac_cv_prog_cc_c89+set}" = set; then 3045 echo $ECHO_N "(cached) $ECHO_C" >&6 3046else 3047 ac_cv_prog_cc_c89=no 3048ac_save_CC=$CC 3049cat >conftest.$ac_ext <<_ACEOF 3050/* confdefs.h. */ 3051_ACEOF 3052cat confdefs.h >>conftest.$ac_ext 3053cat >>conftest.$ac_ext <<_ACEOF 3054/* end confdefs.h. */ 3055#include <stdarg.h> 3056#include <stdio.h> 3057#include <sys/types.h> 3058#include <sys/stat.h> 3059/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3060struct buf { int x; }; 3061FILE * (*rcsopen) (struct buf *, struct stat *, int); 3062static char *e (p, i) 3063 char **p; 3064 int i; 3065{ 3066 return p[i]; 3067} 3068static char *f (char * (*g) (char **, int), char **p, ...) 3069{ 3070 char *s; 3071 va_list v; 3072 va_start (v,p); 3073 s = g (p, va_arg (v,int)); 3074 va_end (v); 3075 return s; 3076} 3077 3078/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3079 function prototypes and stuff, but not '\xHH' hex character constants. 3080 These don't provoke an error unfortunately, instead are silently treated 3081 as 'x'. The following induces an error, until -std is added to get 3082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3083 array size at least. It's necessary to write '\x00'==0 to get something 3084 that's true only with -std. */ 3085int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3086 3087/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3088 inside strings and character constants. */ 3089#define FOO(x) 'x' 3090int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3091 3092int test (int i, double x); 3093struct s1 {int (*f) (int a);}; 3094struct s2 {int (*f) (double a);}; 3095int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3096int argc; 3097char **argv; 3098int 3099main () 3100{ 3101return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3102 ; 3103 return 0; 3104} 3105_ACEOF 3106for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3108do 3109 CC="$ac_save_CC $ac_arg" 3110 rm -f conftest.$ac_objext 3111if { (ac_try="$ac_compile" 3112case "(($ac_try" in 3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114 *) ac_try_echo=$ac_try;; 3115esac 3116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3117 (eval "$ac_compile") 2>conftest.er1 3118 ac_status=$? 3119 grep -v '^ *+' conftest.er1 >conftest.err 3120 rm -f conftest.er1 3121 cat conftest.err >&5 3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3123 (exit $ac_status); } && { 3124 test -z "$ac_c_werror_flag" || 3125 test ! -s conftest.err 3126 } && test -s conftest.$ac_objext; then 3127 ac_cv_prog_cc_c89=$ac_arg 3128else 3129 echo "$as_me: failed program was:" >&5 3130sed 's/^/| /' conftest.$ac_ext >&5 3131 3132 3133fi 3134 3135rm -f core conftest.err conftest.$ac_objext 3136 test "x$ac_cv_prog_cc_c89" != "xno" && break 3137done 3138rm -f conftest.$ac_ext 3139CC=$ac_save_CC 3140 3141fi 3142# AC_CACHE_VAL 3143case "x$ac_cv_prog_cc_c89" in 3144 x) 3145 { echo "$as_me:$LINENO: result: none needed" >&5 3146echo "${ECHO_T}none needed" >&6; } ;; 3147 xno) 3148 { echo "$as_me:$LINENO: result: unsupported" >&5 3149echo "${ECHO_T}unsupported" >&6; } ;; 3150 *) 3151 CC="$CC $ac_cv_prog_cc_c89" 3152 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3153echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3154esac 3155 3156 3157ac_ext=c 3158ac_cpp='$CPP $CPPFLAGS' 3159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3161ac_compiler_gnu=$ac_cv_c_compiler_gnu 3162 3163ac_ext=c 3164ac_cpp='$CPP $CPPFLAGS' 3165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3167ac_compiler_gnu=$ac_cv_c_compiler_gnu 3168{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3169echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3170# On Suns, sometimes $CPP names a directory. 3171if test -n "$CPP" && test -d "$CPP"; then 3172 CPP= 3173fi 3174if test -z "$CPP"; then 3175 if test "${ac_cv_prog_CPP+set}" = set; then 3176 echo $ECHO_N "(cached) $ECHO_C" >&6 3177else 3178 # Double quotes because CPP needs to be expanded 3179 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3180 do 3181 ac_preproc_ok=false 3182for ac_c_preproc_warn_flag in '' yes 3183do 3184 # Use a header file that comes with gcc, so configuring glibc 3185 # with a fresh cross-compiler works. 3186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3187 # <limits.h> exists even on freestanding compilers. 3188 # On the NeXT, cc -E runs the code through the compiler's parser, 3189 # not just through cpp. "Syntax error" is here to catch this case. 3190 cat >conftest.$ac_ext <<_ACEOF 3191/* confdefs.h. */ 3192_ACEOF 3193cat confdefs.h >>conftest.$ac_ext 3194cat >>conftest.$ac_ext <<_ACEOF 3195/* end confdefs.h. */ 3196#ifdef __STDC__ 3197# include <limits.h> 3198#else 3199# include <assert.h> 3200#endif 3201 Syntax error 3202_ACEOF 3203if { (ac_try="$ac_cpp conftest.$ac_ext" 3204case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207esac 3208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3210 ac_status=$? 3211 grep -v '^ *+' conftest.er1 >conftest.err 3212 rm -f conftest.er1 3213 cat conftest.err >&5 3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3215 (exit $ac_status); } >/dev/null && { 3216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3217 test ! -s conftest.err 3218 }; then 3219 : 3220else 3221 echo "$as_me: failed program was:" >&5 3222sed 's/^/| /' conftest.$ac_ext >&5 3223 3224 # Broken: fails on valid input. 3225continue 3226fi 3227 3228rm -f conftest.err conftest.$ac_ext 3229 3230 # OK, works on sane cases. Now check whether nonexistent headers 3231 # can be detected and how. 3232 cat >conftest.$ac_ext <<_ACEOF 3233/* confdefs.h. */ 3234_ACEOF 3235cat confdefs.h >>conftest.$ac_ext 3236cat >>conftest.$ac_ext <<_ACEOF 3237/* end confdefs.h. */ 3238#include <ac_nonexistent.h> 3239_ACEOF 3240if { (ac_try="$ac_cpp conftest.$ac_ext" 3241case "(($ac_try" in 3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3243 *) ac_try_echo=$ac_try;; 3244esac 3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3247 ac_status=$? 3248 grep -v '^ *+' conftest.er1 >conftest.err 3249 rm -f conftest.er1 3250 cat conftest.err >&5 3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3252 (exit $ac_status); } >/dev/null && { 3253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3254 test ! -s conftest.err 3255 }; then 3256 # Broken: success on invalid input. 3257continue 3258else 3259 echo "$as_me: failed program was:" >&5 3260sed 's/^/| /' conftest.$ac_ext >&5 3261 3262 # Passes both tests. 3263ac_preproc_ok=: 3264break 3265fi 3266 3267rm -f conftest.err conftest.$ac_ext 3268 3269done 3270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3271rm -f conftest.err conftest.$ac_ext 3272if $ac_preproc_ok; then 3273 break 3274fi 3275 3276 done 3277 ac_cv_prog_CPP=$CPP 3278 3279fi 3280 CPP=$ac_cv_prog_CPP 3281else 3282 ac_cv_prog_CPP=$CPP 3283fi 3284{ echo "$as_me:$LINENO: result: $CPP" >&5 3285echo "${ECHO_T}$CPP" >&6; } 3286ac_preproc_ok=false 3287for ac_c_preproc_warn_flag in '' yes 3288do 3289 # Use a header file that comes with gcc, so configuring glibc 3290 # with a fresh cross-compiler works. 3291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3292 # <limits.h> exists even on freestanding compilers. 3293 # On the NeXT, cc -E runs the code through the compiler's parser, 3294 # not just through cpp. "Syntax error" is here to catch this case. 3295 cat >conftest.$ac_ext <<_ACEOF 3296/* confdefs.h. */ 3297_ACEOF 3298cat confdefs.h >>conftest.$ac_ext 3299cat >>conftest.$ac_ext <<_ACEOF 3300/* end confdefs.h. */ 3301#ifdef __STDC__ 3302# include <limits.h> 3303#else 3304# include <assert.h> 3305#endif 3306 Syntax error 3307_ACEOF 3308if { (ac_try="$ac_cpp conftest.$ac_ext" 3309case "(($ac_try" in 3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3311 *) ac_try_echo=$ac_try;; 3312esac 3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3315 ac_status=$? 3316 grep -v '^ *+' conftest.er1 >conftest.err 3317 rm -f conftest.er1 3318 cat conftest.err >&5 3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3320 (exit $ac_status); } >/dev/null && { 3321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3322 test ! -s conftest.err 3323 }; then 3324 : 3325else 3326 echo "$as_me: failed program was:" >&5 3327sed 's/^/| /' conftest.$ac_ext >&5 3328 3329 # Broken: fails on valid input. 3330continue 3331fi 3332 3333rm -f conftest.err conftest.$ac_ext 3334 3335 # OK, works on sane cases. Now check whether nonexistent headers 3336 # can be detected and how. 3337 cat >conftest.$ac_ext <<_ACEOF 3338/* confdefs.h. */ 3339_ACEOF 3340cat confdefs.h >>conftest.$ac_ext 3341cat >>conftest.$ac_ext <<_ACEOF 3342/* end confdefs.h. */ 3343#include <ac_nonexistent.h> 3344_ACEOF 3345if { (ac_try="$ac_cpp conftest.$ac_ext" 3346case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3352 ac_status=$? 3353 grep -v '^ *+' conftest.er1 >conftest.err 3354 rm -f conftest.er1 3355 cat conftest.err >&5 3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3357 (exit $ac_status); } >/dev/null && { 3358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3359 test ! -s conftest.err 3360 }; then 3361 # Broken: success on invalid input. 3362continue 3363else 3364 echo "$as_me: failed program was:" >&5 3365sed 's/^/| /' conftest.$ac_ext >&5 3366 3367 # Passes both tests. 3368ac_preproc_ok=: 3369break 3370fi 3371 3372rm -f conftest.err conftest.$ac_ext 3373 3374done 3375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3376rm -f conftest.err conftest.$ac_ext 3377if $ac_preproc_ok; then 3378 : 3379else 3380 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3381See \`config.log' for more details." >&5 3382echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3383See \`config.log' for more details." >&2;} 3384 { (exit 1); exit 1; }; } 3385fi 3386 3387ac_ext=c 3388ac_cpp='$CPP $CPPFLAGS' 3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3391ac_compiler_gnu=$ac_cv_c_compiler_gnu 3392 3393if test $ac_cv_c_compiler_gnu = yes; then 3394 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 3395echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } 3396if test "${ac_cv_prog_gcc_traditional+set}" = set; then 3397 echo $ECHO_N "(cached) $ECHO_C" >&6 3398else 3399 ac_pattern="Autoconf.*'x'" 3400 cat >conftest.$ac_ext <<_ACEOF 3401/* confdefs.h. */ 3402_ACEOF 3403cat confdefs.h >>conftest.$ac_ext 3404cat >>conftest.$ac_ext <<_ACEOF 3405/* end confdefs.h. */ 3406#include <sgtty.h> 3407Autoconf TIOCGETP 3408_ACEOF 3409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3410 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3411 ac_cv_prog_gcc_traditional=yes 3412else 3413 ac_cv_prog_gcc_traditional=no 3414fi 3415rm -f conftest* 3416 3417 3418 if test $ac_cv_prog_gcc_traditional = no; then 3419 cat >conftest.$ac_ext <<_ACEOF 3420/* confdefs.h. */ 3421_ACEOF 3422cat confdefs.h >>conftest.$ac_ext 3423cat >>conftest.$ac_ext <<_ACEOF 3424/* end confdefs.h. */ 3425#include <termio.h> 3426Autoconf TCGETA 3427_ACEOF 3428if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3429 $EGREP "$ac_pattern" >/dev/null 2>&1; then 3430 ac_cv_prog_gcc_traditional=yes 3431fi 3432rm -f conftest* 3433 3434 fi 3435fi 3436{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 3437echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } 3438 if test $ac_cv_prog_gcc_traditional = yes; then 3439 CC="$CC -traditional" 3440 fi 3441fi 3442 3443{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 3444echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 3445if test "${ac_cv_search_strerror+set}" = set; then 3446 echo $ECHO_N "(cached) $ECHO_C" >&6 3447else 3448 ac_func_search_save_LIBS=$LIBS 3449cat >conftest.$ac_ext <<_ACEOF 3450/* confdefs.h. */ 3451_ACEOF 3452cat confdefs.h >>conftest.$ac_ext 3453cat >>conftest.$ac_ext <<_ACEOF 3454/* end confdefs.h. */ 3455 3456/* Override any GCC internal prototype to avoid an error. 3457 Use char because int might match the return type of a GCC 3458 builtin and then its argument prototype would still apply. */ 3459#ifdef __cplusplus 3460extern "C" 3461#endif 3462char strerror (); 3463int 3464main () 3465{ 3466return strerror (); 3467 ; 3468 return 0; 3469} 3470_ACEOF 3471for ac_lib in '' cposix; do 3472 if test -z "$ac_lib"; then 3473 ac_res="none required" 3474 else 3475 ac_res=-l$ac_lib 3476 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3477 fi 3478 rm -f conftest.$ac_objext conftest$ac_exeext 3479if { (ac_try="$ac_link" 3480case "(($ac_try" in 3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3482 *) ac_try_echo=$ac_try;; 3483esac 3484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3485 (eval "$ac_link") 2>conftest.er1 3486 ac_status=$? 3487 grep -v '^ *+' conftest.er1 >conftest.err 3488 rm -f conftest.er1 3489 cat conftest.err >&5 3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3491 (exit $ac_status); } && { 3492 test -z "$ac_c_werror_flag" || 3493 test ! -s conftest.err 3494 } && test -s conftest$ac_exeext && 3495 $as_test_x conftest$ac_exeext; then 3496 ac_cv_search_strerror=$ac_res 3497else 3498 echo "$as_me: failed program was:" >&5 3499sed 's/^/| /' conftest.$ac_ext >&5 3500 3501 3502fi 3503 3504rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3505 conftest$ac_exeext 3506 if test "${ac_cv_search_strerror+set}" = set; then 3507 break 3508fi 3509done 3510if test "${ac_cv_search_strerror+set}" = set; then 3511 : 3512else 3513 ac_cv_search_strerror=no 3514fi 3515rm conftest.$ac_ext 3516LIBS=$ac_func_search_save_LIBS 3517fi 3518{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 3519echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 3520ac_res=$ac_cv_search_strerror 3521if test "$ac_res" != no; then 3522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3523 3524fi 3525 3526 3527{ echo "$as_me:$LINENO: checking for AIX" >&5 3528echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 3529cat >conftest.$ac_ext <<_ACEOF 3530/* confdefs.h. */ 3531_ACEOF 3532cat confdefs.h >>conftest.$ac_ext 3533cat >>conftest.$ac_ext <<_ACEOF 3534/* end confdefs.h. */ 3535#ifdef _AIX 3536 yes 3537#endif 3538 3539_ACEOF 3540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3541 $EGREP "yes" >/dev/null 2>&1; then 3542 { echo "$as_me:$LINENO: result: yes" >&5 3543echo "${ECHO_T}yes" >&6; } 3544cat >>confdefs.h <<\_ACEOF 3545#define _ALL_SOURCE 1 3546_ACEOF 3547 3548else 3549 { echo "$as_me:$LINENO: result: no" >&5 3550echo "${ECHO_T}no" >&6; } 3551fi 3552rm -f conftest* 3553 3554 3555 3556cat >conftest.$ac_ext <<_ACEOF 3557/* confdefs.h. */ 3558_ACEOF 3559cat confdefs.h >>conftest.$ac_ext 3560cat >>conftest.$ac_ext <<_ACEOF 3561/* end confdefs.h. */ 3562#ifdef hpux 3563 yes 3564#endif 3565 3566_ACEOF 3567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3568 $EGREP "yes" >/dev/null 2>&1; then 3569 3570cat >>confdefs.h <<\_ACEOF 3571#define _HPUX_SOURCE 1 3572_ACEOF 3573 3574if test "$CC" = cc; then CC="cc -Ae"; fi 3575 3576fi 3577rm -f conftest* 3578{ echo "$as_me:$LINENO: checking C compiler that understands ANSI prototypes" >&5 3579echo $ECHO_N "checking C compiler that understands ANSI prototypes... $ECHO_C" >&6; } 3580cat >conftest.$ac_ext <<_ACEOF 3581/* confdefs.h. */ 3582_ACEOF 3583cat confdefs.h >>conftest.$ac_ext 3584cat >>conftest.$ac_ext <<_ACEOF 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590 3591 extern int silly (int); 3592 ; 3593 return 0; 3594} 3595_ACEOF 3596rm -f conftest.$ac_objext 3597if { (ac_try="$ac_compile" 3598case "(($ac_try" in 3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3600 *) ac_try_echo=$ac_try;; 3601esac 3602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3603 (eval "$ac_compile") 2>conftest.er1 3604 ac_status=$? 3605 grep -v '^ *+' conftest.er1 >conftest.err 3606 rm -f conftest.er1 3607 cat conftest.err >&5 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3609 (exit $ac_status); } && { 3610 test -z "$ac_c_werror_flag" || 3611 test ! -s conftest.err 3612 } && test -s conftest.$ac_objext; then 3613 3614 { echo "$as_me:$LINENO: result: $CC looks ok. Good." >&5 3615echo "${ECHO_T}$CC looks ok. Good." >&6; } 3616else 3617 echo "$as_me: failed program was:" >&5 3618sed 's/^/| /' conftest.$ac_ext >&5 3619 3620 3621 { echo "$as_me:$LINENO: result: $CC is not a good enough compiler" >&5 3622echo "${ECHO_T}$CC is not a good enough compiler" >&6; } 3623 { { echo "$as_me:$LINENO: error: Set env variable CC to your ANSI compiler and rerun configure." >&5 3624echo "$as_me: error: Set env variable CC to your ANSI compiler and rerun configure." >&2;} 3625 { (exit 1); exit 1; }; } 3626 3627fi 3628 3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3630{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3631echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3632if test "${ac_cv_header_stdc+set}" = set; then 3633 echo $ECHO_N "(cached) $ECHO_C" >&6 3634else 3635 cat >conftest.$ac_ext <<_ACEOF 3636/* confdefs.h. */ 3637_ACEOF 3638cat confdefs.h >>conftest.$ac_ext 3639cat >>conftest.$ac_ext <<_ACEOF 3640/* end confdefs.h. */ 3641#include <stdlib.h> 3642#include <stdarg.h> 3643#include <string.h> 3644#include <float.h> 3645 3646int 3647main () 3648{ 3649 3650 ; 3651 return 0; 3652} 3653_ACEOF 3654rm -f conftest.$ac_objext 3655if { (ac_try="$ac_compile" 3656case "(($ac_try" in 3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3658 *) ac_try_echo=$ac_try;; 3659esac 3660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3661 (eval "$ac_compile") 2>conftest.er1 3662 ac_status=$? 3663 grep -v '^ *+' conftest.er1 >conftest.err 3664 rm -f conftest.er1 3665 cat conftest.err >&5 3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3667 (exit $ac_status); } && { 3668 test -z "$ac_c_werror_flag" || 3669 test ! -s conftest.err 3670 } && test -s conftest.$ac_objext; then 3671 ac_cv_header_stdc=yes 3672else 3673 echo "$as_me: failed program was:" >&5 3674sed 's/^/| /' conftest.$ac_ext >&5 3675 3676 ac_cv_header_stdc=no 3677fi 3678 3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3680 3681if test $ac_cv_header_stdc = yes; then 3682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3683 cat >conftest.$ac_ext <<_ACEOF 3684/* confdefs.h. */ 3685_ACEOF 3686cat confdefs.h >>conftest.$ac_ext 3687cat >>conftest.$ac_ext <<_ACEOF 3688/* end confdefs.h. */ 3689#include <string.h> 3690 3691_ACEOF 3692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3693 $EGREP "memchr" >/dev/null 2>&1; then 3694 : 3695else 3696 ac_cv_header_stdc=no 3697fi 3698rm -f conftest* 3699 3700fi 3701 3702if test $ac_cv_header_stdc = yes; then 3703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3704 cat >conftest.$ac_ext <<_ACEOF 3705/* confdefs.h. */ 3706_ACEOF 3707cat confdefs.h >>conftest.$ac_ext 3708cat >>conftest.$ac_ext <<_ACEOF 3709/* end confdefs.h. */ 3710#include <stdlib.h> 3711 3712_ACEOF 3713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3714 $EGREP "free" >/dev/null 2>&1; then 3715 : 3716else 3717 ac_cv_header_stdc=no 3718fi 3719rm -f conftest* 3720 3721fi 3722 3723if test $ac_cv_header_stdc = yes; then 3724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3725 if test "$cross_compiling" = yes; then 3726 : 3727else 3728 cat >conftest.$ac_ext <<_ACEOF 3729/* confdefs.h. */ 3730_ACEOF 3731cat confdefs.h >>conftest.$ac_ext 3732cat >>conftest.$ac_ext <<_ACEOF 3733/* end confdefs.h. */ 3734#include <ctype.h> 3735#include <stdlib.h> 3736#if ((' ' & 0x0FF) == 0x020) 3737# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3738# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3739#else 3740# define ISLOWER(c) \ 3741 (('a' <= (c) && (c) <= 'i') \ 3742 || ('j' <= (c) && (c) <= 'r') \ 3743 || ('s' <= (c) && (c) <= 'z')) 3744# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3745#endif 3746 3747#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3748int 3749main () 3750{ 3751 int i; 3752 for (i = 0; i < 256; i++) 3753 if (XOR (islower (i), ISLOWER (i)) 3754 || toupper (i) != TOUPPER (i)) 3755 return 2; 3756 return 0; 3757} 3758_ACEOF 3759rm -f conftest$ac_exeext 3760if { (ac_try="$ac_link" 3761case "(($ac_try" in 3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3763 *) ac_try_echo=$ac_try;; 3764esac 3765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3766 (eval "$ac_link") 2>&5 3767 ac_status=$? 3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3770 { (case "(($ac_try" in 3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3772 *) ac_try_echo=$ac_try;; 3773esac 3774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3775 (eval "$ac_try") 2>&5 3776 ac_status=$? 3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3778 (exit $ac_status); }; }; then 3779 : 3780else 3781 echo "$as_me: program exited with status $ac_status" >&5 3782echo "$as_me: failed program was:" >&5 3783sed 's/^/| /' conftest.$ac_ext >&5 3784 3785( exit $ac_status ) 3786ac_cv_header_stdc=no 3787fi 3788rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3789fi 3790 3791 3792fi 3793fi 3794{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3795echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3796if test $ac_cv_header_stdc = yes; then 3797 3798cat >>confdefs.h <<\_ACEOF 3799#define STDC_HEADERS 1 3800_ACEOF 3801 3802fi 3803 3804# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3815 inttypes.h stdint.h unistd.h 3816do 3817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3818{ echo "$as_me:$LINENO: checking for $ac_header" >&5 3819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 3820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3821 echo $ECHO_N "(cached) $ECHO_C" >&6 3822else 3823 cat >conftest.$ac_ext <<_ACEOF 3824/* confdefs.h. */ 3825_ACEOF 3826cat confdefs.h >>conftest.$ac_ext 3827cat >>conftest.$ac_ext <<_ACEOF 3828/* end confdefs.h. */ 3829$ac_includes_default 3830 3831#include <$ac_header> 3832_ACEOF 3833rm -f conftest.$ac_objext 3834if { (ac_try="$ac_compile" 3835case "(($ac_try" in 3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3837 *) ac_try_echo=$ac_try;; 3838esac 3839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3840 (eval "$ac_compile") 2>conftest.er1 3841 ac_status=$? 3842 grep -v '^ *+' conftest.er1 >conftest.err 3843 rm -f conftest.er1 3844 cat conftest.err >&5 3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 (exit $ac_status); } && { 3847 test -z "$ac_c_werror_flag" || 3848 test ! -s conftest.err 3849 } && test -s conftest.$ac_objext; then 3850 eval "$as_ac_Header=yes" 3851else 3852 echo "$as_me: failed program was:" >&5 3853sed 's/^/| /' conftest.$ac_ext >&5 3854 3855 eval "$as_ac_Header=no" 3856fi 3857 3858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3859fi 3860ac_res=`eval echo '${'$as_ac_Header'}'` 3861 { echo "$as_me:$LINENO: result: $ac_res" >&5 3862echo "${ECHO_T}$ac_res" >&6; } 3863if test `eval echo '${'$as_ac_Header'}'` = yes; then 3864 cat >>confdefs.h <<_ACEOF 3865#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3866_ACEOF 3867 3868fi 3869 3870done 3871 3872 3873 3874DYNAMIC_LINK_LIB="" 3875if test "${ac_cv_header_dlfcn_h+set}" = set; then 3876 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5 3877echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 3878if test "${ac_cv_header_dlfcn_h+set}" = set; then 3879 echo $ECHO_N "(cached) $ECHO_C" >&6 3880fi 3881{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 3882echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 3883else 3884 # Is the header compilable? 3885{ echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 3886echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; } 3887cat >conftest.$ac_ext <<_ACEOF 3888/* confdefs.h. */ 3889_ACEOF 3890cat confdefs.h >>conftest.$ac_ext 3891cat >>conftest.$ac_ext <<_ACEOF 3892/* end confdefs.h. */ 3893$ac_includes_default 3894#include <dlfcn.h> 3895_ACEOF 3896rm -f conftest.$ac_objext 3897if { (ac_try="$ac_compile" 3898case "(($ac_try" in 3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3900 *) ac_try_echo=$ac_try;; 3901esac 3902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3903 (eval "$ac_compile") 2>conftest.er1 3904 ac_status=$? 3905 grep -v '^ *+' conftest.er1 >conftest.err 3906 rm -f conftest.er1 3907 cat conftest.err >&5 3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3909 (exit $ac_status); } && { 3910 test -z "$ac_c_werror_flag" || 3911 test ! -s conftest.err 3912 } && test -s conftest.$ac_objext; then 3913 ac_header_compiler=yes 3914else 3915 echo "$as_me: failed program was:" >&5 3916sed 's/^/| /' conftest.$ac_ext >&5 3917 3918 ac_header_compiler=no 3919fi 3920 3921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3922{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3923echo "${ECHO_T}$ac_header_compiler" >&6; } 3924 3925# Is the header present? 3926{ echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 3927echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; } 3928cat >conftest.$ac_ext <<_ACEOF 3929/* confdefs.h. */ 3930_ACEOF 3931cat confdefs.h >>conftest.$ac_ext 3932cat >>conftest.$ac_ext <<_ACEOF 3933/* end confdefs.h. */ 3934#include <dlfcn.h> 3935_ACEOF 3936if { (ac_try="$ac_cpp conftest.$ac_ext" 3937case "(($ac_try" in 3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3939 *) ac_try_echo=$ac_try;; 3940esac 3941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3943 ac_status=$? 3944 grep -v '^ *+' conftest.er1 >conftest.err 3945 rm -f conftest.er1 3946 cat conftest.err >&5 3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3948 (exit $ac_status); } >/dev/null && { 3949 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3950 test ! -s conftest.err 3951 }; then 3952 ac_header_preproc=yes 3953else 3954 echo "$as_me: failed program was:" >&5 3955sed 's/^/| /' conftest.$ac_ext >&5 3956 3957 ac_header_preproc=no 3958fi 3959 3960rm -f conftest.err conftest.$ac_ext 3961{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3962echo "${ECHO_T}$ac_header_preproc" >&6; } 3963 3964# So? What about this header? 3965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3966 yes:no: ) 3967 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 3968echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3969 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 3970echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 3971 ac_header_preproc=yes 3972 ;; 3973 no:yes:* ) 3974 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 3975echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 3976 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 3977echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 3978 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 3979echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 3980 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 3981echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 3982 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 3983echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 3984 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 3985echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 3986 3987 ;; 3988esac 3989{ echo "$as_me:$LINENO: checking for dlfcn.h" >&5 3990echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; } 3991if test "${ac_cv_header_dlfcn_h+set}" = set; then 3992 echo $ECHO_N "(cached) $ECHO_C" >&6 3993else 3994 ac_cv_header_dlfcn_h=$ac_header_preproc 3995fi 3996{ echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 3997echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; } 3998 3999fi 4000if test $ac_cv_header_dlfcn_h = yes; then 4001 4002 cat >>confdefs.h <<\_ACEOF 4003#define HAVE_DLFCN_H 1 4004_ACEOF 4005 4006 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 4007echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } 4008if test "${ac_cv_lib_dl_dlopen+set}" = set; then 4009 echo $ECHO_N "(cached) $ECHO_C" >&6 4010else 4011 ac_check_lib_save_LIBS=$LIBS 4012LIBS="-ldl $LIBS" 4013cat >conftest.$ac_ext <<_ACEOF 4014/* confdefs.h. */ 4015_ACEOF 4016cat confdefs.h >>conftest.$ac_ext 4017cat >>conftest.$ac_ext <<_ACEOF 4018/* end confdefs.h. */ 4019 4020/* Override any GCC internal prototype to avoid an error. 4021 Use char because int might match the return type of a GCC 4022 builtin and then its argument prototype would still apply. */ 4023#ifdef __cplusplus 4024extern "C" 4025#endif 4026char dlopen (); 4027int 4028main () 4029{ 4030return dlopen (); 4031 ; 4032 return 0; 4033} 4034_ACEOF 4035rm -f conftest.$ac_objext conftest$ac_exeext 4036if { (ac_try="$ac_link" 4037case "(($ac_try" in 4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4039 *) ac_try_echo=$ac_try;; 4040esac 4041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4042 (eval "$ac_link") 2>conftest.er1 4043 ac_status=$? 4044 grep -v '^ *+' conftest.er1 >conftest.err 4045 rm -f conftest.er1 4046 cat conftest.err >&5 4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4048 (exit $ac_status); } && { 4049 test -z "$ac_c_werror_flag" || 4050 test ! -s conftest.err 4051 } && test -s conftest$ac_exeext && 4052 $as_test_x conftest$ac_exeext; then 4053 ac_cv_lib_dl_dlopen=yes 4054else 4055 echo "$as_me: failed program was:" >&5 4056sed 's/^/| /' conftest.$ac_ext >&5 4057 4058 ac_cv_lib_dl_dlopen=no 4059fi 4060 4061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4062 conftest$ac_exeext conftest.$ac_ext 4063LIBS=$ac_check_lib_save_LIBS 4064fi 4065{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 4066echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } 4067if test $ac_cv_lib_dl_dlopen = yes; then 4068 4069 DYNAMIC_LINK_LIB="-ldl" 4070 cat >>confdefs.h <<\_ACEOF 4071#define HAVE_DLOPEN 1 4072_ACEOF 4073 4074 4075else 4076 4077 { echo "$as_me:$LINENO: checking for dlopen" >&5 4078echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } 4079if test "${ac_cv_func_dlopen+set}" = set; then 4080 echo $ECHO_N "(cached) $ECHO_C" >&6 4081else 4082 cat >conftest.$ac_ext <<_ACEOF 4083/* confdefs.h. */ 4084_ACEOF 4085cat confdefs.h >>conftest.$ac_ext 4086cat >>conftest.$ac_ext <<_ACEOF 4087/* end confdefs.h. */ 4088/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 4089 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4090#define dlopen innocuous_dlopen 4091 4092/* System header to define __stub macros and hopefully few prototypes, 4093 which can conflict with char dlopen (); below. 4094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4095 <limits.h> exists even on freestanding compilers. */ 4096 4097#ifdef __STDC__ 4098# include <limits.h> 4099#else 4100# include <assert.h> 4101#endif 4102 4103#undef dlopen 4104 4105/* Override any GCC internal prototype to avoid an error. 4106 Use char because int might match the return type of a GCC 4107 builtin and then its argument prototype would still apply. */ 4108#ifdef __cplusplus 4109extern "C" 4110#endif 4111char dlopen (); 4112/* The GNU C library defines this for functions which it implements 4113 to always fail with ENOSYS. Some functions are actually named 4114 something starting with __ and the normal name is an alias. */ 4115#if defined __stub_dlopen || defined __stub___dlopen 4116choke me 4117#endif 4118 4119int 4120main () 4121{ 4122return dlopen (); 4123 ; 4124 return 0; 4125} 4126_ACEOF 4127rm -f conftest.$ac_objext conftest$ac_exeext 4128if { (ac_try="$ac_link" 4129case "(($ac_try" in 4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4131 *) ac_try_echo=$ac_try;; 4132esac 4133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4134 (eval "$ac_link") 2>conftest.er1 4135 ac_status=$? 4136 grep -v '^ *+' conftest.er1 >conftest.err 4137 rm -f conftest.er1 4138 cat conftest.err >&5 4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4140 (exit $ac_status); } && { 4141 test -z "$ac_c_werror_flag" || 4142 test ! -s conftest.err 4143 } && test -s conftest$ac_exeext && 4144 $as_test_x conftest$ac_exeext; then 4145 ac_cv_func_dlopen=yes 4146else 4147 echo "$as_me: failed program was:" >&5 4148sed 's/^/| /' conftest.$ac_ext >&5 4149 4150 ac_cv_func_dlopen=no 4151fi 4152 4153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4154 conftest$ac_exeext conftest.$ac_ext 4155fi 4156{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 4157echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } 4158if test $ac_cv_func_dlopen = yes; then 4159 cat >>confdefs.h <<\_ACEOF 4160#define HAVE_DLOPEN 1 4161_ACEOF 4162 4163fi 4164 4165 if test "$ac_cv_func_dlopen" != yes 4166 then 4167 { echo "$as_me:$LINENO: WARNING: cannot perform dynamic linking" >&5 4168echo "$as_me: WARNING: cannot perform dynamic linking" >&2;} 4169 fi 4170 4171fi 4172 4173fi 4174 4175 4176 4177 4178 4179if test "$GCC" = yes 4180then 4181 if test X"$CFLAGS" = X 4182 then 4183 CFLAGS="-O2" 4184 fi 4185fi 4186 4187ELFLIB="lib\$(THIS_LIB).so" 4188ELFLIB_MAJOR="\$(ELFLIB).\$(ELF_MAJOR_VERSION)" 4189ELFLIB_MAJOR_MINOR="\$(ELFLIB_MAJOR).\$(ELF_MINOR_VERSION)" 4190ELFLIB_MAJOR_MINOR_MICRO="\$(ELFLIB_MAJOR_MINOR).\$(ELF_MICRO_VERSION)" 4191 4192INSTALL_ELFLIB_TARGET="install-elf-and-links" 4193ELFLIB_BUILD_NAME="\$(ELFLIB_MAJOR_MINOR_MICRO)" 4194INSTALL_MODULE="\$(INSTALL_DATA)" 4195SLANG_DLL_CFLAGS="" 4196 4197case "$host_os" in 4198 *linux*|*gnu*|k*bsd*-gnu ) 4199 DYNAMIC_LINK_FLAGS="-Wl,-export-dynamic" 4200 ELF_CC="\$(CC)" 4201 ELF_CFLAGS="\$(CFLAGS) -fPIC" 4202 ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-O1 -Wl,--version-script,\$(VERSION_SCRIPT) -Wl,-soname,\$(ELFLIB_MAJOR)" 4203 ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" 4204 CC_SHARED="\$(CC) \$(CFLAGS) -shared -fPIC" 4205 ;; 4206 *solaris* ) 4207 if test "$GCC" = yes 4208 then 4209 DYNAMIC_LINK_FLAGS="" 4210 ELF_CC="\$(CC)" 4211 ELF_CFLAGS="\$(CFLAGS) -fPIC" 4212 ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-ztext -Wl,-h,\$(ELFLIB_MAJOR)" 4213 ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" 4214 CC_SHARED="\$(CC) \$(CFLAGS) -G -fPIC" 4215 else 4216 DYNAMIC_LINK_FLAGS="" 4217 ELF_CC="\$(CC)" 4218 ELF_CFLAGS="\$(CFLAGS) -K PIC" 4219 ELF_LINK="\$(CC) \$(LDFLAGS) -G -h\$(ELFLIB_MAJOR)" 4220 ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" 4221 CC_SHARED="\$(CC) \$(CFLAGS) -G -K PIC" 4222 fi 4223 ;; 4224 # osr5 or unixware7 with current or late autoconf 4225 *sco3.2v5* | *unixware-5* | *sco-sysv5uw7*) 4226 if test "$GCC" = yes 4227 then 4228 DYNAMIC_LINK_FLAGS="" 4229 ELF_CC="\$(CC)" 4230 ELF_CFLAGS="\$(CFLAGS) -fPIC" 4231 ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-h,\$(ELFLIB_MAJOR)" 4232 ELF_DEP_LIBS= 4233 CC_SHARED="\$(CC) \$(CFLAGS) -G -fPIC" 4234 else 4235 DYNAMIC_LINK_FLAGS="" 4236 ELF_CC="\$(CC)" 4237 ELF_CFLAGS="\$(CFLAGS) -K pic" 4238 # ELF_LINK="ld -G -z text -h#" 4239 ELF_LINK="\$(CC) \$(LDFLAGS) -G -z text -h\$(ELFLIB_MAJOR)" 4240 ELF_DEP_LIBS= 4241 CC_SHARED="\$(CC) \$(CFLAGS) -G -K pic" 4242 fi 4243 ;; 4244 *irix6.5* ) 4245 echo "Note: ELF compiler for host_os=$host_os may not be correct" 4246 echo "double-check: 'mode_t', 'pid_t' may be wrong!" 4247 if test "$GCC" = yes 4248 then 4249 # not tested 4250 DYNAMIC_LINK_FLAGS="" 4251 ELF_CC="\$(CC)" 4252 ELF_CFLAGS="\$(CFLAGS) -fPIC" 4253 ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-h,\$(ELFLIB_MAJOR)" 4254 ELF_DEP_LIBS= 4255 CC_SHARED="\$(CC) \$(CFLAGS) -shared -fPIC" 4256 else 4257 DYNAMIC_LINK_FLAGS="" 4258 ELF_CC="\$(CC)" 4259 ELF_CFLAGS="\$(CFLAGS)" # default anyhow 4260 ELF_LINK="\$(CC) \$(LDFLAGS) -shared -o \$(ELFLIB_MAJOR)" 4261 ELF_DEP_LIBS= 4262 CC_SHARED="\$(CC) \$(CFLAGS) -shared" 4263 fi 4264 ;; 4265 *darwin* ) 4266 DYNAMIC_LINK_FLAGS="" 4267 ELF_CC="\$(CC)" 4268 ELF_CFLAGS="\$(CFLAGS) -fno-common" 4269 ELF_LINK="\$(CC) \$(LDFLAGS) -dynamiclib -install_name \$(install_lib_dir)/\$(ELFLIB_MAJOR) -compatibility_version \$(ELF_MAJOR_VERSION) -current_version \$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION)" 4270 ELF_DEP_LIBS="\$(LDFLAGS) \$(DL_LIB)" 4271 CC_SHARED="\$(CC) -bundle -flat_namespace -undefined suppress \$(CFLAGS) -fno-common" 4272 ELFLIB="lib\$(THIS_LIB).dylib" 4273 ELFLIB_MAJOR="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).dylib" 4274 ELFLIB_MAJOR_MINOR="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION).dylib" 4275 ELFLIB_MAJOR_MINOR_MICRO="lib\$(THIS_LIB).\$(ELF_MAJOR_VERSION).\$(ELF_MINOR_VERSION).\$(ELF_MICRO_VERSION).dylib" 4276 ;; 4277 *freebsd* ) 4278 ELF_CC="\$(CC)" 4279 ELF_CFLAGS="\$(CFLAGS) -fPIC" 4280 #if test "X$PORTOBJFORMAT" = "Xelf" ; then 4281 # ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-soname,\$(ELFLIB_MAJOR)" 4282 #else 4283 # ELF_LINK="ld -Bshareable -x" 4284 #fi 4285 ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-soname,\$(ELFLIB_MAJOR)" 4286 ELF_DEP_LIBS="\$(DL_LIB) -lm" 4287 CC_SHARED="\$(CC) \$(CFLAGS) -shared -fPIC" 4288 ;; 4289 *cygwin* ) 4290 DYNAMIC_LINK_FLAGS="" 4291 ELF_CC="\$(CC)" 4292 SLANG_DLL_CFLAGS="-DSLANG_DLL=1" 4293 ELF_CFLAGS="\$(CFLAGS) -DBUILD_DLL=1" 4294 DLL_IMPLIB_NAME="lib\$(THIS_LIB)\$(ELFLIB_MAJOR_VERSION).dll.a" 4295 #ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-O1 -Wl,--version-script,\$(VERSION_SCRIPT) -Wl,-soname,\$(ELFLIB_MAJOR) -Wl,--out-implib=\$(DLL_IMPLIB_NAME) -Wl,-export-all-symbols -Wl,-enable-auto-import" 4296 ELF_LINK="\$(CC) \$(LDFLAGS) -shared -Wl,-O1 -Wl,--version-script,\$(VERSION_SCRIPT) -Wl,-soname,\$(ELFLIB_MAJOR) -Wl,--out-implib=\$(DLL_IMPLIB_NAME)" 4297 ELF_DEP_LIBS="\$(DL_LIB) -lm" 4298 CC_SHARED="\$(CC) \$(CFLAGS) -shared -DSLANG_DLL=1" 4299 SLANG_LIB_FOR_MODULES="-L\$(ELFDIR) -lslang" 4300 INSTALL_MODULE="\$(INSTALL)" 4301 INSTALL_ELFLIB_TARGET="install-elf-cygwin" 4302 ELFLIB="lib\$(THIS_LIB).dll" 4303 ELFLIB_MAJOR="lib\$(THIS_LIB)\$(ELF_MAJOR_VERSION).dll" 4304 ELFLIB_MAJOR_MINOR="lib\$(THIS_LIB)\$(ELF_MAJOR_VERSION)_\$(ELF_MINOR_VERSION).dll" 4305 ELFLIB_MAJOR_MINOR_MICRO="lib\$(THIS_LIB)\$(ELF_MAJOR_VERSION)_\$(ELF_MINOR_VERSION)_\$(ELF_MICRO_VERSION).dll" 4306 ELFLIB_BUILD_NAME="\$(ELFLIB_MAJOR)" 4307 ;; 4308 * ) 4309 echo "Note: ELF compiler for host_os=$host_os may be wrong" 4310 ELF_CC="\$(CC)" 4311 ELF_CFLAGS="\$(CFLAGS) -fPIC" 4312 ELF_LINK="\$(CC) \$(LDFLAGS) -shared" 4313 ELF_DEP_LIBS="\$(DL_LIB) -lm -lc" 4314 CC_SHARED="\$(CC) \$(CFLAGS) -shared -fPIC" 4315esac 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336case "$host_cpu" in 4337 *alpha* ) 4338 if test "$GCC" = yes 4339 then 4340 IEEE_CFLAGS="-mieee" 4341 else 4342 IEEE_CFLAGS="-ieee_with_no_inexact" 4343 fi 4344 ;; 4345 * ) 4346 IEEE_CFLAGS="" 4347esac 4348 4349 4350{ echo "$as_me:$LINENO: checking for X" >&5 4351echo $ECHO_N "checking for X... $ECHO_C" >&6; } 4352 4353 4354# Check whether --with-x was given. 4355if test "${with_x+set}" = set; then 4356 withval=$with_x; 4357fi 4358 4359# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4360if test "x$with_x" = xno; then 4361 # The user explicitly disabled X. 4362 have_x=disabled 4363else 4364 case $x_includes,$x_libraries in #( 4365 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 4366echo "$as_me: error: Cannot use X directory names containing '" >&2;} 4367 { (exit 1); exit 1; }; };; #( 4368 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 4369 echo $ECHO_N "(cached) $ECHO_C" >&6 4370else 4371 # One or both of the vars are not set, and there is no cached value. 4372ac_x_includes=no ac_x_libraries=no 4373rm -f -r conftest.dir 4374if mkdir conftest.dir; then 4375 cd conftest.dir 4376 cat >Imakefile <<'_ACEOF' 4377incroot: 4378 @echo incroot='${INCROOT}' 4379usrlibdir: 4380 @echo usrlibdir='${USRLIBDIR}' 4381libdir: 4382 @echo libdir='${LIBDIR}' 4383_ACEOF 4384 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 4385 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4386 for ac_var in incroot usrlibdir libdir; do 4387 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 4388 done 4389 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4390 for ac_extension in a so sl; do 4391 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 4392 test -f "$ac_im_libdir/libX11.$ac_extension"; then 4393 ac_im_usrlibdir=$ac_im_libdir; break 4394 fi 4395 done 4396 # Screen out bogus values from the imake configuration. They are 4397 # bogus both because they are the default anyway, and because 4398 # using them would break gcc on systems where it needs fixed includes. 4399 case $ac_im_incroot in 4400 /usr/include) ac_x_includes= ;; 4401 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 4402 esac 4403 case $ac_im_usrlibdir in 4404 /usr/lib | /lib) ;; 4405 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 4406 esac 4407 fi 4408 cd .. 4409 rm -f -r conftest.dir 4410fi 4411 4412# Standard set of common directories for X headers. 4413# Check X11 before X11Rn because it is often a symlink to the current release. 4414ac_x_header_dirs=' 4415/usr/X11/include 4416/usr/X11R6/include 4417/usr/X11R5/include 4418/usr/X11R4/include 4419 4420/usr/include/X11 4421/usr/include/X11R6 4422/usr/include/X11R5 4423/usr/include/X11R4 4424 4425/usr/local/X11/include 4426/usr/local/X11R6/include 4427/usr/local/X11R5/include 4428/usr/local/X11R4/include 4429 4430/usr/local/include/X11 4431/usr/local/include/X11R6 4432/usr/local/include/X11R5 4433/usr/local/include/X11R4 4434 4435/usr/X386/include 4436/usr/x386/include 4437/usr/XFree86/include/X11 4438 4439/usr/include 4440/usr/local/include 4441/usr/unsupported/include 4442/usr/athena/include 4443/usr/local/x11r5/include 4444/usr/lpp/Xamples/include 4445 4446/usr/openwin/include 4447/usr/openwin/share/include' 4448 4449if test "$ac_x_includes" = no; then 4450 # Guess where to find include files, by looking for Xlib.h. 4451 # First, try using that file with no special directory specified. 4452 cat >conftest.$ac_ext <<_ACEOF 4453/* confdefs.h. */ 4454_ACEOF 4455cat confdefs.h >>conftest.$ac_ext 4456cat >>conftest.$ac_ext <<_ACEOF 4457/* end confdefs.h. */ 4458#include <X11/Xlib.h> 4459_ACEOF 4460if { (ac_try="$ac_cpp conftest.$ac_ext" 4461case "(($ac_try" in 4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4463 *) ac_try_echo=$ac_try;; 4464esac 4465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4467 ac_status=$? 4468 grep -v '^ *+' conftest.er1 >conftest.err 4469 rm -f conftest.er1 4470 cat conftest.err >&5 4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4472 (exit $ac_status); } >/dev/null && { 4473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4474 test ! -s conftest.err 4475 }; then 4476 # We can compile using X headers with no special include directory. 4477ac_x_includes= 4478else 4479 echo "$as_me: failed program was:" >&5 4480sed 's/^/| /' conftest.$ac_ext >&5 4481 4482 for ac_dir in $ac_x_header_dirs; do 4483 if test -r "$ac_dir/X11/Xlib.h"; then 4484 ac_x_includes=$ac_dir 4485 break 4486 fi 4487done 4488fi 4489 4490rm -f conftest.err conftest.$ac_ext 4491fi # $ac_x_includes = no 4492 4493if test "$ac_x_libraries" = no; then 4494 # Check for the libraries. 4495 # See if we find them without any special options. 4496 # Don't add to $LIBS permanently. 4497 ac_save_LIBS=$LIBS 4498 LIBS="-lX11 $LIBS" 4499 cat >conftest.$ac_ext <<_ACEOF 4500/* confdefs.h. */ 4501_ACEOF 4502cat confdefs.h >>conftest.$ac_ext 4503cat >>conftest.$ac_ext <<_ACEOF 4504/* end confdefs.h. */ 4505#include <X11/Xlib.h> 4506int 4507main () 4508{ 4509XrmInitialize () 4510 ; 4511 return 0; 4512} 4513_ACEOF 4514rm -f conftest.$ac_objext conftest$ac_exeext 4515if { (ac_try="$ac_link" 4516case "(($ac_try" in 4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4518 *) ac_try_echo=$ac_try;; 4519esac 4520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4521 (eval "$ac_link") 2>conftest.er1 4522 ac_status=$? 4523 grep -v '^ *+' conftest.er1 >conftest.err 4524 rm -f conftest.er1 4525 cat conftest.err >&5 4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4527 (exit $ac_status); } && { 4528 test -z "$ac_c_werror_flag" || 4529 test ! -s conftest.err 4530 } && test -s conftest$ac_exeext && 4531 $as_test_x conftest$ac_exeext; then 4532 LIBS=$ac_save_LIBS 4533# We can link X programs with no special library path. 4534ac_x_libraries= 4535else 4536 echo "$as_me: failed program was:" >&5 4537sed 's/^/| /' conftest.$ac_ext >&5 4538 4539 LIBS=$ac_save_LIBS 4540for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 4541do 4542 # Don't even attempt the hair of trying to link an X program! 4543 for ac_extension in a so sl; do 4544 if test -r "$ac_dir/libX11.$ac_extension"; then 4545 ac_x_libraries=$ac_dir 4546 break 2 4547 fi 4548 done 4549done 4550fi 4551 4552rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4553 conftest$ac_exeext conftest.$ac_ext 4554fi # $ac_x_libraries = no 4555 4556case $ac_x_includes,$ac_x_libraries in #( 4557 no,* | *,no | *\'*) 4558 # Didn't find X, or a directory has "'" in its name. 4559 ac_cv_have_x="have_x=no";; #( 4560 *) 4561 # Record where we found X for the cache. 4562 ac_cv_have_x="have_x=yes\ 4563 ac_x_includes='$ac_x_includes'\ 4564 ac_x_libraries='$ac_x_libraries'" 4565esac 4566fi 4567;; #( 4568 *) have_x=yes;; 4569 esac 4570 eval "$ac_cv_have_x" 4571fi # $with_x != no 4572 4573if test "$have_x" != yes; then 4574 { echo "$as_me:$LINENO: result: $have_x" >&5 4575echo "${ECHO_T}$have_x" >&6; } 4576 no_x=yes 4577else 4578 # If each of the values was on the command line, it overrides each guess. 4579 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 4580 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 4581 # Update the cache value to reflect the command line values. 4582 ac_cv_have_x="have_x=yes\ 4583 ac_x_includes='$x_includes'\ 4584 ac_x_libraries='$x_libraries'" 4585 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 4586echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 4587fi 4588 4589if test "$no_x" = yes; then 4590 # Not all programs may use this symbol, but it does not hurt to define it. 4591 4592cat >>confdefs.h <<\_ACEOF 4593#define X_DISPLAY_MISSING 1 4594_ACEOF 4595 4596 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 4597else 4598 if test -n "$x_includes"; then 4599 X_CFLAGS="$X_CFLAGS -I$x_includes" 4600 fi 4601 4602 # It would also be nice to do this for all -L options, not just this one. 4603 if test -n "$x_libraries"; then 4604 X_LIBS="$X_LIBS -L$x_libraries" 4605 # For Solaris; some versions of Sun CC require a space after -R and 4606 # others require no space. Words are not sufficient . . . . 4607 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 4608echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 4609 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 4610 ac_xsave_c_werror_flag=$ac_c_werror_flag 4611 ac_c_werror_flag=yes 4612 cat >conftest.$ac_ext <<_ACEOF 4613/* confdefs.h. */ 4614_ACEOF 4615cat confdefs.h >>conftest.$ac_ext 4616cat >>conftest.$ac_ext <<_ACEOF 4617/* end confdefs.h. */ 4618 4619int 4620main () 4621{ 4622 4623 ; 4624 return 0; 4625} 4626_ACEOF 4627rm -f conftest.$ac_objext conftest$ac_exeext 4628if { (ac_try="$ac_link" 4629case "(($ac_try" in 4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4631 *) ac_try_echo=$ac_try;; 4632esac 4633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4634 (eval "$ac_link") 2>conftest.er1 4635 ac_status=$? 4636 grep -v '^ *+' conftest.er1 >conftest.err 4637 rm -f conftest.er1 4638 cat conftest.err >&5 4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4640 (exit $ac_status); } && { 4641 test -z "$ac_c_werror_flag" || 4642 test ! -s conftest.err 4643 } && test -s conftest$ac_exeext && 4644 $as_test_x conftest$ac_exeext; then 4645 { echo "$as_me:$LINENO: result: no" >&5 4646echo "${ECHO_T}no" >&6; } 4647 X_LIBS="$X_LIBS -R$x_libraries" 4648else 4649 echo "$as_me: failed program was:" >&5 4650sed 's/^/| /' conftest.$ac_ext >&5 4651 4652 LIBS="$ac_xsave_LIBS -R $x_libraries" 4653 cat >conftest.$ac_ext <<_ACEOF 4654/* confdefs.h. */ 4655_ACEOF 4656cat confdefs.h >>conftest.$ac_ext 4657cat >>conftest.$ac_ext <<_ACEOF 4658/* end confdefs.h. */ 4659 4660int 4661main () 4662{ 4663 4664 ; 4665 return 0; 4666} 4667_ACEOF 4668rm -f conftest.$ac_objext conftest$ac_exeext 4669if { (ac_try="$ac_link" 4670case "(($ac_try" in 4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4672 *) ac_try_echo=$ac_try;; 4673esac 4674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4675 (eval "$ac_link") 2>conftest.er1 4676 ac_status=$? 4677 grep -v '^ *+' conftest.er1 >conftest.err 4678 rm -f conftest.er1 4679 cat conftest.err >&5 4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4681 (exit $ac_status); } && { 4682 test -z "$ac_c_werror_flag" || 4683 test ! -s conftest.err 4684 } && test -s conftest$ac_exeext && 4685 $as_test_x conftest$ac_exeext; then 4686 { echo "$as_me:$LINENO: result: yes" >&5 4687echo "${ECHO_T}yes" >&6; } 4688 X_LIBS="$X_LIBS -R $x_libraries" 4689else 4690 echo "$as_me: failed program was:" >&5 4691sed 's/^/| /' conftest.$ac_ext >&5 4692 4693 { echo "$as_me:$LINENO: result: neither works" >&5 4694echo "${ECHO_T}neither works" >&6; } 4695fi 4696 4697rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4698 conftest$ac_exeext conftest.$ac_ext 4699fi 4700 4701rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4702 conftest$ac_exeext conftest.$ac_ext 4703 ac_c_werror_flag=$ac_xsave_c_werror_flag 4704 LIBS=$ac_xsave_LIBS 4705 fi 4706 4707 # Check for system-dependent libraries X programs must link with. 4708 # Do this before checking for the system-independent R6 libraries 4709 # (-lICE), since we may need -lsocket or whatever for X linking. 4710 4711 if test "$ISC" = yes; then 4712 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 4713 else 4714 # Martyn Johnson says this is needed for Ultrix, if the X 4715 # libraries were built with DECnet support. And Karl Berry says 4716 # the Alpha needs dnet_stub (dnet does not exist). 4717 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 4718 cat >conftest.$ac_ext <<_ACEOF 4719/* confdefs.h. */ 4720_ACEOF 4721cat confdefs.h >>conftest.$ac_ext 4722cat >>conftest.$ac_ext <<_ACEOF 4723/* end confdefs.h. */ 4724 4725/* Override any GCC internal prototype to avoid an error. 4726 Use char because int might match the return type of a GCC 4727 builtin and then its argument prototype would still apply. */ 4728#ifdef __cplusplus 4729extern "C" 4730#endif 4731char XOpenDisplay (); 4732int 4733main () 4734{ 4735return XOpenDisplay (); 4736 ; 4737 return 0; 4738} 4739_ACEOF 4740rm -f conftest.$ac_objext conftest$ac_exeext 4741if { (ac_try="$ac_link" 4742case "(($ac_try" in 4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4744 *) ac_try_echo=$ac_try;; 4745esac 4746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4747 (eval "$ac_link") 2>conftest.er1 4748 ac_status=$? 4749 grep -v '^ *+' conftest.er1 >conftest.err 4750 rm -f conftest.er1 4751 cat conftest.err >&5 4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4753 (exit $ac_status); } && { 4754 test -z "$ac_c_werror_flag" || 4755 test ! -s conftest.err 4756 } && test -s conftest$ac_exeext && 4757 $as_test_x conftest$ac_exeext; then 4758 : 4759else 4760 echo "$as_me: failed program was:" >&5 4761sed 's/^/| /' conftest.$ac_ext >&5 4762 4763 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 4764echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 4765if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 4766 echo $ECHO_N "(cached) $ECHO_C" >&6 4767else 4768 ac_check_lib_save_LIBS=$LIBS 4769LIBS="-ldnet $LIBS" 4770cat >conftest.$ac_ext <<_ACEOF 4771/* confdefs.h. */ 4772_ACEOF 4773cat confdefs.h >>conftest.$ac_ext 4774cat >>conftest.$ac_ext <<_ACEOF 4775/* end confdefs.h. */ 4776 4777/* Override any GCC internal prototype to avoid an error. 4778 Use char because int might match the return type of a GCC 4779 builtin and then its argument prototype would still apply. */ 4780#ifdef __cplusplus 4781extern "C" 4782#endif 4783char dnet_ntoa (); 4784int 4785main () 4786{ 4787return dnet_ntoa (); 4788 ; 4789 return 0; 4790} 4791_ACEOF 4792rm -f conftest.$ac_objext conftest$ac_exeext 4793if { (ac_try="$ac_link" 4794case "(($ac_try" in 4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4796 *) ac_try_echo=$ac_try;; 4797esac 4798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4799 (eval "$ac_link") 2>conftest.er1 4800 ac_status=$? 4801 grep -v '^ *+' conftest.er1 >conftest.err 4802 rm -f conftest.er1 4803 cat conftest.err >&5 4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4805 (exit $ac_status); } && { 4806 test -z "$ac_c_werror_flag" || 4807 test ! -s conftest.err 4808 } && test -s conftest$ac_exeext && 4809 $as_test_x conftest$ac_exeext; then 4810 ac_cv_lib_dnet_dnet_ntoa=yes 4811else 4812 echo "$as_me: failed program was:" >&5 4813sed 's/^/| /' conftest.$ac_ext >&5 4814 4815 ac_cv_lib_dnet_dnet_ntoa=no 4816fi 4817 4818rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4819 conftest$ac_exeext conftest.$ac_ext 4820LIBS=$ac_check_lib_save_LIBS 4821fi 4822{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 4823echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 4824if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 4825 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 4826fi 4827 4828 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 4829 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 4830echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 4831if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 4832 echo $ECHO_N "(cached) $ECHO_C" >&6 4833else 4834 ac_check_lib_save_LIBS=$LIBS 4835LIBS="-ldnet_stub $LIBS" 4836cat >conftest.$ac_ext <<_ACEOF 4837/* confdefs.h. */ 4838_ACEOF 4839cat confdefs.h >>conftest.$ac_ext 4840cat >>conftest.$ac_ext <<_ACEOF 4841/* end confdefs.h. */ 4842 4843/* Override any GCC internal prototype to avoid an error. 4844 Use char because int might match the return type of a GCC 4845 builtin and then its argument prototype would still apply. */ 4846#ifdef __cplusplus 4847extern "C" 4848#endif 4849char dnet_ntoa (); 4850int 4851main () 4852{ 4853return dnet_ntoa (); 4854 ; 4855 return 0; 4856} 4857_ACEOF 4858rm -f conftest.$ac_objext conftest$ac_exeext 4859if { (ac_try="$ac_link" 4860case "(($ac_try" in 4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4862 *) ac_try_echo=$ac_try;; 4863esac 4864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4865 (eval "$ac_link") 2>conftest.er1 4866 ac_status=$? 4867 grep -v '^ *+' conftest.er1 >conftest.err 4868 rm -f conftest.er1 4869 cat conftest.err >&5 4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4871 (exit $ac_status); } && { 4872 test -z "$ac_c_werror_flag" || 4873 test ! -s conftest.err 4874 } && test -s conftest$ac_exeext && 4875 $as_test_x conftest$ac_exeext; then 4876 ac_cv_lib_dnet_stub_dnet_ntoa=yes 4877else 4878 echo "$as_me: failed program was:" >&5 4879sed 's/^/| /' conftest.$ac_ext >&5 4880 4881 ac_cv_lib_dnet_stub_dnet_ntoa=no 4882fi 4883 4884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4885 conftest$ac_exeext conftest.$ac_ext 4886LIBS=$ac_check_lib_save_LIBS 4887fi 4888{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 4889echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 4890if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 4891 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 4892fi 4893 4894 fi 4895fi 4896 4897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4898 conftest$ac_exeext conftest.$ac_ext 4899 LIBS="$ac_xsave_LIBS" 4900 4901 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 4902 # to get the SysV transport functions. 4903 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 4904 # needs -lnsl. 4905 # The nsl library prevents programs from opening the X display 4906 # on Irix 5.2, according to T.E. Dickey. 4907 # The functions gethostbyname, getservbyname, and inet_addr are 4908 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 4909 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 4910echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 4911if test "${ac_cv_func_gethostbyname+set}" = set; then 4912 echo $ECHO_N "(cached) $ECHO_C" >&6 4913else 4914 cat >conftest.$ac_ext <<_ACEOF 4915/* confdefs.h. */ 4916_ACEOF 4917cat confdefs.h >>conftest.$ac_ext 4918cat >>conftest.$ac_ext <<_ACEOF 4919/* end confdefs.h. */ 4920/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 4921 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4922#define gethostbyname innocuous_gethostbyname 4923 4924/* System header to define __stub macros and hopefully few prototypes, 4925 which can conflict with char gethostbyname (); below. 4926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4927 <limits.h> exists even on freestanding compilers. */ 4928 4929#ifdef __STDC__ 4930# include <limits.h> 4931#else 4932# include <assert.h> 4933#endif 4934 4935#undef gethostbyname 4936 4937/* Override any GCC internal prototype to avoid an error. 4938 Use char because int might match the return type of a GCC 4939 builtin and then its argument prototype would still apply. */ 4940#ifdef __cplusplus 4941extern "C" 4942#endif 4943char gethostbyname (); 4944/* The GNU C library defines this for functions which it implements 4945 to always fail with ENOSYS. Some functions are actually named 4946 something starting with __ and the normal name is an alias. */ 4947#if defined __stub_gethostbyname || defined __stub___gethostbyname 4948choke me 4949#endif 4950 4951int 4952main () 4953{ 4954return gethostbyname (); 4955 ; 4956 return 0; 4957} 4958_ACEOF 4959rm -f conftest.$ac_objext conftest$ac_exeext 4960if { (ac_try="$ac_link" 4961case "(($ac_try" in 4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4963 *) ac_try_echo=$ac_try;; 4964esac 4965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4966 (eval "$ac_link") 2>conftest.er1 4967 ac_status=$? 4968 grep -v '^ *+' conftest.er1 >conftest.err 4969 rm -f conftest.er1 4970 cat conftest.err >&5 4971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4972 (exit $ac_status); } && { 4973 test -z "$ac_c_werror_flag" || 4974 test ! -s conftest.err 4975 } && test -s conftest$ac_exeext && 4976 $as_test_x conftest$ac_exeext; then 4977 ac_cv_func_gethostbyname=yes 4978else 4979 echo "$as_me: failed program was:" >&5 4980sed 's/^/| /' conftest.$ac_ext >&5 4981 4982 ac_cv_func_gethostbyname=no 4983fi 4984 4985rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4986 conftest$ac_exeext conftest.$ac_ext 4987fi 4988{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 4989echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 4990 4991 if test $ac_cv_func_gethostbyname = no; then 4992 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4993echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 4994if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4995 echo $ECHO_N "(cached) $ECHO_C" >&6 4996else 4997 ac_check_lib_save_LIBS=$LIBS 4998LIBS="-lnsl $LIBS" 4999cat >conftest.$ac_ext <<_ACEOF 5000/* confdefs.h. */ 5001_ACEOF 5002cat confdefs.h >>conftest.$ac_ext 5003cat >>conftest.$ac_ext <<_ACEOF 5004/* end confdefs.h. */ 5005 5006/* Override any GCC internal prototype to avoid an error. 5007 Use char because int might match the return type of a GCC 5008 builtin and then its argument prototype would still apply. */ 5009#ifdef __cplusplus 5010extern "C" 5011#endif 5012char gethostbyname (); 5013int 5014main () 5015{ 5016return gethostbyname (); 5017 ; 5018 return 0; 5019} 5020_ACEOF 5021rm -f conftest.$ac_objext conftest$ac_exeext 5022if { (ac_try="$ac_link" 5023case "(($ac_try" in 5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5025 *) ac_try_echo=$ac_try;; 5026esac 5027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5028 (eval "$ac_link") 2>conftest.er1 5029 ac_status=$? 5030 grep -v '^ *+' conftest.er1 >conftest.err 5031 rm -f conftest.er1 5032 cat conftest.err >&5 5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5034 (exit $ac_status); } && { 5035 test -z "$ac_c_werror_flag" || 5036 test ! -s conftest.err 5037 } && test -s conftest$ac_exeext && 5038 $as_test_x conftest$ac_exeext; then 5039 ac_cv_lib_nsl_gethostbyname=yes 5040else 5041 echo "$as_me: failed program was:" >&5 5042sed 's/^/| /' conftest.$ac_ext >&5 5043 5044 ac_cv_lib_nsl_gethostbyname=no 5045fi 5046 5047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5048 conftest$ac_exeext conftest.$ac_ext 5049LIBS=$ac_check_lib_save_LIBS 5050fi 5051{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5052echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 5053if test $ac_cv_lib_nsl_gethostbyname = yes; then 5054 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5055fi 5056 5057 if test $ac_cv_lib_nsl_gethostbyname = no; then 5058 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 5059echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 5060if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 5061 echo $ECHO_N "(cached) $ECHO_C" >&6 5062else 5063 ac_check_lib_save_LIBS=$LIBS 5064LIBS="-lbsd $LIBS" 5065cat >conftest.$ac_ext <<_ACEOF 5066/* confdefs.h. */ 5067_ACEOF 5068cat confdefs.h >>conftest.$ac_ext 5069cat >>conftest.$ac_ext <<_ACEOF 5070/* end confdefs.h. */ 5071 5072/* Override any GCC internal prototype to avoid an error. 5073 Use char because int might match the return type of a GCC 5074 builtin and then its argument prototype would still apply. */ 5075#ifdef __cplusplus 5076extern "C" 5077#endif 5078char gethostbyname (); 5079int 5080main () 5081{ 5082return gethostbyname (); 5083 ; 5084 return 0; 5085} 5086_ACEOF 5087rm -f conftest.$ac_objext conftest$ac_exeext 5088if { (ac_try="$ac_link" 5089case "(($ac_try" in 5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5091 *) ac_try_echo=$ac_try;; 5092esac 5093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5094 (eval "$ac_link") 2>conftest.er1 5095 ac_status=$? 5096 grep -v '^ *+' conftest.er1 >conftest.err 5097 rm -f conftest.er1 5098 cat conftest.err >&5 5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5100 (exit $ac_status); } && { 5101 test -z "$ac_c_werror_flag" || 5102 test ! -s conftest.err 5103 } && test -s conftest$ac_exeext && 5104 $as_test_x conftest$ac_exeext; then 5105 ac_cv_lib_bsd_gethostbyname=yes 5106else 5107 echo "$as_me: failed program was:" >&5 5108sed 's/^/| /' conftest.$ac_ext >&5 5109 5110 ac_cv_lib_bsd_gethostbyname=no 5111fi 5112 5113rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5114 conftest$ac_exeext conftest.$ac_ext 5115LIBS=$ac_check_lib_save_LIBS 5116fi 5117{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 5118echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 5119if test $ac_cv_lib_bsd_gethostbyname = yes; then 5120 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 5121fi 5122 5123 fi 5124 fi 5125 5126 # lieder@skyler.mavd.honeywell.com says without -lsocket, 5127 # socket/setsockopt and other routines are undefined under SCO ODT 5128 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 5129 # on later versions), says Simon Leinen: it contains gethostby* 5130 # variants that don't use the name server (or something). -lsocket 5131 # must be given before -lnsl if both are needed. We assume that 5132 # if connect needs -lnsl, so does gethostbyname. 5133 { echo "$as_me:$LINENO: checking for connect" >&5 5134echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 5135if test "${ac_cv_func_connect+set}" = set; then 5136 echo $ECHO_N "(cached) $ECHO_C" >&6 5137else 5138 cat >conftest.$ac_ext <<_ACEOF 5139/* confdefs.h. */ 5140_ACEOF 5141cat confdefs.h >>conftest.$ac_ext 5142cat >>conftest.$ac_ext <<_ACEOF 5143/* end confdefs.h. */ 5144/* Define connect to an innocuous variant, in case <limits.h> declares connect. 5145 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5146#define connect innocuous_connect 5147 5148/* System header to define __stub macros and hopefully few prototypes, 5149 which can conflict with char connect (); below. 5150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5151 <limits.h> exists even on freestanding compilers. */ 5152 5153#ifdef __STDC__ 5154# include <limits.h> 5155#else 5156# include <assert.h> 5157#endif 5158 5159#undef connect 5160 5161/* Override any GCC internal prototype to avoid an error. 5162 Use char because int might match the return type of a GCC 5163 builtin and then its argument prototype would still apply. */ 5164#ifdef __cplusplus 5165extern "C" 5166#endif 5167char connect (); 5168/* The GNU C library defines this for functions which it implements 5169 to always fail with ENOSYS. Some functions are actually named 5170 something starting with __ and the normal name is an alias. */ 5171#if defined __stub_connect || defined __stub___connect 5172choke me 5173#endif 5174 5175int 5176main () 5177{ 5178return connect (); 5179 ; 5180 return 0; 5181} 5182_ACEOF 5183rm -f conftest.$ac_objext conftest$ac_exeext 5184if { (ac_try="$ac_link" 5185case "(($ac_try" in 5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5187 *) ac_try_echo=$ac_try;; 5188esac 5189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5190 (eval "$ac_link") 2>conftest.er1 5191 ac_status=$? 5192 grep -v '^ *+' conftest.er1 >conftest.err 5193 rm -f conftest.er1 5194 cat conftest.err >&5 5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5196 (exit $ac_status); } && { 5197 test -z "$ac_c_werror_flag" || 5198 test ! -s conftest.err 5199 } && test -s conftest$ac_exeext && 5200 $as_test_x conftest$ac_exeext; then 5201 ac_cv_func_connect=yes 5202else 5203 echo "$as_me: failed program was:" >&5 5204sed 's/^/| /' conftest.$ac_ext >&5 5205 5206 ac_cv_func_connect=no 5207fi 5208 5209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5210 conftest$ac_exeext conftest.$ac_ext 5211fi 5212{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 5213echo "${ECHO_T}$ac_cv_func_connect" >&6; } 5214 5215 if test $ac_cv_func_connect = no; then 5216 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 5217echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 5218if test "${ac_cv_lib_socket_connect+set}" = set; then 5219 echo $ECHO_N "(cached) $ECHO_C" >&6 5220else 5221 ac_check_lib_save_LIBS=$LIBS 5222LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 5223cat >conftest.$ac_ext <<_ACEOF 5224/* confdefs.h. */ 5225_ACEOF 5226cat confdefs.h >>conftest.$ac_ext 5227cat >>conftest.$ac_ext <<_ACEOF 5228/* end confdefs.h. */ 5229 5230/* Override any GCC internal prototype to avoid an error. 5231 Use char because int might match the return type of a GCC 5232 builtin and then its argument prototype would still apply. */ 5233#ifdef __cplusplus 5234extern "C" 5235#endif 5236char connect (); 5237int 5238main () 5239{ 5240return connect (); 5241 ; 5242 return 0; 5243} 5244_ACEOF 5245rm -f conftest.$ac_objext conftest$ac_exeext 5246if { (ac_try="$ac_link" 5247case "(($ac_try" in 5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5249 *) ac_try_echo=$ac_try;; 5250esac 5251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5252 (eval "$ac_link") 2>conftest.er1 5253 ac_status=$? 5254 grep -v '^ *+' conftest.er1 >conftest.err 5255 rm -f conftest.er1 5256 cat conftest.err >&5 5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5258 (exit $ac_status); } && { 5259 test -z "$ac_c_werror_flag" || 5260 test ! -s conftest.err 5261 } && test -s conftest$ac_exeext && 5262 $as_test_x conftest$ac_exeext; then 5263 ac_cv_lib_socket_connect=yes 5264else 5265 echo "$as_me: failed program was:" >&5 5266sed 's/^/| /' conftest.$ac_ext >&5 5267 5268 ac_cv_lib_socket_connect=no 5269fi 5270 5271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5272 conftest$ac_exeext conftest.$ac_ext 5273LIBS=$ac_check_lib_save_LIBS 5274fi 5275{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 5276echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 5277if test $ac_cv_lib_socket_connect = yes; then 5278 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 5279fi 5280 5281 fi 5282 5283 # Guillermo Gomez says -lposix is necessary on A/UX. 5284 { echo "$as_me:$LINENO: checking for remove" >&5 5285echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 5286if test "${ac_cv_func_remove+set}" = set; then 5287 echo $ECHO_N "(cached) $ECHO_C" >&6 5288else 5289 cat >conftest.$ac_ext <<_ACEOF 5290/* confdefs.h. */ 5291_ACEOF 5292cat confdefs.h >>conftest.$ac_ext 5293cat >>conftest.$ac_ext <<_ACEOF 5294/* end confdefs.h. */ 5295/* Define remove to an innocuous variant, in case <limits.h> declares remove. 5296 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5297#define remove innocuous_remove 5298 5299/* System header to define __stub macros and hopefully few prototypes, 5300 which can conflict with char remove (); below. 5301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5302 <limits.h> exists even on freestanding compilers. */ 5303 5304#ifdef __STDC__ 5305# include <limits.h> 5306#else 5307# include <assert.h> 5308#endif 5309 5310#undef remove 5311 5312/* Override any GCC internal prototype to avoid an error. 5313 Use char because int might match the return type of a GCC 5314 builtin and then its argument prototype would still apply. */ 5315#ifdef __cplusplus 5316extern "C" 5317#endif 5318char remove (); 5319/* The GNU C library defines this for functions which it implements 5320 to always fail with ENOSYS. Some functions are actually named 5321 something starting with __ and the normal name is an alias. */ 5322#if defined __stub_remove || defined __stub___remove 5323choke me 5324#endif 5325 5326int 5327main () 5328{ 5329return remove (); 5330 ; 5331 return 0; 5332} 5333_ACEOF 5334rm -f conftest.$ac_objext conftest$ac_exeext 5335if { (ac_try="$ac_link" 5336case "(($ac_try" in 5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5338 *) ac_try_echo=$ac_try;; 5339esac 5340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5341 (eval "$ac_link") 2>conftest.er1 5342 ac_status=$? 5343 grep -v '^ *+' conftest.er1 >conftest.err 5344 rm -f conftest.er1 5345 cat conftest.err >&5 5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5347 (exit $ac_status); } && { 5348 test -z "$ac_c_werror_flag" || 5349 test ! -s conftest.err 5350 } && test -s conftest$ac_exeext && 5351 $as_test_x conftest$ac_exeext; then 5352 ac_cv_func_remove=yes 5353else 5354 echo "$as_me: failed program was:" >&5 5355sed 's/^/| /' conftest.$ac_ext >&5 5356 5357 ac_cv_func_remove=no 5358fi 5359 5360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5361 conftest$ac_exeext conftest.$ac_ext 5362fi 5363{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 5364echo "${ECHO_T}$ac_cv_func_remove" >&6; } 5365 5366 if test $ac_cv_func_remove = no; then 5367 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 5368echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 5369if test "${ac_cv_lib_posix_remove+set}" = set; then 5370 echo $ECHO_N "(cached) $ECHO_C" >&6 5371else 5372 ac_check_lib_save_LIBS=$LIBS 5373LIBS="-lposix $LIBS" 5374cat >conftest.$ac_ext <<_ACEOF 5375/* confdefs.h. */ 5376_ACEOF 5377cat confdefs.h >>conftest.$ac_ext 5378cat >>conftest.$ac_ext <<_ACEOF 5379/* end confdefs.h. */ 5380 5381/* Override any GCC internal prototype to avoid an error. 5382 Use char because int might match the return type of a GCC 5383 builtin and then its argument prototype would still apply. */ 5384#ifdef __cplusplus 5385extern "C" 5386#endif 5387char remove (); 5388int 5389main () 5390{ 5391return remove (); 5392 ; 5393 return 0; 5394} 5395_ACEOF 5396rm -f conftest.$ac_objext conftest$ac_exeext 5397if { (ac_try="$ac_link" 5398case "(($ac_try" in 5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5400 *) ac_try_echo=$ac_try;; 5401esac 5402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5403 (eval "$ac_link") 2>conftest.er1 5404 ac_status=$? 5405 grep -v '^ *+' conftest.er1 >conftest.err 5406 rm -f conftest.er1 5407 cat conftest.err >&5 5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5409 (exit $ac_status); } && { 5410 test -z "$ac_c_werror_flag" || 5411 test ! -s conftest.err 5412 } && test -s conftest$ac_exeext && 5413 $as_test_x conftest$ac_exeext; then 5414 ac_cv_lib_posix_remove=yes 5415else 5416 echo "$as_me: failed program was:" >&5 5417sed 's/^/| /' conftest.$ac_ext >&5 5418 5419 ac_cv_lib_posix_remove=no 5420fi 5421 5422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5423 conftest$ac_exeext conftest.$ac_ext 5424LIBS=$ac_check_lib_save_LIBS 5425fi 5426{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 5427echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 5428if test $ac_cv_lib_posix_remove = yes; then 5429 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 5430fi 5431 5432 fi 5433 5434 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5435 { echo "$as_me:$LINENO: checking for shmat" >&5 5436echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 5437if test "${ac_cv_func_shmat+set}" = set; then 5438 echo $ECHO_N "(cached) $ECHO_C" >&6 5439else 5440 cat >conftest.$ac_ext <<_ACEOF 5441/* confdefs.h. */ 5442_ACEOF 5443cat confdefs.h >>conftest.$ac_ext 5444cat >>conftest.$ac_ext <<_ACEOF 5445/* end confdefs.h. */ 5446/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 5447 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5448#define shmat innocuous_shmat 5449 5450/* System header to define __stub macros and hopefully few prototypes, 5451 which can conflict with char shmat (); below. 5452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5453 <limits.h> exists even on freestanding compilers. */ 5454 5455#ifdef __STDC__ 5456# include <limits.h> 5457#else 5458# include <assert.h> 5459#endif 5460 5461#undef shmat 5462 5463/* Override any GCC internal prototype to avoid an error. 5464 Use char because int might match the return type of a GCC 5465 builtin and then its argument prototype would still apply. */ 5466#ifdef __cplusplus 5467extern "C" 5468#endif 5469char shmat (); 5470/* The GNU C library defines this for functions which it implements 5471 to always fail with ENOSYS. Some functions are actually named 5472 something starting with __ and the normal name is an alias. */ 5473#if defined __stub_shmat || defined __stub___shmat 5474choke me 5475#endif 5476 5477int 5478main () 5479{ 5480return shmat (); 5481 ; 5482 return 0; 5483} 5484_ACEOF 5485rm -f conftest.$ac_objext conftest$ac_exeext 5486if { (ac_try="$ac_link" 5487case "(($ac_try" in 5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5489 *) ac_try_echo=$ac_try;; 5490esac 5491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5492 (eval "$ac_link") 2>conftest.er1 5493 ac_status=$? 5494 grep -v '^ *+' conftest.er1 >conftest.err 5495 rm -f conftest.er1 5496 cat conftest.err >&5 5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5498 (exit $ac_status); } && { 5499 test -z "$ac_c_werror_flag" || 5500 test ! -s conftest.err 5501 } && test -s conftest$ac_exeext && 5502 $as_test_x conftest$ac_exeext; then 5503 ac_cv_func_shmat=yes 5504else 5505 echo "$as_me: failed program was:" >&5 5506sed 's/^/| /' conftest.$ac_ext >&5 5507 5508 ac_cv_func_shmat=no 5509fi 5510 5511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5512 conftest$ac_exeext conftest.$ac_ext 5513fi 5514{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 5515echo "${ECHO_T}$ac_cv_func_shmat" >&6; } 5516 5517 if test $ac_cv_func_shmat = no; then 5518 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 5519echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 5520if test "${ac_cv_lib_ipc_shmat+set}" = set; then 5521 echo $ECHO_N "(cached) $ECHO_C" >&6 5522else 5523 ac_check_lib_save_LIBS=$LIBS 5524LIBS="-lipc $LIBS" 5525cat >conftest.$ac_ext <<_ACEOF 5526/* confdefs.h. */ 5527_ACEOF 5528cat confdefs.h >>conftest.$ac_ext 5529cat >>conftest.$ac_ext <<_ACEOF 5530/* end confdefs.h. */ 5531 5532/* Override any GCC internal prototype to avoid an error. 5533 Use char because int might match the return type of a GCC 5534 builtin and then its argument prototype would still apply. */ 5535#ifdef __cplusplus 5536extern "C" 5537#endif 5538char shmat (); 5539int 5540main () 5541{ 5542return shmat (); 5543 ; 5544 return 0; 5545} 5546_ACEOF 5547rm -f conftest.$ac_objext conftest$ac_exeext 5548if { (ac_try="$ac_link" 5549case "(($ac_try" in 5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5551 *) ac_try_echo=$ac_try;; 5552esac 5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5554 (eval "$ac_link") 2>conftest.er1 5555 ac_status=$? 5556 grep -v '^ *+' conftest.er1 >conftest.err 5557 rm -f conftest.er1 5558 cat conftest.err >&5 5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5560 (exit $ac_status); } && { 5561 test -z "$ac_c_werror_flag" || 5562 test ! -s conftest.err 5563 } && test -s conftest$ac_exeext && 5564 $as_test_x conftest$ac_exeext; then 5565 ac_cv_lib_ipc_shmat=yes 5566else 5567 echo "$as_me: failed program was:" >&5 5568sed 's/^/| /' conftest.$ac_ext >&5 5569 5570 ac_cv_lib_ipc_shmat=no 5571fi 5572 5573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5574 conftest$ac_exeext conftest.$ac_ext 5575LIBS=$ac_check_lib_save_LIBS 5576fi 5577{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 5578echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 5579if test $ac_cv_lib_ipc_shmat = yes; then 5580 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 5581fi 5582 5583 fi 5584 fi 5585 5586 # Check for libraries that X11R6 Xt/Xaw programs need. 5587 ac_save_LDFLAGS=$LDFLAGS 5588 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 5589 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 5590 # check for ICE first), but we must link in the order -lSM -lICE or 5591 # we get undefined symbols. So assume we have SM if we have ICE. 5592 # These have to be linked with before -lX11, unlike the other 5593 # libraries we check for below, so use a different variable. 5594 # John Interrante, Karl Berry 5595 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 5596echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 5597if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 5598 echo $ECHO_N "(cached) $ECHO_C" >&6 5599else 5600 ac_check_lib_save_LIBS=$LIBS 5601LIBS="-lICE $X_EXTRA_LIBS $LIBS" 5602cat >conftest.$ac_ext <<_ACEOF 5603/* confdefs.h. */ 5604_ACEOF 5605cat confdefs.h >>conftest.$ac_ext 5606cat >>conftest.$ac_ext <<_ACEOF 5607/* end confdefs.h. */ 5608 5609/* Override any GCC internal prototype to avoid an error. 5610 Use char because int might match the return type of a GCC 5611 builtin and then its argument prototype would still apply. */ 5612#ifdef __cplusplus 5613extern "C" 5614#endif 5615char IceConnectionNumber (); 5616int 5617main () 5618{ 5619return IceConnectionNumber (); 5620 ; 5621 return 0; 5622} 5623_ACEOF 5624rm -f conftest.$ac_objext conftest$ac_exeext 5625if { (ac_try="$ac_link" 5626case "(($ac_try" in 5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5628 *) ac_try_echo=$ac_try;; 5629esac 5630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 5631 (eval "$ac_link") 2>conftest.er1 5632 ac_status=$? 5633 grep -v '^ *+' conftest.er1 >conftest.err 5634 rm -f conftest.er1 5635 cat conftest.err >&5 5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5637 (exit $ac_status); } && { 5638 test -z "$ac_c_werror_flag" || 5639 test ! -s conftest.err 5640 } && test -s conftest$ac_exeext && 5641 $as_test_x conftest$ac_exeext; then 5642 ac_cv_lib_ICE_IceConnectionNumber=yes 5643else 5644 echo "$as_me: failed program was:" >&5 5645sed 's/^/| /' conftest.$ac_ext >&5 5646 5647 ac_cv_lib_ICE_IceConnectionNumber=no 5648fi 5649 5650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5651 conftest$ac_exeext conftest.$ac_ext 5652LIBS=$ac_check_lib_save_LIBS 5653fi 5654{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 5655echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 5656if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 5657 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 5658fi 5659 5660 LDFLAGS=$ac_save_LDFLAGS 5661 5662fi 5663 5664 5665 5666 if test "X$jd_prefix" = "X" 5667 then 5668 jd_prefix=$ac_default_prefix 5669 if test "X$prefix" != "XNONE" 5670 then 5671 jd_prefix="$prefix" 5672 fi 5673 jd_exec_prefix="$jd_prefix" 5674 if test "X$exec_prefix" != "XNONE" 5675 then 5676 jd_exec_prefix="$exec_prefix" 5677 fi 5678 5679 eval `sh <<EOF 5680 prefix=$jd_prefix 5681 exec_prefix=$jd_exec_prefix 5682 libdir=$libdir 5683 includedir=$includedir 5684 echo jd_prefix_libdir="\$libdir" jd_prefix_incdir="\$includedir" 5685EOF 5686` 5687 fi 5688 5689 5690 5691 { echo "$as_me:$LINENO: checking for the slang library and header files " >&5 5692echo $ECHO_N "checking for the slang library and header files ... $ECHO_C" >&6; } 5693 5694 5695 5696 jd_slang_include_dir="" 5697 jd_slang_library_dir="" 5698 jd_with_slang_library="" 5699 5700 5701# Check whether --with-slang was given. 5702if test "${with_slang+set}" = set; then 5703 withval=$with_slang; jd_with_slang_arg=$withval 5704else 5705 jd_with_slang_arg=unspecified 5706fi 5707 5708 5709 case "x$jd_with_slang_arg" in 5710 xno) 5711 jd_with_slang_library="no" 5712 ;; 5713 x) 5714 { { echo "$as_me:$LINENO: error: --with-slang requires a value-- try yes or no" >&5 5715echo "$as_me: error: --with-slang requires a value-- try yes or no" >&2;} 5716 { (exit 1); exit 1; }; } 5717 ;; 5718 xunspecified) 5719 ;; 5720 xyes) 5721 ;; 5722 *) 5723 jd_slang_include_dir="$jd_with_slang_arg"/include 5724 jd_slang_library_dir="$jd_with_slang_arg"/lib 5725 ;; 5726 esac 5727 5728 5729# Check whether --with-slanglib was given. 5730if test "${with_slanglib+set}" = set; then 5731 withval=$with_slanglib; jd_with_slanglib_arg=$withval 5732else 5733 jd_with_slanglib_arg=unspecified 5734fi 5735 5736 case "x$jd_with_slanglib_arg" in 5737 xunspecified) 5738 ;; 5739 xno) 5740 ;; 5741 x) 5742 { { echo "$as_me:$LINENO: error: --with-slanglib requres a value" >&5 5743echo "$as_me: error: --with-slanglib requres a value" >&2;} 5744 { (exit 1); exit 1; }; } 5745 ;; 5746 *) 5747 jd_slang_library_dir="$jd_with_slanglib_arg" 5748 ;; 5749 esac 5750 5751 5752# Check whether --with-slanginc was given. 5753if test "${with_slanginc+set}" = set; then 5754 withval=$with_slanginc; jd_with_slanginc_arg=$withval 5755else 5756 jd_with_slanginc_arg=unspecified 5757fi 5758 5759 case "x$jd_with_slanginc_arg" in 5760 x) 5761 { { echo "$as_me:$LINENO: error: --with-slanginc requres a value" >&5 5762echo "$as_me: error: --with-slanginc requres a value" >&2;} 5763 { (exit 1); exit 1; }; } 5764 ;; 5765 xunspecified) 5766 ;; 5767 xno) 5768 ;; 5769 *) 5770 jd_slang_include_dir="$jd_with_slanginc_arg" 5771 ;; 5772 esac 5773 5774 if test X"$jd_with_slang_library" = X 5775 then 5776 jd_slang_inc_file= 5777 jd_with_slang_library="yes" 5778 5779 if test "X$jd_slang_inc_file" = "X" 5780 then 5781 jd_slang_inc_file=slang.h 5782 fi 5783 if test X"$jd_slang_include_dir" = X 5784 then 5785 lib_include_dirs="\ 5786 $jd_prefix_incdir \ 5787 /usr/local/slang/include \ 5788 /usr/local/include/slang \ 5789 /usr/local/include \ 5790 /usr/include/slang \ 5791 /usr/slang/include \ 5792 /usr/include \ 5793 /opt/include/slang \ 5794 /opt/slang/include \ 5795 /opt/include" 5796 5797 for X in $lib_include_dirs 5798 do 5799 if test -r "$X/$jd_slang_inc_file" 5800 then 5801 jd_slang_include_dir="$X" 5802 break 5803 fi 5804 done 5805 if test X"$jd_slang_include_dir" = X 5806 then 5807 jd_with_slang_library="no" 5808 fi 5809 fi 5810 5811 if test X"$jd_slang_library_dir" = X 5812 then 5813 lib_library_dirs="\ 5814 $jd_prefix_libdir \ 5815 /usr/local/lib \ 5816 /usr/local/lib/slang \ 5817 /usr/local/slang/lib \ 5818 /usr/lib \ 5819 /usr/lib/slang \ 5820 /usr/slang/lib \ 5821 /opt/lib \ 5822 /opt/lib/slang \ 5823 /opt/slang/lib" 5824 5825 case "$host_os" in 5826 *darwin* ) 5827 exts="dylib so a" 5828 ;; 5829 *cygwin* ) 5830 exts="dll.a so a" 5831 ;; 5832 * ) 5833 exts="so a" 5834 esac 5835 5836 found=0 5837 for X in $lib_library_dirs 5838 do 5839 for E in $exts 5840 do 5841 if test -r "$X/libslang.$E" 5842 then 5843 jd_slang_library_dir="$X" 5844 found=1 5845 break 5846 fi 5847 done 5848 if test $found -eq 1 5849 then 5850 break 5851 fi 5852 done 5853 if test X"$jd_slang_library_dir" = X 5854 then 5855 jd_with_slang_library="no" 5856 fi 5857 fi 5858 fi 5859 5860 if test "$jd_with_slang_library" = "yes" 5861 then 5862 { echo "$as_me:$LINENO: result: yes: $jd_slang_library_dir and $jd_slang_include_dir" >&5 5863echo "${ECHO_T}yes: $jd_slang_library_dir and $jd_slang_include_dir" >&6; } 5864 SLANG_LIB=-L$jd_slang_library_dir 5865 if test "X$jd_slang_library_dir" = "X/usr/lib" 5866 then 5867 SLANG_LIB="" 5868 else 5869 5870if test "X$jd_slang_library_dir" != "X" 5871then 5872 if test "X$RPATH" = "X" 5873 then 5874 5875case "$host_os" in 5876 *linux*|*solaris* ) 5877 if test "X$GCC" = Xyes 5878 then 5879 if test "X$ac_R_nospace" = "Xno" 5880 then 5881 RPATH="-Wl,-R," 5882 else 5883 RPATH="-Wl,-R" 5884 fi 5885 else 5886 if test "X$ac_R_nospace" = "Xno" 5887 then 5888 RPATH="-R " 5889 else 5890 RPATH="-R" 5891 fi 5892 fi 5893 ;; 5894 *osf*|*openbsd*) 5895 if test "X$GCC" = Xyes 5896 then 5897 RPATH="-Wl,-rpath," 5898 else 5899 RPATH="-rpath " 5900 fi 5901 ;; 5902 *netbsd*) 5903 if test "X$GCC" = Xyes 5904 then 5905 RPATH="-Wl,-R" 5906 fi 5907 ;; 5908esac 5909 5910 if test "X$RPATH" != "X" 5911 then 5912 RPATH="$RPATH$jd_slang_library_dir" 5913 fi 5914 else 5915 RPATH="$RPATH:$jd_slang_library_dir" 5916 fi 5917fi 5918 5919 fi 5920 5921 SLANG_INC=-I$jd_slang_include_dir 5922 if test "X$jd_slang_include_dir" = "X/usr/include" 5923 then 5924 SLANG_INC="" 5925 fi 5926 else 5927 { echo "$as_me:$LINENO: result: no" >&5 5928echo "${ECHO_T}no" >&6; } 5929 SLANG_INC="" 5930 SLANG_LIB="" 5931 fi 5932 5933 5934 5935 if test "$jd_with_slang_library" = "no" 5936 then 5937 { { echo "$as_me:$LINENO: error: unable to find the slang library and header file $jd_slang_inc_file" >&5 5938echo "$as_me: error: unable to find the slang library and header file $jd_slang_inc_file" >&2;} 5939 { (exit 1); exit 1; }; } 5940 fi 5941 5942 5943 5944 slang_h=$jd_slang_include_dir/slang.h 5945 { echo "$as_me:$LINENO: checking SLANG_VERSION in $slang_h" >&5 5946echo $ECHO_N "checking SLANG_VERSION in $slang_h... $ECHO_C" >&6; } 5947slang_version=`grep "^#define *SLANG_VERSION " $slang_h | 5948 awk '{ print $3 }'` 5949slang_major_version=`echo $slang_version | 5950 awk '{ print int($1/10000) }'` 5951slang_minor_version=`echo $slang_version $slang_major_version | 5952 awk '{ print int(($1 - $2*10000)/100) }'` 5953slang_patchlevel_version=`echo $slang_version $slang_major_version $slang_minor_version | 5954 awk '{ print ($1 - $2*10000 - $3*100) }'` 5955 5956{ echo "$as_me:$LINENO: result: $slang_major_version.$slang_minor_version.$slang_patchlevel_version" >&5 5957echo "${ECHO_T}$slang_major_version.$slang_minor_version.$slang_patchlevel_version" >&6; } 5958 5959 5960 5961 5962 5963 5964 5965 if test "X$slang_major_version" = "X1" 5966 then 5967 MODULE_INSTALL_DIR="$libdir/slang/modules" 5968 else 5969 MODULE_INSTALL_DIR="$libdir/slang/v$slang_major_version/modules" 5970 fi 5971 SL_FILES_INSTALL_DIR=$datadir/slsh/local-packages 5972 5973 5974 5975 5976 5977 5978 5979 5980for ac_header in \ 5981stdlib.h \ 5982unistd.h \ 5983sys/wait.h \ 5984wait.h \ 5985 5986do 5987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5989 { echo "$as_me:$LINENO: checking for $ac_header" >&5 5990echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 5991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5992 echo $ECHO_N "(cached) $ECHO_C" >&6 5993fi 5994ac_res=`eval echo '${'$as_ac_Header'}'` 5995 { echo "$as_me:$LINENO: result: $ac_res" >&5 5996echo "${ECHO_T}$ac_res" >&6; } 5997else 5998 # Is the header compilable? 5999{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 6000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 6001cat >conftest.$ac_ext <<_ACEOF 6002/* confdefs.h. */ 6003_ACEOF 6004cat confdefs.h >>conftest.$ac_ext 6005cat >>conftest.$ac_ext <<_ACEOF 6006/* end confdefs.h. */ 6007$ac_includes_default 6008#include <$ac_header> 6009_ACEOF 6010rm -f conftest.$ac_objext 6011if { (ac_try="$ac_compile" 6012case "(($ac_try" in 6013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6014 *) ac_try_echo=$ac_try;; 6015esac 6016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6017 (eval "$ac_compile") 2>conftest.er1 6018 ac_status=$? 6019 grep -v '^ *+' conftest.er1 >conftest.err 6020 rm -f conftest.er1 6021 cat conftest.err >&5 6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6023 (exit $ac_status); } && { 6024 test -z "$ac_c_werror_flag" || 6025 test ! -s conftest.err 6026 } && test -s conftest.$ac_objext; then 6027 ac_header_compiler=yes 6028else 6029 echo "$as_me: failed program was:" >&5 6030sed 's/^/| /' conftest.$ac_ext >&5 6031 6032 ac_header_compiler=no 6033fi 6034 6035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6036{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 6037echo "${ECHO_T}$ac_header_compiler" >&6; } 6038 6039# Is the header present? 6040{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 6041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 6042cat >conftest.$ac_ext <<_ACEOF 6043/* confdefs.h. */ 6044_ACEOF 6045cat confdefs.h >>conftest.$ac_ext 6046cat >>conftest.$ac_ext <<_ACEOF 6047/* end confdefs.h. */ 6048#include <$ac_header> 6049_ACEOF 6050if { (ac_try="$ac_cpp conftest.$ac_ext" 6051case "(($ac_try" in 6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6053 *) ac_try_echo=$ac_try;; 6054esac 6055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6057 ac_status=$? 6058 grep -v '^ *+' conftest.er1 >conftest.err 6059 rm -f conftest.er1 6060 cat conftest.err >&5 6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6062 (exit $ac_status); } >/dev/null && { 6063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 6064 test ! -s conftest.err 6065 }; then 6066 ac_header_preproc=yes 6067else 6068 echo "$as_me: failed program was:" >&5 6069sed 's/^/| /' conftest.$ac_ext >&5 6070 6071 ac_header_preproc=no 6072fi 6073 6074rm -f conftest.err conftest.$ac_ext 6075{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 6076echo "${ECHO_T}$ac_header_preproc" >&6; } 6077 6078# So? What about this header? 6079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 6080 yes:no: ) 6081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 6082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 6083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 6084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 6085 ac_header_preproc=yes 6086 ;; 6087 no:yes:* ) 6088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 6089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 6090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 6091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 6092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 6093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 6094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 6095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 6096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 6097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 6098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 6099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 6100 6101 ;; 6102esac 6103{ echo "$as_me:$LINENO: checking for $ac_header" >&5 6104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 6105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6106 echo $ECHO_N "(cached) $ECHO_C" >&6 6107else 6108 eval "$as_ac_Header=\$ac_header_preproc" 6109fi 6110ac_res=`eval echo '${'$as_ac_Header'}'` 6111 { echo "$as_me:$LINENO: result: $ac_res" >&5 6112echo "${ECHO_T}$ac_res" >&6; } 6113 6114fi 6115if test `eval echo '${'$as_ac_Header'}'` = yes; then 6116 cat >>confdefs.h <<_ACEOF 6117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6118_ACEOF 6119 6120fi 6121 6122done 6123 6124 6125{ echo "$as_me:$LINENO: checking for short" >&5 6126echo $ECHO_N "checking for short... $ECHO_C" >&6; } 6127if test "${ac_cv_type_short+set}" = set; then 6128 echo $ECHO_N "(cached) $ECHO_C" >&6 6129else 6130 cat >conftest.$ac_ext <<_ACEOF 6131/* confdefs.h. */ 6132_ACEOF 6133cat confdefs.h >>conftest.$ac_ext 6134cat >>conftest.$ac_ext <<_ACEOF 6135/* end confdefs.h. */ 6136$ac_includes_default 6137typedef short ac__type_new_; 6138int 6139main () 6140{ 6141if ((ac__type_new_ *) 0) 6142 return 0; 6143if (sizeof (ac__type_new_)) 6144 return 0; 6145 ; 6146 return 0; 6147} 6148_ACEOF 6149rm -f conftest.$ac_objext 6150if { (ac_try="$ac_compile" 6151case "(($ac_try" in 6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6153 *) ac_try_echo=$ac_try;; 6154esac 6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6156 (eval "$ac_compile") 2>conftest.er1 6157 ac_status=$? 6158 grep -v '^ *+' conftest.er1 >conftest.err 6159 rm -f conftest.er1 6160 cat conftest.err >&5 6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6162 (exit $ac_status); } && { 6163 test -z "$ac_c_werror_flag" || 6164 test ! -s conftest.err 6165 } && test -s conftest.$ac_objext; then 6166 ac_cv_type_short=yes 6167else 6168 echo "$as_me: failed program was:" >&5 6169sed 's/^/| /' conftest.$ac_ext >&5 6170 6171 ac_cv_type_short=no 6172fi 6173 6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6175fi 6176{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 6177echo "${ECHO_T}$ac_cv_type_short" >&6; } 6178 6179# The cast to long int works around a bug in the HP C Compiler 6180# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6181# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6182# This bug is HP SR number 8606223364. 6183{ echo "$as_me:$LINENO: checking size of short" >&5 6184echo $ECHO_N "checking size of short... $ECHO_C" >&6; } 6185if test "${ac_cv_sizeof_short+set}" = set; then 6186 echo $ECHO_N "(cached) $ECHO_C" >&6 6187else 6188 if test "$cross_compiling" = yes; then 6189 # Depending upon the size, compute the lo and hi bounds. 6190cat >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$ac_includes_default 6197 typedef short ac__type_sizeof_; 6198int 6199main () 6200{ 6201static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 6202test_array [0] = 0 6203 6204 ; 6205 return 0; 6206} 6207_ACEOF 6208rm -f conftest.$ac_objext 6209if { (ac_try="$ac_compile" 6210case "(($ac_try" in 6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6212 *) ac_try_echo=$ac_try;; 6213esac 6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6215 (eval "$ac_compile") 2>conftest.er1 6216 ac_status=$? 6217 grep -v '^ *+' conftest.er1 >conftest.err 6218 rm -f conftest.er1 6219 cat conftest.err >&5 6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6221 (exit $ac_status); } && { 6222 test -z "$ac_c_werror_flag" || 6223 test ! -s conftest.err 6224 } && test -s conftest.$ac_objext; then 6225 ac_lo=0 ac_mid=0 6226 while :; do 6227 cat >conftest.$ac_ext <<_ACEOF 6228/* confdefs.h. */ 6229_ACEOF 6230cat confdefs.h >>conftest.$ac_ext 6231cat >>conftest.$ac_ext <<_ACEOF 6232/* end confdefs.h. */ 6233$ac_includes_default 6234 typedef short ac__type_sizeof_; 6235int 6236main () 6237{ 6238static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6239test_array [0] = 0 6240 6241 ; 6242 return 0; 6243} 6244_ACEOF 6245rm -f conftest.$ac_objext 6246if { (ac_try="$ac_compile" 6247case "(($ac_try" in 6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6249 *) ac_try_echo=$ac_try;; 6250esac 6251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6252 (eval "$ac_compile") 2>conftest.er1 6253 ac_status=$? 6254 grep -v '^ *+' conftest.er1 >conftest.err 6255 rm -f conftest.er1 6256 cat conftest.err >&5 6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6258 (exit $ac_status); } && { 6259 test -z "$ac_c_werror_flag" || 6260 test ! -s conftest.err 6261 } && test -s conftest.$ac_objext; then 6262 ac_hi=$ac_mid; break 6263else 6264 echo "$as_me: failed program was:" >&5 6265sed 's/^/| /' conftest.$ac_ext >&5 6266 6267 ac_lo=`expr $ac_mid + 1` 6268 if test $ac_lo -le $ac_mid; then 6269 ac_lo= ac_hi= 6270 break 6271 fi 6272 ac_mid=`expr 2 '*' $ac_mid + 1` 6273fi 6274 6275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6276 done 6277else 6278 echo "$as_me: failed program was:" >&5 6279sed 's/^/| /' conftest.$ac_ext >&5 6280 6281 cat >conftest.$ac_ext <<_ACEOF 6282/* confdefs.h. */ 6283_ACEOF 6284cat confdefs.h >>conftest.$ac_ext 6285cat >>conftest.$ac_ext <<_ACEOF 6286/* end confdefs.h. */ 6287$ac_includes_default 6288 typedef short ac__type_sizeof_; 6289int 6290main () 6291{ 6292static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 6293test_array [0] = 0 6294 6295 ; 6296 return 0; 6297} 6298_ACEOF 6299rm -f conftest.$ac_objext 6300if { (ac_try="$ac_compile" 6301case "(($ac_try" in 6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6303 *) ac_try_echo=$ac_try;; 6304esac 6305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6306 (eval "$ac_compile") 2>conftest.er1 6307 ac_status=$? 6308 grep -v '^ *+' conftest.er1 >conftest.err 6309 rm -f conftest.er1 6310 cat conftest.err >&5 6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6312 (exit $ac_status); } && { 6313 test -z "$ac_c_werror_flag" || 6314 test ! -s conftest.err 6315 } && test -s conftest.$ac_objext; then 6316 ac_hi=-1 ac_mid=-1 6317 while :; do 6318 cat >conftest.$ac_ext <<_ACEOF 6319/* confdefs.h. */ 6320_ACEOF 6321cat confdefs.h >>conftest.$ac_ext 6322cat >>conftest.$ac_ext <<_ACEOF 6323/* end confdefs.h. */ 6324$ac_includes_default 6325 typedef short ac__type_sizeof_; 6326int 6327main () 6328{ 6329static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 6330test_array [0] = 0 6331 6332 ; 6333 return 0; 6334} 6335_ACEOF 6336rm -f conftest.$ac_objext 6337if { (ac_try="$ac_compile" 6338case "(($ac_try" in 6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6340 *) ac_try_echo=$ac_try;; 6341esac 6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6343 (eval "$ac_compile") 2>conftest.er1 6344 ac_status=$? 6345 grep -v '^ *+' conftest.er1 >conftest.err 6346 rm -f conftest.er1 6347 cat conftest.err >&5 6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6349 (exit $ac_status); } && { 6350 test -z "$ac_c_werror_flag" || 6351 test ! -s conftest.err 6352 } && test -s conftest.$ac_objext; then 6353 ac_lo=$ac_mid; break 6354else 6355 echo "$as_me: failed program was:" >&5 6356sed 's/^/| /' conftest.$ac_ext >&5 6357 6358 ac_hi=`expr '(' $ac_mid ')' - 1` 6359 if test $ac_mid -le $ac_hi; then 6360 ac_lo= ac_hi= 6361 break 6362 fi 6363 ac_mid=`expr 2 '*' $ac_mid` 6364fi 6365 6366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6367 done 6368else 6369 echo "$as_me: failed program was:" >&5 6370sed 's/^/| /' conftest.$ac_ext >&5 6371 6372 ac_lo= ac_hi= 6373fi 6374 6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6376fi 6377 6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6379# Binary search between lo and hi bounds. 6380while test "x$ac_lo" != "x$ac_hi"; do 6381 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6382 cat >conftest.$ac_ext <<_ACEOF 6383/* confdefs.h. */ 6384_ACEOF 6385cat confdefs.h >>conftest.$ac_ext 6386cat >>conftest.$ac_ext <<_ACEOF 6387/* end confdefs.h. */ 6388$ac_includes_default 6389 typedef short ac__type_sizeof_; 6390int 6391main () 6392{ 6393static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6394test_array [0] = 0 6395 6396 ; 6397 return 0; 6398} 6399_ACEOF 6400rm -f conftest.$ac_objext 6401if { (ac_try="$ac_compile" 6402case "(($ac_try" in 6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6404 *) ac_try_echo=$ac_try;; 6405esac 6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6407 (eval "$ac_compile") 2>conftest.er1 6408 ac_status=$? 6409 grep -v '^ *+' conftest.er1 >conftest.err 6410 rm -f conftest.er1 6411 cat conftest.err >&5 6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6413 (exit $ac_status); } && { 6414 test -z "$ac_c_werror_flag" || 6415 test ! -s conftest.err 6416 } && test -s conftest.$ac_objext; then 6417 ac_hi=$ac_mid 6418else 6419 echo "$as_me: failed program was:" >&5 6420sed 's/^/| /' conftest.$ac_ext >&5 6421 6422 ac_lo=`expr '(' $ac_mid ')' + 1` 6423fi 6424 6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6426done 6427case $ac_lo in 6428?*) ac_cv_sizeof_short=$ac_lo;; 6429'') if test "$ac_cv_type_short" = yes; then 6430 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 6431See \`config.log' for more details." >&5 6432echo "$as_me: error: cannot compute sizeof (short) 6433See \`config.log' for more details." >&2;} 6434 { (exit 77); exit 77; }; } 6435 else 6436 ac_cv_sizeof_short=0 6437 fi ;; 6438esac 6439else 6440 cat >conftest.$ac_ext <<_ACEOF 6441/* confdefs.h. */ 6442_ACEOF 6443cat confdefs.h >>conftest.$ac_ext 6444cat >>conftest.$ac_ext <<_ACEOF 6445/* end confdefs.h. */ 6446$ac_includes_default 6447 typedef short ac__type_sizeof_; 6448static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6449static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6450#include <stdio.h> 6451#include <stdlib.h> 6452int 6453main () 6454{ 6455 6456 FILE *f = fopen ("conftest.val", "w"); 6457 if (! f) 6458 return 1; 6459 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6460 { 6461 long int i = longval (); 6462 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6463 return 1; 6464 fprintf (f, "%ld\n", i); 6465 } 6466 else 6467 { 6468 unsigned long int i = ulongval (); 6469 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6470 return 1; 6471 fprintf (f, "%lu\n", i); 6472 } 6473 return ferror (f) || fclose (f) != 0; 6474 6475 ; 6476 return 0; 6477} 6478_ACEOF 6479rm -f conftest$ac_exeext 6480if { (ac_try="$ac_link" 6481case "(($ac_try" in 6482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6483 *) ac_try_echo=$ac_try;; 6484esac 6485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6486 (eval "$ac_link") 2>&5 6487 ac_status=$? 6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6490 { (case "(($ac_try" in 6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6492 *) ac_try_echo=$ac_try;; 6493esac 6494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6495 (eval "$ac_try") 2>&5 6496 ac_status=$? 6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6498 (exit $ac_status); }; }; then 6499 ac_cv_sizeof_short=`cat conftest.val` 6500else 6501 echo "$as_me: program exited with status $ac_status" >&5 6502echo "$as_me: failed program was:" >&5 6503sed 's/^/| /' conftest.$ac_ext >&5 6504 6505( exit $ac_status ) 6506if test "$ac_cv_type_short" = yes; then 6507 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) 6508See \`config.log' for more details." >&5 6509echo "$as_me: error: cannot compute sizeof (short) 6510See \`config.log' for more details." >&2;} 6511 { (exit 77); exit 77; }; } 6512 else 6513 ac_cv_sizeof_short=0 6514 fi 6515fi 6516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6517fi 6518rm -f conftest.val 6519fi 6520{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 6521echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } 6522 6523 6524 6525cat >>confdefs.h <<_ACEOF 6526#define SIZEOF_SHORT $ac_cv_sizeof_short 6527_ACEOF 6528 6529 6530{ echo "$as_me:$LINENO: checking for int" >&5 6531echo $ECHO_N "checking for int... $ECHO_C" >&6; } 6532if test "${ac_cv_type_int+set}" = set; then 6533 echo $ECHO_N "(cached) $ECHO_C" >&6 6534else 6535 cat >conftest.$ac_ext <<_ACEOF 6536/* confdefs.h. */ 6537_ACEOF 6538cat confdefs.h >>conftest.$ac_ext 6539cat >>conftest.$ac_ext <<_ACEOF 6540/* end confdefs.h. */ 6541$ac_includes_default 6542typedef int ac__type_new_; 6543int 6544main () 6545{ 6546if ((ac__type_new_ *) 0) 6547 return 0; 6548if (sizeof (ac__type_new_)) 6549 return 0; 6550 ; 6551 return 0; 6552} 6553_ACEOF 6554rm -f conftest.$ac_objext 6555if { (ac_try="$ac_compile" 6556case "(($ac_try" in 6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6558 *) ac_try_echo=$ac_try;; 6559esac 6560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6561 (eval "$ac_compile") 2>conftest.er1 6562 ac_status=$? 6563 grep -v '^ *+' conftest.er1 >conftest.err 6564 rm -f conftest.er1 6565 cat conftest.err >&5 6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6567 (exit $ac_status); } && { 6568 test -z "$ac_c_werror_flag" || 6569 test ! -s conftest.err 6570 } && test -s conftest.$ac_objext; then 6571 ac_cv_type_int=yes 6572else 6573 echo "$as_me: failed program was:" >&5 6574sed 's/^/| /' conftest.$ac_ext >&5 6575 6576 ac_cv_type_int=no 6577fi 6578 6579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6580fi 6581{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 6582echo "${ECHO_T}$ac_cv_type_int" >&6; } 6583 6584# The cast to long int works around a bug in the HP C Compiler 6585# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6586# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6587# This bug is HP SR number 8606223364. 6588{ echo "$as_me:$LINENO: checking size of int" >&5 6589echo $ECHO_N "checking size of int... $ECHO_C" >&6; } 6590if test "${ac_cv_sizeof_int+set}" = set; then 6591 echo $ECHO_N "(cached) $ECHO_C" >&6 6592else 6593 if test "$cross_compiling" = yes; then 6594 # Depending upon the size, compute the lo and hi bounds. 6595cat >conftest.$ac_ext <<_ACEOF 6596/* confdefs.h. */ 6597_ACEOF 6598cat confdefs.h >>conftest.$ac_ext 6599cat >>conftest.$ac_ext <<_ACEOF 6600/* end confdefs.h. */ 6601$ac_includes_default 6602 typedef int ac__type_sizeof_; 6603int 6604main () 6605{ 6606static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 6607test_array [0] = 0 6608 6609 ; 6610 return 0; 6611} 6612_ACEOF 6613rm -f conftest.$ac_objext 6614if { (ac_try="$ac_compile" 6615case "(($ac_try" in 6616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6617 *) ac_try_echo=$ac_try;; 6618esac 6619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6620 (eval "$ac_compile") 2>conftest.er1 6621 ac_status=$? 6622 grep -v '^ *+' conftest.er1 >conftest.err 6623 rm -f conftest.er1 6624 cat conftest.err >&5 6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6626 (exit $ac_status); } && { 6627 test -z "$ac_c_werror_flag" || 6628 test ! -s conftest.err 6629 } && test -s conftest.$ac_objext; then 6630 ac_lo=0 ac_mid=0 6631 while :; do 6632 cat >conftest.$ac_ext <<_ACEOF 6633/* confdefs.h. */ 6634_ACEOF 6635cat confdefs.h >>conftest.$ac_ext 6636cat >>conftest.$ac_ext <<_ACEOF 6637/* end confdefs.h. */ 6638$ac_includes_default 6639 typedef int ac__type_sizeof_; 6640int 6641main () 6642{ 6643static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6644test_array [0] = 0 6645 6646 ; 6647 return 0; 6648} 6649_ACEOF 6650rm -f conftest.$ac_objext 6651if { (ac_try="$ac_compile" 6652case "(($ac_try" in 6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6654 *) ac_try_echo=$ac_try;; 6655esac 6656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6657 (eval "$ac_compile") 2>conftest.er1 6658 ac_status=$? 6659 grep -v '^ *+' conftest.er1 >conftest.err 6660 rm -f conftest.er1 6661 cat conftest.err >&5 6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6663 (exit $ac_status); } && { 6664 test -z "$ac_c_werror_flag" || 6665 test ! -s conftest.err 6666 } && test -s conftest.$ac_objext; then 6667 ac_hi=$ac_mid; break 6668else 6669 echo "$as_me: failed program was:" >&5 6670sed 's/^/| /' conftest.$ac_ext >&5 6671 6672 ac_lo=`expr $ac_mid + 1` 6673 if test $ac_lo -le $ac_mid; then 6674 ac_lo= ac_hi= 6675 break 6676 fi 6677 ac_mid=`expr 2 '*' $ac_mid + 1` 6678fi 6679 6680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6681 done 6682else 6683 echo "$as_me: failed program was:" >&5 6684sed 's/^/| /' conftest.$ac_ext >&5 6685 6686 cat >conftest.$ac_ext <<_ACEOF 6687/* confdefs.h. */ 6688_ACEOF 6689cat confdefs.h >>conftest.$ac_ext 6690cat >>conftest.$ac_ext <<_ACEOF 6691/* end confdefs.h. */ 6692$ac_includes_default 6693 typedef int ac__type_sizeof_; 6694int 6695main () 6696{ 6697static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 6698test_array [0] = 0 6699 6700 ; 6701 return 0; 6702} 6703_ACEOF 6704rm -f conftest.$ac_objext 6705if { (ac_try="$ac_compile" 6706case "(($ac_try" in 6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6708 *) ac_try_echo=$ac_try;; 6709esac 6710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6711 (eval "$ac_compile") 2>conftest.er1 6712 ac_status=$? 6713 grep -v '^ *+' conftest.er1 >conftest.err 6714 rm -f conftest.er1 6715 cat conftest.err >&5 6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6717 (exit $ac_status); } && { 6718 test -z "$ac_c_werror_flag" || 6719 test ! -s conftest.err 6720 } && test -s conftest.$ac_objext; then 6721 ac_hi=-1 ac_mid=-1 6722 while :; do 6723 cat >conftest.$ac_ext <<_ACEOF 6724/* confdefs.h. */ 6725_ACEOF 6726cat confdefs.h >>conftest.$ac_ext 6727cat >>conftest.$ac_ext <<_ACEOF 6728/* end confdefs.h. */ 6729$ac_includes_default 6730 typedef int ac__type_sizeof_; 6731int 6732main () 6733{ 6734static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 6735test_array [0] = 0 6736 6737 ; 6738 return 0; 6739} 6740_ACEOF 6741rm -f conftest.$ac_objext 6742if { (ac_try="$ac_compile" 6743case "(($ac_try" in 6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6745 *) ac_try_echo=$ac_try;; 6746esac 6747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6748 (eval "$ac_compile") 2>conftest.er1 6749 ac_status=$? 6750 grep -v '^ *+' conftest.er1 >conftest.err 6751 rm -f conftest.er1 6752 cat conftest.err >&5 6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6754 (exit $ac_status); } && { 6755 test -z "$ac_c_werror_flag" || 6756 test ! -s conftest.err 6757 } && test -s conftest.$ac_objext; then 6758 ac_lo=$ac_mid; break 6759else 6760 echo "$as_me: failed program was:" >&5 6761sed 's/^/| /' conftest.$ac_ext >&5 6762 6763 ac_hi=`expr '(' $ac_mid ')' - 1` 6764 if test $ac_mid -le $ac_hi; then 6765 ac_lo= ac_hi= 6766 break 6767 fi 6768 ac_mid=`expr 2 '*' $ac_mid` 6769fi 6770 6771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6772 done 6773else 6774 echo "$as_me: failed program was:" >&5 6775sed 's/^/| /' conftest.$ac_ext >&5 6776 6777 ac_lo= ac_hi= 6778fi 6779 6780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6781fi 6782 6783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6784# Binary search between lo and hi bounds. 6785while test "x$ac_lo" != "x$ac_hi"; do 6786 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 6787 cat >conftest.$ac_ext <<_ACEOF 6788/* confdefs.h. */ 6789_ACEOF 6790cat confdefs.h >>conftest.$ac_ext 6791cat >>conftest.$ac_ext <<_ACEOF 6792/* end confdefs.h. */ 6793$ac_includes_default 6794 typedef int ac__type_sizeof_; 6795int 6796main () 6797{ 6798static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 6799test_array [0] = 0 6800 6801 ; 6802 return 0; 6803} 6804_ACEOF 6805rm -f conftest.$ac_objext 6806if { (ac_try="$ac_compile" 6807case "(($ac_try" in 6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6809 *) ac_try_echo=$ac_try;; 6810esac 6811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6812 (eval "$ac_compile") 2>conftest.er1 6813 ac_status=$? 6814 grep -v '^ *+' conftest.er1 >conftest.err 6815 rm -f conftest.er1 6816 cat conftest.err >&5 6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6818 (exit $ac_status); } && { 6819 test -z "$ac_c_werror_flag" || 6820 test ! -s conftest.err 6821 } && test -s conftest.$ac_objext; then 6822 ac_hi=$ac_mid 6823else 6824 echo "$as_me: failed program was:" >&5 6825sed 's/^/| /' conftest.$ac_ext >&5 6826 6827 ac_lo=`expr '(' $ac_mid ')' + 1` 6828fi 6829 6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6831done 6832case $ac_lo in 6833?*) ac_cv_sizeof_int=$ac_lo;; 6834'') if test "$ac_cv_type_int" = yes; then 6835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 6836See \`config.log' for more details." >&5 6837echo "$as_me: error: cannot compute sizeof (int) 6838See \`config.log' for more details." >&2;} 6839 { (exit 77); exit 77; }; } 6840 else 6841 ac_cv_sizeof_int=0 6842 fi ;; 6843esac 6844else 6845 cat >conftest.$ac_ext <<_ACEOF 6846/* confdefs.h. */ 6847_ACEOF 6848cat confdefs.h >>conftest.$ac_ext 6849cat >>conftest.$ac_ext <<_ACEOF 6850/* end confdefs.h. */ 6851$ac_includes_default 6852 typedef int ac__type_sizeof_; 6853static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 6854static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 6855#include <stdio.h> 6856#include <stdlib.h> 6857int 6858main () 6859{ 6860 6861 FILE *f = fopen ("conftest.val", "w"); 6862 if (! f) 6863 return 1; 6864 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 6865 { 6866 long int i = longval (); 6867 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6868 return 1; 6869 fprintf (f, "%ld\n", i); 6870 } 6871 else 6872 { 6873 unsigned long int i = ulongval (); 6874 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 6875 return 1; 6876 fprintf (f, "%lu\n", i); 6877 } 6878 return ferror (f) || fclose (f) != 0; 6879 6880 ; 6881 return 0; 6882} 6883_ACEOF 6884rm -f conftest$ac_exeext 6885if { (ac_try="$ac_link" 6886case "(($ac_try" in 6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6888 *) ac_try_echo=$ac_try;; 6889esac 6890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6891 (eval "$ac_link") 2>&5 6892 ac_status=$? 6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6895 { (case "(($ac_try" in 6896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6897 *) ac_try_echo=$ac_try;; 6898esac 6899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6900 (eval "$ac_try") 2>&5 6901 ac_status=$? 6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6903 (exit $ac_status); }; }; then 6904 ac_cv_sizeof_int=`cat conftest.val` 6905else 6906 echo "$as_me: program exited with status $ac_status" >&5 6907echo "$as_me: failed program was:" >&5 6908sed 's/^/| /' conftest.$ac_ext >&5 6909 6910( exit $ac_status ) 6911if test "$ac_cv_type_int" = yes; then 6912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) 6913See \`config.log' for more details." >&5 6914echo "$as_me: error: cannot compute sizeof (int) 6915See \`config.log' for more details." >&2;} 6916 { (exit 77); exit 77; }; } 6917 else 6918 ac_cv_sizeof_int=0 6919 fi 6920fi 6921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6922fi 6923rm -f conftest.val 6924fi 6925{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 6926echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } 6927 6928 6929 6930cat >>confdefs.h <<_ACEOF 6931#define SIZEOF_INT $ac_cv_sizeof_int 6932_ACEOF 6933 6934 6935{ echo "$as_me:$LINENO: checking for long" >&5 6936echo $ECHO_N "checking for long... $ECHO_C" >&6; } 6937if test "${ac_cv_type_long+set}" = set; then 6938 echo $ECHO_N "(cached) $ECHO_C" >&6 6939else 6940 cat >conftest.$ac_ext <<_ACEOF 6941/* confdefs.h. */ 6942_ACEOF 6943cat confdefs.h >>conftest.$ac_ext 6944cat >>conftest.$ac_ext <<_ACEOF 6945/* end confdefs.h. */ 6946$ac_includes_default 6947typedef long ac__type_new_; 6948int 6949main () 6950{ 6951if ((ac__type_new_ *) 0) 6952 return 0; 6953if (sizeof (ac__type_new_)) 6954 return 0; 6955 ; 6956 return 0; 6957} 6958_ACEOF 6959rm -f conftest.$ac_objext 6960if { (ac_try="$ac_compile" 6961case "(($ac_try" in 6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6963 *) ac_try_echo=$ac_try;; 6964esac 6965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6966 (eval "$ac_compile") 2>conftest.er1 6967 ac_status=$? 6968 grep -v '^ *+' conftest.er1 >conftest.err 6969 rm -f conftest.er1 6970 cat conftest.err >&5 6971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6972 (exit $ac_status); } && { 6973 test -z "$ac_c_werror_flag" || 6974 test ! -s conftest.err 6975 } && test -s conftest.$ac_objext; then 6976 ac_cv_type_long=yes 6977else 6978 echo "$as_me: failed program was:" >&5 6979sed 's/^/| /' conftest.$ac_ext >&5 6980 6981 ac_cv_type_long=no 6982fi 6983 6984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6985fi 6986{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 6987echo "${ECHO_T}$ac_cv_type_long" >&6; } 6988 6989# The cast to long int works around a bug in the HP C Compiler 6990# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6991# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6992# This bug is HP SR number 8606223364. 6993{ echo "$as_me:$LINENO: checking size of long" >&5 6994echo $ECHO_N "checking size of long... $ECHO_C" >&6; } 6995if test "${ac_cv_sizeof_long+set}" = set; then 6996 echo $ECHO_N "(cached) $ECHO_C" >&6 6997else 6998 if test "$cross_compiling" = yes; then 6999 # Depending upon the size, compute the lo and hi bounds. 7000cat >conftest.$ac_ext <<_ACEOF 7001/* confdefs.h. */ 7002_ACEOF 7003cat confdefs.h >>conftest.$ac_ext 7004cat >>conftest.$ac_ext <<_ACEOF 7005/* end confdefs.h. */ 7006$ac_includes_default 7007 typedef long ac__type_sizeof_; 7008int 7009main () 7010{ 7011static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7012test_array [0] = 0 7013 7014 ; 7015 return 0; 7016} 7017_ACEOF 7018rm -f conftest.$ac_objext 7019if { (ac_try="$ac_compile" 7020case "(($ac_try" in 7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7022 *) ac_try_echo=$ac_try;; 7023esac 7024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7025 (eval "$ac_compile") 2>conftest.er1 7026 ac_status=$? 7027 grep -v '^ *+' conftest.er1 >conftest.err 7028 rm -f conftest.er1 7029 cat conftest.err >&5 7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7031 (exit $ac_status); } && { 7032 test -z "$ac_c_werror_flag" || 7033 test ! -s conftest.err 7034 } && test -s conftest.$ac_objext; then 7035 ac_lo=0 ac_mid=0 7036 while :; do 7037 cat >conftest.$ac_ext <<_ACEOF 7038/* confdefs.h. */ 7039_ACEOF 7040cat confdefs.h >>conftest.$ac_ext 7041cat >>conftest.$ac_ext <<_ACEOF 7042/* end confdefs.h. */ 7043$ac_includes_default 7044 typedef long ac__type_sizeof_; 7045int 7046main () 7047{ 7048static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7049test_array [0] = 0 7050 7051 ; 7052 return 0; 7053} 7054_ACEOF 7055rm -f conftest.$ac_objext 7056if { (ac_try="$ac_compile" 7057case "(($ac_try" in 7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7059 *) ac_try_echo=$ac_try;; 7060esac 7061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7062 (eval "$ac_compile") 2>conftest.er1 7063 ac_status=$? 7064 grep -v '^ *+' conftest.er1 >conftest.err 7065 rm -f conftest.er1 7066 cat conftest.err >&5 7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7068 (exit $ac_status); } && { 7069 test -z "$ac_c_werror_flag" || 7070 test ! -s conftest.err 7071 } && test -s conftest.$ac_objext; then 7072 ac_hi=$ac_mid; break 7073else 7074 echo "$as_me: failed program was:" >&5 7075sed 's/^/| /' conftest.$ac_ext >&5 7076 7077 ac_lo=`expr $ac_mid + 1` 7078 if test $ac_lo -le $ac_mid; then 7079 ac_lo= ac_hi= 7080 break 7081 fi 7082 ac_mid=`expr 2 '*' $ac_mid + 1` 7083fi 7084 7085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7086 done 7087else 7088 echo "$as_me: failed program was:" >&5 7089sed 's/^/| /' conftest.$ac_ext >&5 7090 7091 cat >conftest.$ac_ext <<_ACEOF 7092/* confdefs.h. */ 7093_ACEOF 7094cat confdefs.h >>conftest.$ac_ext 7095cat >>conftest.$ac_ext <<_ACEOF 7096/* end confdefs.h. */ 7097$ac_includes_default 7098 typedef long ac__type_sizeof_; 7099int 7100main () 7101{ 7102static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 7103test_array [0] = 0 7104 7105 ; 7106 return 0; 7107} 7108_ACEOF 7109rm -f conftest.$ac_objext 7110if { (ac_try="$ac_compile" 7111case "(($ac_try" in 7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7113 *) ac_try_echo=$ac_try;; 7114esac 7115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7116 (eval "$ac_compile") 2>conftest.er1 7117 ac_status=$? 7118 grep -v '^ *+' conftest.er1 >conftest.err 7119 rm -f conftest.er1 7120 cat conftest.err >&5 7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7122 (exit $ac_status); } && { 7123 test -z "$ac_c_werror_flag" || 7124 test ! -s conftest.err 7125 } && test -s conftest.$ac_objext; then 7126 ac_hi=-1 ac_mid=-1 7127 while :; do 7128 cat >conftest.$ac_ext <<_ACEOF 7129/* confdefs.h. */ 7130_ACEOF 7131cat confdefs.h >>conftest.$ac_ext 7132cat >>conftest.$ac_ext <<_ACEOF 7133/* end confdefs.h. */ 7134$ac_includes_default 7135 typedef long ac__type_sizeof_; 7136int 7137main () 7138{ 7139static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7140test_array [0] = 0 7141 7142 ; 7143 return 0; 7144} 7145_ACEOF 7146rm -f conftest.$ac_objext 7147if { (ac_try="$ac_compile" 7148case "(($ac_try" in 7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7150 *) ac_try_echo=$ac_try;; 7151esac 7152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7153 (eval "$ac_compile") 2>conftest.er1 7154 ac_status=$? 7155 grep -v '^ *+' conftest.er1 >conftest.err 7156 rm -f conftest.er1 7157 cat conftest.err >&5 7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7159 (exit $ac_status); } && { 7160 test -z "$ac_c_werror_flag" || 7161 test ! -s conftest.err 7162 } && test -s conftest.$ac_objext; then 7163 ac_lo=$ac_mid; break 7164else 7165 echo "$as_me: failed program was:" >&5 7166sed 's/^/| /' conftest.$ac_ext >&5 7167 7168 ac_hi=`expr '(' $ac_mid ')' - 1` 7169 if test $ac_mid -le $ac_hi; then 7170 ac_lo= ac_hi= 7171 break 7172 fi 7173 ac_mid=`expr 2 '*' $ac_mid` 7174fi 7175 7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7177 done 7178else 7179 echo "$as_me: failed program was:" >&5 7180sed 's/^/| /' conftest.$ac_ext >&5 7181 7182 ac_lo= ac_hi= 7183fi 7184 7185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7186fi 7187 7188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7189# Binary search between lo and hi bounds. 7190while test "x$ac_lo" != "x$ac_hi"; do 7191 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7192 cat >conftest.$ac_ext <<_ACEOF 7193/* confdefs.h. */ 7194_ACEOF 7195cat confdefs.h >>conftest.$ac_ext 7196cat >>conftest.$ac_ext <<_ACEOF 7197/* end confdefs.h. */ 7198$ac_includes_default 7199 typedef long ac__type_sizeof_; 7200int 7201main () 7202{ 7203static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7204test_array [0] = 0 7205 7206 ; 7207 return 0; 7208} 7209_ACEOF 7210rm -f conftest.$ac_objext 7211if { (ac_try="$ac_compile" 7212case "(($ac_try" in 7213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7214 *) ac_try_echo=$ac_try;; 7215esac 7216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7217 (eval "$ac_compile") 2>conftest.er1 7218 ac_status=$? 7219 grep -v '^ *+' conftest.er1 >conftest.err 7220 rm -f conftest.er1 7221 cat conftest.err >&5 7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7223 (exit $ac_status); } && { 7224 test -z "$ac_c_werror_flag" || 7225 test ! -s conftest.err 7226 } && test -s conftest.$ac_objext; then 7227 ac_hi=$ac_mid 7228else 7229 echo "$as_me: failed program was:" >&5 7230sed 's/^/| /' conftest.$ac_ext >&5 7231 7232 ac_lo=`expr '(' $ac_mid ')' + 1` 7233fi 7234 7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7236done 7237case $ac_lo in 7238?*) ac_cv_sizeof_long=$ac_lo;; 7239'') if test "$ac_cv_type_long" = yes; then 7240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 7241See \`config.log' for more details." >&5 7242echo "$as_me: error: cannot compute sizeof (long) 7243See \`config.log' for more details." >&2;} 7244 { (exit 77); exit 77; }; } 7245 else 7246 ac_cv_sizeof_long=0 7247 fi ;; 7248esac 7249else 7250 cat >conftest.$ac_ext <<_ACEOF 7251/* confdefs.h. */ 7252_ACEOF 7253cat confdefs.h >>conftest.$ac_ext 7254cat >>conftest.$ac_ext <<_ACEOF 7255/* end confdefs.h. */ 7256$ac_includes_default 7257 typedef long ac__type_sizeof_; 7258static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 7259static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 7260#include <stdio.h> 7261#include <stdlib.h> 7262int 7263main () 7264{ 7265 7266 FILE *f = fopen ("conftest.val", "w"); 7267 if (! f) 7268 return 1; 7269 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 7270 { 7271 long int i = longval (); 7272 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7273 return 1; 7274 fprintf (f, "%ld\n", i); 7275 } 7276 else 7277 { 7278 unsigned long int i = ulongval (); 7279 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7280 return 1; 7281 fprintf (f, "%lu\n", i); 7282 } 7283 return ferror (f) || fclose (f) != 0; 7284 7285 ; 7286 return 0; 7287} 7288_ACEOF 7289rm -f conftest$ac_exeext 7290if { (ac_try="$ac_link" 7291case "(($ac_try" in 7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7293 *) ac_try_echo=$ac_try;; 7294esac 7295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7296 (eval "$ac_link") 2>&5 7297 ac_status=$? 7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7300 { (case "(($ac_try" in 7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7302 *) ac_try_echo=$ac_try;; 7303esac 7304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7305 (eval "$ac_try") 2>&5 7306 ac_status=$? 7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7308 (exit $ac_status); }; }; then 7309 ac_cv_sizeof_long=`cat conftest.val` 7310else 7311 echo "$as_me: program exited with status $ac_status" >&5 7312echo "$as_me: failed program was:" >&5 7313sed 's/^/| /' conftest.$ac_ext >&5 7314 7315( exit $ac_status ) 7316if test "$ac_cv_type_long" = yes; then 7317 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) 7318See \`config.log' for more details." >&5 7319echo "$as_me: error: cannot compute sizeof (long) 7320See \`config.log' for more details." >&2;} 7321 { (exit 77); exit 77; }; } 7322 else 7323 ac_cv_sizeof_long=0 7324 fi 7325fi 7326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7327fi 7328rm -f conftest.val 7329fi 7330{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 7331echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } 7332 7333 7334 7335cat >>confdefs.h <<_ACEOF 7336#define SIZEOF_LONG $ac_cv_sizeof_long 7337_ACEOF 7338 7339 7340{ echo "$as_me:$LINENO: checking for float" >&5 7341echo $ECHO_N "checking for float... $ECHO_C" >&6; } 7342if test "${ac_cv_type_float+set}" = set; then 7343 echo $ECHO_N "(cached) $ECHO_C" >&6 7344else 7345 cat >conftest.$ac_ext <<_ACEOF 7346/* confdefs.h. */ 7347_ACEOF 7348cat confdefs.h >>conftest.$ac_ext 7349cat >>conftest.$ac_ext <<_ACEOF 7350/* end confdefs.h. */ 7351$ac_includes_default 7352typedef float ac__type_new_; 7353int 7354main () 7355{ 7356if ((ac__type_new_ *) 0) 7357 return 0; 7358if (sizeof (ac__type_new_)) 7359 return 0; 7360 ; 7361 return 0; 7362} 7363_ACEOF 7364rm -f conftest.$ac_objext 7365if { (ac_try="$ac_compile" 7366case "(($ac_try" in 7367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7368 *) ac_try_echo=$ac_try;; 7369esac 7370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7371 (eval "$ac_compile") 2>conftest.er1 7372 ac_status=$? 7373 grep -v '^ *+' conftest.er1 >conftest.err 7374 rm -f conftest.er1 7375 cat conftest.err >&5 7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7377 (exit $ac_status); } && { 7378 test -z "$ac_c_werror_flag" || 7379 test ! -s conftest.err 7380 } && test -s conftest.$ac_objext; then 7381 ac_cv_type_float=yes 7382else 7383 echo "$as_me: failed program was:" >&5 7384sed 's/^/| /' conftest.$ac_ext >&5 7385 7386 ac_cv_type_float=no 7387fi 7388 7389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7390fi 7391{ echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 7392echo "${ECHO_T}$ac_cv_type_float" >&6; } 7393 7394# The cast to long int works around a bug in the HP C Compiler 7395# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7396# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7397# This bug is HP SR number 8606223364. 7398{ echo "$as_me:$LINENO: checking size of float" >&5 7399echo $ECHO_N "checking size of float... $ECHO_C" >&6; } 7400if test "${ac_cv_sizeof_float+set}" = set; then 7401 echo $ECHO_N "(cached) $ECHO_C" >&6 7402else 7403 if test "$cross_compiling" = yes; then 7404 # Depending upon the size, compute the lo and hi bounds. 7405cat >conftest.$ac_ext <<_ACEOF 7406/* confdefs.h. */ 7407_ACEOF 7408cat confdefs.h >>conftest.$ac_ext 7409cat >>conftest.$ac_ext <<_ACEOF 7410/* end confdefs.h. */ 7411$ac_includes_default 7412 typedef float ac__type_sizeof_; 7413int 7414main () 7415{ 7416static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7417test_array [0] = 0 7418 7419 ; 7420 return 0; 7421} 7422_ACEOF 7423rm -f conftest.$ac_objext 7424if { (ac_try="$ac_compile" 7425case "(($ac_try" in 7426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7427 *) ac_try_echo=$ac_try;; 7428esac 7429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7430 (eval "$ac_compile") 2>conftest.er1 7431 ac_status=$? 7432 grep -v '^ *+' conftest.er1 >conftest.err 7433 rm -f conftest.er1 7434 cat conftest.err >&5 7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7436 (exit $ac_status); } && { 7437 test -z "$ac_c_werror_flag" || 7438 test ! -s conftest.err 7439 } && test -s conftest.$ac_objext; then 7440 ac_lo=0 ac_mid=0 7441 while :; do 7442 cat >conftest.$ac_ext <<_ACEOF 7443/* confdefs.h. */ 7444_ACEOF 7445cat confdefs.h >>conftest.$ac_ext 7446cat >>conftest.$ac_ext <<_ACEOF 7447/* end confdefs.h. */ 7448$ac_includes_default 7449 typedef float ac__type_sizeof_; 7450int 7451main () 7452{ 7453static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7454test_array [0] = 0 7455 7456 ; 7457 return 0; 7458} 7459_ACEOF 7460rm -f conftest.$ac_objext 7461if { (ac_try="$ac_compile" 7462case "(($ac_try" in 7463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7464 *) ac_try_echo=$ac_try;; 7465esac 7466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7467 (eval "$ac_compile") 2>conftest.er1 7468 ac_status=$? 7469 grep -v '^ *+' conftest.er1 >conftest.err 7470 rm -f conftest.er1 7471 cat conftest.err >&5 7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7473 (exit $ac_status); } && { 7474 test -z "$ac_c_werror_flag" || 7475 test ! -s conftest.err 7476 } && test -s conftest.$ac_objext; then 7477 ac_hi=$ac_mid; break 7478else 7479 echo "$as_me: failed program was:" >&5 7480sed 's/^/| /' conftest.$ac_ext >&5 7481 7482 ac_lo=`expr $ac_mid + 1` 7483 if test $ac_lo -le $ac_mid; then 7484 ac_lo= ac_hi= 7485 break 7486 fi 7487 ac_mid=`expr 2 '*' $ac_mid + 1` 7488fi 7489 7490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7491 done 7492else 7493 echo "$as_me: failed program was:" >&5 7494sed 's/^/| /' conftest.$ac_ext >&5 7495 7496 cat >conftest.$ac_ext <<_ACEOF 7497/* confdefs.h. */ 7498_ACEOF 7499cat confdefs.h >>conftest.$ac_ext 7500cat >>conftest.$ac_ext <<_ACEOF 7501/* end confdefs.h. */ 7502$ac_includes_default 7503 typedef float ac__type_sizeof_; 7504int 7505main () 7506{ 7507static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 7508test_array [0] = 0 7509 7510 ; 7511 return 0; 7512} 7513_ACEOF 7514rm -f conftest.$ac_objext 7515if { (ac_try="$ac_compile" 7516case "(($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_compile") 2>conftest.er1 7522 ac_status=$? 7523 grep -v '^ *+' conftest.er1 >conftest.err 7524 rm -f conftest.er1 7525 cat conftest.err >&5 7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7527 (exit $ac_status); } && { 7528 test -z "$ac_c_werror_flag" || 7529 test ! -s conftest.err 7530 } && test -s conftest.$ac_objext; then 7531 ac_hi=-1 ac_mid=-1 7532 while :; do 7533 cat >conftest.$ac_ext <<_ACEOF 7534/* confdefs.h. */ 7535_ACEOF 7536cat confdefs.h >>conftest.$ac_ext 7537cat >>conftest.$ac_ext <<_ACEOF 7538/* end confdefs.h. */ 7539$ac_includes_default 7540 typedef float ac__type_sizeof_; 7541int 7542main () 7543{ 7544static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7545test_array [0] = 0 7546 7547 ; 7548 return 0; 7549} 7550_ACEOF 7551rm -f conftest.$ac_objext 7552if { (ac_try="$ac_compile" 7553case "(($ac_try" in 7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7555 *) ac_try_echo=$ac_try;; 7556esac 7557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7558 (eval "$ac_compile") 2>conftest.er1 7559 ac_status=$? 7560 grep -v '^ *+' conftest.er1 >conftest.err 7561 rm -f conftest.er1 7562 cat conftest.err >&5 7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7564 (exit $ac_status); } && { 7565 test -z "$ac_c_werror_flag" || 7566 test ! -s conftest.err 7567 } && test -s conftest.$ac_objext; then 7568 ac_lo=$ac_mid; break 7569else 7570 echo "$as_me: failed program was:" >&5 7571sed 's/^/| /' conftest.$ac_ext >&5 7572 7573 ac_hi=`expr '(' $ac_mid ')' - 1` 7574 if test $ac_mid -le $ac_hi; then 7575 ac_lo= ac_hi= 7576 break 7577 fi 7578 ac_mid=`expr 2 '*' $ac_mid` 7579fi 7580 7581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7582 done 7583else 7584 echo "$as_me: failed program was:" >&5 7585sed 's/^/| /' conftest.$ac_ext >&5 7586 7587 ac_lo= ac_hi= 7588fi 7589 7590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7591fi 7592 7593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7594# Binary search between lo and hi bounds. 7595while test "x$ac_lo" != "x$ac_hi"; do 7596 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 7597 cat >conftest.$ac_ext <<_ACEOF 7598/* confdefs.h. */ 7599_ACEOF 7600cat confdefs.h >>conftest.$ac_ext 7601cat >>conftest.$ac_ext <<_ACEOF 7602/* end confdefs.h. */ 7603$ac_includes_default 7604 typedef float ac__type_sizeof_; 7605int 7606main () 7607{ 7608static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7609test_array [0] = 0 7610 7611 ; 7612 return 0; 7613} 7614_ACEOF 7615rm -f conftest.$ac_objext 7616if { (ac_try="$ac_compile" 7617case "(($ac_try" in 7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7619 *) ac_try_echo=$ac_try;; 7620esac 7621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7622 (eval "$ac_compile") 2>conftest.er1 7623 ac_status=$? 7624 grep -v '^ *+' conftest.er1 >conftest.err 7625 rm -f conftest.er1 7626 cat conftest.err >&5 7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7628 (exit $ac_status); } && { 7629 test -z "$ac_c_werror_flag" || 7630 test ! -s conftest.err 7631 } && test -s conftest.$ac_objext; then 7632 ac_hi=$ac_mid 7633else 7634 echo "$as_me: failed program was:" >&5 7635sed 's/^/| /' conftest.$ac_ext >&5 7636 7637 ac_lo=`expr '(' $ac_mid ')' + 1` 7638fi 7639 7640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7641done 7642case $ac_lo in 7643?*) ac_cv_sizeof_float=$ac_lo;; 7644'') if test "$ac_cv_type_float" = yes; then 7645 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) 7646See \`config.log' for more details." >&5 7647echo "$as_me: error: cannot compute sizeof (float) 7648See \`config.log' for more details." >&2;} 7649 { (exit 77); exit 77; }; } 7650 else 7651 ac_cv_sizeof_float=0 7652 fi ;; 7653esac 7654else 7655 cat >conftest.$ac_ext <<_ACEOF 7656/* confdefs.h. */ 7657_ACEOF 7658cat confdefs.h >>conftest.$ac_ext 7659cat >>conftest.$ac_ext <<_ACEOF 7660/* end confdefs.h. */ 7661$ac_includes_default 7662 typedef float ac__type_sizeof_; 7663static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 7664static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 7665#include <stdio.h> 7666#include <stdlib.h> 7667int 7668main () 7669{ 7670 7671 FILE *f = fopen ("conftest.val", "w"); 7672 if (! f) 7673 return 1; 7674 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 7675 { 7676 long int i = longval (); 7677 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7678 return 1; 7679 fprintf (f, "%ld\n", i); 7680 } 7681 else 7682 { 7683 unsigned long int i = ulongval (); 7684 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 7685 return 1; 7686 fprintf (f, "%lu\n", i); 7687 } 7688 return ferror (f) || fclose (f) != 0; 7689 7690 ; 7691 return 0; 7692} 7693_ACEOF 7694rm -f conftest$ac_exeext 7695if { (ac_try="$ac_link" 7696case "(($ac_try" in 7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7698 *) ac_try_echo=$ac_try;; 7699esac 7700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7701 (eval "$ac_link") 2>&5 7702 ac_status=$? 7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7705 { (case "(($ac_try" in 7706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7707 *) ac_try_echo=$ac_try;; 7708esac 7709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7710 (eval "$ac_try") 2>&5 7711 ac_status=$? 7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7713 (exit $ac_status); }; }; then 7714 ac_cv_sizeof_float=`cat conftest.val` 7715else 7716 echo "$as_me: program exited with status $ac_status" >&5 7717echo "$as_me: failed program was:" >&5 7718sed 's/^/| /' conftest.$ac_ext >&5 7719 7720( exit $ac_status ) 7721if test "$ac_cv_type_float" = yes; then 7722 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float) 7723See \`config.log' for more details." >&5 7724echo "$as_me: error: cannot compute sizeof (float) 7725See \`config.log' for more details." >&2;} 7726 { (exit 77); exit 77; }; } 7727 else 7728 ac_cv_sizeof_float=0 7729 fi 7730fi 7731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7732fi 7733rm -f conftest.val 7734fi 7735{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 7736echo "${ECHO_T}$ac_cv_sizeof_float" >&6; } 7737 7738 7739 7740cat >>confdefs.h <<_ACEOF 7741#define SIZEOF_FLOAT $ac_cv_sizeof_float 7742_ACEOF 7743 7744 7745{ echo "$as_me:$LINENO: checking for double" >&5 7746echo $ECHO_N "checking for double... $ECHO_C" >&6; } 7747if test "${ac_cv_type_double+set}" = set; then 7748 echo $ECHO_N "(cached) $ECHO_C" >&6 7749else 7750 cat >conftest.$ac_ext <<_ACEOF 7751/* confdefs.h. */ 7752_ACEOF 7753cat confdefs.h >>conftest.$ac_ext 7754cat >>conftest.$ac_ext <<_ACEOF 7755/* end confdefs.h. */ 7756$ac_includes_default 7757typedef double ac__type_new_; 7758int 7759main () 7760{ 7761if ((ac__type_new_ *) 0) 7762 return 0; 7763if (sizeof (ac__type_new_)) 7764 return 0; 7765 ; 7766 return 0; 7767} 7768_ACEOF 7769rm -f conftest.$ac_objext 7770if { (ac_try="$ac_compile" 7771case "(($ac_try" in 7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7773 *) ac_try_echo=$ac_try;; 7774esac 7775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7776 (eval "$ac_compile") 2>conftest.er1 7777 ac_status=$? 7778 grep -v '^ *+' conftest.er1 >conftest.err 7779 rm -f conftest.er1 7780 cat conftest.err >&5 7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7782 (exit $ac_status); } && { 7783 test -z "$ac_c_werror_flag" || 7784 test ! -s conftest.err 7785 } && test -s conftest.$ac_objext; then 7786 ac_cv_type_double=yes 7787else 7788 echo "$as_me: failed program was:" >&5 7789sed 's/^/| /' conftest.$ac_ext >&5 7790 7791 ac_cv_type_double=no 7792fi 7793 7794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7795fi 7796{ echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 7797echo "${ECHO_T}$ac_cv_type_double" >&6; } 7798 7799# The cast to long int works around a bug in the HP C Compiler 7800# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7801# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7802# This bug is HP SR number 8606223364. 7803{ echo "$as_me:$LINENO: checking size of double" >&5 7804echo $ECHO_N "checking size of double... $ECHO_C" >&6; } 7805if test "${ac_cv_sizeof_double+set}" = set; then 7806 echo $ECHO_N "(cached) $ECHO_C" >&6 7807else 7808 if test "$cross_compiling" = yes; then 7809 # Depending upon the size, compute the lo and hi bounds. 7810cat >conftest.$ac_ext <<_ACEOF 7811/* confdefs.h. */ 7812_ACEOF 7813cat confdefs.h >>conftest.$ac_ext 7814cat >>conftest.$ac_ext <<_ACEOF 7815/* end confdefs.h. */ 7816$ac_includes_default 7817 typedef double ac__type_sizeof_; 7818int 7819main () 7820{ 7821static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; 7822test_array [0] = 0 7823 7824 ; 7825 return 0; 7826} 7827_ACEOF 7828rm -f conftest.$ac_objext 7829if { (ac_try="$ac_compile" 7830case "(($ac_try" in 7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7832 *) ac_try_echo=$ac_try;; 7833esac 7834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7835 (eval "$ac_compile") 2>conftest.er1 7836 ac_status=$? 7837 grep -v '^ *+' conftest.er1 >conftest.err 7838 rm -f conftest.er1 7839 cat conftest.err >&5 7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7841 (exit $ac_status); } && { 7842 test -z "$ac_c_werror_flag" || 7843 test ! -s conftest.err 7844 } && test -s conftest.$ac_objext; then 7845 ac_lo=0 ac_mid=0 7846 while :; do 7847 cat >conftest.$ac_ext <<_ACEOF 7848/* confdefs.h. */ 7849_ACEOF 7850cat confdefs.h >>conftest.$ac_ext 7851cat >>conftest.$ac_ext <<_ACEOF 7852/* end confdefs.h. */ 7853$ac_includes_default 7854 typedef double ac__type_sizeof_; 7855int 7856main () 7857{ 7858static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 7859test_array [0] = 0 7860 7861 ; 7862 return 0; 7863} 7864_ACEOF 7865rm -f conftest.$ac_objext 7866if { (ac_try="$ac_compile" 7867case "(($ac_try" in 7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7869 *) ac_try_echo=$ac_try;; 7870esac 7871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7872 (eval "$ac_compile") 2>conftest.er1 7873 ac_status=$? 7874 grep -v '^ *+' conftest.er1 >conftest.err 7875 rm -f conftest.er1 7876 cat conftest.err >&5 7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7878 (exit $ac_status); } && { 7879 test -z "$ac_c_werror_flag" || 7880 test ! -s conftest.err 7881 } && test -s conftest.$ac_objext; then 7882 ac_hi=$ac_mid; break 7883else 7884 echo "$as_me: failed program was:" >&5 7885sed 's/^/| /' conftest.$ac_ext >&5 7886 7887 ac_lo=`expr $ac_mid + 1` 7888 if test $ac_lo -le $ac_mid; then 7889 ac_lo= ac_hi= 7890 break 7891 fi 7892 ac_mid=`expr 2 '*' $ac_mid + 1` 7893fi 7894 7895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7896 done 7897else 7898 echo "$as_me: failed program was:" >&5 7899sed 's/^/| /' conftest.$ac_ext >&5 7900 7901 cat >conftest.$ac_ext <<_ACEOF 7902/* confdefs.h. */ 7903_ACEOF 7904cat confdefs.h >>conftest.$ac_ext 7905cat >>conftest.$ac_ext <<_ACEOF 7906/* end confdefs.h. */ 7907$ac_includes_default 7908 typedef double ac__type_sizeof_; 7909int 7910main () 7911{ 7912static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; 7913test_array [0] = 0 7914 7915 ; 7916 return 0; 7917} 7918_ACEOF 7919rm -f conftest.$ac_objext 7920if { (ac_try="$ac_compile" 7921case "(($ac_try" in 7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7923 *) ac_try_echo=$ac_try;; 7924esac 7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7926 (eval "$ac_compile") 2>conftest.er1 7927 ac_status=$? 7928 grep -v '^ *+' conftest.er1 >conftest.err 7929 rm -f conftest.er1 7930 cat conftest.err >&5 7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7932 (exit $ac_status); } && { 7933 test -z "$ac_c_werror_flag" || 7934 test ! -s conftest.err 7935 } && test -s conftest.$ac_objext; then 7936 ac_hi=-1 ac_mid=-1 7937 while :; do 7938 cat >conftest.$ac_ext <<_ACEOF 7939/* confdefs.h. */ 7940_ACEOF 7941cat confdefs.h >>conftest.$ac_ext 7942cat >>conftest.$ac_ext <<_ACEOF 7943/* end confdefs.h. */ 7944$ac_includes_default 7945 typedef double ac__type_sizeof_; 7946int 7947main () 7948{ 7949static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; 7950test_array [0] = 0 7951 7952 ; 7953 return 0; 7954} 7955_ACEOF 7956rm -f conftest.$ac_objext 7957if { (ac_try="$ac_compile" 7958case "(($ac_try" in 7959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7960 *) ac_try_echo=$ac_try;; 7961esac 7962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 7963 (eval "$ac_compile") 2>conftest.er1 7964 ac_status=$? 7965 grep -v '^ *+' conftest.er1 >conftest.err 7966 rm -f conftest.er1 7967 cat conftest.err >&5 7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7969 (exit $ac_status); } && { 7970 test -z "$ac_c_werror_flag" || 7971 test ! -s conftest.err 7972 } && test -s conftest.$ac_objext; then 7973 ac_lo=$ac_mid; break 7974else 7975 echo "$as_me: failed program was:" >&5 7976sed 's/^/| /' conftest.$ac_ext >&5 7977 7978 ac_hi=`expr '(' $ac_mid ')' - 1` 7979 if test $ac_mid -le $ac_hi; then 7980 ac_lo= ac_hi= 7981 break 7982 fi 7983 ac_mid=`expr 2 '*' $ac_mid` 7984fi 7985 7986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7987 done 7988else 7989 echo "$as_me: failed program was:" >&5 7990sed 's/^/| /' conftest.$ac_ext >&5 7991 7992 ac_lo= ac_hi= 7993fi 7994 7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7996fi 7997 7998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7999# Binary search between lo and hi bounds. 8000while test "x$ac_lo" != "x$ac_hi"; do 8001 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 8002 cat >conftest.$ac_ext <<_ACEOF 8003/* confdefs.h. */ 8004_ACEOF 8005cat confdefs.h >>conftest.$ac_ext 8006cat >>conftest.$ac_ext <<_ACEOF 8007/* end confdefs.h. */ 8008$ac_includes_default 8009 typedef double ac__type_sizeof_; 8010int 8011main () 8012{ 8013static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; 8014test_array [0] = 0 8015 8016 ; 8017 return 0; 8018} 8019_ACEOF 8020rm -f conftest.$ac_objext 8021if { (ac_try="$ac_compile" 8022case "(($ac_try" in 8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8024 *) ac_try_echo=$ac_try;; 8025esac 8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8027 (eval "$ac_compile") 2>conftest.er1 8028 ac_status=$? 8029 grep -v '^ *+' conftest.er1 >conftest.err 8030 rm -f conftest.er1 8031 cat conftest.err >&5 8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8033 (exit $ac_status); } && { 8034 test -z "$ac_c_werror_flag" || 8035 test ! -s conftest.err 8036 } && test -s conftest.$ac_objext; then 8037 ac_hi=$ac_mid 8038else 8039 echo "$as_me: failed program was:" >&5 8040sed 's/^/| /' conftest.$ac_ext >&5 8041 8042 ac_lo=`expr '(' $ac_mid ')' + 1` 8043fi 8044 8045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8046done 8047case $ac_lo in 8048?*) ac_cv_sizeof_double=$ac_lo;; 8049'') if test "$ac_cv_type_double" = yes; then 8050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) 8051See \`config.log' for more details." >&5 8052echo "$as_me: error: cannot compute sizeof (double) 8053See \`config.log' for more details." >&2;} 8054 { (exit 77); exit 77; }; } 8055 else 8056 ac_cv_sizeof_double=0 8057 fi ;; 8058esac 8059else 8060 cat >conftest.$ac_ext <<_ACEOF 8061/* confdefs.h. */ 8062_ACEOF 8063cat confdefs.h >>conftest.$ac_ext 8064cat >>conftest.$ac_ext <<_ACEOF 8065/* end confdefs.h. */ 8066$ac_includes_default 8067 typedef double ac__type_sizeof_; 8068static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } 8069static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } 8070#include <stdio.h> 8071#include <stdlib.h> 8072int 8073main () 8074{ 8075 8076 FILE *f = fopen ("conftest.val", "w"); 8077 if (! f) 8078 return 1; 8079 if (((long int) (sizeof (ac__type_sizeof_))) < 0) 8080 { 8081 long int i = longval (); 8082 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8083 return 1; 8084 fprintf (f, "%ld\n", i); 8085 } 8086 else 8087 { 8088 unsigned long int i = ulongval (); 8089 if (i != ((long int) (sizeof (ac__type_sizeof_)))) 8090 return 1; 8091 fprintf (f, "%lu\n", i); 8092 } 8093 return ferror (f) || fclose (f) != 0; 8094 8095 ; 8096 return 0; 8097} 8098_ACEOF 8099rm -f conftest$ac_exeext 8100if { (ac_try="$ac_link" 8101case "(($ac_try" in 8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8103 *) ac_try_echo=$ac_try;; 8104esac 8105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8106 (eval "$ac_link") 2>&5 8107 ac_status=$? 8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8110 { (case "(($ac_try" in 8111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8112 *) ac_try_echo=$ac_try;; 8113esac 8114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 8115 (eval "$ac_try") 2>&5 8116 ac_status=$? 8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8118 (exit $ac_status); }; }; then 8119 ac_cv_sizeof_double=`cat conftest.val` 8120else 8121 echo "$as_me: program exited with status $ac_status" >&5 8122echo "$as_me: failed program was:" >&5 8123sed 's/^/| /' conftest.$ac_ext >&5 8124 8125( exit $ac_status ) 8126if test "$ac_cv_type_double" = yes; then 8127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double) 8128See \`config.log' for more details." >&5 8129echo "$as_me: error: cannot compute sizeof (double) 8130See \`config.log' for more details." >&2;} 8131 { (exit 77); exit 77; }; } 8132 else 8133 ac_cv_sizeof_double=0 8134 fi 8135fi 8136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8137fi 8138rm -f conftest.val 8139fi 8140{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 8141echo "${ECHO_T}$ac_cv_sizeof_double" >&6; } 8142 8143 8144 8145cat >>confdefs.h <<_ACEOF 8146#define SIZEOF_DOUBLE $ac_cv_sizeof_double 8147_ACEOF 8148 8149 8150 8151ELF_CFLAGS="$ELF_CFLAGS $IEEE_CFLAGS" 8152CFLAGS="$CFLAGS $IEEE_CFLAGS" 8153 8154ac_config_headers="$ac_config_headers src/config.h:src/config.hin" 8155 8156ac_config_files="$ac_config_files Makefile:autoconf/Makefile.in src/Makefile" 8157 8158cat >confcache <<\_ACEOF 8159# This file is a shell script that caches the results of configure 8160# tests run on this system so they can be shared between configure 8161# scripts and configure runs, see configure's option --config-cache. 8162# It is not useful on other systems. If it contains results you don't 8163# want to keep, you may remove or edit it. 8164# 8165# config.status only pays attention to the cache file if you give it 8166# the --recheck option to rerun configure. 8167# 8168# `ac_cv_env_foo' variables (set or unset) will be overridden when 8169# loading this file, other *unset* `ac_cv_foo' will be assigned the 8170# following values. 8171 8172_ACEOF 8173 8174# The following way of writing the cache mishandles newlines in values, 8175# but we know of no workaround that is simple, portable, and efficient. 8176# So, we kill variables containing newlines. 8177# Ultrix sh set writes to stderr and can't be redirected directly, 8178# and sets the high bit in the cache file unless we assign to the vars. 8179( 8180 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8181 eval ac_val=\$$ac_var 8182 case $ac_val in #( 8183 *${as_nl}*) 8184 case $ac_var in #( 8185 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 8186echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 8187 esac 8188 case $ac_var in #( 8189 _ | IFS | as_nl) ;; #( 8190 *) $as_unset $ac_var ;; 8191 esac ;; 8192 esac 8193 done 8194 8195 (set) 2>&1 | 8196 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8197 *${as_nl}ac_space=\ *) 8198 # `set' does not quote correctly, so add quotes (double-quote 8199 # substitution turns \\\\ into \\, and sed turns \\ into \). 8200 sed -n \ 8201 "s/'/'\\\\''/g; 8202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8203 ;; #( 8204 *) 8205 # `set' quotes correctly as required by POSIX, so do not add quotes. 8206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8207 ;; 8208 esac | 8209 sort 8210) | 8211 sed ' 8212 /^ac_cv_env_/b end 8213 t clear 8214 :clear 8215 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8216 t end 8217 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8218 :end' >>confcache 8219if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8220 if test -w "$cache_file"; then 8221 test "x$cache_file" != "x/dev/null" && 8222 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8223echo "$as_me: updating cache $cache_file" >&6;} 8224 cat confcache >$cache_file 8225 else 8226 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8227echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8228 fi 8229fi 8230rm -f confcache 8231 8232test "x$prefix" = xNONE && prefix=$ac_default_prefix 8233# Let make expand exec_prefix. 8234test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8235 8236DEFS=-DHAVE_CONFIG_H 8237 8238ac_libobjs= 8239ac_ltlibobjs= 8240for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8241 # 1. Remove the extension, and $U if already installed. 8242 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8243 ac_i=`echo "$ac_i" | sed "$ac_script"` 8244 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8245 # will be set to the directory where LIBOBJS objects are built. 8246 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8247 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8248done 8249LIBOBJS=$ac_libobjs 8250 8251LTLIBOBJS=$ac_ltlibobjs 8252 8253 8254 8255: ${CONFIG_STATUS=./config.status} 8256ac_clean_files_save=$ac_clean_files 8257ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8258{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8259echo "$as_me: creating $CONFIG_STATUS" >&6;} 8260cat >$CONFIG_STATUS <<_ACEOF 8261#! $SHELL 8262# Generated by $as_me. 8263# Run this file to recreate the current configuration. 8264# Compiler output produced by configure, useful for debugging 8265# configure, is in config.log if it exists. 8266 8267debug=false 8268ac_cs_recheck=false 8269ac_cs_silent=false 8270SHELL=\${CONFIG_SHELL-$SHELL} 8271_ACEOF 8272 8273cat >>$CONFIG_STATUS <<\_ACEOF 8274## --------------------- ## 8275## M4sh Initialization. ## 8276## --------------------- ## 8277 8278# Be more Bourne compatible 8279DUALCASE=1; export DUALCASE # for MKS sh 8280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8281 emulate sh 8282 NULLCMD=: 8283 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8284 # is contrary to our usage. Disable this feature. 8285 alias -g '${1+"$@"}'='"$@"' 8286 setopt NO_GLOB_SUBST 8287else 8288 case `(set -o) 2>/dev/null` in 8289 *posix*) set -o posix ;; 8290esac 8291 8292fi 8293 8294 8295 8296 8297# PATH needs CR 8298# Avoid depending upon Character Ranges. 8299as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8300as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8301as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8302as_cr_digits='0123456789' 8303as_cr_alnum=$as_cr_Letters$as_cr_digits 8304 8305# The user is always right. 8306if test "${PATH_SEPARATOR+set}" != set; then 8307 echo "#! /bin/sh" >conf$$.sh 8308 echo "exit 0" >>conf$$.sh 8309 chmod +x conf$$.sh 8310 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8311 PATH_SEPARATOR=';' 8312 else 8313 PATH_SEPARATOR=: 8314 fi 8315 rm -f conf$$.sh 8316fi 8317 8318# Support unset when possible. 8319if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8320 as_unset=unset 8321else 8322 as_unset=false 8323fi 8324 8325 8326# IFS 8327# We need space, tab and new line, in precisely that order. Quoting is 8328# there to prevent editors from complaining about space-tab. 8329# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8330# splitting by setting IFS to empty value.) 8331as_nl=' 8332' 8333IFS=" "" $as_nl" 8334 8335# Find who we are. Look in the path if we contain no directory separator. 8336case $0 in 8337 *[\\/]* ) as_myself=$0 ;; 8338 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8339for as_dir in $PATH 8340do 8341 IFS=$as_save_IFS 8342 test -z "$as_dir" && as_dir=. 8343 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8344done 8345IFS=$as_save_IFS 8346 8347 ;; 8348esac 8349# We did not find ourselves, most probably we were run as `sh COMMAND' 8350# in which case we are not to be found in the path. 8351if test "x$as_myself" = x; then 8352 as_myself=$0 8353fi 8354if test ! -f "$as_myself"; then 8355 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8356 { (exit 1); exit 1; } 8357fi 8358 8359# Work around bugs in pre-3.0 UWIN ksh. 8360for as_var in ENV MAIL MAILPATH 8361do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8362done 8363PS1='$ ' 8364PS2='> ' 8365PS4='+ ' 8366 8367# NLS nuisances. 8368for as_var in \ 8369 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8370 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8371 LC_TELEPHONE LC_TIME 8372do 8373 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8374 eval $as_var=C; export $as_var 8375 else 8376 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8377 fi 8378done 8379 8380# Required to use basename. 8381if expr a : '\(a\)' >/dev/null 2>&1 && 8382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8383 as_expr=expr 8384else 8385 as_expr=false 8386fi 8387 8388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 8389 as_basename=basename 8390else 8391 as_basename=false 8392fi 8393 8394 8395# Name of the executable. 8396as_me=`$as_basename -- "$0" || 8397$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8398 X"$0" : 'X\(//\)$' \| \ 8399 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8400echo X/"$0" | 8401 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8402 s//\1/ 8403 q 8404 } 8405 /^X\/\(\/\/\)$/{ 8406 s//\1/ 8407 q 8408 } 8409 /^X\/\(\/\).*/{ 8410 s//\1/ 8411 q 8412 } 8413 s/.*/./; q'` 8414 8415# CDPATH. 8416$as_unset CDPATH 8417 8418 8419 8420 as_lineno_1=$LINENO 8421 as_lineno_2=$LINENO 8422 test "x$as_lineno_1" != "x$as_lineno_2" && 8423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 8424 8425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 8426 # uniformly replaced by the line number. The first 'sed' inserts a 8427 # line-number line after each line using $LINENO; the second 'sed' 8428 # does the real work. The second script uses 'N' to pair each 8429 # line-number line with the line containing $LINENO, and appends 8430 # trailing '-' during substitution so that $LINENO is not a special 8431 # case at line end. 8432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 8433 # scripts with optimization help from Paolo Bonzini. Blame Lee 8434 # E. McMahon (1931-1989) for sed's syntax. :-) 8435 sed -n ' 8436 p 8437 /[$]LINENO/= 8438 ' <$as_myself | 8439 sed ' 8440 s/[$]LINENO.*/&-/ 8441 t lineno 8442 b 8443 :lineno 8444 N 8445 :loop 8446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 8447 t loop 8448 s/-\n.*// 8449 ' >$as_me.lineno && 8450 chmod +x "$as_me.lineno" || 8451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 8452 { (exit 1); exit 1; }; } 8453 8454 # Don't try to exec as it changes $[0], causing all sort of problems 8455 # (the dirname of $[0] is not the place where we might find the 8456 # original and so on. Autoconf is especially sensitive to this). 8457 . "./$as_me.lineno" 8458 # Exit status is that of the last command. 8459 exit 8460} 8461 8462 8463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 8464 as_dirname=dirname 8465else 8466 as_dirname=false 8467fi 8468 8469ECHO_C= ECHO_N= ECHO_T= 8470case `echo -n x` in 8471-n*) 8472 case `echo 'x\c'` in 8473 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8474 *) ECHO_C='\c';; 8475 esac;; 8476*) 8477 ECHO_N='-n';; 8478esac 8479 8480if expr a : '\(a\)' >/dev/null 2>&1 && 8481 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8482 as_expr=expr 8483else 8484 as_expr=false 8485fi 8486 8487rm -f conf$$ conf$$.exe conf$$.file 8488if test -d conf$$.dir; then 8489 rm -f conf$$.dir/conf$$.file 8490else 8491 rm -f conf$$.dir 8492 mkdir conf$$.dir 8493fi 8494echo >conf$$.file 8495if ln -s conf$$.file conf$$ 2>/dev/null; then 8496 as_ln_s='ln -s' 8497 # ... but there are two gotchas: 8498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8500 # In both cases, we have to default to `cp -p'. 8501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8502 as_ln_s='cp -p' 8503elif ln conf$$.file conf$$ 2>/dev/null; then 8504 as_ln_s=ln 8505else 8506 as_ln_s='cp -p' 8507fi 8508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8509rmdir conf$$.dir 2>/dev/null 8510 8511if mkdir -p . 2>/dev/null; then 8512 as_mkdir_p=: 8513else 8514 test -d ./-p && rmdir ./-p 8515 as_mkdir_p=false 8516fi 8517 8518if test -x / >/dev/null 2>&1; then 8519 as_test_x='test -x' 8520else 8521 if ls -dL / >/dev/null 2>&1; then 8522 as_ls_L_option=L 8523 else 8524 as_ls_L_option= 8525 fi 8526 as_test_x=' 8527 eval sh -c '\'' 8528 if test -d "$1"; then 8529 test -d "$1/."; 8530 else 8531 case $1 in 8532 -*)set "./$1";; 8533 esac; 8534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 8535 ???[sx]*):;;*)false;;esac;fi 8536 '\'' sh 8537 ' 8538fi 8539as_executable_p=$as_test_x 8540 8541# Sed expression to map a string onto a valid CPP name. 8542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8543 8544# Sed expression to map a string onto a valid variable name. 8545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8546 8547 8548exec 6>&1 8549 8550# Save the log message, to keep $[0] and so on meaningful, and to 8551# report actual input values of CONFIG_FILES etc. instead of their 8552# values after options handling. 8553ac_log=" 8554This file was extended by $as_me, which was 8555generated by GNU Autoconf 2.61. Invocation command line was 8556 8557 CONFIG_FILES = $CONFIG_FILES 8558 CONFIG_HEADERS = $CONFIG_HEADERS 8559 CONFIG_LINKS = $CONFIG_LINKS 8560 CONFIG_COMMANDS = $CONFIG_COMMANDS 8561 $ $0 $@ 8562 8563on `(hostname || uname -n) 2>/dev/null | sed 1q` 8564" 8565 8566_ACEOF 8567 8568cat >>$CONFIG_STATUS <<_ACEOF 8569# Files that config.status was made for. 8570config_files="$ac_config_files" 8571config_headers="$ac_config_headers" 8572 8573_ACEOF 8574 8575cat >>$CONFIG_STATUS <<\_ACEOF 8576ac_cs_usage="\ 8577\`$as_me' instantiates files from templates according to the 8578current configuration. 8579 8580Usage: $0 [OPTIONS] [FILE]... 8581 8582 -h, --help print this help, then exit 8583 -V, --version print version number and configuration settings, then exit 8584 -q, --quiet do not print progress messages 8585 -d, --debug don't remove temporary files 8586 --recheck update $as_me by reconfiguring in the same conditions 8587 --file=FILE[:TEMPLATE] 8588 instantiate the configuration file FILE 8589 --header=FILE[:TEMPLATE] 8590 instantiate the configuration header FILE 8591 8592Configuration files: 8593$config_files 8594 8595Configuration headers: 8596$config_headers 8597 8598Report bugs to <bug-autoconf@gnu.org>." 8599 8600_ACEOF 8601cat >>$CONFIG_STATUS <<_ACEOF 8602ac_cs_version="\\ 8603config.status 8604configured by $0, generated by GNU Autoconf 2.61, 8605 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 8606 8607Copyright (C) 2006 Free Software Foundation, Inc. 8608This config.status script is free software; the Free Software Foundation 8609gives unlimited permission to copy, distribute and modify it." 8610 8611ac_pwd='$ac_pwd' 8612srcdir='$srcdir' 8613INSTALL='$INSTALL' 8614_ACEOF 8615 8616cat >>$CONFIG_STATUS <<\_ACEOF 8617# If no file are specified by the user, then we need to provide default 8618# value. By we need to know if files were specified by the user. 8619ac_need_defaults=: 8620while test $# != 0 8621do 8622 case $1 in 8623 --*=*) 8624 ac_option=`expr "X$1" : 'X\([^=]*\)='` 8625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 8626 ac_shift=: 8627 ;; 8628 *) 8629 ac_option=$1 8630 ac_optarg=$2 8631 ac_shift=shift 8632 ;; 8633 esac 8634 8635 case $ac_option in 8636 # Handling of the options. 8637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8638 ac_cs_recheck=: ;; 8639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 8640 echo "$ac_cs_version"; exit ;; 8641 --debug | --debu | --deb | --de | --d | -d ) 8642 debug=: ;; 8643 --file | --fil | --fi | --f ) 8644 $ac_shift 8645 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8646 ac_need_defaults=false;; 8647 --header | --heade | --head | --hea ) 8648 $ac_shift 8649 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8650 ac_need_defaults=false;; 8651 --he | --h) 8652 # Conflict between --help and --header 8653 { echo "$as_me: error: ambiguous option: $1 8654Try \`$0 --help' for more information." >&2 8655 { (exit 1); exit 1; }; };; 8656 --help | --hel | -h ) 8657 echo "$ac_cs_usage"; exit ;; 8658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8659 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8660 ac_cs_silent=: ;; 8661 8662 # This is an error. 8663 -*) { echo "$as_me: error: unrecognized option: $1 8664Try \`$0 --help' for more information." >&2 8665 { (exit 1); exit 1; }; } ;; 8666 8667 *) ac_config_targets="$ac_config_targets $1" 8668 ac_need_defaults=false ;; 8669 8670 esac 8671 shift 8672done 8673 8674ac_configure_extra_args= 8675 8676if $ac_cs_silent; then 8677 exec 6>/dev/null 8678 ac_configure_extra_args="$ac_configure_extra_args --silent" 8679fi 8680 8681_ACEOF 8682cat >>$CONFIG_STATUS <<_ACEOF 8683if \$ac_cs_recheck; then 8684 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 8685 CONFIG_SHELL=$SHELL 8686 export CONFIG_SHELL 8687 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8688fi 8689 8690_ACEOF 8691cat >>$CONFIG_STATUS <<\_ACEOF 8692exec 5>>config.log 8693{ 8694 echo 8695 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 8696## Running $as_me. ## 8697_ASBOX 8698 echo "$ac_log" 8699} >&5 8700 8701_ACEOF 8702cat >>$CONFIG_STATUS <<_ACEOF 8703_ACEOF 8704 8705cat >>$CONFIG_STATUS <<\_ACEOF 8706 8707# Handling of arguments. 8708for ac_config_target in $ac_config_targets 8709do 8710 case $ac_config_target in 8711 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.hin" ;; 8712 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:autoconf/Makefile.in" ;; 8713 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8714 8715 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 8716echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 8717 { (exit 1); exit 1; }; };; 8718 esac 8719done 8720 8721 8722# If the user did not use the arguments to specify the items to instantiate, 8723# then the envvar interface is used. Set only those that are not. 8724# We use the long form for the default assignment because of an extremely 8725# bizarre bug on SunOS 4.1.3. 8726if $ac_need_defaults; then 8727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8729fi 8730 8731# Have a temporary directory for convenience. Make it in the build tree 8732# simply because there is no reason against having it here, and in addition, 8733# creating and moving files from /tmp can sometimes cause problems. 8734# Hook for its removal unless debugging. 8735# Note that there is a small window in which the directory will not be cleaned: 8736# after its creation but before its name has been assigned to `$tmp'. 8737$debug || 8738{ 8739 tmp= 8740 trap 'exit_status=$? 8741 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 8742' 0 8743 trap '{ (exit 1); exit 1; }' 1 2 13 15 8744} 8745# Create a (secure) tmp directory for tmp files. 8746 8747{ 8748 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 8749 test -n "$tmp" && test -d "$tmp" 8750} || 8751{ 8752 tmp=./conf$$-$RANDOM 8753 (umask 077 && mkdir "$tmp") 8754} || 8755{ 8756 echo "$me: cannot create a temporary directory in ." >&2 8757 { (exit 1); exit 1; } 8758} 8759 8760# 8761# Set up the sed scripts for CONFIG_FILES section. 8762# 8763 8764# No need to generate the scripts if there are no CONFIG_FILES. 8765# This happens for instance when ./config.status config.h 8766if test -n "$CONFIG_FILES"; then 8767 8768_ACEOF 8769 8770 8771 8772ac_delim='%!_!# ' 8773for ac_last_try in false false false false false :; do 8774 cat >conf$$subs.sed <<_ACEOF 8775RPATH!$RPATH$ac_delim 8776SHELL!$SHELL$ac_delim 8777PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 8778PACKAGE_NAME!$PACKAGE_NAME$ac_delim 8779PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 8780PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 8781PACKAGE_STRING!$PACKAGE_STRING$ac_delim 8782PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 8783exec_prefix!$exec_prefix$ac_delim 8784prefix!$prefix$ac_delim 8785program_transform_name!$program_transform_name$ac_delim 8786bindir!$bindir$ac_delim 8787sbindir!$sbindir$ac_delim 8788libexecdir!$libexecdir$ac_delim 8789datarootdir!$datarootdir$ac_delim 8790datadir!$datadir$ac_delim 8791sysconfdir!$sysconfdir$ac_delim 8792sharedstatedir!$sharedstatedir$ac_delim 8793localstatedir!$localstatedir$ac_delim 8794includedir!$includedir$ac_delim 8795oldincludedir!$oldincludedir$ac_delim 8796docdir!$docdir$ac_delim 8797infodir!$infodir$ac_delim 8798htmldir!$htmldir$ac_delim 8799dvidir!$dvidir$ac_delim 8800pdfdir!$pdfdir$ac_delim 8801psdir!$psdir$ac_delim 8802libdir!$libdir$ac_delim 8803localedir!$localedir$ac_delim 8804mandir!$mandir$ac_delim 8805DEFS!$DEFS$ac_delim 8806ECHO_C!$ECHO_C$ac_delim 8807ECHO_N!$ECHO_N$ac_delim 8808ECHO_T!$ECHO_T$ac_delim 8809LIBS!$LIBS$ac_delim 8810build_alias!$build_alias$ac_delim 8811host_alias!$host_alias$ac_delim 8812target_alias!$target_alias$ac_delim 8813build!$build$ac_delim 8814build_cpu!$build_cpu$ac_delim 8815build_vendor!$build_vendor$ac_delim 8816build_os!$build_os$ac_delim 8817host!$host$ac_delim 8818host_cpu!$host_cpu$ac_delim 8819host_vendor!$host_vendor$ac_delim 8820host_os!$host_os$ac_delim 8821RANLIB!$RANLIB$ac_delim 8822INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 8823INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 8824INSTALL_DATA!$INSTALL_DATA$ac_delim 8825SET_MAKE!$SET_MAKE$ac_delim 8826CONFIG_DIR!$CONFIG_DIR$ac_delim 8827CC!$CC$ac_delim 8828CFLAGS!$CFLAGS$ac_delim 8829LDFLAGS!$LDFLAGS$ac_delim 8830CPPFLAGS!$CPPFLAGS$ac_delim 8831ac_ct_CC!$ac_ct_CC$ac_delim 8832EXEEXT!$EXEEXT$ac_delim 8833OBJEXT!$OBJEXT$ac_delim 8834CPP!$CPP$ac_delim 8835GREP!$GREP$ac_delim 8836EGREP!$EGREP$ac_delim 8837DYNAMIC_LINK_LIB!$DYNAMIC_LINK_LIB$ac_delim 8838ELF_CC!$ELF_CC$ac_delim 8839ELF_CFLAGS!$ELF_CFLAGS$ac_delim 8840ELF_LINK!$ELF_LINK$ac_delim 8841ELF_LINK_CMD!$ELF_LINK_CMD$ac_delim 8842ELF_DEP_LIBS!$ELF_DEP_LIBS$ac_delim 8843DYNAMIC_LINK_FLAGS!$DYNAMIC_LINK_FLAGS$ac_delim 8844CC_SHARED!$CC_SHARED$ac_delim 8845ELFLIB!$ELFLIB$ac_delim 8846ELFLIB_MAJOR!$ELFLIB_MAJOR$ac_delim 8847ELFLIB_MAJOR_MINOR!$ELFLIB_MAJOR_MINOR$ac_delim 8848ELFLIB_MAJOR_MINOR_MICRO!$ELFLIB_MAJOR_MINOR_MICRO$ac_delim 8849SLANG_LIB_FOR_MODULES!$SLANG_LIB_FOR_MODULES$ac_delim 8850DLL_IMPLIB_NAME!$DLL_IMPLIB_NAME$ac_delim 8851INSTALL_MODULE!$INSTALL_MODULE$ac_delim 8852INSTALL_ELFLIB_TARGET!$INSTALL_ELFLIB_TARGET$ac_delim 8853ELFLIB_BUILD_NAME!$ELFLIB_BUILD_NAME$ac_delim 8854SLANG_DLL_CFLAGS!$SLANG_DLL_CFLAGS$ac_delim 8855XMKMF!$XMKMF$ac_delim 8856X_CFLAGS!$X_CFLAGS$ac_delim 8857X_PRE_LIBS!$X_PRE_LIBS$ac_delim 8858X_LIBS!$X_LIBS$ac_delim 8859X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim 8860SLANG_LIB!$SLANG_LIB$ac_delim 8861SLANG_INC!$SLANG_INC$ac_delim 8862slang_version!$slang_version$ac_delim 8863slang_major_version!$slang_major_version$ac_delim 8864slang_minor_version!$slang_minor_version$ac_delim 8865slang_patchlevel_version!$slang_patchlevel_version$ac_delim 8866MODULE_INSTALL_DIR!$MODULE_INSTALL_DIR$ac_delim 8867SL_FILES_INSTALL_DIR!$SL_FILES_INSTALL_DIR$ac_delim 8868LIBOBJS!$LIBOBJS$ac_delim 8869LTLIBOBJS!$LTLIBOBJS$ac_delim 8870_ACEOF 8871 8872 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then 8873 break 8874 elif $ac_last_try; then 8875 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 8876echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 8877 { (exit 1); exit 1; }; } 8878 else 8879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 8880 fi 8881done 8882 8883ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 8884if test -n "$ac_eof"; then 8885 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 8886 ac_eof=`expr $ac_eof + 1` 8887fi 8888 8889cat >>$CONFIG_STATUS <<_ACEOF 8890cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 8891/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 8892_ACEOF 8893sed ' 8894s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 8895s/^/s,@/; s/!/@,|#_!!_#|/ 8896:n 8897t n 8898s/'"$ac_delim"'$/,g/; t 8899s/$/\\/; p 8900N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 8901' >>$CONFIG_STATUS <conf$$subs.sed 8902rm -f conf$$subs.sed 8903cat >>$CONFIG_STATUS <<_ACEOF 8904:end 8905s/|#_!!_#|//g 8906CEOF$ac_eof 8907_ACEOF 8908 8909 8910# VPATH may cause trouble with some makes, so we remove $(srcdir), 8911# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 8912# trailing colons and then remove the whole line if VPATH becomes empty 8913# (actually we leave an empty line to preserve line numbers). 8914if test "x$srcdir" = x.; then 8915 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 8916s/:*\$(srcdir):*/:/ 8917s/:*\${srcdir}:*/:/ 8918s/:*@srcdir@:*/:/ 8919s/^\([^=]*=[ ]*\):*/\1/ 8920s/:*$// 8921s/^[^=]*=[ ]*$// 8922}' 8923fi 8924 8925cat >>$CONFIG_STATUS <<\_ACEOF 8926fi # test -n "$CONFIG_FILES" 8927 8928 8929for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 8930do 8931 case $ac_tag in 8932 :[FHLC]) ac_mode=$ac_tag; continue;; 8933 esac 8934 case $ac_mode$ac_tag in 8935 :[FHL]*:*);; 8936 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 8937echo "$as_me: error: Invalid tag $ac_tag." >&2;} 8938 { (exit 1); exit 1; }; };; 8939 :[FH]-) ac_tag=-:-;; 8940 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 8941 esac 8942 ac_save_IFS=$IFS 8943 IFS=: 8944 set x $ac_tag 8945 IFS=$ac_save_IFS 8946 shift 8947 ac_file=$1 8948 shift 8949 8950 case $ac_mode in 8951 :L) ac_source=$1;; 8952 :[FH]) 8953 ac_file_inputs= 8954 for ac_f 8955 do 8956 case $ac_f in 8957 -) ac_f="$tmp/stdin";; 8958 *) # Look for the file first in the build tree, then in the source tree 8959 # (if the path is not absolute). The absolute path cannot be DOS-style, 8960 # because $ac_f cannot contain `:'. 8961 test -f "$ac_f" || 8962 case $ac_f in 8963 [\\/$]*) false;; 8964 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 8965 esac || 8966 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 8967echo "$as_me: error: cannot find input file: $ac_f" >&2;} 8968 { (exit 1); exit 1; }; };; 8969 esac 8970 ac_file_inputs="$ac_file_inputs $ac_f" 8971 done 8972 8973 # Let's still pretend it is `configure' which instantiates (i.e., don't 8974 # use $as_me), people would be surprised to read: 8975 # /* config.h. Generated by config.status. */ 8976 configure_input="Generated from "`IFS=: 8977 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 8978 if test x"$ac_file" != x-; then 8979 configure_input="$ac_file. $configure_input" 8980 { echo "$as_me:$LINENO: creating $ac_file" >&5 8981echo "$as_me: creating $ac_file" >&6;} 8982 fi 8983 8984 case $ac_tag in 8985 *:-:* | *:-) cat >"$tmp/stdin";; 8986 esac 8987 ;; 8988 esac 8989 8990 ac_dir=`$as_dirname -- "$ac_file" || 8991$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8992 X"$ac_file" : 'X\(//\)[^/]' \| \ 8993 X"$ac_file" : 'X\(//\)$' \| \ 8994 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 8995echo X"$ac_file" | 8996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8997 s//\1/ 8998 q 8999 } 9000 /^X\(\/\/\)[^/].*/{ 9001 s//\1/ 9002 q 9003 } 9004 /^X\(\/\/\)$/{ 9005 s//\1/ 9006 q 9007 } 9008 /^X\(\/\).*/{ 9009 s//\1/ 9010 q 9011 } 9012 s/.*/./; q'` 9013 { as_dir="$ac_dir" 9014 case $as_dir in #( 9015 -*) as_dir=./$as_dir;; 9016 esac 9017 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 9018 as_dirs= 9019 while :; do 9020 case $as_dir in #( 9021 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 9022 *) as_qdir=$as_dir;; 9023 esac 9024 as_dirs="'$as_qdir' $as_dirs" 9025 as_dir=`$as_dirname -- "$as_dir" || 9026$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9027 X"$as_dir" : 'X\(//\)[^/]' \| \ 9028 X"$as_dir" : 'X\(//\)$' \| \ 9029 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9030echo X"$as_dir" | 9031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9032 s//\1/ 9033 q 9034 } 9035 /^X\(\/\/\)[^/].*/{ 9036 s//\1/ 9037 q 9038 } 9039 /^X\(\/\/\)$/{ 9040 s//\1/ 9041 q 9042 } 9043 /^X\(\/\).*/{ 9044 s//\1/ 9045 q 9046 } 9047 s/.*/./; q'` 9048 test -d "$as_dir" && break 9049 done 9050 test -z "$as_dirs" || eval "mkdir $as_dirs" 9051 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 9052echo "$as_me: error: cannot create directory $as_dir" >&2;} 9053 { (exit 1); exit 1; }; }; } 9054 ac_builddir=. 9055 9056case "$ac_dir" in 9057.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9058*) 9059 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9060 # A ".." for each directory in $ac_dir_suffix. 9061 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 9062 case $ac_top_builddir_sub in 9063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9065 esac ;; 9066esac 9067ac_abs_top_builddir=$ac_pwd 9068ac_abs_builddir=$ac_pwd$ac_dir_suffix 9069# for backward compatibility: 9070ac_top_builddir=$ac_top_build_prefix 9071 9072case $srcdir in 9073 .) # We are building in place. 9074 ac_srcdir=. 9075 ac_top_srcdir=$ac_top_builddir_sub 9076 ac_abs_top_srcdir=$ac_pwd ;; 9077 [\\/]* | ?:[\\/]* ) # Absolute name. 9078 ac_srcdir=$srcdir$ac_dir_suffix; 9079 ac_top_srcdir=$srcdir 9080 ac_abs_top_srcdir=$srcdir ;; 9081 *) # Relative name. 9082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9083 ac_top_srcdir=$ac_top_build_prefix$srcdir 9084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9085esac 9086ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9087 9088 9089 case $ac_mode in 9090 :F) 9091 # 9092 # CONFIG_FILE 9093 # 9094 9095 case $INSTALL in 9096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9097 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9098 esac 9099_ACEOF 9100 9101cat >>$CONFIG_STATUS <<\_ACEOF 9102# If the template does not know about datarootdir, expand it. 9103# FIXME: This hack should be removed a few years after 2.60. 9104ac_datarootdir_hack=; ac_datarootdir_seen= 9105 9106case `sed -n '/datarootdir/ { 9107 p 9108 q 9109} 9110/@datadir@/p 9111/@docdir@/p 9112/@infodir@/p 9113/@localedir@/p 9114/@mandir@/p 9115' $ac_file_inputs` in 9116*datarootdir*) ac_datarootdir_seen=yes;; 9117*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9118 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9119echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9120_ACEOF 9121cat >>$CONFIG_STATUS <<_ACEOF 9122 ac_datarootdir_hack=' 9123 s&@datadir@&$datadir&g 9124 s&@docdir@&$docdir&g 9125 s&@infodir@&$infodir&g 9126 s&@localedir@&$localedir&g 9127 s&@mandir@&$mandir&g 9128 s&\\\${datarootdir}&$datarootdir&g' ;; 9129esac 9130_ACEOF 9131 9132# Neutralize VPATH when `$srcdir' = `.'. 9133# Shell code in configure.ac might set extrasub. 9134# FIXME: do we really want to maintain this feature? 9135cat >>$CONFIG_STATUS <<_ACEOF 9136 sed "$ac_vpsub 9137$extrasub 9138_ACEOF 9139cat >>$CONFIG_STATUS <<\_ACEOF 9140:t 9141/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9142s&@configure_input@&$configure_input&;t t 9143s&@top_builddir@&$ac_top_builddir_sub&;t t 9144s&@srcdir@&$ac_srcdir&;t t 9145s&@abs_srcdir@&$ac_abs_srcdir&;t t 9146s&@top_srcdir@&$ac_top_srcdir&;t t 9147s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9148s&@builddir@&$ac_builddir&;t t 9149s&@abs_builddir@&$ac_abs_builddir&;t t 9150s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9151s&@INSTALL@&$ac_INSTALL&;t t 9152$ac_datarootdir_hack 9153" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 9154 9155test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9156 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9158 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9159which seems to be undefined. Please make sure it is defined." >&5 9160echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9161which seems to be undefined. Please make sure it is defined." >&2;} 9162 9163 rm -f "$tmp/stdin" 9164 case $ac_file in 9165 -) cat "$tmp/out"; rm -f "$tmp/out";; 9166 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 9167 esac 9168 ;; 9169 :H) 9170 # 9171 # CONFIG_HEADER 9172 # 9173_ACEOF 9174 9175# Transform confdefs.h into a sed script `conftest.defines', that 9176# substitutes the proper values into config.h.in to produce config.h. 9177rm -f conftest.defines conftest.tail 9178# First, append a space to every undef/define line, to ease matching. 9179echo 's/$/ /' >conftest.defines 9180# Then, protect against being on the right side of a sed subst, or in 9181# an unquoted here document, in config.status. If some macros were 9182# called several times there might be several #defines for the same 9183# symbol, which is useless. But do not sort them, since the last 9184# AC_DEFINE must be honored. 9185ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9186# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 9187# NAME is the cpp macro being defined, VALUE is the value it is being given. 9188# PARAMS is the parameter list in the macro definition--in most cases, it's 9189# just an empty string. 9190ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 9191ac_dB='\\)[ (].*,\\1define\\2' 9192ac_dC=' ' 9193ac_dD=' ,' 9194 9195uniq confdefs.h | 9196 sed -n ' 9197 t rset 9198 :rset 9199 s/^[ ]*#[ ]*define[ ][ ]*// 9200 t ok 9201 d 9202 :ok 9203 s/[\\&,]/\\&/g 9204 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 9205 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 9206 ' >>conftest.defines 9207 9208# Remove the space that was appended to ease matching. 9209# Then replace #undef with comments. This is necessary, for 9210# example, in the case of _POSIX_SOURCE, which is predefined and required 9211# on some systems where configure will not decide to define it. 9212# (The regexp can be short, since the line contains either #define or #undef.) 9213echo 's/ $// 9214s,^[ #]*u.*,/* & */,' >>conftest.defines 9215 9216# Break up conftest.defines: 9217ac_max_sed_lines=50 9218 9219# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 9220# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 9221# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 9222# et cetera. 9223ac_in='$ac_file_inputs' 9224ac_out='"$tmp/out1"' 9225ac_nxt='"$tmp/out2"' 9226 9227while : 9228do 9229 # Write a here document: 9230 cat >>$CONFIG_STATUS <<_ACEOF 9231 # First, check the format of the line: 9232 cat >"\$tmp/defines.sed" <<\\CEOF 9233/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 9234/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 9235b 9236:def 9237_ACEOF 9238 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 9239 echo 'CEOF 9240 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 9241 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 9242 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 9243 grep . conftest.tail >/dev/null || break 9244 rm -f conftest.defines 9245 mv conftest.tail conftest.defines 9246done 9247rm -f conftest.defines conftest.tail 9248 9249echo "ac_result=$ac_in" >>$CONFIG_STATUS 9250cat >>$CONFIG_STATUS <<\_ACEOF 9251 if test x"$ac_file" != x-; then 9252 echo "/* $configure_input */" >"$tmp/config.h" 9253 cat "$ac_result" >>"$tmp/config.h" 9254 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9255 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9256echo "$as_me: $ac_file is unchanged" >&6;} 9257 else 9258 rm -f $ac_file 9259 mv "$tmp/config.h" $ac_file 9260 fi 9261 else 9262 echo "/* $configure_input */" 9263 cat "$ac_result" 9264 fi 9265 rm -f "$tmp/out12" 9266 ;; 9267 9268 9269 esac 9270 9271done # for ac_tag 9272 9273 9274{ (exit 0); exit 0; } 9275_ACEOF 9276chmod +x $CONFIG_STATUS 9277ac_clean_files=$ac_clean_files_save 9278 9279 9280# configure is writing to config.log, and then calls config.status. 9281# config.status does its own redirection, appending to config.log. 9282# Unfortunately, on DOS this fails, as config.log is still kept open 9283# by configure, so config.status won't be able to write to it; its 9284# output is simply discarded. So we exec the FD to /dev/null, 9285# effectively closing config.log, so it can be properly (re)opened and 9286# appended to by config.status. When coming back to configure, we 9287# need to make the FD available again. 9288if test "$no_create" != yes; then 9289 ac_cs_success=: 9290 ac_config_status_args= 9291 test "$silent" = yes && 9292 ac_config_status_args="$ac_config_status_args --quiet" 9293 exec 5>/dev/null 9294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9295 exec 5>>config.log 9296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9297 # would make configure fail if this is the last instruction. 9298 $ac_cs_success || { (exit 1); exit 1; } 9299fi 9300 9301 9302echo "" 9303echo "You are compiling with the following compiler configuration:" 9304echo " CC =" "$CC" 9305echo " CC_SHARED =" "$CC_SHARED" 9306echo " CFLAGS =" "$CFLAGS" 9307echo " LDFLAGS =" "$LDFLAGS" "$DYNAMIC_LINK_FLAGS" 9308echo "" 9309echo "The modules will be installed in $MODULE_INSTALL_DIR." 9310echo "Any associated .sl files will be installed in $SL_FILES_INSTALL_DIR" 9311echo "" 9312echo "If any of these quantities are incorrect, edit src/Makefile accordingly." 9313echo "" 9314