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