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