configure revision fb23d3a8
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.63 for xhost 1.0.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## --------------------- ## 12## M4sh Initialization. ## 13## --------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27esac 28 29fi 30 31 32 33 34# PATH needs CR 35# Avoid depending upon Character Ranges. 36as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39as_cr_digits='0123456789' 40as_cr_alnum=$as_cr_Letters$as_cr_digits 41 42as_nl=' 43' 44export as_nl 45# Printing a long string crashes Solaris 7 /usr/bin/printf. 46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83# Support unset when possible. 84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 85 as_unset=unset 86else 87 as_unset=false 88fi 89 90 91# IFS 92# We need space, tab and new line, in precisely that order. Quoting is 93# there to prevent editors from complaining about space-tab. 94# (If _AS_PATH_WALK were called with IFS unset, it would disable word 95# splitting by setting IFS to empty value.) 96IFS=" "" $as_nl" 97 98# Find who we are. Look in the path if we contain no directory separator. 99case $0 in 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102for as_dir in $PATH 103do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107done 108IFS=$as_save_IFS 109 110 ;; 111esac 112# We did not find ourselves, most probably we were run as `sh COMMAND' 113# in which case we are not to be found in the path. 114if test "x$as_myself" = x; then 115 as_myself=$0 116fi 117if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120fi 121 122# Work around bugs in pre-3.0 UWIN ksh. 123for as_var in ENV MAIL MAILPATH 124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# Required to use basename. 137if expr a : '\(a\)' >/dev/null 2>&1 && 138 test "X`expr 00001 : '.*\(...\)'`" = X001; then 139 as_expr=expr 140else 141 as_expr=false 142fi 143 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 145 as_basename=basename 146else 147 as_basename=false 148fi 149 150 151# Name of the executable. 152as_me=`$as_basename -- "$0" || 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 154 X"$0" : 'X\(//\)$' \| \ 155 X"$0" : 'X\(/\)' \| . 2>/dev/null || 156$as_echo X/"$0" | 157 sed '/^.*\/\([^/][^/]*\)\/*$/{ 158 s//\1/ 159 q 160 } 161 /^X\/\(\/\/\)$/{ 162 s//\1/ 163 q 164 } 165 /^X\/\(\/\).*/{ 166 s//\1/ 167 q 168 } 169 s/.*/./; q'` 170 171# CDPATH. 172$as_unset CDPATH 173 174 175if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 182 if test $as_have_required = yes && (eval ": 183(as_func_return () { 184 (exit \$1) 185} 186as_func_success () { 187 as_func_return 0 188} 189as_func_failure () { 190 as_func_return 1 191} 192as_func_ret_success () { 193 return 0 194} 195as_func_ret_failure () { 196 return 1 197} 198 199exitcode=0 200if as_func_success; then 201 : 202else 203 exitcode=1 204 echo as_func_success failed. 205fi 206 207if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210fi 211 212if as_func_ret_success; then 213 : 214else 215 exitcode=1 216 echo as_func_ret_success failed. 217fi 218 219if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222fi 223 224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226else 227 exitcode=1 228 echo positional parameters were not saved. 229fi 230 231test \$exitcode = 0) || { (exit 1); exit 1; } 232 233( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238") 2> /dev/null; then 239 : 240else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253done 254IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271esac 272 273fi 274 275 276: 277_ASEOF 278}; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292esac 293 294fi 295 296 297: 298(as_func_return () { 299 (exit $1) 300} 301as_func_success () { 302 as_func_return 0 303} 304as_func_failure () { 305 as_func_return 1 306} 307as_func_ret_success () { 308 return 0 309} 310as_func_ret_failure () { 311 return 1 312} 313 314exitcode=0 315if as_func_success; then 316 : 317else 318 exitcode=1 319 echo as_func_success failed. 320fi 321 322if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325fi 326 327if as_func_ret_success; then 328 : 329else 330 exitcode=1 331 echo as_func_ret_success failed. 332fi 333 334if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337fi 338 339if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341else 342 exitcode=1 343 echo positional parameters were not saved. 344fi 345 346test $exitcode = 0) || { (exit 1); exit 1; } 347 348( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354_ASEOF 355}; then 356 break 357fi 358 359fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378fi 379 380 381fi 382 383fi 384 385 386 387(eval "as_func_return () { 388 (exit \$1) 389} 390as_func_success () { 391 as_func_return 0 392} 393as_func_failure () { 394 as_func_return 1 395} 396as_func_ret_success () { 397 return 0 398} 399as_func_ret_failure () { 400 return 1 401} 402 403exitcode=0 404if as_func_success; then 405 : 406else 407 exitcode=1 408 echo as_func_success failed. 409fi 410 411if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414fi 415 416if as_func_ret_success; then 417 : 418else 419 exitcode=1 420 echo as_func_ret_success failed. 421fi 422 423if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426fi 427 428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430else 431 exitcode=1 432 echo positional parameters were not saved. 433fi 434 435test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441} 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 478 479 # Don't try to exec as it changes $[0], causing all sort of problems 480 # (the dirname of $[0] is not the place where we might find the 481 # original and so on. Autoconf is especially sensitive to this). 482 . "./$as_me.lineno" 483 # Exit status is that of the last command. 484 exit 485} 486 487 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 489 as_dirname=dirname 490else 491 as_dirname=false 492fi 493 494ECHO_C= ECHO_N= ECHO_T= 495case `echo -n x` in 496-n*) 497 case `echo 'x\c'` in 498 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 500 esac;; 501*) 502 ECHO_N='-n';; 503esac 504if expr a : '\(a\)' >/dev/null 2>&1 && 505 test "X`expr 00001 : '.*\(...\)'`" = X001; then 506 as_expr=expr 507else 508 as_expr=false 509fi 510 511rm -f conf$$ conf$$.exe conf$$.file 512if test -d conf$$.dir; then 513 rm -f conf$$.dir/conf$$.file 514else 515 rm -f conf$$.dir 516 mkdir conf$$.dir 2>/dev/null 517fi 518if (echo >conf$$.file) 2>/dev/null; then 519 if ln -s conf$$.file conf$$ 2>/dev/null; then 520 as_ln_s='ln -s' 521 # ... but there are two gotchas: 522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 524 # In both cases, we have to default to `cp -p'. 525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 526 as_ln_s='cp -p' 527 elif ln conf$$.file conf$$ 2>/dev/null; then 528 as_ln_s=ln 529 else 530 as_ln_s='cp -p' 531 fi 532else 533 as_ln_s='cp -p' 534fi 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 536rmdir conf$$.dir 2>/dev/null 537 538if mkdir -p . 2>/dev/null; then 539 as_mkdir_p=: 540else 541 test -d ./-p && rmdir ./-p 542 as_mkdir_p=false 543fi 544 545if test -x / >/dev/null 2>&1; then 546 as_test_x='test -x' 547else 548 if ls -dL / >/dev/null 2>&1; then 549 as_ls_L_option=L 550 else 551 as_ls_L_option= 552 fi 553 as_test_x=' 554 eval sh -c '\'' 555 if test -d "$1"; then 556 test -d "$1/."; 557 else 558 case $1 in 559 -*)set "./$1";; 560 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 562 ???[sx]*):;;*)false;;esac;fi 563 '\'' sh 564 ' 565fi 566as_executable_p=$as_test_x 567 568# Sed expression to map a string onto a valid CPP name. 569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 570 571# Sed expression to map a string onto a valid variable name. 572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 573 574 575 576exec 7<&0 </dev/null 6>&1 577 578# Name of the host. 579# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 580# so uname gets run too. 581ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 582 583# 584# Initializations. 585# 586ac_default_prefix=/usr/local 587ac_clean_files= 588ac_config_libobj_dir=. 589LIBOBJS= 590cross_compiling=no 591subdirs= 592MFLAGS= 593MAKEFLAGS= 594SHELL=${CONFIG_SHELL-/bin/sh} 595 596# Identity of this package. 597PACKAGE_NAME='xhost' 598PACKAGE_TARNAME='xhost' 599PACKAGE_VERSION='1.0.3' 600PACKAGE_STRING='xhost 1.0.3' 601PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 602 603# Factoring default headers for most tests. 604ac_includes_default="\ 605#include <stdio.h> 606#ifdef HAVE_SYS_TYPES_H 607# include <sys/types.h> 608#endif 609#ifdef HAVE_SYS_STAT_H 610# include <sys/stat.h> 611#endif 612#ifdef STDC_HEADERS 613# include <stdlib.h> 614# include <stddef.h> 615#else 616# ifdef HAVE_STDLIB_H 617# include <stdlib.h> 618# endif 619#endif 620#ifdef HAVE_STRING_H 621# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 622# include <memory.h> 623# endif 624# include <string.h> 625#endif 626#ifdef HAVE_STRINGS_H 627# include <strings.h> 628#endif 629#ifdef HAVE_INTTYPES_H 630# include <inttypes.h> 631#endif 632#ifdef HAVE_STDINT_H 633# include <stdint.h> 634#endif 635#ifdef HAVE_UNISTD_H 636# include <unistd.h> 637#endif" 638 639ac_subst_vars='am__EXEEXT_FALSE 640am__EXEEXT_TRUE 641LTLIBOBJS 642LIBOBJS 643XHOST_LIBS 644XHOST_CFLAGS 645PKG_CONFIG 646ADMIN_MAN_DIR 647DRIVER_MAN_DIR 648MISC_MAN_DIR 649FILE_MAN_DIR 650LIB_MAN_DIR 651APP_MAN_DIR 652ADMIN_MAN_SUFFIX 653DRIVER_MAN_SUFFIX 654MISC_MAN_SUFFIX 655FILE_MAN_SUFFIX 656LIB_MAN_SUFFIX 657APP_MAN_SUFFIX 658host_os 659host_vendor 660host_cpu 661host 662build_os 663build_vendor 664build_cpu 665build 666distcleancheck_listfiles 667CHANGELOG_CMD 668AM_BACKSLASH 669AM_DEFAULT_VERBOSITY 670CWARNFLAGS 671EGREP 672GREP 673CPP 674am__fastdepCC_FALSE 675am__fastdepCC_TRUE 676CCDEPMODE 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CC 690MAINT 691MAINTAINER_MODE_FALSE 692MAINTAINER_MODE_TRUE 693am__untar 694am__tar 695AMTAR 696am__leading_dot 697SET_MAKE 698AWK 699mkdir_p 700MKDIR_P 701INSTALL_STRIP_PROGRAM 702STRIP 703install_sh 704MAKEINFO 705AUTOHEADER 706AUTOMAKE 707AUTOCONF 708ACLOCAL 709VERSION 710PACKAGE 711CYGPATH_W 712am__isrc 713INSTALL_DATA 714INSTALL_SCRIPT 715INSTALL_PROGRAM 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_BUGREPORT 747PACKAGE_STRING 748PACKAGE_VERSION 749PACKAGE_TARNAME 750PACKAGE_NAME 751PATH_SEPARATOR 752SHELL' 753ac_subst_files='' 754ac_user_opts=' 755enable_option_checking 756enable_maintainer_mode 757enable_dependency_tracking 758enable_silent_rules 759enable_strict_compilation 760with_release_version 761enable_unix_transport 762enable_tcp_transport 763enable_ipv6 764enable_local_transport 765enable_secure_rpc 766' 767 ac_precious_vars='build_alias 768host_alias 769target_alias 770CC 771CFLAGS 772LDFLAGS 773LIBS 774CPPFLAGS 775CPP 776PKG_CONFIG 777XHOST_CFLAGS 778XHOST_LIBS' 779 780 781# Initialize some variables set by options. 782ac_init_help= 783ac_init_version=false 784ac_unrecognized_opts= 785ac_unrecognized_sep= 786# The variables have the same names as the options, with 787# dashes changed to underlines. 788cache_file=/dev/null 789exec_prefix=NONE 790no_create= 791no_recursion= 792prefix=NONE 793program_prefix=NONE 794program_suffix=NONE 795program_transform_name=s,x,x, 796silent= 797site= 798srcdir= 799verbose= 800x_includes=NONE 801x_libraries=NONE 802 803# Installation directory options. 804# These are left unexpanded so users can "make install exec_prefix=/foo" 805# and all the variables that are supposed to be based on exec_prefix 806# by default will actually change. 807# Use braces instead of parens because sh, perl, etc. also accept them. 808# (The list follows the same order as the GNU Coding Standards.) 809bindir='${exec_prefix}/bin' 810sbindir='${exec_prefix}/sbin' 811libexecdir='${exec_prefix}/libexec' 812datarootdir='${prefix}/share' 813datadir='${datarootdir}' 814sysconfdir='${prefix}/etc' 815sharedstatedir='${prefix}/com' 816localstatedir='${prefix}/var' 817includedir='${prefix}/include' 818oldincludedir='/usr/include' 819docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 820infodir='${datarootdir}/info' 821htmldir='${docdir}' 822dvidir='${docdir}' 823pdfdir='${docdir}' 824psdir='${docdir}' 825libdir='${exec_prefix}/lib' 826localedir='${datarootdir}/locale' 827mandir='${datarootdir}/man' 828 829ac_prev= 830ac_dashdash= 831for ac_option 832do 833 # If the previous option needs an argument, assign it. 834 if test -n "$ac_prev"; then 835 eval $ac_prev=\$ac_option 836 ac_prev= 837 continue 838 fi 839 840 case $ac_option in 841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 842 *) ac_optarg=yes ;; 843 esac 844 845 # Accept the important Cygnus configure options, so we can diagnose typos. 846 847 case $ac_dashdash$ac_option in 848 --) 849 ac_dashdash=yes ;; 850 851 -bindir | --bindir | --bindi | --bind | --bin | --bi) 852 ac_prev=bindir ;; 853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 854 bindir=$ac_optarg ;; 855 856 -build | --build | --buil | --bui | --bu) 857 ac_prev=build_alias ;; 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 859 build_alias=$ac_optarg ;; 860 861 -cache-file | --cache-file | --cache-fil | --cache-fi \ 862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 863 ac_prev=cache_file ;; 864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 866 cache_file=$ac_optarg ;; 867 868 --config-cache | -C) 869 cache_file=config.cache ;; 870 871 -datadir | --datadir | --datadi | --datad) 872 ac_prev=datadir ;; 873 -datadir=* | --datadir=* | --datadi=* | --datad=*) 874 datadir=$ac_optarg ;; 875 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 877 | --dataroo | --dataro | --datar) 878 ac_prev=datarootdir ;; 879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 881 datarootdir=$ac_optarg ;; 882 883 -disable-* | --disable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 888 { (exit 1); exit 1; }; } 889 ac_useropt_orig=$ac_useropt 890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 891 case $ac_user_opts in 892 *" 893"enable_$ac_useropt" 894"*) ;; 895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 896 ac_unrecognized_sep=', ';; 897 esac 898 eval enable_$ac_useropt=no ;; 899 900 -docdir | --docdir | --docdi | --doc | --do) 901 ac_prev=docdir ;; 902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 903 docdir=$ac_optarg ;; 904 905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 906 ac_prev=dvidir ;; 907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 908 dvidir=$ac_optarg ;; 909 910 -enable-* | --enable-*) 911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 912 # Reject names that are not valid shell variable names. 913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 914 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 915 { (exit 1); exit 1; }; } 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=\$ac_optarg ;; 926 927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 929 | --exec | --exe | --ex) 930 ac_prev=exec_prefix ;; 931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 933 | --exec=* | --exe=* | --ex=*) 934 exec_prefix=$ac_optarg ;; 935 936 -gas | --gas | --ga | --g) 937 # Obsolete; use --with-gas. 938 with_gas=yes ;; 939 940 -help | --help | --hel | --he | -h) 941 ac_init_help=long ;; 942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 943 ac_init_help=recursive ;; 944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 945 ac_init_help=short ;; 946 947 -host | --host | --hos | --ho) 948 ac_prev=host_alias ;; 949 -host=* | --host=* | --hos=* | --ho=*) 950 host_alias=$ac_optarg ;; 951 952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 953 ac_prev=htmldir ;; 954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 955 | --ht=*) 956 htmldir=$ac_optarg ;; 957 958 -includedir | --includedir | --includedi | --included | --include \ 959 | --includ | --inclu | --incl | --inc) 960 ac_prev=includedir ;; 961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 962 | --includ=* | --inclu=* | --incl=* | --inc=*) 963 includedir=$ac_optarg ;; 964 965 -infodir | --infodir | --infodi | --infod | --info | --inf) 966 ac_prev=infodir ;; 967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 968 infodir=$ac_optarg ;; 969 970 -libdir | --libdir | --libdi | --libd) 971 ac_prev=libdir ;; 972 -libdir=* | --libdir=* | --libdi=* | --libd=*) 973 libdir=$ac_optarg ;; 974 975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 976 | --libexe | --libex | --libe) 977 ac_prev=libexecdir ;; 978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 979 | --libexe=* | --libex=* | --libe=*) 980 libexecdir=$ac_optarg ;; 981 982 -localedir | --localedir | --localedi | --localed | --locale) 983 ac_prev=localedir ;; 984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 985 localedir=$ac_optarg ;; 986 987 -localstatedir | --localstatedir | --localstatedi | --localstated \ 988 | --localstate | --localstat | --localsta | --localst | --locals) 989 ac_prev=localstatedir ;; 990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 992 localstatedir=$ac_optarg ;; 993 994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 995 ac_prev=mandir ;; 996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 997 mandir=$ac_optarg ;; 998 999 -nfp | --nfp | --nf) 1000 # Obsolete; use --without-fp. 1001 with_fp=no ;; 1002 1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1004 | --no-cr | --no-c | -n) 1005 no_create=yes ;; 1006 1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1009 no_recursion=yes ;; 1010 1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1013 | --oldin | --oldi | --old | --ol | --o) 1014 ac_prev=oldincludedir ;; 1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1018 oldincludedir=$ac_optarg ;; 1019 1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1021 ac_prev=prefix ;; 1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1023 prefix=$ac_optarg ;; 1024 1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1026 | --program-pre | --program-pr | --program-p) 1027 ac_prev=program_prefix ;; 1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1030 program_prefix=$ac_optarg ;; 1031 1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1033 | --program-suf | --program-su | --program-s) 1034 ac_prev=program_suffix ;; 1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1037 program_suffix=$ac_optarg ;; 1038 1039 -program-transform-name | --program-transform-name \ 1040 | --program-transform-nam | --program-transform-na \ 1041 | --program-transform-n | --program-transform- \ 1042 | --program-transform | --program-transfor \ 1043 | --program-transfo | --program-transf \ 1044 | --program-trans | --program-tran \ 1045 | --progr-tra | --program-tr | --program-t) 1046 ac_prev=program_transform_name ;; 1047 -program-transform-name=* | --program-transform-name=* \ 1048 | --program-transform-nam=* | --program-transform-na=* \ 1049 | --program-transform-n=* | --program-transform-=* \ 1050 | --program-transform=* | --program-transfor=* \ 1051 | --program-transfo=* | --program-transf=* \ 1052 | --program-trans=* | --program-tran=* \ 1053 | --progr-tra=* | --program-tr=* | --program-t=*) 1054 program_transform_name=$ac_optarg ;; 1055 1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1057 ac_prev=pdfdir ;; 1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1059 pdfdir=$ac_optarg ;; 1060 1061 -psdir | --psdir | --psdi | --psd | --ps) 1062 ac_prev=psdir ;; 1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1064 psdir=$ac_optarg ;; 1065 1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1067 | -silent | --silent | --silen | --sile | --sil) 1068 silent=yes ;; 1069 1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1071 ac_prev=sbindir ;; 1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1073 | --sbi=* | --sb=*) 1074 sbindir=$ac_optarg ;; 1075 1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1078 | --sharedst | --shareds | --shared | --share | --shar \ 1079 | --sha | --sh) 1080 ac_prev=sharedstatedir ;; 1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1084 | --sha=* | --sh=*) 1085 sharedstatedir=$ac_optarg ;; 1086 1087 -site | --site | --sit) 1088 ac_prev=site ;; 1089 -site=* | --site=* | --sit=*) 1090 site=$ac_optarg ;; 1091 1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1093 ac_prev=srcdir ;; 1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1095 srcdir=$ac_optarg ;; 1096 1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1098 | --syscon | --sysco | --sysc | --sys | --sy) 1099 ac_prev=sysconfdir ;; 1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1102 sysconfdir=$ac_optarg ;; 1103 1104 -target | --target | --targe | --targ | --tar | --ta | --t) 1105 ac_prev=target_alias ;; 1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1107 target_alias=$ac_optarg ;; 1108 1109 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1110 verbose=yes ;; 1111 1112 -version | --version | --versio | --versi | --vers | -V) 1113 ac_init_version=: ;; 1114 1115 -with-* | --with-*) 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1119 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1120 { (exit 1); exit 1; }; } 1121 ac_useropt_orig=$ac_useropt 1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1123 case $ac_user_opts in 1124 *" 1125"with_$ac_useropt" 1126"*) ;; 1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1128 ac_unrecognized_sep=', ';; 1129 esac 1130 eval with_$ac_useropt=\$ac_optarg ;; 1131 1132 -without-* | --without-*) 1133 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1134 # Reject names that are not valid shell variable names. 1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1136 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1137 { (exit 1); exit 1; }; } 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=no ;; 1148 1149 --x) 1150 # Obsolete; use --with-x. 1151 with_x=yes ;; 1152 1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1154 | --x-incl | --x-inc | --x-in | --x-i) 1155 ac_prev=x_includes ;; 1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1158 x_includes=$ac_optarg ;; 1159 1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1162 ac_prev=x_libraries ;; 1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1165 x_libraries=$ac_optarg ;; 1166 1167 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1168Try \`$0 --help' for more information." >&2 1169 { (exit 1); exit 1; }; } 1170 ;; 1171 1172 *=*) 1173 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1176 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1177 { (exit 1); exit 1; }; } 1178 eval $ac_envvar=\$ac_optarg 1179 export $ac_envvar ;; 1180 1181 *) 1182 # FIXME: should be removed in autoconf 3.0. 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1186 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1187 ;; 1188 1189 esac 1190done 1191 1192if test -n "$ac_prev"; then 1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1194 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1195 { (exit 1); exit 1; }; } 1196fi 1197 1198if test -n "$ac_unrecognized_opts"; then 1199 case $enable_option_checking in 1200 no) ;; 1201 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1202 { (exit 1); exit 1; }; } ;; 1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1204 esac 1205fi 1206 1207# Check all directory arguments for consistency. 1208for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1209 datadir sysconfdir sharedstatedir localstatedir includedir \ 1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1211 libdir localedir mandir 1212do 1213 eval ac_val=\$$ac_var 1214 # Remove trailing slashes. 1215 case $ac_val in 1216 */ ) 1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1218 eval $ac_var=\$ac_val;; 1219 esac 1220 # Be sure to have absolute directory names. 1221 case $ac_val in 1222 [\\/$]* | ?:[\\/]* ) continue;; 1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1224 esac 1225 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1226 { (exit 1); exit 1; }; } 1227done 1228 1229# There might be people who depend on the old broken behavior: `$host' 1230# used to hold the argument of --host etc. 1231# FIXME: To remove some day. 1232build=$build_alias 1233host=$host_alias 1234target=$target_alias 1235 1236# FIXME: To remove some day. 1237if test "x$host_alias" != x; then 1238 if test "x$build_alias" = x; then 1239 cross_compiling=maybe 1240 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1241 If a cross compiler is detected then cross compile mode will be used." >&2 1242 elif test "x$build_alias" != "x$host_alias"; then 1243 cross_compiling=yes 1244 fi 1245fi 1246 1247ac_tool_prefix= 1248test -n "$host_alias" && ac_tool_prefix=$host_alias- 1249 1250test "$silent" = yes && exec 6>/dev/null 1251 1252 1253ac_pwd=`pwd` && test -n "$ac_pwd" && 1254ac_ls_di=`ls -di .` && 1255ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1256 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1257 { (exit 1); exit 1; }; } 1258test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1259 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1260 { (exit 1); exit 1; }; } 1261 1262 1263# Find the source files, if location was not specified. 1264if test -z "$srcdir"; then 1265 ac_srcdir_defaulted=yes 1266 # Try the directory containing this script, then the parent directory. 1267 ac_confdir=`$as_dirname -- "$as_myself" || 1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1269 X"$as_myself" : 'X\(//\)[^/]' \| \ 1270 X"$as_myself" : 'X\(//\)$' \| \ 1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1272$as_echo X"$as_myself" | 1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)[^/].*/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\).*/{ 1286 s//\1/ 1287 q 1288 } 1289 s/.*/./; q'` 1290 srcdir=$ac_confdir 1291 if test ! -r "$srcdir/$ac_unique_file"; then 1292 srcdir=.. 1293 fi 1294else 1295 ac_srcdir_defaulted=no 1296fi 1297if test ! -r "$srcdir/$ac_unique_file"; then 1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1299 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1300 { (exit 1); exit 1; }; } 1301fi 1302ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1303ac_abs_confdir=`( 1304 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1305 { (exit 1); exit 1; }; } 1306 pwd)` 1307# When building in place, set srcdir=. 1308if test "$ac_abs_confdir" = "$ac_pwd"; then 1309 srcdir=. 1310fi 1311# Remove unnecessary trailing slashes from srcdir. 1312# Double slashes in file names in object file debugging info 1313# mess up M-x gdb in Emacs. 1314case $srcdir in 1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1316esac 1317for ac_var in $ac_precious_vars; do 1318 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_env_${ac_var}_value=\$${ac_var} 1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1322done 1323 1324# 1325# Report the --help message. 1326# 1327if test "$ac_init_help" = "long"; then 1328 # Omit some internal or obsolete options to make the list less imposing. 1329 # This message is too long to be a string in the A/UX 3.1 sh. 1330 cat <<_ACEOF 1331\`configure' configures xhost 1.0.3 to adapt to many kinds of systems. 1332 1333Usage: $0 [OPTION]... [VAR=VALUE]... 1334 1335To assign environment variables (e.g., CC, CFLAGS...), specify them as 1336VAR=VALUE. See below for descriptions of some of the useful variables. 1337 1338Defaults for the options are specified in brackets. 1339 1340Configuration: 1341 -h, --help display this help and exit 1342 --help=short display options specific to this package 1343 --help=recursive display the short help of all the included packages 1344 -V, --version display version information and exit 1345 -q, --quiet, --silent do not print \`checking...' messages 1346 --cache-file=FILE cache test results in FILE [disabled] 1347 -C, --config-cache alias for \`--cache-file=config.cache' 1348 -n, --no-create do not create output files 1349 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1350 1351Installation directories: 1352 --prefix=PREFIX install architecture-independent files in PREFIX 1353 [$ac_default_prefix] 1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1355 [PREFIX] 1356 1357By default, \`make install' will install all the files in 1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1359an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1360for instance \`--prefix=\$HOME'. 1361 1362For better control, use the options below. 1363 1364Fine tuning of the installation directories: 1365 --bindir=DIR user executables [EPREFIX/bin] 1366 --sbindir=DIR system admin executables [EPREFIX/sbin] 1367 --libexecdir=DIR program executables [EPREFIX/libexec] 1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1371 --libdir=DIR object code libraries [EPREFIX/lib] 1372 --includedir=DIR C header files [PREFIX/include] 1373 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1376 --infodir=DIR info documentation [DATAROOTDIR/info] 1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1378 --mandir=DIR man documentation [DATAROOTDIR/man] 1379 --docdir=DIR documentation root [DATAROOTDIR/doc/xhost] 1380 --htmldir=DIR html documentation [DOCDIR] 1381 --dvidir=DIR dvi documentation [DOCDIR] 1382 --pdfdir=DIR pdf documentation [DOCDIR] 1383 --psdir=DIR ps documentation [DOCDIR] 1384_ACEOF 1385 1386 cat <<\_ACEOF 1387 1388Program names: 1389 --program-prefix=PREFIX prepend PREFIX to installed program names 1390 --program-suffix=SUFFIX append SUFFIX to installed program names 1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1392 1393System types: 1394 --build=BUILD configure for building on BUILD [guessed] 1395 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1396_ACEOF 1397fi 1398 1399if test -n "$ac_init_help"; then 1400 case $ac_init_help in 1401 short | recursive ) echo "Configuration of xhost 1.0.3:";; 1402 esac 1403 cat <<\_ACEOF 1404 1405Optional Features: 1406 --disable-option-checking ignore unrecognized --enable/--with options 1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1409 --enable-maintainer-mode enable make rules and dependencies not useful 1410 (and sometimes confusing) to the casual installer 1411 --disable-dependency-tracking speeds up one-time build 1412 --enable-dependency-tracking do not reject slow dependency extractors 1413 --enable-silent-rules less verbose build output (undo: `make V=1') 1414 --disable-silent-rules verbose build output (undo: `make V=0') 1415 --enable-strict-compilation 1416 Enable all warnings from compiler and make them 1417 errors (default: disabled) 1418 --enable-unix-transport Enable UNIX domain socket transport 1419 --enable-tcp-transport Enable TCP socket transport 1420 --enable-ipv6 Enable IPv6 support 1421 --enable-local-transport 1422 Enable os-specific local transport 1423 --enable-secure-rpc Enable Secure RPC 1424 1425Optional Packages: 1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1428 --with-release-version=STRING 1429 Use release version string in package name 1430 1431Some influential environment variables: 1432 CC C compiler command 1433 CFLAGS C compiler flags 1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1435 nonstandard directory <lib dir> 1436 LIBS libraries to pass to the linker, e.g. -l<library> 1437 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1438 you have headers in a nonstandard directory <include dir> 1439 CPP C preprocessor 1440 PKG_CONFIG path to pkg-config utility 1441 XHOST_CFLAGS 1442 C compiler flags for XHOST, overriding pkg-config 1443 XHOST_LIBS linker flags for XHOST, overriding pkg-config 1444 1445Use these variables to override the choices made by `configure' or to help 1446it to find libraries and programs with nonstandard names/locations. 1447 1448Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1449_ACEOF 1450ac_status=$? 1451fi 1452 1453if test "$ac_init_help" = "recursive"; then 1454 # If there are subdirs, report their specific --help. 1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1456 test -d "$ac_dir" || 1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1458 continue 1459 ac_builddir=. 1460 1461case "$ac_dir" in 1462.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1463*) 1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1465 # A ".." for each directory in $ac_dir_suffix. 1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1467 case $ac_top_builddir_sub in 1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1470 esac ;; 1471esac 1472ac_abs_top_builddir=$ac_pwd 1473ac_abs_builddir=$ac_pwd$ac_dir_suffix 1474# for backward compatibility: 1475ac_top_builddir=$ac_top_build_prefix 1476 1477case $srcdir in 1478 .) # We are building in place. 1479 ac_srcdir=. 1480 ac_top_srcdir=$ac_top_builddir_sub 1481 ac_abs_top_srcdir=$ac_pwd ;; 1482 [\\/]* | ?:[\\/]* ) # Absolute name. 1483 ac_srcdir=$srcdir$ac_dir_suffix; 1484 ac_top_srcdir=$srcdir 1485 ac_abs_top_srcdir=$srcdir ;; 1486 *) # Relative name. 1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1488 ac_top_srcdir=$ac_top_build_prefix$srcdir 1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1490esac 1491ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1492 1493 cd "$ac_dir" || { ac_status=$?; continue; } 1494 # Check for guested configure. 1495 if test -f "$ac_srcdir/configure.gnu"; then 1496 echo && 1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1498 elif test -f "$ac_srcdir/configure"; then 1499 echo && 1500 $SHELL "$ac_srcdir/configure" --help=recursive 1501 else 1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1503 fi || ac_status=$? 1504 cd "$ac_pwd" || { ac_status=$?; break; } 1505 done 1506fi 1507 1508test -n "$ac_init_help" && exit $ac_status 1509if $ac_init_version; then 1510 cat <<\_ACEOF 1511xhost configure 1.0.3 1512generated by GNU Autoconf 2.63 1513 1514Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 15152002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1516This configure script is free software; the Free Software Foundation 1517gives unlimited permission to copy, distribute and modify it. 1518_ACEOF 1519 exit 1520fi 1521cat >config.log <<_ACEOF 1522This file contains any messages produced by compilers while 1523running configure, to aid debugging if configure makes a mistake. 1524 1525It was created by xhost $as_me 1.0.3, which was 1526generated by GNU Autoconf 2.63. Invocation command line was 1527 1528 $ $0 $@ 1529 1530_ACEOF 1531exec 5>>config.log 1532{ 1533cat <<_ASUNAME 1534## --------- ## 1535## Platform. ## 1536## --------- ## 1537 1538hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1539uname -m = `(uname -m) 2>/dev/null || echo unknown` 1540uname -r = `(uname -r) 2>/dev/null || echo unknown` 1541uname -s = `(uname -s) 2>/dev/null || echo unknown` 1542uname -v = `(uname -v) 2>/dev/null || echo unknown` 1543 1544/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1545/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1546 1547/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1548/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1549/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1550/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1551/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1552/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1553/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1554 1555_ASUNAME 1556 1557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1558for as_dir in $PATH 1559do 1560 IFS=$as_save_IFS 1561 test -z "$as_dir" && as_dir=. 1562 $as_echo "PATH: $as_dir" 1563done 1564IFS=$as_save_IFS 1565 1566} >&5 1567 1568cat >&5 <<_ACEOF 1569 1570 1571## ----------- ## 1572## Core tests. ## 1573## ----------- ## 1574 1575_ACEOF 1576 1577 1578# Keep a trace of the command line. 1579# Strip out --no-create and --no-recursion so they do not pile up. 1580# Strip out --silent because we don't want to record it for future runs. 1581# Also quote any args containing shell meta-characters. 1582# Make two passes to allow for proper duplicate-argument suppression. 1583ac_configure_args= 1584ac_configure_args0= 1585ac_configure_args1= 1586ac_must_keep_next=false 1587for ac_pass in 1 2 1588do 1589 for ac_arg 1590 do 1591 case $ac_arg in 1592 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1593 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1594 | -silent | --silent | --silen | --sile | --sil) 1595 continue ;; 1596 *\'*) 1597 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1598 esac 1599 case $ac_pass in 1600 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1601 2) 1602 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1603 if test $ac_must_keep_next = true; then 1604 ac_must_keep_next=false # Got value, back to normal. 1605 else 1606 case $ac_arg in 1607 *=* | --config-cache | -C | -disable-* | --disable-* \ 1608 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1609 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1610 | -with-* | --with-* | -without-* | --without-* | --x) 1611 case "$ac_configure_args0 " in 1612 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1613 esac 1614 ;; 1615 -* ) ac_must_keep_next=true ;; 1616 esac 1617 fi 1618 ac_configure_args="$ac_configure_args '$ac_arg'" 1619 ;; 1620 esac 1621 done 1622done 1623$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1624$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1625 1626# When interrupted or exit'd, cleanup temporary files, and complete 1627# config.log. We remove comments because anyway the quotes in there 1628# would cause problems or look ugly. 1629# WARNING: Use '\'' to represent an apostrophe within the trap. 1630# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1631trap 'exit_status=$? 1632 # Save into config.log some information that might help in debugging. 1633 { 1634 echo 1635 1636 cat <<\_ASBOX 1637## ---------------- ## 1638## Cache variables. ## 1639## ---------------- ## 1640_ASBOX 1641 echo 1642 # The following way of writing the cache mishandles newlines in values, 1643( 1644 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1645 eval ac_val=\$$ac_var 1646 case $ac_val in #( 1647 *${as_nl}*) 1648 case $ac_var in #( 1649 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 1650$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1651 esac 1652 case $ac_var in #( 1653 _ | IFS | as_nl) ;; #( 1654 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1655 *) $as_unset $ac_var ;; 1656 esac ;; 1657 esac 1658 done 1659 (set) 2>&1 | 1660 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1661 *${as_nl}ac_space=\ *) 1662 sed -n \ 1663 "s/'\''/'\''\\\\'\'''\''/g; 1664 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1665 ;; #( 1666 *) 1667 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1668 ;; 1669 esac | 1670 sort 1671) 1672 echo 1673 1674 cat <<\_ASBOX 1675## ----------------- ## 1676## Output variables. ## 1677## ----------------- ## 1678_ASBOX 1679 echo 1680 for ac_var in $ac_subst_vars 1681 do 1682 eval ac_val=\$$ac_var 1683 case $ac_val in 1684 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1685 esac 1686 $as_echo "$ac_var='\''$ac_val'\''" 1687 done | sort 1688 echo 1689 1690 if test -n "$ac_subst_files"; then 1691 cat <<\_ASBOX 1692## ------------------- ## 1693## File substitutions. ## 1694## ------------------- ## 1695_ASBOX 1696 echo 1697 for ac_var in $ac_subst_files 1698 do 1699 eval ac_val=\$$ac_var 1700 case $ac_val in 1701 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1702 esac 1703 $as_echo "$ac_var='\''$ac_val'\''" 1704 done | sort 1705 echo 1706 fi 1707 1708 if test -s confdefs.h; then 1709 cat <<\_ASBOX 1710## ----------- ## 1711## confdefs.h. ## 1712## ----------- ## 1713_ASBOX 1714 echo 1715 cat confdefs.h 1716 echo 1717 fi 1718 test "$ac_signal" != 0 && 1719 $as_echo "$as_me: caught signal $ac_signal" 1720 $as_echo "$as_me: exit $exit_status" 1721 } >&5 1722 rm -f core *.core core.conftest.* && 1723 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1724 exit $exit_status 1725' 0 1726for ac_signal in 1 2 13 15; do 1727 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1728done 1729ac_signal=0 1730 1731# confdefs.h avoids OS command line length limits that DEFS can exceed. 1732rm -f -r conftest* confdefs.h 1733 1734# Predefined preprocessor variables. 1735 1736cat >>confdefs.h <<_ACEOF 1737#define PACKAGE_NAME "$PACKAGE_NAME" 1738_ACEOF 1739 1740 1741cat >>confdefs.h <<_ACEOF 1742#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1743_ACEOF 1744 1745 1746cat >>confdefs.h <<_ACEOF 1747#define PACKAGE_VERSION "$PACKAGE_VERSION" 1748_ACEOF 1749 1750 1751cat >>confdefs.h <<_ACEOF 1752#define PACKAGE_STRING "$PACKAGE_STRING" 1753_ACEOF 1754 1755 1756cat >>confdefs.h <<_ACEOF 1757#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1758_ACEOF 1759 1760 1761# Let the site file select an alternate cache file if it wants to. 1762# Prefer an explicitly selected file to automatically selected ones. 1763ac_site_file1=NONE 1764ac_site_file2=NONE 1765if test -n "$CONFIG_SITE"; then 1766 ac_site_file1=$CONFIG_SITE 1767elif test "x$prefix" != xNONE; then 1768 ac_site_file1=$prefix/share/config.site 1769 ac_site_file2=$prefix/etc/config.site 1770else 1771 ac_site_file1=$ac_default_prefix/share/config.site 1772 ac_site_file2=$ac_default_prefix/etc/config.site 1773fi 1774for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1775do 1776 test "x$ac_site_file" = xNONE && continue 1777 if test -r "$ac_site_file"; then 1778 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1779$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1780 sed 's/^/| /' "$ac_site_file" >&5 1781 . "$ac_site_file" 1782 fi 1783done 1784 1785if test -r "$cache_file"; then 1786 # Some versions of bash will fail to source /dev/null (special 1787 # files actually), so we avoid doing that. 1788 if test -f "$cache_file"; then 1789 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 1790$as_echo "$as_me: loading cache $cache_file" >&6;} 1791 case $cache_file in 1792 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1793 *) . "./$cache_file";; 1794 esac 1795 fi 1796else 1797 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 1798$as_echo "$as_me: creating cache $cache_file" >&6;} 1799 >$cache_file 1800fi 1801 1802# Check that the precious variables saved in the cache have kept the same 1803# value. 1804ac_cache_corrupted=false 1805for ac_var in $ac_precious_vars; do 1806 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1807 eval ac_new_set=\$ac_env_${ac_var}_set 1808 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1809 eval ac_new_val=\$ac_env_${ac_var}_value 1810 case $ac_old_set,$ac_new_set in 1811 set,) 1812 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1813$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1814 ac_cache_corrupted=: ;; 1815 ,set) 1816 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1817$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1818 ac_cache_corrupted=: ;; 1819 ,);; 1820 *) 1821 if test "x$ac_old_val" != "x$ac_new_val"; then 1822 # differences in whitespace do not lead to failure. 1823 ac_old_val_w=`echo x $ac_old_val` 1824 ac_new_val_w=`echo x $ac_new_val` 1825 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1826 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1827$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1828 ac_cache_corrupted=: 1829 else 1830 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1831$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1832 eval $ac_var=\$ac_old_val 1833 fi 1834 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 1835$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1836 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 1837$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1838 fi;; 1839 esac 1840 # Pass precious variables to config.status. 1841 if test "$ac_new_set" = set; then 1842 case $ac_new_val in 1843 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1844 *) ac_arg=$ac_var=$ac_new_val ;; 1845 esac 1846 case " $ac_configure_args " in 1847 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1848 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1849 esac 1850 fi 1851done 1852if $ac_cache_corrupted; then 1853 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 1854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1855 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1856$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1857 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1858$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1859 { (exit 1); exit 1; }; } 1860fi 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886ac_ext=c 1887ac_cpp='$CPP $CPPFLAGS' 1888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1890ac_compiler_gnu=$ac_cv_c_compiler_gnu 1891 1892 1893am__api_version='1.11' 1894 1895ac_aux_dir= 1896for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 1897 if test -f "$ac_dir/install-sh"; then 1898 ac_aux_dir=$ac_dir 1899 ac_install_sh="$ac_aux_dir/install-sh -c" 1900 break 1901 elif test -f "$ac_dir/install.sh"; then 1902 ac_aux_dir=$ac_dir 1903 ac_install_sh="$ac_aux_dir/install.sh -c" 1904 break 1905 elif test -f "$ac_dir/shtool"; then 1906 ac_aux_dir=$ac_dir 1907 ac_install_sh="$ac_aux_dir/shtool install -c" 1908 break 1909 fi 1910done 1911if test -z "$ac_aux_dir"; then 1912 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 1913$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 1914 { (exit 1); exit 1; }; } 1915fi 1916 1917# These three variables are undocumented and unsupported, 1918# and are intended to be withdrawn in a future Autoconf release. 1919# They can cause serious problems if a builder's source tree is in a directory 1920# whose full name contains unusual characters. 1921ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 1922ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1923ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 1924 1925 1926# Find a good install program. We prefer a C program (faster), 1927# so one script is as good as another. But avoid the broken or 1928# incompatible versions: 1929# SysV /etc/install, /usr/sbin/install 1930# SunOS /usr/etc/install 1931# IRIX /sbin/install 1932# AIX /bin/install 1933# AmigaOS /C/install, which installs bootblocks on floppy discs 1934# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1935# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1936# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1937# OS/2's system install, which has a completely different semantic 1938# ./install, which can be erroneously created by make from ./install.sh. 1939# Reject install programs that cannot install multiple files. 1940{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1941$as_echo_n "checking for a BSD-compatible install... " >&6; } 1942if test -z "$INSTALL"; then 1943if test "${ac_cv_path_install+set}" = set; then 1944 $as_echo_n "(cached) " >&6 1945else 1946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1947for as_dir in $PATH 1948do 1949 IFS=$as_save_IFS 1950 test -z "$as_dir" && as_dir=. 1951 # Account for people who put trailing slashes in PATH elements. 1952case $as_dir/ in 1953 ./ | .// | /cC/* | \ 1954 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1955 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1956 /usr/ucb/* ) ;; 1957 *) 1958 # OSF1 and SCO ODT 3.0 have their own names for install. 1959 # Don't use installbsd from OSF since it installs stuff as root 1960 # by default. 1961 for ac_prog in ginstall scoinst install; do 1962 for ac_exec_ext in '' $ac_executable_extensions; do 1963 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 1964 if test $ac_prog = install && 1965 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1966 # AIX install. It has an incompatible calling convention. 1967 : 1968 elif test $ac_prog = install && 1969 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1970 # program-specific install script used by HP pwplus--don't use. 1971 : 1972 else 1973 rm -rf conftest.one conftest.two conftest.dir 1974 echo one > conftest.one 1975 echo two > conftest.two 1976 mkdir conftest.dir 1977 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 1978 test -s conftest.one && test -s conftest.two && 1979 test -s conftest.dir/conftest.one && 1980 test -s conftest.dir/conftest.two 1981 then 1982 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1983 break 3 1984 fi 1985 fi 1986 fi 1987 done 1988 done 1989 ;; 1990esac 1991 1992done 1993IFS=$as_save_IFS 1994 1995rm -rf conftest.one conftest.two conftest.dir 1996 1997fi 1998 if test "${ac_cv_path_install+set}" = set; then 1999 INSTALL=$ac_cv_path_install 2000 else 2001 # As a last resort, use the slow shell script. Don't cache a 2002 # value for INSTALL within a source directory, because that will 2003 # break other packages using the cache if that directory is 2004 # removed, or if the value is a relative name. 2005 INSTALL=$ac_install_sh 2006 fi 2007fi 2008{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 2009$as_echo "$INSTALL" >&6; } 2010 2011# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2012# It thinks the first close brace ends the variable substitution. 2013test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2014 2015test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2016 2017test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2018 2019{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2020$as_echo_n "checking whether build environment is sane... " >&6; } 2021# Just in case 2022sleep 1 2023echo timestamp > conftest.file 2024# Reject unsafe characters in $srcdir or the absolute working directory 2025# name. Accept space and tab only in the latter. 2026am_lf=' 2027' 2028case `pwd` in 2029 *[\\\"\#\$\&\'\`$am_lf]*) 2030 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5 2031$as_echo "$as_me: error: unsafe absolute working directory name" >&2;} 2032 { (exit 1); exit 1; }; };; 2033esac 2034case $srcdir in 2035 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2036 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5 2037$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;} 2038 { (exit 1); exit 1; }; };; 2039esac 2040 2041# Do `set' in a subshell so we don't clobber the current shell's 2042# arguments. Must try -L first in case configure is actually a 2043# symlink; some systems play weird games with the mod time of symlinks 2044# (eg FreeBSD returns the mod time of the symlink's containing 2045# directory). 2046if ( 2047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2048 if test "$*" = "X"; then 2049 # -L didn't work. 2050 set X `ls -t "$srcdir/configure" conftest.file` 2051 fi 2052 rm -f conftest.file 2053 if test "$*" != "X $srcdir/configure conftest.file" \ 2054 && test "$*" != "X conftest.file $srcdir/configure"; then 2055 2056 # If neither matched, then we have a broken ls. This can happen 2057 # if, for instance, CONFIG_SHELL is bash and it inherits a 2058 # broken ls alias from the environment. This has actually 2059 # happened. Such a system could not be considered "sane". 2060 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2061alias in your environment" >&5 2062$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2063alias in your environment" >&2;} 2064 { (exit 1); exit 1; }; } 2065 fi 2066 2067 test "$2" = conftest.file 2068 ) 2069then 2070 # Ok. 2071 : 2072else 2073 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2074Check your system clock" >&5 2075$as_echo "$as_me: error: newly created file is older than distributed files! 2076Check your system clock" >&2;} 2077 { (exit 1); exit 1; }; } 2078fi 2079{ $as_echo "$as_me:$LINENO: result: yes" >&5 2080$as_echo "yes" >&6; } 2081test "$program_prefix" != NONE && 2082 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2083# Use a double $ so make ignores it. 2084test "$program_suffix" != NONE && 2085 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2086# Double any \ or $. 2087# By default was `s,x,x', remove it if useless. 2088ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2089program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2090 2091# expand $ac_aux_dir to an absolute path 2092am_aux_dir=`cd $ac_aux_dir && pwd` 2093 2094if test x"${MISSING+set}" != xset; then 2095 case $am_aux_dir in 2096 *\ * | *\ *) 2097 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2098 *) 2099 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2100 esac 2101fi 2102# Use eval to expand $SHELL 2103if eval "$MISSING --run true"; then 2104 am_missing_run="$MISSING --run " 2105else 2106 am_missing_run= 2107 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2108$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2109fi 2110 2111if test x"${install_sh}" != xset; then 2112 case $am_aux_dir in 2113 *\ * | *\ *) 2114 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2115 *) 2116 install_sh="\${SHELL} $am_aux_dir/install-sh" 2117 esac 2118fi 2119 2120# Installed binaries are usually stripped using `strip' when the user 2121# run `make install-strip'. However `strip' might not be the right 2122# tool to use in cross-compilation environments, therefore Automake 2123# will honor the `STRIP' environment variable to overrule this program. 2124if test "$cross_compiling" != no; then 2125 if test -n "$ac_tool_prefix"; then 2126 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2127set dummy ${ac_tool_prefix}strip; ac_word=$2 2128{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2129$as_echo_n "checking for $ac_word... " >&6; } 2130if test "${ac_cv_prog_STRIP+set}" = set; then 2131 $as_echo_n "(cached) " >&6 2132else 2133 if test -n "$STRIP"; then 2134 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2135else 2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2137for as_dir in $PATH 2138do 2139 IFS=$as_save_IFS 2140 test -z "$as_dir" && as_dir=. 2141 for ac_exec_ext in '' $ac_executable_extensions; do 2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2143 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2145 break 2 2146 fi 2147done 2148done 2149IFS=$as_save_IFS 2150 2151fi 2152fi 2153STRIP=$ac_cv_prog_STRIP 2154if test -n "$STRIP"; then 2155 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 2156$as_echo "$STRIP" >&6; } 2157else 2158 { $as_echo "$as_me:$LINENO: result: no" >&5 2159$as_echo "no" >&6; } 2160fi 2161 2162 2163fi 2164if test -z "$ac_cv_prog_STRIP"; then 2165 ac_ct_STRIP=$STRIP 2166 # Extract the first word of "strip", so it can be a program name with args. 2167set dummy strip; ac_word=$2 2168{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2169$as_echo_n "checking for $ac_word... " >&6; } 2170if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2171 $as_echo_n "(cached) " >&6 2172else 2173 if test -n "$ac_ct_STRIP"; then 2174 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2175else 2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2177for as_dir in $PATH 2178do 2179 IFS=$as_save_IFS 2180 test -z "$as_dir" && as_dir=. 2181 for ac_exec_ext in '' $ac_executable_extensions; do 2182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2183 ac_cv_prog_ac_ct_STRIP="strip" 2184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2185 break 2 2186 fi 2187done 2188done 2189IFS=$as_save_IFS 2190 2191fi 2192fi 2193ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2194if test -n "$ac_ct_STRIP"; then 2195 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2196$as_echo "$ac_ct_STRIP" >&6; } 2197else 2198 { $as_echo "$as_me:$LINENO: result: no" >&5 2199$as_echo "no" >&6; } 2200fi 2201 2202 if test "x$ac_ct_STRIP" = x; then 2203 STRIP=":" 2204 else 2205 case $cross_compiling:$ac_tool_warned in 2206yes:) 2207{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2209ac_tool_warned=yes ;; 2210esac 2211 STRIP=$ac_ct_STRIP 2212 fi 2213else 2214 STRIP="$ac_cv_prog_STRIP" 2215fi 2216 2217fi 2218INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2219 2220{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2221$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2222if test -z "$MKDIR_P"; then 2223 if test "${ac_cv_path_mkdir+set}" = set; then 2224 $as_echo_n "(cached) " >&6 2225else 2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2227for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2228do 2229 IFS=$as_save_IFS 2230 test -z "$as_dir" && as_dir=. 2231 for ac_prog in mkdir gmkdir; do 2232 for ac_exec_ext in '' $ac_executable_extensions; do 2233 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2234 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2235 'mkdir (GNU coreutils) '* | \ 2236 'mkdir (coreutils) '* | \ 2237 'mkdir (fileutils) '4.1*) 2238 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2239 break 3;; 2240 esac 2241 done 2242 done 2243done 2244IFS=$as_save_IFS 2245 2246fi 2247 2248 if test "${ac_cv_path_mkdir+set}" = set; then 2249 MKDIR_P="$ac_cv_path_mkdir -p" 2250 else 2251 # As a last resort, use the slow shell script. Don't cache a 2252 # value for MKDIR_P within a source directory, because that will 2253 # break other packages using the cache if that directory is 2254 # removed, or if the value is a relative name. 2255 test -d ./--version && rmdir ./--version 2256 MKDIR_P="$ac_install_sh -d" 2257 fi 2258fi 2259{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 2260$as_echo "$MKDIR_P" >&6; } 2261 2262mkdir_p="$MKDIR_P" 2263case $mkdir_p in 2264 [\\/$]* | ?:[\\/]*) ;; 2265 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2266esac 2267 2268for ac_prog in gawk mawk nawk awk 2269do 2270 # Extract the first word of "$ac_prog", so it can be a program name with args. 2271set dummy $ac_prog; ac_word=$2 2272{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2273$as_echo_n "checking for $ac_word... " >&6; } 2274if test "${ac_cv_prog_AWK+set}" = set; then 2275 $as_echo_n "(cached) " >&6 2276else 2277 if test -n "$AWK"; then 2278 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2279else 2280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2281for as_dir in $PATH 2282do 2283 IFS=$as_save_IFS 2284 test -z "$as_dir" && as_dir=. 2285 for ac_exec_ext in '' $ac_executable_extensions; do 2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2287 ac_cv_prog_AWK="$ac_prog" 2288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2289 break 2 2290 fi 2291done 2292done 2293IFS=$as_save_IFS 2294 2295fi 2296fi 2297AWK=$ac_cv_prog_AWK 2298if test -n "$AWK"; then 2299 { $as_echo "$as_me:$LINENO: result: $AWK" >&5 2300$as_echo "$AWK" >&6; } 2301else 2302 { $as_echo "$as_me:$LINENO: result: no" >&5 2303$as_echo "no" >&6; } 2304fi 2305 2306 2307 test -n "$AWK" && break 2308done 2309 2310{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2311$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2312set x ${MAKE-make} 2313ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2314if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2315 $as_echo_n "(cached) " >&6 2316else 2317 cat >conftest.make <<\_ACEOF 2318SHELL = /bin/sh 2319all: 2320 @echo '@@@%%%=$(MAKE)=@@@%%%' 2321_ACEOF 2322# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2323case `${MAKE-make} -f conftest.make 2>/dev/null` in 2324 *@@@%%%=?*=@@@%%%*) 2325 eval ac_cv_prog_make_${ac_make}_set=yes;; 2326 *) 2327 eval ac_cv_prog_make_${ac_make}_set=no;; 2328esac 2329rm -f conftest.make 2330fi 2331if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2332 { $as_echo "$as_me:$LINENO: result: yes" >&5 2333$as_echo "yes" >&6; } 2334 SET_MAKE= 2335else 2336 { $as_echo "$as_me:$LINENO: result: no" >&5 2337$as_echo "no" >&6; } 2338 SET_MAKE="MAKE=${MAKE-make}" 2339fi 2340 2341rm -rf .tst 2>/dev/null 2342mkdir .tst 2>/dev/null 2343if test -d .tst; then 2344 am__leading_dot=. 2345else 2346 am__leading_dot=_ 2347fi 2348rmdir .tst 2>/dev/null 2349 2350if test "`cd $srcdir && pwd`" != "`pwd`"; then 2351 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2352 # is not polluted with repeated "-I." 2353 am__isrc=' -I$(srcdir)' 2354 # test to see if srcdir already configured 2355 if test -f $srcdir/config.status; then 2356 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2357$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2358 { (exit 1); exit 1; }; } 2359 fi 2360fi 2361 2362# test whether we have cygpath 2363if test -z "$CYGPATH_W"; then 2364 if (cygpath --version) >/dev/null 2>/dev/null; then 2365 CYGPATH_W='cygpath -w' 2366 else 2367 CYGPATH_W=echo 2368 fi 2369fi 2370 2371 2372# Define the identity of the package. 2373 PACKAGE='xhost' 2374 VERSION='1.0.3' 2375 2376 2377cat >>confdefs.h <<_ACEOF 2378#define PACKAGE "$PACKAGE" 2379_ACEOF 2380 2381 2382cat >>confdefs.h <<_ACEOF 2383#define VERSION "$VERSION" 2384_ACEOF 2385 2386# Some tools Automake needs. 2387 2388ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2389 2390 2391AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2392 2393 2394AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2395 2396 2397AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2398 2399 2400MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2401 2402# We need awk for the "check" target. The system "awk" is bad on 2403# some platforms. 2404# Always define AMTAR for backward compatibility. 2405 2406AMTAR=${AMTAR-"${am_missing_run}tar"} 2407 2408am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2409 2410 2411 2412 2413 2414 2415{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 2416$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2417 # Check whether --enable-maintainer-mode was given. 2418if test "${enable_maintainer_mode+set}" = set; then 2419 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2420else 2421 USE_MAINTAINER_MODE=no 2422fi 2423 2424 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 2425$as_echo "$USE_MAINTAINER_MODE" >&6; } 2426 if test $USE_MAINTAINER_MODE = yes; then 2427 MAINTAINER_MODE_TRUE= 2428 MAINTAINER_MODE_FALSE='#' 2429else 2430 MAINTAINER_MODE_TRUE='#' 2431 MAINTAINER_MODE_FALSE= 2432fi 2433 2434 MAINT=$MAINTAINER_MODE_TRUE 2435 2436 2437 2438# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451ac_config_headers="$ac_config_headers config.h" 2452 2453 2454ac_ext=c 2455ac_cpp='$CPP $CPPFLAGS' 2456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2458ac_compiler_gnu=$ac_cv_c_compiler_gnu 2459if test -n "$ac_tool_prefix"; then 2460 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2461set dummy ${ac_tool_prefix}gcc; ac_word=$2 2462{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2463$as_echo_n "checking for $ac_word... " >&6; } 2464if test "${ac_cv_prog_CC+set}" = set; then 2465 $as_echo_n "(cached) " >&6 2466else 2467 if test -n "$CC"; then 2468 ac_cv_prog_CC="$CC" # Let the user override the test. 2469else 2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2471for as_dir in $PATH 2472do 2473 IFS=$as_save_IFS 2474 test -z "$as_dir" && as_dir=. 2475 for ac_exec_ext in '' $ac_executable_extensions; do 2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2477 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2478 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2479 break 2 2480 fi 2481done 2482done 2483IFS=$as_save_IFS 2484 2485fi 2486fi 2487CC=$ac_cv_prog_CC 2488if test -n "$CC"; then 2489 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2490$as_echo "$CC" >&6; } 2491else 2492 { $as_echo "$as_me:$LINENO: result: no" >&5 2493$as_echo "no" >&6; } 2494fi 2495 2496 2497fi 2498if test -z "$ac_cv_prog_CC"; then 2499 ac_ct_CC=$CC 2500 # Extract the first word of "gcc", so it can be a program name with args. 2501set dummy gcc; ac_word=$2 2502{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2503$as_echo_n "checking for $ac_word... " >&6; } 2504if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2505 $as_echo_n "(cached) " >&6 2506else 2507 if test -n "$ac_ct_CC"; then 2508 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2509else 2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2511for as_dir in $PATH 2512do 2513 IFS=$as_save_IFS 2514 test -z "$as_dir" && as_dir=. 2515 for ac_exec_ext in '' $ac_executable_extensions; do 2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2517 ac_cv_prog_ac_ct_CC="gcc" 2518 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2519 break 2 2520 fi 2521done 2522done 2523IFS=$as_save_IFS 2524 2525fi 2526fi 2527ac_ct_CC=$ac_cv_prog_ac_ct_CC 2528if test -n "$ac_ct_CC"; then 2529 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2530$as_echo "$ac_ct_CC" >&6; } 2531else 2532 { $as_echo "$as_me:$LINENO: result: no" >&5 2533$as_echo "no" >&6; } 2534fi 2535 2536 if test "x$ac_ct_CC" = x; then 2537 CC="" 2538 else 2539 case $cross_compiling:$ac_tool_warned in 2540yes:) 2541{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2543ac_tool_warned=yes ;; 2544esac 2545 CC=$ac_ct_CC 2546 fi 2547else 2548 CC="$ac_cv_prog_CC" 2549fi 2550 2551if test -z "$CC"; then 2552 if test -n "$ac_tool_prefix"; then 2553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2554set dummy ${ac_tool_prefix}cc; ac_word=$2 2555{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2556$as_echo_n "checking for $ac_word... " >&6; } 2557if test "${ac_cv_prog_CC+set}" = set; then 2558 $as_echo_n "(cached) " >&6 2559else 2560 if test -n "$CC"; then 2561 ac_cv_prog_CC="$CC" # Let the user override the test. 2562else 2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2564for as_dir in $PATH 2565do 2566 IFS=$as_save_IFS 2567 test -z "$as_dir" && as_dir=. 2568 for ac_exec_ext in '' $ac_executable_extensions; do 2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2570 ac_cv_prog_CC="${ac_tool_prefix}cc" 2571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2572 break 2 2573 fi 2574done 2575done 2576IFS=$as_save_IFS 2577 2578fi 2579fi 2580CC=$ac_cv_prog_CC 2581if test -n "$CC"; then 2582 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2583$as_echo "$CC" >&6; } 2584else 2585 { $as_echo "$as_me:$LINENO: result: no" >&5 2586$as_echo "no" >&6; } 2587fi 2588 2589 2590 fi 2591fi 2592if test -z "$CC"; then 2593 # Extract the first word of "cc", so it can be a program name with args. 2594set dummy cc; ac_word=$2 2595{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2596$as_echo_n "checking for $ac_word... " >&6; } 2597if test "${ac_cv_prog_CC+set}" = set; then 2598 $as_echo_n "(cached) " >&6 2599else 2600 if test -n "$CC"; then 2601 ac_cv_prog_CC="$CC" # Let the user override the test. 2602else 2603 ac_prog_rejected=no 2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605for as_dir in $PATH 2606do 2607 IFS=$as_save_IFS 2608 test -z "$as_dir" && as_dir=. 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2612 ac_prog_rejected=yes 2613 continue 2614 fi 2615 ac_cv_prog_CC="cc" 2616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2617 break 2 2618 fi 2619done 2620done 2621IFS=$as_save_IFS 2622 2623if test $ac_prog_rejected = yes; then 2624 # We found a bogon in the path, so make sure we never use it. 2625 set dummy $ac_cv_prog_CC 2626 shift 2627 if test $# != 0; then 2628 # We chose a different compiler from the bogus one. 2629 # However, it has the same basename, so the bogon will be chosen 2630 # first if we set CC to just the basename; use the full file name. 2631 shift 2632 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2633 fi 2634fi 2635fi 2636fi 2637CC=$ac_cv_prog_CC 2638if test -n "$CC"; then 2639 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2640$as_echo "$CC" >&6; } 2641else 2642 { $as_echo "$as_me:$LINENO: result: no" >&5 2643$as_echo "no" >&6; } 2644fi 2645 2646 2647fi 2648if test -z "$CC"; then 2649 if test -n "$ac_tool_prefix"; then 2650 for ac_prog in cl.exe 2651 do 2652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2653set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2655$as_echo_n "checking for $ac_word... " >&6; } 2656if test "${ac_cv_prog_CC+set}" = set; then 2657 $as_echo_n "(cached) " >&6 2658else 2659 if test -n "$CC"; then 2660 ac_cv_prog_CC="$CC" # Let the user override the test. 2661else 2662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_exec_ext in '' $ac_executable_extensions; do 2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2669 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2671 break 2 2672 fi 2673done 2674done 2675IFS=$as_save_IFS 2676 2677fi 2678fi 2679CC=$ac_cv_prog_CC 2680if test -n "$CC"; then 2681 { $as_echo "$as_me:$LINENO: result: $CC" >&5 2682$as_echo "$CC" >&6; } 2683else 2684 { $as_echo "$as_me:$LINENO: result: no" >&5 2685$as_echo "no" >&6; } 2686fi 2687 2688 2689 test -n "$CC" && break 2690 done 2691fi 2692if test -z "$CC"; then 2693 ac_ct_CC=$CC 2694 for ac_prog in cl.exe 2695do 2696 # Extract the first word of "$ac_prog", so it can be a program name with args. 2697set dummy $ac_prog; ac_word=$2 2698{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 2699$as_echo_n "checking for $ac_word... " >&6; } 2700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2701 $as_echo_n "(cached) " >&6 2702else 2703 if test -n "$ac_ct_CC"; then 2704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2705else 2706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2707for as_dir in $PATH 2708do 2709 IFS=$as_save_IFS 2710 test -z "$as_dir" && as_dir=. 2711 for ac_exec_ext in '' $ac_executable_extensions; do 2712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2713 ac_cv_prog_ac_ct_CC="$ac_prog" 2714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2715 break 2 2716 fi 2717done 2718done 2719IFS=$as_save_IFS 2720 2721fi 2722fi 2723ac_ct_CC=$ac_cv_prog_ac_ct_CC 2724if test -n "$ac_ct_CC"; then 2725 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2726$as_echo "$ac_ct_CC" >&6; } 2727else 2728 { $as_echo "$as_me:$LINENO: result: no" >&5 2729$as_echo "no" >&6; } 2730fi 2731 2732 2733 test -n "$ac_ct_CC" && break 2734done 2735 2736 if test "x$ac_ct_CC" = x; then 2737 CC="" 2738 else 2739 case $cross_compiling:$ac_tool_warned in 2740yes:) 2741{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 2742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2743ac_tool_warned=yes ;; 2744esac 2745 CC=$ac_ct_CC 2746 fi 2747fi 2748 2749fi 2750 2751 2752test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2754{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2755See \`config.log' for more details." >&5 2756$as_echo "$as_me: error: no acceptable C compiler found in \$PATH 2757See \`config.log' for more details." >&2;} 2758 { (exit 1); exit 1; }; }; } 2759 2760# Provide some information about the compiler. 2761$as_echo "$as_me:$LINENO: checking for C compiler version" >&5 2762set X $ac_compile 2763ac_compiler=$2 2764{ (ac_try="$ac_compiler --version >&5" 2765case "(($ac_try" in 2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2767 *) ac_try_echo=$ac_try;; 2768esac 2769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2770$as_echo "$ac_try_echo") >&5 2771 (eval "$ac_compiler --version >&5") 2>&5 2772 ac_status=$? 2773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2774 (exit $ac_status); } 2775{ (ac_try="$ac_compiler -v >&5" 2776case "(($ac_try" in 2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2778 *) ac_try_echo=$ac_try;; 2779esac 2780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2781$as_echo "$ac_try_echo") >&5 2782 (eval "$ac_compiler -v >&5") 2>&5 2783 ac_status=$? 2784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2785 (exit $ac_status); } 2786{ (ac_try="$ac_compiler -V >&5" 2787case "(($ac_try" in 2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2789 *) ac_try_echo=$ac_try;; 2790esac 2791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2792$as_echo "$ac_try_echo") >&5 2793 (eval "$ac_compiler -V >&5") 2>&5 2794 ac_status=$? 2795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2796 (exit $ac_status); } 2797 2798cat >conftest.$ac_ext <<_ACEOF 2799/* confdefs.h. */ 2800_ACEOF 2801cat confdefs.h >>conftest.$ac_ext 2802cat >>conftest.$ac_ext <<_ACEOF 2803/* end confdefs.h. */ 2804 2805int 2806main () 2807{ 2808 2809 ; 2810 return 0; 2811} 2812_ACEOF 2813ac_clean_files_save=$ac_clean_files 2814ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2815# Try to create an executable without -o first, disregard a.out. 2816# It will help us diagnose broken compilers, and finding out an intuition 2817# of exeext. 2818{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2819$as_echo_n "checking for C compiler default output file name... " >&6; } 2820ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2821 2822# The possible output files: 2823ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2824 2825ac_rmfiles= 2826for ac_file in $ac_files 2827do 2828 case $ac_file in 2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2830 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2831 esac 2832done 2833rm -f $ac_rmfiles 2834 2835if { (ac_try="$ac_link_default" 2836case "(($ac_try" in 2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2838 *) ac_try_echo=$ac_try;; 2839esac 2840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2841$as_echo "$ac_try_echo") >&5 2842 (eval "$ac_link_default") 2>&5 2843 ac_status=$? 2844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2845 (exit $ac_status); }; then 2846 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2847# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2848# in a Makefile. We should not override ac_cv_exeext if it was cached, 2849# so that the user can short-circuit this test for compilers unknown to 2850# Autoconf. 2851for ac_file in $ac_files '' 2852do 2853 test -f "$ac_file" || continue 2854 case $ac_file in 2855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2856 ;; 2857 [ab].out ) 2858 # We found the default executable, but exeext='' is most 2859 # certainly right. 2860 break;; 2861 *.* ) 2862 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2863 then :; else 2864 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2865 fi 2866 # We set ac_cv_exeext here because the later test for it is not 2867 # safe: cross compilers may not add the suffix if given an `-o' 2868 # argument, so we may need to know it at that point already. 2869 # Even if this section looks crufty: it has the advantage of 2870 # actually working. 2871 break;; 2872 * ) 2873 break;; 2874 esac 2875done 2876test "$ac_cv_exeext" = no && ac_cv_exeext= 2877 2878else 2879 ac_file='' 2880fi 2881 2882{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5 2883$as_echo "$ac_file" >&6; } 2884if test -z "$ac_file"; then 2885 $as_echo "$as_me: failed program was:" >&5 2886sed 's/^/| /' conftest.$ac_ext >&5 2887 2888{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2890{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables 2891See \`config.log' for more details." >&5 2892$as_echo "$as_me: error: C compiler cannot create executables 2893See \`config.log' for more details." >&2;} 2894 { (exit 77); exit 77; }; }; } 2895fi 2896 2897ac_exeext=$ac_cv_exeext 2898 2899# Check that the compiler produces executables we can run. If not, either 2900# the compiler is broken, or we cross compile. 2901{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2902$as_echo_n "checking whether the C compiler works... " >&6; } 2903# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2904# If not cross compiling, check that we can run a simple program. 2905if test "$cross_compiling" != yes; then 2906 if { ac_try='./$ac_file' 2907 { (case "(($ac_try" in 2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2909 *) ac_try_echo=$ac_try;; 2910esac 2911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2912$as_echo "$ac_try_echo") >&5 2913 (eval "$ac_try") 2>&5 2914 ac_status=$? 2915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2916 (exit $ac_status); }; }; then 2917 cross_compiling=no 2918 else 2919 if test "$cross_compiling" = maybe; then 2920 cross_compiling=yes 2921 else 2922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2924{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. 2925If you meant to cross compile, use \`--host'. 2926See \`config.log' for more details." >&5 2927$as_echo "$as_me: error: cannot run C compiled programs. 2928If you meant to cross compile, use \`--host'. 2929See \`config.log' for more details." >&2;} 2930 { (exit 1); exit 1; }; }; } 2931 fi 2932 fi 2933fi 2934{ $as_echo "$as_me:$LINENO: result: yes" >&5 2935$as_echo "yes" >&6; } 2936 2937rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2938ac_clean_files=$ac_clean_files_save 2939# Check that the compiler produces executables we can run. If not, either 2940# the compiler is broken, or we cross compile. 2941{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2942$as_echo_n "checking whether we are cross compiling... " >&6; } 2943{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 2944$as_echo "$cross_compiling" >&6; } 2945 2946{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 2947$as_echo_n "checking for suffix of executables... " >&6; } 2948if { (ac_try="$ac_link" 2949case "(($ac_try" in 2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2951 *) ac_try_echo=$ac_try;; 2952esac 2953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2954$as_echo "$ac_try_echo") >&5 2955 (eval "$ac_link") 2>&5 2956 ac_status=$? 2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2958 (exit $ac_status); }; then 2959 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2960# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2961# work properly (i.e., refer to `conftest.exe'), while it won't with 2962# `rm'. 2963for ac_file in conftest.exe conftest conftest.*; do 2964 test -f "$ac_file" || continue 2965 case $ac_file in 2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2968 break;; 2969 * ) break;; 2970 esac 2971done 2972else 2973 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 2974$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2975{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2976See \`config.log' for more details." >&5 2977$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2978See \`config.log' for more details." >&2;} 2979 { (exit 1); exit 1; }; }; } 2980fi 2981 2982rm -f conftest$ac_cv_exeext 2983{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2984$as_echo "$ac_cv_exeext" >&6; } 2985 2986rm -f conftest.$ac_ext 2987EXEEXT=$ac_cv_exeext 2988ac_exeext=$EXEEXT 2989{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 2990$as_echo_n "checking for suffix of object files... " >&6; } 2991if test "${ac_cv_objext+set}" = set; then 2992 $as_echo_n "(cached) " >&6 2993else 2994 cat >conftest.$ac_ext <<_ACEOF 2995/* confdefs.h. */ 2996_ACEOF 2997cat confdefs.h >>conftest.$ac_ext 2998cat >>conftest.$ac_ext <<_ACEOF 2999/* end confdefs.h. */ 3000 3001int 3002main () 3003{ 3004 3005 ; 3006 return 0; 3007} 3008_ACEOF 3009rm -f conftest.o conftest.obj 3010if { (ac_try="$ac_compile" 3011case "(($ac_try" in 3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3013 *) ac_try_echo=$ac_try;; 3014esac 3015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3016$as_echo "$ac_try_echo") >&5 3017 (eval "$ac_compile") 2>&5 3018 ac_status=$? 3019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3020 (exit $ac_status); }; then 3021 for ac_file in conftest.o conftest.obj conftest.*; do 3022 test -f "$ac_file" || continue; 3023 case $ac_file in 3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3026 break;; 3027 esac 3028done 3029else 3030 $as_echo "$as_me: failed program was:" >&5 3031sed 's/^/| /' conftest.$ac_ext >&5 3032 3033{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3035{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3036See \`config.log' for more details." >&5 3037$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3038See \`config.log' for more details." >&2;} 3039 { (exit 1); exit 1; }; }; } 3040fi 3041 3042rm -f conftest.$ac_cv_objext conftest.$ac_ext 3043fi 3044{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3045$as_echo "$ac_cv_objext" >&6; } 3046OBJEXT=$ac_cv_objext 3047ac_objext=$OBJEXT 3048{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3049$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3050if test "${ac_cv_c_compiler_gnu+set}" = set; then 3051 $as_echo_n "(cached) " >&6 3052else 3053 cat >conftest.$ac_ext <<_ACEOF 3054/* confdefs.h. */ 3055_ACEOF 3056cat confdefs.h >>conftest.$ac_ext 3057cat >>conftest.$ac_ext <<_ACEOF 3058/* end confdefs.h. */ 3059 3060int 3061main () 3062{ 3063#ifndef __GNUC__ 3064 choke me 3065#endif 3066 3067 ; 3068 return 0; 3069} 3070_ACEOF 3071rm -f conftest.$ac_objext 3072if { (ac_try="$ac_compile" 3073case "(($ac_try" in 3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3075 *) ac_try_echo=$ac_try;; 3076esac 3077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3078$as_echo "$ac_try_echo") >&5 3079 (eval "$ac_compile") 2>conftest.er1 3080 ac_status=$? 3081 grep -v '^ *+' conftest.er1 >conftest.err 3082 rm -f conftest.er1 3083 cat conftest.err >&5 3084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3085 (exit $ac_status); } && { 3086 test -z "$ac_c_werror_flag" || 3087 test ! -s conftest.err 3088 } && test -s conftest.$ac_objext; then 3089 ac_compiler_gnu=yes 3090else 3091 $as_echo "$as_me: failed program was:" >&5 3092sed 's/^/| /' conftest.$ac_ext >&5 3093 3094 ac_compiler_gnu=no 3095fi 3096 3097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3098ac_cv_c_compiler_gnu=$ac_compiler_gnu 3099 3100fi 3101{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3102$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3103if test $ac_compiler_gnu = yes; then 3104 GCC=yes 3105else 3106 GCC= 3107fi 3108ac_test_CFLAGS=${CFLAGS+set} 3109ac_save_CFLAGS=$CFLAGS 3110{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3111$as_echo_n "checking whether $CC accepts -g... " >&6; } 3112if test "${ac_cv_prog_cc_g+set}" = set; then 3113 $as_echo_n "(cached) " >&6 3114else 3115 ac_save_c_werror_flag=$ac_c_werror_flag 3116 ac_c_werror_flag=yes 3117 ac_cv_prog_cc_g=no 3118 CFLAGS="-g" 3119 cat >conftest.$ac_ext <<_ACEOF 3120/* confdefs.h. */ 3121_ACEOF 3122cat confdefs.h >>conftest.$ac_ext 3123cat >>conftest.$ac_ext <<_ACEOF 3124/* end confdefs.h. */ 3125 3126int 3127main () 3128{ 3129 3130 ; 3131 return 0; 3132} 3133_ACEOF 3134rm -f conftest.$ac_objext 3135if { (ac_try="$ac_compile" 3136case "(($ac_try" in 3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3138 *) ac_try_echo=$ac_try;; 3139esac 3140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3141$as_echo "$ac_try_echo") >&5 3142 (eval "$ac_compile") 2>conftest.er1 3143 ac_status=$? 3144 grep -v '^ *+' conftest.er1 >conftest.err 3145 rm -f conftest.er1 3146 cat conftest.err >&5 3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3148 (exit $ac_status); } && { 3149 test -z "$ac_c_werror_flag" || 3150 test ! -s conftest.err 3151 } && test -s conftest.$ac_objext; then 3152 ac_cv_prog_cc_g=yes 3153else 3154 $as_echo "$as_me: failed program was:" >&5 3155sed 's/^/| /' conftest.$ac_ext >&5 3156 3157 CFLAGS="" 3158 cat >conftest.$ac_ext <<_ACEOF 3159/* confdefs.h. */ 3160_ACEOF 3161cat confdefs.h >>conftest.$ac_ext 3162cat >>conftest.$ac_ext <<_ACEOF 3163/* end confdefs.h. */ 3164 3165int 3166main () 3167{ 3168 3169 ; 3170 return 0; 3171} 3172_ACEOF 3173rm -f conftest.$ac_objext 3174if { (ac_try="$ac_compile" 3175case "(($ac_try" in 3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3177 *) ac_try_echo=$ac_try;; 3178esac 3179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3180$as_echo "$ac_try_echo") >&5 3181 (eval "$ac_compile") 2>conftest.er1 3182 ac_status=$? 3183 grep -v '^ *+' conftest.er1 >conftest.err 3184 rm -f conftest.er1 3185 cat conftest.err >&5 3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 (exit $ac_status); } && { 3188 test -z "$ac_c_werror_flag" || 3189 test ! -s conftest.err 3190 } && test -s conftest.$ac_objext; then 3191 : 3192else 3193 $as_echo "$as_me: failed program was:" >&5 3194sed 's/^/| /' conftest.$ac_ext >&5 3195 3196 ac_c_werror_flag=$ac_save_c_werror_flag 3197 CFLAGS="-g" 3198 cat >conftest.$ac_ext <<_ACEOF 3199/* confdefs.h. */ 3200_ACEOF 3201cat confdefs.h >>conftest.$ac_ext 3202cat >>conftest.$ac_ext <<_ACEOF 3203/* end confdefs.h. */ 3204 3205int 3206main () 3207{ 3208 3209 ; 3210 return 0; 3211} 3212_ACEOF 3213rm -f conftest.$ac_objext 3214if { (ac_try="$ac_compile" 3215case "(($ac_try" in 3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3217 *) ac_try_echo=$ac_try;; 3218esac 3219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3220$as_echo "$ac_try_echo") >&5 3221 (eval "$ac_compile") 2>conftest.er1 3222 ac_status=$? 3223 grep -v '^ *+' conftest.er1 >conftest.err 3224 rm -f conftest.er1 3225 cat conftest.err >&5 3226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3227 (exit $ac_status); } && { 3228 test -z "$ac_c_werror_flag" || 3229 test ! -s conftest.err 3230 } && test -s conftest.$ac_objext; then 3231 ac_cv_prog_cc_g=yes 3232else 3233 $as_echo "$as_me: failed program was:" >&5 3234sed 's/^/| /' conftest.$ac_ext >&5 3235 3236 3237fi 3238 3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3240fi 3241 3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3243fi 3244 3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3246 ac_c_werror_flag=$ac_save_c_werror_flag 3247fi 3248{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3249$as_echo "$ac_cv_prog_cc_g" >&6; } 3250if test "$ac_test_CFLAGS" = set; then 3251 CFLAGS=$ac_save_CFLAGS 3252elif test $ac_cv_prog_cc_g = yes; then 3253 if test "$GCC" = yes; then 3254 CFLAGS="-g -O2" 3255 else 3256 CFLAGS="-g" 3257 fi 3258else 3259 if test "$GCC" = yes; then 3260 CFLAGS="-O2" 3261 else 3262 CFLAGS= 3263 fi 3264fi 3265{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3266$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3267if test "${ac_cv_prog_cc_c89+set}" = set; then 3268 $as_echo_n "(cached) " >&6 3269else 3270 ac_cv_prog_cc_c89=no 3271ac_save_CC=$CC 3272cat >conftest.$ac_ext <<_ACEOF 3273/* confdefs.h. */ 3274_ACEOF 3275cat confdefs.h >>conftest.$ac_ext 3276cat >>conftest.$ac_ext <<_ACEOF 3277/* end confdefs.h. */ 3278#include <stdarg.h> 3279#include <stdio.h> 3280#include <sys/types.h> 3281#include <sys/stat.h> 3282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3283struct buf { int x; }; 3284FILE * (*rcsopen) (struct buf *, struct stat *, int); 3285static char *e (p, i) 3286 char **p; 3287 int i; 3288{ 3289 return p[i]; 3290} 3291static char *f (char * (*g) (char **, int), char **p, ...) 3292{ 3293 char *s; 3294 va_list v; 3295 va_start (v,p); 3296 s = g (p, va_arg (v,int)); 3297 va_end (v); 3298 return s; 3299} 3300 3301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3302 function prototypes and stuff, but not '\xHH' hex character constants. 3303 These don't provoke an error unfortunately, instead are silently treated 3304 as 'x'. The following induces an error, until -std is added to get 3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3306 array size at least. It's necessary to write '\x00'==0 to get something 3307 that's true only with -std. */ 3308int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3309 3310/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3311 inside strings and character constants. */ 3312#define FOO(x) 'x' 3313int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3314 3315int test (int i, double x); 3316struct s1 {int (*f) (int a);}; 3317struct s2 {int (*f) (double a);}; 3318int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3319int argc; 3320char **argv; 3321int 3322main () 3323{ 3324return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3325 ; 3326 return 0; 3327} 3328_ACEOF 3329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3331do 3332 CC="$ac_save_CC $ac_arg" 3333 rm -f conftest.$ac_objext 3334if { (ac_try="$ac_compile" 3335case "(($ac_try" in 3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3337 *) ac_try_echo=$ac_try;; 3338esac 3339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3340$as_echo "$ac_try_echo") >&5 3341 (eval "$ac_compile") 2>conftest.er1 3342 ac_status=$? 3343 grep -v '^ *+' conftest.er1 >conftest.err 3344 rm -f conftest.er1 3345 cat conftest.err >&5 3346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3347 (exit $ac_status); } && { 3348 test -z "$ac_c_werror_flag" || 3349 test ! -s conftest.err 3350 } && test -s conftest.$ac_objext; then 3351 ac_cv_prog_cc_c89=$ac_arg 3352else 3353 $as_echo "$as_me: failed program was:" >&5 3354sed 's/^/| /' conftest.$ac_ext >&5 3355 3356 3357fi 3358 3359rm -f core conftest.err conftest.$ac_objext 3360 test "x$ac_cv_prog_cc_c89" != "xno" && break 3361done 3362rm -f conftest.$ac_ext 3363CC=$ac_save_CC 3364 3365fi 3366# AC_CACHE_VAL 3367case "x$ac_cv_prog_cc_c89" in 3368 x) 3369 { $as_echo "$as_me:$LINENO: result: none needed" >&5 3370$as_echo "none needed" >&6; } ;; 3371 xno) 3372 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 3373$as_echo "unsupported" >&6; } ;; 3374 *) 3375 CC="$CC $ac_cv_prog_cc_c89" 3376 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3377$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3378esac 3379 3380 3381ac_ext=c 3382ac_cpp='$CPP $CPPFLAGS' 3383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3385ac_compiler_gnu=$ac_cv_c_compiler_gnu 3386DEPDIR="${am__leading_dot}deps" 3387 3388ac_config_commands="$ac_config_commands depfiles" 3389 3390 3391am_make=${MAKE-make} 3392cat > confinc << 'END' 3393am__doit: 3394 @echo this is the am__doit target 3395.PHONY: am__doit 3396END 3397# If we don't find an include directive, just comment out the code. 3398{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3399$as_echo_n "checking for style of include used by $am_make... " >&6; } 3400am__include="#" 3401am__quote= 3402_am_result=none 3403# First try GNU make style include. 3404echo "include confinc" > confmf 3405# Ignore all kinds of additional output from `make'. 3406case `$am_make -s -f confmf 2> /dev/null` in #( 3407*the\ am__doit\ target*) 3408 am__include=include 3409 am__quote= 3410 _am_result=GNU 3411 ;; 3412esac 3413# Now try BSD make style include. 3414if test "$am__include" = "#"; then 3415 echo '.include "confinc"' > confmf 3416 case `$am_make -s -f confmf 2> /dev/null` in #( 3417 *the\ am__doit\ target*) 3418 am__include=.include 3419 am__quote="\"" 3420 _am_result=BSD 3421 ;; 3422 esac 3423fi 3424 3425 3426{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3427$as_echo "$_am_result" >&6; } 3428rm -f confinc confmf 3429 3430# Check whether --enable-dependency-tracking was given. 3431if test "${enable_dependency_tracking+set}" = set; then 3432 enableval=$enable_dependency_tracking; 3433fi 3434 3435if test "x$enable_dependency_tracking" != xno; then 3436 am_depcomp="$ac_aux_dir/depcomp" 3437 AMDEPBACKSLASH='\' 3438fi 3439 if test "x$enable_dependency_tracking" != xno; then 3440 AMDEP_TRUE= 3441 AMDEP_FALSE='#' 3442else 3443 AMDEP_TRUE='#' 3444 AMDEP_FALSE= 3445fi 3446 3447 3448 3449depcc="$CC" am_compiler_list= 3450 3451{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3452$as_echo_n "checking dependency style of $depcc... " >&6; } 3453if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3454 $as_echo_n "(cached) " >&6 3455else 3456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3457 # We make a subdir and do the tests there. Otherwise we can end up 3458 # making bogus files that we don't know about and never remove. For 3459 # instance it was reported that on HP-UX the gcc test will end up 3460 # making a dummy file named `D' -- because `-MD' means `put the output 3461 # in D'. 3462 mkdir conftest.dir 3463 # Copy depcomp to subdir because otherwise we won't find it if we're 3464 # using a relative directory. 3465 cp "$am_depcomp" conftest.dir 3466 cd conftest.dir 3467 # We will build objects and dependencies in a subdirectory because 3468 # it helps to detect inapplicable dependency modes. For instance 3469 # both Tru64's cc and ICC support -MD to output dependencies as a 3470 # side effect of compilation, but ICC will put the dependencies in 3471 # the current directory while Tru64 will put them in the object 3472 # directory. 3473 mkdir sub 3474 3475 am_cv_CC_dependencies_compiler_type=none 3476 if test "$am_compiler_list" = ""; then 3477 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3478 fi 3479 am__universal=false 3480 case " $depcc " in #( 3481 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3482 esac 3483 3484 for depmode in $am_compiler_list; do 3485 # Setup a source with many dependencies, because some compilers 3486 # like to wrap large dependency lists on column 80 (with \), and 3487 # we should not choose a depcomp mode which is confused by this. 3488 # 3489 # We need to recreate these files for each test, as the compiler may 3490 # overwrite some of them when testing with obscure command lines. 3491 # This happens at least with the AIX C compiler. 3492 : > sub/conftest.c 3493 for i in 1 2 3 4 5 6; do 3494 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3495 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3496 # Solaris 8's {/usr,}/bin/sh. 3497 touch sub/conftst$i.h 3498 done 3499 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3500 3501 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3502 # mode. It turns out that the SunPro C++ compiler does not properly 3503 # handle `-M -o', and we need to detect this. Also, some Intel 3504 # versions had trouble with output in subdirs 3505 am__obj=sub/conftest.${OBJEXT-o} 3506 am__minus_obj="-o $am__obj" 3507 case $depmode in 3508 gcc) 3509 # This depmode causes a compiler race in universal mode. 3510 test "$am__universal" = false || continue 3511 ;; 3512 nosideeffect) 3513 # after this tag, mechanisms are not by side-effect, so they'll 3514 # only be used when explicitly requested 3515 if test "x$enable_dependency_tracking" = xyes; then 3516 continue 3517 else 3518 break 3519 fi 3520 ;; 3521 msvisualcpp | msvcmsys) 3522 # This compiler won't grok `-c -o', but also, the minuso test has 3523 # not run yet. These depmodes are late enough in the game, and 3524 # so weak that their functioning should not be impacted. 3525 am__obj=conftest.${OBJEXT-o} 3526 am__minus_obj= 3527 ;; 3528 none) break ;; 3529 esac 3530 if depmode=$depmode \ 3531 source=sub/conftest.c object=$am__obj \ 3532 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3533 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3534 >/dev/null 2>conftest.err && 3535 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3536 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3537 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3538 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3539 # icc doesn't choke on unknown options, it will just issue warnings 3540 # or remarks (even with -Werror). So we grep stderr for any message 3541 # that says an option was ignored or not supported. 3542 # When given -MP, icc 7.0 and 7.1 complain thusly: 3543 # icc: Command line warning: ignoring option '-M'; no argument required 3544 # The diagnosis changed in icc 8.0: 3545 # icc: Command line remark: option '-MP' not supported 3546 if (grep 'ignoring option' conftest.err || 3547 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3548 am_cv_CC_dependencies_compiler_type=$depmode 3549 break 3550 fi 3551 fi 3552 done 3553 3554 cd .. 3555 rm -rf conftest.dir 3556else 3557 am_cv_CC_dependencies_compiler_type=none 3558fi 3559 3560fi 3561{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3562$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3563CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3564 3565 if 3566 test "x$enable_dependency_tracking" != xno \ 3567 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3568 am__fastdepCC_TRUE= 3569 am__fastdepCC_FALSE='#' 3570else 3571 am__fastdepCC_TRUE='#' 3572 am__fastdepCC_FALSE= 3573fi 3574 3575 3576# Find a good install program. We prefer a C program (faster), 3577# so one script is as good as another. But avoid the broken or 3578# incompatible versions: 3579# SysV /etc/install, /usr/sbin/install 3580# SunOS /usr/etc/install 3581# IRIX /sbin/install 3582# AIX /bin/install 3583# AmigaOS /C/install, which installs bootblocks on floppy discs 3584# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3585# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3586# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3587# OS/2's system install, which has a completely different semantic 3588# ./install, which can be erroneously created by make from ./install.sh. 3589# Reject install programs that cannot install multiple files. 3590{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3591$as_echo_n "checking for a BSD-compatible install... " >&6; } 3592if test -z "$INSTALL"; then 3593if test "${ac_cv_path_install+set}" = set; then 3594 $as_echo_n "(cached) " >&6 3595else 3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3597for as_dir in $PATH 3598do 3599 IFS=$as_save_IFS 3600 test -z "$as_dir" && as_dir=. 3601 # Account for people who put trailing slashes in PATH elements. 3602case $as_dir/ in 3603 ./ | .// | /cC/* | \ 3604 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3605 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3606 /usr/ucb/* ) ;; 3607 *) 3608 # OSF1 and SCO ODT 3.0 have their own names for install. 3609 # Don't use installbsd from OSF since it installs stuff as root 3610 # by default. 3611 for ac_prog in ginstall scoinst install; do 3612 for ac_exec_ext in '' $ac_executable_extensions; do 3613 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3614 if test $ac_prog = install && 3615 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3616 # AIX install. It has an incompatible calling convention. 3617 : 3618 elif test $ac_prog = install && 3619 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3620 # program-specific install script used by HP pwplus--don't use. 3621 : 3622 else 3623 rm -rf conftest.one conftest.two conftest.dir 3624 echo one > conftest.one 3625 echo two > conftest.two 3626 mkdir conftest.dir 3627 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3628 test -s conftest.one && test -s conftest.two && 3629 test -s conftest.dir/conftest.one && 3630 test -s conftest.dir/conftest.two 3631 then 3632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3633 break 3 3634 fi 3635 fi 3636 fi 3637 done 3638 done 3639 ;; 3640esac 3641 3642done 3643IFS=$as_save_IFS 3644 3645rm -rf conftest.one conftest.two conftest.dir 3646 3647fi 3648 if test "${ac_cv_path_install+set}" = set; then 3649 INSTALL=$ac_cv_path_install 3650 else 3651 # As a last resort, use the slow shell script. Don't cache a 3652 # value for INSTALL within a source directory, because that will 3653 # break other packages using the cache if that directory is 3654 # removed, or if the value is a relative name. 3655 INSTALL=$ac_install_sh 3656 fi 3657fi 3658{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 3659$as_echo "$INSTALL" >&6; } 3660 3661# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3662# It thinks the first close brace ends the variable substitution. 3663test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3664 3665test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3666 3667test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3668 3669 3670 3671{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5 3672$as_echo_n "checking return type of signal handlers... " >&6; } 3673if test "${ac_cv_type_signal+set}" = set; then 3674 $as_echo_n "(cached) " >&6 3675else 3676 cat >conftest.$ac_ext <<_ACEOF 3677/* confdefs.h. */ 3678_ACEOF 3679cat confdefs.h >>conftest.$ac_ext 3680cat >>conftest.$ac_ext <<_ACEOF 3681/* end confdefs.h. */ 3682#include <sys/types.h> 3683#include <signal.h> 3684 3685int 3686main () 3687{ 3688return *(signal (0, 0)) (0) == 1; 3689 ; 3690 return 0; 3691} 3692_ACEOF 3693rm -f conftest.$ac_objext 3694if { (ac_try="$ac_compile" 3695case "(($ac_try" in 3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3697 *) ac_try_echo=$ac_try;; 3698esac 3699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3700$as_echo "$ac_try_echo") >&5 3701 (eval "$ac_compile") 2>conftest.er1 3702 ac_status=$? 3703 grep -v '^ *+' conftest.er1 >conftest.err 3704 rm -f conftest.er1 3705 cat conftest.err >&5 3706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3707 (exit $ac_status); } && { 3708 test -z "$ac_c_werror_flag" || 3709 test ! -s conftest.err 3710 } && test -s conftest.$ac_objext; then 3711 ac_cv_type_signal=int 3712else 3713 $as_echo "$as_me: failed program was:" >&5 3714sed 's/^/| /' conftest.$ac_ext >&5 3715 3716 ac_cv_type_signal=void 3717fi 3718 3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3720fi 3721{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 3722$as_echo "$ac_cv_type_signal" >&6; } 3723 3724cat >>confdefs.h <<_ACEOF 3725#define RETSIGTYPE $ac_cv_type_signal 3726_ACEOF 3727 3728 3729 3730ac_ext=c 3731ac_cpp='$CPP $CPPFLAGS' 3732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3734ac_compiler_gnu=$ac_cv_c_compiler_gnu 3735{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3736$as_echo_n "checking how to run the C preprocessor... " >&6; } 3737# On Suns, sometimes $CPP names a directory. 3738if test -n "$CPP" && test -d "$CPP"; then 3739 CPP= 3740fi 3741if test -z "$CPP"; then 3742 if test "${ac_cv_prog_CPP+set}" = set; then 3743 $as_echo_n "(cached) " >&6 3744else 3745 # Double quotes because CPP needs to be expanded 3746 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3747 do 3748 ac_preproc_ok=false 3749for ac_c_preproc_warn_flag in '' yes 3750do 3751 # Use a header file that comes with gcc, so configuring glibc 3752 # with a fresh cross-compiler works. 3753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3754 # <limits.h> exists even on freestanding compilers. 3755 # On the NeXT, cc -E runs the code through the compiler's parser, 3756 # not just through cpp. "Syntax error" is here to catch this case. 3757 cat >conftest.$ac_ext <<_ACEOF 3758/* confdefs.h. */ 3759_ACEOF 3760cat confdefs.h >>conftest.$ac_ext 3761cat >>conftest.$ac_ext <<_ACEOF 3762/* end confdefs.h. */ 3763#ifdef __STDC__ 3764# include <limits.h> 3765#else 3766# include <assert.h> 3767#endif 3768 Syntax error 3769_ACEOF 3770if { (ac_try="$ac_cpp conftest.$ac_ext" 3771case "(($ac_try" in 3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3773 *) ac_try_echo=$ac_try;; 3774esac 3775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3776$as_echo "$ac_try_echo") >&5 3777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3778 ac_status=$? 3779 grep -v '^ *+' conftest.er1 >conftest.err 3780 rm -f conftest.er1 3781 cat conftest.err >&5 3782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3783 (exit $ac_status); } >/dev/null && { 3784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3785 test ! -s conftest.err 3786 }; then 3787 : 3788else 3789 $as_echo "$as_me: failed program was:" >&5 3790sed 's/^/| /' conftest.$ac_ext >&5 3791 3792 # Broken: fails on valid input. 3793continue 3794fi 3795 3796rm -f conftest.err conftest.$ac_ext 3797 3798 # OK, works on sane cases. Now check whether nonexistent headers 3799 # can be detected and how. 3800 cat >conftest.$ac_ext <<_ACEOF 3801/* confdefs.h. */ 3802_ACEOF 3803cat confdefs.h >>conftest.$ac_ext 3804cat >>conftest.$ac_ext <<_ACEOF 3805/* end confdefs.h. */ 3806#include <ac_nonexistent.h> 3807_ACEOF 3808if { (ac_try="$ac_cpp conftest.$ac_ext" 3809case "(($ac_try" in 3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3811 *) ac_try_echo=$ac_try;; 3812esac 3813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3814$as_echo "$ac_try_echo") >&5 3815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3816 ac_status=$? 3817 grep -v '^ *+' conftest.er1 >conftest.err 3818 rm -f conftest.er1 3819 cat conftest.err >&5 3820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3821 (exit $ac_status); } >/dev/null && { 3822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3823 test ! -s conftest.err 3824 }; then 3825 # Broken: success on invalid input. 3826continue 3827else 3828 $as_echo "$as_me: failed program was:" >&5 3829sed 's/^/| /' conftest.$ac_ext >&5 3830 3831 # Passes both tests. 3832ac_preproc_ok=: 3833break 3834fi 3835 3836rm -f conftest.err conftest.$ac_ext 3837 3838done 3839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3840rm -f conftest.err conftest.$ac_ext 3841if $ac_preproc_ok; then 3842 break 3843fi 3844 3845 done 3846 ac_cv_prog_CPP=$CPP 3847 3848fi 3849 CPP=$ac_cv_prog_CPP 3850else 3851 ac_cv_prog_CPP=$CPP 3852fi 3853{ $as_echo "$as_me:$LINENO: result: $CPP" >&5 3854$as_echo "$CPP" >&6; } 3855ac_preproc_ok=false 3856for ac_c_preproc_warn_flag in '' yes 3857do 3858 # Use a header file that comes with gcc, so configuring glibc 3859 # with a fresh cross-compiler works. 3860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3861 # <limits.h> exists even on freestanding compilers. 3862 # On the NeXT, cc -E runs the code through the compiler's parser, 3863 # not just through cpp. "Syntax error" is here to catch this case. 3864 cat >conftest.$ac_ext <<_ACEOF 3865/* confdefs.h. */ 3866_ACEOF 3867cat confdefs.h >>conftest.$ac_ext 3868cat >>conftest.$ac_ext <<_ACEOF 3869/* end confdefs.h. */ 3870#ifdef __STDC__ 3871# include <limits.h> 3872#else 3873# include <assert.h> 3874#endif 3875 Syntax error 3876_ACEOF 3877if { (ac_try="$ac_cpp conftest.$ac_ext" 3878case "(($ac_try" in 3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3880 *) ac_try_echo=$ac_try;; 3881esac 3882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3883$as_echo "$ac_try_echo") >&5 3884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3885 ac_status=$? 3886 grep -v '^ *+' conftest.er1 >conftest.err 3887 rm -f conftest.er1 3888 cat conftest.err >&5 3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3890 (exit $ac_status); } >/dev/null && { 3891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3892 test ! -s conftest.err 3893 }; then 3894 : 3895else 3896 $as_echo "$as_me: failed program was:" >&5 3897sed 's/^/| /' conftest.$ac_ext >&5 3898 3899 # Broken: fails on valid input. 3900continue 3901fi 3902 3903rm -f conftest.err conftest.$ac_ext 3904 3905 # OK, works on sane cases. Now check whether nonexistent headers 3906 # can be detected and how. 3907 cat >conftest.$ac_ext <<_ACEOF 3908/* confdefs.h. */ 3909_ACEOF 3910cat confdefs.h >>conftest.$ac_ext 3911cat >>conftest.$ac_ext <<_ACEOF 3912/* end confdefs.h. */ 3913#include <ac_nonexistent.h> 3914_ACEOF 3915if { (ac_try="$ac_cpp conftest.$ac_ext" 3916case "(($ac_try" in 3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3918 *) ac_try_echo=$ac_try;; 3919esac 3920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3921$as_echo "$ac_try_echo") >&5 3922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3923 ac_status=$? 3924 grep -v '^ *+' conftest.er1 >conftest.err 3925 rm -f conftest.er1 3926 cat conftest.err >&5 3927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3928 (exit $ac_status); } >/dev/null && { 3929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3930 test ! -s conftest.err 3931 }; then 3932 # Broken: success on invalid input. 3933continue 3934else 3935 $as_echo "$as_me: failed program was:" >&5 3936sed 's/^/| /' conftest.$ac_ext >&5 3937 3938 # Passes both tests. 3939ac_preproc_ok=: 3940break 3941fi 3942 3943rm -f conftest.err conftest.$ac_ext 3944 3945done 3946# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3947rm -f conftest.err conftest.$ac_ext 3948if $ac_preproc_ok; then 3949 : 3950else 3951 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 3952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3953{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3954See \`config.log' for more details." >&5 3955$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3956See \`config.log' for more details." >&2;} 3957 { (exit 1); exit 1; }; }; } 3958fi 3959 3960ac_ext=c 3961ac_cpp='$CPP $CPPFLAGS' 3962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3964ac_compiler_gnu=$ac_cv_c_compiler_gnu 3965 3966 3967{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 3968$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3969if test "${ac_cv_path_GREP+set}" = set; then 3970 $as_echo_n "(cached) " >&6 3971else 3972 if test -z "$GREP"; then 3973 ac_path_GREP_found=false 3974 # Loop through the user's path and test for each of PROGNAME-LIST 3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3977do 3978 IFS=$as_save_IFS 3979 test -z "$as_dir" && as_dir=. 3980 for ac_prog in grep ggrep; do 3981 for ac_exec_ext in '' $ac_executable_extensions; do 3982 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3983 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3984# Check for GNU ac_path_GREP and select it if it is found. 3985 # Check for GNU $ac_path_GREP 3986case `"$ac_path_GREP" --version 2>&1` in 3987*GNU*) 3988 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3989*) 3990 ac_count=0 3991 $as_echo_n 0123456789 >"conftest.in" 3992 while : 3993 do 3994 cat "conftest.in" "conftest.in" >"conftest.tmp" 3995 mv "conftest.tmp" "conftest.in" 3996 cp "conftest.in" "conftest.nl" 3997 $as_echo 'GREP' >> "conftest.nl" 3998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4000 ac_count=`expr $ac_count + 1` 4001 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4002 # Best one so far, save it but keep looking for a better one 4003 ac_cv_path_GREP="$ac_path_GREP" 4004 ac_path_GREP_max=$ac_count 4005 fi 4006 # 10*(2^10) chars as input seems more than enough 4007 test $ac_count -gt 10 && break 4008 done 4009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4010esac 4011 4012 $ac_path_GREP_found && break 3 4013 done 4014 done 4015done 4016IFS=$as_save_IFS 4017 if test -z "$ac_cv_path_GREP"; then 4018 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4019$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4020 { (exit 1); exit 1; }; } 4021 fi 4022else 4023 ac_cv_path_GREP=$GREP 4024fi 4025 4026fi 4027{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4028$as_echo "$ac_cv_path_GREP" >&6; } 4029 GREP="$ac_cv_path_GREP" 4030 4031 4032{ $as_echo "$as_me:$LINENO: checking for egrep" >&5 4033$as_echo_n "checking for egrep... " >&6; } 4034if test "${ac_cv_path_EGREP+set}" = set; then 4035 $as_echo_n "(cached) " >&6 4036else 4037 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4038 then ac_cv_path_EGREP="$GREP -E" 4039 else 4040 if test -z "$EGREP"; then 4041 ac_path_EGREP_found=false 4042 # Loop through the user's path and test for each of PROGNAME-LIST 4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4045do 4046 IFS=$as_save_IFS 4047 test -z "$as_dir" && as_dir=. 4048 for ac_prog in egrep; do 4049 for ac_exec_ext in '' $ac_executable_extensions; do 4050 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4051 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4052# Check for GNU ac_path_EGREP and select it if it is found. 4053 # Check for GNU $ac_path_EGREP 4054case `"$ac_path_EGREP" --version 2>&1` in 4055*GNU*) 4056 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4057*) 4058 ac_count=0 4059 $as_echo_n 0123456789 >"conftest.in" 4060 while : 4061 do 4062 cat "conftest.in" "conftest.in" >"conftest.tmp" 4063 mv "conftest.tmp" "conftest.in" 4064 cp "conftest.in" "conftest.nl" 4065 $as_echo 'EGREP' >> "conftest.nl" 4066 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4068 ac_count=`expr $ac_count + 1` 4069 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4070 # Best one so far, save it but keep looking for a better one 4071 ac_cv_path_EGREP="$ac_path_EGREP" 4072 ac_path_EGREP_max=$ac_count 4073 fi 4074 # 10*(2^10) chars as input seems more than enough 4075 test $ac_count -gt 10 && break 4076 done 4077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4078esac 4079 4080 $ac_path_EGREP_found && break 3 4081 done 4082 done 4083done 4084IFS=$as_save_IFS 4085 if test -z "$ac_cv_path_EGREP"; then 4086 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4087$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4088 { (exit 1); exit 1; }; } 4089 fi 4090else 4091 ac_cv_path_EGREP=$EGREP 4092fi 4093 4094 fi 4095fi 4096{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4097$as_echo "$ac_cv_path_EGREP" >&6; } 4098 EGREP="$ac_cv_path_EGREP" 4099 4100 4101{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4102$as_echo_n "checking for ANSI C header files... " >&6; } 4103if test "${ac_cv_header_stdc+set}" = set; then 4104 $as_echo_n "(cached) " >&6 4105else 4106 cat >conftest.$ac_ext <<_ACEOF 4107/* confdefs.h. */ 4108_ACEOF 4109cat confdefs.h >>conftest.$ac_ext 4110cat >>conftest.$ac_ext <<_ACEOF 4111/* end confdefs.h. */ 4112#include <stdlib.h> 4113#include <stdarg.h> 4114#include <string.h> 4115#include <float.h> 4116 4117int 4118main () 4119{ 4120 4121 ; 4122 return 0; 4123} 4124_ACEOF 4125rm -f conftest.$ac_objext 4126if { (ac_try="$ac_compile" 4127case "(($ac_try" in 4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4129 *) ac_try_echo=$ac_try;; 4130esac 4131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4132$as_echo "$ac_try_echo") >&5 4133 (eval "$ac_compile") 2>conftest.er1 4134 ac_status=$? 4135 grep -v '^ *+' conftest.er1 >conftest.err 4136 rm -f conftest.er1 4137 cat conftest.err >&5 4138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4139 (exit $ac_status); } && { 4140 test -z "$ac_c_werror_flag" || 4141 test ! -s conftest.err 4142 } && test -s conftest.$ac_objext; then 4143 ac_cv_header_stdc=yes 4144else 4145 $as_echo "$as_me: failed program was:" >&5 4146sed 's/^/| /' conftest.$ac_ext >&5 4147 4148 ac_cv_header_stdc=no 4149fi 4150 4151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4152 4153if test $ac_cv_header_stdc = yes; then 4154 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4155 cat >conftest.$ac_ext <<_ACEOF 4156/* confdefs.h. */ 4157_ACEOF 4158cat confdefs.h >>conftest.$ac_ext 4159cat >>conftest.$ac_ext <<_ACEOF 4160/* end confdefs.h. */ 4161#include <string.h> 4162 4163_ACEOF 4164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4165 $EGREP "memchr" >/dev/null 2>&1; then 4166 : 4167else 4168 ac_cv_header_stdc=no 4169fi 4170rm -f conftest* 4171 4172fi 4173 4174if test $ac_cv_header_stdc = yes; then 4175 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4176 cat >conftest.$ac_ext <<_ACEOF 4177/* confdefs.h. */ 4178_ACEOF 4179cat confdefs.h >>conftest.$ac_ext 4180cat >>conftest.$ac_ext <<_ACEOF 4181/* end confdefs.h. */ 4182#include <stdlib.h> 4183 4184_ACEOF 4185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4186 $EGREP "free" >/dev/null 2>&1; then 4187 : 4188else 4189 ac_cv_header_stdc=no 4190fi 4191rm -f conftest* 4192 4193fi 4194 4195if test $ac_cv_header_stdc = yes; then 4196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4197 if test "$cross_compiling" = yes; then 4198 : 4199else 4200 cat >conftest.$ac_ext <<_ACEOF 4201/* confdefs.h. */ 4202_ACEOF 4203cat confdefs.h >>conftest.$ac_ext 4204cat >>conftest.$ac_ext <<_ACEOF 4205/* end confdefs.h. */ 4206#include <ctype.h> 4207#include <stdlib.h> 4208#if ((' ' & 0x0FF) == 0x020) 4209# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4210# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4211#else 4212# define ISLOWER(c) \ 4213 (('a' <= (c) && (c) <= 'i') \ 4214 || ('j' <= (c) && (c) <= 'r') \ 4215 || ('s' <= (c) && (c) <= 'z')) 4216# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4217#endif 4218 4219#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4220int 4221main () 4222{ 4223 int i; 4224 for (i = 0; i < 256; i++) 4225 if (XOR (islower (i), ISLOWER (i)) 4226 || toupper (i) != TOUPPER (i)) 4227 return 2; 4228 return 0; 4229} 4230_ACEOF 4231rm -f conftest$ac_exeext 4232if { (ac_try="$ac_link" 4233case "(($ac_try" in 4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4235 *) ac_try_echo=$ac_try;; 4236esac 4237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4238$as_echo "$ac_try_echo") >&5 4239 (eval "$ac_link") 2>&5 4240 ac_status=$? 4241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4243 { (case "(($ac_try" in 4244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4245 *) ac_try_echo=$ac_try;; 4246esac 4247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4248$as_echo "$ac_try_echo") >&5 4249 (eval "$ac_try") 2>&5 4250 ac_status=$? 4251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4252 (exit $ac_status); }; }; then 4253 : 4254else 4255 $as_echo "$as_me: program exited with status $ac_status" >&5 4256$as_echo "$as_me: failed program was:" >&5 4257sed 's/^/| /' conftest.$ac_ext >&5 4258 4259( exit $ac_status ) 4260ac_cv_header_stdc=no 4261fi 4262rm -rf conftest.dSYM 4263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4264fi 4265 4266 4267fi 4268fi 4269{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4270$as_echo "$ac_cv_header_stdc" >&6; } 4271if test $ac_cv_header_stdc = yes; then 4272 4273cat >>confdefs.h <<\_ACEOF 4274#define STDC_HEADERS 1 4275_ACEOF 4276 4277fi 4278 4279# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4290 inttypes.h stdint.h unistd.h 4291do 4292as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4293{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4294$as_echo_n "checking for $ac_header... " >&6; } 4295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4296 $as_echo_n "(cached) " >&6 4297else 4298 cat >conftest.$ac_ext <<_ACEOF 4299/* confdefs.h. */ 4300_ACEOF 4301cat confdefs.h >>conftest.$ac_ext 4302cat >>conftest.$ac_ext <<_ACEOF 4303/* end confdefs.h. */ 4304$ac_includes_default 4305 4306#include <$ac_header> 4307_ACEOF 4308rm -f conftest.$ac_objext 4309if { (ac_try="$ac_compile" 4310case "(($ac_try" in 4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4312 *) ac_try_echo=$ac_try;; 4313esac 4314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4315$as_echo "$ac_try_echo") >&5 4316 (eval "$ac_compile") 2>conftest.er1 4317 ac_status=$? 4318 grep -v '^ *+' conftest.er1 >conftest.err 4319 rm -f conftest.er1 4320 cat conftest.err >&5 4321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322 (exit $ac_status); } && { 4323 test -z "$ac_c_werror_flag" || 4324 test ! -s conftest.err 4325 } && test -s conftest.$ac_objext; then 4326 eval "$as_ac_Header=yes" 4327else 4328 $as_echo "$as_me: failed program was:" >&5 4329sed 's/^/| /' conftest.$ac_ext >&5 4330 4331 eval "$as_ac_Header=no" 4332fi 4333 4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4335fi 4336ac_res=`eval 'as_val=${'$as_ac_Header'} 4337 $as_echo "$as_val"'` 4338 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 4339$as_echo "$ac_res" >&6; } 4340as_val=`eval 'as_val=${'$as_ac_Header'} 4341 $as_echo "$as_val"'` 4342 if test "x$as_val" = x""yes; then 4343 cat >>confdefs.h <<_ACEOF 4344#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4345_ACEOF 4346 4347fi 4348 4349done 4350 4351 4352 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5 4353$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4354if test "${ac_cv_prog_cc_c99+set}" = set; then 4355 $as_echo_n "(cached) " >&6 4356else 4357 ac_cv_prog_cc_c99=no 4358ac_save_CC=$CC 4359cat >conftest.$ac_ext <<_ACEOF 4360/* confdefs.h. */ 4361_ACEOF 4362cat confdefs.h >>conftest.$ac_ext 4363cat >>conftest.$ac_ext <<_ACEOF 4364/* end confdefs.h. */ 4365#include <stdarg.h> 4366#include <stdbool.h> 4367#include <stdlib.h> 4368#include <wchar.h> 4369#include <stdio.h> 4370 4371// Check varargs macros. These examples are taken from C99 6.10.3.5. 4372#define debug(...) fprintf (stderr, __VA_ARGS__) 4373#define showlist(...) puts (#__VA_ARGS__) 4374#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4375static void 4376test_varargs_macros (void) 4377{ 4378 int x = 1234; 4379 int y = 5678; 4380 debug ("Flag"); 4381 debug ("X = %d\n", x); 4382 showlist (The first, second, and third items.); 4383 report (x>y, "x is %d but y is %d", x, y); 4384} 4385 4386// Check long long types. 4387#define BIG64 18446744073709551615ull 4388#define BIG32 4294967295ul 4389#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4390#if !BIG_OK 4391 your preprocessor is broken; 4392#endif 4393#if BIG_OK 4394#else 4395 your preprocessor is broken; 4396#endif 4397static long long int bignum = -9223372036854775807LL; 4398static unsigned long long int ubignum = BIG64; 4399 4400struct incomplete_array 4401{ 4402 int datasize; 4403 double data[]; 4404}; 4405 4406struct named_init { 4407 int number; 4408 const wchar_t *name; 4409 double average; 4410}; 4411 4412typedef const char *ccp; 4413 4414static inline int 4415test_restrict (ccp restrict text) 4416{ 4417 // See if C++-style comments work. 4418 // Iterate through items via the restricted pointer. 4419 // Also check for declarations in for loops. 4420 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4421 continue; 4422 return 0; 4423} 4424 4425// Check varargs and va_copy. 4426static void 4427test_varargs (const char *format, ...) 4428{ 4429 va_list args; 4430 va_start (args, format); 4431 va_list args_copy; 4432 va_copy (args_copy, args); 4433 4434 const char *str; 4435 int number; 4436 float fnumber; 4437 4438 while (*format) 4439 { 4440 switch (*format++) 4441 { 4442 case 's': // string 4443 str = va_arg (args_copy, const char *); 4444 break; 4445 case 'd': // int 4446 number = va_arg (args_copy, int); 4447 break; 4448 case 'f': // float 4449 fnumber = va_arg (args_copy, double); 4450 break; 4451 default: 4452 break; 4453 } 4454 } 4455 va_end (args_copy); 4456 va_end (args); 4457} 4458 4459int 4460main () 4461{ 4462 4463 // Check bool. 4464 _Bool success = false; 4465 4466 // Check restrict. 4467 if (test_restrict ("String literal") == 0) 4468 success = true; 4469 char *restrict newvar = "Another string"; 4470 4471 // Check varargs. 4472 test_varargs ("s, d' f .", "string", 65, 34.234); 4473 test_varargs_macros (); 4474 4475 // Check flexible array members. 4476 struct incomplete_array *ia = 4477 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4478 ia->datasize = 10; 4479 for (int i = 0; i < ia->datasize; ++i) 4480 ia->data[i] = i * 1.234; 4481 4482 // Check named initializers. 4483 struct named_init ni = { 4484 .number = 34, 4485 .name = L"Test wide string", 4486 .average = 543.34343, 4487 }; 4488 4489 ni.number = 58; 4490 4491 int dynamic_array[ni.number]; 4492 dynamic_array[ni.number - 1] = 543; 4493 4494 // work around unused variable warnings 4495 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4496 || dynamic_array[ni.number - 1] != 543); 4497 4498 ; 4499 return 0; 4500} 4501_ACEOF 4502for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 4503do 4504 CC="$ac_save_CC $ac_arg" 4505 rm -f conftest.$ac_objext 4506if { (ac_try="$ac_compile" 4507case "(($ac_try" in 4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4509 *) ac_try_echo=$ac_try;; 4510esac 4511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4512$as_echo "$ac_try_echo") >&5 4513 (eval "$ac_compile") 2>conftest.er1 4514 ac_status=$? 4515 grep -v '^ *+' conftest.er1 >conftest.err 4516 rm -f conftest.er1 4517 cat conftest.err >&5 4518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4519 (exit $ac_status); } && { 4520 test -z "$ac_c_werror_flag" || 4521 test ! -s conftest.err 4522 } && test -s conftest.$ac_objext; then 4523 ac_cv_prog_cc_c99=$ac_arg 4524else 4525 $as_echo "$as_me: failed program was:" >&5 4526sed 's/^/| /' conftest.$ac_ext >&5 4527 4528 4529fi 4530 4531rm -f core conftest.err conftest.$ac_objext 4532 test "x$ac_cv_prog_cc_c99" != "xno" && break 4533done 4534rm -f conftest.$ac_ext 4535CC=$ac_save_CC 4536 4537fi 4538# AC_CACHE_VAL 4539case "x$ac_cv_prog_cc_c99" in 4540 x) 4541 { $as_echo "$as_me:$LINENO: result: none needed" >&5 4542$as_echo "none needed" >&6; } ;; 4543 xno) 4544 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4545$as_echo "unsupported" >&6; } ;; 4546 *) 4547 CC="$CC $ac_cv_prog_cc_c99" 4548 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5 4549$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4550esac 4551 4552 4553 4554# Make sure we can run config.sub. 4555$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4556 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 4557$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 4558 { (exit 1); exit 1; }; } 4559 4560{ $as_echo "$as_me:$LINENO: checking build system type" >&5 4561$as_echo_n "checking build system type... " >&6; } 4562if test "${ac_cv_build+set}" = set; then 4563 $as_echo_n "(cached) " >&6 4564else 4565 ac_build_alias=$build_alias 4566test "x$ac_build_alias" = x && 4567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4568test "x$ac_build_alias" = x && 4569 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 4570$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 4571 { (exit 1); exit 1; }; } 4572ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4573 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 4574$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 4575 { (exit 1); exit 1; }; } 4576 4577fi 4578{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 4579$as_echo "$ac_cv_build" >&6; } 4580case $ac_cv_build in 4581*-*-*) ;; 4582*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 4583$as_echo "$as_me: error: invalid value of canonical build" >&2;} 4584 { (exit 1); exit 1; }; };; 4585esac 4586build=$ac_cv_build 4587ac_save_IFS=$IFS; IFS='-' 4588set x $ac_cv_build 4589shift 4590build_cpu=$1 4591build_vendor=$2 4592shift; shift 4593# Remember, the first character of IFS is used to create $*, 4594# except with old shells: 4595build_os=$* 4596IFS=$ac_save_IFS 4597case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4598 4599 4600{ $as_echo "$as_me:$LINENO: checking host system type" >&5 4601$as_echo_n "checking host system type... " >&6; } 4602if test "${ac_cv_host+set}" = set; then 4603 $as_echo_n "(cached) " >&6 4604else 4605 if test "x$host_alias" = x; then 4606 ac_cv_host=$ac_cv_build 4607else 4608 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4609 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 4610$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 4611 { (exit 1); exit 1; }; } 4612fi 4613 4614fi 4615{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 4616$as_echo "$ac_cv_host" >&6; } 4617case $ac_cv_host in 4618*-*-*) ;; 4619*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 4620$as_echo "$as_me: error: invalid value of canonical host" >&2;} 4621 { (exit 1); exit 1; }; };; 4622esac 4623host=$ac_cv_host 4624ac_save_IFS=$IFS; IFS='-' 4625set x $ac_cv_host 4626shift 4627host_cpu=$1 4628host_vendor=$2 4629shift; shift 4630# Remember, the first character of IFS is used to create $*, 4631# except with old shells: 4632host_os=$* 4633IFS=$ac_save_IFS 4634case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4635 4636 4637 4638 4639 4640if test "x$GCC" = xyes ; then 4641 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4642-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4643-Wbad-function-cast" 4644 case `$CC -dumpversion` in 4645 3.4.* | 4.*) 4646 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4647 ;; 4648 esac 4649else 4650 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4651$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4652if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4653 $as_echo_n "(cached) " >&6 4654else 4655 cat >conftest.$ac_ext <<_ACEOF 4656/* confdefs.h. */ 4657_ACEOF 4658cat confdefs.h >>conftest.$ac_ext 4659cat >>conftest.$ac_ext <<_ACEOF 4660/* end confdefs.h. */ 4661$ac_includes_default 4662int 4663main () 4664{ 4665#ifndef __SUNPRO_C 4666 (void) __SUNPRO_C; 4667#endif 4668 4669 ; 4670 return 0; 4671} 4672_ACEOF 4673rm -f conftest.$ac_objext 4674if { (ac_try="$ac_compile" 4675case "(($ac_try" in 4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4677 *) ac_try_echo=$ac_try;; 4678esac 4679eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4680$as_echo "$ac_try_echo") >&5 4681 (eval "$ac_compile") 2>conftest.er1 4682 ac_status=$? 4683 grep -v '^ *+' conftest.er1 >conftest.err 4684 rm -f conftest.er1 4685 cat conftest.err >&5 4686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4687 (exit $ac_status); } && { 4688 test -z "$ac_c_werror_flag" || 4689 test ! -s conftest.err 4690 } && test -s conftest.$ac_objext; then 4691 ac_cv_have_decl___SUNPRO_C=yes 4692else 4693 $as_echo "$as_me: failed program was:" >&5 4694sed 's/^/| /' conftest.$ac_ext >&5 4695 4696 ac_cv_have_decl___SUNPRO_C=no 4697fi 4698 4699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4700fi 4701{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4702$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4703if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4704 SUNCC="yes" 4705else 4706 SUNCC="no" 4707fi 4708 4709 if test "x$SUNCC" = "xyes"; then 4710 CWARNFLAGS="-v" 4711 fi 4712fi 4713 4714# Check whether --enable-silent-rules was given. 4715if test "${enable_silent_rules+set}" = set; then 4716 enableval=$enable_silent_rules; 4717fi 4718 4719case $enable_silent_rules in 4720yes) AM_DEFAULT_VERBOSITY=0;; 4721no) AM_DEFAULT_VERBOSITY=1;; 4722*) AM_DEFAULT_VERBOSITY=0;; 4723esac 4724AM_BACKSLASH='\' 4725 4726 4727 4728 4729 4730 4731 4732# Check whether --enable-strict-compilation was given. 4733if test "${enable_strict_compilation+set}" = set; then 4734 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4735else 4736 STRICT_COMPILE=no 4737fi 4738 4739if test "x$STRICT_COMPILE" = "xyes"; then 4740 { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5 4741$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; } 4742if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then 4743 $as_echo_n "(cached) " >&6 4744else 4745 cat >conftest.$ac_ext <<_ACEOF 4746/* confdefs.h. */ 4747_ACEOF 4748cat confdefs.h >>conftest.$ac_ext 4749cat >>conftest.$ac_ext <<_ACEOF 4750/* end confdefs.h. */ 4751$ac_includes_default 4752int 4753main () 4754{ 4755#ifndef __SUNPRO_C 4756 (void) __SUNPRO_C; 4757#endif 4758 4759 ; 4760 return 0; 4761} 4762_ACEOF 4763rm -f conftest.$ac_objext 4764if { (ac_try="$ac_compile" 4765case "(($ac_try" in 4766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4767 *) ac_try_echo=$ac_try;; 4768esac 4769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4770$as_echo "$ac_try_echo") >&5 4771 (eval "$ac_compile") 2>conftest.er1 4772 ac_status=$? 4773 grep -v '^ *+' conftest.er1 >conftest.err 4774 rm -f conftest.er1 4775 cat conftest.err >&5 4776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4777 (exit $ac_status); } && { 4778 test -z "$ac_c_werror_flag" || 4779 test ! -s conftest.err 4780 } && test -s conftest.$ac_objext; then 4781 ac_cv_have_decl___SUNPRO_C=yes 4782else 4783 $as_echo "$as_me: failed program was:" >&5 4784sed 's/^/| /' conftest.$ac_ext >&5 4785 4786 ac_cv_have_decl___SUNPRO_C=no 4787fi 4788 4789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4790fi 4791{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5 4792$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; } 4793if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then 4794 SUNCC="yes" 4795else 4796 SUNCC="no" 4797fi 4798 4799 { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5 4800$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; } 4801if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then 4802 $as_echo_n "(cached) " >&6 4803else 4804 cat >conftest.$ac_ext <<_ACEOF 4805/* confdefs.h. */ 4806_ACEOF 4807cat confdefs.h >>conftest.$ac_ext 4808cat >>conftest.$ac_ext <<_ACEOF 4809/* end confdefs.h. */ 4810$ac_includes_default 4811int 4812main () 4813{ 4814#ifndef __INTEL_COMPILER 4815 (void) __INTEL_COMPILER; 4816#endif 4817 4818 ; 4819 return 0; 4820} 4821_ACEOF 4822rm -f conftest.$ac_objext 4823if { (ac_try="$ac_compile" 4824case "(($ac_try" in 4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4826 *) ac_try_echo=$ac_try;; 4827esac 4828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4829$as_echo "$ac_try_echo") >&5 4830 (eval "$ac_compile") 2>conftest.er1 4831 ac_status=$? 4832 grep -v '^ *+' conftest.er1 >conftest.err 4833 rm -f conftest.er1 4834 cat conftest.err >&5 4835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4836 (exit $ac_status); } && { 4837 test -z "$ac_c_werror_flag" || 4838 test ! -s conftest.err 4839 } && test -s conftest.$ac_objext; then 4840 ac_cv_have_decl___INTEL_COMPILER=yes 4841else 4842 $as_echo "$as_me: failed program was:" >&5 4843sed 's/^/| /' conftest.$ac_ext >&5 4844 4845 ac_cv_have_decl___INTEL_COMPILER=no 4846fi 4847 4848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4849fi 4850{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5 4851$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; } 4852if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then 4853 INTELCC="yes" 4854else 4855 INTELCC="no" 4856fi 4857 4858 if test "x$GCC" = xyes ; then 4859 STRICT_CFLAGS="-pedantic -Werror" 4860 elif test "x$SUNCC" = "xyes"; then 4861 STRICT_CFLAGS="-errwarn" 4862 elif test "x$INTELCC" = "xyes"; then 4863 STRICT_CFLAGS="-Werror" 4864 fi 4865fi 4866CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4867 4868 4869 4870 4871# Check whether --with-release-version was given. 4872if test "${with_release_version+set}" = set; then 4873 withval=$with_release_version; RELEASE_VERSION="$withval" 4874else 4875 RELEASE_VERSION="" 4876fi 4877 4878 if test "x$RELEASE_VERSION" != "x"; then 4879 PACKAGE="$PACKAGE-$RELEASE_VERSION" 4880 PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 4881 { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 4882$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;} 4883 fi 4884 4885cat >>confdefs.h <<_ACEOF 4886#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4887_ACEOF 4888 4889 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4890 if test "x$PVM" = "x"; then 4891 PVM="0" 4892 fi 4893 4894cat >>confdefs.h <<_ACEOF 4895#define PACKAGE_VERSION_MINOR $PVM 4896_ACEOF 4897 4898 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4899 if test "x$PVP" = "x"; then 4900 PVP="0" 4901 fi 4902 4903cat >>confdefs.h <<_ACEOF 4904#define PACKAGE_VERSION_PATCHLEVEL $PVP 4905_ACEOF 4906 4907 4908 4909CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 4910mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 4911echo 'git directory not found: installing possibly empty changelog.' >&2)" 4912 4913distcleancheck_listfiles='find . -type f ! -name ChangeLog -print' 4914 4915 4916 4917 4918 4919if test x$APP_MAN_SUFFIX = x ; then 4920 APP_MAN_SUFFIX=1 4921fi 4922if test x$APP_MAN_DIR = x ; then 4923 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4924fi 4925 4926if test x$LIB_MAN_SUFFIX = x ; then 4927 LIB_MAN_SUFFIX=3 4928fi 4929if test x$LIB_MAN_DIR = x ; then 4930 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4931fi 4932 4933if test x$FILE_MAN_SUFFIX = x ; then 4934 case $host_os in 4935 solaris*) FILE_MAN_SUFFIX=4 ;; 4936 *) FILE_MAN_SUFFIX=5 ;; 4937 esac 4938fi 4939if test x$FILE_MAN_DIR = x ; then 4940 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4941fi 4942 4943if test x$MISC_MAN_SUFFIX = x ; then 4944 case $host_os in 4945 solaris*) MISC_MAN_SUFFIX=5 ;; 4946 *) MISC_MAN_SUFFIX=7 ;; 4947 esac 4948fi 4949if test x$MISC_MAN_DIR = x ; then 4950 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4951fi 4952 4953if test x$DRIVER_MAN_SUFFIX = x ; then 4954 case $host_os in 4955 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4956 *) DRIVER_MAN_SUFFIX=4 ;; 4957 esac 4958fi 4959if test x$DRIVER_MAN_DIR = x ; then 4960 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4961fi 4962 4963if test x$ADMIN_MAN_SUFFIX = x ; then 4964 case $host_os in 4965 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4966 *) ADMIN_MAN_SUFFIX=8 ;; 4967 esac 4968fi 4969if test x$ADMIN_MAN_DIR = x ; then 4970 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4971fi 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989# Checks for pkg-config packages 4990 4991 4992if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4993 if test -n "$ac_tool_prefix"; then 4994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4995set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4996{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 4997$as_echo_n "checking for $ac_word... " >&6; } 4998if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4999 $as_echo_n "(cached) " >&6 5000else 5001 case $PKG_CONFIG in 5002 [\\/]* | ?:[\\/]*) 5003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5004 ;; 5005 *) 5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5007for as_dir in $PATH 5008do 5009 IFS=$as_save_IFS 5010 test -z "$as_dir" && as_dir=. 5011 for ac_exec_ext in '' $ac_executable_extensions; do 5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5014 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5015 break 2 5016 fi 5017done 5018done 5019IFS=$as_save_IFS 5020 5021 ;; 5022esac 5023fi 5024PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5025if test -n "$PKG_CONFIG"; then 5026 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 5027$as_echo "$PKG_CONFIG" >&6; } 5028else 5029 { $as_echo "$as_me:$LINENO: result: no" >&5 5030$as_echo "no" >&6; } 5031fi 5032 5033 5034fi 5035if test -z "$ac_cv_path_PKG_CONFIG"; then 5036 ac_pt_PKG_CONFIG=$PKG_CONFIG 5037 # Extract the first word of "pkg-config", so it can be a program name with args. 5038set dummy pkg-config; ac_word=$2 5039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5040$as_echo_n "checking for $ac_word... " >&6; } 5041if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 5042 $as_echo_n "(cached) " >&6 5043else 5044 case $ac_pt_PKG_CONFIG in 5045 [\\/]* | ?:[\\/]*) 5046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5047 ;; 5048 *) 5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5050for as_dir in $PATH 5051do 5052 IFS=$as_save_IFS 5053 test -z "$as_dir" && as_dir=. 5054 for ac_exec_ext in '' $ac_executable_extensions; do 5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5058 break 2 5059 fi 5060done 5061done 5062IFS=$as_save_IFS 5063 5064 ;; 5065esac 5066fi 5067ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5068if test -n "$ac_pt_PKG_CONFIG"; then 5069 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 5070$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5071else 5072 { $as_echo "$as_me:$LINENO: result: no" >&5 5073$as_echo "no" >&6; } 5074fi 5075 5076 if test "x$ac_pt_PKG_CONFIG" = x; then 5077 PKG_CONFIG="" 5078 else 5079 case $cross_compiling:$ac_tool_warned in 5080yes:) 5081{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 5082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5083ac_tool_warned=yes ;; 5084esac 5085 PKG_CONFIG=$ac_pt_PKG_CONFIG 5086 fi 5087else 5088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5089fi 5090 5091fi 5092if test -n "$PKG_CONFIG"; then 5093 _pkg_min_version=0.9.0 5094 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 5095$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5097 { $as_echo "$as_me:$LINENO: result: yes" >&5 5098$as_echo "yes" >&6; } 5099 else 5100 { $as_echo "$as_me:$LINENO: result: no" >&5 5101$as_echo "no" >&6; } 5102 PKG_CONFIG="" 5103 fi 5104 5105fi 5106 5107pkg_failed=no 5108{ $as_echo "$as_me:$LINENO: checking for XHOST" >&5 5109$as_echo_n "checking for XHOST... " >&6; } 5110 5111if test -n "$XHOST_CFLAGS"; then 5112 pkg_cv_XHOST_CFLAGS="$XHOST_CFLAGS" 5113 elif test -n "$PKG_CONFIG"; then 5114 if test -n "$PKG_CONFIG" && \ 5115 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xau\"") >&5 5116 ($PKG_CONFIG --exists --print-errors "x11 xmuu xau") 2>&5 5117 ac_status=$? 5118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5119 (exit $ac_status); }; then 5120 pkg_cv_XHOST_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xau" 2>/dev/null` 5121else 5122 pkg_failed=yes 5123fi 5124 else 5125 pkg_failed=untried 5126fi 5127if test -n "$XHOST_LIBS"; then 5128 pkg_cv_XHOST_LIBS="$XHOST_LIBS" 5129 elif test -n "$PKG_CONFIG"; then 5130 if test -n "$PKG_CONFIG" && \ 5131 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xau\"") >&5 5132 ($PKG_CONFIG --exists --print-errors "x11 xmuu xau") 2>&5 5133 ac_status=$? 5134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5135 (exit $ac_status); }; then 5136 pkg_cv_XHOST_LIBS=`$PKG_CONFIG --libs "x11 xmuu xau" 2>/dev/null` 5137else 5138 pkg_failed=yes 5139fi 5140 else 5141 pkg_failed=untried 5142fi 5143 5144 5145 5146if test $pkg_failed = yes; then 5147 5148if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 5149 _pkg_short_errors_supported=yes 5150else 5151 _pkg_short_errors_supported=no 5152fi 5153 if test $_pkg_short_errors_supported = yes; then 5154 XHOST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xmuu xau" 2>&1` 5155 else 5156 XHOST_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xmuu xau" 2>&1` 5157 fi 5158 # Put the nasty error message in config.log where it belongs 5159 echo "$XHOST_PKG_ERRORS" >&5 5160 5161 { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xmuu xau) were not met: 5162 5163$XHOST_PKG_ERRORS 5164 5165Consider adjusting the PKG_CONFIG_PATH environment variable if you 5166installed software in a non-standard prefix. 5167 5168Alternatively, you may set the environment variables XHOST_CFLAGS 5169and XHOST_LIBS to avoid the need to call pkg-config. 5170See the pkg-config man page for more details. 5171" >&5 5172$as_echo "$as_me: error: Package requirements (x11 xmuu xau) were not met: 5173 5174$XHOST_PKG_ERRORS 5175 5176Consider adjusting the PKG_CONFIG_PATH environment variable if you 5177installed software in a non-standard prefix. 5178 5179Alternatively, you may set the environment variables XHOST_CFLAGS 5180and XHOST_LIBS to avoid the need to call pkg-config. 5181See the pkg-config man page for more details. 5182" >&2;} 5183 { (exit 1); exit 1; }; } 5184elif test $pkg_failed = untried; then 5185 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5187{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 5188is in your PATH or set the PKG_CONFIG environment variable to the full 5189path to pkg-config. 5190 5191Alternatively, you may set the environment variables XHOST_CFLAGS 5192and XHOST_LIBS to avoid the need to call pkg-config. 5193See the pkg-config man page for more details. 5194 5195To get pkg-config, see <http://pkg-config.freedesktop.org/>. 5196See \`config.log' for more details." >&5 5197$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 5198is in your PATH or set the PKG_CONFIG environment variable to the full 5199path to pkg-config. 5200 5201Alternatively, you may set the environment variables XHOST_CFLAGS 5202and XHOST_LIBS to avoid the need to call pkg-config. 5203See the pkg-config man page for more details. 5204 5205To get pkg-config, see <http://pkg-config.freedesktop.org/>. 5206See \`config.log' for more details." >&2;} 5207 { (exit 1); exit 1; }; }; } 5208else 5209 XHOST_CFLAGS=$pkg_cv_XHOST_CFLAGS 5210 XHOST_LIBS=$pkg_cv_XHOST_LIBS 5211 { $as_echo "$as_me:$LINENO: result: yes" >&5 5212$as_echo "yes" >&6; } 5213 : 5214fi 5215 5216 5217 5218# Transport selection macro from xtrans.m4 5219 5220 5221 5222 case $host_os in 5223 mingw*) unixdef="no" ;; 5224 *) unixdef="yes" ;; 5225 esac 5226 # Check whether --enable-unix-transport was given. 5227if test "${enable_unix_transport+set}" = set; then 5228 enableval=$enable_unix_transport; UNIXCONN=$enableval 5229else 5230 UNIXCONN=$unixdef 5231fi 5232 5233 { $as_echo "$as_me:$LINENO: checking if Xtrans should support UNIX socket connections" >&5 5234$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; } 5235 if test "$UNIXCONN" = "yes"; then 5236 5237cat >>confdefs.h <<\_ACEOF 5238#define UNIXCONN 1 5239_ACEOF 5240 5241 fi 5242 { $as_echo "$as_me:$LINENO: result: $UNIXCONN" >&5 5243$as_echo "$UNIXCONN" >&6; } 5244 # Check whether --enable-tcp-transport was given. 5245if test "${enable_tcp_transport+set}" = set; then 5246 enableval=$enable_tcp_transport; TCPCONN=$enableval 5247else 5248 TCPCONN=yes 5249fi 5250 5251 { $as_echo "$as_me:$LINENO: checking if Xtrans should support TCP socket connections" >&5 5252$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; } 5253 { $as_echo "$as_me:$LINENO: result: $TCPCONN" >&5 5254$as_echo "$TCPCONN" >&6; } 5255 if test "$TCPCONN" = "yes"; then 5256 5257cat >>confdefs.h <<\_ACEOF 5258#define TCPCONN 1 5259_ACEOF 5260 5261 5262 # SVR4 hides these in libraries other than libc 5263 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5 5264$as_echo_n "checking for library containing socket... " >&6; } 5265if test "${ac_cv_search_socket+set}" = set; then 5266 $as_echo_n "(cached) " >&6 5267else 5268 ac_func_search_save_LIBS=$LIBS 5269cat >conftest.$ac_ext <<_ACEOF 5270/* confdefs.h. */ 5271_ACEOF 5272cat confdefs.h >>conftest.$ac_ext 5273cat >>conftest.$ac_ext <<_ACEOF 5274/* end confdefs.h. */ 5275 5276/* Override any GCC internal prototype to avoid an error. 5277 Use char because int might match the return type of a GCC 5278 builtin and then its argument prototype would still apply. */ 5279#ifdef __cplusplus 5280extern "C" 5281#endif 5282char socket (); 5283int 5284main () 5285{ 5286return socket (); 5287 ; 5288 return 0; 5289} 5290_ACEOF 5291for ac_lib in '' socket; do 5292 if test -z "$ac_lib"; then 5293 ac_res="none required" 5294 else 5295 ac_res=-l$ac_lib 5296 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5297 fi 5298 rm -f conftest.$ac_objext conftest$ac_exeext 5299if { (ac_try="$ac_link" 5300case "(($ac_try" in 5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5302 *) ac_try_echo=$ac_try;; 5303esac 5304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5305$as_echo "$ac_try_echo") >&5 5306 (eval "$ac_link") 2>conftest.er1 5307 ac_status=$? 5308 grep -v '^ *+' conftest.er1 >conftest.err 5309 rm -f conftest.er1 5310 cat conftest.err >&5 5311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5312 (exit $ac_status); } && { 5313 test -z "$ac_c_werror_flag" || 5314 test ! -s conftest.err 5315 } && test -s conftest$ac_exeext && { 5316 test "$cross_compiling" = yes || 5317 $as_test_x conftest$ac_exeext 5318 }; then 5319 ac_cv_search_socket=$ac_res 5320else 5321 $as_echo "$as_me: failed program was:" >&5 5322sed 's/^/| /' conftest.$ac_ext >&5 5323 5324 5325fi 5326 5327rm -rf conftest.dSYM 5328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5329 conftest$ac_exeext 5330 if test "${ac_cv_search_socket+set}" = set; then 5331 break 5332fi 5333done 5334if test "${ac_cv_search_socket+set}" = set; then 5335 : 5336else 5337 ac_cv_search_socket=no 5338fi 5339rm conftest.$ac_ext 5340LIBS=$ac_func_search_save_LIBS 5341fi 5342{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5 5343$as_echo "$ac_cv_search_socket" >&6; } 5344ac_res=$ac_cv_search_socket 5345if test "$ac_res" != no; then 5346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5347 5348fi 5349 5350 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 5351$as_echo_n "checking for library containing gethostbyname... " >&6; } 5352if test "${ac_cv_search_gethostbyname+set}" = set; then 5353 $as_echo_n "(cached) " >&6 5354else 5355 ac_func_search_save_LIBS=$LIBS 5356cat >conftest.$ac_ext <<_ACEOF 5357/* confdefs.h. */ 5358_ACEOF 5359cat confdefs.h >>conftest.$ac_ext 5360cat >>conftest.$ac_ext <<_ACEOF 5361/* end confdefs.h. */ 5362 5363/* Override any GCC internal prototype to avoid an error. 5364 Use char because int might match the return type of a GCC 5365 builtin and then its argument prototype would still apply. */ 5366#ifdef __cplusplus 5367extern "C" 5368#endif 5369char gethostbyname (); 5370int 5371main () 5372{ 5373return gethostbyname (); 5374 ; 5375 return 0; 5376} 5377_ACEOF 5378for ac_lib in '' nsl; do 5379 if test -z "$ac_lib"; then 5380 ac_res="none required" 5381 else 5382 ac_res=-l$ac_lib 5383 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5384 fi 5385 rm -f conftest.$ac_objext conftest$ac_exeext 5386if { (ac_try="$ac_link" 5387case "(($ac_try" in 5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5389 *) ac_try_echo=$ac_try;; 5390esac 5391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5392$as_echo "$ac_try_echo") >&5 5393 (eval "$ac_link") 2>conftest.er1 5394 ac_status=$? 5395 grep -v '^ *+' conftest.er1 >conftest.err 5396 rm -f conftest.er1 5397 cat conftest.err >&5 5398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5399 (exit $ac_status); } && { 5400 test -z "$ac_c_werror_flag" || 5401 test ! -s conftest.err 5402 } && test -s conftest$ac_exeext && { 5403 test "$cross_compiling" = yes || 5404 $as_test_x conftest$ac_exeext 5405 }; then 5406 ac_cv_search_gethostbyname=$ac_res 5407else 5408 $as_echo "$as_me: failed program was:" >&5 5409sed 's/^/| /' conftest.$ac_ext >&5 5410 5411 5412fi 5413 5414rm -rf conftest.dSYM 5415rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5416 conftest$ac_exeext 5417 if test "${ac_cv_search_gethostbyname+set}" = set; then 5418 break 5419fi 5420done 5421if test "${ac_cv_search_gethostbyname+set}" = set; then 5422 : 5423else 5424 ac_cv_search_gethostbyname=no 5425fi 5426rm conftest.$ac_ext 5427LIBS=$ac_func_search_save_LIBS 5428fi 5429{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 5430$as_echo "$ac_cv_search_gethostbyname" >&6; } 5431ac_res=$ac_cv_search_gethostbyname 5432if test "$ac_res" != no; then 5433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5434 5435fi 5436 5437 5438{ $as_echo "$as_me:$LINENO: checking for main in -lws2_32" >&5 5439$as_echo_n "checking for main in -lws2_32... " >&6; } 5440if test "${ac_cv_lib_ws2_32_main+set}" = set; then 5441 $as_echo_n "(cached) " >&6 5442else 5443 ac_check_lib_save_LIBS=$LIBS 5444LIBS="-lws2_32 $LIBS" 5445cat >conftest.$ac_ext <<_ACEOF 5446/* confdefs.h. */ 5447_ACEOF 5448cat confdefs.h >>conftest.$ac_ext 5449cat >>conftest.$ac_ext <<_ACEOF 5450/* end confdefs.h. */ 5451 5452 5453int 5454main () 5455{ 5456return main (); 5457 ; 5458 return 0; 5459} 5460_ACEOF 5461rm -f conftest.$ac_objext conftest$ac_exeext 5462if { (ac_try="$ac_link" 5463case "(($ac_try" in 5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5465 *) ac_try_echo=$ac_try;; 5466esac 5467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5468$as_echo "$ac_try_echo") >&5 5469 (eval "$ac_link") 2>conftest.er1 5470 ac_status=$? 5471 grep -v '^ *+' conftest.er1 >conftest.err 5472 rm -f conftest.er1 5473 cat conftest.err >&5 5474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5475 (exit $ac_status); } && { 5476 test -z "$ac_c_werror_flag" || 5477 test ! -s conftest.err 5478 } && test -s conftest$ac_exeext && { 5479 test "$cross_compiling" = yes || 5480 $as_test_x conftest$ac_exeext 5481 }; then 5482 ac_cv_lib_ws2_32_main=yes 5483else 5484 $as_echo "$as_me: failed program was:" >&5 5485sed 's/^/| /' conftest.$ac_ext >&5 5486 5487 ac_cv_lib_ws2_32_main=no 5488fi 5489 5490rm -rf conftest.dSYM 5491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5492 conftest$ac_exeext conftest.$ac_ext 5493LIBS=$ac_check_lib_save_LIBS 5494fi 5495{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_main" >&5 5496$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 5497if test "x$ac_cv_lib_ws2_32_main" = x""yes; then 5498 cat >>confdefs.h <<_ACEOF 5499#define HAVE_LIBWS2_32 1 5500_ACEOF 5501 5502 LIBS="-lws2_32 $LIBS" 5503 5504fi 5505ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main 5506 5507 5508 # Needs to come after above checks for libsocket & libnsl for SVR4 systems 5509 # Check whether --enable-ipv6 was given. 5510if test "${enable_ipv6+set}" = set; then 5511 enableval=$enable_ipv6; IPV6CONN=$enableval 5512else 5513 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5 5514$as_echo_n "checking for getaddrinfo... " >&6; } 5515if test "${ac_cv_func_getaddrinfo+set}" = set; then 5516 $as_echo_n "(cached) " >&6 5517else 5518 cat >conftest.$ac_ext <<_ACEOF 5519/* confdefs.h. */ 5520_ACEOF 5521cat confdefs.h >>conftest.$ac_ext 5522cat >>conftest.$ac_ext <<_ACEOF 5523/* end confdefs.h. */ 5524/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo. 5525 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5526#define getaddrinfo innocuous_getaddrinfo 5527 5528/* System header to define __stub macros and hopefully few prototypes, 5529 which can conflict with char getaddrinfo (); below. 5530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5531 <limits.h> exists even on freestanding compilers. */ 5532 5533#ifdef __STDC__ 5534# include <limits.h> 5535#else 5536# include <assert.h> 5537#endif 5538 5539#undef getaddrinfo 5540 5541/* Override any GCC internal prototype to avoid an error. 5542 Use char because int might match the return type of a GCC 5543 builtin and then its argument prototype would still apply. */ 5544#ifdef __cplusplus 5545extern "C" 5546#endif 5547char getaddrinfo (); 5548/* The GNU C library defines this for functions which it implements 5549 to always fail with ENOSYS. Some functions are actually named 5550 something starting with __ and the normal name is an alias. */ 5551#if defined __stub_getaddrinfo || defined __stub___getaddrinfo 5552choke me 5553#endif 5554 5555int 5556main () 5557{ 5558return getaddrinfo (); 5559 ; 5560 return 0; 5561} 5562_ACEOF 5563rm -f conftest.$ac_objext conftest$ac_exeext 5564if { (ac_try="$ac_link" 5565case "(($ac_try" in 5566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5567 *) ac_try_echo=$ac_try;; 5568esac 5569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5570$as_echo "$ac_try_echo") >&5 5571 (eval "$ac_link") 2>conftest.er1 5572 ac_status=$? 5573 grep -v '^ *+' conftest.er1 >conftest.err 5574 rm -f conftest.er1 5575 cat conftest.err >&5 5576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5577 (exit $ac_status); } && { 5578 test -z "$ac_c_werror_flag" || 5579 test ! -s conftest.err 5580 } && test -s conftest$ac_exeext && { 5581 test "$cross_compiling" = yes || 5582 $as_test_x conftest$ac_exeext 5583 }; then 5584 ac_cv_func_getaddrinfo=yes 5585else 5586 $as_echo "$as_me: failed program was:" >&5 5587sed 's/^/| /' conftest.$ac_ext >&5 5588 5589 ac_cv_func_getaddrinfo=no 5590fi 5591 5592rm -rf conftest.dSYM 5593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5594 conftest$ac_exeext conftest.$ac_ext 5595fi 5596{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5 5597$as_echo "$ac_cv_func_getaddrinfo" >&6; } 5598if test "x$ac_cv_func_getaddrinfo" = x""yes; then 5599 IPV6CONN=yes 5600else 5601 IPV6CONN=no 5602fi 5603 5604fi 5605 5606 { $as_echo "$as_me:$LINENO: checking if IPv6 support should be built" >&5 5607$as_echo_n "checking if IPv6 support should be built... " >&6; } 5608 if test "$IPV6CONN" = "yes"; then 5609 5610cat >>confdefs.h <<\_ACEOF 5611#define IPv6 1 5612_ACEOF 5613 5614 fi 5615 { $as_echo "$as_me:$LINENO: result: $IPV6CONN" >&5 5616$as_echo "$IPV6CONN" >&6; } 5617 5618 # 4.3BSD-Reno added a new member to struct sockaddr_in 5619 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5 5620$as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; } 5621if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then 5622 $as_echo_n "(cached) " >&6 5623else 5624 cat >conftest.$ac_ext <<_ACEOF 5625/* confdefs.h. */ 5626_ACEOF 5627cat confdefs.h >>conftest.$ac_ext 5628cat >>conftest.$ac_ext <<_ACEOF 5629/* end confdefs.h. */ 5630 5631#include <sys/types.h> 5632#include <sys/socket.h> 5633#include <netinet/in.h> 5634 5635 5636int 5637main () 5638{ 5639static struct sockaddr_in ac_aggr; 5640if (ac_aggr.sin_len) 5641return 0; 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646rm -f conftest.$ac_objext 5647if { (ac_try="$ac_compile" 5648case "(($ac_try" in 5649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5650 *) ac_try_echo=$ac_try;; 5651esac 5652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5653$as_echo "$ac_try_echo") >&5 5654 (eval "$ac_compile") 2>conftest.er1 5655 ac_status=$? 5656 grep -v '^ *+' conftest.er1 >conftest.err 5657 rm -f conftest.er1 5658 cat conftest.err >&5 5659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5660 (exit $ac_status); } && { 5661 test -z "$ac_c_werror_flag" || 5662 test ! -s conftest.err 5663 } && test -s conftest.$ac_objext; then 5664 ac_cv_member_struct_sockaddr_in_sin_len=yes 5665else 5666 $as_echo "$as_me: failed program was:" >&5 5667sed 's/^/| /' conftest.$ac_ext >&5 5668 5669 cat >conftest.$ac_ext <<_ACEOF 5670/* confdefs.h. */ 5671_ACEOF 5672cat confdefs.h >>conftest.$ac_ext 5673cat >>conftest.$ac_ext <<_ACEOF 5674/* end confdefs.h. */ 5675 5676#include <sys/types.h> 5677#include <sys/socket.h> 5678#include <netinet/in.h> 5679 5680 5681int 5682main () 5683{ 5684static struct sockaddr_in ac_aggr; 5685if (sizeof ac_aggr.sin_len) 5686return 0; 5687 ; 5688 return 0; 5689} 5690_ACEOF 5691rm -f conftest.$ac_objext 5692if { (ac_try="$ac_compile" 5693case "(($ac_try" in 5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5695 *) ac_try_echo=$ac_try;; 5696esac 5697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5698$as_echo "$ac_try_echo") >&5 5699 (eval "$ac_compile") 2>conftest.er1 5700 ac_status=$? 5701 grep -v '^ *+' conftest.er1 >conftest.err 5702 rm -f conftest.er1 5703 cat conftest.err >&5 5704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5705 (exit $ac_status); } && { 5706 test -z "$ac_c_werror_flag" || 5707 test ! -s conftest.err 5708 } && test -s conftest.$ac_objext; then 5709 ac_cv_member_struct_sockaddr_in_sin_len=yes 5710else 5711 $as_echo "$as_me: failed program was:" >&5 5712sed 's/^/| /' conftest.$ac_ext >&5 5713 5714 ac_cv_member_struct_sockaddr_in_sin_len=no 5715fi 5716 5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5718fi 5719 5720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5721fi 5722{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5 5723$as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; } 5724if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then 5725 5726cat >>confdefs.h <<\_ACEOF 5727#define BSD44SOCKETS 1 5728_ACEOF 5729 5730fi 5731 5732 5733 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc. 5734 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5 5735$as_echo_n "checking for socklen_t... " >&6; } 5736if test "${ac_cv_type_socklen_t+set}" = set; then 5737 $as_echo_n "(cached) " >&6 5738else 5739 ac_cv_type_socklen_t=no 5740cat >conftest.$ac_ext <<_ACEOF 5741/* confdefs.h. */ 5742_ACEOF 5743cat confdefs.h >>conftest.$ac_ext 5744cat >>conftest.$ac_ext <<_ACEOF 5745/* end confdefs.h. */ 5746 5747$ac_includes_default 5748#include <sys/socket.h> 5749 5750int 5751main () 5752{ 5753if (sizeof (socklen_t)) 5754 return 0; 5755 ; 5756 return 0; 5757} 5758_ACEOF 5759rm -f conftest.$ac_objext 5760if { (ac_try="$ac_compile" 5761case "(($ac_try" in 5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5763 *) ac_try_echo=$ac_try;; 5764esac 5765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5766$as_echo "$ac_try_echo") >&5 5767 (eval "$ac_compile") 2>conftest.er1 5768 ac_status=$? 5769 grep -v '^ *+' conftest.er1 >conftest.err 5770 rm -f conftest.er1 5771 cat conftest.err >&5 5772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5773 (exit $ac_status); } && { 5774 test -z "$ac_c_werror_flag" || 5775 test ! -s conftest.err 5776 } && test -s conftest.$ac_objext; then 5777 cat >conftest.$ac_ext <<_ACEOF 5778/* confdefs.h. */ 5779_ACEOF 5780cat confdefs.h >>conftest.$ac_ext 5781cat >>conftest.$ac_ext <<_ACEOF 5782/* end confdefs.h. */ 5783 5784$ac_includes_default 5785#include <sys/socket.h> 5786 5787int 5788main () 5789{ 5790if (sizeof ((socklen_t))) 5791 return 0; 5792 ; 5793 return 0; 5794} 5795_ACEOF 5796rm -f conftest.$ac_objext 5797if { (ac_try="$ac_compile" 5798case "(($ac_try" in 5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5800 *) ac_try_echo=$ac_try;; 5801esac 5802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5803$as_echo "$ac_try_echo") >&5 5804 (eval "$ac_compile") 2>conftest.er1 5805 ac_status=$? 5806 grep -v '^ *+' conftest.er1 >conftest.err 5807 rm -f conftest.er1 5808 cat conftest.err >&5 5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5810 (exit $ac_status); } && { 5811 test -z "$ac_c_werror_flag" || 5812 test ! -s conftest.err 5813 } && test -s conftest.$ac_objext; then 5814 : 5815else 5816 $as_echo "$as_me: failed program was:" >&5 5817sed 's/^/| /' conftest.$ac_ext >&5 5818 5819 ac_cv_type_socklen_t=yes 5820fi 5821 5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5823else 5824 $as_echo "$as_me: failed program was:" >&5 5825sed 's/^/| /' conftest.$ac_ext >&5 5826 5827 5828fi 5829 5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5831fi 5832{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 5833$as_echo "$ac_cv_type_socklen_t" >&6; } 5834if test "x$ac_cv_type_socklen_t" = x""yes; then 5835 5836cat >>confdefs.h <<_ACEOF 5837#define HAVE_SOCKLEN_T 1 5838_ACEOF 5839 5840 5841fi 5842 5843 5844 5845 fi 5846 case $host_os in 5847 solaris*|sco*|sysv4*) localdef="yes" ;; 5848 *) localdef="no" ;; 5849 esac 5850 # Check whether --enable-local-transport was given. 5851if test "${enable_local_transport+set}" = set; then 5852 enableval=$enable_local_transport; LOCALCONN=$enableval 5853else 5854 LOCALCONN=$localdef 5855fi 5856 5857 { $as_echo "$as_me:$LINENO: checking if Xtrans should support os-specific local connections" >&5 5858$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; } 5859 { $as_echo "$as_me:$LINENO: result: $LOCALCONN" >&5 5860$as_echo "$LOCALCONN" >&6; } 5861 if test "$LOCALCONN" = "yes"; then 5862 5863cat >>confdefs.h <<\_ACEOF 5864#define LOCALCONN 1 5865_ACEOF 5866 5867 fi 5868 5869 5870 5871# Secure RPC detection macro from xtrans.m4 5872 5873 # Check whether --enable-secure-rpc was given. 5874if test "${enable_secure_rpc+set}" = set; then 5875 enableval=$enable_secure_rpc; SECURE_RPC=$enableval 5876else 5877 SECURE_RPC="try" 5878fi 5879 5880 5881 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then 5882 FOUND_SECURE_RPC="no" 5883 5884 5885for ac_func in authdes_seccreate authdes_create 5886do 5887as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5888{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 5889$as_echo_n "checking for $ac_func... " >&6; } 5890if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 5891 $as_echo_n "(cached) " >&6 5892else 5893 cat >conftest.$ac_ext <<_ACEOF 5894/* confdefs.h. */ 5895_ACEOF 5896cat confdefs.h >>conftest.$ac_ext 5897cat >>conftest.$ac_ext <<_ACEOF 5898/* end confdefs.h. */ 5899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5900 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5901#define $ac_func innocuous_$ac_func 5902 5903/* System header to define __stub macros and hopefully few prototypes, 5904 which can conflict with char $ac_func (); below. 5905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5906 <limits.h> exists even on freestanding compilers. */ 5907 5908#ifdef __STDC__ 5909# include <limits.h> 5910#else 5911# include <assert.h> 5912#endif 5913 5914#undef $ac_func 5915 5916/* Override any GCC internal prototype to avoid an error. 5917 Use char because int might match the return type of a GCC 5918 builtin and then its argument prototype would still apply. */ 5919#ifdef __cplusplus 5920extern "C" 5921#endif 5922char $ac_func (); 5923/* The GNU C library defines this for functions which it implements 5924 to always fail with ENOSYS. Some functions are actually named 5925 something starting with __ and the normal name is an alias. */ 5926#if defined __stub_$ac_func || defined __stub___$ac_func 5927choke me 5928#endif 5929 5930int 5931main () 5932{ 5933return $ac_func (); 5934 ; 5935 return 0; 5936} 5937_ACEOF 5938rm -f conftest.$ac_objext conftest$ac_exeext 5939if { (ac_try="$ac_link" 5940case "(($ac_try" in 5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5942 *) ac_try_echo=$ac_try;; 5943esac 5944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5945$as_echo "$ac_try_echo") >&5 5946 (eval "$ac_link") 2>conftest.er1 5947 ac_status=$? 5948 grep -v '^ *+' conftest.er1 >conftest.err 5949 rm -f conftest.er1 5950 cat conftest.err >&5 5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5952 (exit $ac_status); } && { 5953 test -z "$ac_c_werror_flag" || 5954 test ! -s conftest.err 5955 } && test -s conftest$ac_exeext && { 5956 test "$cross_compiling" = yes || 5957 $as_test_x conftest$ac_exeext 5958 }; then 5959 eval "$as_ac_var=yes" 5960else 5961 $as_echo "$as_me: failed program was:" >&5 5962sed 's/^/| /' conftest.$ac_ext >&5 5963 5964 eval "$as_ac_var=no" 5965fi 5966 5967rm -rf conftest.dSYM 5968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5969 conftest$ac_exeext conftest.$ac_ext 5970fi 5971ac_res=`eval 'as_val=${'$as_ac_var'} 5972 $as_echo "$as_val"'` 5973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5974$as_echo "$ac_res" >&6; } 5975as_val=`eval 'as_val=${'$as_ac_var'} 5976 $as_echo "$as_val"'` 5977 if test "x$as_val" = x""yes; then 5978 cat >>confdefs.h <<_ACEOF 5979#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5980_ACEOF 5981 FOUND_SECURE_RPC="yes" 5982fi 5983done 5984 5985 if test "x$FOUND_SECURE_RPC" = "xno" ; then 5986 if test "x$SECURE_RPC" = "xyes" ; then 5987 { { $as_echo "$as_me:$LINENO: error: Secure RPC requested, but required functions not found" >&5 5988$as_echo "$as_me: error: Secure RPC requested, but required functions not found" >&2;} 5989 { (exit 1); exit 1; }; } 5990 fi 5991 SECURE_RPC="no" 5992 else 5993 { $as_echo "$as_me:$LINENO: checking for library containing getsecretkey" >&5 5994$as_echo_n "checking for library containing getsecretkey... " >&6; } 5995if test "${ac_cv_search_getsecretkey+set}" = set; then 5996 $as_echo_n "(cached) " >&6 5997else 5998 ac_func_search_save_LIBS=$LIBS 5999cat >conftest.$ac_ext <<_ACEOF 6000/* confdefs.h. */ 6001_ACEOF 6002cat confdefs.h >>conftest.$ac_ext 6003cat >>conftest.$ac_ext <<_ACEOF 6004/* end confdefs.h. */ 6005 6006/* Override any GCC internal prototype to avoid an error. 6007 Use char because int might match the return type of a GCC 6008 builtin and then its argument prototype would still apply. */ 6009#ifdef __cplusplus 6010extern "C" 6011#endif 6012char getsecretkey (); 6013int 6014main () 6015{ 6016return getsecretkey (); 6017 ; 6018 return 0; 6019} 6020_ACEOF 6021for ac_lib in '' rpcsvc; do 6022 if test -z "$ac_lib"; then 6023 ac_res="none required" 6024 else 6025 ac_res=-l$ac_lib 6026 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6027 fi 6028 rm -f conftest.$ac_objext conftest$ac_exeext 6029if { (ac_try="$ac_link" 6030case "(($ac_try" in 6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6032 *) ac_try_echo=$ac_try;; 6033esac 6034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6035$as_echo "$ac_try_echo") >&5 6036 (eval "$ac_link") 2>conftest.er1 6037 ac_status=$? 6038 grep -v '^ *+' conftest.er1 >conftest.err 6039 rm -f conftest.er1 6040 cat conftest.err >&5 6041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6042 (exit $ac_status); } && { 6043 test -z "$ac_c_werror_flag" || 6044 test ! -s conftest.err 6045 } && test -s conftest$ac_exeext && { 6046 test "$cross_compiling" = yes || 6047 $as_test_x conftest$ac_exeext 6048 }; then 6049 ac_cv_search_getsecretkey=$ac_res 6050else 6051 $as_echo "$as_me: failed program was:" >&5 6052sed 's/^/| /' conftest.$ac_ext >&5 6053 6054 6055fi 6056 6057rm -rf conftest.dSYM 6058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6059 conftest$ac_exeext 6060 if test "${ac_cv_search_getsecretkey+set}" = set; then 6061 break 6062fi 6063done 6064if test "${ac_cv_search_getsecretkey+set}" = set; then 6065 : 6066else 6067 ac_cv_search_getsecretkey=no 6068fi 6069rm conftest.$ac_ext 6070LIBS=$ac_func_search_save_LIBS 6071fi 6072{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getsecretkey" >&5 6073$as_echo "$ac_cv_search_getsecretkey" >&6; } 6074ac_res=$ac_cv_search_getsecretkey 6075if test "$ac_res" != no; then 6076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6077 6078fi 6079 6080 SECURE_RPC="yes" 6081 fi 6082 fi 6083 { $as_echo "$as_me:$LINENO: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5 6084$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; } 6085 if test "x$SECURE_RPC" = "xyes" ; then 6086 6087cat >>confdefs.h <<\_ACEOF 6088#define SECURE_RPC 1 6089_ACEOF 6090 6091 fi 6092 { $as_echo "$as_me:$LINENO: result: $SECURE_RPC" >&5 6093$as_echo "$SECURE_RPC" >&6; } 6094 6095 6096ac_config_files="$ac_config_files Makefile" 6097 6098cat >confcache <<\_ACEOF 6099# This file is a shell script that caches the results of configure 6100# tests run on this system so they can be shared between configure 6101# scripts and configure runs, see configure's option --config-cache. 6102# It is not useful on other systems. If it contains results you don't 6103# want to keep, you may remove or edit it. 6104# 6105# config.status only pays attention to the cache file if you give it 6106# the --recheck option to rerun configure. 6107# 6108# `ac_cv_env_foo' variables (set or unset) will be overridden when 6109# loading this file, other *unset* `ac_cv_foo' will be assigned the 6110# following values. 6111 6112_ACEOF 6113 6114# The following way of writing the cache mishandles newlines in values, 6115# but we know of no workaround that is simple, portable, and efficient. 6116# So, we kill variables containing newlines. 6117# Ultrix sh set writes to stderr and can't be redirected directly, 6118# and sets the high bit in the cache file unless we assign to the vars. 6119( 6120 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 6121 eval ac_val=\$$ac_var 6122 case $ac_val in #( 6123 *${as_nl}*) 6124 case $ac_var in #( 6125 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 6126$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 6127 esac 6128 case $ac_var in #( 6129 _ | IFS | as_nl) ;; #( 6130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 6131 *) $as_unset $ac_var ;; 6132 esac ;; 6133 esac 6134 done 6135 6136 (set) 2>&1 | 6137 case $as_nl`(ac_space=' '; set) 2>&1` in #( 6138 *${as_nl}ac_space=\ *) 6139 # `set' does not quote correctly, so add quotes (double-quote 6140 # substitution turns \\\\ into \\, and sed turns \\ into \). 6141 sed -n \ 6142 "s/'/'\\\\''/g; 6143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6144 ;; #( 6145 *) 6146 # `set' quotes correctly as required by POSIX, so do not add quotes. 6147 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 6148 ;; 6149 esac | 6150 sort 6151) | 6152 sed ' 6153 /^ac_cv_env_/b end 6154 t clear 6155 :clear 6156 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6157 t end 6158 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6159 :end' >>confcache 6160if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 6161 if test -w "$cache_file"; then 6162 test "x$cache_file" != "x/dev/null" && 6163 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 6164$as_echo "$as_me: updating cache $cache_file" >&6;} 6165 cat confcache >$cache_file 6166 else 6167 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 6168$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 6169 fi 6170fi 6171rm -f confcache 6172 6173test "x$prefix" = xNONE && prefix=$ac_default_prefix 6174# Let make expand exec_prefix. 6175test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6176 6177DEFS=-DHAVE_CONFIG_H 6178 6179ac_libobjs= 6180ac_ltlibobjs= 6181for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6182 # 1. Remove the extension, and $U if already installed. 6183 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 6184 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 6185 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 6186 # will be set to the directory where LIBOBJS objects are built. 6187 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 6188 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 6189done 6190LIBOBJS=$ac_libobjs 6191 6192LTLIBOBJS=$ac_ltlibobjs 6193 6194 6195 if test -n "$EXEEXT"; then 6196 am__EXEEXT_TRUE= 6197 am__EXEEXT_FALSE='#' 6198else 6199 am__EXEEXT_TRUE='#' 6200 am__EXEEXT_FALSE= 6201fi 6202 6203if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 6204 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 6205Usually this means the macro was only invoked conditionally." >&5 6206$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 6207Usually this means the macro was only invoked conditionally." >&2;} 6208 { (exit 1); exit 1; }; } 6209fi 6210if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 6211 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 6212Usually this means the macro was only invoked conditionally." >&5 6213$as_echo "$as_me: error: conditional \"AMDEP\" was never defined. 6214Usually this means the macro was only invoked conditionally." >&2;} 6215 { (exit 1); exit 1; }; } 6216fi 6217if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 6218 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 6219Usually this means the macro was only invoked conditionally." >&5 6220$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 6221Usually this means the macro was only invoked conditionally." >&2;} 6222 { (exit 1); exit 1; }; } 6223fi 6224 6225: ${CONFIG_STATUS=./config.status} 6226ac_write_fail=0 6227ac_clean_files_save=$ac_clean_files 6228ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6229{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6230$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 6231cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6232#! $SHELL 6233# Generated by $as_me. 6234# Run this file to recreate the current configuration. 6235# Compiler output produced by configure, useful for debugging 6236# configure, is in config.log if it exists. 6237 6238debug=false 6239ac_cs_recheck=false 6240ac_cs_silent=false 6241SHELL=\${CONFIG_SHELL-$SHELL} 6242_ACEOF 6243 6244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6245## --------------------- ## 6246## M4sh Initialization. ## 6247## --------------------- ## 6248 6249# Be more Bourne compatible 6250DUALCASE=1; export DUALCASE # for MKS sh 6251if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6252 emulate sh 6253 NULLCMD=: 6254 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 6255 # is contrary to our usage. Disable this feature. 6256 alias -g '${1+"$@"}'='"$@"' 6257 setopt NO_GLOB_SUBST 6258else 6259 case `(set -o) 2>/dev/null` in 6260 *posix*) set -o posix ;; 6261esac 6262 6263fi 6264 6265 6266 6267 6268# PATH needs CR 6269# Avoid depending upon Character Ranges. 6270as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6271as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6272as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6273as_cr_digits='0123456789' 6274as_cr_alnum=$as_cr_Letters$as_cr_digits 6275 6276as_nl=' 6277' 6278export as_nl 6279# Printing a long string crashes Solaris 7 /usr/bin/printf. 6280as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6281as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 6282as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 6283if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 6284 as_echo='printf %s\n' 6285 as_echo_n='printf %s' 6286else 6287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 6288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 6289 as_echo_n='/usr/ucb/echo -n' 6290 else 6291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 6292 as_echo_n_body='eval 6293 arg=$1; 6294 case $arg in 6295 *"$as_nl"*) 6296 expr "X$arg" : "X\\(.*\\)$as_nl"; 6297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 6298 esac; 6299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 6300 ' 6301 export as_echo_n_body 6302 as_echo_n='sh -c $as_echo_n_body as_echo' 6303 fi 6304 export as_echo_body 6305 as_echo='sh -c $as_echo_body as_echo' 6306fi 6307 6308# The user is always right. 6309if test "${PATH_SEPARATOR+set}" != set; then 6310 PATH_SEPARATOR=: 6311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 6312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 6313 PATH_SEPARATOR=';' 6314 } 6315fi 6316 6317# Support unset when possible. 6318if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6319 as_unset=unset 6320else 6321 as_unset=false 6322fi 6323 6324 6325# IFS 6326# We need space, tab and new line, in precisely that order. Quoting is 6327# there to prevent editors from complaining about space-tab. 6328# (If _AS_PATH_WALK were called with IFS unset, it would disable word 6329# splitting by setting IFS to empty value.) 6330IFS=" "" $as_nl" 6331 6332# Find who we are. Look in the path if we contain no directory separator. 6333case $0 in 6334 *[\\/]* ) as_myself=$0 ;; 6335 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6336for as_dir in $PATH 6337do 6338 IFS=$as_save_IFS 6339 test -z "$as_dir" && as_dir=. 6340 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6341done 6342IFS=$as_save_IFS 6343 6344 ;; 6345esac 6346# We did not find ourselves, most probably we were run as `sh COMMAND' 6347# in which case we are not to be found in the path. 6348if test "x$as_myself" = x; then 6349 as_myself=$0 6350fi 6351if test ! -f "$as_myself"; then 6352 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 6353 { (exit 1); exit 1; } 6354fi 6355 6356# Work around bugs in pre-3.0 UWIN ksh. 6357for as_var in ENV MAIL MAILPATH 6358do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 6359done 6360PS1='$ ' 6361PS2='> ' 6362PS4='+ ' 6363 6364# NLS nuisances. 6365LC_ALL=C 6366export LC_ALL 6367LANGUAGE=C 6368export LANGUAGE 6369 6370# Required to use basename. 6371if expr a : '\(a\)' >/dev/null 2>&1 && 6372 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6373 as_expr=expr 6374else 6375 as_expr=false 6376fi 6377 6378if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 6379 as_basename=basename 6380else 6381 as_basename=false 6382fi 6383 6384 6385# Name of the executable. 6386as_me=`$as_basename -- "$0" || 6387$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6388 X"$0" : 'X\(//\)$' \| \ 6389 X"$0" : 'X\(/\)' \| . 2>/dev/null || 6390$as_echo X/"$0" | 6391 sed '/^.*\/\([^/][^/]*\)\/*$/{ 6392 s//\1/ 6393 q 6394 } 6395 /^X\/\(\/\/\)$/{ 6396 s//\1/ 6397 q 6398 } 6399 /^X\/\(\/\).*/{ 6400 s//\1/ 6401 q 6402 } 6403 s/.*/./; q'` 6404 6405# CDPATH. 6406$as_unset CDPATH 6407 6408 6409 6410 as_lineno_1=$LINENO 6411 as_lineno_2=$LINENO 6412 test "x$as_lineno_1" != "x$as_lineno_2" && 6413 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 6414 6415 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6416 # uniformly replaced by the line number. The first 'sed' inserts a 6417 # line-number line after each line using $LINENO; the second 'sed' 6418 # does the real work. The second script uses 'N' to pair each 6419 # line-number line with the line containing $LINENO, and appends 6420 # trailing '-' during substitution so that $LINENO is not a special 6421 # case at line end. 6422 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6423 # scripts with optimization help from Paolo Bonzini. Blame Lee 6424 # E. McMahon (1931-1989) for sed's syntax. :-) 6425 sed -n ' 6426 p 6427 /[$]LINENO/= 6428 ' <$as_myself | 6429 sed ' 6430 s/[$]LINENO.*/&-/ 6431 t lineno 6432 b 6433 :lineno 6434 N 6435 :loop 6436 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 6437 t loop 6438 s/-\n.*// 6439 ' >$as_me.lineno && 6440 chmod +x "$as_me.lineno" || 6441 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 6442 { (exit 1); exit 1; }; } 6443 6444 # Don't try to exec as it changes $[0], causing all sort of problems 6445 # (the dirname of $[0] is not the place where we might find the 6446 # original and so on. Autoconf is especially sensitive to this). 6447 . "./$as_me.lineno" 6448 # Exit status is that of the last command. 6449 exit 6450} 6451 6452 6453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 6454 as_dirname=dirname 6455else 6456 as_dirname=false 6457fi 6458 6459ECHO_C= ECHO_N= ECHO_T= 6460case `echo -n x` in 6461-n*) 6462 case `echo 'x\c'` in 6463 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 6464 *) ECHO_C='\c';; 6465 esac;; 6466*) 6467 ECHO_N='-n';; 6468esac 6469if expr a : '\(a\)' >/dev/null 2>&1 && 6470 test "X`expr 00001 : '.*\(...\)'`" = X001; then 6471 as_expr=expr 6472else 6473 as_expr=false 6474fi 6475 6476rm -f conf$$ conf$$.exe conf$$.file 6477if test -d conf$$.dir; then 6478 rm -f conf$$.dir/conf$$.file 6479else 6480 rm -f conf$$.dir 6481 mkdir conf$$.dir 2>/dev/null 6482fi 6483if (echo >conf$$.file) 2>/dev/null; then 6484 if ln -s conf$$.file conf$$ 2>/dev/null; then 6485 as_ln_s='ln -s' 6486 # ... but there are two gotchas: 6487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 6488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 6489 # In both cases, we have to default to `cp -p'. 6490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 6491 as_ln_s='cp -p' 6492 elif ln conf$$.file conf$$ 2>/dev/null; then 6493 as_ln_s=ln 6494 else 6495 as_ln_s='cp -p' 6496 fi 6497else 6498 as_ln_s='cp -p' 6499fi 6500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 6501rmdir conf$$.dir 2>/dev/null 6502 6503if mkdir -p . 2>/dev/null; then 6504 as_mkdir_p=: 6505else 6506 test -d ./-p && rmdir ./-p 6507 as_mkdir_p=false 6508fi 6509 6510if test -x / >/dev/null 2>&1; then 6511 as_test_x='test -x' 6512else 6513 if ls -dL / >/dev/null 2>&1; then 6514 as_ls_L_option=L 6515 else 6516 as_ls_L_option= 6517 fi 6518 as_test_x=' 6519 eval sh -c '\'' 6520 if test -d "$1"; then 6521 test -d "$1/."; 6522 else 6523 case $1 in 6524 -*)set "./$1";; 6525 esac; 6526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 6527 ???[sx]*):;;*)false;;esac;fi 6528 '\'' sh 6529 ' 6530fi 6531as_executable_p=$as_test_x 6532 6533# Sed expression to map a string onto a valid CPP name. 6534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6535 6536# Sed expression to map a string onto a valid variable name. 6537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6538 6539 6540exec 6>&1 6541 6542# Save the log message, to keep $[0] and so on meaningful, and to 6543# report actual input values of CONFIG_FILES etc. instead of their 6544# values after options handling. 6545ac_log=" 6546This file was extended by xhost $as_me 1.0.3, which was 6547generated by GNU Autoconf 2.63. Invocation command line was 6548 6549 CONFIG_FILES = $CONFIG_FILES 6550 CONFIG_HEADERS = $CONFIG_HEADERS 6551 CONFIG_LINKS = $CONFIG_LINKS 6552 CONFIG_COMMANDS = $CONFIG_COMMANDS 6553 $ $0 $@ 6554 6555on `(hostname || uname -n) 2>/dev/null | sed 1q` 6556" 6557 6558_ACEOF 6559 6560case $ac_config_files in *" 6561"*) set x $ac_config_files; shift; ac_config_files=$*;; 6562esac 6563 6564case $ac_config_headers in *" 6565"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 6566esac 6567 6568 6569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6570# Files that config.status was made for. 6571config_files="$ac_config_files" 6572config_headers="$ac_config_headers" 6573config_commands="$ac_config_commands" 6574 6575_ACEOF 6576 6577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6578ac_cs_usage="\ 6579\`$as_me' instantiates files from templates according to the 6580current configuration. 6581 6582Usage: $0 [OPTION]... [FILE]... 6583 6584 -h, --help print this help, then exit 6585 -V, --version print version number and configuration settings, then exit 6586 -q, --quiet, --silent 6587 do not print progress messages 6588 -d, --debug don't remove temporary files 6589 --recheck update $as_me by reconfiguring in the same conditions 6590 --file=FILE[:TEMPLATE] 6591 instantiate the configuration file FILE 6592 --header=FILE[:TEMPLATE] 6593 instantiate the configuration header FILE 6594 6595Configuration files: 6596$config_files 6597 6598Configuration headers: 6599$config_headers 6600 6601Configuration commands: 6602$config_commands 6603 6604Report bugs to <bug-autoconf@gnu.org>." 6605 6606_ACEOF 6607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6608ac_cs_version="\\ 6609xhost config.status 1.0.3 6610configured by $0, generated by GNU Autoconf 2.63, 6611 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 6612 6613Copyright (C) 2008 Free Software Foundation, Inc. 6614This config.status script is free software; the Free Software Foundation 6615gives unlimited permission to copy, distribute and modify it." 6616 6617ac_pwd='$ac_pwd' 6618srcdir='$srcdir' 6619INSTALL='$INSTALL' 6620MKDIR_P='$MKDIR_P' 6621AWK='$AWK' 6622test -n "\$AWK" || AWK=awk 6623_ACEOF 6624 6625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6626# The default lists apply if the user does not specify any file. 6627ac_need_defaults=: 6628while test $# != 0 6629do 6630 case $1 in 6631 --*=*) 6632 ac_option=`expr "X$1" : 'X\([^=]*\)='` 6633 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 6634 ac_shift=: 6635 ;; 6636 *) 6637 ac_option=$1 6638 ac_optarg=$2 6639 ac_shift=shift 6640 ;; 6641 esac 6642 6643 case $ac_option in 6644 # Handling of the options. 6645 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6646 ac_cs_recheck=: ;; 6647 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 6648 $as_echo "$ac_cs_version"; exit ;; 6649 --debug | --debu | --deb | --de | --d | -d ) 6650 debug=: ;; 6651 --file | --fil | --fi | --f ) 6652 $ac_shift 6653 case $ac_optarg in 6654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6655 esac 6656 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 6657 ac_need_defaults=false;; 6658 --header | --heade | --head | --hea ) 6659 $ac_shift 6660 case $ac_optarg in 6661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 6662 esac 6663 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 6664 ac_need_defaults=false;; 6665 --he | --h) 6666 # Conflict between --help and --header 6667 { $as_echo "$as_me: error: ambiguous option: $1 6668Try \`$0 --help' for more information." >&2 6669 { (exit 1); exit 1; }; };; 6670 --help | --hel | -h ) 6671 $as_echo "$ac_cs_usage"; exit ;; 6672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6673 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6674 ac_cs_silent=: ;; 6675 6676 # This is an error. 6677 -*) { $as_echo "$as_me: error: unrecognized option: $1 6678Try \`$0 --help' for more information." >&2 6679 { (exit 1); exit 1; }; } ;; 6680 6681 *) ac_config_targets="$ac_config_targets $1" 6682 ac_need_defaults=false ;; 6683 6684 esac 6685 shift 6686done 6687 6688ac_configure_extra_args= 6689 6690if $ac_cs_silent; then 6691 exec 6>/dev/null 6692 ac_configure_extra_args="$ac_configure_extra_args --silent" 6693fi 6694 6695_ACEOF 6696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6697if \$ac_cs_recheck; then 6698 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6699 shift 6700 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 6701 CONFIG_SHELL='$SHELL' 6702 export CONFIG_SHELL 6703 exec "\$@" 6704fi 6705 6706_ACEOF 6707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6708exec 5>>config.log 6709{ 6710 echo 6711 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6712## Running $as_me. ## 6713_ASBOX 6714 $as_echo "$ac_log" 6715} >&5 6716 6717_ACEOF 6718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6719# 6720# INIT-COMMANDS 6721# 6722AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 6723 6724_ACEOF 6725 6726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6727 6728# Handling of arguments. 6729for ac_config_target in $ac_config_targets 6730do 6731 case $ac_config_target in 6732 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6733 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6734 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6735 6736 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6737$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6738 { (exit 1); exit 1; }; };; 6739 esac 6740done 6741 6742 6743# If the user did not use the arguments to specify the items to instantiate, 6744# then the envvar interface is used. Set only those that are not. 6745# We use the long form for the default assignment because of an extremely 6746# bizarre bug on SunOS 4.1.3. 6747if $ac_need_defaults; then 6748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 6749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 6750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 6751fi 6752 6753# Have a temporary directory for convenience. Make it in the build tree 6754# simply because there is no reason against having it here, and in addition, 6755# creating and moving files from /tmp can sometimes cause problems. 6756# Hook for its removal unless debugging. 6757# Note that there is a small window in which the directory will not be cleaned: 6758# after its creation but before its name has been assigned to `$tmp'. 6759$debug || 6760{ 6761 tmp= 6762 trap 'exit_status=$? 6763 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6764' 0 6765 trap '{ (exit 1); exit 1; }' 1 2 13 15 6766} 6767# Create a (secure) tmp directory for tmp files. 6768 6769{ 6770 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6771 test -n "$tmp" && test -d "$tmp" 6772} || 6773{ 6774 tmp=./conf$$-$RANDOM 6775 (umask 077 && mkdir "$tmp") 6776} || 6777{ 6778 $as_echo "$as_me: cannot create a temporary directory in ." >&2 6779 { (exit 1); exit 1; } 6780} 6781 6782# Set up the scripts for CONFIG_FILES section. 6783# No need to generate them if there are no CONFIG_FILES. 6784# This happens for instance with `./config.status config.h'. 6785if test -n "$CONFIG_FILES"; then 6786 6787 6788ac_cr=' 6789' 6790ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6791if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6792 ac_cs_awk_cr='\\r' 6793else 6794 ac_cs_awk_cr=$ac_cr 6795fi 6796 6797echo 'BEGIN {' >"$tmp/subs1.awk" && 6798_ACEOF 6799 6800 6801{ 6802 echo "cat >conf$$subs.awk <<_ACEOF" && 6803 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6804 echo "_ACEOF" 6805} >conf$$subs.sh || 6806 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6807$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6808 { (exit 1); exit 1; }; } 6809ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 6810ac_delim='%!_!# ' 6811for ac_last_try in false false false false false :; do 6812 . ./conf$$subs.sh || 6813 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6814$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6815 { (exit 1); exit 1; }; } 6816 6817 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6818 if test $ac_delim_n = $ac_delim_num; then 6819 break 6820 elif $ac_last_try; then 6821 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 6822$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 6823 { (exit 1); exit 1; }; } 6824 else 6825 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6826 fi 6827done 6828rm -f conf$$subs.sh 6829 6830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6831cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 6832_ACEOF 6833sed -n ' 6834h 6835s/^/S["/; s/!.*/"]=/ 6836p 6837g 6838s/^[^!]*!// 6839:repl 6840t repl 6841s/'"$ac_delim"'$// 6842t delim 6843:nl 6844h 6845s/\(.\{148\}\).*/\1/ 6846t more1 6847s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6848p 6849n 6850b repl 6851:more1 6852s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6853p 6854g 6855s/.\{148\}// 6856t nl 6857:delim 6858h 6859s/\(.\{148\}\).*/\1/ 6860t more2 6861s/["\\]/\\&/g; s/^/"/; s/$/"/ 6862p 6863b 6864:more2 6865s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6866p 6867g 6868s/.\{148\}// 6869t delim 6870' <conf$$subs.awk | sed ' 6871/^[^""]/{ 6872 N 6873 s/\n// 6874} 6875' >>$CONFIG_STATUS || ac_write_fail=1 6876rm -f conf$$subs.awk 6877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6878_ACAWK 6879cat >>"\$tmp/subs1.awk" <<_ACAWK && 6880 for (key in S) S_is_set[key] = 1 6881 FS = "" 6882 6883} 6884{ 6885 line = $ 0 6886 nfields = split(line, field, "@") 6887 substed = 0 6888 len = length(field[1]) 6889 for (i = 2; i < nfields; i++) { 6890 key = field[i] 6891 keylen = length(key) 6892 if (S_is_set[key]) { 6893 value = S[key] 6894 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6895 len += length(value) + length(field[++i]) 6896 substed = 1 6897 } else 6898 len += 1 + keylen 6899 } 6900 6901 print line 6902} 6903 6904_ACAWK 6905_ACEOF 6906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6907if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6908 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6909else 6910 cat 6911fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 6912 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 6913$as_echo "$as_me: error: could not setup config files machinery" >&2;} 6914 { (exit 1); exit 1; }; } 6915_ACEOF 6916 6917# VPATH may cause trouble with some makes, so we remove $(srcdir), 6918# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6919# trailing colons and then remove the whole line if VPATH becomes empty 6920# (actually we leave an empty line to preserve line numbers). 6921if test "x$srcdir" = x.; then 6922 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6923s/:*\$(srcdir):*/:/ 6924s/:*\${srcdir}:*/:/ 6925s/:*@srcdir@:*/:/ 6926s/^\([^=]*=[ ]*\):*/\1/ 6927s/:*$// 6928s/^[^=]*=[ ]*$// 6929}' 6930fi 6931 6932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6933fi # test -n "$CONFIG_FILES" 6934 6935# Set up the scripts for CONFIG_HEADERS section. 6936# No need to generate them if there are no CONFIG_HEADERS. 6937# This happens for instance with `./config.status Makefile'. 6938if test -n "$CONFIG_HEADERS"; then 6939cat >"$tmp/defines.awk" <<\_ACAWK || 6940BEGIN { 6941_ACEOF 6942 6943# Transform confdefs.h into an awk script `defines.awk', embedded as 6944# here-document in config.status, that substitutes the proper values into 6945# config.h.in to produce config.h. 6946 6947# Create a delimiter string that does not exist in confdefs.h, to ease 6948# handling of long lines. 6949ac_delim='%!_!# ' 6950for ac_last_try in false false :; do 6951 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6952 if test -z "$ac_t"; then 6953 break 6954 elif $ac_last_try; then 6955 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 6956$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} 6957 { (exit 1); exit 1; }; } 6958 else 6959 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6960 fi 6961done 6962 6963# For the awk script, D is an array of macro values keyed by name, 6964# likewise P contains macro parameters if any. Preserve backslash 6965# newline sequences. 6966 6967ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6968sed -n ' 6969s/.\{148\}/&'"$ac_delim"'/g 6970t rset 6971:rset 6972s/^[ ]*#[ ]*define[ ][ ]*/ / 6973t def 6974d 6975:def 6976s/\\$// 6977t bsnl 6978s/["\\]/\\&/g 6979s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6980D["\1"]=" \3"/p 6981s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6982d 6983:bsnl 6984s/["\\]/\\&/g 6985s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6986D["\1"]=" \3\\\\\\n"\\/p 6987t cont 6988s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6989t cont 6990d 6991:cont 6992n 6993s/.\{148\}/&'"$ac_delim"'/g 6994t clear 6995:clear 6996s/\\$// 6997t bsnlc 6998s/["\\]/\\&/g; s/^/"/; s/$/"/p 6999d 7000:bsnlc 7001s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 7002b cont 7003' <confdefs.h | sed ' 7004s/'"$ac_delim"'/"\\\ 7005"/g' >>$CONFIG_STATUS || ac_write_fail=1 7006 7007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7008 for (key in D) D_is_set[key] = 1 7009 FS = "" 7010} 7011/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 7012 line = \$ 0 7013 split(line, arg, " ") 7014 if (arg[1] == "#") { 7015 defundef = arg[2] 7016 mac1 = arg[3] 7017 } else { 7018 defundef = substr(arg[1], 2) 7019 mac1 = arg[2] 7020 } 7021 split(mac1, mac2, "(") #) 7022 macro = mac2[1] 7023 prefix = substr(line, 1, index(line, defundef) - 1) 7024 if (D_is_set[macro]) { 7025 # Preserve the white space surrounding the "#". 7026 print prefix "define", macro P[macro] D[macro] 7027 next 7028 } else { 7029 # Replace #undef with comments. This is necessary, for example, 7030 # in the case of _POSIX_SOURCE, which is predefined and required 7031 # on some systems where configure will not decide to define it. 7032 if (defundef == "undef") { 7033 print "/*", prefix defundef, macro, "*/" 7034 next 7035 } 7036 } 7037} 7038{ print } 7039_ACAWK 7040_ACEOF 7041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7042 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 7043$as_echo "$as_me: error: could not setup config headers machinery" >&2;} 7044 { (exit 1); exit 1; }; } 7045fi # test -n "$CONFIG_HEADERS" 7046 7047 7048eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 7049shift 7050for ac_tag 7051do 7052 case $ac_tag in 7053 :[FHLC]) ac_mode=$ac_tag; continue;; 7054 esac 7055 case $ac_mode$ac_tag in 7056 :[FHL]*:*);; 7057 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 7058$as_echo "$as_me: error: invalid tag $ac_tag" >&2;} 7059 { (exit 1); exit 1; }; };; 7060 :[FH]-) ac_tag=-:-;; 7061 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 7062 esac 7063 ac_save_IFS=$IFS 7064 IFS=: 7065 set x $ac_tag 7066 IFS=$ac_save_IFS 7067 shift 7068 ac_file=$1 7069 shift 7070 7071 case $ac_mode in 7072 :L) ac_source=$1;; 7073 :[FH]) 7074 ac_file_inputs= 7075 for ac_f 7076 do 7077 case $ac_f in 7078 -) ac_f="$tmp/stdin";; 7079 *) # Look for the file first in the build tree, then in the source tree 7080 # (if the path is not absolute). The absolute path cannot be DOS-style, 7081 # because $ac_f cannot contain `:'. 7082 test -f "$ac_f" || 7083 case $ac_f in 7084 [\\/$]*) false;; 7085 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 7086 esac || 7087 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 7088$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} 7089 { (exit 1); exit 1; }; };; 7090 esac 7091 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 7092 ac_file_inputs="$ac_file_inputs '$ac_f'" 7093 done 7094 7095 # Let's still pretend it is `configure' which instantiates (i.e., don't 7096 # use $as_me), people would be surprised to read: 7097 # /* config.h. Generated by config.status. */ 7098 configure_input='Generated from '` 7099 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 7100 `' by configure.' 7101 if test x"$ac_file" != x-; then 7102 configure_input="$ac_file. $configure_input" 7103 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 7104$as_echo "$as_me: creating $ac_file" >&6;} 7105 fi 7106 # Neutralize special characters interpreted by sed in replacement strings. 7107 case $configure_input in #( 7108 *\&* | *\|* | *\\* ) 7109 ac_sed_conf_input=`$as_echo "$configure_input" | 7110 sed 's/[\\\\&|]/\\\\&/g'`;; #( 7111 *) ac_sed_conf_input=$configure_input;; 7112 esac 7113 7114 case $ac_tag in 7115 *:-:* | *:-) cat >"$tmp/stdin" \ 7116 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7117$as_echo "$as_me: error: could not create $ac_file" >&2;} 7118 { (exit 1); exit 1; }; } ;; 7119 esac 7120 ;; 7121 esac 7122 7123 ac_dir=`$as_dirname -- "$ac_file" || 7124$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7125 X"$ac_file" : 'X\(//\)[^/]' \| \ 7126 X"$ac_file" : 'X\(//\)$' \| \ 7127 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 7128$as_echo X"$ac_file" | 7129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7130 s//\1/ 7131 q 7132 } 7133 /^X\(\/\/\)[^/].*/{ 7134 s//\1/ 7135 q 7136 } 7137 /^X\(\/\/\)$/{ 7138 s//\1/ 7139 q 7140 } 7141 /^X\(\/\).*/{ 7142 s//\1/ 7143 q 7144 } 7145 s/.*/./; q'` 7146 { as_dir="$ac_dir" 7147 case $as_dir in #( 7148 -*) as_dir=./$as_dir;; 7149 esac 7150 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 7151 as_dirs= 7152 while :; do 7153 case $as_dir in #( 7154 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7155 *) as_qdir=$as_dir;; 7156 esac 7157 as_dirs="'$as_qdir' $as_dirs" 7158 as_dir=`$as_dirname -- "$as_dir" || 7159$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7160 X"$as_dir" : 'X\(//\)[^/]' \| \ 7161 X"$as_dir" : 'X\(//\)$' \| \ 7162 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7163$as_echo X"$as_dir" | 7164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7165 s//\1/ 7166 q 7167 } 7168 /^X\(\/\/\)[^/].*/{ 7169 s//\1/ 7170 q 7171 } 7172 /^X\(\/\/\)$/{ 7173 s//\1/ 7174 q 7175 } 7176 /^X\(\/\).*/{ 7177 s//\1/ 7178 q 7179 } 7180 s/.*/./; q'` 7181 test -d "$as_dir" && break 7182 done 7183 test -z "$as_dirs" || eval "mkdir $as_dirs" 7184 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 7185$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 7186 { (exit 1); exit 1; }; }; } 7187 ac_builddir=. 7188 7189case "$ac_dir" in 7190.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 7191*) 7192 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 7193 # A ".." for each directory in $ac_dir_suffix. 7194 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 7195 case $ac_top_builddir_sub in 7196 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 7197 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 7198 esac ;; 7199esac 7200ac_abs_top_builddir=$ac_pwd 7201ac_abs_builddir=$ac_pwd$ac_dir_suffix 7202# for backward compatibility: 7203ac_top_builddir=$ac_top_build_prefix 7204 7205case $srcdir in 7206 .) # We are building in place. 7207 ac_srcdir=. 7208 ac_top_srcdir=$ac_top_builddir_sub 7209 ac_abs_top_srcdir=$ac_pwd ;; 7210 [\\/]* | ?:[\\/]* ) # Absolute name. 7211 ac_srcdir=$srcdir$ac_dir_suffix; 7212 ac_top_srcdir=$srcdir 7213 ac_abs_top_srcdir=$srcdir ;; 7214 *) # Relative name. 7215 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 7216 ac_top_srcdir=$ac_top_build_prefix$srcdir 7217 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 7218esac 7219ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 7220 7221 7222 case $ac_mode in 7223 :F) 7224 # 7225 # CONFIG_FILE 7226 # 7227 7228 case $INSTALL in 7229 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7230 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 7231 esac 7232 ac_MKDIR_P=$MKDIR_P 7233 case $MKDIR_P in 7234 [\\/$]* | ?:[\\/]* ) ;; 7235 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 7236 esac 7237_ACEOF 7238 7239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7240# If the template does not know about datarootdir, expand it. 7241# FIXME: This hack should be removed a few years after 2.60. 7242ac_datarootdir_hack=; ac_datarootdir_seen= 7243 7244ac_sed_dataroot=' 7245/datarootdir/ { 7246 p 7247 q 7248} 7249/@datadir@/p 7250/@docdir@/p 7251/@infodir@/p 7252/@localedir@/p 7253/@mandir@/p 7254' 7255case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 7256*datarootdir*) ac_datarootdir_seen=yes;; 7257*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 7258 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 7259$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 7260_ACEOF 7261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7262 ac_datarootdir_hack=' 7263 s&@datadir@&$datadir&g 7264 s&@docdir@&$docdir&g 7265 s&@infodir@&$infodir&g 7266 s&@localedir@&$localedir&g 7267 s&@mandir@&$mandir&g 7268 s&\\\${datarootdir}&$datarootdir&g' ;; 7269esac 7270_ACEOF 7271 7272# Neutralize VPATH when `$srcdir' = `.'. 7273# Shell code in configure.ac might set extrasub. 7274# FIXME: do we really want to maintain this feature? 7275cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 7276ac_sed_extra="$ac_vpsub 7277$extrasub 7278_ACEOF 7279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 7280:t 7281/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7282s|@configure_input@|$ac_sed_conf_input|;t t 7283s&@top_builddir@&$ac_top_builddir_sub&;t t 7284s&@top_build_prefix@&$ac_top_build_prefix&;t t 7285s&@srcdir@&$ac_srcdir&;t t 7286s&@abs_srcdir@&$ac_abs_srcdir&;t t 7287s&@top_srcdir@&$ac_top_srcdir&;t t 7288s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 7289s&@builddir@&$ac_builddir&;t t 7290s&@abs_builddir@&$ac_abs_builddir&;t t 7291s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 7292s&@INSTALL@&$ac_INSTALL&;t t 7293s&@MKDIR_P@&$ac_MKDIR_P&;t t 7294$ac_datarootdir_hack 7295" 7296eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 7297 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7298$as_echo "$as_me: error: could not create $ac_file" >&2;} 7299 { (exit 1); exit 1; }; } 7300 7301test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 7302 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 7303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 7304 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7305which seems to be undefined. Please make sure it is defined." >&5 7306$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 7307which seems to be undefined. Please make sure it is defined." >&2;} 7308 7309 rm -f "$tmp/stdin" 7310 case $ac_file in 7311 -) cat "$tmp/out" && rm -f "$tmp/out";; 7312 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 7313 esac \ 7314 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7315$as_echo "$as_me: error: could not create $ac_file" >&2;} 7316 { (exit 1); exit 1; }; } 7317 ;; 7318 :H) 7319 # 7320 # CONFIG_HEADER 7321 # 7322 if test x"$ac_file" != x-; then 7323 { 7324 $as_echo "/* $configure_input */" \ 7325 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 7326 } >"$tmp/config.h" \ 7327 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7328$as_echo "$as_me: error: could not create $ac_file" >&2;} 7329 { (exit 1); exit 1; }; } 7330 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 7331 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7332$as_echo "$as_me: $ac_file is unchanged" >&6;} 7333 else 7334 rm -f "$ac_file" 7335 mv "$tmp/config.h" "$ac_file" \ 7336 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 7337$as_echo "$as_me: error: could not create $ac_file" >&2;} 7338 { (exit 1); exit 1; }; } 7339 fi 7340 else 7341 $as_echo "/* $configure_input */" \ 7342 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 7343 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 7344$as_echo "$as_me: error: could not create -" >&2;} 7345 { (exit 1); exit 1; }; } 7346 fi 7347# Compute "$ac_file"'s index in $config_headers. 7348_am_arg="$ac_file" 7349_am_stamp_count=1 7350for _am_header in $config_headers :; do 7351 case $_am_header in 7352 $_am_arg | $_am_arg:* ) 7353 break ;; 7354 * ) 7355 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 7356 esac 7357done 7358echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 7359$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7360 X"$_am_arg" : 'X\(//\)[^/]' \| \ 7361 X"$_am_arg" : 'X\(//\)$' \| \ 7362 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 7363$as_echo X"$_am_arg" | 7364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7365 s//\1/ 7366 q 7367 } 7368 /^X\(\/\/\)[^/].*/{ 7369 s//\1/ 7370 q 7371 } 7372 /^X\(\/\/\)$/{ 7373 s//\1/ 7374 q 7375 } 7376 /^X\(\/\).*/{ 7377 s//\1/ 7378 q 7379 } 7380 s/.*/./; q'`/stamp-h$_am_stamp_count 7381 ;; 7382 7383 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 7384$as_echo "$as_me: executing $ac_file commands" >&6;} 7385 ;; 7386 esac 7387 7388 7389 case $ac_file$ac_mode in 7390 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 7391 # Autoconf 2.62 quotes --file arguments for eval, but not when files 7392 # are listed without --file. Let's play safe and only enable the eval 7393 # if we detect the quoting. 7394 case $CONFIG_FILES in 7395 *\'*) eval set x "$CONFIG_FILES" ;; 7396 *) set x $CONFIG_FILES ;; 7397 esac 7398 shift 7399 for mf 7400 do 7401 # Strip MF so we end up with the name of the file. 7402 mf=`echo "$mf" | sed -e 's/:.*$//'` 7403 # Check whether this is an Automake generated Makefile or not. 7404 # We used to match only the files named `Makefile.in', but 7405 # some people rename them; so instead we look at the file content. 7406 # Grep'ing the first line is not enough: some people post-process 7407 # each Makefile.in and add a new line on top of each file to say so. 7408 # Grep'ing the whole file is not good either: AIX grep has a line 7409 # limit of 2048, but all sed's we know have understand at least 4000. 7410 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 7411 dirpart=`$as_dirname -- "$mf" || 7412$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7413 X"$mf" : 'X\(//\)[^/]' \| \ 7414 X"$mf" : 'X\(//\)$' \| \ 7415 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 7416$as_echo X"$mf" | 7417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7418 s//\1/ 7419 q 7420 } 7421 /^X\(\/\/\)[^/].*/{ 7422 s//\1/ 7423 q 7424 } 7425 /^X\(\/\/\)$/{ 7426 s//\1/ 7427 q 7428 } 7429 /^X\(\/\).*/{ 7430 s//\1/ 7431 q 7432 } 7433 s/.*/./; q'` 7434 else 7435 continue 7436 fi 7437 # Extract the definition of DEPDIR, am__include, and am__quote 7438 # from the Makefile without running `make'. 7439 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7440 test -z "$DEPDIR" && continue 7441 am__include=`sed -n 's/^am__include = //p' < "$mf"` 7442 test -z "am__include" && continue 7443 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 7444 # When using ansi2knr, U may be empty or an underscore; expand it 7445 U=`sed -n 's/^U = //p' < "$mf"` 7446 # Find all dependency output files, they are included files with 7447 # $(DEPDIR) in their names. We invoke sed twice because it is the 7448 # simplest approach to changing $(DEPDIR) to its actual value in the 7449 # expansion. 7450 for file in `sed -n " 7451 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7452 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 7453 # Make sure the directory exists. 7454 test -f "$dirpart/$file" && continue 7455 fdir=`$as_dirname -- "$file" || 7456$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7457 X"$file" : 'X\(//\)[^/]' \| \ 7458 X"$file" : 'X\(//\)$' \| \ 7459 X"$file" : 'X\(/\)' \| . 2>/dev/null || 7460$as_echo X"$file" | 7461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7462 s//\1/ 7463 q 7464 } 7465 /^X\(\/\/\)[^/].*/{ 7466 s//\1/ 7467 q 7468 } 7469 /^X\(\/\/\)$/{ 7470 s//\1/ 7471 q 7472 } 7473 /^X\(\/\).*/{ 7474 s//\1/ 7475 q 7476 } 7477 s/.*/./; q'` 7478 { as_dir=$dirpart/$fdir 7479 case $as_dir in #( 7480 -*) as_dir=./$as_dir;; 7481 esac 7482 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 7483 as_dirs= 7484 while :; do 7485 case $as_dir in #( 7486 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 7487 *) as_qdir=$as_dir;; 7488 esac 7489 as_dirs="'$as_qdir' $as_dirs" 7490 as_dir=`$as_dirname -- "$as_dir" || 7491$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7492 X"$as_dir" : 'X\(//\)[^/]' \| \ 7493 X"$as_dir" : 'X\(//\)$' \| \ 7494 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 7495$as_echo X"$as_dir" | 7496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 7497 s//\1/ 7498 q 7499 } 7500 /^X\(\/\/\)[^/].*/{ 7501 s//\1/ 7502 q 7503 } 7504 /^X\(\/\/\)$/{ 7505 s//\1/ 7506 q 7507 } 7508 /^X\(\/\).*/{ 7509 s//\1/ 7510 q 7511 } 7512 s/.*/./; q'` 7513 test -d "$as_dir" && break 7514 done 7515 test -z "$as_dirs" || eval "mkdir $as_dirs" 7516 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 7517$as_echo "$as_me: error: cannot create directory $as_dir" >&2;} 7518 { (exit 1); exit 1; }; }; } 7519 # echo "creating $dirpart/$file" 7520 echo '# dummy' > "$dirpart/$file" 7521 done 7522 done 7523} 7524 ;; 7525 7526 esac 7527done # for ac_tag 7528 7529 7530{ (exit 0); exit 0; } 7531_ACEOF 7532chmod +x $CONFIG_STATUS 7533ac_clean_files=$ac_clean_files_save 7534 7535test $ac_write_fail = 0 || 7536 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 7537$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} 7538 { (exit 1); exit 1; }; } 7539 7540 7541# configure is writing to config.log, and then calls config.status. 7542# config.status does its own redirection, appending to config.log. 7543# Unfortunately, on DOS this fails, as config.log is still kept open 7544# by configure, so config.status won't be able to write to it; its 7545# output is simply discarded. So we exec the FD to /dev/null, 7546# effectively closing config.log, so it can be properly (re)opened and 7547# appended to by config.status. When coming back to configure, we 7548# need to make the FD available again. 7549if test "$no_create" != yes; then 7550 ac_cs_success=: 7551 ac_config_status_args= 7552 test "$silent" = yes && 7553 ac_config_status_args="$ac_config_status_args --quiet" 7554 exec 5>/dev/null 7555 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7556 exec 5>>config.log 7557 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7558 # would make configure fail if this is the last instruction. 7559 $ac_cs_success || { (exit 1); exit 1; } 7560fi 7561if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 7562 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 7563$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 7564fi 7565 7566