configure revision 7c5adda3
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xinit 1.4.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/app/xinit/-/issues 272$0: about your system, including any error possibly output 273$0: before this message. Then install a modern shell, or 274$0: manually run the script under such a shell if you do 275$0: have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592test -n "$DJDIR" || exec 7<&0 </dev/null 593exec 6>&1 594 595# Name of the host. 596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597# so uname gets run too. 598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600# 601# Initializations. 602# 603ac_default_prefix=/usr/local 604ac_clean_files= 605ac_config_libobj_dir=. 606LIBOBJS= 607cross_compiling=no 608subdirs= 609MFLAGS= 610MAKEFLAGS= 611 612# Identity of this package. 613PACKAGE_NAME='xinit' 614PACKAGE_TARNAME='xinit' 615PACKAGE_VERSION='1.4.2' 616PACKAGE_STRING='xinit 1.4.2' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xinit/-/issues' 618PACKAGE_URL='' 619 620ac_unique_file="Makefile.am" 621# Factoring default headers for most tests. 622ac_includes_default="\ 623#include <stddef.h> 624#ifdef HAVE_STDIO_H 625# include <stdio.h> 626#endif 627#ifdef HAVE_STDLIB_H 628# include <stdlib.h> 629#endif 630#ifdef HAVE_STRING_H 631# include <string.h> 632#endif 633#ifdef HAVE_INTTYPES_H 634# include <inttypes.h> 635#endif 636#ifdef HAVE_STDINT_H 637# include <stdint.h> 638#endif 639#ifdef HAVE_STRINGS_H 640# include <strings.h> 641#endif 642#ifdef HAVE_SYS_TYPES_H 643# include <sys/types.h> 644#endif 645#ifdef HAVE_SYS_STAT_H 646# include <sys/stat.h> 647#endif 648#ifdef HAVE_UNISTD_H 649# include <unistd.h> 650#endif" 651 652ac_header_c_list= 653ac_subst_vars='am__EXEEXT_FALSE 654am__EXEEXT_TRUE 655LTLIBOBJS 656LIBOBJS 657XINITDIR 658XINIT 659XAUTH 660XSERVER 661XTERM 662XCLOCK 663TWM 664XMODMAP 665XRDB 666XCONFIGFILEMAN 667XCONFIGFILE 668XSERVERNAME 669SHELL_CMD 670STARTX_COOKIE_FLAGS 671OPENSSL 672MCOOKIE 673XINIT_LIBS 674XINIT_CFLAGS 675LAUNCHAGENT_XSERVER_FALSE 676LAUNCHAGENT_XSERVER_TRUE 677LAUNCHD_FALSE 678LAUNCHD_TRUE 679launchagentxserver 680bundleidprefix 681launchdaemonsdir 682launchagentsdir 683LAUNCHD 684TRADITIONALCPPFLAGS 685RAWCPPFLAGS 686RAWCPP 687CPP 688MAN_SUBSTS 689XORG_MAN_PAGE 690ADMIN_MAN_DIR 691DRIVER_MAN_DIR 692MISC_MAN_DIR 693FILE_MAN_DIR 694LIB_MAN_DIR 695APP_MAN_DIR 696ADMIN_MAN_SUFFIX 697DRIVER_MAN_SUFFIX 698MISC_MAN_SUFFIX 699FILE_MAN_SUFFIX 700LIB_MAN_SUFFIX 701APP_MAN_SUFFIX 702SED 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711INSTALL_CMD 712PKG_CONFIG_LIBDIR 713PKG_CONFIG_PATH 714PKG_CONFIG 715CHANGELOG_CMD 716STRICT_CFLAGS 717CWARNFLAGS 718BASE_CFLAGS 719am__fastdepCC_FALSE 720am__fastdepCC_TRUE 721CCDEPMODE 722am__nodep 723AMDEPBACKSLASH 724AMDEP_FALSE 725AMDEP_TRUE 726am__include 727DEPDIR 728OBJEXT 729EXEEXT 730ac_ct_CC 731CPPFLAGS 732LDFLAGS 733CFLAGS 734CC 735AM_BACKSLASH 736AM_DEFAULT_VERBOSITY 737AM_DEFAULT_V 738AM_V 739CSCOPE 740ETAGS 741CTAGS 742am__untar 743am__tar 744AMTAR 745am__leading_dot 746SET_MAKE 747AWK 748mkdir_p 749MKDIR_P 750INSTALL_STRIP_PROGRAM 751STRIP 752install_sh 753MAKEINFO 754AUTOHEADER 755AUTOMAKE 756AUTOCONF 757ACLOCAL 758VERSION 759PACKAGE 760CYGPATH_W 761am__isrc 762INSTALL_DATA 763INSTALL_SCRIPT 764INSTALL_PROGRAM 765target_alias 766host_alias 767build_alias 768LIBS 769ECHO_T 770ECHO_N 771ECHO_C 772DEFS 773mandir 774localedir 775libdir 776psdir 777pdfdir 778dvidir 779htmldir 780infodir 781docdir 782oldincludedir 783includedir 784runstatedir 785localstatedir 786sharedstatedir 787sysconfdir 788datadir 789datarootdir 790libexecdir 791sbindir 792bindir 793program_transform_name 794prefix 795exec_prefix 796PACKAGE_URL 797PACKAGE_BUGREPORT 798PACKAGE_STRING 799PACKAGE_VERSION 800PACKAGE_TARNAME 801PACKAGE_NAME 802PATH_SEPARATOR 803SHELL 804am__quote' 805ac_subst_files='' 806ac_user_opts=' 807enable_option_checking 808enable_silent_rules 809enable_dependency_tracking 810enable_selective_werror 811enable_strict_compilation 812with_xrdb 813with_xmodmap 814with_twm 815with_xclock 816with_xterm 817with_xserver 818with_xauth 819with_xinit 820with_xinitdir 821with_launchd 822with_launchagents_dir 823with_launchagent_xserver 824with_launchdaemons_dir 825with_launchd_id_prefix 826with_bundle_id_prefix 827' 828 ac_precious_vars='build_alias 829host_alias 830target_alias 831CC 832CFLAGS 833LDFLAGS 834LIBS 835CPPFLAGS 836PKG_CONFIG 837PKG_CONFIG_PATH 838PKG_CONFIG_LIBDIR 839CPP 840XINIT_CFLAGS 841XINIT_LIBS' 842 843 844# Initialize some variables set by options. 845ac_init_help= 846ac_init_version=false 847ac_unrecognized_opts= 848ac_unrecognized_sep= 849# The variables have the same names as the options, with 850# dashes changed to underlines. 851cache_file=/dev/null 852exec_prefix=NONE 853no_create= 854no_recursion= 855prefix=NONE 856program_prefix=NONE 857program_suffix=NONE 858program_transform_name=s,x,x, 859silent= 860site= 861srcdir= 862verbose= 863x_includes=NONE 864x_libraries=NONE 865 866# Installation directory options. 867# These are left unexpanded so users can "make install exec_prefix=/foo" 868# and all the variables that are supposed to be based on exec_prefix 869# by default will actually change. 870# Use braces instead of parens because sh, perl, etc. also accept them. 871# (The list follows the same order as the GNU Coding Standards.) 872bindir='${exec_prefix}/bin' 873sbindir='${exec_prefix}/sbin' 874libexecdir='${exec_prefix}/libexec' 875datarootdir='${prefix}/share' 876datadir='${datarootdir}' 877sysconfdir='${prefix}/etc' 878sharedstatedir='${prefix}/com' 879localstatedir='${prefix}/var' 880runstatedir='${localstatedir}/run' 881includedir='${prefix}/include' 882oldincludedir='/usr/include' 883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 884infodir='${datarootdir}/info' 885htmldir='${docdir}' 886dvidir='${docdir}' 887pdfdir='${docdir}' 888psdir='${docdir}' 889libdir='${exec_prefix}/lib' 890localedir='${datarootdir}/locale' 891mandir='${datarootdir}/man' 892 893ac_prev= 894ac_dashdash= 895for ac_option 896do 897 # If the previous option needs an argument, assign it. 898 if test -n "$ac_prev"; then 899 eval $ac_prev=\$ac_option 900 ac_prev= 901 continue 902 fi 903 904 case $ac_option in 905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 906 *=) ac_optarg= ;; 907 *) ac_optarg=yes ;; 908 esac 909 910 case $ac_dashdash$ac_option in 911 --) 912 ac_dashdash=yes ;; 913 914 -bindir | --bindir | --bindi | --bind | --bin | --bi) 915 ac_prev=bindir ;; 916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 917 bindir=$ac_optarg ;; 918 919 -build | --build | --buil | --bui | --bu) 920 ac_prev=build_alias ;; 921 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 922 build_alias=$ac_optarg ;; 923 924 -cache-file | --cache-file | --cache-fil | --cache-fi \ 925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 926 ac_prev=cache_file ;; 927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 929 cache_file=$ac_optarg ;; 930 931 --config-cache | -C) 932 cache_file=config.cache ;; 933 934 -datadir | --datadir | --datadi | --datad) 935 ac_prev=datadir ;; 936 -datadir=* | --datadir=* | --datadi=* | --datad=*) 937 datadir=$ac_optarg ;; 938 939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 940 | --dataroo | --dataro | --datar) 941 ac_prev=datarootdir ;; 942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 944 datarootdir=$ac_optarg ;; 945 946 -disable-* | --disable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error $? "invalid feature name: \`$ac_useropt'" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955"enable_$ac_useropt" 956"*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=no ;; 961 962 -docdir | --docdir | --docdi | --doc | --do) 963 ac_prev=docdir ;; 964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 965 docdir=$ac_optarg ;; 966 967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 968 ac_prev=dvidir ;; 969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 970 dvidir=$ac_optarg ;; 971 972 -enable-* | --enable-*) 973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 976 as_fn_error $? "invalid feature name: \`$ac_useropt'" 977 ac_useropt_orig=$ac_useropt 978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 979 case $ac_user_opts in 980 *" 981"enable_$ac_useropt" 982"*) ;; 983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 984 ac_unrecognized_sep=', ';; 985 esac 986 eval enable_$ac_useropt=\$ac_optarg ;; 987 988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 990 | --exec | --exe | --ex) 991 ac_prev=exec_prefix ;; 992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 994 | --exec=* | --exe=* | --ex=*) 995 exec_prefix=$ac_optarg ;; 996 997 -gas | --gas | --ga | --g) 998 # Obsolete; use --with-gas. 999 with_gas=yes ;; 1000 1001 -help | --help | --hel | --he | -h) 1002 ac_init_help=long ;; 1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1004 ac_init_help=recursive ;; 1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1006 ac_init_help=short ;; 1007 1008 -host | --host | --hos | --ho) 1009 ac_prev=host_alias ;; 1010 -host=* | --host=* | --hos=* | --ho=*) 1011 host_alias=$ac_optarg ;; 1012 1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1014 ac_prev=htmldir ;; 1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1016 | --ht=*) 1017 htmldir=$ac_optarg ;; 1018 1019 -includedir | --includedir | --includedi | --included | --include \ 1020 | --includ | --inclu | --incl | --inc) 1021 ac_prev=includedir ;; 1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1023 | --includ=* | --inclu=* | --incl=* | --inc=*) 1024 includedir=$ac_optarg ;; 1025 1026 -infodir | --infodir | --infodi | --infod | --info | --inf) 1027 ac_prev=infodir ;; 1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1029 infodir=$ac_optarg ;; 1030 1031 -libdir | --libdir | --libdi | --libd) 1032 ac_prev=libdir ;; 1033 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1034 libdir=$ac_optarg ;; 1035 1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1037 | --libexe | --libex | --libe) 1038 ac_prev=libexecdir ;; 1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1040 | --libexe=* | --libex=* | --libe=*) 1041 libexecdir=$ac_optarg ;; 1042 1043 -localedir | --localedir | --localedi | --localed | --locale) 1044 ac_prev=localedir ;; 1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1046 localedir=$ac_optarg ;; 1047 1048 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1049 | --localstate | --localstat | --localsta | --localst | --locals) 1050 ac_prev=localstatedir ;; 1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1053 localstatedir=$ac_optarg ;; 1054 1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1056 ac_prev=mandir ;; 1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1058 mandir=$ac_optarg ;; 1059 1060 -nfp | --nfp | --nf) 1061 # Obsolete; use --without-fp. 1062 with_fp=no ;; 1063 1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1065 | --no-cr | --no-c | -n) 1066 no_create=yes ;; 1067 1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1070 no_recursion=yes ;; 1071 1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1074 | --oldin | --oldi | --old | --ol | --o) 1075 ac_prev=oldincludedir ;; 1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1079 oldincludedir=$ac_optarg ;; 1080 1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1082 ac_prev=prefix ;; 1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1084 prefix=$ac_optarg ;; 1085 1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1087 | --program-pre | --program-pr | --program-p) 1088 ac_prev=program_prefix ;; 1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1091 program_prefix=$ac_optarg ;; 1092 1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1094 | --program-suf | --program-su | --program-s) 1095 ac_prev=program_suffix ;; 1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1098 program_suffix=$ac_optarg ;; 1099 1100 -program-transform-name | --program-transform-name \ 1101 | --program-transform-nam | --program-transform-na \ 1102 | --program-transform-n | --program-transform- \ 1103 | --program-transform | --program-transfor \ 1104 | --program-transfo | --program-transf \ 1105 | --program-trans | --program-tran \ 1106 | --progr-tra | --program-tr | --program-t) 1107 ac_prev=program_transform_name ;; 1108 -program-transform-name=* | --program-transform-name=* \ 1109 | --program-transform-nam=* | --program-transform-na=* \ 1110 | --program-transform-n=* | --program-transform-=* \ 1111 | --program-transform=* | --program-transfor=* \ 1112 | --program-transfo=* | --program-transf=* \ 1113 | --program-trans=* | --program-tran=* \ 1114 | --progr-tra=* | --program-tr=* | --program-t=*) 1115 program_transform_name=$ac_optarg ;; 1116 1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1118 ac_prev=pdfdir ;; 1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1120 pdfdir=$ac_optarg ;; 1121 1122 -psdir | --psdir | --psdi | --psd | --ps) 1123 ac_prev=psdir ;; 1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1125 psdir=$ac_optarg ;; 1126 1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1128 | -silent | --silent | --silen | --sile | --sil) 1129 silent=yes ;; 1130 1131 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1132 | --runstate | --runstat | --runsta | --runst | --runs \ 1133 | --run | --ru | --r) 1134 ac_prev=runstatedir ;; 1135 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1136 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1137 | --run=* | --ru=* | --r=*) 1138 runstatedir=$ac_optarg ;; 1139 1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1141 ac_prev=sbindir ;; 1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1143 | --sbi=* | --sb=*) 1144 sbindir=$ac_optarg ;; 1145 1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1148 | --sharedst | --shareds | --shared | --share | --shar \ 1149 | --sha | --sh) 1150 ac_prev=sharedstatedir ;; 1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1154 | --sha=* | --sh=*) 1155 sharedstatedir=$ac_optarg ;; 1156 1157 -site | --site | --sit) 1158 ac_prev=site ;; 1159 -site=* | --site=* | --sit=*) 1160 site=$ac_optarg ;; 1161 1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1163 ac_prev=srcdir ;; 1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1165 srcdir=$ac_optarg ;; 1166 1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1168 | --syscon | --sysco | --sysc | --sys | --sy) 1169 ac_prev=sysconfdir ;; 1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1172 sysconfdir=$ac_optarg ;; 1173 1174 -target | --target | --targe | --targ | --tar | --ta | --t) 1175 ac_prev=target_alias ;; 1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1177 target_alias=$ac_optarg ;; 1178 1179 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1180 verbose=yes ;; 1181 1182 -version | --version | --versio | --versi | --vers | -V) 1183 ac_init_version=: ;; 1184 1185 -with-* | --with-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: \`$ac_useropt'" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194"with_$ac_useropt" 1195"*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=\$ac_optarg ;; 1200 1201 -without-* | --without-*) 1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1203 # Reject names that are not valid shell variable names. 1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1205 as_fn_error $? "invalid package name: \`$ac_useropt'" 1206 ac_useropt_orig=$ac_useropt 1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1208 case $ac_user_opts in 1209 *" 1210"with_$ac_useropt" 1211"*) ;; 1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1213 ac_unrecognized_sep=', ';; 1214 esac 1215 eval with_$ac_useropt=no ;; 1216 1217 --x) 1218 # Obsolete; use --with-x. 1219 with_x=yes ;; 1220 1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1222 | --x-incl | --x-inc | --x-in | --x-i) 1223 ac_prev=x_includes ;; 1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1226 x_includes=$ac_optarg ;; 1227 1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1230 ac_prev=x_libraries ;; 1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1233 x_libraries=$ac_optarg ;; 1234 1235 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1236Try \`$0 --help' for more information" 1237 ;; 1238 1239 *=*) 1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1241 # Reject names that are not valid shell variable names. 1242 case $ac_envvar in #( 1243 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1245 esac 1246 eval $ac_envvar=\$ac_optarg 1247 export $ac_envvar ;; 1248 1249 *) 1250 # FIXME: should be removed in autoconf 3.0. 1251 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1253 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1255 ;; 1256 1257 esac 1258done 1259 1260if test -n "$ac_prev"; then 1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1262 as_fn_error $? "missing argument to $ac_option" 1263fi 1264 1265if test -n "$ac_unrecognized_opts"; then 1266 case $enable_option_checking in 1267 no) ;; 1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1269 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1270 esac 1271fi 1272 1273# Check all directory arguments for consistency. 1274for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1275 datadir sysconfdir sharedstatedir localstatedir includedir \ 1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1277 libdir localedir mandir runstatedir 1278do 1279 eval ac_val=\$$ac_var 1280 # Remove trailing slashes. 1281 case $ac_val in 1282 */ ) 1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1284 eval $ac_var=\$ac_val;; 1285 esac 1286 # Be sure to have absolute directory names. 1287 case $ac_val in 1288 [\\/$]* | ?:[\\/]* ) continue;; 1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1290 esac 1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1292done 1293 1294# There might be people who depend on the old broken behavior: `$host' 1295# used to hold the argument of --host etc. 1296# FIXME: To remove some day. 1297build=$build_alias 1298host=$host_alias 1299target=$target_alias 1300 1301# FIXME: To remove some day. 1302if test "x$host_alias" != x; then 1303 if test "x$build_alias" = x; then 1304 cross_compiling=maybe 1305 elif test "x$build_alias" != "x$host_alias"; then 1306 cross_compiling=yes 1307 fi 1308fi 1309 1310ac_tool_prefix= 1311test -n "$host_alias" && ac_tool_prefix=$host_alias- 1312 1313test "$silent" = yes && exec 6>/dev/null 1314 1315 1316ac_pwd=`pwd` && test -n "$ac_pwd" && 1317ac_ls_di=`ls -di .` && 1318ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1319 as_fn_error $? "working directory cannot be determined" 1320test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1321 as_fn_error $? "pwd does not report name of working directory" 1322 1323 1324# Find the source files, if location was not specified. 1325if test -z "$srcdir"; then 1326 ac_srcdir_defaulted=yes 1327 # Try the directory containing this script, then the parent directory. 1328 ac_confdir=`$as_dirname -- "$as_myself" || 1329$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1330 X"$as_myself" : 'X\(//\)[^/]' \| \ 1331 X"$as_myself" : 'X\(//\)$' \| \ 1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1333printf "%s\n" X"$as_myself" | 1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\/\)[^/].*/{ 1339 s//\1/ 1340 q 1341 } 1342 /^X\(\/\/\)$/{ 1343 s//\1/ 1344 q 1345 } 1346 /^X\(\/\).*/{ 1347 s//\1/ 1348 q 1349 } 1350 s/.*/./; q'` 1351 srcdir=$ac_confdir 1352 if test ! -r "$srcdir/$ac_unique_file"; then 1353 srcdir=.. 1354 fi 1355else 1356 ac_srcdir_defaulted=no 1357fi 1358if test ! -r "$srcdir/$ac_unique_file"; then 1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1361fi 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1363ac_abs_confdir=`( 1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1365 pwd)` 1366# When building in place, set srcdir=. 1367if test "$ac_abs_confdir" = "$ac_pwd"; then 1368 srcdir=. 1369fi 1370# Remove unnecessary trailing slashes from srcdir. 1371# Double slashes in file names in object file debugging info 1372# mess up M-x gdb in Emacs. 1373case $srcdir in 1374*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1375esac 1376for ac_var in $ac_precious_vars; do 1377 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1378 eval ac_env_${ac_var}_value=\$${ac_var} 1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1380 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1381done 1382 1383# 1384# Report the --help message. 1385# 1386if test "$ac_init_help" = "long"; then 1387 # Omit some internal or obsolete options to make the list less imposing. 1388 # This message is too long to be a string in the A/UX 3.1 sh. 1389 cat <<_ACEOF 1390\`configure' configures xinit 1.4.2 to adapt to many kinds of systems. 1391 1392Usage: $0 [OPTION]... [VAR=VALUE]... 1393 1394To assign environment variables (e.g., CC, CFLAGS...), specify them as 1395VAR=VALUE. See below for descriptions of some of the useful variables. 1396 1397Defaults for the options are specified in brackets. 1398 1399Configuration: 1400 -h, --help display this help and exit 1401 --help=short display options specific to this package 1402 --help=recursive display the short help of all the included packages 1403 -V, --version display version information and exit 1404 -q, --quiet, --silent do not print \`checking ...' messages 1405 --cache-file=FILE cache test results in FILE [disabled] 1406 -C, --config-cache alias for \`--cache-file=config.cache' 1407 -n, --no-create do not create output files 1408 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1409 1410Installation directories: 1411 --prefix=PREFIX install architecture-independent files in PREFIX 1412 [$ac_default_prefix] 1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1414 [PREFIX] 1415 1416By default, \`make install' will install all the files in 1417\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1418an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1419for instance \`--prefix=\$HOME'. 1420 1421For better control, use the options below. 1422 1423Fine tuning of the installation directories: 1424 --bindir=DIR user executables [EPREFIX/bin] 1425 --sbindir=DIR system admin executables [EPREFIX/sbin] 1426 --libexecdir=DIR program executables [EPREFIX/libexec] 1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1430 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1431 --libdir=DIR object code libraries [EPREFIX/lib] 1432 --includedir=DIR C header files [PREFIX/include] 1433 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1436 --infodir=DIR info documentation [DATAROOTDIR/info] 1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1438 --mandir=DIR man documentation [DATAROOTDIR/man] 1439 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit] 1440 --htmldir=DIR html documentation [DOCDIR] 1441 --dvidir=DIR dvi documentation [DOCDIR] 1442 --pdfdir=DIR pdf documentation [DOCDIR] 1443 --psdir=DIR ps documentation [DOCDIR] 1444_ACEOF 1445 1446 cat <<\_ACEOF 1447 1448Program names: 1449 --program-prefix=PREFIX prepend PREFIX to installed program names 1450 --program-suffix=SUFFIX append SUFFIX to installed program names 1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1452 1453System types: 1454 --build=BUILD configure for building on BUILD [guessed] 1455 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1456_ACEOF 1457fi 1458 1459if test -n "$ac_init_help"; then 1460 case $ac_init_help in 1461 short | recursive ) echo "Configuration of xinit 1.4.2:";; 1462 esac 1463 cat <<\_ACEOF 1464 1465Optional Features: 1466 --disable-option-checking ignore unrecognized --enable/--with options 1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1469 --enable-silent-rules less verbose build output (undo: "make V=1") 1470 --disable-silent-rules verbose build output (undo: "make V=0") 1471 --enable-dependency-tracking 1472 do not reject slow dependency extractors 1473 --disable-dependency-tracking 1474 speeds up one-time build 1475 --disable-selective-werror 1476 Turn off selective compiler errors. (default: 1477 enabled) 1478 --enable-strict-compilation 1479 Enable all warnings from compiler and make them 1480 errors (default: disabled) 1481 1482Optional Packages: 1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1485 --with-xrdb=XRDB Path to xrdb 1486 --with-xmodmap=XMODMAP Path to xmodmap 1487 --with-twm=TWM Path to twm 1488 --with-xclock=XCLOCK Path to xclock 1489 --with-xterm=XTERM Path to xterm 1490 --with-xserver=XSERVER Path to default X server 1491 --with-xauth=XAUTH Path to xauth 1492 --with-xinit=XINIT Path to xinit 1493 --with-xinitdir=XINITDIR 1494 Path to xinitdir 1495 --with-launchd Build with support for Apple's launchd (default: 1496 auto) 1497 --with-launchagents-dir=PATH 1498 Path to launchd's LaunchAgents directory (default: 1499 /Library/LaunchAgents) 1500 --with-launchagent-xserver=PATH 1501 Path to the X server which the LaunchAgent should 1502 start (if not provided, let startx decide)" 1503 --with-launchdaemons-dir=PATH 1504 Path to launchd's LaunchDaemonss directory (default: 1505 /Library/LaunchDaemons) 1506 --with-launchd-id-prefix=PATH 1507 Deprecated: Use --with-bundle-id-prefix. 1508 --with-bundle-id-prefix=PATH 1509 Prefix to use for bundle identifiers (default: 1510 org.x) 1511 1512Some influential environment variables: 1513 CC C compiler command 1514 CFLAGS C compiler flags 1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1516 nonstandard directory <lib dir> 1517 LIBS libraries to pass to the linker, e.g. -l<library> 1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1519 you have headers in a nonstandard directory <include dir> 1520 PKG_CONFIG path to pkg-config utility 1521 PKG_CONFIG_PATH 1522 directories to add to pkg-config's search path 1523 PKG_CONFIG_LIBDIR 1524 path overriding pkg-config's built-in search path 1525 CPP C preprocessor 1526 XINIT_CFLAGS 1527 C compiler flags for XINIT, overriding pkg-config 1528 XINIT_LIBS linker flags for XINIT, overriding pkg-config 1529 1530Use these variables to override the choices made by `configure' or to help 1531it to find libraries and programs with nonstandard names/locations. 1532 1533Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>. 1534_ACEOF 1535ac_status=$? 1536fi 1537 1538if test "$ac_init_help" = "recursive"; then 1539 # If there are subdirs, report their specific --help. 1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1541 test -d "$ac_dir" || 1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1543 continue 1544 ac_builddir=. 1545 1546case "$ac_dir" in 1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1548*) 1549 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1550 # A ".." for each directory in $ac_dir_suffix. 1551 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1552 case $ac_top_builddir_sub in 1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1555 esac ;; 1556esac 1557ac_abs_top_builddir=$ac_pwd 1558ac_abs_builddir=$ac_pwd$ac_dir_suffix 1559# for backward compatibility: 1560ac_top_builddir=$ac_top_build_prefix 1561 1562case $srcdir in 1563 .) # We are building in place. 1564 ac_srcdir=. 1565 ac_top_srcdir=$ac_top_builddir_sub 1566 ac_abs_top_srcdir=$ac_pwd ;; 1567 [\\/]* | ?:[\\/]* ) # Absolute name. 1568 ac_srcdir=$srcdir$ac_dir_suffix; 1569 ac_top_srcdir=$srcdir 1570 ac_abs_top_srcdir=$srcdir ;; 1571 *) # Relative name. 1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1573 ac_top_srcdir=$ac_top_build_prefix$srcdir 1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1575esac 1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1577 1578 cd "$ac_dir" || { ac_status=$?; continue; } 1579 # Check for configure.gnu first; this name is used for a wrapper for 1580 # Metaconfig's "Configure" on case-insensitive file systems. 1581 if test -f "$ac_srcdir/configure.gnu"; then 1582 echo && 1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1584 elif test -f "$ac_srcdir/configure"; then 1585 echo && 1586 $SHELL "$ac_srcdir/configure" --help=recursive 1587 else 1588 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1589 fi || ac_status=$? 1590 cd "$ac_pwd" || { ac_status=$?; break; } 1591 done 1592fi 1593 1594test -n "$ac_init_help" && exit $ac_status 1595if $ac_init_version; then 1596 cat <<\_ACEOF 1597xinit configure 1.4.2 1598generated by GNU Autoconf 2.71 1599 1600Copyright (C) 2021 Free Software Foundation, Inc. 1601This configure script is free software; the Free Software Foundation 1602gives unlimited permission to copy, distribute and modify it. 1603_ACEOF 1604 exit 1605fi 1606 1607## ------------------------ ## 1608## Autoconf initialization. ## 1609## ------------------------ ## 1610 1611# ac_fn_c_try_compile LINENO 1612# -------------------------- 1613# Try to compile conftest.$ac_ext, and return whether this succeeded. 1614ac_fn_c_try_compile () 1615{ 1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1617 rm -f conftest.$ac_objext conftest.beam 1618 if { { ac_try="$ac_compile" 1619case "(($ac_try" in 1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1621 *) ac_try_echo=$ac_try;; 1622esac 1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1624printf "%s\n" "$ac_try_echo"; } >&5 1625 (eval "$ac_compile") 2>conftest.err 1626 ac_status=$? 1627 if test -s conftest.err; then 1628 grep -v '^ *+' conftest.err >conftest.er1 1629 cat conftest.er1 >&5 1630 mv -f conftest.er1 conftest.err 1631 fi 1632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; } && { 1634 test -z "$ac_c_werror_flag" || 1635 test ! -s conftest.err 1636 } && test -s conftest.$ac_objext 1637then : 1638 ac_retval=0 1639else $as_nop 1640 printf "%s\n" "$as_me: failed program was:" >&5 1641sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 1644fi 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 as_fn_set_status $ac_retval 1647 1648} # ac_fn_c_try_compile 1649 1650# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1651# ------------------------------------------------------------------ 1652# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1653# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1654ac_fn_check_decl () 1655{ 1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1657 as_decl_name=`echo $2|sed 's/ *(.*//'` 1658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1659printf %s "checking whether $as_decl_name is declared... " >&6; } 1660if eval test \${$3+y} 1661then : 1662 printf %s "(cached) " >&6 1663else $as_nop 1664 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1665 eval ac_save_FLAGS=\$$6 1666 as_fn_append $6 " $5" 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1668/* end confdefs.h. */ 1669$4 1670int 1671main (void) 1672{ 1673#ifndef $as_decl_name 1674#ifdef __cplusplus 1675 (void) $as_decl_use; 1676#else 1677 (void) $as_decl_name; 1678#endif 1679#endif 1680 1681 ; 1682 return 0; 1683} 1684_ACEOF 1685if ac_fn_c_try_compile "$LINENO" 1686then : 1687 eval "$3=yes" 1688else $as_nop 1689 eval "$3=no" 1690fi 1691rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1692 eval $6=\$ac_save_FLAGS 1693 1694fi 1695eval ac_res=\$$3 1696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1697printf "%s\n" "$ac_res" >&6; } 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 1700} # ac_fn_check_decl 1701 1702# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1703# ------------------------------------------------------- 1704# Tests whether HEADER exists and can be compiled using the include files in 1705# INCLUDES, setting the cache variable VAR accordingly. 1706ac_fn_c_check_header_compile () 1707{ 1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1710printf %s "checking for $2... " >&6; } 1711if eval test \${$3+y} 1712then : 1713 printf %s "(cached) " >&6 1714else $as_nop 1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1716/* end confdefs.h. */ 1717$4 1718#include <$2> 1719_ACEOF 1720if ac_fn_c_try_compile "$LINENO" 1721then : 1722 eval "$3=yes" 1723else $as_nop 1724 eval "$3=no" 1725fi 1726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1727fi 1728eval ac_res=\$$3 1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1730printf "%s\n" "$ac_res" >&6; } 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1732 1733} # ac_fn_c_check_header_compile 1734 1735# ac_fn_c_try_link LINENO 1736# ----------------------- 1737# Try to link conftest.$ac_ext, and return whether this succeeded. 1738ac_fn_c_try_link () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1742 if { { ac_try="$ac_link" 1743case "(($ac_try" in 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1745 *) ac_try_echo=$ac_try;; 1746esac 1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1748printf "%s\n" "$ac_try_echo"; } >&5 1749 (eval "$ac_link") 2>conftest.err 1750 ac_status=$? 1751 if test -s conftest.err; then 1752 grep -v '^ *+' conftest.err >conftest.er1 1753 cat conftest.er1 >&5 1754 mv -f conftest.er1 conftest.err 1755 fi 1756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1757 test $ac_status = 0; } && { 1758 test -z "$ac_c_werror_flag" || 1759 test ! -s conftest.err 1760 } && test -s conftest$ac_exeext && { 1761 test "$cross_compiling" = yes || 1762 test -x conftest$ac_exeext 1763 } 1764then : 1765 ac_retval=0 1766else $as_nop 1767 printf "%s\n" "$as_me: failed program was:" >&5 1768sed 's/^/| /' conftest.$ac_ext >&5 1769 1770 ac_retval=1 1771fi 1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1774 # interfere with the next link command; also delete a directory that is 1775 # left behind by Apple's compiler. We do this before executing the actions. 1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 as_fn_set_status $ac_retval 1779 1780} # ac_fn_c_try_link 1781 1782# ac_fn_c_try_cpp LINENO 1783# ---------------------- 1784# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1785ac_fn_c_try_cpp () 1786{ 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 if { { ac_try="$ac_cpp conftest.$ac_ext" 1789case "(($ac_try" in 1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1791 *) ac_try_echo=$ac_try;; 1792esac 1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1794printf "%s\n" "$ac_try_echo"; } >&5 1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1796 ac_status=$? 1797 if test -s conftest.err; then 1798 grep -v '^ *+' conftest.err >conftest.er1 1799 cat conftest.er1 >&5 1800 mv -f conftest.er1 conftest.err 1801 fi 1802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1803 test $ac_status = 0; } > conftest.i && { 1804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1805 test ! -s conftest.err 1806 } 1807then : 1808 ac_retval=0 1809else $as_nop 1810 printf "%s\n" "$as_me: failed program was:" >&5 1811sed 's/^/| /' conftest.$ac_ext >&5 1812 1813 ac_retval=1 1814fi 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 as_fn_set_status $ac_retval 1817 1818} # ac_fn_c_try_cpp 1819ac_configure_args_raw= 1820for ac_arg 1821do 1822 case $ac_arg in 1823 *\'*) 1824 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1825 esac 1826 as_fn_append ac_configure_args_raw " '$ac_arg'" 1827done 1828 1829case $ac_configure_args_raw in 1830 *$as_nl*) 1831 ac_safe_unquote= ;; 1832 *) 1833 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1834 ac_unsafe_a="$ac_unsafe_z#~" 1835 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1836 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1837esac 1838 1839cat >config.log <<_ACEOF 1840This file contains any messages produced by compilers while 1841running configure, to aid debugging if configure makes a mistake. 1842 1843It was created by xinit $as_me 1.4.2, which was 1844generated by GNU Autoconf 2.71. Invocation command line was 1845 1846 $ $0$ac_configure_args_raw 1847 1848_ACEOF 1849exec 5>>config.log 1850{ 1851cat <<_ASUNAME 1852## --------- ## 1853## Platform. ## 1854## --------- ## 1855 1856hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1857uname -m = `(uname -m) 2>/dev/null || echo unknown` 1858uname -r = `(uname -r) 2>/dev/null || echo unknown` 1859uname -s = `(uname -s) 2>/dev/null || echo unknown` 1860uname -v = `(uname -v) 2>/dev/null || echo unknown` 1861 1862/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1863/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1864 1865/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1866/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1867/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1868/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1869/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1870/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1871/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1872 1873_ASUNAME 1874 1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1876for as_dir in $PATH 1877do 1878 IFS=$as_save_IFS 1879 case $as_dir in #((( 1880 '') as_dir=./ ;; 1881 */) ;; 1882 *) as_dir=$as_dir/ ;; 1883 esac 1884 printf "%s\n" "PATH: $as_dir" 1885 done 1886IFS=$as_save_IFS 1887 1888} >&5 1889 1890cat >&5 <<_ACEOF 1891 1892 1893## ----------- ## 1894## Core tests. ## 1895## ----------- ## 1896 1897_ACEOF 1898 1899 1900# Keep a trace of the command line. 1901# Strip out --no-create and --no-recursion so they do not pile up. 1902# Strip out --silent because we don't want to record it for future runs. 1903# Also quote any args containing shell meta-characters. 1904# Make two passes to allow for proper duplicate-argument suppression. 1905ac_configure_args= 1906ac_configure_args0= 1907ac_configure_args1= 1908ac_must_keep_next=false 1909for ac_pass in 1 2 1910do 1911 for ac_arg 1912 do 1913 case $ac_arg in 1914 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1916 | -silent | --silent | --silen | --sile | --sil) 1917 continue ;; 1918 *\'*) 1919 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1920 esac 1921 case $ac_pass in 1922 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1923 2) 1924 as_fn_append ac_configure_args1 " '$ac_arg'" 1925 if test $ac_must_keep_next = true; then 1926 ac_must_keep_next=false # Got value, back to normal. 1927 else 1928 case $ac_arg in 1929 *=* | --config-cache | -C | -disable-* | --disable-* \ 1930 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1931 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1932 | -with-* | --with-* | -without-* | --without-* | --x) 1933 case "$ac_configure_args0 " in 1934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1935 esac 1936 ;; 1937 -* ) ac_must_keep_next=true ;; 1938 esac 1939 fi 1940 as_fn_append ac_configure_args " '$ac_arg'" 1941 ;; 1942 esac 1943 done 1944done 1945{ ac_configure_args0=; unset ac_configure_args0;} 1946{ ac_configure_args1=; unset ac_configure_args1;} 1947 1948# When interrupted or exit'd, cleanup temporary files, and complete 1949# config.log. We remove comments because anyway the quotes in there 1950# would cause problems or look ugly. 1951# WARNING: Use '\'' to represent an apostrophe within the trap. 1952# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1953trap 'exit_status=$? 1954 # Sanitize IFS. 1955 IFS=" "" $as_nl" 1956 # Save into config.log some information that might help in debugging. 1957 { 1958 echo 1959 1960 printf "%s\n" "## ---------------- ## 1961## Cache variables. ## 1962## ---------------- ##" 1963 echo 1964 # The following way of writing the cache mishandles newlines in values, 1965( 1966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1967 eval ac_val=\$$ac_var 1968 case $ac_val in #( 1969 *${as_nl}*) 1970 case $ac_var in #( 1971 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1972printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1973 esac 1974 case $ac_var in #( 1975 _ | IFS | as_nl) ;; #( 1976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1977 *) { eval $ac_var=; unset $ac_var;} ;; 1978 esac ;; 1979 esac 1980 done 1981 (set) 2>&1 | 1982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1983 *${as_nl}ac_space=\ *) 1984 sed -n \ 1985 "s/'\''/'\''\\\\'\'''\''/g; 1986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1987 ;; #( 1988 *) 1989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1990 ;; 1991 esac | 1992 sort 1993) 1994 echo 1995 1996 printf "%s\n" "## ----------------- ## 1997## Output variables. ## 1998## ----------------- ##" 1999 echo 2000 for ac_var in $ac_subst_vars 2001 do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in 2004 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2005 esac 2006 printf "%s\n" "$ac_var='\''$ac_val'\''" 2007 done | sort 2008 echo 2009 2010 if test -n "$ac_subst_files"; then 2011 printf "%s\n" "## ------------------- ## 2012## File substitutions. ## 2013## ------------------- ##" 2014 echo 2015 for ac_var in $ac_subst_files 2016 do 2017 eval ac_val=\$$ac_var 2018 case $ac_val in 2019 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2020 esac 2021 printf "%s\n" "$ac_var='\''$ac_val'\''" 2022 done | sort 2023 echo 2024 fi 2025 2026 if test -s confdefs.h; then 2027 printf "%s\n" "## ----------- ## 2028## confdefs.h. ## 2029## ----------- ##" 2030 echo 2031 cat confdefs.h 2032 echo 2033 fi 2034 test "$ac_signal" != 0 && 2035 printf "%s\n" "$as_me: caught signal $ac_signal" 2036 printf "%s\n" "$as_me: exit $exit_status" 2037 } >&5 2038 rm -f core *.core core.conftest.* && 2039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2040 exit $exit_status 2041' 0 2042for ac_signal in 1 2 13 15; do 2043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2044done 2045ac_signal=0 2046 2047# confdefs.h avoids OS command line length limits that DEFS can exceed. 2048rm -f -r conftest* confdefs.h 2049 2050printf "%s\n" "/* confdefs.h */" > confdefs.h 2051 2052# Predefined preprocessor variables. 2053 2054printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2055 2056printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2057 2058printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2059 2060printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2061 2062printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2063 2064printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2065 2066 2067# Let the site file select an alternate cache file if it wants to. 2068# Prefer an explicitly selected file to automatically selected ones. 2069if test -n "$CONFIG_SITE"; then 2070 ac_site_files="$CONFIG_SITE" 2071elif test "x$prefix" != xNONE; then 2072 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2073else 2074 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2075fi 2076 2077for ac_site_file in $ac_site_files 2078do 2079 case $ac_site_file in #( 2080 */*) : 2081 ;; #( 2082 *) : 2083 ac_site_file=./$ac_site_file ;; 2084esac 2085 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2087printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2088 sed 's/^/| /' "$ac_site_file" >&5 2089 . "$ac_site_file" \ 2090 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2091printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2092as_fn_error $? "failed to load site script $ac_site_file 2093See \`config.log' for more details" "$LINENO" 5; } 2094 fi 2095done 2096 2097if test -r "$cache_file"; then 2098 # Some versions of bash will fail to source /dev/null (special files 2099 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2100 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2102printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2103 case $cache_file in 2104 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2105 *) . "./$cache_file";; 2106 esac 2107 fi 2108else 2109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2110printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2111 >$cache_file 2112fi 2113 2114# Test code for whether the C compiler supports C89 (global declarations) 2115ac_c_conftest_c89_globals=' 2116/* Does the compiler advertise C89 conformance? 2117 Do not test the value of __STDC__, because some compilers set it to 0 2118 while being otherwise adequately conformant. */ 2119#if !defined __STDC__ 2120# error "Compiler does not advertise C89 conformance" 2121#endif 2122 2123#include <stddef.h> 2124#include <stdarg.h> 2125struct stat; 2126/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2127struct buf { int x; }; 2128struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2129static char *e (p, i) 2130 char **p; 2131 int i; 2132{ 2133 return p[i]; 2134} 2135static char *f (char * (*g) (char **, int), char **p, ...) 2136{ 2137 char *s; 2138 va_list v; 2139 va_start (v,p); 2140 s = g (p, va_arg (v,int)); 2141 va_end (v); 2142 return s; 2143} 2144 2145/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2146 function prototypes and stuff, but not \xHH hex character constants. 2147 These do not provoke an error unfortunately, instead are silently treated 2148 as an "x". The following induces an error, until -std is added to get 2149 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2150 array size at least. It is necessary to write \x00 == 0 to get something 2151 that is true only with -std. */ 2152int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2153 2154/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2155 inside strings and character constants. */ 2156#define FOO(x) '\''x'\'' 2157int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2158 2159int test (int i, double x); 2160struct s1 {int (*f) (int a);}; 2161struct s2 {int (*f) (double a);}; 2162int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2163 int, int);' 2164 2165# Test code for whether the C compiler supports C89 (body of main). 2166ac_c_conftest_c89_main=' 2167ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2168' 2169 2170# Test code for whether the C compiler supports C99 (global declarations) 2171ac_c_conftest_c99_globals=' 2172// Does the compiler advertise C99 conformance? 2173#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2174# error "Compiler does not advertise C99 conformance" 2175#endif 2176 2177#include <stdbool.h> 2178extern int puts (const char *); 2179extern int printf (const char *, ...); 2180extern int dprintf (int, const char *, ...); 2181extern void *malloc (size_t); 2182 2183// Check varargs macros. These examples are taken from C99 6.10.3.5. 2184// dprintf is used instead of fprintf to avoid needing to declare 2185// FILE and stderr. 2186#define debug(...) dprintf (2, __VA_ARGS__) 2187#define showlist(...) puts (#__VA_ARGS__) 2188#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2189static void 2190test_varargs_macros (void) 2191{ 2192 int x = 1234; 2193 int y = 5678; 2194 debug ("Flag"); 2195 debug ("X = %d\n", x); 2196 showlist (The first, second, and third items.); 2197 report (x>y, "x is %d but y is %d", x, y); 2198} 2199 2200// Check long long types. 2201#define BIG64 18446744073709551615ull 2202#define BIG32 4294967295ul 2203#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2204#if !BIG_OK 2205 #error "your preprocessor is broken" 2206#endif 2207#if BIG_OK 2208#else 2209 #error "your preprocessor is broken" 2210#endif 2211static long long int bignum = -9223372036854775807LL; 2212static unsigned long long int ubignum = BIG64; 2213 2214struct incomplete_array 2215{ 2216 int datasize; 2217 double data[]; 2218}; 2219 2220struct named_init { 2221 int number; 2222 const wchar_t *name; 2223 double average; 2224}; 2225 2226typedef const char *ccp; 2227 2228static inline int 2229test_restrict (ccp restrict text) 2230{ 2231 // See if C++-style comments work. 2232 // Iterate through items via the restricted pointer. 2233 // Also check for declarations in for loops. 2234 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2235 continue; 2236 return 0; 2237} 2238 2239// Check varargs and va_copy. 2240static bool 2241test_varargs (const char *format, ...) 2242{ 2243 va_list args; 2244 va_start (args, format); 2245 va_list args_copy; 2246 va_copy (args_copy, args); 2247 2248 const char *str = ""; 2249 int number = 0; 2250 float fnumber = 0; 2251 2252 while (*format) 2253 { 2254 switch (*format++) 2255 { 2256 case '\''s'\'': // string 2257 str = va_arg (args_copy, const char *); 2258 break; 2259 case '\''d'\'': // int 2260 number = va_arg (args_copy, int); 2261 break; 2262 case '\''f'\'': // float 2263 fnumber = va_arg (args_copy, double); 2264 break; 2265 default: 2266 break; 2267 } 2268 } 2269 va_end (args_copy); 2270 va_end (args); 2271 2272 return *str && number && fnumber; 2273} 2274' 2275 2276# Test code for whether the C compiler supports C99 (body of main). 2277ac_c_conftest_c99_main=' 2278 // Check bool. 2279 _Bool success = false; 2280 success |= (argc != 0); 2281 2282 // Check restrict. 2283 if (test_restrict ("String literal") == 0) 2284 success = true; 2285 char *restrict newvar = "Another string"; 2286 2287 // Check varargs. 2288 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2289 test_varargs_macros (); 2290 2291 // Check flexible array members. 2292 struct incomplete_array *ia = 2293 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2294 ia->datasize = 10; 2295 for (int i = 0; i < ia->datasize; ++i) 2296 ia->data[i] = i * 1.234; 2297 2298 // Check named initializers. 2299 struct named_init ni = { 2300 .number = 34, 2301 .name = L"Test wide string", 2302 .average = 543.34343, 2303 }; 2304 2305 ni.number = 58; 2306 2307 int dynamic_array[ni.number]; 2308 dynamic_array[0] = argv[0][0]; 2309 dynamic_array[ni.number - 1] = 543; 2310 2311 // work around unused variable warnings 2312 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2313 || dynamic_array[ni.number - 1] != 543); 2314' 2315 2316# Test code for whether the C compiler supports C11 (global declarations) 2317ac_c_conftest_c11_globals=' 2318// Does the compiler advertise C11 conformance? 2319#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2320# error "Compiler does not advertise C11 conformance" 2321#endif 2322 2323// Check _Alignas. 2324char _Alignas (double) aligned_as_double; 2325char _Alignas (0) no_special_alignment; 2326extern char aligned_as_int; 2327char _Alignas (0) _Alignas (int) aligned_as_int; 2328 2329// Check _Alignof. 2330enum 2331{ 2332 int_alignment = _Alignof (int), 2333 int_array_alignment = _Alignof (int[100]), 2334 char_alignment = _Alignof (char) 2335}; 2336_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2337 2338// Check _Noreturn. 2339int _Noreturn does_not_return (void) { for (;;) continue; } 2340 2341// Check _Static_assert. 2342struct test_static_assert 2343{ 2344 int x; 2345 _Static_assert (sizeof (int) <= sizeof (long int), 2346 "_Static_assert does not work in struct"); 2347 long int y; 2348}; 2349 2350// Check UTF-8 literals. 2351#define u8 syntax error! 2352char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2353 2354// Check duplicate typedefs. 2355typedef long *long_ptr; 2356typedef long int *long_ptr; 2357typedef long_ptr long_ptr; 2358 2359// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2360struct anonymous 2361{ 2362 union { 2363 struct { int i; int j; }; 2364 struct { int k; long int l; } w; 2365 }; 2366 int m; 2367} v1; 2368' 2369 2370# Test code for whether the C compiler supports C11 (body of main). 2371ac_c_conftest_c11_main=' 2372 _Static_assert ((offsetof (struct anonymous, i) 2373 == offsetof (struct anonymous, w.k)), 2374 "Anonymous union alignment botch"); 2375 v1.i = 2; 2376 v1.w.k = 5; 2377 ok |= v1.i != 5; 2378' 2379 2380# Test code for whether the C compiler supports C11 (complete). 2381ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2382${ac_c_conftest_c99_globals} 2383${ac_c_conftest_c11_globals} 2384 2385int 2386main (int argc, char **argv) 2387{ 2388 int ok = 0; 2389 ${ac_c_conftest_c89_main} 2390 ${ac_c_conftest_c99_main} 2391 ${ac_c_conftest_c11_main} 2392 return ok; 2393} 2394" 2395 2396# Test code for whether the C compiler supports C99 (complete). 2397ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2398${ac_c_conftest_c99_globals} 2399 2400int 2401main (int argc, char **argv) 2402{ 2403 int ok = 0; 2404 ${ac_c_conftest_c89_main} 2405 ${ac_c_conftest_c99_main} 2406 return ok; 2407} 2408" 2409 2410# Test code for whether the C compiler supports C89 (complete). 2411ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2412 2413int 2414main (int argc, char **argv) 2415{ 2416 int ok = 0; 2417 ${ac_c_conftest_c89_main} 2418 return ok; 2419} 2420" 2421 2422as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2423as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2424as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2425as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2426as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2427as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2428as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2429as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2430as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2431 2432# Auxiliary files required by this configure script. 2433ac_aux_files="config.guess config.sub compile missing install-sh" 2434 2435# Locations in which to look for auxiliary files. 2436ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2437 2438# Search for a directory containing all of the required auxiliary files, 2439# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2440# If we don't find one directory that contains all the files we need, 2441# we report the set of missing files from the *first* directory in 2442# $ac_aux_dir_candidates and give up. 2443ac_missing_aux_files="" 2444ac_first_candidate=: 2445printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2447as_found=false 2448for as_dir in $ac_aux_dir_candidates 2449do 2450 IFS=$as_save_IFS 2451 case $as_dir in #((( 2452 '') as_dir=./ ;; 2453 */) ;; 2454 *) as_dir=$as_dir/ ;; 2455 esac 2456 as_found=: 2457 2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2459 ac_aux_dir_found=yes 2460 ac_install_sh= 2461 for ac_aux in $ac_aux_files 2462 do 2463 # As a special case, if "install-sh" is required, that requirement 2464 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2465 # and $ac_install_sh is set appropriately for whichever one is found. 2466 if test x"$ac_aux" = x"install-sh" 2467 then 2468 if test -f "${as_dir}install-sh"; then 2469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2470 ac_install_sh="${as_dir}install-sh -c" 2471 elif test -f "${as_dir}install.sh"; then 2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2473 ac_install_sh="${as_dir}install.sh -c" 2474 elif test -f "${as_dir}shtool"; then 2475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2476 ac_install_sh="${as_dir}shtool install -c" 2477 else 2478 ac_aux_dir_found=no 2479 if $ac_first_candidate; then 2480 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2481 else 2482 break 2483 fi 2484 fi 2485 else 2486 if test -f "${as_dir}${ac_aux}"; then 2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2488 else 2489 ac_aux_dir_found=no 2490 if $ac_first_candidate; then 2491 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2492 else 2493 break 2494 fi 2495 fi 2496 fi 2497 done 2498 if test "$ac_aux_dir_found" = yes; then 2499 ac_aux_dir="$as_dir" 2500 break 2501 fi 2502 ac_first_candidate=false 2503 2504 as_found=false 2505done 2506IFS=$as_save_IFS 2507if $as_found 2508then : 2509 2510else $as_nop 2511 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2512fi 2513 2514 2515# These three variables are undocumented and unsupported, 2516# and are intended to be withdrawn in a future Autoconf release. 2517# They can cause serious problems if a builder's source tree is in a directory 2518# whose full name contains unusual characters. 2519if test -f "${ac_aux_dir}config.guess"; then 2520 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2521fi 2522if test -f "${ac_aux_dir}config.sub"; then 2523 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2524fi 2525if test -f "$ac_aux_dir/configure"; then 2526 ac_configure="$SHELL ${ac_aux_dir}configure" 2527fi 2528 2529# Check that the precious variables saved in the cache have kept the same 2530# value. 2531ac_cache_corrupted=false 2532for ac_var in $ac_precious_vars; do 2533 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2534 eval ac_new_set=\$ac_env_${ac_var}_set 2535 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2536 eval ac_new_val=\$ac_env_${ac_var}_value 2537 case $ac_old_set,$ac_new_set in 2538 set,) 2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2540printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2541 ac_cache_corrupted=: ;; 2542 ,set) 2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2544printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2545 ac_cache_corrupted=: ;; 2546 ,);; 2547 *) 2548 if test "x$ac_old_val" != "x$ac_new_val"; then 2549 # differences in whitespace do not lead to failure. 2550 ac_old_val_w=`echo x $ac_old_val` 2551 ac_new_val_w=`echo x $ac_new_val` 2552 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2554printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2555 ac_cache_corrupted=: 2556 else 2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2558printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2559 eval $ac_var=\$ac_old_val 2560 fi 2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2562printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2564printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2565 fi;; 2566 esac 2567 # Pass precious variables to config.status. 2568 if test "$ac_new_set" = set; then 2569 case $ac_new_val in 2570 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2571 *) ac_arg=$ac_var=$ac_new_val ;; 2572 esac 2573 case " $ac_configure_args " in 2574 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2575 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2576 esac 2577 fi 2578done 2579if $ac_cache_corrupted; then 2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2581printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2583printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2584 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2585 and start over" "$LINENO" 5 2586fi 2587## -------------------- ## 2588## Main body of script. ## 2589## -------------------- ## 2590 2591ac_ext=c 2592ac_cpp='$CPP $CPPFLAGS' 2593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2595ac_compiler_gnu=$ac_cv_c_compiler_gnu 2596 2597 2598 2599ac_config_headers="$ac_config_headers config.h" 2600 2601 2602# Initialize Automake 2603am__api_version='1.16' 2604 2605 2606 2607 # Find a good install program. We prefer a C program (faster), 2608# so one script is as good as another. But avoid the broken or 2609# incompatible versions: 2610# SysV /etc/install, /usr/sbin/install 2611# SunOS /usr/etc/install 2612# IRIX /sbin/install 2613# AIX /bin/install 2614# AmigaOS /C/install, which installs bootblocks on floppy discs 2615# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2616# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2617# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2618# OS/2's system install, which has a completely different semantic 2619# ./install, which can be erroneously created by make from ./install.sh. 2620# Reject install programs that cannot install multiple files. 2621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2622printf %s "checking for a BSD-compatible install... " >&6; } 2623if test -z "$INSTALL"; then 2624if test ${ac_cv_path_install+y} 2625then : 2626 printf %s "(cached) " >&6 2627else $as_nop 2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629for as_dir in $PATH 2630do 2631 IFS=$as_save_IFS 2632 case $as_dir in #((( 2633 '') as_dir=./ ;; 2634 */) ;; 2635 *) as_dir=$as_dir/ ;; 2636 esac 2637 # Account for fact that we put trailing slashes in our PATH walk. 2638case $as_dir in #(( 2639 ./ | /[cC]/* | \ 2640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2641 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2642 /usr/ucb/* ) ;; 2643 *) 2644 # OSF1 and SCO ODT 3.0 have their own names for install. 2645 # Don't use installbsd from OSF since it installs stuff as root 2646 # by default. 2647 for ac_prog in ginstall scoinst install; do 2648 for ac_exec_ext in '' $ac_executable_extensions; do 2649 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2650 if test $ac_prog = install && 2651 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2652 # AIX install. It has an incompatible calling convention. 2653 : 2654 elif test $ac_prog = install && 2655 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2656 # program-specific install script used by HP pwplus--don't use. 2657 : 2658 else 2659 rm -rf conftest.one conftest.two conftest.dir 2660 echo one > conftest.one 2661 echo two > conftest.two 2662 mkdir conftest.dir 2663 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2664 test -s conftest.one && test -s conftest.two && 2665 test -s conftest.dir/conftest.one && 2666 test -s conftest.dir/conftest.two 2667 then 2668 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2669 break 3 2670 fi 2671 fi 2672 fi 2673 done 2674 done 2675 ;; 2676esac 2677 2678 done 2679IFS=$as_save_IFS 2680 2681rm -rf conftest.one conftest.two conftest.dir 2682 2683fi 2684 if test ${ac_cv_path_install+y}; then 2685 INSTALL=$ac_cv_path_install 2686 else 2687 # As a last resort, use the slow shell script. Don't cache a 2688 # value for INSTALL within a source directory, because that will 2689 # break other packages using the cache if that directory is 2690 # removed, or if the value is a relative name. 2691 INSTALL=$ac_install_sh 2692 fi 2693fi 2694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2695printf "%s\n" "$INSTALL" >&6; } 2696 2697# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2698# It thinks the first close brace ends the variable substitution. 2699test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2700 2701test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2702 2703test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2704 2705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2706printf %s "checking whether build environment is sane... " >&6; } 2707# Reject unsafe characters in $srcdir or the absolute working directory 2708# name. Accept space and tab only in the latter. 2709am_lf=' 2710' 2711case `pwd` in 2712 *[\\\"\#\$\&\'\`$am_lf]*) 2713 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2714esac 2715case $srcdir in 2716 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2717 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2718esac 2719 2720# Do 'set' in a subshell so we don't clobber the current shell's 2721# arguments. Must try -L first in case configure is actually a 2722# symlink; some systems play weird games with the mod time of symlinks 2723# (eg FreeBSD returns the mod time of the symlink's containing 2724# directory). 2725if ( 2726 am_has_slept=no 2727 for am_try in 1 2; do 2728 echo "timestamp, slept: $am_has_slept" > conftest.file 2729 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2730 if test "$*" = "X"; then 2731 # -L didn't work. 2732 set X `ls -t "$srcdir/configure" conftest.file` 2733 fi 2734 if test "$*" != "X $srcdir/configure conftest.file" \ 2735 && test "$*" != "X conftest.file $srcdir/configure"; then 2736 2737 # If neither matched, then we have a broken ls. This can happen 2738 # if, for instance, CONFIG_SHELL is bash and it inherits a 2739 # broken ls alias from the environment. This has actually 2740 # happened. Such a system could not be considered "sane". 2741 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2742 alias in your environment" "$LINENO" 5 2743 fi 2744 if test "$2" = conftest.file || test $am_try -eq 2; then 2745 break 2746 fi 2747 # Just in case. 2748 sleep 1 2749 am_has_slept=yes 2750 done 2751 test "$2" = conftest.file 2752 ) 2753then 2754 # Ok. 2755 : 2756else 2757 as_fn_error $? "newly created file is older than distributed files! 2758Check your system clock" "$LINENO" 5 2759fi 2760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2761printf "%s\n" "yes" >&6; } 2762# If we didn't sleep, we still need to ensure time stamps of config.status and 2763# generated files are strictly newer. 2764am_sleep_pid= 2765if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2766 ( sleep 1 ) & 2767 am_sleep_pid=$! 2768fi 2769 2770rm -f conftest.file 2771 2772test "$program_prefix" != NONE && 2773 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2774# Use a double $ so make ignores it. 2775test "$program_suffix" != NONE && 2776 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2777# Double any \ or $. 2778# By default was `s,x,x', remove it if useless. 2779ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2780program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2781 2782 2783# Expand $ac_aux_dir to an absolute path. 2784am_aux_dir=`cd "$ac_aux_dir" && pwd` 2785 2786 2787 if test x"${MISSING+set}" != xset; then 2788 MISSING="\${SHELL} '$am_aux_dir/missing'" 2789fi 2790# Use eval to expand $SHELL 2791if eval "$MISSING --is-lightweight"; then 2792 am_missing_run="$MISSING " 2793else 2794 am_missing_run= 2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2796printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2797fi 2798 2799if test x"${install_sh+set}" != xset; then 2800 case $am_aux_dir in 2801 *\ * | *\ *) 2802 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2803 *) 2804 install_sh="\${SHELL} $am_aux_dir/install-sh" 2805 esac 2806fi 2807 2808# Installed binaries are usually stripped using 'strip' when the user 2809# run "make install-strip". However 'strip' might not be the right 2810# tool to use in cross-compilation environments, therefore Automake 2811# will honor the 'STRIP' environment variable to overrule this program. 2812if test "$cross_compiling" != no; then 2813 if test -n "$ac_tool_prefix"; then 2814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2815set dummy ${ac_tool_prefix}strip; ac_word=$2 2816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2817printf %s "checking for $ac_word... " >&6; } 2818if test ${ac_cv_prog_STRIP+y} 2819then : 2820 printf %s "(cached) " >&6 2821else $as_nop 2822 if test -n "$STRIP"; then 2823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2824else 2825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2826for as_dir in $PATH 2827do 2828 IFS=$as_save_IFS 2829 case $as_dir in #((( 2830 '') as_dir=./ ;; 2831 */) ;; 2832 *) as_dir=$as_dir/ ;; 2833 esac 2834 for ac_exec_ext in '' $ac_executable_extensions; do 2835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2836 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2838 break 2 2839 fi 2840done 2841 done 2842IFS=$as_save_IFS 2843 2844fi 2845fi 2846STRIP=$ac_cv_prog_STRIP 2847if test -n "$STRIP"; then 2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2849printf "%s\n" "$STRIP" >&6; } 2850else 2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2852printf "%s\n" "no" >&6; } 2853fi 2854 2855 2856fi 2857if test -z "$ac_cv_prog_STRIP"; then 2858 ac_ct_STRIP=$STRIP 2859 # Extract the first word of "strip", so it can be a program name with args. 2860set dummy strip; ac_word=$2 2861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2862printf %s "checking for $ac_word... " >&6; } 2863if test ${ac_cv_prog_ac_ct_STRIP+y} 2864then : 2865 printf %s "(cached) " >&6 2866else $as_nop 2867 if test -n "$ac_ct_STRIP"; then 2868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2869else 2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2871for as_dir in $PATH 2872do 2873 IFS=$as_save_IFS 2874 case $as_dir in #((( 2875 '') as_dir=./ ;; 2876 */) ;; 2877 *) as_dir=$as_dir/ ;; 2878 esac 2879 for ac_exec_ext in '' $ac_executable_extensions; do 2880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2881 ac_cv_prog_ac_ct_STRIP="strip" 2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2883 break 2 2884 fi 2885done 2886 done 2887IFS=$as_save_IFS 2888 2889fi 2890fi 2891ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2892if test -n "$ac_ct_STRIP"; then 2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2894printf "%s\n" "$ac_ct_STRIP" >&6; } 2895else 2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2897printf "%s\n" "no" >&6; } 2898fi 2899 2900 if test "x$ac_ct_STRIP" = x; then 2901 STRIP=":" 2902 else 2903 case $cross_compiling:$ac_tool_warned in 2904yes:) 2905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2907ac_tool_warned=yes ;; 2908esac 2909 STRIP=$ac_ct_STRIP 2910 fi 2911else 2912 STRIP="$ac_cv_prog_STRIP" 2913fi 2914 2915fi 2916INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2917 2918 2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2920printf %s "checking for a race-free mkdir -p... " >&6; } 2921if test -z "$MKDIR_P"; then 2922 if test ${ac_cv_path_mkdir+y} 2923then : 2924 printf %s "(cached) " >&6 2925else $as_nop 2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2928do 2929 IFS=$as_save_IFS 2930 case $as_dir in #((( 2931 '') as_dir=./ ;; 2932 */) ;; 2933 *) as_dir=$as_dir/ ;; 2934 esac 2935 for ac_prog in mkdir gmkdir; do 2936 for ac_exec_ext in '' $ac_executable_extensions; do 2937 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2938 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2939 'mkdir ('*'coreutils) '* | \ 2940 'BusyBox '* | \ 2941 'mkdir (fileutils) '4.1*) 2942 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2943 break 3;; 2944 esac 2945 done 2946 done 2947 done 2948IFS=$as_save_IFS 2949 2950fi 2951 2952 test -d ./--version && rmdir ./--version 2953 if test ${ac_cv_path_mkdir+y}; then 2954 MKDIR_P="$ac_cv_path_mkdir -p" 2955 else 2956 # As a last resort, use the slow shell script. Don't cache a 2957 # value for MKDIR_P within a source directory, because that will 2958 # break other packages using the cache if that directory is 2959 # removed, or if the value is a relative name. 2960 MKDIR_P="$ac_install_sh -d" 2961 fi 2962fi 2963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2964printf "%s\n" "$MKDIR_P" >&6; } 2965 2966for ac_prog in gawk mawk nawk awk 2967do 2968 # Extract the first word of "$ac_prog", so it can be a program name with args. 2969set dummy $ac_prog; ac_word=$2 2970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2971printf %s "checking for $ac_word... " >&6; } 2972if test ${ac_cv_prog_AWK+y} 2973then : 2974 printf %s "(cached) " >&6 2975else $as_nop 2976 if test -n "$AWK"; then 2977 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2978else 2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2980for as_dir in $PATH 2981do 2982 IFS=$as_save_IFS 2983 case $as_dir in #((( 2984 '') as_dir=./ ;; 2985 */) ;; 2986 *) as_dir=$as_dir/ ;; 2987 esac 2988 for ac_exec_ext in '' $ac_executable_extensions; do 2989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2990 ac_cv_prog_AWK="$ac_prog" 2991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2992 break 2 2993 fi 2994done 2995 done 2996IFS=$as_save_IFS 2997 2998fi 2999fi 3000AWK=$ac_cv_prog_AWK 3001if test -n "$AWK"; then 3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3003printf "%s\n" "$AWK" >&6; } 3004else 3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3006printf "%s\n" "no" >&6; } 3007fi 3008 3009 3010 test -n "$AWK" && break 3011done 3012 3013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3014printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3015set x ${MAKE-make} 3016ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3017if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3018then : 3019 printf %s "(cached) " >&6 3020else $as_nop 3021 cat >conftest.make <<\_ACEOF 3022SHELL = /bin/sh 3023all: 3024 @echo '@@@%%%=$(MAKE)=@@@%%%' 3025_ACEOF 3026# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3027case `${MAKE-make} -f conftest.make 2>/dev/null` in 3028 *@@@%%%=?*=@@@%%%*) 3029 eval ac_cv_prog_make_${ac_make}_set=yes;; 3030 *) 3031 eval ac_cv_prog_make_${ac_make}_set=no;; 3032esac 3033rm -f conftest.make 3034fi 3035if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3037printf "%s\n" "yes" >&6; } 3038 SET_MAKE= 3039else 3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041printf "%s\n" "no" >&6; } 3042 SET_MAKE="MAKE=${MAKE-make}" 3043fi 3044 3045rm -rf .tst 2>/dev/null 3046mkdir .tst 2>/dev/null 3047if test -d .tst; then 3048 am__leading_dot=. 3049else 3050 am__leading_dot=_ 3051fi 3052rmdir .tst 2>/dev/null 3053 3054# Check whether --enable-silent-rules was given. 3055if test ${enable_silent_rules+y} 3056then : 3057 enableval=$enable_silent_rules; 3058fi 3059 3060case $enable_silent_rules in # ((( 3061 yes) AM_DEFAULT_VERBOSITY=0;; 3062 no) AM_DEFAULT_VERBOSITY=1;; 3063 *) AM_DEFAULT_VERBOSITY=1;; 3064esac 3065am_make=${MAKE-make} 3066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3067printf %s "checking whether $am_make supports nested variables... " >&6; } 3068if test ${am_cv_make_support_nested_variables+y} 3069then : 3070 printf %s "(cached) " >&6 3071else $as_nop 3072 if printf "%s\n" 'TRUE=$(BAR$(V)) 3073BAR0=false 3074BAR1=true 3075V=1 3076am__doit: 3077 @$(TRUE) 3078.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3079 am_cv_make_support_nested_variables=yes 3080else 3081 am_cv_make_support_nested_variables=no 3082fi 3083fi 3084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3085printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3086if test $am_cv_make_support_nested_variables = yes; then 3087 AM_V='$(V)' 3088 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3089else 3090 AM_V=$AM_DEFAULT_VERBOSITY 3091 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3092fi 3093AM_BACKSLASH='\' 3094 3095if test "`cd $srcdir && pwd`" != "`pwd`"; then 3096 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3097 # is not polluted with repeated "-I." 3098 am__isrc=' -I$(srcdir)' 3099 # test to see if srcdir already configured 3100 if test -f $srcdir/config.status; then 3101 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3102 fi 3103fi 3104 3105# test whether we have cygpath 3106if test -z "$CYGPATH_W"; then 3107 if (cygpath --version) >/dev/null 2>/dev/null; then 3108 CYGPATH_W='cygpath -w' 3109 else 3110 CYGPATH_W=echo 3111 fi 3112fi 3113 3114 3115# Define the identity of the package. 3116 PACKAGE='xinit' 3117 VERSION='1.4.2' 3118 3119 3120printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3121 3122 3123printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3124 3125# Some tools Automake needs. 3126 3127ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3128 3129 3130AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3131 3132 3133AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3134 3135 3136AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3137 3138 3139MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3140 3141# For better backward compatibility. To be removed once Automake 1.9.x 3142# dies out for good. For more background, see: 3143# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3144# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3145mkdir_p='$(MKDIR_P)' 3146 3147# We need awk for the "check" target (and possibly the TAP driver). The 3148# system "awk" is bad on some platforms. 3149# Always define AMTAR for backward compatibility. Yes, it's still used 3150# in the wild :-( We should find a proper way to deprecate it ... 3151AMTAR='$${TAR-tar}' 3152 3153 3154# We'll loop over all known methods to create a tar archive until one works. 3155_am_tools='gnutar pax cpio none' 3156 3157am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3158 3159 3160 3161 3162 3163# Variables for tags utilities; see am/tags.am 3164if test -z "$CTAGS"; then 3165 CTAGS=ctags 3166fi 3167 3168if test -z "$ETAGS"; then 3169 ETAGS=etags 3170fi 3171 3172if test -z "$CSCOPE"; then 3173 CSCOPE=cscope 3174fi 3175 3176 3177 3178# POSIX will say in a future version that running "rm -f" with no argument 3179# is OK; and we want to be able to make that assumption in our Makefile 3180# recipes. So use an aggressive probe to check that the usage we want is 3181# actually supported "in the wild" to an acceptable degree. 3182# See automake bug#10828. 3183# To make any issue more visible, cause the running configure to be aborted 3184# by default if the 'rm' program in use doesn't match our expectations; the 3185# user can still override this though. 3186if rm -f && rm -fr && rm -rf; then : OK; else 3187 cat >&2 <<'END' 3188Oops! 3189 3190Your 'rm' program seems unable to run without file operands specified 3191on the command line, even when the '-f' option is present. This is contrary 3192to the behaviour of most rm programs out there, and not conforming with 3193the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3194 3195Please tell bug-automake@gnu.org about your system, including the value 3196of your $PATH and any error possibly output before this message. This 3197can help us improve future automake versions. 3198 3199END 3200 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3201 echo 'Configuration will proceed anyway, since you have set the' >&2 3202 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3203 echo >&2 3204 else 3205 cat >&2 <<'END' 3206Aborting the configuration process, to ensure you take notice of the issue. 3207 3208You can download and install GNU coreutils to get an 'rm' implementation 3209that behaves properly: <https://www.gnu.org/software/coreutils/>. 3210 3211If you want to complete the configuration process using your problematic 3212'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3213to "yes", and re-run configure. 3214 3215END 3216 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3217 fi 3218fi 3219 3220 3221# Require X.Org macros 1.19 or later for TRADITIONALCPPFLAGS 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242DEPDIR="${am__leading_dot}deps" 3243 3244ac_config_commands="$ac_config_commands depfiles" 3245 3246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3247printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3248cat > confinc.mk << 'END' 3249am__doit: 3250 @echo this is the am__doit target >confinc.out 3251.PHONY: am__doit 3252END 3253am__include="#" 3254am__quote= 3255# BSD make does it like this. 3256echo '.include "confinc.mk" # ignored' > confmf.BSD 3257# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3258echo 'include confinc.mk # ignored' > confmf.GNU 3259_am_result=no 3260for s in GNU BSD; do 3261 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3262 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3263 ac_status=$? 3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3265 (exit $ac_status); } 3266 case $?:`cat confinc.out 2>/dev/null` in #( 3267 '0:this is the am__doit target') : 3268 case $s in #( 3269 BSD) : 3270 am__include='.include' am__quote='"' ;; #( 3271 *) : 3272 am__include='include' am__quote='' ;; 3273esac ;; #( 3274 *) : 3275 ;; 3276esac 3277 if test "$am__include" != "#"; then 3278 _am_result="yes ($s style)" 3279 break 3280 fi 3281done 3282rm -f confinc.* confmf.* 3283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3284printf "%s\n" "${_am_result}" >&6; } 3285 3286# Check whether --enable-dependency-tracking was given. 3287if test ${enable_dependency_tracking+y} 3288then : 3289 enableval=$enable_dependency_tracking; 3290fi 3291 3292if test "x$enable_dependency_tracking" != xno; then 3293 am_depcomp="$ac_aux_dir/depcomp" 3294 AMDEPBACKSLASH='\' 3295 am__nodep='_no' 3296fi 3297 if test "x$enable_dependency_tracking" != xno; then 3298 AMDEP_TRUE= 3299 AMDEP_FALSE='#' 3300else 3301 AMDEP_TRUE='#' 3302 AMDEP_FALSE= 3303fi 3304 3305 3306ac_ext=c 3307ac_cpp='$CPP $CPPFLAGS' 3308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3310ac_compiler_gnu=$ac_cv_c_compiler_gnu 3311if test -n "$ac_tool_prefix"; then 3312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3313set dummy ${ac_tool_prefix}gcc; ac_word=$2 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3315printf %s "checking for $ac_word... " >&6; } 3316if test ${ac_cv_prog_CC+y} 3317then : 3318 printf %s "(cached) " >&6 3319else $as_nop 3320 if test -n "$CC"; then 3321 ac_cv_prog_CC="$CC" # Let the user override the test. 3322else 3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324for as_dir in $PATH 3325do 3326 IFS=$as_save_IFS 3327 case $as_dir in #((( 3328 '') as_dir=./ ;; 3329 */) ;; 3330 *) as_dir=$as_dir/ ;; 3331 esac 3332 for ac_exec_ext in '' $ac_executable_extensions; do 3333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3334 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3336 break 2 3337 fi 3338done 3339 done 3340IFS=$as_save_IFS 3341 3342fi 3343fi 3344CC=$ac_cv_prog_CC 3345if test -n "$CC"; then 3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3347printf "%s\n" "$CC" >&6; } 3348else 3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3350printf "%s\n" "no" >&6; } 3351fi 3352 3353 3354fi 3355if test -z "$ac_cv_prog_CC"; then 3356 ac_ct_CC=$CC 3357 # Extract the first word of "gcc", so it can be a program name with args. 3358set dummy gcc; ac_word=$2 3359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3360printf %s "checking for $ac_word... " >&6; } 3361if test ${ac_cv_prog_ac_ct_CC+y} 3362then : 3363 printf %s "(cached) " >&6 3364else $as_nop 3365 if test -n "$ac_ct_CC"; then 3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3367else 3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3369for as_dir in $PATH 3370do 3371 IFS=$as_save_IFS 3372 case $as_dir in #((( 3373 '') as_dir=./ ;; 3374 */) ;; 3375 *) as_dir=$as_dir/ ;; 3376 esac 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3379 ac_cv_prog_ac_ct_CC="gcc" 3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387fi 3388fi 3389ac_ct_CC=$ac_cv_prog_ac_ct_CC 3390if test -n "$ac_ct_CC"; then 3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3392printf "%s\n" "$ac_ct_CC" >&6; } 3393else 3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395printf "%s\n" "no" >&6; } 3396fi 3397 3398 if test "x$ac_ct_CC" = x; then 3399 CC="" 3400 else 3401 case $cross_compiling:$ac_tool_warned in 3402yes:) 3403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3404printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3405ac_tool_warned=yes ;; 3406esac 3407 CC=$ac_ct_CC 3408 fi 3409else 3410 CC="$ac_cv_prog_CC" 3411fi 3412 3413if test -z "$CC"; then 3414 if test -n "$ac_tool_prefix"; then 3415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3416set dummy ${ac_tool_prefix}cc; ac_word=$2 3417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3418printf %s "checking for $ac_word... " >&6; } 3419if test ${ac_cv_prog_CC+y} 3420then : 3421 printf %s "(cached) " >&6 3422else $as_nop 3423 if test -n "$CC"; then 3424 ac_cv_prog_CC="$CC" # Let the user override the test. 3425else 3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3427for as_dir in $PATH 3428do 3429 IFS=$as_save_IFS 3430 case $as_dir in #((( 3431 '') as_dir=./ ;; 3432 */) ;; 3433 *) as_dir=$as_dir/ ;; 3434 esac 3435 for ac_exec_ext in '' $ac_executable_extensions; do 3436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3437 ac_cv_prog_CC="${ac_tool_prefix}cc" 3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3439 break 2 3440 fi 3441done 3442 done 3443IFS=$as_save_IFS 3444 3445fi 3446fi 3447CC=$ac_cv_prog_CC 3448if test -n "$CC"; then 3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3450printf "%s\n" "$CC" >&6; } 3451else 3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453printf "%s\n" "no" >&6; } 3454fi 3455 3456 3457 fi 3458fi 3459if test -z "$CC"; then 3460 # Extract the first word of "cc", so it can be a program name with args. 3461set dummy cc; ac_word=$2 3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3463printf %s "checking for $ac_word... " >&6; } 3464if test ${ac_cv_prog_CC+y} 3465then : 3466 printf %s "(cached) " >&6 3467else $as_nop 3468 if test -n "$CC"; then 3469 ac_cv_prog_CC="$CC" # Let the user override the test. 3470else 3471 ac_prog_rejected=no 3472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3473for as_dir in $PATH 3474do 3475 IFS=$as_save_IFS 3476 case $as_dir in #((( 3477 '') as_dir=./ ;; 3478 */) ;; 3479 *) as_dir=$as_dir/ ;; 3480 esac 3481 for ac_exec_ext in '' $ac_executable_extensions; do 3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3483 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3484 ac_prog_rejected=yes 3485 continue 3486 fi 3487 ac_cv_prog_CC="cc" 3488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3489 break 2 3490 fi 3491done 3492 done 3493IFS=$as_save_IFS 3494 3495if test $ac_prog_rejected = yes; then 3496 # We found a bogon in the path, so make sure we never use it. 3497 set dummy $ac_cv_prog_CC 3498 shift 3499 if test $# != 0; then 3500 # We chose a different compiler from the bogus one. 3501 # However, it has the same basename, so the bogon will be chosen 3502 # first if we set CC to just the basename; use the full file name. 3503 shift 3504 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3505 fi 3506fi 3507fi 3508fi 3509CC=$ac_cv_prog_CC 3510if test -n "$CC"; then 3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3512printf "%s\n" "$CC" >&6; } 3513else 3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3515printf "%s\n" "no" >&6; } 3516fi 3517 3518 3519fi 3520if test -z "$CC"; then 3521 if test -n "$ac_tool_prefix"; then 3522 for ac_prog in cl.exe 3523 do 3524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3525set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3527printf %s "checking for $ac_word... " >&6; } 3528if test ${ac_cv_prog_CC+y} 3529then : 3530 printf %s "(cached) " >&6 3531else $as_nop 3532 if test -n "$CC"; then 3533 ac_cv_prog_CC="$CC" # Let the user override the test. 3534else 3535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3536for as_dir in $PATH 3537do 3538 IFS=$as_save_IFS 3539 case $as_dir in #((( 3540 '') as_dir=./ ;; 3541 */) ;; 3542 *) as_dir=$as_dir/ ;; 3543 esac 3544 for ac_exec_ext in '' $ac_executable_extensions; do 3545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3548 break 2 3549 fi 3550done 3551 done 3552IFS=$as_save_IFS 3553 3554fi 3555fi 3556CC=$ac_cv_prog_CC 3557if test -n "$CC"; then 3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3559printf "%s\n" "$CC" >&6; } 3560else 3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3562printf "%s\n" "no" >&6; } 3563fi 3564 3565 3566 test -n "$CC" && break 3567 done 3568fi 3569if test -z "$CC"; then 3570 ac_ct_CC=$CC 3571 for ac_prog in cl.exe 3572do 3573 # Extract the first word of "$ac_prog", so it can be a program name with args. 3574set dummy $ac_prog; ac_word=$2 3575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3576printf %s "checking for $ac_word... " >&6; } 3577if test ${ac_cv_prog_ac_ct_CC+y} 3578then : 3579 printf %s "(cached) " >&6 3580else $as_nop 3581 if test -n "$ac_ct_CC"; then 3582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3583else 3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3585for as_dir in $PATH 3586do 3587 IFS=$as_save_IFS 3588 case $as_dir in #((( 3589 '') as_dir=./ ;; 3590 */) ;; 3591 *) as_dir=$as_dir/ ;; 3592 esac 3593 for ac_exec_ext in '' $ac_executable_extensions; do 3594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3595 ac_cv_prog_ac_ct_CC="$ac_prog" 3596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3597 break 2 3598 fi 3599done 3600 done 3601IFS=$as_save_IFS 3602 3603fi 3604fi 3605ac_ct_CC=$ac_cv_prog_ac_ct_CC 3606if test -n "$ac_ct_CC"; then 3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3608printf "%s\n" "$ac_ct_CC" >&6; } 3609else 3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3611printf "%s\n" "no" >&6; } 3612fi 3613 3614 3615 test -n "$ac_ct_CC" && break 3616done 3617 3618 if test "x$ac_ct_CC" = x; then 3619 CC="" 3620 else 3621 case $cross_compiling:$ac_tool_warned in 3622yes:) 3623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3624printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3625ac_tool_warned=yes ;; 3626esac 3627 CC=$ac_ct_CC 3628 fi 3629fi 3630 3631fi 3632if test -z "$CC"; then 3633 if test -n "$ac_tool_prefix"; then 3634 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3635set dummy ${ac_tool_prefix}clang; ac_word=$2 3636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3637printf %s "checking for $ac_word... " >&6; } 3638if test ${ac_cv_prog_CC+y} 3639then : 3640 printf %s "(cached) " >&6 3641else $as_nop 3642 if test -n "$CC"; then 3643 ac_cv_prog_CC="$CC" # Let the user override the test. 3644else 3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3646for as_dir in $PATH 3647do 3648 IFS=$as_save_IFS 3649 case $as_dir in #((( 3650 '') as_dir=./ ;; 3651 */) ;; 3652 *) as_dir=$as_dir/ ;; 3653 esac 3654 for ac_exec_ext in '' $ac_executable_extensions; do 3655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3656 ac_cv_prog_CC="${ac_tool_prefix}clang" 3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3658 break 2 3659 fi 3660done 3661 done 3662IFS=$as_save_IFS 3663 3664fi 3665fi 3666CC=$ac_cv_prog_CC 3667if test -n "$CC"; then 3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3669printf "%s\n" "$CC" >&6; } 3670else 3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3672printf "%s\n" "no" >&6; } 3673fi 3674 3675 3676fi 3677if test -z "$ac_cv_prog_CC"; then 3678 ac_ct_CC=$CC 3679 # Extract the first word of "clang", so it can be a program name with args. 3680set dummy clang; ac_word=$2 3681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3682printf %s "checking for $ac_word... " >&6; } 3683if test ${ac_cv_prog_ac_ct_CC+y} 3684then : 3685 printf %s "(cached) " >&6 3686else $as_nop 3687 if test -n "$ac_ct_CC"; then 3688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3689else 3690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3691for as_dir in $PATH 3692do 3693 IFS=$as_save_IFS 3694 case $as_dir in #((( 3695 '') as_dir=./ ;; 3696 */) ;; 3697 *) as_dir=$as_dir/ ;; 3698 esac 3699 for ac_exec_ext in '' $ac_executable_extensions; do 3700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3701 ac_cv_prog_ac_ct_CC="clang" 3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3703 break 2 3704 fi 3705done 3706 done 3707IFS=$as_save_IFS 3708 3709fi 3710fi 3711ac_ct_CC=$ac_cv_prog_ac_ct_CC 3712if test -n "$ac_ct_CC"; then 3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3714printf "%s\n" "$ac_ct_CC" >&6; } 3715else 3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3717printf "%s\n" "no" >&6; } 3718fi 3719 3720 if test "x$ac_ct_CC" = x; then 3721 CC="" 3722 else 3723 case $cross_compiling:$ac_tool_warned in 3724yes:) 3725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3726printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3727ac_tool_warned=yes ;; 3728esac 3729 CC=$ac_ct_CC 3730 fi 3731else 3732 CC="$ac_cv_prog_CC" 3733fi 3734 3735fi 3736 3737 3738test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3739printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3740as_fn_error $? "no acceptable C compiler found in \$PATH 3741See \`config.log' for more details" "$LINENO" 5; } 3742 3743# Provide some information about the compiler. 3744printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3745set X $ac_compile 3746ac_compiler=$2 3747for ac_option in --version -v -V -qversion -version; do 3748 { { ac_try="$ac_compiler $ac_option >&5" 3749case "(($ac_try" in 3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3751 *) ac_try_echo=$ac_try;; 3752esac 3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3754printf "%s\n" "$ac_try_echo"; } >&5 3755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3756 ac_status=$? 3757 if test -s conftest.err; then 3758 sed '10a\ 3759... rest of stderr output deleted ... 3760 10q' conftest.err >conftest.er1 3761 cat conftest.er1 >&5 3762 fi 3763 rm -f conftest.er1 conftest.err 3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3765 test $ac_status = 0; } 3766done 3767 3768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769/* end confdefs.h. */ 3770 3771int 3772main (void) 3773{ 3774 3775 ; 3776 return 0; 3777} 3778_ACEOF 3779ac_clean_files_save=$ac_clean_files 3780ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3781# Try to create an executable without -o first, disregard a.out. 3782# It will help us diagnose broken compilers, and finding out an intuition 3783# of exeext. 3784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3785printf %s "checking whether the C compiler works... " >&6; } 3786ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3787 3788# The possible output files: 3789ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3790 3791ac_rmfiles= 3792for ac_file in $ac_files 3793do 3794 case $ac_file in 3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3796 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3797 esac 3798done 3799rm -f $ac_rmfiles 3800 3801if { { ac_try="$ac_link_default" 3802case "(($ac_try" in 3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3804 *) ac_try_echo=$ac_try;; 3805esac 3806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3807printf "%s\n" "$ac_try_echo"; } >&5 3808 (eval "$ac_link_default") 2>&5 3809 ac_status=$? 3810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3811 test $ac_status = 0; } 3812then : 3813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3814# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3815# in a Makefile. We should not override ac_cv_exeext if it was cached, 3816# so that the user can short-circuit this test for compilers unknown to 3817# Autoconf. 3818for ac_file in $ac_files '' 3819do 3820 test -f "$ac_file" || continue 3821 case $ac_file in 3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3823 ;; 3824 [ab].out ) 3825 # We found the default executable, but exeext='' is most 3826 # certainly right. 3827 break;; 3828 *.* ) 3829 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3830 then :; else 3831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3832 fi 3833 # We set ac_cv_exeext here because the later test for it is not 3834 # safe: cross compilers may not add the suffix if given an `-o' 3835 # argument, so we may need to know it at that point already. 3836 # Even if this section looks crufty: it has the advantage of 3837 # actually working. 3838 break;; 3839 * ) 3840 break;; 3841 esac 3842done 3843test "$ac_cv_exeext" = no && ac_cv_exeext= 3844 3845else $as_nop 3846 ac_file='' 3847fi 3848if test -z "$ac_file" 3849then : 3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3851printf "%s\n" "no" >&6; } 3852printf "%s\n" "$as_me: failed program was:" >&5 3853sed 's/^/| /' conftest.$ac_ext >&5 3854 3855{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3856printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3857as_fn_error 77 "C compiler cannot create executables 3858See \`config.log' for more details" "$LINENO" 5; } 3859else $as_nop 3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3861printf "%s\n" "yes" >&6; } 3862fi 3863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3864printf %s "checking for C compiler default output file name... " >&6; } 3865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3866printf "%s\n" "$ac_file" >&6; } 3867ac_exeext=$ac_cv_exeext 3868 3869rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3870ac_clean_files=$ac_clean_files_save 3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3872printf %s "checking for suffix of executables... " >&6; } 3873if { { ac_try="$ac_link" 3874case "(($ac_try" in 3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3876 *) ac_try_echo=$ac_try;; 3877esac 3878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3879printf "%s\n" "$ac_try_echo"; } >&5 3880 (eval "$ac_link") 2>&5 3881 ac_status=$? 3882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3883 test $ac_status = 0; } 3884then : 3885 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3886# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3887# work properly (i.e., refer to `conftest.exe'), while it won't with 3888# `rm'. 3889for ac_file in conftest.exe conftest conftest.*; do 3890 test -f "$ac_file" || continue 3891 case $ac_file in 3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3894 break;; 3895 * ) break;; 3896 esac 3897done 3898else $as_nop 3899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3900printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3901as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3902See \`config.log' for more details" "$LINENO" 5; } 3903fi 3904rm -f conftest conftest$ac_cv_exeext 3905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3906printf "%s\n" "$ac_cv_exeext" >&6; } 3907 3908rm -f conftest.$ac_ext 3909EXEEXT=$ac_cv_exeext 3910ac_exeext=$EXEEXT 3911cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3912/* end confdefs.h. */ 3913#include <stdio.h> 3914int 3915main (void) 3916{ 3917FILE *f = fopen ("conftest.out", "w"); 3918 return ferror (f) || fclose (f) != 0; 3919 3920 ; 3921 return 0; 3922} 3923_ACEOF 3924ac_clean_files="$ac_clean_files conftest.out" 3925# Check that the compiler produces executables we can run. If not, either 3926# the compiler is broken, or we cross compile. 3927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3928printf %s "checking whether we are cross compiling... " >&6; } 3929if test "$cross_compiling" != yes; then 3930 { { ac_try="$ac_link" 3931case "(($ac_try" in 3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3933 *) ac_try_echo=$ac_try;; 3934esac 3935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3936printf "%s\n" "$ac_try_echo"; } >&5 3937 (eval "$ac_link") 2>&5 3938 ac_status=$? 3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3940 test $ac_status = 0; } 3941 if { ac_try='./conftest$ac_cv_exeext' 3942 { { case "(($ac_try" in 3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3944 *) ac_try_echo=$ac_try;; 3945esac 3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3947printf "%s\n" "$ac_try_echo"; } >&5 3948 (eval "$ac_try") 2>&5 3949 ac_status=$? 3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3951 test $ac_status = 0; }; }; then 3952 cross_compiling=no 3953 else 3954 if test "$cross_compiling" = maybe; then 3955 cross_compiling=yes 3956 else 3957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3958printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3959as_fn_error 77 "cannot run C compiled programs. 3960If you meant to cross compile, use \`--host'. 3961See \`config.log' for more details" "$LINENO" 5; } 3962 fi 3963 fi 3964fi 3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3966printf "%s\n" "$cross_compiling" >&6; } 3967 3968rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3969ac_clean_files=$ac_clean_files_save 3970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3971printf %s "checking for suffix of object files... " >&6; } 3972if test ${ac_cv_objext+y} 3973then : 3974 printf %s "(cached) " >&6 3975else $as_nop 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978 3979int 3980main (void) 3981{ 3982 3983 ; 3984 return 0; 3985} 3986_ACEOF 3987rm -f conftest.o conftest.obj 3988if { { ac_try="$ac_compile" 3989case "(($ac_try" in 3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3991 *) ac_try_echo=$ac_try;; 3992esac 3993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3994printf "%s\n" "$ac_try_echo"; } >&5 3995 (eval "$ac_compile") 2>&5 3996 ac_status=$? 3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3998 test $ac_status = 0; } 3999then : 4000 for ac_file in conftest.o conftest.obj conftest.*; do 4001 test -f "$ac_file" || continue; 4002 case $ac_file in 4003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4005 break;; 4006 esac 4007done 4008else $as_nop 4009 printf "%s\n" "$as_me: failed program was:" >&5 4010sed 's/^/| /' conftest.$ac_ext >&5 4011 4012{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4013printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4014as_fn_error $? "cannot compute suffix of object files: cannot compile 4015See \`config.log' for more details" "$LINENO" 5; } 4016fi 4017rm -f conftest.$ac_cv_objext conftest.$ac_ext 4018fi 4019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4020printf "%s\n" "$ac_cv_objext" >&6; } 4021OBJEXT=$ac_cv_objext 4022ac_objext=$OBJEXT 4023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4024printf %s "checking whether the compiler supports GNU C... " >&6; } 4025if test ${ac_cv_c_compiler_gnu+y} 4026then : 4027 printf %s "(cached) " >&6 4028else $as_nop 4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4030/* end confdefs.h. */ 4031 4032int 4033main (void) 4034{ 4035#ifndef __GNUC__ 4036 choke me 4037#endif 4038 4039 ; 4040 return 0; 4041} 4042_ACEOF 4043if ac_fn_c_try_compile "$LINENO" 4044then : 4045 ac_compiler_gnu=yes 4046else $as_nop 4047 ac_compiler_gnu=no 4048fi 4049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4050ac_cv_c_compiler_gnu=$ac_compiler_gnu 4051 4052fi 4053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4054printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4055ac_compiler_gnu=$ac_cv_c_compiler_gnu 4056 4057if test $ac_compiler_gnu = yes; then 4058 GCC=yes 4059else 4060 GCC= 4061fi 4062ac_test_CFLAGS=${CFLAGS+y} 4063ac_save_CFLAGS=$CFLAGS 4064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4065printf %s "checking whether $CC accepts -g... " >&6; } 4066if test ${ac_cv_prog_cc_g+y} 4067then : 4068 printf %s "(cached) " >&6 4069else $as_nop 4070 ac_save_c_werror_flag=$ac_c_werror_flag 4071 ac_c_werror_flag=yes 4072 ac_cv_prog_cc_g=no 4073 CFLAGS="-g" 4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4075/* end confdefs.h. */ 4076 4077int 4078main (void) 4079{ 4080 4081 ; 4082 return 0; 4083} 4084_ACEOF 4085if ac_fn_c_try_compile "$LINENO" 4086then : 4087 ac_cv_prog_cc_g=yes 4088else $as_nop 4089 CFLAGS="" 4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4091/* end confdefs.h. */ 4092 4093int 4094main (void) 4095{ 4096 4097 ; 4098 return 0; 4099} 4100_ACEOF 4101if ac_fn_c_try_compile "$LINENO" 4102then : 4103 4104else $as_nop 4105 ac_c_werror_flag=$ac_save_c_werror_flag 4106 CFLAGS="-g" 4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4108/* end confdefs.h. */ 4109 4110int 4111main (void) 4112{ 4113 4114 ; 4115 return 0; 4116} 4117_ACEOF 4118if ac_fn_c_try_compile "$LINENO" 4119then : 4120 ac_cv_prog_cc_g=yes 4121fi 4122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4123fi 4124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4125fi 4126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4127 ac_c_werror_flag=$ac_save_c_werror_flag 4128fi 4129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4130printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4131if test $ac_test_CFLAGS; then 4132 CFLAGS=$ac_save_CFLAGS 4133elif test $ac_cv_prog_cc_g = yes; then 4134 if test "$GCC" = yes; then 4135 CFLAGS="-g -O2" 4136 else 4137 CFLAGS="-g" 4138 fi 4139else 4140 if test "$GCC" = yes; then 4141 CFLAGS="-O2" 4142 else 4143 CFLAGS= 4144 fi 4145fi 4146ac_prog_cc_stdc=no 4147if test x$ac_prog_cc_stdc = xno 4148then : 4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4150printf %s "checking for $CC option to enable C11 features... " >&6; } 4151if test ${ac_cv_prog_cc_c11+y} 4152then : 4153 printf %s "(cached) " >&6 4154else $as_nop 4155 ac_cv_prog_cc_c11=no 4156ac_save_CC=$CC 4157cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4158/* end confdefs.h. */ 4159$ac_c_conftest_c11_program 4160_ACEOF 4161for ac_arg in '' -std=gnu11 4162do 4163 CC="$ac_save_CC $ac_arg" 4164 if ac_fn_c_try_compile "$LINENO" 4165then : 4166 ac_cv_prog_cc_c11=$ac_arg 4167fi 4168rm -f core conftest.err conftest.$ac_objext conftest.beam 4169 test "x$ac_cv_prog_cc_c11" != "xno" && break 4170done 4171rm -f conftest.$ac_ext 4172CC=$ac_save_CC 4173fi 4174 4175if test "x$ac_cv_prog_cc_c11" = xno 4176then : 4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4178printf "%s\n" "unsupported" >&6; } 4179else $as_nop 4180 if test "x$ac_cv_prog_cc_c11" = x 4181then : 4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4183printf "%s\n" "none needed" >&6; } 4184else $as_nop 4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4186printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4187 CC="$CC $ac_cv_prog_cc_c11" 4188fi 4189 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4190 ac_prog_cc_stdc=c11 4191fi 4192fi 4193if test x$ac_prog_cc_stdc = xno 4194then : 4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4196printf %s "checking for $CC option to enable C99 features... " >&6; } 4197if test ${ac_cv_prog_cc_c99+y} 4198then : 4199 printf %s "(cached) " >&6 4200else $as_nop 4201 ac_cv_prog_cc_c99=no 4202ac_save_CC=$CC 4203cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4204/* end confdefs.h. */ 4205$ac_c_conftest_c99_program 4206_ACEOF 4207for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4208do 4209 CC="$ac_save_CC $ac_arg" 4210 if ac_fn_c_try_compile "$LINENO" 4211then : 4212 ac_cv_prog_cc_c99=$ac_arg 4213fi 4214rm -f core conftest.err conftest.$ac_objext conftest.beam 4215 test "x$ac_cv_prog_cc_c99" != "xno" && break 4216done 4217rm -f conftest.$ac_ext 4218CC=$ac_save_CC 4219fi 4220 4221if test "x$ac_cv_prog_cc_c99" = xno 4222then : 4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4224printf "%s\n" "unsupported" >&6; } 4225else $as_nop 4226 if test "x$ac_cv_prog_cc_c99" = x 4227then : 4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4229printf "%s\n" "none needed" >&6; } 4230else $as_nop 4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4232printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4233 CC="$CC $ac_cv_prog_cc_c99" 4234fi 4235 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4236 ac_prog_cc_stdc=c99 4237fi 4238fi 4239if test x$ac_prog_cc_stdc = xno 4240then : 4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4242printf %s "checking for $CC option to enable C89 features... " >&6; } 4243if test ${ac_cv_prog_cc_c89+y} 4244then : 4245 printf %s "(cached) " >&6 4246else $as_nop 4247 ac_cv_prog_cc_c89=no 4248ac_save_CC=$CC 4249cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4250/* end confdefs.h. */ 4251$ac_c_conftest_c89_program 4252_ACEOF 4253for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4254do 4255 CC="$ac_save_CC $ac_arg" 4256 if ac_fn_c_try_compile "$LINENO" 4257then : 4258 ac_cv_prog_cc_c89=$ac_arg 4259fi 4260rm -f core conftest.err conftest.$ac_objext conftest.beam 4261 test "x$ac_cv_prog_cc_c89" != "xno" && break 4262done 4263rm -f conftest.$ac_ext 4264CC=$ac_save_CC 4265fi 4266 4267if test "x$ac_cv_prog_cc_c89" = xno 4268then : 4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4270printf "%s\n" "unsupported" >&6; } 4271else $as_nop 4272 if test "x$ac_cv_prog_cc_c89" = x 4273then : 4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4275printf "%s\n" "none needed" >&6; } 4276else $as_nop 4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4278printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4279 CC="$CC $ac_cv_prog_cc_c89" 4280fi 4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4282 ac_prog_cc_stdc=c89 4283fi 4284fi 4285 4286ac_ext=c 4287ac_cpp='$CPP $CPPFLAGS' 4288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4290ac_compiler_gnu=$ac_cv_c_compiler_gnu 4291 4292 4293 ac_ext=c 4294ac_cpp='$CPP $CPPFLAGS' 4295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4297ac_compiler_gnu=$ac_cv_c_compiler_gnu 4298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4299printf %s "checking whether $CC understands -c and -o together... " >&6; } 4300if test ${am_cv_prog_cc_c_o+y} 4301then : 4302 printf %s "(cached) " >&6 4303else $as_nop 4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4305/* end confdefs.h. */ 4306 4307int 4308main (void) 4309{ 4310 4311 ; 4312 return 0; 4313} 4314_ACEOF 4315 # Make sure it works both with $CC and with simple cc. 4316 # Following AC_PROG_CC_C_O, we do the test twice because some 4317 # compilers refuse to overwrite an existing .o file with -o, 4318 # though they will create one. 4319 am_cv_prog_cc_c_o=yes 4320 for am_i in 1 2; do 4321 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4322 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4323 ac_status=$? 4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4325 (exit $ac_status); } \ 4326 && test -f conftest2.$ac_objext; then 4327 : OK 4328 else 4329 am_cv_prog_cc_c_o=no 4330 break 4331 fi 4332 done 4333 rm -f core conftest* 4334 unset am_i 4335fi 4336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4337printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4338if test "$am_cv_prog_cc_c_o" != yes; then 4339 # Losing compiler, so override with the script. 4340 # FIXME: It is wrong to rewrite CC. 4341 # But if we don't then we get into trouble of one sort or another. 4342 # A longer-term fix would be to have automake use am__CC in this case, 4343 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4344 CC="$am_aux_dir/compile $CC" 4345fi 4346ac_ext=c 4347ac_cpp='$CPP $CPPFLAGS' 4348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4350ac_compiler_gnu=$ac_cv_c_compiler_gnu 4351 4352 4353depcc="$CC" am_compiler_list= 4354 4355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4356printf %s "checking dependency style of $depcc... " >&6; } 4357if test ${am_cv_CC_dependencies_compiler_type+y} 4358then : 4359 printf %s "(cached) " >&6 4360else $as_nop 4361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4362 # We make a subdir and do the tests there. Otherwise we can end up 4363 # making bogus files that we don't know about and never remove. For 4364 # instance it was reported that on HP-UX the gcc test will end up 4365 # making a dummy file named 'D' -- because '-MD' means "put the output 4366 # in D". 4367 rm -rf conftest.dir 4368 mkdir conftest.dir 4369 # Copy depcomp to subdir because otherwise we won't find it if we're 4370 # using a relative directory. 4371 cp "$am_depcomp" conftest.dir 4372 cd conftest.dir 4373 # We will build objects and dependencies in a subdirectory because 4374 # it helps to detect inapplicable dependency modes. For instance 4375 # both Tru64's cc and ICC support -MD to output dependencies as a 4376 # side effect of compilation, but ICC will put the dependencies in 4377 # the current directory while Tru64 will put them in the object 4378 # directory. 4379 mkdir sub 4380 4381 am_cv_CC_dependencies_compiler_type=none 4382 if test "$am_compiler_list" = ""; then 4383 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4384 fi 4385 am__universal=false 4386 case " $depcc " in #( 4387 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4388 esac 4389 4390 for depmode in $am_compiler_list; do 4391 # Setup a source with many dependencies, because some compilers 4392 # like to wrap large dependency lists on column 80 (with \), and 4393 # we should not choose a depcomp mode which is confused by this. 4394 # 4395 # We need to recreate these files for each test, as the compiler may 4396 # overwrite some of them when testing with obscure command lines. 4397 # This happens at least with the AIX C compiler. 4398 : > sub/conftest.c 4399 for i in 1 2 3 4 5 6; do 4400 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4401 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4402 # Solaris 10 /bin/sh. 4403 echo '/* dummy */' > sub/conftst$i.h 4404 done 4405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4406 4407 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4408 # mode. It turns out that the SunPro C++ compiler does not properly 4409 # handle '-M -o', and we need to detect this. Also, some Intel 4410 # versions had trouble with output in subdirs. 4411 am__obj=sub/conftest.${OBJEXT-o} 4412 am__minus_obj="-o $am__obj" 4413 case $depmode in 4414 gcc) 4415 # This depmode causes a compiler race in universal mode. 4416 test "$am__universal" = false || continue 4417 ;; 4418 nosideeffect) 4419 # After this tag, mechanisms are not by side-effect, so they'll 4420 # only be used when explicitly requested. 4421 if test "x$enable_dependency_tracking" = xyes; then 4422 continue 4423 else 4424 break 4425 fi 4426 ;; 4427 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4428 # This compiler won't grok '-c -o', but also, the minuso test has 4429 # not run yet. These depmodes are late enough in the game, and 4430 # so weak that their functioning should not be impacted. 4431 am__obj=conftest.${OBJEXT-o} 4432 am__minus_obj= 4433 ;; 4434 none) break ;; 4435 esac 4436 if depmode=$depmode \ 4437 source=sub/conftest.c object=$am__obj \ 4438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4439 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4440 >/dev/null 2>conftest.err && 4441 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4443 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4445 # icc doesn't choke on unknown options, it will just issue warnings 4446 # or remarks (even with -Werror). So we grep stderr for any message 4447 # that says an option was ignored or not supported. 4448 # When given -MP, icc 7.0 and 7.1 complain thusly: 4449 # icc: Command line warning: ignoring option '-M'; no argument required 4450 # The diagnosis changed in icc 8.0: 4451 # icc: Command line remark: option '-MP' not supported 4452 if (grep 'ignoring option' conftest.err || 4453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4454 am_cv_CC_dependencies_compiler_type=$depmode 4455 break 4456 fi 4457 fi 4458 done 4459 4460 cd .. 4461 rm -rf conftest.dir 4462else 4463 am_cv_CC_dependencies_compiler_type=none 4464fi 4465 4466fi 4467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4468printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4469CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4470 4471 if 4472 test "x$enable_dependency_tracking" != xno \ 4473 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4474 am__fastdepCC_TRUE= 4475 am__fastdepCC_FALSE='#' 4476else 4477 am__fastdepCC_TRUE='#' 4478 am__fastdepCC_FALSE= 4479fi 4480 4481 4482 4483 4484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4485printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4486if test ${ac_cv_c_undeclared_builtin_options+y} 4487then : 4488 printf %s "(cached) " >&6 4489else $as_nop 4490 ac_save_CFLAGS=$CFLAGS 4491 ac_cv_c_undeclared_builtin_options='cannot detect' 4492 for ac_arg in '' -fno-builtin; do 4493 CFLAGS="$ac_save_CFLAGS $ac_arg" 4494 # This test program should *not* compile successfully. 4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4496/* end confdefs.h. */ 4497 4498int 4499main (void) 4500{ 4501(void) strchr; 4502 ; 4503 return 0; 4504} 4505_ACEOF 4506if ac_fn_c_try_compile "$LINENO" 4507then : 4508 4509else $as_nop 4510 # This test program should compile successfully. 4511 # No library function is consistently available on 4512 # freestanding implementations, so test against a dummy 4513 # declaration. Include always-available headers on the 4514 # off chance that they somehow elicit warnings. 4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4516/* end confdefs.h. */ 4517#include <float.h> 4518#include <limits.h> 4519#include <stdarg.h> 4520#include <stddef.h> 4521extern void ac_decl (int, char *); 4522 4523int 4524main (void) 4525{ 4526(void) ac_decl (0, (char *) 0); 4527 (void) ac_decl; 4528 4529 ; 4530 return 0; 4531} 4532_ACEOF 4533if ac_fn_c_try_compile "$LINENO" 4534then : 4535 if test x"$ac_arg" = x 4536then : 4537 ac_cv_c_undeclared_builtin_options='none needed' 4538else $as_nop 4539 ac_cv_c_undeclared_builtin_options=$ac_arg 4540fi 4541 break 4542fi 4543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4544fi 4545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4546 done 4547 CFLAGS=$ac_save_CFLAGS 4548 4549fi 4550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4551printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4552 case $ac_cv_c_undeclared_builtin_options in #( 4553 'cannot detect') : 4554 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4555printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4556as_fn_error $? "cannot make $CC report undeclared builtins 4557See \`config.log' for more details" "$LINENO" 5; } ;; #( 4558 'none needed') : 4559 ac_c_undeclared_builtin_options='' ;; #( 4560 *) : 4561 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4562esac 4563 4564ac_header= ac_cache= 4565for ac_item in $ac_header_c_list 4566do 4567 if test $ac_cache; then 4568 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4569 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4570 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4571 fi 4572 ac_header= ac_cache= 4573 elif test $ac_header; then 4574 ac_cache=$ac_item 4575 else 4576 ac_header=$ac_item 4577 fi 4578done 4579 4580 4581 4582 4583 4584 4585 4586 4587if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4588then : 4589 4590printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4591 4592fi 4593 4594 4595 4596 4597ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4598if test "x$ac_cv_have_decl___clang__" = xyes 4599then : 4600 CLANGCC="yes" 4601else $as_nop 4602 CLANGCC="no" 4603fi 4604ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4605if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4606then : 4607 INTELCC="yes" 4608else $as_nop 4609 INTELCC="no" 4610fi 4611ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4612if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4613then : 4614 SUNCC="yes" 4615else $as_nop 4616 SUNCC="no" 4617fi 4618 4619 4620 4621 4622 4623 4624 4625 4626if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4627 if test -n "$ac_tool_prefix"; then 4628 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4629set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4631printf %s "checking for $ac_word... " >&6; } 4632if test ${ac_cv_path_PKG_CONFIG+y} 4633then : 4634 printf %s "(cached) " >&6 4635else $as_nop 4636 case $PKG_CONFIG in 4637 [\\/]* | ?:[\\/]*) 4638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4639 ;; 4640 *) 4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4642for as_dir in $PATH 4643do 4644 IFS=$as_save_IFS 4645 case $as_dir in #((( 4646 '') as_dir=./ ;; 4647 */) ;; 4648 *) as_dir=$as_dir/ ;; 4649 esac 4650 for ac_exec_ext in '' $ac_executable_extensions; do 4651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4652 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4654 break 2 4655 fi 4656done 4657 done 4658IFS=$as_save_IFS 4659 4660 ;; 4661esac 4662fi 4663PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4664if test -n "$PKG_CONFIG"; then 4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4666printf "%s\n" "$PKG_CONFIG" >&6; } 4667else 4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4669printf "%s\n" "no" >&6; } 4670fi 4671 4672 4673fi 4674if test -z "$ac_cv_path_PKG_CONFIG"; then 4675 ac_pt_PKG_CONFIG=$PKG_CONFIG 4676 # Extract the first word of "pkg-config", so it can be a program name with args. 4677set dummy pkg-config; ac_word=$2 4678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4679printf %s "checking for $ac_word... " >&6; } 4680if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4681then : 4682 printf %s "(cached) " >&6 4683else $as_nop 4684 case $ac_pt_PKG_CONFIG in 4685 [\\/]* | ?:[\\/]*) 4686 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4687 ;; 4688 *) 4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4690for as_dir in $PATH 4691do 4692 IFS=$as_save_IFS 4693 case $as_dir in #((( 4694 '') as_dir=./ ;; 4695 */) ;; 4696 *) as_dir=$as_dir/ ;; 4697 esac 4698 for ac_exec_ext in '' $ac_executable_extensions; do 4699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4700 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4702 break 2 4703 fi 4704done 4705 done 4706IFS=$as_save_IFS 4707 4708 ;; 4709esac 4710fi 4711ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4712if test -n "$ac_pt_PKG_CONFIG"; then 4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4714printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4715else 4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4717printf "%s\n" "no" >&6; } 4718fi 4719 4720 if test "x$ac_pt_PKG_CONFIG" = x; then 4721 PKG_CONFIG="" 4722 else 4723 case $cross_compiling:$ac_tool_warned in 4724yes:) 4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4726printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4727ac_tool_warned=yes ;; 4728esac 4729 PKG_CONFIG=$ac_pt_PKG_CONFIG 4730 fi 4731else 4732 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4733fi 4734 4735fi 4736if test -n "$PKG_CONFIG"; then 4737 _pkg_min_version=0.9.0 4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4739printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4740 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4742printf "%s\n" "yes" >&6; } 4743 else 4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4745printf "%s\n" "no" >&6; } 4746 PKG_CONFIG="" 4747 fi 4748fi 4749 4750 4751 # Make sure we can run config.sub. 4752$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4753 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4754 4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4756printf %s "checking build system type... " >&6; } 4757if test ${ac_cv_build+y} 4758then : 4759 printf %s "(cached) " >&6 4760else $as_nop 4761 ac_build_alias=$build_alias 4762test "x$ac_build_alias" = x && 4763 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4764test "x$ac_build_alias" = x && 4765 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4766ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4767 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4768 4769fi 4770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4771printf "%s\n" "$ac_cv_build" >&6; } 4772case $ac_cv_build in 4773*-*-*) ;; 4774*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4775esac 4776build=$ac_cv_build 4777ac_save_IFS=$IFS; IFS='-' 4778set x $ac_cv_build 4779shift 4780build_cpu=$1 4781build_vendor=$2 4782shift; shift 4783# Remember, the first character of IFS is used to create $*, 4784# except with old shells: 4785build_os=$* 4786IFS=$ac_save_IFS 4787case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4788 4789 4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4791printf %s "checking host system type... " >&6; } 4792if test ${ac_cv_host+y} 4793then : 4794 printf %s "(cached) " >&6 4795else $as_nop 4796 if test "x$host_alias" = x; then 4797 ac_cv_host=$ac_cv_build 4798else 4799 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4800 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4801fi 4802 4803fi 4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4805printf "%s\n" "$ac_cv_host" >&6; } 4806case $ac_cv_host in 4807*-*-*) ;; 4808*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4809esac 4810host=$ac_cv_host 4811ac_save_IFS=$IFS; IFS='-' 4812set x $ac_cv_host 4813shift 4814host_cpu=$1 4815host_vendor=$2 4816shift; shift 4817# Remember, the first character of IFS is used to create $*, 4818# except with old shells: 4819host_os=$* 4820IFS=$ac_save_IFS 4821case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4822 4823 4824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4825printf %s "checking for a sed that does not truncate output... " >&6; } 4826if test ${ac_cv_path_SED+y} 4827then : 4828 printf %s "(cached) " >&6 4829else $as_nop 4830 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4831 for ac_i in 1 2 3 4 5 6 7; do 4832 ac_script="$ac_script$as_nl$ac_script" 4833 done 4834 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4835 { ac_script=; unset ac_script;} 4836 if test -z "$SED"; then 4837 ac_path_SED_found=false 4838 # Loop through the user's path and test for each of PROGNAME-LIST 4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4840for as_dir in $PATH 4841do 4842 IFS=$as_save_IFS 4843 case $as_dir in #((( 4844 '') as_dir=./ ;; 4845 */) ;; 4846 *) as_dir=$as_dir/ ;; 4847 esac 4848 for ac_prog in sed gsed 4849 do 4850 for ac_exec_ext in '' $ac_executable_extensions; do 4851 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4852 as_fn_executable_p "$ac_path_SED" || continue 4853# Check for GNU ac_path_SED and select it if it is found. 4854 # Check for GNU $ac_path_SED 4855case `"$ac_path_SED" --version 2>&1` in 4856*GNU*) 4857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4858*) 4859 ac_count=0 4860 printf %s 0123456789 >"conftest.in" 4861 while : 4862 do 4863 cat "conftest.in" "conftest.in" >"conftest.tmp" 4864 mv "conftest.tmp" "conftest.in" 4865 cp "conftest.in" "conftest.nl" 4866 printf "%s\n" '' >> "conftest.nl" 4867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4869 as_fn_arith $ac_count + 1 && ac_count=$as_val 4870 if test $ac_count -gt ${ac_path_SED_max-0}; then 4871 # Best one so far, save it but keep looking for a better one 4872 ac_cv_path_SED="$ac_path_SED" 4873 ac_path_SED_max=$ac_count 4874 fi 4875 # 10*(2^10) chars as input seems more than enough 4876 test $ac_count -gt 10 && break 4877 done 4878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4879esac 4880 4881 $ac_path_SED_found && break 3 4882 done 4883 done 4884 done 4885IFS=$as_save_IFS 4886 if test -z "$ac_cv_path_SED"; then 4887 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4888 fi 4889else 4890 ac_cv_path_SED=$SED 4891fi 4892 4893fi 4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4895printf "%s\n" "$ac_cv_path_SED" >&6; } 4896 SED="$ac_cv_path_SED" 4897 rm -f conftest.sed 4898 4899 4900 4901 4902 4903 4904# Check whether --enable-selective-werror was given. 4905if test ${enable_selective_werror+y} 4906then : 4907 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4908else $as_nop 4909 SELECTIVE_WERROR=yes 4910fi 4911 4912 4913 4914 4915 4916# -v is too short to test reliably with XORG_TESTSET_CFLAG 4917if test "x$SUNCC" = "xyes"; then 4918 BASE_CFLAGS="-v" 4919else 4920 BASE_CFLAGS="" 4921fi 4922 4923# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937xorg_testset_save_CFLAGS="$CFLAGS" 4938 4939if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4942printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4943if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4944then : 4945 printf %s "(cached) " >&6 4946else $as_nop 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948/* end confdefs.h. */ 4949int i; 4950_ACEOF 4951if ac_fn_c_try_compile "$LINENO" 4952then : 4953 xorg_cv_cc_flag_unknown_warning_option=yes 4954else $as_nop 4955 xorg_cv_cc_flag_unknown_warning_option=no 4956fi 4957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4958fi 4959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4962 CFLAGS="$xorg_testset_save_CFLAGS" 4963fi 4964 4965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4968 fi 4969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4972if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4973then : 4974 printf %s "(cached) " >&6 4975else $as_nop 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4977/* end confdefs.h. */ 4978int i; 4979_ACEOF 4980if ac_fn_c_try_compile "$LINENO" 4981then : 4982 xorg_cv_cc_flag_unused_command_line_argument=yes 4983else $as_nop 4984 xorg_cv_cc_flag_unused_command_line_argument=no 4985fi 4986rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4987fi 4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4991 CFLAGS="$xorg_testset_save_CFLAGS" 4992fi 4993 4994found="no" 4995 4996 if test $found = "no" ; then 4997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4999 fi 5000 5001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5003 fi 5004 5005 CFLAGS="$CFLAGS -Wall" 5006 5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5008printf %s "checking if $CC supports -Wall... " >&6; } 5009 cacheid=xorg_cv_cc_flag__Wall 5010 if eval test \${$cacheid+y} 5011then : 5012 printf %s "(cached) " >&6 5013else $as_nop 5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5015/* end confdefs.h. */ 5016int i; 5017int 5018main (void) 5019{ 5020 5021 ; 5022 return 0; 5023} 5024_ACEOF 5025if ac_fn_c_try_link "$LINENO" 5026then : 5027 eval $cacheid=yes 5028else $as_nop 5029 eval $cacheid=no 5030fi 5031rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5032 conftest$ac_exeext conftest.$ac_ext 5033fi 5034 5035 5036 CFLAGS="$xorg_testset_save_CFLAGS" 5037 5038 eval supported=\$$cacheid 5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5040printf "%s\n" "$supported" >&6; } 5041 if test "$supported" = "yes" ; then 5042 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5043 found="yes" 5044 fi 5045 fi 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061xorg_testset_save_CFLAGS="$CFLAGS" 5062 5063if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5066printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5067if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5068then : 5069 printf %s "(cached) " >&6 5070else $as_nop 5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5072/* end confdefs.h. */ 5073int i; 5074_ACEOF 5075if ac_fn_c_try_compile "$LINENO" 5076then : 5077 xorg_cv_cc_flag_unknown_warning_option=yes 5078else $as_nop 5079 xorg_cv_cc_flag_unknown_warning_option=no 5080fi 5081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5082fi 5083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5086 CFLAGS="$xorg_testset_save_CFLAGS" 5087fi 5088 5089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5092 fi 5093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5096if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5097then : 5098 printf %s "(cached) " >&6 5099else $as_nop 5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102int i; 5103_ACEOF 5104if ac_fn_c_try_compile "$LINENO" 5105then : 5106 xorg_cv_cc_flag_unused_command_line_argument=yes 5107else $as_nop 5108 xorg_cv_cc_flag_unused_command_line_argument=no 5109fi 5110rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5111fi 5112{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5113printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5115 CFLAGS="$xorg_testset_save_CFLAGS" 5116fi 5117 5118found="no" 5119 5120 if test $found = "no" ; then 5121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5123 fi 5124 5125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5127 fi 5128 5129 CFLAGS="$CFLAGS -Wpointer-arith" 5130 5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5132printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5133 cacheid=xorg_cv_cc_flag__Wpointer_arith 5134 if eval test \${$cacheid+y} 5135then : 5136 printf %s "(cached) " >&6 5137else $as_nop 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5139/* end confdefs.h. */ 5140int i; 5141int 5142main (void) 5143{ 5144 5145 ; 5146 return 0; 5147} 5148_ACEOF 5149if ac_fn_c_try_link "$LINENO" 5150then : 5151 eval $cacheid=yes 5152else $as_nop 5153 eval $cacheid=no 5154fi 5155rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5156 conftest$ac_exeext conftest.$ac_ext 5157fi 5158 5159 5160 CFLAGS="$xorg_testset_save_CFLAGS" 5161 5162 eval supported=\$$cacheid 5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5164printf "%s\n" "$supported" >&6; } 5165 if test "$supported" = "yes" ; then 5166 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5167 found="yes" 5168 fi 5169 fi 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185xorg_testset_save_CFLAGS="$CFLAGS" 5186 5187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5190printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5191if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5192then : 5193 printf %s "(cached) " >&6 5194else $as_nop 5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5196/* end confdefs.h. */ 5197int i; 5198_ACEOF 5199if ac_fn_c_try_compile "$LINENO" 5200then : 5201 xorg_cv_cc_flag_unknown_warning_option=yes 5202else $as_nop 5203 xorg_cv_cc_flag_unknown_warning_option=no 5204fi 5205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5206fi 5207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5208printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5210 CFLAGS="$xorg_testset_save_CFLAGS" 5211fi 5212 5213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5216 fi 5217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5219printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5220if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5221then : 5222 printf %s "(cached) " >&6 5223else $as_nop 5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5225/* end confdefs.h. */ 5226int i; 5227_ACEOF 5228if ac_fn_c_try_compile "$LINENO" 5229then : 5230 xorg_cv_cc_flag_unused_command_line_argument=yes 5231else $as_nop 5232 xorg_cv_cc_flag_unused_command_line_argument=no 5233fi 5234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5235fi 5236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5237printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5239 CFLAGS="$xorg_testset_save_CFLAGS" 5240fi 5241 5242found="no" 5243 5244 if test $found = "no" ; then 5245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5247 fi 5248 5249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5251 fi 5252 5253 CFLAGS="$CFLAGS -Wmissing-declarations" 5254 5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5256printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5257 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5258 if eval test \${$cacheid+y} 5259then : 5260 printf %s "(cached) " >&6 5261else $as_nop 5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5263/* end confdefs.h. */ 5264int i; 5265int 5266main (void) 5267{ 5268 5269 ; 5270 return 0; 5271} 5272_ACEOF 5273if ac_fn_c_try_link "$LINENO" 5274then : 5275 eval $cacheid=yes 5276else $as_nop 5277 eval $cacheid=no 5278fi 5279rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5280 conftest$ac_exeext conftest.$ac_ext 5281fi 5282 5283 5284 CFLAGS="$xorg_testset_save_CFLAGS" 5285 5286 eval supported=\$$cacheid 5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5288printf "%s\n" "$supported" >&6; } 5289 if test "$supported" = "yes" ; then 5290 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5291 found="yes" 5292 fi 5293 fi 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309xorg_testset_save_CFLAGS="$CFLAGS" 5310 5311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5314printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5315if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5316then : 5317 printf %s "(cached) " >&6 5318else $as_nop 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321int i; 5322_ACEOF 5323if ac_fn_c_try_compile "$LINENO" 5324then : 5325 xorg_cv_cc_flag_unknown_warning_option=yes 5326else $as_nop 5327 xorg_cv_cc_flag_unknown_warning_option=no 5328fi 5329rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5330fi 5331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5332printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5334 CFLAGS="$xorg_testset_save_CFLAGS" 5335fi 5336 5337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5340 fi 5341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5343printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5344if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5345then : 5346 printf %s "(cached) " >&6 5347else $as_nop 5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349/* end confdefs.h. */ 5350int i; 5351_ACEOF 5352if ac_fn_c_try_compile "$LINENO" 5353then : 5354 xorg_cv_cc_flag_unused_command_line_argument=yes 5355else $as_nop 5356 xorg_cv_cc_flag_unused_command_line_argument=no 5357fi 5358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5359fi 5360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5361printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5363 CFLAGS="$xorg_testset_save_CFLAGS" 5364fi 5365 5366found="no" 5367 5368 if test $found = "no" ; then 5369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5371 fi 5372 5373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5375 fi 5376 5377 CFLAGS="$CFLAGS -Wformat=2" 5378 5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5380printf %s "checking if $CC supports -Wformat=2... " >&6; } 5381 cacheid=xorg_cv_cc_flag__Wformat_2 5382 if eval test \${$cacheid+y} 5383then : 5384 printf %s "(cached) " >&6 5385else $as_nop 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387/* end confdefs.h. */ 5388int i; 5389int 5390main (void) 5391{ 5392 5393 ; 5394 return 0; 5395} 5396_ACEOF 5397if ac_fn_c_try_link "$LINENO" 5398then : 5399 eval $cacheid=yes 5400else $as_nop 5401 eval $cacheid=no 5402fi 5403rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5404 conftest$ac_exeext conftest.$ac_ext 5405fi 5406 5407 5408 CFLAGS="$xorg_testset_save_CFLAGS" 5409 5410 eval supported=\$$cacheid 5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5412printf "%s\n" "$supported" >&6; } 5413 if test "$supported" = "yes" ; then 5414 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5415 found="yes" 5416 fi 5417 fi 5418 5419 if test $found = "no" ; then 5420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5422 fi 5423 5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5426 fi 5427 5428 CFLAGS="$CFLAGS -Wformat" 5429 5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5431printf %s "checking if $CC supports -Wformat... " >&6; } 5432 cacheid=xorg_cv_cc_flag__Wformat 5433 if eval test \${$cacheid+y} 5434then : 5435 printf %s "(cached) " >&6 5436else $as_nop 5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5438/* end confdefs.h. */ 5439int i; 5440int 5441main (void) 5442{ 5443 5444 ; 5445 return 0; 5446} 5447_ACEOF 5448if ac_fn_c_try_link "$LINENO" 5449then : 5450 eval $cacheid=yes 5451else $as_nop 5452 eval $cacheid=no 5453fi 5454rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5455 conftest$ac_exeext conftest.$ac_ext 5456fi 5457 5458 5459 CFLAGS="$xorg_testset_save_CFLAGS" 5460 5461 eval supported=\$$cacheid 5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5463printf "%s\n" "$supported" >&6; } 5464 if test "$supported" = "yes" ; then 5465 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5466 found="yes" 5467 fi 5468 fi 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486xorg_testset_save_CFLAGS="$CFLAGS" 5487 5488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5491printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5492if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5493then : 5494 printf %s "(cached) " >&6 5495else $as_nop 5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5497/* end confdefs.h. */ 5498int i; 5499_ACEOF 5500if ac_fn_c_try_compile "$LINENO" 5501then : 5502 xorg_cv_cc_flag_unknown_warning_option=yes 5503else $as_nop 5504 xorg_cv_cc_flag_unknown_warning_option=no 5505fi 5506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5507fi 5508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5509printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5511 CFLAGS="$xorg_testset_save_CFLAGS" 5512fi 5513 5514if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5517 fi 5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5520printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5521if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5522then : 5523 printf %s "(cached) " >&6 5524else $as_nop 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5526/* end confdefs.h. */ 5527int i; 5528_ACEOF 5529if ac_fn_c_try_compile "$LINENO" 5530then : 5531 xorg_cv_cc_flag_unused_command_line_argument=yes 5532else $as_nop 5533 xorg_cv_cc_flag_unused_command_line_argument=no 5534fi 5535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5536fi 5537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5538printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5540 CFLAGS="$xorg_testset_save_CFLAGS" 5541fi 5542 5543found="no" 5544 5545 if test $found = "no" ; then 5546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5548 fi 5549 5550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5552 fi 5553 5554 CFLAGS="$CFLAGS -Wstrict-prototypes" 5555 5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5557printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5558 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5559 if eval test \${$cacheid+y} 5560then : 5561 printf %s "(cached) " >&6 5562else $as_nop 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5564/* end confdefs.h. */ 5565int i; 5566int 5567main (void) 5568{ 5569 5570 ; 5571 return 0; 5572} 5573_ACEOF 5574if ac_fn_c_try_link "$LINENO" 5575then : 5576 eval $cacheid=yes 5577else $as_nop 5578 eval $cacheid=no 5579fi 5580rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5581 conftest$ac_exeext conftest.$ac_ext 5582fi 5583 5584 5585 CFLAGS="$xorg_testset_save_CFLAGS" 5586 5587 eval supported=\$$cacheid 5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5589printf "%s\n" "$supported" >&6; } 5590 if test "$supported" = "yes" ; then 5591 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5592 found="yes" 5593 fi 5594 fi 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610xorg_testset_save_CFLAGS="$CFLAGS" 5611 5612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5615printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5616if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5617then : 5618 printf %s "(cached) " >&6 5619else $as_nop 5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5621/* end confdefs.h. */ 5622int i; 5623_ACEOF 5624if ac_fn_c_try_compile "$LINENO" 5625then : 5626 xorg_cv_cc_flag_unknown_warning_option=yes 5627else $as_nop 5628 xorg_cv_cc_flag_unknown_warning_option=no 5629fi 5630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5631fi 5632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5633printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5635 CFLAGS="$xorg_testset_save_CFLAGS" 5636fi 5637 5638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5641 fi 5642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5644printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5645if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5646then : 5647 printf %s "(cached) " >&6 5648else $as_nop 5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5650/* end confdefs.h. */ 5651int i; 5652_ACEOF 5653if ac_fn_c_try_compile "$LINENO" 5654then : 5655 xorg_cv_cc_flag_unused_command_line_argument=yes 5656else $as_nop 5657 xorg_cv_cc_flag_unused_command_line_argument=no 5658fi 5659rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5660fi 5661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5662printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5664 CFLAGS="$xorg_testset_save_CFLAGS" 5665fi 5666 5667found="no" 5668 5669 if test $found = "no" ; then 5670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5672 fi 5673 5674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5676 fi 5677 5678 CFLAGS="$CFLAGS -Wmissing-prototypes" 5679 5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5681printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5682 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5683 if eval test \${$cacheid+y} 5684then : 5685 printf %s "(cached) " >&6 5686else $as_nop 5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5688/* end confdefs.h. */ 5689int i; 5690int 5691main (void) 5692{ 5693 5694 ; 5695 return 0; 5696} 5697_ACEOF 5698if ac_fn_c_try_link "$LINENO" 5699then : 5700 eval $cacheid=yes 5701else $as_nop 5702 eval $cacheid=no 5703fi 5704rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5705 conftest$ac_exeext conftest.$ac_ext 5706fi 5707 5708 5709 CFLAGS="$xorg_testset_save_CFLAGS" 5710 5711 eval supported=\$$cacheid 5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5713printf "%s\n" "$supported" >&6; } 5714 if test "$supported" = "yes" ; then 5715 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5716 found="yes" 5717 fi 5718 fi 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734xorg_testset_save_CFLAGS="$CFLAGS" 5735 5736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5739printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5740if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5741then : 5742 printf %s "(cached) " >&6 5743else $as_nop 5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5745/* end confdefs.h. */ 5746int i; 5747_ACEOF 5748if ac_fn_c_try_compile "$LINENO" 5749then : 5750 xorg_cv_cc_flag_unknown_warning_option=yes 5751else $as_nop 5752 xorg_cv_cc_flag_unknown_warning_option=no 5753fi 5754rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5755fi 5756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5757printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5759 CFLAGS="$xorg_testset_save_CFLAGS" 5760fi 5761 5762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5765 fi 5766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5768printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5769if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5770then : 5771 printf %s "(cached) " >&6 5772else $as_nop 5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5774/* end confdefs.h. */ 5775int i; 5776_ACEOF 5777if ac_fn_c_try_compile "$LINENO" 5778then : 5779 xorg_cv_cc_flag_unused_command_line_argument=yes 5780else $as_nop 5781 xorg_cv_cc_flag_unused_command_line_argument=no 5782fi 5783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5784fi 5785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5786printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5788 CFLAGS="$xorg_testset_save_CFLAGS" 5789fi 5790 5791found="no" 5792 5793 if test $found = "no" ; then 5794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5796 fi 5797 5798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5800 fi 5801 5802 CFLAGS="$CFLAGS -Wnested-externs" 5803 5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5805printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5806 cacheid=xorg_cv_cc_flag__Wnested_externs 5807 if eval test \${$cacheid+y} 5808then : 5809 printf %s "(cached) " >&6 5810else $as_nop 5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5812/* end confdefs.h. */ 5813int i; 5814int 5815main (void) 5816{ 5817 5818 ; 5819 return 0; 5820} 5821_ACEOF 5822if ac_fn_c_try_link "$LINENO" 5823then : 5824 eval $cacheid=yes 5825else $as_nop 5826 eval $cacheid=no 5827fi 5828rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5829 conftest$ac_exeext conftest.$ac_ext 5830fi 5831 5832 5833 CFLAGS="$xorg_testset_save_CFLAGS" 5834 5835 eval supported=\$$cacheid 5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5837printf "%s\n" "$supported" >&6; } 5838 if test "$supported" = "yes" ; then 5839 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5840 found="yes" 5841 fi 5842 fi 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858xorg_testset_save_CFLAGS="$CFLAGS" 5859 5860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5863printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5864if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5865then : 5866 printf %s "(cached) " >&6 5867else $as_nop 5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5869/* end confdefs.h. */ 5870int i; 5871_ACEOF 5872if ac_fn_c_try_compile "$LINENO" 5873then : 5874 xorg_cv_cc_flag_unknown_warning_option=yes 5875else $as_nop 5876 xorg_cv_cc_flag_unknown_warning_option=no 5877fi 5878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5879fi 5880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5881printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5883 CFLAGS="$xorg_testset_save_CFLAGS" 5884fi 5885 5886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5889 fi 5890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5892printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5893if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5894then : 5895 printf %s "(cached) " >&6 5896else $as_nop 5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5898/* end confdefs.h. */ 5899int i; 5900_ACEOF 5901if ac_fn_c_try_compile "$LINENO" 5902then : 5903 xorg_cv_cc_flag_unused_command_line_argument=yes 5904else $as_nop 5905 xorg_cv_cc_flag_unused_command_line_argument=no 5906fi 5907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5908fi 5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5910printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5912 CFLAGS="$xorg_testset_save_CFLAGS" 5913fi 5914 5915found="no" 5916 5917 if test $found = "no" ; then 5918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5920 fi 5921 5922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5924 fi 5925 5926 CFLAGS="$CFLAGS -Wbad-function-cast" 5927 5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5929printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5930 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5931 if eval test \${$cacheid+y} 5932then : 5933 printf %s "(cached) " >&6 5934else $as_nop 5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937int i; 5938int 5939main (void) 5940{ 5941 5942 ; 5943 return 0; 5944} 5945_ACEOF 5946if ac_fn_c_try_link "$LINENO" 5947then : 5948 eval $cacheid=yes 5949else $as_nop 5950 eval $cacheid=no 5951fi 5952rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5953 conftest$ac_exeext conftest.$ac_ext 5954fi 5955 5956 5957 CFLAGS="$xorg_testset_save_CFLAGS" 5958 5959 eval supported=\$$cacheid 5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5961printf "%s\n" "$supported" >&6; } 5962 if test "$supported" = "yes" ; then 5963 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5964 found="yes" 5965 fi 5966 fi 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982xorg_testset_save_CFLAGS="$CFLAGS" 5983 5984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5987printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5988if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5989then : 5990 printf %s "(cached) " >&6 5991else $as_nop 5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5993/* end confdefs.h. */ 5994int i; 5995_ACEOF 5996if ac_fn_c_try_compile "$LINENO" 5997then : 5998 xorg_cv_cc_flag_unknown_warning_option=yes 5999else $as_nop 6000 xorg_cv_cc_flag_unknown_warning_option=no 6001fi 6002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6003fi 6004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6005printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6007 CFLAGS="$xorg_testset_save_CFLAGS" 6008fi 6009 6010if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6013 fi 6014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6016printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6017if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6018then : 6019 printf %s "(cached) " >&6 6020else $as_nop 6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6022/* end confdefs.h. */ 6023int i; 6024_ACEOF 6025if ac_fn_c_try_compile "$LINENO" 6026then : 6027 xorg_cv_cc_flag_unused_command_line_argument=yes 6028else $as_nop 6029 xorg_cv_cc_flag_unused_command_line_argument=no 6030fi 6031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6032fi 6033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6034printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6036 CFLAGS="$xorg_testset_save_CFLAGS" 6037fi 6038 6039found="no" 6040 6041 if test $found = "no" ; then 6042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6044 fi 6045 6046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6048 fi 6049 6050 CFLAGS="$CFLAGS -Wold-style-definition" 6051 6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6053printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6054 cacheid=xorg_cv_cc_flag__Wold_style_definition 6055 if eval test \${$cacheid+y} 6056then : 6057 printf %s "(cached) " >&6 6058else $as_nop 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061int i; 6062int 6063main (void) 6064{ 6065 6066 ; 6067 return 0; 6068} 6069_ACEOF 6070if ac_fn_c_try_link "$LINENO" 6071then : 6072 eval $cacheid=yes 6073else $as_nop 6074 eval $cacheid=no 6075fi 6076rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6077 conftest$ac_exeext conftest.$ac_ext 6078fi 6079 6080 6081 CFLAGS="$xorg_testset_save_CFLAGS" 6082 6083 eval supported=\$$cacheid 6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6085printf "%s\n" "$supported" >&6; } 6086 if test "$supported" = "yes" ; then 6087 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6088 found="yes" 6089 fi 6090 fi 6091 6092 if test $found = "no" ; then 6093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6095 fi 6096 6097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6099 fi 6100 6101 CFLAGS="$CFLAGS -fd" 6102 6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6104printf %s "checking if $CC supports -fd... " >&6; } 6105 cacheid=xorg_cv_cc_flag__fd 6106 if eval test \${$cacheid+y} 6107then : 6108 printf %s "(cached) " >&6 6109else $as_nop 6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6111/* end confdefs.h. */ 6112int i; 6113int 6114main (void) 6115{ 6116 6117 ; 6118 return 0; 6119} 6120_ACEOF 6121if ac_fn_c_try_link "$LINENO" 6122then : 6123 eval $cacheid=yes 6124else $as_nop 6125 eval $cacheid=no 6126fi 6127rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6128 conftest$ac_exeext conftest.$ac_ext 6129fi 6130 6131 6132 CFLAGS="$xorg_testset_save_CFLAGS" 6133 6134 eval supported=\$$cacheid 6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6136printf "%s\n" "$supported" >&6; } 6137 if test "$supported" = "yes" ; then 6138 BASE_CFLAGS="$BASE_CFLAGS -fd" 6139 found="yes" 6140 fi 6141 fi 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157xorg_testset_save_CFLAGS="$CFLAGS" 6158 6159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6164then : 6165 printf %s "(cached) " >&6 6166else $as_nop 6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6168/* end confdefs.h. */ 6169int i; 6170_ACEOF 6171if ac_fn_c_try_compile "$LINENO" 6172then : 6173 xorg_cv_cc_flag_unknown_warning_option=yes 6174else $as_nop 6175 xorg_cv_cc_flag_unknown_warning_option=no 6176fi 6177rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6178fi 6179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6182 CFLAGS="$xorg_testset_save_CFLAGS" 6183fi 6184 6185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6188 fi 6189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6192if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6193then : 6194 printf %s "(cached) " >&6 6195else $as_nop 6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6197/* end confdefs.h. */ 6198int i; 6199_ACEOF 6200if ac_fn_c_try_compile "$LINENO" 6201then : 6202 xorg_cv_cc_flag_unused_command_line_argument=yes 6203else $as_nop 6204 xorg_cv_cc_flag_unused_command_line_argument=no 6205fi 6206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6207fi 6208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6209printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6211 CFLAGS="$xorg_testset_save_CFLAGS" 6212fi 6213 6214found="no" 6215 6216 if test $found = "no" ; then 6217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6219 fi 6220 6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6223 fi 6224 6225 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6226 6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6228printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6229 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6230 if eval test \${$cacheid+y} 6231then : 6232 printf %s "(cached) " >&6 6233else $as_nop 6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235/* end confdefs.h. */ 6236int i; 6237int 6238main (void) 6239{ 6240 6241 ; 6242 return 0; 6243} 6244_ACEOF 6245if ac_fn_c_try_link "$LINENO" 6246then : 6247 eval $cacheid=yes 6248else $as_nop 6249 eval $cacheid=no 6250fi 6251rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6252 conftest$ac_exeext conftest.$ac_ext 6253fi 6254 6255 6256 CFLAGS="$xorg_testset_save_CFLAGS" 6257 6258 eval supported=\$$cacheid 6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6260printf "%s\n" "$supported" >&6; } 6261 if test "$supported" = "yes" ; then 6262 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6263 found="yes" 6264 fi 6265 fi 6266 6267 6268 6269 6270 6271# This chunk adds additional warnings that could catch undesired effects. 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285xorg_testset_save_CFLAGS="$CFLAGS" 6286 6287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6290printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6291if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6292then : 6293 printf %s "(cached) " >&6 6294else $as_nop 6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6296/* end confdefs.h. */ 6297int i; 6298_ACEOF 6299if ac_fn_c_try_compile "$LINENO" 6300then : 6301 xorg_cv_cc_flag_unknown_warning_option=yes 6302else $as_nop 6303 xorg_cv_cc_flag_unknown_warning_option=no 6304fi 6305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6306fi 6307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6308printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6310 CFLAGS="$xorg_testset_save_CFLAGS" 6311fi 6312 6313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6316 fi 6317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6319printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6320if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6321then : 6322 printf %s "(cached) " >&6 6323else $as_nop 6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6325/* end confdefs.h. */ 6326int i; 6327_ACEOF 6328if ac_fn_c_try_compile "$LINENO" 6329then : 6330 xorg_cv_cc_flag_unused_command_line_argument=yes 6331else $as_nop 6332 xorg_cv_cc_flag_unused_command_line_argument=no 6333fi 6334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6335fi 6336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6337printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6339 CFLAGS="$xorg_testset_save_CFLAGS" 6340fi 6341 6342found="no" 6343 6344 if test $found = "no" ; then 6345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6347 fi 6348 6349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6351 fi 6352 6353 CFLAGS="$CFLAGS -Wunused" 6354 6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6356printf %s "checking if $CC supports -Wunused... " >&6; } 6357 cacheid=xorg_cv_cc_flag__Wunused 6358 if eval test \${$cacheid+y} 6359then : 6360 printf %s "(cached) " >&6 6361else $as_nop 6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364int i; 6365int 6366main (void) 6367{ 6368 6369 ; 6370 return 0; 6371} 6372_ACEOF 6373if ac_fn_c_try_link "$LINENO" 6374then : 6375 eval $cacheid=yes 6376else $as_nop 6377 eval $cacheid=no 6378fi 6379rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6380 conftest$ac_exeext conftest.$ac_ext 6381fi 6382 6383 6384 CFLAGS="$xorg_testset_save_CFLAGS" 6385 6386 eval supported=\$$cacheid 6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6388printf "%s\n" "$supported" >&6; } 6389 if test "$supported" = "yes" ; then 6390 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6391 found="yes" 6392 fi 6393 fi 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409xorg_testset_save_CFLAGS="$CFLAGS" 6410 6411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6415if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6416then : 6417 printf %s "(cached) " >&6 6418else $as_nop 6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6420/* end confdefs.h. */ 6421int i; 6422_ACEOF 6423if ac_fn_c_try_compile "$LINENO" 6424then : 6425 xorg_cv_cc_flag_unknown_warning_option=yes 6426else $as_nop 6427 xorg_cv_cc_flag_unknown_warning_option=no 6428fi 6429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6430fi 6431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6432printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6434 CFLAGS="$xorg_testset_save_CFLAGS" 6435fi 6436 6437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6440 fi 6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6443printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6444if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6445then : 6446 printf %s "(cached) " >&6 6447else $as_nop 6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6449/* end confdefs.h. */ 6450int i; 6451_ACEOF 6452if ac_fn_c_try_compile "$LINENO" 6453then : 6454 xorg_cv_cc_flag_unused_command_line_argument=yes 6455else $as_nop 6456 xorg_cv_cc_flag_unused_command_line_argument=no 6457fi 6458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6459fi 6460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6461printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6463 CFLAGS="$xorg_testset_save_CFLAGS" 6464fi 6465 6466found="no" 6467 6468 if test $found = "no" ; then 6469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6471 fi 6472 6473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6475 fi 6476 6477 CFLAGS="$CFLAGS -Wuninitialized" 6478 6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6480printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6481 cacheid=xorg_cv_cc_flag__Wuninitialized 6482 if eval test \${$cacheid+y} 6483then : 6484 printf %s "(cached) " >&6 6485else $as_nop 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6487/* end confdefs.h. */ 6488int i; 6489int 6490main (void) 6491{ 6492 6493 ; 6494 return 0; 6495} 6496_ACEOF 6497if ac_fn_c_try_link "$LINENO" 6498then : 6499 eval $cacheid=yes 6500else $as_nop 6501 eval $cacheid=no 6502fi 6503rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6504 conftest$ac_exeext conftest.$ac_ext 6505fi 6506 6507 6508 CFLAGS="$xorg_testset_save_CFLAGS" 6509 6510 eval supported=\$$cacheid 6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6512printf "%s\n" "$supported" >&6; } 6513 if test "$supported" = "yes" ; then 6514 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6515 found="yes" 6516 fi 6517 fi 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533xorg_testset_save_CFLAGS="$CFLAGS" 6534 6535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6539if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6540then : 6541 printf %s "(cached) " >&6 6542else $as_nop 6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6544/* end confdefs.h. */ 6545int i; 6546_ACEOF 6547if ac_fn_c_try_compile "$LINENO" 6548then : 6549 xorg_cv_cc_flag_unknown_warning_option=yes 6550else $as_nop 6551 xorg_cv_cc_flag_unknown_warning_option=no 6552fi 6553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6554fi 6555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6558 CFLAGS="$xorg_testset_save_CFLAGS" 6559fi 6560 6561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6564 fi 6565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6568if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6569then : 6570 printf %s "(cached) " >&6 6571else $as_nop 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573/* end confdefs.h. */ 6574int i; 6575_ACEOF 6576if ac_fn_c_try_compile "$LINENO" 6577then : 6578 xorg_cv_cc_flag_unused_command_line_argument=yes 6579else $as_nop 6580 xorg_cv_cc_flag_unused_command_line_argument=no 6581fi 6582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6583fi 6584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6587 CFLAGS="$xorg_testset_save_CFLAGS" 6588fi 6589 6590found="no" 6591 6592 if test $found = "no" ; then 6593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6595 fi 6596 6597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6599 fi 6600 6601 CFLAGS="$CFLAGS -Wshadow" 6602 6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6604printf %s "checking if $CC supports -Wshadow... " >&6; } 6605 cacheid=xorg_cv_cc_flag__Wshadow 6606 if eval test \${$cacheid+y} 6607then : 6608 printf %s "(cached) " >&6 6609else $as_nop 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6611/* end confdefs.h. */ 6612int i; 6613int 6614main (void) 6615{ 6616 6617 ; 6618 return 0; 6619} 6620_ACEOF 6621if ac_fn_c_try_link "$LINENO" 6622then : 6623 eval $cacheid=yes 6624else $as_nop 6625 eval $cacheid=no 6626fi 6627rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6628 conftest$ac_exeext conftest.$ac_ext 6629fi 6630 6631 6632 CFLAGS="$xorg_testset_save_CFLAGS" 6633 6634 eval supported=\$$cacheid 6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6636printf "%s\n" "$supported" >&6; } 6637 if test "$supported" = "yes" ; then 6638 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6639 found="yes" 6640 fi 6641 fi 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657xorg_testset_save_CFLAGS="$CFLAGS" 6658 6659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6662printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6663if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6664then : 6665 printf %s "(cached) " >&6 6666else $as_nop 6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6668/* end confdefs.h. */ 6669int i; 6670_ACEOF 6671if ac_fn_c_try_compile "$LINENO" 6672then : 6673 xorg_cv_cc_flag_unknown_warning_option=yes 6674else $as_nop 6675 xorg_cv_cc_flag_unknown_warning_option=no 6676fi 6677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6678fi 6679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6680printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6682 CFLAGS="$xorg_testset_save_CFLAGS" 6683fi 6684 6685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6688 fi 6689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6691printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6692if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6693then : 6694 printf %s "(cached) " >&6 6695else $as_nop 6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6697/* end confdefs.h. */ 6698int i; 6699_ACEOF 6700if ac_fn_c_try_compile "$LINENO" 6701then : 6702 xorg_cv_cc_flag_unused_command_line_argument=yes 6703else $as_nop 6704 xorg_cv_cc_flag_unused_command_line_argument=no 6705fi 6706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6707fi 6708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6709printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6711 CFLAGS="$xorg_testset_save_CFLAGS" 6712fi 6713 6714found="no" 6715 6716 if test $found = "no" ; then 6717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6719 fi 6720 6721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6723 fi 6724 6725 CFLAGS="$CFLAGS -Wmissing-noreturn" 6726 6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6728printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6729 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6730 if eval test \${$cacheid+y} 6731then : 6732 printf %s "(cached) " >&6 6733else $as_nop 6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6735/* end confdefs.h. */ 6736int i; 6737int 6738main (void) 6739{ 6740 6741 ; 6742 return 0; 6743} 6744_ACEOF 6745if ac_fn_c_try_link "$LINENO" 6746then : 6747 eval $cacheid=yes 6748else $as_nop 6749 eval $cacheid=no 6750fi 6751rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6752 conftest$ac_exeext conftest.$ac_ext 6753fi 6754 6755 6756 CFLAGS="$xorg_testset_save_CFLAGS" 6757 6758 eval supported=\$$cacheid 6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6760printf "%s\n" "$supported" >&6; } 6761 if test "$supported" = "yes" ; then 6762 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6763 found="yes" 6764 fi 6765 fi 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781xorg_testset_save_CFLAGS="$CFLAGS" 6782 6783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6786printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6787if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6788then : 6789 printf %s "(cached) " >&6 6790else $as_nop 6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6792/* end confdefs.h. */ 6793int i; 6794_ACEOF 6795if ac_fn_c_try_compile "$LINENO" 6796then : 6797 xorg_cv_cc_flag_unknown_warning_option=yes 6798else $as_nop 6799 xorg_cv_cc_flag_unknown_warning_option=no 6800fi 6801rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6802fi 6803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6804printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6806 CFLAGS="$xorg_testset_save_CFLAGS" 6807fi 6808 6809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6812 fi 6813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6815printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6816if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6817then : 6818 printf %s "(cached) " >&6 6819else $as_nop 6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821/* end confdefs.h. */ 6822int i; 6823_ACEOF 6824if ac_fn_c_try_compile "$LINENO" 6825then : 6826 xorg_cv_cc_flag_unused_command_line_argument=yes 6827else $as_nop 6828 xorg_cv_cc_flag_unused_command_line_argument=no 6829fi 6830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6831fi 6832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6833printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6835 CFLAGS="$xorg_testset_save_CFLAGS" 6836fi 6837 6838found="no" 6839 6840 if test $found = "no" ; then 6841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6843 fi 6844 6845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6847 fi 6848 6849 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6850 6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6852printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6853 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6854 if eval test \${$cacheid+y} 6855then : 6856 printf %s "(cached) " >&6 6857else $as_nop 6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6859/* end confdefs.h. */ 6860int i; 6861int 6862main (void) 6863{ 6864 6865 ; 6866 return 0; 6867} 6868_ACEOF 6869if ac_fn_c_try_link "$LINENO" 6870then : 6871 eval $cacheid=yes 6872else $as_nop 6873 eval $cacheid=no 6874fi 6875rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6876 conftest$ac_exeext conftest.$ac_ext 6877fi 6878 6879 6880 CFLAGS="$xorg_testset_save_CFLAGS" 6881 6882 eval supported=\$$cacheid 6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6884printf "%s\n" "$supported" >&6; } 6885 if test "$supported" = "yes" ; then 6886 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6887 found="yes" 6888 fi 6889 fi 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905xorg_testset_save_CFLAGS="$CFLAGS" 6906 6907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6910printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6911if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6912then : 6913 printf %s "(cached) " >&6 6914else $as_nop 6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6916/* end confdefs.h. */ 6917int i; 6918_ACEOF 6919if ac_fn_c_try_compile "$LINENO" 6920then : 6921 xorg_cv_cc_flag_unknown_warning_option=yes 6922else $as_nop 6923 xorg_cv_cc_flag_unknown_warning_option=no 6924fi 6925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6926fi 6927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6928printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6930 CFLAGS="$xorg_testset_save_CFLAGS" 6931fi 6932 6933if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6936 fi 6937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6939printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6940if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6941then : 6942 printf %s "(cached) " >&6 6943else $as_nop 6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6945/* end confdefs.h. */ 6946int i; 6947_ACEOF 6948if ac_fn_c_try_compile "$LINENO" 6949then : 6950 xorg_cv_cc_flag_unused_command_line_argument=yes 6951else $as_nop 6952 xorg_cv_cc_flag_unused_command_line_argument=no 6953fi 6954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6955fi 6956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6959 CFLAGS="$xorg_testset_save_CFLAGS" 6960fi 6961 6962found="no" 6963 6964 if test $found = "no" ; then 6965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6967 fi 6968 6969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6971 fi 6972 6973 CFLAGS="$CFLAGS -Wredundant-decls" 6974 6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6976printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6977 cacheid=xorg_cv_cc_flag__Wredundant_decls 6978 if eval test \${$cacheid+y} 6979then : 6980 printf %s "(cached) " >&6 6981else $as_nop 6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6983/* end confdefs.h. */ 6984int i; 6985int 6986main (void) 6987{ 6988 6989 ; 6990 return 0; 6991} 6992_ACEOF 6993if ac_fn_c_try_link "$LINENO" 6994then : 6995 eval $cacheid=yes 6996else $as_nop 6997 eval $cacheid=no 6998fi 6999rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7000 conftest$ac_exeext conftest.$ac_ext 7001fi 7002 7003 7004 CFLAGS="$xorg_testset_save_CFLAGS" 7005 7006 eval supported=\$$cacheid 7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7008printf "%s\n" "$supported" >&6; } 7009 if test "$supported" = "yes" ; then 7010 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7011 found="yes" 7012 fi 7013 fi 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029xorg_testset_save_CFLAGS="$CFLAGS" 7030 7031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7034printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7035if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7036then : 7037 printf %s "(cached) " >&6 7038else $as_nop 7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7040/* end confdefs.h. */ 7041int i; 7042_ACEOF 7043if ac_fn_c_try_compile "$LINENO" 7044then : 7045 xorg_cv_cc_flag_unknown_warning_option=yes 7046else $as_nop 7047 xorg_cv_cc_flag_unknown_warning_option=no 7048fi 7049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7050fi 7051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7052printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7054 CFLAGS="$xorg_testset_save_CFLAGS" 7055fi 7056 7057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7060 fi 7061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7063printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7064if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7065then : 7066 printf %s "(cached) " >&6 7067else $as_nop 7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069/* end confdefs.h. */ 7070int i; 7071_ACEOF 7072if ac_fn_c_try_compile "$LINENO" 7073then : 7074 xorg_cv_cc_flag_unused_command_line_argument=yes 7075else $as_nop 7076 xorg_cv_cc_flag_unused_command_line_argument=no 7077fi 7078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7079fi 7080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7083 CFLAGS="$xorg_testset_save_CFLAGS" 7084fi 7085 7086found="no" 7087 7088 if test $found = "no" ; then 7089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7091 fi 7092 7093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7095 fi 7096 7097 CFLAGS="$CFLAGS -Wlogical-op" 7098 7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7100printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7101 cacheid=xorg_cv_cc_flag__Wlogical_op 7102 if eval test \${$cacheid+y} 7103then : 7104 printf %s "(cached) " >&6 7105else $as_nop 7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7107/* end confdefs.h. */ 7108int i; 7109int 7110main (void) 7111{ 7112 7113 ; 7114 return 0; 7115} 7116_ACEOF 7117if ac_fn_c_try_link "$LINENO" 7118then : 7119 eval $cacheid=yes 7120else $as_nop 7121 eval $cacheid=no 7122fi 7123rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7124 conftest$ac_exeext conftest.$ac_ext 7125fi 7126 7127 7128 CFLAGS="$xorg_testset_save_CFLAGS" 7129 7130 eval supported=\$$cacheid 7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7132printf "%s\n" "$supported" >&6; } 7133 if test "$supported" = "yes" ; then 7134 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7135 found="yes" 7136 fi 7137 fi 7138 7139 7140 7141# These are currently disabled because they are noisy. They will be enabled 7142# in the future once the codebase is sufficiently modernized to silence 7143# them. For now, I don't want them to drown out the other warnings. 7144# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7145# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7146# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7147 7148# Turn some warnings into errors, so we don't accidently get successful builds 7149# when there are problems that should be fixed. 7150 7151if test "x$SELECTIVE_WERROR" = "xyes" ; then 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165xorg_testset_save_CFLAGS="$CFLAGS" 7166 7167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7171if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7172then : 7173 printf %s "(cached) " >&6 7174else $as_nop 7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7176/* end confdefs.h. */ 7177int i; 7178_ACEOF 7179if ac_fn_c_try_compile "$LINENO" 7180then : 7181 xorg_cv_cc_flag_unknown_warning_option=yes 7182else $as_nop 7183 xorg_cv_cc_flag_unknown_warning_option=no 7184fi 7185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7186fi 7187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7190 CFLAGS="$xorg_testset_save_CFLAGS" 7191fi 7192 7193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7196 fi 7197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7200if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7201then : 7202 printf %s "(cached) " >&6 7203else $as_nop 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206int i; 7207_ACEOF 7208if ac_fn_c_try_compile "$LINENO" 7209then : 7210 xorg_cv_cc_flag_unused_command_line_argument=yes 7211else $as_nop 7212 xorg_cv_cc_flag_unused_command_line_argument=no 7213fi 7214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7215fi 7216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7219 CFLAGS="$xorg_testset_save_CFLAGS" 7220fi 7221 7222found="no" 7223 7224 if test $found = "no" ; then 7225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7227 fi 7228 7229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7231 fi 7232 7233 CFLAGS="$CFLAGS -Werror=implicit" 7234 7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7236printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7237 cacheid=xorg_cv_cc_flag__Werror_implicit 7238 if eval test \${$cacheid+y} 7239then : 7240 printf %s "(cached) " >&6 7241else $as_nop 7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7243/* end confdefs.h. */ 7244int i; 7245int 7246main (void) 7247{ 7248 7249 ; 7250 return 0; 7251} 7252_ACEOF 7253if ac_fn_c_try_link "$LINENO" 7254then : 7255 eval $cacheid=yes 7256else $as_nop 7257 eval $cacheid=no 7258fi 7259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7260 conftest$ac_exeext conftest.$ac_ext 7261fi 7262 7263 7264 CFLAGS="$xorg_testset_save_CFLAGS" 7265 7266 eval supported=\$$cacheid 7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7268printf "%s\n" "$supported" >&6; } 7269 if test "$supported" = "yes" ; then 7270 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7271 found="yes" 7272 fi 7273 fi 7274 7275 if test $found = "no" ; then 7276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7278 fi 7279 7280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7282 fi 7283 7284 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7285 7286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7287printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7288 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7289 if eval test \${$cacheid+y} 7290then : 7291 printf %s "(cached) " >&6 7292else $as_nop 7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7294/* end confdefs.h. */ 7295int i; 7296int 7297main (void) 7298{ 7299 7300 ; 7301 return 0; 7302} 7303_ACEOF 7304if ac_fn_c_try_link "$LINENO" 7305then : 7306 eval $cacheid=yes 7307else $as_nop 7308 eval $cacheid=no 7309fi 7310rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7311 conftest$ac_exeext conftest.$ac_ext 7312fi 7313 7314 7315 CFLAGS="$xorg_testset_save_CFLAGS" 7316 7317 eval supported=\$$cacheid 7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7319printf "%s\n" "$supported" >&6; } 7320 if test "$supported" = "yes" ; then 7321 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7322 found="yes" 7323 fi 7324 fi 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340xorg_testset_save_CFLAGS="$CFLAGS" 7341 7342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7345printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7346if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7347then : 7348 printf %s "(cached) " >&6 7349else $as_nop 7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351/* end confdefs.h. */ 7352int i; 7353_ACEOF 7354if ac_fn_c_try_compile "$LINENO" 7355then : 7356 xorg_cv_cc_flag_unknown_warning_option=yes 7357else $as_nop 7358 xorg_cv_cc_flag_unknown_warning_option=no 7359fi 7360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7361fi 7362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7363printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7365 CFLAGS="$xorg_testset_save_CFLAGS" 7366fi 7367 7368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7371 fi 7372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7374printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7375if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7376then : 7377 printf %s "(cached) " >&6 7378else $as_nop 7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7380/* end confdefs.h. */ 7381int i; 7382_ACEOF 7383if ac_fn_c_try_compile "$LINENO" 7384then : 7385 xorg_cv_cc_flag_unused_command_line_argument=yes 7386else $as_nop 7387 xorg_cv_cc_flag_unused_command_line_argument=no 7388fi 7389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7390fi 7391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7392printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7394 CFLAGS="$xorg_testset_save_CFLAGS" 7395fi 7396 7397found="no" 7398 7399 if test $found = "no" ; then 7400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7402 fi 7403 7404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7406 fi 7407 7408 CFLAGS="$CFLAGS -Werror=nonnull" 7409 7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7411printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7412 cacheid=xorg_cv_cc_flag__Werror_nonnull 7413 if eval test \${$cacheid+y} 7414then : 7415 printf %s "(cached) " >&6 7416else $as_nop 7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7418/* end confdefs.h. */ 7419int i; 7420int 7421main (void) 7422{ 7423 7424 ; 7425 return 0; 7426} 7427_ACEOF 7428if ac_fn_c_try_link "$LINENO" 7429then : 7430 eval $cacheid=yes 7431else $as_nop 7432 eval $cacheid=no 7433fi 7434rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7435 conftest$ac_exeext conftest.$ac_ext 7436fi 7437 7438 7439 CFLAGS="$xorg_testset_save_CFLAGS" 7440 7441 eval supported=\$$cacheid 7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7443printf "%s\n" "$supported" >&6; } 7444 if test "$supported" = "yes" ; then 7445 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7446 found="yes" 7447 fi 7448 fi 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464xorg_testset_save_CFLAGS="$CFLAGS" 7465 7466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7470if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7471then : 7472 printf %s "(cached) " >&6 7473else $as_nop 7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7475/* end confdefs.h. */ 7476int i; 7477_ACEOF 7478if ac_fn_c_try_compile "$LINENO" 7479then : 7480 xorg_cv_cc_flag_unknown_warning_option=yes 7481else $as_nop 7482 xorg_cv_cc_flag_unknown_warning_option=no 7483fi 7484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7485fi 7486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7489 CFLAGS="$xorg_testset_save_CFLAGS" 7490fi 7491 7492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7495 fi 7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7499if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7500then : 7501 printf %s "(cached) " >&6 7502else $as_nop 7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7504/* end confdefs.h. */ 7505int i; 7506_ACEOF 7507if ac_fn_c_try_compile "$LINENO" 7508then : 7509 xorg_cv_cc_flag_unused_command_line_argument=yes 7510else $as_nop 7511 xorg_cv_cc_flag_unused_command_line_argument=no 7512fi 7513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7514fi 7515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7516printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7518 CFLAGS="$xorg_testset_save_CFLAGS" 7519fi 7520 7521found="no" 7522 7523 if test $found = "no" ; then 7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 fi 7527 7528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7530 fi 7531 7532 CFLAGS="$CFLAGS -Werror=init-self" 7533 7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7535printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7536 cacheid=xorg_cv_cc_flag__Werror_init_self 7537 if eval test \${$cacheid+y} 7538then : 7539 printf %s "(cached) " >&6 7540else $as_nop 7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7542/* end confdefs.h. */ 7543int i; 7544int 7545main (void) 7546{ 7547 7548 ; 7549 return 0; 7550} 7551_ACEOF 7552if ac_fn_c_try_link "$LINENO" 7553then : 7554 eval $cacheid=yes 7555else $as_nop 7556 eval $cacheid=no 7557fi 7558rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7559 conftest$ac_exeext conftest.$ac_ext 7560fi 7561 7562 7563 CFLAGS="$xorg_testset_save_CFLAGS" 7564 7565 eval supported=\$$cacheid 7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7567printf "%s\n" "$supported" >&6; } 7568 if test "$supported" = "yes" ; then 7569 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7570 found="yes" 7571 fi 7572 fi 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588xorg_testset_save_CFLAGS="$CFLAGS" 7589 7590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7594if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7595then : 7596 printf %s "(cached) " >&6 7597else $as_nop 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600int i; 7601_ACEOF 7602if ac_fn_c_try_compile "$LINENO" 7603then : 7604 xorg_cv_cc_flag_unknown_warning_option=yes 7605else $as_nop 7606 xorg_cv_cc_flag_unknown_warning_option=no 7607fi 7608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7609fi 7610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7613 CFLAGS="$xorg_testset_save_CFLAGS" 7614fi 7615 7616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7619 fi 7620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7623if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7624then : 7625 printf %s "(cached) " >&6 7626else $as_nop 7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628/* end confdefs.h. */ 7629int i; 7630_ACEOF 7631if ac_fn_c_try_compile "$LINENO" 7632then : 7633 xorg_cv_cc_flag_unused_command_line_argument=yes 7634else $as_nop 7635 xorg_cv_cc_flag_unused_command_line_argument=no 7636fi 7637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7638fi 7639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7642 CFLAGS="$xorg_testset_save_CFLAGS" 7643fi 7644 7645found="no" 7646 7647 if test $found = "no" ; then 7648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7650 fi 7651 7652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7654 fi 7655 7656 CFLAGS="$CFLAGS -Werror=main" 7657 7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7659printf %s "checking if $CC supports -Werror=main... " >&6; } 7660 cacheid=xorg_cv_cc_flag__Werror_main 7661 if eval test \${$cacheid+y} 7662then : 7663 printf %s "(cached) " >&6 7664else $as_nop 7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7666/* end confdefs.h. */ 7667int i; 7668int 7669main (void) 7670{ 7671 7672 ; 7673 return 0; 7674} 7675_ACEOF 7676if ac_fn_c_try_link "$LINENO" 7677then : 7678 eval $cacheid=yes 7679else $as_nop 7680 eval $cacheid=no 7681fi 7682rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7683 conftest$ac_exeext conftest.$ac_ext 7684fi 7685 7686 7687 CFLAGS="$xorg_testset_save_CFLAGS" 7688 7689 eval supported=\$$cacheid 7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7691printf "%s\n" "$supported" >&6; } 7692 if test "$supported" = "yes" ; then 7693 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7694 found="yes" 7695 fi 7696 fi 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712xorg_testset_save_CFLAGS="$CFLAGS" 7713 7714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7718if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7719then : 7720 printf %s "(cached) " >&6 7721else $as_nop 7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7723/* end confdefs.h. */ 7724int i; 7725_ACEOF 7726if ac_fn_c_try_compile "$LINENO" 7727then : 7728 xorg_cv_cc_flag_unknown_warning_option=yes 7729else $as_nop 7730 xorg_cv_cc_flag_unknown_warning_option=no 7731fi 7732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7733fi 7734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7735printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7737 CFLAGS="$xorg_testset_save_CFLAGS" 7738fi 7739 7740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7743 fi 7744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7746printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7747if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7748then : 7749 printf %s "(cached) " >&6 7750else $as_nop 7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7752/* end confdefs.h. */ 7753int i; 7754_ACEOF 7755if ac_fn_c_try_compile "$LINENO" 7756then : 7757 xorg_cv_cc_flag_unused_command_line_argument=yes 7758else $as_nop 7759 xorg_cv_cc_flag_unused_command_line_argument=no 7760fi 7761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7762fi 7763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7766 CFLAGS="$xorg_testset_save_CFLAGS" 7767fi 7768 7769found="no" 7770 7771 if test $found = "no" ; then 7772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7774 fi 7775 7776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7778 fi 7779 7780 CFLAGS="$CFLAGS -Werror=missing-braces" 7781 7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7783printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7784 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7785 if eval test \${$cacheid+y} 7786then : 7787 printf %s "(cached) " >&6 7788else $as_nop 7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7790/* end confdefs.h. */ 7791int i; 7792int 7793main (void) 7794{ 7795 7796 ; 7797 return 0; 7798} 7799_ACEOF 7800if ac_fn_c_try_link "$LINENO" 7801then : 7802 eval $cacheid=yes 7803else $as_nop 7804 eval $cacheid=no 7805fi 7806rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7807 conftest$ac_exeext conftest.$ac_ext 7808fi 7809 7810 7811 CFLAGS="$xorg_testset_save_CFLAGS" 7812 7813 eval supported=\$$cacheid 7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7815printf "%s\n" "$supported" >&6; } 7816 if test "$supported" = "yes" ; then 7817 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7818 found="yes" 7819 fi 7820 fi 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836xorg_testset_save_CFLAGS="$CFLAGS" 7837 7838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7842if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7843then : 7844 printf %s "(cached) " >&6 7845else $as_nop 7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7847/* end confdefs.h. */ 7848int i; 7849_ACEOF 7850if ac_fn_c_try_compile "$LINENO" 7851then : 7852 xorg_cv_cc_flag_unknown_warning_option=yes 7853else $as_nop 7854 xorg_cv_cc_flag_unknown_warning_option=no 7855fi 7856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7857fi 7858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7861 CFLAGS="$xorg_testset_save_CFLAGS" 7862fi 7863 7864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7867 fi 7868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7871if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7872then : 7873 printf %s "(cached) " >&6 7874else $as_nop 7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7876/* end confdefs.h. */ 7877int i; 7878_ACEOF 7879if ac_fn_c_try_compile "$LINENO" 7880then : 7881 xorg_cv_cc_flag_unused_command_line_argument=yes 7882else $as_nop 7883 xorg_cv_cc_flag_unused_command_line_argument=no 7884fi 7885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7886fi 7887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7890 CFLAGS="$xorg_testset_save_CFLAGS" 7891fi 7892 7893found="no" 7894 7895 if test $found = "no" ; then 7896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7898 fi 7899 7900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7902 fi 7903 7904 CFLAGS="$CFLAGS -Werror=sequence-point" 7905 7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7907printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7908 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7909 if eval test \${$cacheid+y} 7910then : 7911 printf %s "(cached) " >&6 7912else $as_nop 7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7914/* end confdefs.h. */ 7915int i; 7916int 7917main (void) 7918{ 7919 7920 ; 7921 return 0; 7922} 7923_ACEOF 7924if ac_fn_c_try_link "$LINENO" 7925then : 7926 eval $cacheid=yes 7927else $as_nop 7928 eval $cacheid=no 7929fi 7930rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7931 conftest$ac_exeext conftest.$ac_ext 7932fi 7933 7934 7935 CFLAGS="$xorg_testset_save_CFLAGS" 7936 7937 eval supported=\$$cacheid 7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7939printf "%s\n" "$supported" >&6; } 7940 if test "$supported" = "yes" ; then 7941 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7942 found="yes" 7943 fi 7944 fi 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960xorg_testset_save_CFLAGS="$CFLAGS" 7961 7962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7966if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7967then : 7968 printf %s "(cached) " >&6 7969else $as_nop 7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972int i; 7973_ACEOF 7974if ac_fn_c_try_compile "$LINENO" 7975then : 7976 xorg_cv_cc_flag_unknown_warning_option=yes 7977else $as_nop 7978 xorg_cv_cc_flag_unknown_warning_option=no 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7981fi 7982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7983printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7985 CFLAGS="$xorg_testset_save_CFLAGS" 7986fi 7987 7988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7991 fi 7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7994printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7995if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7996then : 7997 printf %s "(cached) " >&6 7998else $as_nop 7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8000/* end confdefs.h. */ 8001int i; 8002_ACEOF 8003if ac_fn_c_try_compile "$LINENO" 8004then : 8005 xorg_cv_cc_flag_unused_command_line_argument=yes 8006else $as_nop 8007 xorg_cv_cc_flag_unused_command_line_argument=no 8008fi 8009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8010fi 8011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8014 CFLAGS="$xorg_testset_save_CFLAGS" 8015fi 8016 8017found="no" 8018 8019 if test $found = "no" ; then 8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8022 fi 8023 8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8026 fi 8027 8028 CFLAGS="$CFLAGS -Werror=return-type" 8029 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8031printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8032 cacheid=xorg_cv_cc_flag__Werror_return_type 8033 if eval test \${$cacheid+y} 8034then : 8035 printf %s "(cached) " >&6 8036else $as_nop 8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038/* end confdefs.h. */ 8039int i; 8040int 8041main (void) 8042{ 8043 8044 ; 8045 return 0; 8046} 8047_ACEOF 8048if ac_fn_c_try_link "$LINENO" 8049then : 8050 eval $cacheid=yes 8051else $as_nop 8052 eval $cacheid=no 8053fi 8054rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8055 conftest$ac_exeext conftest.$ac_ext 8056fi 8057 8058 8059 CFLAGS="$xorg_testset_save_CFLAGS" 8060 8061 eval supported=\$$cacheid 8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8063printf "%s\n" "$supported" >&6; } 8064 if test "$supported" = "yes" ; then 8065 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8066 found="yes" 8067 fi 8068 fi 8069 8070 if test $found = "no" ; then 8071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8073 fi 8074 8075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8077 fi 8078 8079 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8080 8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8082printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8083 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8084 if eval test \${$cacheid+y} 8085then : 8086 printf %s "(cached) " >&6 8087else $as_nop 8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8089/* end confdefs.h. */ 8090int i; 8091int 8092main (void) 8093{ 8094 8095 ; 8096 return 0; 8097} 8098_ACEOF 8099if ac_fn_c_try_link "$LINENO" 8100then : 8101 eval $cacheid=yes 8102else $as_nop 8103 eval $cacheid=no 8104fi 8105rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8106 conftest$ac_exeext conftest.$ac_ext 8107fi 8108 8109 8110 CFLAGS="$xorg_testset_save_CFLAGS" 8111 8112 eval supported=\$$cacheid 8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8114printf "%s\n" "$supported" >&6; } 8115 if test "$supported" = "yes" ; then 8116 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8117 found="yes" 8118 fi 8119 fi 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135xorg_testset_save_CFLAGS="$CFLAGS" 8136 8137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8140printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8141if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8142then : 8143 printf %s "(cached) " >&6 8144else $as_nop 8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146/* end confdefs.h. */ 8147int i; 8148_ACEOF 8149if ac_fn_c_try_compile "$LINENO" 8150then : 8151 xorg_cv_cc_flag_unknown_warning_option=yes 8152else $as_nop 8153 xorg_cv_cc_flag_unknown_warning_option=no 8154fi 8155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8156fi 8157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8160 CFLAGS="$xorg_testset_save_CFLAGS" 8161fi 8162 8163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8166 fi 8167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8170if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8171then : 8172 printf %s "(cached) " >&6 8173else $as_nop 8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8175/* end confdefs.h. */ 8176int i; 8177_ACEOF 8178if ac_fn_c_try_compile "$LINENO" 8179then : 8180 xorg_cv_cc_flag_unused_command_line_argument=yes 8181else $as_nop 8182 xorg_cv_cc_flag_unused_command_line_argument=no 8183fi 8184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8185fi 8186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8187printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8189 CFLAGS="$xorg_testset_save_CFLAGS" 8190fi 8191 8192found="no" 8193 8194 if test $found = "no" ; then 8195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8197 fi 8198 8199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8201 fi 8202 8203 CFLAGS="$CFLAGS -Werror=trigraphs" 8204 8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8206printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8207 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8208 if eval test \${$cacheid+y} 8209then : 8210 printf %s "(cached) " >&6 8211else $as_nop 8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8213/* end confdefs.h. */ 8214int i; 8215int 8216main (void) 8217{ 8218 8219 ; 8220 return 0; 8221} 8222_ACEOF 8223if ac_fn_c_try_link "$LINENO" 8224then : 8225 eval $cacheid=yes 8226else $as_nop 8227 eval $cacheid=no 8228fi 8229rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8230 conftest$ac_exeext conftest.$ac_ext 8231fi 8232 8233 8234 CFLAGS="$xorg_testset_save_CFLAGS" 8235 8236 eval supported=\$$cacheid 8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8238printf "%s\n" "$supported" >&6; } 8239 if test "$supported" = "yes" ; then 8240 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8241 found="yes" 8242 fi 8243 fi 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259xorg_testset_save_CFLAGS="$CFLAGS" 8260 8261if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8264printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8265if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8266then : 8267 printf %s "(cached) " >&6 8268else $as_nop 8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8270/* end confdefs.h. */ 8271int i; 8272_ACEOF 8273if ac_fn_c_try_compile "$LINENO" 8274then : 8275 xorg_cv_cc_flag_unknown_warning_option=yes 8276else $as_nop 8277 xorg_cv_cc_flag_unknown_warning_option=no 8278fi 8279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8280fi 8281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8282printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8284 CFLAGS="$xorg_testset_save_CFLAGS" 8285fi 8286 8287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8290 fi 8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8293printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8294if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8295then : 8296 printf %s "(cached) " >&6 8297else $as_nop 8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8299/* end confdefs.h. */ 8300int i; 8301_ACEOF 8302if ac_fn_c_try_compile "$LINENO" 8303then : 8304 xorg_cv_cc_flag_unused_command_line_argument=yes 8305else $as_nop 8306 xorg_cv_cc_flag_unused_command_line_argument=no 8307fi 8308rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8309fi 8310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8311printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8313 CFLAGS="$xorg_testset_save_CFLAGS" 8314fi 8315 8316found="no" 8317 8318 if test $found = "no" ; then 8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8321 fi 8322 8323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8325 fi 8326 8327 CFLAGS="$CFLAGS -Werror=array-bounds" 8328 8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8330printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8331 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8332 if eval test \${$cacheid+y} 8333then : 8334 printf %s "(cached) " >&6 8335else $as_nop 8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8337/* end confdefs.h. */ 8338int i; 8339int 8340main (void) 8341{ 8342 8343 ; 8344 return 0; 8345} 8346_ACEOF 8347if ac_fn_c_try_link "$LINENO" 8348then : 8349 eval $cacheid=yes 8350else $as_nop 8351 eval $cacheid=no 8352fi 8353rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8354 conftest$ac_exeext conftest.$ac_ext 8355fi 8356 8357 8358 CFLAGS="$xorg_testset_save_CFLAGS" 8359 8360 eval supported=\$$cacheid 8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8362printf "%s\n" "$supported" >&6; } 8363 if test "$supported" = "yes" ; then 8364 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8365 found="yes" 8366 fi 8367 fi 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383xorg_testset_save_CFLAGS="$CFLAGS" 8384 8385if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8388printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8389if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8390then : 8391 printf %s "(cached) " >&6 8392else $as_nop 8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8394/* end confdefs.h. */ 8395int i; 8396_ACEOF 8397if ac_fn_c_try_compile "$LINENO" 8398then : 8399 xorg_cv_cc_flag_unknown_warning_option=yes 8400else $as_nop 8401 xorg_cv_cc_flag_unknown_warning_option=no 8402fi 8403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8404fi 8405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8406printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8408 CFLAGS="$xorg_testset_save_CFLAGS" 8409fi 8410 8411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8414 fi 8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8417printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8418if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8419then : 8420 printf %s "(cached) " >&6 8421else $as_nop 8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8423/* end confdefs.h. */ 8424int i; 8425_ACEOF 8426if ac_fn_c_try_compile "$LINENO" 8427then : 8428 xorg_cv_cc_flag_unused_command_line_argument=yes 8429else $as_nop 8430 xorg_cv_cc_flag_unused_command_line_argument=no 8431fi 8432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8433fi 8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8435printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8437 CFLAGS="$xorg_testset_save_CFLAGS" 8438fi 8439 8440found="no" 8441 8442 if test $found = "no" ; then 8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8445 fi 8446 8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8449 fi 8450 8451 CFLAGS="$CFLAGS -Werror=write-strings" 8452 8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8454printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8455 cacheid=xorg_cv_cc_flag__Werror_write_strings 8456 if eval test \${$cacheid+y} 8457then : 8458 printf %s "(cached) " >&6 8459else $as_nop 8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8461/* end confdefs.h. */ 8462int i; 8463int 8464main (void) 8465{ 8466 8467 ; 8468 return 0; 8469} 8470_ACEOF 8471if ac_fn_c_try_link "$LINENO" 8472then : 8473 eval $cacheid=yes 8474else $as_nop 8475 eval $cacheid=no 8476fi 8477rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8478 conftest$ac_exeext conftest.$ac_ext 8479fi 8480 8481 8482 CFLAGS="$xorg_testset_save_CFLAGS" 8483 8484 eval supported=\$$cacheid 8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8486printf "%s\n" "$supported" >&6; } 8487 if test "$supported" = "yes" ; then 8488 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8489 found="yes" 8490 fi 8491 fi 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507xorg_testset_save_CFLAGS="$CFLAGS" 8508 8509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8512printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8513if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8514then : 8515 printf %s "(cached) " >&6 8516else $as_nop 8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8518/* end confdefs.h. */ 8519int i; 8520_ACEOF 8521if ac_fn_c_try_compile "$LINENO" 8522then : 8523 xorg_cv_cc_flag_unknown_warning_option=yes 8524else $as_nop 8525 xorg_cv_cc_flag_unknown_warning_option=no 8526fi 8527rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8528fi 8529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8530printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8532 CFLAGS="$xorg_testset_save_CFLAGS" 8533fi 8534 8535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8538 fi 8539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8541printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8542if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8543then : 8544 printf %s "(cached) " >&6 8545else $as_nop 8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8547/* end confdefs.h. */ 8548int i; 8549_ACEOF 8550if ac_fn_c_try_compile "$LINENO" 8551then : 8552 xorg_cv_cc_flag_unused_command_line_argument=yes 8553else $as_nop 8554 xorg_cv_cc_flag_unused_command_line_argument=no 8555fi 8556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8557fi 8558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8559printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8561 CFLAGS="$xorg_testset_save_CFLAGS" 8562fi 8563 8564found="no" 8565 8566 if test $found = "no" ; then 8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8569 fi 8570 8571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8573 fi 8574 8575 CFLAGS="$CFLAGS -Werror=address" 8576 8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8578printf %s "checking if $CC supports -Werror=address... " >&6; } 8579 cacheid=xorg_cv_cc_flag__Werror_address 8580 if eval test \${$cacheid+y} 8581then : 8582 printf %s "(cached) " >&6 8583else $as_nop 8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8585/* end confdefs.h. */ 8586int i; 8587int 8588main (void) 8589{ 8590 8591 ; 8592 return 0; 8593} 8594_ACEOF 8595if ac_fn_c_try_link "$LINENO" 8596then : 8597 eval $cacheid=yes 8598else $as_nop 8599 eval $cacheid=no 8600fi 8601rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8602 conftest$ac_exeext conftest.$ac_ext 8603fi 8604 8605 8606 CFLAGS="$xorg_testset_save_CFLAGS" 8607 8608 eval supported=\$$cacheid 8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8610printf "%s\n" "$supported" >&6; } 8611 if test "$supported" = "yes" ; then 8612 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8613 found="yes" 8614 fi 8615 fi 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631xorg_testset_save_CFLAGS="$CFLAGS" 8632 8633if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8636printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8637if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8638then : 8639 printf %s "(cached) " >&6 8640else $as_nop 8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642/* end confdefs.h. */ 8643int i; 8644_ACEOF 8645if ac_fn_c_try_compile "$LINENO" 8646then : 8647 xorg_cv_cc_flag_unknown_warning_option=yes 8648else $as_nop 8649 xorg_cv_cc_flag_unknown_warning_option=no 8650fi 8651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8652fi 8653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8654printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8656 CFLAGS="$xorg_testset_save_CFLAGS" 8657fi 8658 8659if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8662 fi 8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8665printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8666if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8667then : 8668 printf %s "(cached) " >&6 8669else $as_nop 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673_ACEOF 8674if ac_fn_c_try_compile "$LINENO" 8675then : 8676 xorg_cv_cc_flag_unused_command_line_argument=yes 8677else $as_nop 8678 xorg_cv_cc_flag_unused_command_line_argument=no 8679fi 8680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8681fi 8682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8683printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8685 CFLAGS="$xorg_testset_save_CFLAGS" 8686fi 8687 8688found="no" 8689 8690 if test $found = "no" ; then 8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8693 fi 8694 8695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8697 fi 8698 8699 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8700 8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8702printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8703 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8704 if eval test \${$cacheid+y} 8705then : 8706 printf %s "(cached) " >&6 8707else $as_nop 8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8709/* end confdefs.h. */ 8710int i; 8711int 8712main (void) 8713{ 8714 8715 ; 8716 return 0; 8717} 8718_ACEOF 8719if ac_fn_c_try_link "$LINENO" 8720then : 8721 eval $cacheid=yes 8722else $as_nop 8723 eval $cacheid=no 8724fi 8725rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8726 conftest$ac_exeext conftest.$ac_ext 8727fi 8728 8729 8730 CFLAGS="$xorg_testset_save_CFLAGS" 8731 8732 eval supported=\$$cacheid 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8734printf "%s\n" "$supported" >&6; } 8735 if test "$supported" = "yes" ; then 8736 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8737 found="yes" 8738 fi 8739 fi 8740 8741 if test $found = "no" ; then 8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8744 fi 8745 8746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8748 fi 8749 8750 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8751 8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8753printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8754 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8755 if eval test \${$cacheid+y} 8756then : 8757 printf %s "(cached) " >&6 8758else $as_nop 8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8760/* end confdefs.h. */ 8761int i; 8762int 8763main (void) 8764{ 8765 8766 ; 8767 return 0; 8768} 8769_ACEOF 8770if ac_fn_c_try_link "$LINENO" 8771then : 8772 eval $cacheid=yes 8773else $as_nop 8774 eval $cacheid=no 8775fi 8776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8777 conftest$ac_exeext conftest.$ac_ext 8778fi 8779 8780 8781 CFLAGS="$xorg_testset_save_CFLAGS" 8782 8783 eval supported=\$$cacheid 8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8785printf "%s\n" "$supported" >&6; } 8786 if test "$supported" = "yes" ; then 8787 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8788 found="yes" 8789 fi 8790 fi 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806xorg_testset_save_CFLAGS="$CFLAGS" 8807 8808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8812if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8813then : 8814 printf %s "(cached) " >&6 8815else $as_nop 8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8817/* end confdefs.h. */ 8818int i; 8819_ACEOF 8820if ac_fn_c_try_compile "$LINENO" 8821then : 8822 xorg_cv_cc_flag_unknown_warning_option=yes 8823else $as_nop 8824 xorg_cv_cc_flag_unknown_warning_option=no 8825fi 8826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8827fi 8828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8829printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8831 CFLAGS="$xorg_testset_save_CFLAGS" 8832fi 8833 8834if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8837 fi 8838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8840printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8841if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8842then : 8843 printf %s "(cached) " >&6 8844else $as_nop 8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846/* end confdefs.h. */ 8847int i; 8848_ACEOF 8849if ac_fn_c_try_compile "$LINENO" 8850then : 8851 xorg_cv_cc_flag_unused_command_line_argument=yes 8852else $as_nop 8853 xorg_cv_cc_flag_unused_command_line_argument=no 8854fi 8855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8856fi 8857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8858printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8860 CFLAGS="$xorg_testset_save_CFLAGS" 8861fi 8862 8863found="no" 8864 8865 if test $found = "no" ; then 8866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8868 fi 8869 8870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8872 fi 8873 8874 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8875 8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8877printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8878 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8879 if eval test \${$cacheid+y} 8880then : 8881 printf %s "(cached) " >&6 8882else $as_nop 8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884/* end confdefs.h. */ 8885int i; 8886int 8887main (void) 8888{ 8889 8890 ; 8891 return 0; 8892} 8893_ACEOF 8894if ac_fn_c_try_link "$LINENO" 8895then : 8896 eval $cacheid=yes 8897else $as_nop 8898 eval $cacheid=no 8899fi 8900rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8901 conftest$ac_exeext conftest.$ac_ext 8902fi 8903 8904 8905 CFLAGS="$xorg_testset_save_CFLAGS" 8906 8907 eval supported=\$$cacheid 8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8909printf "%s\n" "$supported" >&6; } 8910 if test "$supported" = "yes" ; then 8911 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8912 found="yes" 8913 fi 8914 fi 8915 8916 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8917else 8918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 8919printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933xorg_testset_save_CFLAGS="$CFLAGS" 8934 8935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8939if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8940then : 8941 printf %s "(cached) " >&6 8942else $as_nop 8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8944/* end confdefs.h. */ 8945int i; 8946_ACEOF 8947if ac_fn_c_try_compile "$LINENO" 8948then : 8949 xorg_cv_cc_flag_unknown_warning_option=yes 8950else $as_nop 8951 xorg_cv_cc_flag_unknown_warning_option=no 8952fi 8953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8954fi 8955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8956printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8958 CFLAGS="$xorg_testset_save_CFLAGS" 8959fi 8960 8961if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8964 fi 8965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8967printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8968if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8969then : 8970 printf %s "(cached) " >&6 8971else $as_nop 8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8973/* end confdefs.h. */ 8974int i; 8975_ACEOF 8976if ac_fn_c_try_compile "$LINENO" 8977then : 8978 xorg_cv_cc_flag_unused_command_line_argument=yes 8979else $as_nop 8980 xorg_cv_cc_flag_unused_command_line_argument=no 8981fi 8982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8983fi 8984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8987 CFLAGS="$xorg_testset_save_CFLAGS" 8988fi 8989 8990found="no" 8991 8992 if test $found = "no" ; then 8993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8995 fi 8996 8997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8999 fi 9000 9001 CFLAGS="$CFLAGS -Wimplicit" 9002 9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9004printf %s "checking if $CC supports -Wimplicit... " >&6; } 9005 cacheid=xorg_cv_cc_flag__Wimplicit 9006 if eval test \${$cacheid+y} 9007then : 9008 printf %s "(cached) " >&6 9009else $as_nop 9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9011/* end confdefs.h. */ 9012int i; 9013int 9014main (void) 9015{ 9016 9017 ; 9018 return 0; 9019} 9020_ACEOF 9021if ac_fn_c_try_link "$LINENO" 9022then : 9023 eval $cacheid=yes 9024else $as_nop 9025 eval $cacheid=no 9026fi 9027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9028 conftest$ac_exeext conftest.$ac_ext 9029fi 9030 9031 9032 CFLAGS="$xorg_testset_save_CFLAGS" 9033 9034 eval supported=\$$cacheid 9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9036printf "%s\n" "$supported" >&6; } 9037 if test "$supported" = "yes" ; then 9038 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9039 found="yes" 9040 fi 9041 fi 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057xorg_testset_save_CFLAGS="$CFLAGS" 9058 9059if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9062printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9063if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9064then : 9065 printf %s "(cached) " >&6 9066else $as_nop 9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9068/* end confdefs.h. */ 9069int i; 9070_ACEOF 9071if ac_fn_c_try_compile "$LINENO" 9072then : 9073 xorg_cv_cc_flag_unknown_warning_option=yes 9074else $as_nop 9075 xorg_cv_cc_flag_unknown_warning_option=no 9076fi 9077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9078fi 9079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9080printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9082 CFLAGS="$xorg_testset_save_CFLAGS" 9083fi 9084 9085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9088 fi 9089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9091printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9092if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9093then : 9094 printf %s "(cached) " >&6 9095else $as_nop 9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9097/* end confdefs.h. */ 9098int i; 9099_ACEOF 9100if ac_fn_c_try_compile "$LINENO" 9101then : 9102 xorg_cv_cc_flag_unused_command_line_argument=yes 9103else $as_nop 9104 xorg_cv_cc_flag_unused_command_line_argument=no 9105fi 9106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9107fi 9108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9109printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9111 CFLAGS="$xorg_testset_save_CFLAGS" 9112fi 9113 9114found="no" 9115 9116 if test $found = "no" ; then 9117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9119 fi 9120 9121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9123 fi 9124 9125 CFLAGS="$CFLAGS -Wnonnull" 9126 9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9128printf %s "checking if $CC supports -Wnonnull... " >&6; } 9129 cacheid=xorg_cv_cc_flag__Wnonnull 9130 if eval test \${$cacheid+y} 9131then : 9132 printf %s "(cached) " >&6 9133else $as_nop 9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9135/* end confdefs.h. */ 9136int i; 9137int 9138main (void) 9139{ 9140 9141 ; 9142 return 0; 9143} 9144_ACEOF 9145if ac_fn_c_try_link "$LINENO" 9146then : 9147 eval $cacheid=yes 9148else $as_nop 9149 eval $cacheid=no 9150fi 9151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9152 conftest$ac_exeext conftest.$ac_ext 9153fi 9154 9155 9156 CFLAGS="$xorg_testset_save_CFLAGS" 9157 9158 eval supported=\$$cacheid 9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9160printf "%s\n" "$supported" >&6; } 9161 if test "$supported" = "yes" ; then 9162 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9163 found="yes" 9164 fi 9165 fi 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181xorg_testset_save_CFLAGS="$CFLAGS" 9182 9183if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9186printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9187if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9188then : 9189 printf %s "(cached) " >&6 9190else $as_nop 9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9192/* end confdefs.h. */ 9193int i; 9194_ACEOF 9195if ac_fn_c_try_compile "$LINENO" 9196then : 9197 xorg_cv_cc_flag_unknown_warning_option=yes 9198else $as_nop 9199 xorg_cv_cc_flag_unknown_warning_option=no 9200fi 9201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9202fi 9203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9206 CFLAGS="$xorg_testset_save_CFLAGS" 9207fi 9208 9209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9212 fi 9213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9216if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9217then : 9218 printf %s "(cached) " >&6 9219else $as_nop 9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9221/* end confdefs.h. */ 9222int i; 9223_ACEOF 9224if ac_fn_c_try_compile "$LINENO" 9225then : 9226 xorg_cv_cc_flag_unused_command_line_argument=yes 9227else $as_nop 9228 xorg_cv_cc_flag_unused_command_line_argument=no 9229fi 9230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9231fi 9232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9233printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9235 CFLAGS="$xorg_testset_save_CFLAGS" 9236fi 9237 9238found="no" 9239 9240 if test $found = "no" ; then 9241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9243 fi 9244 9245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9247 fi 9248 9249 CFLAGS="$CFLAGS -Winit-self" 9250 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9252printf %s "checking if $CC supports -Winit-self... " >&6; } 9253 cacheid=xorg_cv_cc_flag__Winit_self 9254 if eval test \${$cacheid+y} 9255then : 9256 printf %s "(cached) " >&6 9257else $as_nop 9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9259/* end confdefs.h. */ 9260int i; 9261int 9262main (void) 9263{ 9264 9265 ; 9266 return 0; 9267} 9268_ACEOF 9269if ac_fn_c_try_link "$LINENO" 9270then : 9271 eval $cacheid=yes 9272else $as_nop 9273 eval $cacheid=no 9274fi 9275rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9276 conftest$ac_exeext conftest.$ac_ext 9277fi 9278 9279 9280 CFLAGS="$xorg_testset_save_CFLAGS" 9281 9282 eval supported=\$$cacheid 9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9284printf "%s\n" "$supported" >&6; } 9285 if test "$supported" = "yes" ; then 9286 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9287 found="yes" 9288 fi 9289 fi 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305xorg_testset_save_CFLAGS="$CFLAGS" 9306 9307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9310printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9311if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9312then : 9313 printf %s "(cached) " >&6 9314else $as_nop 9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9316/* end confdefs.h. */ 9317int i; 9318_ACEOF 9319if ac_fn_c_try_compile "$LINENO" 9320then : 9321 xorg_cv_cc_flag_unknown_warning_option=yes 9322else $as_nop 9323 xorg_cv_cc_flag_unknown_warning_option=no 9324fi 9325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9326fi 9327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9328printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9330 CFLAGS="$xorg_testset_save_CFLAGS" 9331fi 9332 9333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9336 fi 9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9339printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9340if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9341then : 9342 printf %s "(cached) " >&6 9343else $as_nop 9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9345/* end confdefs.h. */ 9346int i; 9347_ACEOF 9348if ac_fn_c_try_compile "$LINENO" 9349then : 9350 xorg_cv_cc_flag_unused_command_line_argument=yes 9351else $as_nop 9352 xorg_cv_cc_flag_unused_command_line_argument=no 9353fi 9354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9355fi 9356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9357printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9359 CFLAGS="$xorg_testset_save_CFLAGS" 9360fi 9361 9362found="no" 9363 9364 if test $found = "no" ; then 9365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9367 fi 9368 9369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9371 fi 9372 9373 CFLAGS="$CFLAGS -Wmain" 9374 9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9376printf %s "checking if $CC supports -Wmain... " >&6; } 9377 cacheid=xorg_cv_cc_flag__Wmain 9378 if eval test \${$cacheid+y} 9379then : 9380 printf %s "(cached) " >&6 9381else $as_nop 9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9383/* end confdefs.h. */ 9384int i; 9385int 9386main (void) 9387{ 9388 9389 ; 9390 return 0; 9391} 9392_ACEOF 9393if ac_fn_c_try_link "$LINENO" 9394then : 9395 eval $cacheid=yes 9396else $as_nop 9397 eval $cacheid=no 9398fi 9399rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9400 conftest$ac_exeext conftest.$ac_ext 9401fi 9402 9403 9404 CFLAGS="$xorg_testset_save_CFLAGS" 9405 9406 eval supported=\$$cacheid 9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9408printf "%s\n" "$supported" >&6; } 9409 if test "$supported" = "yes" ; then 9410 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9411 found="yes" 9412 fi 9413 fi 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429xorg_testset_save_CFLAGS="$CFLAGS" 9430 9431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9434printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9435if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9436then : 9437 printf %s "(cached) " >&6 9438else $as_nop 9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9440/* end confdefs.h. */ 9441int i; 9442_ACEOF 9443if ac_fn_c_try_compile "$LINENO" 9444then : 9445 xorg_cv_cc_flag_unknown_warning_option=yes 9446else $as_nop 9447 xorg_cv_cc_flag_unknown_warning_option=no 9448fi 9449rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9450fi 9451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9454 CFLAGS="$xorg_testset_save_CFLAGS" 9455fi 9456 9457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9460 fi 9461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9464if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9465then : 9466 printf %s "(cached) " >&6 9467else $as_nop 9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9469/* end confdefs.h. */ 9470int i; 9471_ACEOF 9472if ac_fn_c_try_compile "$LINENO" 9473then : 9474 xorg_cv_cc_flag_unused_command_line_argument=yes 9475else $as_nop 9476 xorg_cv_cc_flag_unused_command_line_argument=no 9477fi 9478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9479fi 9480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9481printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9483 CFLAGS="$xorg_testset_save_CFLAGS" 9484fi 9485 9486found="no" 9487 9488 if test $found = "no" ; then 9489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9491 fi 9492 9493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9495 fi 9496 9497 CFLAGS="$CFLAGS -Wmissing-braces" 9498 9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9500printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9501 cacheid=xorg_cv_cc_flag__Wmissing_braces 9502 if eval test \${$cacheid+y} 9503then : 9504 printf %s "(cached) " >&6 9505else $as_nop 9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9507/* end confdefs.h. */ 9508int i; 9509int 9510main (void) 9511{ 9512 9513 ; 9514 return 0; 9515} 9516_ACEOF 9517if ac_fn_c_try_link "$LINENO" 9518then : 9519 eval $cacheid=yes 9520else $as_nop 9521 eval $cacheid=no 9522fi 9523rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9524 conftest$ac_exeext conftest.$ac_ext 9525fi 9526 9527 9528 CFLAGS="$xorg_testset_save_CFLAGS" 9529 9530 eval supported=\$$cacheid 9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9532printf "%s\n" "$supported" >&6; } 9533 if test "$supported" = "yes" ; then 9534 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9535 found="yes" 9536 fi 9537 fi 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553xorg_testset_save_CFLAGS="$CFLAGS" 9554 9555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9559if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9560then : 9561 printf %s "(cached) " >&6 9562else $as_nop 9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9564/* end confdefs.h. */ 9565int i; 9566_ACEOF 9567if ac_fn_c_try_compile "$LINENO" 9568then : 9569 xorg_cv_cc_flag_unknown_warning_option=yes 9570else $as_nop 9571 xorg_cv_cc_flag_unknown_warning_option=no 9572fi 9573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9574fi 9575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9576printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9578 CFLAGS="$xorg_testset_save_CFLAGS" 9579fi 9580 9581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9584 fi 9585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9587printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9588if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9589then : 9590 printf %s "(cached) " >&6 9591else $as_nop 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594int i; 9595_ACEOF 9596if ac_fn_c_try_compile "$LINENO" 9597then : 9598 xorg_cv_cc_flag_unused_command_line_argument=yes 9599else $as_nop 9600 xorg_cv_cc_flag_unused_command_line_argument=no 9601fi 9602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9603fi 9604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9605printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9607 CFLAGS="$xorg_testset_save_CFLAGS" 9608fi 9609 9610found="no" 9611 9612 if test $found = "no" ; then 9613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9614 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9615 fi 9616 9617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9619 fi 9620 9621 CFLAGS="$CFLAGS -Wsequence-point" 9622 9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9624printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9625 cacheid=xorg_cv_cc_flag__Wsequence_point 9626 if eval test \${$cacheid+y} 9627then : 9628 printf %s "(cached) " >&6 9629else $as_nop 9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9631/* end confdefs.h. */ 9632int i; 9633int 9634main (void) 9635{ 9636 9637 ; 9638 return 0; 9639} 9640_ACEOF 9641if ac_fn_c_try_link "$LINENO" 9642then : 9643 eval $cacheid=yes 9644else $as_nop 9645 eval $cacheid=no 9646fi 9647rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9648 conftest$ac_exeext conftest.$ac_ext 9649fi 9650 9651 9652 CFLAGS="$xorg_testset_save_CFLAGS" 9653 9654 eval supported=\$$cacheid 9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9656printf "%s\n" "$supported" >&6; } 9657 if test "$supported" = "yes" ; then 9658 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9659 found="yes" 9660 fi 9661 fi 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677xorg_testset_save_CFLAGS="$CFLAGS" 9678 9679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9682printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9683if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9684then : 9685 printf %s "(cached) " >&6 9686else $as_nop 9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9688/* end confdefs.h. */ 9689int i; 9690_ACEOF 9691if ac_fn_c_try_compile "$LINENO" 9692then : 9693 xorg_cv_cc_flag_unknown_warning_option=yes 9694else $as_nop 9695 xorg_cv_cc_flag_unknown_warning_option=no 9696fi 9697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9698fi 9699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9702 CFLAGS="$xorg_testset_save_CFLAGS" 9703fi 9704 9705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9708 fi 9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9712if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9713then : 9714 printf %s "(cached) " >&6 9715else $as_nop 9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9717/* end confdefs.h. */ 9718int i; 9719_ACEOF 9720if ac_fn_c_try_compile "$LINENO" 9721then : 9722 xorg_cv_cc_flag_unused_command_line_argument=yes 9723else $as_nop 9724 xorg_cv_cc_flag_unused_command_line_argument=no 9725fi 9726rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9727fi 9728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9729printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9731 CFLAGS="$xorg_testset_save_CFLAGS" 9732fi 9733 9734found="no" 9735 9736 if test $found = "no" ; then 9737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9738 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9739 fi 9740 9741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9743 fi 9744 9745 CFLAGS="$CFLAGS -Wreturn-type" 9746 9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9748printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9749 cacheid=xorg_cv_cc_flag__Wreturn_type 9750 if eval test \${$cacheid+y} 9751then : 9752 printf %s "(cached) " >&6 9753else $as_nop 9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9755/* end confdefs.h. */ 9756int i; 9757int 9758main (void) 9759{ 9760 9761 ; 9762 return 0; 9763} 9764_ACEOF 9765if ac_fn_c_try_link "$LINENO" 9766then : 9767 eval $cacheid=yes 9768else $as_nop 9769 eval $cacheid=no 9770fi 9771rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9772 conftest$ac_exeext conftest.$ac_ext 9773fi 9774 9775 9776 CFLAGS="$xorg_testset_save_CFLAGS" 9777 9778 eval supported=\$$cacheid 9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9780printf "%s\n" "$supported" >&6; } 9781 if test "$supported" = "yes" ; then 9782 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9783 found="yes" 9784 fi 9785 fi 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801xorg_testset_save_CFLAGS="$CFLAGS" 9802 9803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9806printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9807if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9808then : 9809 printf %s "(cached) " >&6 9810else $as_nop 9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9812/* end confdefs.h. */ 9813int i; 9814_ACEOF 9815if ac_fn_c_try_compile "$LINENO" 9816then : 9817 xorg_cv_cc_flag_unknown_warning_option=yes 9818else $as_nop 9819 xorg_cv_cc_flag_unknown_warning_option=no 9820fi 9821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9822fi 9823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9826 CFLAGS="$xorg_testset_save_CFLAGS" 9827fi 9828 9829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9832 fi 9833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9836if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9837then : 9838 printf %s "(cached) " >&6 9839else $as_nop 9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9841/* end confdefs.h. */ 9842int i; 9843_ACEOF 9844if ac_fn_c_try_compile "$LINENO" 9845then : 9846 xorg_cv_cc_flag_unused_command_line_argument=yes 9847else $as_nop 9848 xorg_cv_cc_flag_unused_command_line_argument=no 9849fi 9850rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9851fi 9852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9853printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9855 CFLAGS="$xorg_testset_save_CFLAGS" 9856fi 9857 9858found="no" 9859 9860 if test $found = "no" ; then 9861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9863 fi 9864 9865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9867 fi 9868 9869 CFLAGS="$CFLAGS -Wtrigraphs" 9870 9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9872printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9873 cacheid=xorg_cv_cc_flag__Wtrigraphs 9874 if eval test \${$cacheid+y} 9875then : 9876 printf %s "(cached) " >&6 9877else $as_nop 9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9879/* end confdefs.h. */ 9880int i; 9881int 9882main (void) 9883{ 9884 9885 ; 9886 return 0; 9887} 9888_ACEOF 9889if ac_fn_c_try_link "$LINENO" 9890then : 9891 eval $cacheid=yes 9892else $as_nop 9893 eval $cacheid=no 9894fi 9895rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9896 conftest$ac_exeext conftest.$ac_ext 9897fi 9898 9899 9900 CFLAGS="$xorg_testset_save_CFLAGS" 9901 9902 eval supported=\$$cacheid 9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9904printf "%s\n" "$supported" >&6; } 9905 if test "$supported" = "yes" ; then 9906 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9907 found="yes" 9908 fi 9909 fi 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925xorg_testset_save_CFLAGS="$CFLAGS" 9926 9927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9930printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9931if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9932then : 9933 printf %s "(cached) " >&6 9934else $as_nop 9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9936/* end confdefs.h. */ 9937int i; 9938_ACEOF 9939if ac_fn_c_try_compile "$LINENO" 9940then : 9941 xorg_cv_cc_flag_unknown_warning_option=yes 9942else $as_nop 9943 xorg_cv_cc_flag_unknown_warning_option=no 9944fi 9945rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9946fi 9947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9948printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9950 CFLAGS="$xorg_testset_save_CFLAGS" 9951fi 9952 9953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9956 fi 9957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9959printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9960if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9961then : 9962 printf %s "(cached) " >&6 9963else $as_nop 9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9965/* end confdefs.h. */ 9966int i; 9967_ACEOF 9968if ac_fn_c_try_compile "$LINENO" 9969then : 9970 xorg_cv_cc_flag_unused_command_line_argument=yes 9971else $as_nop 9972 xorg_cv_cc_flag_unused_command_line_argument=no 9973fi 9974rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9975fi 9976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9977printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9979 CFLAGS="$xorg_testset_save_CFLAGS" 9980fi 9981 9982found="no" 9983 9984 if test $found = "no" ; then 9985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9987 fi 9988 9989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9991 fi 9992 9993 CFLAGS="$CFLAGS -Warray-bounds" 9994 9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9996printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9997 cacheid=xorg_cv_cc_flag__Warray_bounds 9998 if eval test \${$cacheid+y} 9999then : 10000 printf %s "(cached) " >&6 10001else $as_nop 10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10003/* end confdefs.h. */ 10004int i; 10005int 10006main (void) 10007{ 10008 10009 ; 10010 return 0; 10011} 10012_ACEOF 10013if ac_fn_c_try_link "$LINENO" 10014then : 10015 eval $cacheid=yes 10016else $as_nop 10017 eval $cacheid=no 10018fi 10019rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10020 conftest$ac_exeext conftest.$ac_ext 10021fi 10022 10023 10024 CFLAGS="$xorg_testset_save_CFLAGS" 10025 10026 eval supported=\$$cacheid 10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10028printf "%s\n" "$supported" >&6; } 10029 if test "$supported" = "yes" ; then 10030 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10031 found="yes" 10032 fi 10033 fi 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049xorg_testset_save_CFLAGS="$CFLAGS" 10050 10051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10055if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10056then : 10057 printf %s "(cached) " >&6 10058else $as_nop 10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10060/* end confdefs.h. */ 10061int i; 10062_ACEOF 10063if ac_fn_c_try_compile "$LINENO" 10064then : 10065 xorg_cv_cc_flag_unknown_warning_option=yes 10066else $as_nop 10067 xorg_cv_cc_flag_unknown_warning_option=no 10068fi 10069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10070fi 10071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10072printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10074 CFLAGS="$xorg_testset_save_CFLAGS" 10075fi 10076 10077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10080 fi 10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10083printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10084if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10085then : 10086 printf %s "(cached) " >&6 10087else $as_nop 10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10089/* end confdefs.h. */ 10090int i; 10091_ACEOF 10092if ac_fn_c_try_compile "$LINENO" 10093then : 10094 xorg_cv_cc_flag_unused_command_line_argument=yes 10095else $as_nop 10096 xorg_cv_cc_flag_unused_command_line_argument=no 10097fi 10098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10099fi 10100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10101printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10103 CFLAGS="$xorg_testset_save_CFLAGS" 10104fi 10105 10106found="no" 10107 10108 if test $found = "no" ; then 10109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10111 fi 10112 10113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10115 fi 10116 10117 CFLAGS="$CFLAGS -Wwrite-strings" 10118 10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10120printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10121 cacheid=xorg_cv_cc_flag__Wwrite_strings 10122 if eval test \${$cacheid+y} 10123then : 10124 printf %s "(cached) " >&6 10125else $as_nop 10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128int i; 10129int 10130main (void) 10131{ 10132 10133 ; 10134 return 0; 10135} 10136_ACEOF 10137if ac_fn_c_try_link "$LINENO" 10138then : 10139 eval $cacheid=yes 10140else $as_nop 10141 eval $cacheid=no 10142fi 10143rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10144 conftest$ac_exeext conftest.$ac_ext 10145fi 10146 10147 10148 CFLAGS="$xorg_testset_save_CFLAGS" 10149 10150 eval supported=\$$cacheid 10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10152printf "%s\n" "$supported" >&6; } 10153 if test "$supported" = "yes" ; then 10154 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10155 found="yes" 10156 fi 10157 fi 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173xorg_testset_save_CFLAGS="$CFLAGS" 10174 10175if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10178printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10179if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10180then : 10181 printf %s "(cached) " >&6 10182else $as_nop 10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10184/* end confdefs.h. */ 10185int i; 10186_ACEOF 10187if ac_fn_c_try_compile "$LINENO" 10188then : 10189 xorg_cv_cc_flag_unknown_warning_option=yes 10190else $as_nop 10191 xorg_cv_cc_flag_unknown_warning_option=no 10192fi 10193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10194fi 10195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10196printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10198 CFLAGS="$xorg_testset_save_CFLAGS" 10199fi 10200 10201if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10204 fi 10205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10207printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10208if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10209then : 10210 printf %s "(cached) " >&6 10211else $as_nop 10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10213/* end confdefs.h. */ 10214int i; 10215_ACEOF 10216if ac_fn_c_try_compile "$LINENO" 10217then : 10218 xorg_cv_cc_flag_unused_command_line_argument=yes 10219else $as_nop 10220 xorg_cv_cc_flag_unused_command_line_argument=no 10221fi 10222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10223fi 10224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10225printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10227 CFLAGS="$xorg_testset_save_CFLAGS" 10228fi 10229 10230found="no" 10231 10232 if test $found = "no" ; then 10233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10235 fi 10236 10237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10239 fi 10240 10241 CFLAGS="$CFLAGS -Waddress" 10242 10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10244printf %s "checking if $CC supports -Waddress... " >&6; } 10245 cacheid=xorg_cv_cc_flag__Waddress 10246 if eval test \${$cacheid+y} 10247then : 10248 printf %s "(cached) " >&6 10249else $as_nop 10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10251/* end confdefs.h. */ 10252int i; 10253int 10254main (void) 10255{ 10256 10257 ; 10258 return 0; 10259} 10260_ACEOF 10261if ac_fn_c_try_link "$LINENO" 10262then : 10263 eval $cacheid=yes 10264else $as_nop 10265 eval $cacheid=no 10266fi 10267rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10268 conftest$ac_exeext conftest.$ac_ext 10269fi 10270 10271 10272 CFLAGS="$xorg_testset_save_CFLAGS" 10273 10274 eval supported=\$$cacheid 10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10276printf "%s\n" "$supported" >&6; } 10277 if test "$supported" = "yes" ; then 10278 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10279 found="yes" 10280 fi 10281 fi 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297xorg_testset_save_CFLAGS="$CFLAGS" 10298 10299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10303if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10304then : 10305 printf %s "(cached) " >&6 10306else $as_nop 10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10308/* end confdefs.h. */ 10309int i; 10310_ACEOF 10311if ac_fn_c_try_compile "$LINENO" 10312then : 10313 xorg_cv_cc_flag_unknown_warning_option=yes 10314else $as_nop 10315 xorg_cv_cc_flag_unknown_warning_option=no 10316fi 10317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10318fi 10319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10322 CFLAGS="$xorg_testset_save_CFLAGS" 10323fi 10324 10325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10328 fi 10329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10332if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10333then : 10334 printf %s "(cached) " >&6 10335else $as_nop 10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10337/* end confdefs.h. */ 10338int i; 10339_ACEOF 10340if ac_fn_c_try_compile "$LINENO" 10341then : 10342 xorg_cv_cc_flag_unused_command_line_argument=yes 10343else $as_nop 10344 xorg_cv_cc_flag_unused_command_line_argument=no 10345fi 10346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10347fi 10348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10351 CFLAGS="$xorg_testset_save_CFLAGS" 10352fi 10353 10354found="no" 10355 10356 if test $found = "no" ; then 10357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10359 fi 10360 10361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10363 fi 10364 10365 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10366 10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10368printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10369 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10370 if eval test \${$cacheid+y} 10371then : 10372 printf %s "(cached) " >&6 10373else $as_nop 10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10375/* end confdefs.h. */ 10376int i; 10377int 10378main (void) 10379{ 10380 10381 ; 10382 return 0; 10383} 10384_ACEOF 10385if ac_fn_c_try_link "$LINENO" 10386then : 10387 eval $cacheid=yes 10388else $as_nop 10389 eval $cacheid=no 10390fi 10391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10392 conftest$ac_exeext conftest.$ac_ext 10393fi 10394 10395 10396 CFLAGS="$xorg_testset_save_CFLAGS" 10397 10398 eval supported=\$$cacheid 10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10400printf "%s\n" "$supported" >&6; } 10401 if test "$supported" = "yes" ; then 10402 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10403 found="yes" 10404 fi 10405 fi 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421xorg_testset_save_CFLAGS="$CFLAGS" 10422 10423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10427if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10428then : 10429 printf %s "(cached) " >&6 10430else $as_nop 10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10432/* end confdefs.h. */ 10433int i; 10434_ACEOF 10435if ac_fn_c_try_compile "$LINENO" 10436then : 10437 xorg_cv_cc_flag_unknown_warning_option=yes 10438else $as_nop 10439 xorg_cv_cc_flag_unknown_warning_option=no 10440fi 10441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10442fi 10443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10444printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10446 CFLAGS="$xorg_testset_save_CFLAGS" 10447fi 10448 10449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10451 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10452 fi 10453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10455printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10456if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10457then : 10458 printf %s "(cached) " >&6 10459else $as_nop 10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10461/* end confdefs.h. */ 10462int i; 10463_ACEOF 10464if ac_fn_c_try_compile "$LINENO" 10465then : 10466 xorg_cv_cc_flag_unused_command_line_argument=yes 10467else $as_nop 10468 xorg_cv_cc_flag_unused_command_line_argument=no 10469fi 10470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10471fi 10472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10475 CFLAGS="$xorg_testset_save_CFLAGS" 10476fi 10477 10478found="no" 10479 10480 if test $found = "no" ; then 10481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10483 fi 10484 10485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10487 fi 10488 10489 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10490 10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10492printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10493 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10494 if eval test \${$cacheid+y} 10495then : 10496 printf %s "(cached) " >&6 10497else $as_nop 10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10499/* end confdefs.h. */ 10500int i; 10501int 10502main (void) 10503{ 10504 10505 ; 10506 return 0; 10507} 10508_ACEOF 10509if ac_fn_c_try_link "$LINENO" 10510then : 10511 eval $cacheid=yes 10512else $as_nop 10513 eval $cacheid=no 10514fi 10515rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10516 conftest$ac_exeext conftest.$ac_ext 10517fi 10518 10519 10520 CFLAGS="$xorg_testset_save_CFLAGS" 10521 10522 eval supported=\$$cacheid 10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10524printf "%s\n" "$supported" >&6; } 10525 if test "$supported" = "yes" ; then 10526 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10527 found="yes" 10528 fi 10529 fi 10530 10531 10532fi 10533 10534 10535 10536 10537 10538 10539 10540 CWARNFLAGS="$BASE_CFLAGS" 10541 if test "x$GCC" = xyes ; then 10542 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10543 fi 10544 10545 10546 10547 10548 10549 10550 10551 10552# Check whether --enable-strict-compilation was given. 10553if test ${enable_strict_compilation+y} 10554then : 10555 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10556else $as_nop 10557 STRICT_COMPILE=no 10558fi 10559 10560 10561 10562 10563 10564 10565STRICT_CFLAGS="" 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579xorg_testset_save_CFLAGS="$CFLAGS" 10580 10581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10585if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10586then : 10587 printf %s "(cached) " >&6 10588else $as_nop 10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10590/* end confdefs.h. */ 10591int i; 10592_ACEOF 10593if ac_fn_c_try_compile "$LINENO" 10594then : 10595 xorg_cv_cc_flag_unknown_warning_option=yes 10596else $as_nop 10597 xorg_cv_cc_flag_unknown_warning_option=no 10598fi 10599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10600fi 10601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10604 CFLAGS="$xorg_testset_save_CFLAGS" 10605fi 10606 10607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10610 fi 10611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10614if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10615then : 10616 printf %s "(cached) " >&6 10617else $as_nop 10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10619/* end confdefs.h. */ 10620int i; 10621_ACEOF 10622if ac_fn_c_try_compile "$LINENO" 10623then : 10624 xorg_cv_cc_flag_unused_command_line_argument=yes 10625else $as_nop 10626 xorg_cv_cc_flag_unused_command_line_argument=no 10627fi 10628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10629fi 10630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10633 CFLAGS="$xorg_testset_save_CFLAGS" 10634fi 10635 10636found="no" 10637 10638 if test $found = "no" ; then 10639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10641 fi 10642 10643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10645 fi 10646 10647 CFLAGS="$CFLAGS -pedantic" 10648 10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10650printf %s "checking if $CC supports -pedantic... " >&6; } 10651 cacheid=xorg_cv_cc_flag__pedantic 10652 if eval test \${$cacheid+y} 10653then : 10654 printf %s "(cached) " >&6 10655else $as_nop 10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10657/* end confdefs.h. */ 10658int i; 10659int 10660main (void) 10661{ 10662 10663 ; 10664 return 0; 10665} 10666_ACEOF 10667if ac_fn_c_try_link "$LINENO" 10668then : 10669 eval $cacheid=yes 10670else $as_nop 10671 eval $cacheid=no 10672fi 10673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10674 conftest$ac_exeext conftest.$ac_ext 10675fi 10676 10677 10678 CFLAGS="$xorg_testset_save_CFLAGS" 10679 10680 eval supported=\$$cacheid 10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10682printf "%s\n" "$supported" >&6; } 10683 if test "$supported" = "yes" ; then 10684 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10685 found="yes" 10686 fi 10687 fi 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703xorg_testset_save_CFLAGS="$CFLAGS" 10704 10705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10709if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10710then : 10711 printf %s "(cached) " >&6 10712else $as_nop 10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10714/* end confdefs.h. */ 10715int i; 10716_ACEOF 10717if ac_fn_c_try_compile "$LINENO" 10718then : 10719 xorg_cv_cc_flag_unknown_warning_option=yes 10720else $as_nop 10721 xorg_cv_cc_flag_unknown_warning_option=no 10722fi 10723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10724fi 10725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10728 CFLAGS="$xorg_testset_save_CFLAGS" 10729fi 10730 10731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10734 fi 10735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10738if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10739then : 10740 printf %s "(cached) " >&6 10741else $as_nop 10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10743/* end confdefs.h. */ 10744int i; 10745_ACEOF 10746if ac_fn_c_try_compile "$LINENO" 10747then : 10748 xorg_cv_cc_flag_unused_command_line_argument=yes 10749else $as_nop 10750 xorg_cv_cc_flag_unused_command_line_argument=no 10751fi 10752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10753fi 10754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10757 CFLAGS="$xorg_testset_save_CFLAGS" 10758fi 10759 10760found="no" 10761 10762 if test $found = "no" ; then 10763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10764 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10765 fi 10766 10767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10769 fi 10770 10771 CFLAGS="$CFLAGS -Werror" 10772 10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10774printf %s "checking if $CC supports -Werror... " >&6; } 10775 cacheid=xorg_cv_cc_flag__Werror 10776 if eval test \${$cacheid+y} 10777then : 10778 printf %s "(cached) " >&6 10779else $as_nop 10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10781/* end confdefs.h. */ 10782int i; 10783int 10784main (void) 10785{ 10786 10787 ; 10788 return 0; 10789} 10790_ACEOF 10791if ac_fn_c_try_link "$LINENO" 10792then : 10793 eval $cacheid=yes 10794else $as_nop 10795 eval $cacheid=no 10796fi 10797rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10798 conftest$ac_exeext conftest.$ac_ext 10799fi 10800 10801 10802 CFLAGS="$xorg_testset_save_CFLAGS" 10803 10804 eval supported=\$$cacheid 10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10806printf "%s\n" "$supported" >&6; } 10807 if test "$supported" = "yes" ; then 10808 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10809 found="yes" 10810 fi 10811 fi 10812 10813 if test $found = "no" ; then 10814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10815 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10816 fi 10817 10818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10820 fi 10821 10822 CFLAGS="$CFLAGS -errwarn" 10823 10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10825printf %s "checking if $CC supports -errwarn... " >&6; } 10826 cacheid=xorg_cv_cc_flag__errwarn 10827 if eval test \${$cacheid+y} 10828then : 10829 printf %s "(cached) " >&6 10830else $as_nop 10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833int i; 10834int 10835main (void) 10836{ 10837 10838 ; 10839 return 0; 10840} 10841_ACEOF 10842if ac_fn_c_try_link "$LINENO" 10843then : 10844 eval $cacheid=yes 10845else $as_nop 10846 eval $cacheid=no 10847fi 10848rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10849 conftest$ac_exeext conftest.$ac_ext 10850fi 10851 10852 10853 CFLAGS="$xorg_testset_save_CFLAGS" 10854 10855 eval supported=\$$cacheid 10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10857printf "%s\n" "$supported" >&6; } 10858 if test "$supported" = "yes" ; then 10859 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10860 found="yes" 10861 fi 10862 fi 10863 10864 10865 10866# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10867# activate it with -Werror, so we add it here explicitly. 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881xorg_testset_save_CFLAGS="$CFLAGS" 10882 10883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10887if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10888then : 10889 printf %s "(cached) " >&6 10890else $as_nop 10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10892/* end confdefs.h. */ 10893int i; 10894_ACEOF 10895if ac_fn_c_try_compile "$LINENO" 10896then : 10897 xorg_cv_cc_flag_unknown_warning_option=yes 10898else $as_nop 10899 xorg_cv_cc_flag_unknown_warning_option=no 10900fi 10901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10902fi 10903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10906 CFLAGS="$xorg_testset_save_CFLAGS" 10907fi 10908 10909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10912 fi 10913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10916if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10917then : 10918 printf %s "(cached) " >&6 10919else $as_nop 10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10921/* end confdefs.h. */ 10922int i; 10923_ACEOF 10924if ac_fn_c_try_compile "$LINENO" 10925then : 10926 xorg_cv_cc_flag_unused_command_line_argument=yes 10927else $as_nop 10928 xorg_cv_cc_flag_unused_command_line_argument=no 10929fi 10930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10931fi 10932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10935 CFLAGS="$xorg_testset_save_CFLAGS" 10936fi 10937 10938found="no" 10939 10940 if test $found = "no" ; then 10941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10943 fi 10944 10945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10947 fi 10948 10949 CFLAGS="$CFLAGS -Werror=attributes" 10950 10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10952printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10953 cacheid=xorg_cv_cc_flag__Werror_attributes 10954 if eval test \${$cacheid+y} 10955then : 10956 printf %s "(cached) " >&6 10957else $as_nop 10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10959/* end confdefs.h. */ 10960int i; 10961int 10962main (void) 10963{ 10964 10965 ; 10966 return 0; 10967} 10968_ACEOF 10969if ac_fn_c_try_link "$LINENO" 10970then : 10971 eval $cacheid=yes 10972else $as_nop 10973 eval $cacheid=no 10974fi 10975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10976 conftest$ac_exeext conftest.$ac_ext 10977fi 10978 10979 10980 CFLAGS="$xorg_testset_save_CFLAGS" 10981 10982 eval supported=\$$cacheid 10983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10984printf "%s\n" "$supported" >&6; } 10985 if test "$supported" = "yes" ; then 10986 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10987 found="yes" 10988 fi 10989 fi 10990 10991 10992 10993if test "x$STRICT_COMPILE" = "xyes"; then 10994 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10995 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10996fi 10997 10998 10999 11000 11001 11002 11003cat >>confdefs.h <<_ACEOF 11004#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11005_ACEOF 11006 11007 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11008 if test "x$PVM" = "x"; then 11009 PVM="0" 11010 fi 11011 11012printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11013 11014 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11015 if test "x$PVP" = "x"; then 11016 PVP="0" 11017 fi 11018 11019printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11020 11021 11022 11023CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11024mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11025|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11026touch \$(top_srcdir)/ChangeLog; \ 11027echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11028 11029 11030 11031 11032macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11033INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11034mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11035|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11036touch \$(top_srcdir)/INSTALL; \ 11037echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11038 11039 11040 11041 11042 11043 11044case $host_os in 11045 solaris*) 11046 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11047 # check for a man page file found in later versions that use 11048 # traditional section numbers instead 11049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11050printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11051if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11052then : 11053 printf %s "(cached) " >&6 11054else $as_nop 11055 test "$cross_compiling" = yes && 11056 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11057if test -r "/usr/share/man/man7/attributes.7"; then 11058 ac_cv_file__usr_share_man_man7_attributes_7=yes 11059else 11060 ac_cv_file__usr_share_man_man7_attributes_7=no 11061fi 11062fi 11063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11064printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11065if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11066then : 11067 SYSV_MAN_SECTIONS=false 11068else $as_nop 11069 SYSV_MAN_SECTIONS=true 11070fi 11071 11072 ;; 11073 *) SYSV_MAN_SECTIONS=false ;; 11074esac 11075 11076if test x$APP_MAN_SUFFIX = x ; then 11077 APP_MAN_SUFFIX=1 11078fi 11079if test x$APP_MAN_DIR = x ; then 11080 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11081fi 11082 11083if test x$LIB_MAN_SUFFIX = x ; then 11084 LIB_MAN_SUFFIX=3 11085fi 11086if test x$LIB_MAN_DIR = x ; then 11087 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11088fi 11089 11090if test x$FILE_MAN_SUFFIX = x ; then 11091 case $SYSV_MAN_SECTIONS in 11092 true) FILE_MAN_SUFFIX=4 ;; 11093 *) FILE_MAN_SUFFIX=5 ;; 11094 esac 11095fi 11096if test x$FILE_MAN_DIR = x ; then 11097 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11098fi 11099 11100if test x$MISC_MAN_SUFFIX = x ; then 11101 case $SYSV_MAN_SECTIONS in 11102 true) MISC_MAN_SUFFIX=5 ;; 11103 *) MISC_MAN_SUFFIX=7 ;; 11104 esac 11105fi 11106if test x$MISC_MAN_DIR = x ; then 11107 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11108fi 11109 11110if test x$DRIVER_MAN_SUFFIX = x ; then 11111 case $SYSV_MAN_SECTIONS in 11112 true) DRIVER_MAN_SUFFIX=7 ;; 11113 *) DRIVER_MAN_SUFFIX=4 ;; 11114 esac 11115fi 11116if test x$DRIVER_MAN_DIR = x ; then 11117 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11118fi 11119 11120if test x$ADMIN_MAN_SUFFIX = x ; then 11121 case $SYSV_MAN_SECTIONS in 11122 true) ADMIN_MAN_SUFFIX=1m ;; 11123 *) ADMIN_MAN_SUFFIX=8 ;; 11124 esac 11125fi 11126if test x$ADMIN_MAN_DIR = x ; then 11127 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11128fi 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144XORG_MAN_PAGE="X Version 11" 11145 11146MAN_SUBSTS="\ 11147 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11148 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11149 -e 's|__xservername__|Xorg|g' \ 11150 -e 's|__xconfigfile__|xorg.conf|g' \ 11151 -e 's|__projectroot__|\$(prefix)|g' \ 11152 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11153 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11154 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11155 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11156 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11157 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11158 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11159 11160 11161 11162# Check whether --enable-silent-rules was given. 11163if test ${enable_silent_rules+y} 11164then : 11165 enableval=$enable_silent_rules; 11166fi 11167 11168case $enable_silent_rules in # ((( 11169 yes) AM_DEFAULT_VERBOSITY=0;; 11170 no) AM_DEFAULT_VERBOSITY=1;; 11171 *) AM_DEFAULT_VERBOSITY=0;; 11172esac 11173am_make=${MAKE-make} 11174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11175printf %s "checking whether $am_make supports nested variables... " >&6; } 11176if test ${am_cv_make_support_nested_variables+y} 11177then : 11178 printf %s "(cached) " >&6 11179else $as_nop 11180 if printf "%s\n" 'TRUE=$(BAR$(V)) 11181BAR0=false 11182BAR1=true 11183V=1 11184am__doit: 11185 @$(TRUE) 11186.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11187 am_cv_make_support_nested_variables=yes 11188else 11189 am_cv_make_support_nested_variables=no 11190fi 11191fi 11192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11193printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11194if test $am_cv_make_support_nested_variables = yes; then 11195 AM_V='$(V)' 11196 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11197else 11198 AM_V=$AM_DEFAULT_VERBOSITY 11199 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11200fi 11201AM_BACKSLASH='\' 11202 11203 11204 11205ac_ext=c 11206ac_cpp='$CPP $CPPFLAGS' 11207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11209ac_compiler_gnu=$ac_cv_c_compiler_gnu 11210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 11211printf %s "checking how to run the C preprocessor... " >&6; } 11212# On Suns, sometimes $CPP names a directory. 11213if test -n "$CPP" && test -d "$CPP"; then 11214 CPP= 11215fi 11216if test -z "$CPP"; then 11217 if test ${ac_cv_prog_CPP+y} 11218then : 11219 printf %s "(cached) " >&6 11220else $as_nop 11221 # Double quotes because $CC needs to be expanded 11222 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 11223 do 11224 ac_preproc_ok=false 11225for ac_c_preproc_warn_flag in '' yes 11226do 11227 # Use a header file that comes with gcc, so configuring glibc 11228 # with a fresh cross-compiler works. 11229 # On the NeXT, cc -E runs the code through the compiler's parser, 11230 # not just through cpp. "Syntax error" is here to catch this case. 11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11232/* end confdefs.h. */ 11233#include <limits.h> 11234 Syntax error 11235_ACEOF 11236if ac_fn_c_try_cpp "$LINENO" 11237then : 11238 11239else $as_nop 11240 # Broken: fails on valid input. 11241continue 11242fi 11243rm -f conftest.err conftest.i conftest.$ac_ext 11244 11245 # OK, works on sane cases. Now check whether nonexistent headers 11246 # can be detected and how. 11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11248/* end confdefs.h. */ 11249#include <ac_nonexistent.h> 11250_ACEOF 11251if ac_fn_c_try_cpp "$LINENO" 11252then : 11253 # Broken: success on invalid input. 11254continue 11255else $as_nop 11256 # Passes both tests. 11257ac_preproc_ok=: 11258break 11259fi 11260rm -f conftest.err conftest.i conftest.$ac_ext 11261 11262done 11263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11264rm -f conftest.i conftest.err conftest.$ac_ext 11265if $ac_preproc_ok 11266then : 11267 break 11268fi 11269 11270 done 11271 ac_cv_prog_CPP=$CPP 11272 11273fi 11274 CPP=$ac_cv_prog_CPP 11275else 11276 ac_cv_prog_CPP=$CPP 11277fi 11278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 11279printf "%s\n" "$CPP" >&6; } 11280ac_preproc_ok=false 11281for ac_c_preproc_warn_flag in '' yes 11282do 11283 # Use a header file that comes with gcc, so configuring glibc 11284 # with a fresh cross-compiler works. 11285 # On the NeXT, cc -E runs the code through the compiler's parser, 11286 # not just through cpp. "Syntax error" is here to catch this case. 11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11288/* end confdefs.h. */ 11289#include <limits.h> 11290 Syntax error 11291_ACEOF 11292if ac_fn_c_try_cpp "$LINENO" 11293then : 11294 11295else $as_nop 11296 # Broken: fails on valid input. 11297continue 11298fi 11299rm -f conftest.err conftest.i conftest.$ac_ext 11300 11301 # OK, works on sane cases. Now check whether nonexistent headers 11302 # can be detected and how. 11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11304/* end confdefs.h. */ 11305#include <ac_nonexistent.h> 11306_ACEOF 11307if ac_fn_c_try_cpp "$LINENO" 11308then : 11309 # Broken: success on invalid input. 11310continue 11311else $as_nop 11312 # Passes both tests. 11313ac_preproc_ok=: 11314break 11315fi 11316rm -f conftest.err conftest.i conftest.$ac_ext 11317 11318done 11319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11320rm -f conftest.i conftest.err conftest.$ac_ext 11321if $ac_preproc_ok 11322then : 11323 11324else $as_nop 11325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11326printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11327as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 11328See \`config.log' for more details" "$LINENO" 5; } 11329fi 11330 11331ac_ext=c 11332ac_cpp='$CPP $CPPFLAGS' 11333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11335ac_compiler_gnu=$ac_cv_c_compiler_gnu 11336 11337 11338 11339if test -n "$ac_tool_prefix"; then 11340 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. 11341set dummy ${ac_tool_prefix}cpp; ac_word=$2 11342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11343printf %s "checking for $ac_word... " >&6; } 11344if test ${ac_cv_path_RAWCPP+y} 11345then : 11346 printf %s "(cached) " >&6 11347else $as_nop 11348 case $RAWCPP in 11349 [\\/]* | ?:[\\/]*) 11350 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path. 11351 ;; 11352 *) 11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11354as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 11355for as_dir in $as_dummy 11356do 11357 IFS=$as_save_IFS 11358 case $as_dir in #((( 11359 '') as_dir=./ ;; 11360 */) ;; 11361 *) as_dir=$as_dir/ ;; 11362 esac 11363 for ac_exec_ext in '' $ac_executable_extensions; do 11364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11365 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext" 11366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11367 break 2 11368 fi 11369done 11370 done 11371IFS=$as_save_IFS 11372 11373 ;; 11374esac 11375fi 11376RAWCPP=$ac_cv_path_RAWCPP 11377if test -n "$RAWCPP"; then 11378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5 11379printf "%s\n" "$RAWCPP" >&6; } 11380else 11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11382printf "%s\n" "no" >&6; } 11383fi 11384 11385 11386fi 11387if test -z "$ac_cv_path_RAWCPP"; then 11388 ac_pt_RAWCPP=$RAWCPP 11389 # Extract the first word of "cpp", so it can be a program name with args. 11390set dummy cpp; ac_word=$2 11391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11392printf %s "checking for $ac_word... " >&6; } 11393if test ${ac_cv_path_ac_pt_RAWCPP+y} 11394then : 11395 printf %s "(cached) " >&6 11396else $as_nop 11397 case $ac_pt_RAWCPP in 11398 [\\/]* | ?:[\\/]*) 11399 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path. 11400 ;; 11401 *) 11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11403as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib" 11404for as_dir in $as_dummy 11405do 11406 IFS=$as_save_IFS 11407 case $as_dir in #((( 11408 '') as_dir=./ ;; 11409 */) ;; 11410 *) as_dir=$as_dir/ ;; 11411 esac 11412 for ac_exec_ext in '' $ac_executable_extensions; do 11413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11414 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext" 11415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11416 break 2 11417 fi 11418done 11419 done 11420IFS=$as_save_IFS 11421 11422 ;; 11423esac 11424fi 11425ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP 11426if test -n "$ac_pt_RAWCPP"; then 11427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5 11428printf "%s\n" "$ac_pt_RAWCPP" >&6; } 11429else 11430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11431printf "%s\n" "no" >&6; } 11432fi 11433 11434 if test "x$ac_pt_RAWCPP" = x; then 11435 RAWCPP="${CPP}" 11436 else 11437 case $cross_compiling:$ac_tool_warned in 11438yes:) 11439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11440printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11441ac_tool_warned=yes ;; 11442esac 11443 RAWCPP=$ac_pt_RAWCPP 11444 fi 11445else 11446 RAWCPP="$ac_cv_path_RAWCPP" 11447fi 11448 11449 11450# Check for flag to avoid builtin definitions - assumes unix is predefined, 11451# which is not the best choice for supporting other OS'es, but covers most 11452# of the ones we need for now. 11453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5 11454printf %s "checking if $RAWCPP requires -undef... " >&6; } 11455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11456/* end confdefs.h. */ 11457Does cpp redefine unix ? 11458_ACEOF 11459if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11461printf "%s\n" "no" >&6; } 11462else 11463 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 11464 RAWCPPFLAGS=-undef 11465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11466printf "%s\n" "yes" >&6; } 11467 # under Cygwin unix is still defined even with -undef 11468 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 11469 RAWCPPFLAGS="-undef -ansi" 11470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5 11471printf "%s\n" "yes, with -ansi" >&6; } 11472 else 11473 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5 11474 fi 11475fi 11476rm -f conftest.$ac_ext 11477 11478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5 11479printf %s "checking if $RAWCPP requires -traditional... " >&6; } 11480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11481/* end confdefs.h. */ 11482Does cpp preserve "whitespace"? 11483_ACEOF 11484if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11486printf "%s\n" "no" >&6; } 11487else 11488 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 11489 TRADITIONALCPPFLAGS="-traditional" 11490 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 11491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11492printf "%s\n" "yes" >&6; } 11493 else 11494 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5 11495 fi 11496fi 11497rm -f conftest.$ac_ext 11498 11499 11500 11501 11502 11503# Build options 11504DEFAULT_XRDB=xrdb 11505DEFAULT_XMODMAP=xmodmap 11506DEFAULT_TWM=twm 11507DEFAULT_XCLOCK=xclock 11508DEFAULT_XTERM=xterm 11509# You always want to specify the full path to the X server 11510DEFAULT_XSERVER=${bindir}/X 11511DEFAULT_XAUTH=xauth 11512DEFAULT_XINIT=xinit 11513DEFAULT_XINITDIR=${sysconfdir}/X11/xinit 11514 11515 11516# Check whether --with-xrdb was given. 11517if test ${with_xrdb+y} 11518then : 11519 withval=$with_xrdb; XRDB="$withval" 11520else $as_nop 11521 XRDB="$DEFAULT_XRDB" 11522fi 11523 11524 11525 11526# Check whether --with-xmodmap was given. 11527if test ${with_xmodmap+y} 11528then : 11529 withval=$with_xmodmap; XMODMAP="$withval" 11530else $as_nop 11531 XMODMAP="$DEFAULT_XMODMAP" 11532fi 11533 11534 11535 11536# Check whether --with-twm was given. 11537if test ${with_twm+y} 11538then : 11539 withval=$with_twm; TWM="$withval" 11540else $as_nop 11541 TWM="$DEFAULT_TWM" 11542fi 11543 11544 11545 11546# Check whether --with-xclock was given. 11547if test ${with_xclock+y} 11548then : 11549 withval=$with_xclock; XCLOCK="$withval" 11550else $as_nop 11551 XCLOCK="$DEFAULT_XCLOCK" 11552fi 11553 11554 11555 11556# Check whether --with-xterm was given. 11557if test ${with_xterm+y} 11558then : 11559 withval=$with_xterm; XTERM="$withval" 11560else $as_nop 11561 XTERM="$DEFAULT_XTERM" 11562fi 11563 11564 11565 11566# Check whether --with-xserver was given. 11567if test ${with_xserver+y} 11568then : 11569 withval=$with_xserver; XSERVER="$withval" 11570else $as_nop 11571 XSERVER="$DEFAULT_XSERVER" 11572fi 11573 11574 11575 11576# Check whether --with-xauth was given. 11577if test ${with_xauth+y} 11578then : 11579 withval=$with_xauth; XAUTH="$withval" 11580else $as_nop 11581 XAUTH="$DEFAULT_XAUTH" 11582fi 11583 11584 11585 11586# Check whether --with-xinit was given. 11587if test ${with_xinit+y} 11588then : 11589 withval=$with_xinit; XINIT="$withval" 11590else $as_nop 11591 XINIT="$DEFAULT_XINIT" 11592fi 11593 11594 11595 11596# Check whether --with-xinitdir was given. 11597if test ${with_xinitdir+y} 11598then : 11599 withval=$with_xinitdir; XINITDIR="$withval" 11600else $as_nop 11601 XINITDIR="$DEFAULT_XINITDIR" 11602fi 11603 11604 11605 11606# Check whether --with-launchd was given. 11607if test ${with_launchd+y} 11608then : 11609 withval=$with_launchd; LAUNCHD=$withval 11610else $as_nop 11611 LAUNCHD=auto 11612fi 11613 11614 11615# Check whether --with-launchagents-dir was given. 11616if test ${with_launchagents_dir+y} 11617then : 11618 withval=$with_launchagents_dir; launchagentsdir="${withval}" 11619else $as_nop 11620 launchagentsdir="/Library/LaunchAgents" 11621fi 11622 11623 11624# Check whether --with-launchagent-xserver was given. 11625if test ${with_launchagent_xserver+y} 11626then : 11627 withval=$with_launchagent_xserver; launchagentxserver="${withval}" 11628else $as_nop 11629 launchagentxserver="no" 11630fi 11631 11632 11633# Check whether --with-launchdaemons-dir was given. 11634if test ${with_launchdaemons_dir+y} 11635then : 11636 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}" 11637else $as_nop 11638 launchdaemonsdir="/Library/LaunchDaemons" 11639fi 11640 11641 11642# Check whether --with-launchd-id-prefix was given. 11643if test ${with_launchd_id_prefix+y} 11644then : 11645 withval=$with_launchd_id_prefix; bundleidprefix="${withval}" 11646else $as_nop 11647 bundleidprefix="org.x" 11648fi 11649 11650 11651# Check whether --with-bundle-id-prefix was given. 11652if test ${with_bundle_id_prefix+y} 11653then : 11654 withval=$with_bundle_id_prefix; bundleidprefix="${withval}" 11655fi 11656 11657 11658if test "x$LAUNCHD" = "xauto"; then 11659 unset LAUNCHD 11660 # Extract the first word of "launchd", so it can be a program name with args. 11661set dummy launchd; ac_word=$2 11662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11663printf %s "checking for $ac_word... " >&6; } 11664if test ${ac_cv_prog_LAUNCHD+y} 11665then : 11666 printf %s "(cached) " >&6 11667else $as_nop 11668 if test -n "$LAUNCHD"; then 11669 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 11670else 11671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11672for as_dir in $PATH$PATH_SEPARATOR/sbin 11673do 11674 IFS=$as_save_IFS 11675 case $as_dir in #((( 11676 '') as_dir=./ ;; 11677 */) ;; 11678 *) as_dir=$as_dir/ ;; 11679 esac 11680 for ac_exec_ext in '' $ac_executable_extensions; do 11681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11682 ac_cv_prog_LAUNCHD="yes" 11683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11684 break 2 11685 fi 11686done 11687 done 11688IFS=$as_save_IFS 11689 11690 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 11691fi 11692fi 11693LAUNCHD=$ac_cv_prog_LAUNCHD 11694if test -n "$LAUNCHD"; then 11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 11696printf "%s\n" "$LAUNCHD" >&6; } 11697else 11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11699printf "%s\n" "no" >&6; } 11700fi 11701 11702 11703fi 11704 11705 11706printf "%s\n" "#define BUNDLE_ID_PREFIX \"$bundleidprefix\"" >>confdefs.h 11707 11708 11709 11710 11711 11712 if test "x$LAUNCHD" = "xyes"; then 11713 LAUNCHD_TRUE= 11714 LAUNCHD_FALSE='#' 11715else 11716 LAUNCHD_TRUE='#' 11717 LAUNCHD_FALSE= 11718fi 11719 11720 if test "x$launchagentxserver" != "xno"; then 11721 LAUNCHAGENT_XSERVER_TRUE= 11722 LAUNCHAGENT_XSERVER_FALSE='#' 11723else 11724 LAUNCHAGENT_XSERVER_TRUE='#' 11725 LAUNCHAGENT_XSERVER_FALSE= 11726fi 11727 11728 11729# Checks for pkg-config packages 11730 11731pkg_failed=no 11732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5 11733printf %s "checking for XINIT... " >&6; } 11734 11735if test -n "$XINIT_CFLAGS"; then 11736 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS" 11737 elif test -n "$PKG_CONFIG"; then 11738 if test -n "$PKG_CONFIG" && \ 11739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 11740 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 11741 ac_status=$? 11742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11743 test $ac_status = 0; }; then 11744 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null` 11745 test "x$?" != "x0" && pkg_failed=yes 11746else 11747 pkg_failed=yes 11748fi 11749 else 11750 pkg_failed=untried 11751fi 11752if test -n "$XINIT_LIBS"; then 11753 pkg_cv_XINIT_LIBS="$XINIT_LIBS" 11754 elif test -n "$PKG_CONFIG"; then 11755 if test -n "$PKG_CONFIG" && \ 11756 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5 11757 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5 11758 ac_status=$? 11759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11760 test $ac_status = 0; }; then 11761 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null` 11762 test "x$?" != "x0" && pkg_failed=yes 11763else 11764 pkg_failed=yes 11765fi 11766 else 11767 pkg_failed=untried 11768fi 11769 11770 11771 11772if test $pkg_failed = yes; then 11773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11774printf "%s\n" "no" >&6; } 11775 11776if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11777 _pkg_short_errors_supported=yes 11778else 11779 _pkg_short_errors_supported=no 11780fi 11781 if test $_pkg_short_errors_supported = yes; then 11782 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1` 11783 else 11784 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1` 11785 fi 11786 # Put the nasty error message in config.log where it belongs 11787 echo "$XINIT_PKG_ERRORS" >&5 11788 11789 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met: 11790 11791$XINIT_PKG_ERRORS 11792 11793Consider adjusting the PKG_CONFIG_PATH environment variable if you 11794installed software in a non-standard prefix. 11795 11796Alternatively, you may set the environment variables XINIT_CFLAGS 11797and XINIT_LIBS to avoid the need to call pkg-config. 11798See the pkg-config man page for more details." "$LINENO" 5 11799elif test $pkg_failed = untried; then 11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11801printf "%s\n" "no" >&6; } 11802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11803printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11804as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11805is in your PATH or set the PKG_CONFIG environment variable to the full 11806path to pkg-config. 11807 11808Alternatively, you may set the environment variables XINIT_CFLAGS 11809and XINIT_LIBS to avoid the need to call pkg-config. 11810See the pkg-config man page for more details. 11811 11812To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11813See \`config.log' for more details" "$LINENO" 5; } 11814else 11815 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS 11816 XINIT_LIBS=$pkg_cv_XINIT_LIBS 11817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11818printf "%s\n" "yes" >&6; } 11819 11820fi 11821 11822case $host_os in 11823 *bsd*) 11824 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED" 11825 ;; 11826esac 11827 11828 11829for ac_prog in mcookie 11830do 11831 # Extract the first word of "$ac_prog", so it can be a program name with args. 11832set dummy $ac_prog; ac_word=$2 11833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11834printf %s "checking for $ac_word... " >&6; } 11835if test ${ac_cv_path_MCOOKIE+y} 11836then : 11837 printf %s "(cached) " >&6 11838else $as_nop 11839 case $MCOOKIE in 11840 [\\/]* | ?:[\\/]*) 11841 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path. 11842 ;; 11843 *) 11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11845as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin" 11846for as_dir in $as_dummy 11847do 11848 IFS=$as_save_IFS 11849 case $as_dir in #((( 11850 '') as_dir=./ ;; 11851 */) ;; 11852 *) as_dir=$as_dir/ ;; 11853 esac 11854 for ac_exec_ext in '' $ac_executable_extensions; do 11855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11856 ac_cv_path_MCOOKIE="$as_dir$ac_word$ac_exec_ext" 11857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11858 break 2 11859 fi 11860done 11861 done 11862IFS=$as_save_IFS 11863 11864 ;; 11865esac 11866fi 11867MCOOKIE=$ac_cv_path_MCOOKIE 11868if test -n "$MCOOKIE"; then 11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5 11870printf "%s\n" "$MCOOKIE" >&6; } 11871else 11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11873printf "%s\n" "no" >&6; } 11874fi 11875 11876 11877 test -n "$MCOOKIE" && break 11878done 11879test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE" 11880 11881 11882# If mcookie not found, try openssl, else per-system fallbacks 11883if test "x$MCOOKIE" = x ; then 11884 for ac_prog in openssl 11885do 11886 # Extract the first word of "$ac_prog", so it can be a program name with args. 11887set dummy $ac_prog; ac_word=$2 11888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11889printf %s "checking for $ac_word... " >&6; } 11890if test ${ac_cv_path_OPENSSL+y} 11891then : 11892 printf %s "(cached) " >&6 11893else $as_nop 11894 case $OPENSSL in 11895 [\\/]* | ?:[\\/]*) 11896 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path. 11897 ;; 11898 *) 11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11900as_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin" 11901for as_dir in $as_dummy 11902do 11903 IFS=$as_save_IFS 11904 case $as_dir in #((( 11905 '') as_dir=./ ;; 11906 */) ;; 11907 *) as_dir=$as_dir/ ;; 11908 esac 11909 for ac_exec_ext in '' $ac_executable_extensions; do 11910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11911 ac_cv_path_OPENSSL="$as_dir$ac_word$ac_exec_ext" 11912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11913 break 2 11914 fi 11915done 11916 done 11917IFS=$as_save_IFS 11918 11919 ;; 11920esac 11921fi 11922OPENSSL=$ac_cv_path_OPENSSL 11923if test -n "$OPENSSL"; then 11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5 11925printf "%s\n" "$OPENSSL" >&6; } 11926else 11927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11928printf "%s\n" "no" >&6; } 11929fi 11930 11931 11932 test -n "$OPENSSL" && break 11933done 11934test -n "$OPENSSL" || OPENSSL="$OPENSSL" 11935 11936 if test "x$OPENSSL" != x ; then 11937 MCOOKIE="$OPENSSL rand -hex 16" 11938 else 11939 case $host_os in 11940 *solaris*) 11941 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '" 11942 ;; 11943 esac 11944 fi 11945fi 11946if test "x$MCOOKIE" != x ; then 11947 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"' 11948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5 11949printf "%s\n" "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;} 11950fi 11951 11952 11953# Additional substitutions in startx, xinitrc & man pages 11954SHELL_CMD="/bin/sh" 11955XSERVERNAME="Xorg" 11956XCONFIGFILE="xorg.conf" 11957XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})' 11958case $host_os in 11959 cygwin*) 11960 XSERVERNAME="XWin" 11961 XCONFIGFILE="XWinrc" 11962 ;; 11963 darwin*) 11964 XSERVERNAME="Xquartz" 11965 XCONFIGFILE="defaults" 11966 XCONFIGFILEMAN='defaults (1)' 11967 ;; 11968 *solaris*) 11969 SHELL_CMD="/bin/ksh" 11970 ;; 11971esac 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile" 11988 11989cat >confcache <<\_ACEOF 11990# This file is a shell script that caches the results of configure 11991# tests run on this system so they can be shared between configure 11992# scripts and configure runs, see configure's option --config-cache. 11993# It is not useful on other systems. If it contains results you don't 11994# want to keep, you may remove or edit it. 11995# 11996# config.status only pays attention to the cache file if you give it 11997# the --recheck option to rerun configure. 11998# 11999# `ac_cv_env_foo' variables (set or unset) will be overridden when 12000# loading this file, other *unset* `ac_cv_foo' will be assigned the 12001# following values. 12002 12003_ACEOF 12004 12005# The following way of writing the cache mishandles newlines in values, 12006# but we know of no workaround that is simple, portable, and efficient. 12007# So, we kill variables containing newlines. 12008# Ultrix sh set writes to stderr and can't be redirected directly, 12009# and sets the high bit in the cache file unless we assign to the vars. 12010( 12011 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12012 eval ac_val=\$$ac_var 12013 case $ac_val in #( 12014 *${as_nl}*) 12015 case $ac_var in #( 12016 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12017printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12018 esac 12019 case $ac_var in #( 12020 _ | IFS | as_nl) ;; #( 12021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12022 *) { eval $ac_var=; unset $ac_var;} ;; 12023 esac ;; 12024 esac 12025 done 12026 12027 (set) 2>&1 | 12028 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12029 *${as_nl}ac_space=\ *) 12030 # `set' does not quote correctly, so add quotes: double-quote 12031 # substitution turns \\\\ into \\, and sed turns \\ into \. 12032 sed -n \ 12033 "s/'/'\\\\''/g; 12034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12035 ;; #( 12036 *) 12037 # `set' quotes correctly as required by POSIX, so do not add quotes. 12038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12039 ;; 12040 esac | 12041 sort 12042) | 12043 sed ' 12044 /^ac_cv_env_/b end 12045 t clear 12046 :clear 12047 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 12048 t end 12049 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12050 :end' >>confcache 12051if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12052 if test -w "$cache_file"; then 12053 if test "x$cache_file" != "x/dev/null"; then 12054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12055printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 12056 if test ! -f "$cache_file" || test -h "$cache_file"; then 12057 cat confcache >"$cache_file" 12058 else 12059 case $cache_file in #( 12060 */* | ?:*) 12061 mv -f confcache "$cache_file"$$ && 12062 mv -f "$cache_file"$$ "$cache_file" ;; #( 12063 *) 12064 mv -f confcache "$cache_file" ;; 12065 esac 12066 fi 12067 fi 12068 else 12069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12070printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 12071 fi 12072fi 12073rm -f confcache 12074 12075test "x$prefix" = xNONE && prefix=$ac_default_prefix 12076# Let make expand exec_prefix. 12077test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12078 12079DEFS=-DHAVE_CONFIG_H 12080 12081ac_libobjs= 12082ac_ltlibobjs= 12083U= 12084for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12085 # 1. Remove the extension, and $U if already installed. 12086 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12087 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 12088 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12089 # will be set to the directory where LIBOBJS objects are built. 12090 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12091 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12092done 12093LIBOBJS=$ac_libobjs 12094 12095LTLIBOBJS=$ac_ltlibobjs 12096 12097 12098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12099printf %s "checking that generated files are newer than configure... " >&6; } 12100 if test -n "$am_sleep_pid"; then 12101 # Hide warnings about reused PIDs. 12102 wait $am_sleep_pid 2>/dev/null 12103 fi 12104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 12105printf "%s\n" "done" >&6; } 12106 if test -n "$EXEEXT"; then 12107 am__EXEEXT_TRUE= 12108 am__EXEEXT_FALSE='#' 12109else 12110 am__EXEEXT_TRUE='#' 12111 am__EXEEXT_FALSE= 12112fi 12113 12114if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12115 as_fn_error $? "conditional \"AMDEP\" was never defined. 12116Usually this means the macro was only invoked conditionally." "$LINENO" 5 12117fi 12118if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12119 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12120Usually this means the macro was only invoked conditionally." "$LINENO" 5 12121fi 12122if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then 12123 as_fn_error $? "conditional \"LAUNCHD\" was never defined. 12124Usually this means the macro was only invoked conditionally." "$LINENO" 5 12125fi 12126if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then 12127 as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined. 12128Usually this means the macro was only invoked conditionally." "$LINENO" 5 12129fi 12130 12131: "${CONFIG_STATUS=./config.status}" 12132ac_write_fail=0 12133ac_clean_files_save=$ac_clean_files 12134ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12136printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 12137as_write_fail=0 12138cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12139#! $SHELL 12140# Generated by $as_me. 12141# Run this file to recreate the current configuration. 12142# Compiler output produced by configure, useful for debugging 12143# configure, is in config.log if it exists. 12144 12145debug=false 12146ac_cs_recheck=false 12147ac_cs_silent=false 12148 12149SHELL=\${CONFIG_SHELL-$SHELL} 12150export SHELL 12151_ASEOF 12152cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12153## -------------------- ## 12154## M4sh Initialization. ## 12155## -------------------- ## 12156 12157# Be more Bourne compatible 12158DUALCASE=1; export DUALCASE # for MKS sh 12159as_nop=: 12160if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 12161then : 12162 emulate sh 12163 NULLCMD=: 12164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12165 # is contrary to our usage. Disable this feature. 12166 alias -g '${1+"$@"}'='"$@"' 12167 setopt NO_GLOB_SUBST 12168else $as_nop 12169 case `(set -o) 2>/dev/null` in #( 12170 *posix*) : 12171 set -o posix ;; #( 12172 *) : 12173 ;; 12174esac 12175fi 12176 12177 12178 12179# Reset variables that may have inherited troublesome values from 12180# the environment. 12181 12182# IFS needs to be set, to space, tab, and newline, in precisely that order. 12183# (If _AS_PATH_WALK were called with IFS unset, it would have the 12184# side effect of setting IFS to empty, thus disabling word splitting.) 12185# Quoting is to prevent editors from complaining about space-tab. 12186as_nl=' 12187' 12188export as_nl 12189IFS=" "" $as_nl" 12190 12191PS1='$ ' 12192PS2='> ' 12193PS4='+ ' 12194 12195# Ensure predictable behavior from utilities with locale-dependent output. 12196LC_ALL=C 12197export LC_ALL 12198LANGUAGE=C 12199export LANGUAGE 12200 12201# We cannot yet rely on "unset" to work, but we need these variables 12202# to be unset--not just set to an empty or harmless value--now, to 12203# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 12204# also avoids known problems related to "unset" and subshell syntax 12205# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 12206for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 12207do eval test \${$as_var+y} \ 12208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12209done 12210 12211# Ensure that fds 0, 1, and 2 are open. 12212if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 12213if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 12214if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 12215 12216# The user is always right. 12217if ${PATH_SEPARATOR+false} :; then 12218 PATH_SEPARATOR=: 12219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12221 PATH_SEPARATOR=';' 12222 } 12223fi 12224 12225 12226# Find who we are. Look in the path if we contain no directory separator. 12227as_myself= 12228case $0 in #(( 12229 *[\\/]* ) as_myself=$0 ;; 12230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12231for as_dir in $PATH 12232do 12233 IFS=$as_save_IFS 12234 case $as_dir in #((( 12235 '') as_dir=./ ;; 12236 */) ;; 12237 *) as_dir=$as_dir/ ;; 12238 esac 12239 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12240 done 12241IFS=$as_save_IFS 12242 12243 ;; 12244esac 12245# We did not find ourselves, most probably we were run as `sh COMMAND' 12246# in which case we are not to be found in the path. 12247if test "x$as_myself" = x; then 12248 as_myself=$0 12249fi 12250if test ! -f "$as_myself"; then 12251 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12252 exit 1 12253fi 12254 12255 12256 12257# as_fn_error STATUS ERROR [LINENO LOG_FD] 12258# ---------------------------------------- 12259# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12260# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12261# script with STATUS, using 1 if that was 0. 12262as_fn_error () 12263{ 12264 as_status=$1; test $as_status -eq 0 && as_status=1 12265 if test "$4"; then 12266 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12268 fi 12269 printf "%s\n" "$as_me: error: $2" >&2 12270 as_fn_exit $as_status 12271} # as_fn_error 12272 12273 12274 12275# as_fn_set_status STATUS 12276# ----------------------- 12277# Set $? to STATUS, without forking. 12278as_fn_set_status () 12279{ 12280 return $1 12281} # as_fn_set_status 12282 12283# as_fn_exit STATUS 12284# ----------------- 12285# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12286as_fn_exit () 12287{ 12288 set +e 12289 as_fn_set_status $1 12290 exit $1 12291} # as_fn_exit 12292 12293# as_fn_unset VAR 12294# --------------- 12295# Portably unset VAR. 12296as_fn_unset () 12297{ 12298 { eval $1=; unset $1;} 12299} 12300as_unset=as_fn_unset 12301 12302# as_fn_append VAR VALUE 12303# ---------------------- 12304# Append the text in VALUE to the end of the definition contained in VAR. Take 12305# advantage of any shell optimizations that allow amortized linear growth over 12306# repeated appends, instead of the typical quadratic growth present in naive 12307# implementations. 12308if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12309then : 12310 eval 'as_fn_append () 12311 { 12312 eval $1+=\$2 12313 }' 12314else $as_nop 12315 as_fn_append () 12316 { 12317 eval $1=\$$1\$2 12318 } 12319fi # as_fn_append 12320 12321# as_fn_arith ARG... 12322# ------------------ 12323# Perform arithmetic evaluation on the ARGs, and store the result in the 12324# global $as_val. Take advantage of shells that can avoid forks. The arguments 12325# must be portable across $(()) and expr. 12326if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12327then : 12328 eval 'as_fn_arith () 12329 { 12330 as_val=$(( $* )) 12331 }' 12332else $as_nop 12333 as_fn_arith () 12334 { 12335 as_val=`expr "$@" || test $? -eq 1` 12336 } 12337fi # as_fn_arith 12338 12339 12340if expr a : '\(a\)' >/dev/null 2>&1 && 12341 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12342 as_expr=expr 12343else 12344 as_expr=false 12345fi 12346 12347if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12348 as_basename=basename 12349else 12350 as_basename=false 12351fi 12352 12353if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12354 as_dirname=dirname 12355else 12356 as_dirname=false 12357fi 12358 12359as_me=`$as_basename -- "$0" || 12360$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12361 X"$0" : 'X\(//\)$' \| \ 12362 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12363printf "%s\n" X/"$0" | 12364 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12365 s//\1/ 12366 q 12367 } 12368 /^X\/\(\/\/\)$/{ 12369 s//\1/ 12370 q 12371 } 12372 /^X\/\(\/\).*/{ 12373 s//\1/ 12374 q 12375 } 12376 s/.*/./; q'` 12377 12378# Avoid depending upon Character Ranges. 12379as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12380as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12381as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12382as_cr_digits='0123456789' 12383as_cr_alnum=$as_cr_Letters$as_cr_digits 12384 12385 12386# Determine whether it's possible to make 'echo' print without a newline. 12387# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12388# for compatibility with existing Makefiles. 12389ECHO_C= ECHO_N= ECHO_T= 12390case `echo -n x` in #((((( 12391-n*) 12392 case `echo 'xy\c'` in 12393 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12394 xy) ECHO_C='\c';; 12395 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12396 ECHO_T=' ';; 12397 esac;; 12398*) 12399 ECHO_N='-n';; 12400esac 12401 12402# For backward compatibility with old third-party macros, we provide 12403# the shell variables $as_echo and $as_echo_n. New code should use 12404# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12405as_echo='printf %s\n' 12406as_echo_n='printf %s' 12407 12408rm -f conf$$ conf$$.exe conf$$.file 12409if test -d conf$$.dir; then 12410 rm -f conf$$.dir/conf$$.file 12411else 12412 rm -f conf$$.dir 12413 mkdir conf$$.dir 2>/dev/null 12414fi 12415if (echo >conf$$.file) 2>/dev/null; then 12416 if ln -s conf$$.file conf$$ 2>/dev/null; then 12417 as_ln_s='ln -s' 12418 # ... but there are two gotchas: 12419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12421 # In both cases, we have to default to `cp -pR'. 12422 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12423 as_ln_s='cp -pR' 12424 elif ln conf$$.file conf$$ 2>/dev/null; then 12425 as_ln_s=ln 12426 else 12427 as_ln_s='cp -pR' 12428 fi 12429else 12430 as_ln_s='cp -pR' 12431fi 12432rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12433rmdir conf$$.dir 2>/dev/null 12434 12435 12436# as_fn_mkdir_p 12437# ------------- 12438# Create "$as_dir" as a directory, including parents if necessary. 12439as_fn_mkdir_p () 12440{ 12441 12442 case $as_dir in #( 12443 -*) as_dir=./$as_dir;; 12444 esac 12445 test -d "$as_dir" || eval $as_mkdir_p || { 12446 as_dirs= 12447 while :; do 12448 case $as_dir in #( 12449 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12450 *) as_qdir=$as_dir;; 12451 esac 12452 as_dirs="'$as_qdir' $as_dirs" 12453 as_dir=`$as_dirname -- "$as_dir" || 12454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12455 X"$as_dir" : 'X\(//\)[^/]' \| \ 12456 X"$as_dir" : 'X\(//\)$' \| \ 12457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12458printf "%s\n" X"$as_dir" | 12459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12460 s//\1/ 12461 q 12462 } 12463 /^X\(\/\/\)[^/].*/{ 12464 s//\1/ 12465 q 12466 } 12467 /^X\(\/\/\)$/{ 12468 s//\1/ 12469 q 12470 } 12471 /^X\(\/\).*/{ 12472 s//\1/ 12473 q 12474 } 12475 s/.*/./; q'` 12476 test -d "$as_dir" && break 12477 done 12478 test -z "$as_dirs" || eval "mkdir $as_dirs" 12479 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12480 12481 12482} # as_fn_mkdir_p 12483if mkdir -p . 2>/dev/null; then 12484 as_mkdir_p='mkdir -p "$as_dir"' 12485else 12486 test -d ./-p && rmdir ./-p 12487 as_mkdir_p=false 12488fi 12489 12490 12491# as_fn_executable_p FILE 12492# ----------------------- 12493# Test if FILE is an executable regular file. 12494as_fn_executable_p () 12495{ 12496 test -f "$1" && test -x "$1" 12497} # as_fn_executable_p 12498as_test_x='test -x' 12499as_executable_p=as_fn_executable_p 12500 12501# Sed expression to map a string onto a valid CPP name. 12502as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12503 12504# Sed expression to map a string onto a valid variable name. 12505as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12506 12507 12508exec 6>&1 12509## ----------------------------------- ## 12510## Main body of $CONFIG_STATUS script. ## 12511## ----------------------------------- ## 12512_ASEOF 12513test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12514 12515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12516# Save the log message, to keep $0 and so on meaningful, and to 12517# report actual input values of CONFIG_FILES etc. instead of their 12518# values after options handling. 12519ac_log=" 12520This file was extended by xinit $as_me 1.4.2, which was 12521generated by GNU Autoconf 2.71. Invocation command line was 12522 12523 CONFIG_FILES = $CONFIG_FILES 12524 CONFIG_HEADERS = $CONFIG_HEADERS 12525 CONFIG_LINKS = $CONFIG_LINKS 12526 CONFIG_COMMANDS = $CONFIG_COMMANDS 12527 $ $0 $@ 12528 12529on `(hostname || uname -n) 2>/dev/null | sed 1q` 12530" 12531 12532_ACEOF 12533 12534case $ac_config_files in *" 12535"*) set x $ac_config_files; shift; ac_config_files=$*;; 12536esac 12537 12538case $ac_config_headers in *" 12539"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12540esac 12541 12542 12543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12544# Files that config.status was made for. 12545config_files="$ac_config_files" 12546config_headers="$ac_config_headers" 12547config_commands="$ac_config_commands" 12548 12549_ACEOF 12550 12551cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12552ac_cs_usage="\ 12553\`$as_me' instantiates files and other configuration actions 12554from templates according to the current configuration. Unless the files 12555and actions are specified as TAGs, all are instantiated by default. 12556 12557Usage: $0 [OPTION]... [TAG]... 12558 12559 -h, --help print this help, then exit 12560 -V, --version print version number and configuration settings, then exit 12561 --config print configuration, then exit 12562 -q, --quiet, --silent 12563 do not print progress messages 12564 -d, --debug don't remove temporary files 12565 --recheck update $as_me by reconfiguring in the same conditions 12566 --file=FILE[:TEMPLATE] 12567 instantiate the configuration file FILE 12568 --header=FILE[:TEMPLATE] 12569 instantiate the configuration header FILE 12570 12571Configuration files: 12572$config_files 12573 12574Configuration headers: 12575$config_headers 12576 12577Configuration commands: 12578$config_commands 12579 12580Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>." 12581 12582_ACEOF 12583ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12584ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12586ac_cs_config='$ac_cs_config_escaped' 12587ac_cs_version="\\ 12588xinit config.status 1.4.2 12589configured by $0, generated by GNU Autoconf 2.71, 12590 with options \\"\$ac_cs_config\\" 12591 12592Copyright (C) 2021 Free Software Foundation, Inc. 12593This config.status script is free software; the Free Software Foundation 12594gives unlimited permission to copy, distribute and modify it." 12595 12596ac_pwd='$ac_pwd' 12597srcdir='$srcdir' 12598INSTALL='$INSTALL' 12599MKDIR_P='$MKDIR_P' 12600AWK='$AWK' 12601test -n "\$AWK" || AWK=awk 12602_ACEOF 12603 12604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12605# The default lists apply if the user does not specify any file. 12606ac_need_defaults=: 12607while test $# != 0 12608do 12609 case $1 in 12610 --*=?*) 12611 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12613 ac_shift=: 12614 ;; 12615 --*=) 12616 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12617 ac_optarg= 12618 ac_shift=: 12619 ;; 12620 *) 12621 ac_option=$1 12622 ac_optarg=$2 12623 ac_shift=shift 12624 ;; 12625 esac 12626 12627 case $ac_option in 12628 # Handling of the options. 12629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12630 ac_cs_recheck=: ;; 12631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12632 printf "%s\n" "$ac_cs_version"; exit ;; 12633 --config | --confi | --conf | --con | --co | --c ) 12634 printf "%s\n" "$ac_cs_config"; exit ;; 12635 --debug | --debu | --deb | --de | --d | -d ) 12636 debug=: ;; 12637 --file | --fil | --fi | --f ) 12638 $ac_shift 12639 case $ac_optarg in 12640 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12641 '') as_fn_error $? "missing file argument" ;; 12642 esac 12643 as_fn_append CONFIG_FILES " '$ac_optarg'" 12644 ac_need_defaults=false;; 12645 --header | --heade | --head | --hea ) 12646 $ac_shift 12647 case $ac_optarg in 12648 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12649 esac 12650 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12651 ac_need_defaults=false;; 12652 --he | --h) 12653 # Conflict between --help and --header 12654 as_fn_error $? "ambiguous option: \`$1' 12655Try \`$0 --help' for more information.";; 12656 --help | --hel | -h ) 12657 printf "%s\n" "$ac_cs_usage"; exit ;; 12658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12659 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12660 ac_cs_silent=: ;; 12661 12662 # This is an error. 12663 -*) as_fn_error $? "unrecognized option: \`$1' 12664Try \`$0 --help' for more information." ;; 12665 12666 *) as_fn_append ac_config_targets " $1" 12667 ac_need_defaults=false ;; 12668 12669 esac 12670 shift 12671done 12672 12673ac_configure_extra_args= 12674 12675if $ac_cs_silent; then 12676 exec 6>/dev/null 12677 ac_configure_extra_args="$ac_configure_extra_args --silent" 12678fi 12679 12680_ACEOF 12681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12682if \$ac_cs_recheck; then 12683 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12684 shift 12685 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12686 CONFIG_SHELL='$SHELL' 12687 export CONFIG_SHELL 12688 exec "\$@" 12689fi 12690 12691_ACEOF 12692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12693exec 5>>config.log 12694{ 12695 echo 12696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12697## Running $as_me. ## 12698_ASBOX 12699 printf "%s\n" "$ac_log" 12700} >&5 12701 12702_ACEOF 12703cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12704# 12705# INIT-COMMANDS 12706# 12707AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12708 12709_ACEOF 12710 12711cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12712 12713# Handling of arguments. 12714for ac_config_target in $ac_config_targets 12715do 12716 case $ac_config_target in 12717 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12718 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12719 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12720 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12721 "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;; 12722 "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;; 12723 "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;; 12724 12725 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12726 esac 12727done 12728 12729 12730# If the user did not use the arguments to specify the items to instantiate, 12731# then the envvar interface is used. Set only those that are not. 12732# We use the long form for the default assignment because of an extremely 12733# bizarre bug on SunOS 4.1.3. 12734if $ac_need_defaults; then 12735 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12736 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12737 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12738fi 12739 12740# Have a temporary directory for convenience. Make it in the build tree 12741# simply because there is no reason against having it here, and in addition, 12742# creating and moving files from /tmp can sometimes cause problems. 12743# Hook for its removal unless debugging. 12744# Note that there is a small window in which the directory will not be cleaned: 12745# after its creation but before its name has been assigned to `$tmp'. 12746$debug || 12747{ 12748 tmp= ac_tmp= 12749 trap 'exit_status=$? 12750 : "${ac_tmp:=$tmp}" 12751 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12752' 0 12753 trap 'as_fn_exit 1' 1 2 13 15 12754} 12755# Create a (secure) tmp directory for tmp files. 12756 12757{ 12758 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12759 test -d "$tmp" 12760} || 12761{ 12762 tmp=./conf$$-$RANDOM 12763 (umask 077 && mkdir "$tmp") 12764} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12765ac_tmp=$tmp 12766 12767# Set up the scripts for CONFIG_FILES section. 12768# No need to generate them if there are no CONFIG_FILES. 12769# This happens for instance with `./config.status config.h'. 12770if test -n "$CONFIG_FILES"; then 12771 12772 12773ac_cr=`echo X | tr X '\015'` 12774# On cygwin, bash can eat \r inside `` if the user requested igncr. 12775# But we know of no other shell where ac_cr would be empty at this 12776# point, so we can use a bashism as a fallback. 12777if test "x$ac_cr" = x; then 12778 eval ac_cr=\$\'\\r\' 12779fi 12780ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12781if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12782 ac_cs_awk_cr='\\r' 12783else 12784 ac_cs_awk_cr=$ac_cr 12785fi 12786 12787echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12788_ACEOF 12789 12790 12791{ 12792 echo "cat >conf$$subs.awk <<_ACEOF" && 12793 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12794 echo "_ACEOF" 12795} >conf$$subs.sh || 12796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12797ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12798ac_delim='%!_!# ' 12799for ac_last_try in false false false false false :; do 12800 . ./conf$$subs.sh || 12801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12802 12803 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12804 if test $ac_delim_n = $ac_delim_num; then 12805 break 12806 elif $ac_last_try; then 12807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12808 else 12809 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12810 fi 12811done 12812rm -f conf$$subs.sh 12813 12814cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12815cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12816_ACEOF 12817sed -n ' 12818h 12819s/^/S["/; s/!.*/"]=/ 12820p 12821g 12822s/^[^!]*!// 12823:repl 12824t repl 12825s/'"$ac_delim"'$// 12826t delim 12827:nl 12828h 12829s/\(.\{148\}\)..*/\1/ 12830t more1 12831s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12832p 12833n 12834b repl 12835:more1 12836s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12837p 12838g 12839s/.\{148\}// 12840t nl 12841:delim 12842h 12843s/\(.\{148\}\)..*/\1/ 12844t more2 12845s/["\\]/\\&/g; s/^/"/; s/$/"/ 12846p 12847b 12848:more2 12849s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12850p 12851g 12852s/.\{148\}// 12853t delim 12854' <conf$$subs.awk | sed ' 12855/^[^""]/{ 12856 N 12857 s/\n// 12858} 12859' >>$CONFIG_STATUS || ac_write_fail=1 12860rm -f conf$$subs.awk 12861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12862_ACAWK 12863cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12864 for (key in S) S_is_set[key] = 1 12865 FS = "" 12866 12867} 12868{ 12869 line = $ 0 12870 nfields = split(line, field, "@") 12871 substed = 0 12872 len = length(field[1]) 12873 for (i = 2; i < nfields; i++) { 12874 key = field[i] 12875 keylen = length(key) 12876 if (S_is_set[key]) { 12877 value = S[key] 12878 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12879 len += length(value) + length(field[++i]) 12880 substed = 1 12881 } else 12882 len += 1 + keylen 12883 } 12884 12885 print line 12886} 12887 12888_ACAWK 12889_ACEOF 12890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12891if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12892 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12893else 12894 cat 12895fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12896 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12897_ACEOF 12898 12899# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12900# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12901# trailing colons and then remove the whole line if VPATH becomes empty 12902# (actually we leave an empty line to preserve line numbers). 12903if test "x$srcdir" = x.; then 12904 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12905h 12906s/// 12907s/^/:/ 12908s/[ ]*$/:/ 12909s/:\$(srcdir):/:/g 12910s/:\${srcdir}:/:/g 12911s/:@srcdir@:/:/g 12912s/^:*// 12913s/:*$// 12914x 12915s/\(=[ ]*\).*/\1/ 12916G 12917s/\n// 12918s/^[^=]*=[ ]*$// 12919}' 12920fi 12921 12922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12923fi # test -n "$CONFIG_FILES" 12924 12925# Set up the scripts for CONFIG_HEADERS section. 12926# No need to generate them if there are no CONFIG_HEADERS. 12927# This happens for instance with `./config.status Makefile'. 12928if test -n "$CONFIG_HEADERS"; then 12929cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12930BEGIN { 12931_ACEOF 12932 12933# Transform confdefs.h into an awk script `defines.awk', embedded as 12934# here-document in config.status, that substitutes the proper values into 12935# config.h.in to produce config.h. 12936 12937# Create a delimiter string that does not exist in confdefs.h, to ease 12938# handling of long lines. 12939ac_delim='%!_!# ' 12940for ac_last_try in false false :; do 12941 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12942 if test -z "$ac_tt"; then 12943 break 12944 elif $ac_last_try; then 12945 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12946 else 12947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12948 fi 12949done 12950 12951# For the awk script, D is an array of macro values keyed by name, 12952# likewise P contains macro parameters if any. Preserve backslash 12953# newline sequences. 12954 12955ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12956sed -n ' 12957s/.\{148\}/&'"$ac_delim"'/g 12958t rset 12959:rset 12960s/^[ ]*#[ ]*define[ ][ ]*/ / 12961t def 12962d 12963:def 12964s/\\$// 12965t bsnl 12966s/["\\]/\\&/g 12967s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12968D["\1"]=" \3"/p 12969s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12970d 12971:bsnl 12972s/["\\]/\\&/g 12973s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12974D["\1"]=" \3\\\\\\n"\\/p 12975t cont 12976s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12977t cont 12978d 12979:cont 12980n 12981s/.\{148\}/&'"$ac_delim"'/g 12982t clear 12983:clear 12984s/\\$// 12985t bsnlc 12986s/["\\]/\\&/g; s/^/"/; s/$/"/p 12987d 12988:bsnlc 12989s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12990b cont 12991' <confdefs.h | sed ' 12992s/'"$ac_delim"'/"\\\ 12993"/g' >>$CONFIG_STATUS || ac_write_fail=1 12994 12995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12996 for (key in D) D_is_set[key] = 1 12997 FS = "" 12998} 12999/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13000 line = \$ 0 13001 split(line, arg, " ") 13002 if (arg[1] == "#") { 13003 defundef = arg[2] 13004 mac1 = arg[3] 13005 } else { 13006 defundef = substr(arg[1], 2) 13007 mac1 = arg[2] 13008 } 13009 split(mac1, mac2, "(") #) 13010 macro = mac2[1] 13011 prefix = substr(line, 1, index(line, defundef) - 1) 13012 if (D_is_set[macro]) { 13013 # Preserve the white space surrounding the "#". 13014 print prefix "define", macro P[macro] D[macro] 13015 next 13016 } else { 13017 # Replace #undef with comments. This is necessary, for example, 13018 # in the case of _POSIX_SOURCE, which is predefined and required 13019 # on some systems where configure will not decide to define it. 13020 if (defundef == "undef") { 13021 print "/*", prefix defundef, macro, "*/" 13022 next 13023 } 13024 } 13025} 13026{ print } 13027_ACAWK 13028_ACEOF 13029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13030 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13031fi # test -n "$CONFIG_HEADERS" 13032 13033 13034eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13035shift 13036for ac_tag 13037do 13038 case $ac_tag in 13039 :[FHLC]) ac_mode=$ac_tag; continue;; 13040 esac 13041 case $ac_mode$ac_tag in 13042 :[FHL]*:*);; 13043 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13044 :[FH]-) ac_tag=-:-;; 13045 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13046 esac 13047 ac_save_IFS=$IFS 13048 IFS=: 13049 set x $ac_tag 13050 IFS=$ac_save_IFS 13051 shift 13052 ac_file=$1 13053 shift 13054 13055 case $ac_mode in 13056 :L) ac_source=$1;; 13057 :[FH]) 13058 ac_file_inputs= 13059 for ac_f 13060 do 13061 case $ac_f in 13062 -) ac_f="$ac_tmp/stdin";; 13063 *) # Look for the file first in the build tree, then in the source tree 13064 # (if the path is not absolute). The absolute path cannot be DOS-style, 13065 # because $ac_f cannot contain `:'. 13066 test -f "$ac_f" || 13067 case $ac_f in 13068 [\\/$]*) false;; 13069 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13070 esac || 13071 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13072 esac 13073 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13074 as_fn_append ac_file_inputs " '$ac_f'" 13075 done 13076 13077 # Let's still pretend it is `configure' which instantiates (i.e., don't 13078 # use $as_me), people would be surprised to read: 13079 # /* config.h. Generated by config.status. */ 13080 configure_input='Generated from '` 13081 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13082 `' by configure.' 13083 if test x"$ac_file" != x-; then 13084 configure_input="$ac_file. $configure_input" 13085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13086printf "%s\n" "$as_me: creating $ac_file" >&6;} 13087 fi 13088 # Neutralize special characters interpreted by sed in replacement strings. 13089 case $configure_input in #( 13090 *\&* | *\|* | *\\* ) 13091 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 13092 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13093 *) ac_sed_conf_input=$configure_input;; 13094 esac 13095 13096 case $ac_tag in 13097 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13099 esac 13100 ;; 13101 esac 13102 13103 ac_dir=`$as_dirname -- "$ac_file" || 13104$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13105 X"$ac_file" : 'X\(//\)[^/]' \| \ 13106 X"$ac_file" : 'X\(//\)$' \| \ 13107 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13108printf "%s\n" X"$ac_file" | 13109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13110 s//\1/ 13111 q 13112 } 13113 /^X\(\/\/\)[^/].*/{ 13114 s//\1/ 13115 q 13116 } 13117 /^X\(\/\/\)$/{ 13118 s//\1/ 13119 q 13120 } 13121 /^X\(\/\).*/{ 13122 s//\1/ 13123 q 13124 } 13125 s/.*/./; q'` 13126 as_dir="$ac_dir"; as_fn_mkdir_p 13127 ac_builddir=. 13128 13129case "$ac_dir" in 13130.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13131*) 13132 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 13133 # A ".." for each directory in $ac_dir_suffix. 13134 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13135 case $ac_top_builddir_sub in 13136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13138 esac ;; 13139esac 13140ac_abs_top_builddir=$ac_pwd 13141ac_abs_builddir=$ac_pwd$ac_dir_suffix 13142# for backward compatibility: 13143ac_top_builddir=$ac_top_build_prefix 13144 13145case $srcdir in 13146 .) # We are building in place. 13147 ac_srcdir=. 13148 ac_top_srcdir=$ac_top_builddir_sub 13149 ac_abs_top_srcdir=$ac_pwd ;; 13150 [\\/]* | ?:[\\/]* ) # Absolute name. 13151 ac_srcdir=$srcdir$ac_dir_suffix; 13152 ac_top_srcdir=$srcdir 13153 ac_abs_top_srcdir=$srcdir ;; 13154 *) # Relative name. 13155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13156 ac_top_srcdir=$ac_top_build_prefix$srcdir 13157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13158esac 13159ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13160 13161 13162 case $ac_mode in 13163 :F) 13164 # 13165 # CONFIG_FILE 13166 # 13167 13168 case $INSTALL in 13169 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13170 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13171 esac 13172 ac_MKDIR_P=$MKDIR_P 13173 case $MKDIR_P in 13174 [\\/$]* | ?:[\\/]* ) ;; 13175 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13176 esac 13177_ACEOF 13178 13179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13180# If the template does not know about datarootdir, expand it. 13181# FIXME: This hack should be removed a few years after 2.60. 13182ac_datarootdir_hack=; ac_datarootdir_seen= 13183ac_sed_dataroot=' 13184/datarootdir/ { 13185 p 13186 q 13187} 13188/@datadir@/p 13189/@docdir@/p 13190/@infodir@/p 13191/@localedir@/p 13192/@mandir@/p' 13193case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13194*datarootdir*) ac_datarootdir_seen=yes;; 13195*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13197printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13198_ACEOF 13199cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13200 ac_datarootdir_hack=' 13201 s&@datadir@&$datadir&g 13202 s&@docdir@&$docdir&g 13203 s&@infodir@&$infodir&g 13204 s&@localedir@&$localedir&g 13205 s&@mandir@&$mandir&g 13206 s&\\\${datarootdir}&$datarootdir&g' ;; 13207esac 13208_ACEOF 13209 13210# Neutralize VPATH when `$srcdir' = `.'. 13211# Shell code in configure.ac might set extrasub. 13212# FIXME: do we really want to maintain this feature? 13213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13214ac_sed_extra="$ac_vpsub 13215$extrasub 13216_ACEOF 13217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13218:t 13219/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13220s|@configure_input@|$ac_sed_conf_input|;t t 13221s&@top_builddir@&$ac_top_builddir_sub&;t t 13222s&@top_build_prefix@&$ac_top_build_prefix&;t t 13223s&@srcdir@&$ac_srcdir&;t t 13224s&@abs_srcdir@&$ac_abs_srcdir&;t t 13225s&@top_srcdir@&$ac_top_srcdir&;t t 13226s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13227s&@builddir@&$ac_builddir&;t t 13228s&@abs_builddir@&$ac_abs_builddir&;t t 13229s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13230s&@INSTALL@&$ac_INSTALL&;t t 13231s&@MKDIR_P@&$ac_MKDIR_P&;t t 13232$ac_datarootdir_hack 13233" 13234eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13235 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13236 13237test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13238 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13240 "$ac_tmp/out"`; test -z "$ac_out"; } && 13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13242which seems to be undefined. Please make sure it is defined" >&5 13243printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13244which seems to be undefined. Please make sure it is defined" >&2;} 13245 13246 rm -f "$ac_tmp/stdin" 13247 case $ac_file in 13248 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13249 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13250 esac \ 13251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13252 ;; 13253 :H) 13254 # 13255 # CONFIG_HEADER 13256 # 13257 if test x"$ac_file" != x-; then 13258 { 13259 printf "%s\n" "/* $configure_input */" >&1 \ 13260 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13261 } >"$ac_tmp/config.h" \ 13262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13263 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13265printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13266 else 13267 rm -f "$ac_file" 13268 mv "$ac_tmp/config.h" "$ac_file" \ 13269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13270 fi 13271 else 13272 printf "%s\n" "/* $configure_input */" >&1 \ 13273 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13274 || as_fn_error $? "could not create -" "$LINENO" 5 13275 fi 13276# Compute "$ac_file"'s index in $config_headers. 13277_am_arg="$ac_file" 13278_am_stamp_count=1 13279for _am_header in $config_headers :; do 13280 case $_am_header in 13281 $_am_arg | $_am_arg:* ) 13282 break ;; 13283 * ) 13284 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13285 esac 13286done 13287echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13288$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13289 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13290 X"$_am_arg" : 'X\(//\)$' \| \ 13291 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13292printf "%s\n" X"$_am_arg" | 13293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13294 s//\1/ 13295 q 13296 } 13297 /^X\(\/\/\)[^/].*/{ 13298 s//\1/ 13299 q 13300 } 13301 /^X\(\/\/\)$/{ 13302 s//\1/ 13303 q 13304 } 13305 /^X\(\/\).*/{ 13306 s//\1/ 13307 q 13308 } 13309 s/.*/./; q'`/stamp-h$_am_stamp_count 13310 ;; 13311 13312 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13313printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13314 ;; 13315 esac 13316 13317 13318 case $ac_file$ac_mode in 13319 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13320 # Older Autoconf quotes --file arguments for eval, but not when files 13321 # are listed without --file. Let's play safe and only enable the eval 13322 # if we detect the quoting. 13323 # TODO: see whether this extra hack can be removed once we start 13324 # requiring Autoconf 2.70 or later. 13325 case $CONFIG_FILES in #( 13326 *\'*) : 13327 eval set x "$CONFIG_FILES" ;; #( 13328 *) : 13329 set x $CONFIG_FILES ;; #( 13330 *) : 13331 ;; 13332esac 13333 shift 13334 # Used to flag and report bootstrapping failures. 13335 am_rc=0 13336 for am_mf 13337 do 13338 # Strip MF so we end up with the name of the file. 13339 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13340 # Check whether this is an Automake generated Makefile which includes 13341 # dependency-tracking related rules and includes. 13342 # Grep'ing the whole file directly is not great: AIX grep has a line 13343 # limit of 2048, but all sed's we know have understand at least 4000. 13344 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13345 || continue 13346 am_dirpart=`$as_dirname -- "$am_mf" || 13347$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13348 X"$am_mf" : 'X\(//\)[^/]' \| \ 13349 X"$am_mf" : 'X\(//\)$' \| \ 13350 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13351printf "%s\n" X"$am_mf" | 13352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13353 s//\1/ 13354 q 13355 } 13356 /^X\(\/\/\)[^/].*/{ 13357 s//\1/ 13358 q 13359 } 13360 /^X\(\/\/\)$/{ 13361 s//\1/ 13362 q 13363 } 13364 /^X\(\/\).*/{ 13365 s//\1/ 13366 q 13367 } 13368 s/.*/./; q'` 13369 am_filepart=`$as_basename -- "$am_mf" || 13370$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13371 X"$am_mf" : 'X\(//\)$' \| \ 13372 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13373printf "%s\n" X/"$am_mf" | 13374 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13375 s//\1/ 13376 q 13377 } 13378 /^X\/\(\/\/\)$/{ 13379 s//\1/ 13380 q 13381 } 13382 /^X\/\(\/\).*/{ 13383 s//\1/ 13384 q 13385 } 13386 s/.*/./; q'` 13387 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13388 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13389 | $MAKE -f - am--depfiles" >&5 13390 (cd "$am_dirpart" \ 13391 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13392 | $MAKE -f - am--depfiles) >&5 2>&5 13393 ac_status=$? 13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13395 (exit $ac_status); } || am_rc=$? 13396 done 13397 if test $am_rc -ne 0; then 13398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13399printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 13400as_fn_error $? "Something went wrong bootstrapping makefile fragments 13401 for automatic dependency tracking. If GNU make was not used, consider 13402 re-running the configure script with MAKE=\"gmake\" (or whatever is 13403 necessary). You can also try re-running configure with the 13404 '--disable-dependency-tracking' option to at least be able to build 13405 the package (albeit without support for automatic dependency tracking). 13406See \`config.log' for more details" "$LINENO" 5; } 13407 fi 13408 { am_dirpart=; unset am_dirpart;} 13409 { am_filepart=; unset am_filepart;} 13410 { am_mf=; unset am_mf;} 13411 { am_rc=; unset am_rc;} 13412 rm -f conftest-deps.mk 13413} 13414 ;; 13415 13416 esac 13417done # for ac_tag 13418 13419 13420as_fn_exit 0 13421_ACEOF 13422ac_clean_files=$ac_clean_files_save 13423 13424test $ac_write_fail = 0 || 13425 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13426 13427 13428# configure is writing to config.log, and then calls config.status. 13429# config.status does its own redirection, appending to config.log. 13430# Unfortunately, on DOS this fails, as config.log is still kept open 13431# by configure, so config.status won't be able to write to it; its 13432# output is simply discarded. So we exec the FD to /dev/null, 13433# effectively closing config.log, so it can be properly (re)opened and 13434# appended to by config.status. When coming back to configure, we 13435# need to make the FD available again. 13436if test "$no_create" != yes; then 13437 ac_cs_success=: 13438 ac_config_status_args= 13439 test "$silent" = yes && 13440 ac_config_status_args="$ac_config_status_args --quiet" 13441 exec 5>/dev/null 13442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13443 exec 5>>config.log 13444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13445 # would make configure fail if this is the last instruction. 13446 $ac_cs_success || as_fn_exit 1 13447fi 13448if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13450printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13451fi 13452 13453 13454