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