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