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