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