configure revision 26df5c7c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xeyes 1.2.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/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/xeyes/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='xeyes' 614PACKAGE_TARNAME='xeyes' 615PACKAGE_VERSION='1.2.0' 616PACKAGE_STRING='xeyes 1.2.0' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xeyes/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 657PRESENT_LIBS 658PRESENT_CFLAGS 659XRENDER_LIBS 660XRENDER_CFLAGS 661XEYES_LIBS 662XEYES_CFLAGS 663MAN_SUBSTS 664XORG_MAN_PAGE 665ADMIN_MAN_DIR 666DRIVER_MAN_DIR 667MISC_MAN_DIR 668FILE_MAN_DIR 669LIB_MAN_DIR 670APP_MAN_DIR 671ADMIN_MAN_SUFFIX 672DRIVER_MAN_SUFFIX 673MISC_MAN_SUFFIX 674FILE_MAN_SUFFIX 675LIB_MAN_SUFFIX 676APP_MAN_SUFFIX 677SED 678host_os 679host_vendor 680host_cpu 681host 682build_os 683build_vendor 684build_cpu 685build 686INSTALL_CMD 687PKG_CONFIG_LIBDIR 688PKG_CONFIG_PATH 689PKG_CONFIG 690CHANGELOG_CMD 691STRICT_CFLAGS 692CWARNFLAGS 693BASE_CFLAGS 694am__fastdepCC_FALSE 695am__fastdepCC_TRUE 696CCDEPMODE 697am__nodep 698AMDEPBACKSLASH 699AMDEP_FALSE 700AMDEP_TRUE 701am__include 702DEPDIR 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710AM_BACKSLASH 711AM_DEFAULT_VERBOSITY 712AM_DEFAULT_V 713AM_V 714CSCOPE 715ETAGS 716CTAGS 717am__untar 718am__tar 719AMTAR 720am__leading_dot 721SET_MAKE 722AWK 723mkdir_p 724MKDIR_P 725INSTALL_STRIP_PROGRAM 726STRIP 727install_sh 728MAKEINFO 729AUTOHEADER 730AUTOMAKE 731AUTOCONF 732ACLOCAL 733VERSION 734PACKAGE 735CYGPATH_W 736am__isrc 737INSTALL_DATA 738INSTALL_SCRIPT 739INSTALL_PROGRAM 740target_alias 741host_alias 742build_alias 743LIBS 744ECHO_T 745ECHO_N 746ECHO_C 747DEFS 748mandir 749localedir 750libdir 751psdir 752pdfdir 753dvidir 754htmldir 755infodir 756docdir 757oldincludedir 758includedir 759runstatedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL 779am__quote' 780ac_subst_files='' 781ac_user_opts=' 782enable_option_checking 783enable_silent_rules 784enable_dependency_tracking 785enable_selective_werror 786enable_strict_compilation 787with_xrender 788with_present 789' 790 ac_precious_vars='build_alias 791host_alias 792target_alias 793CC 794CFLAGS 795LDFLAGS 796LIBS 797CPPFLAGS 798PKG_CONFIG 799PKG_CONFIG_PATH 800PKG_CONFIG_LIBDIR 801XEYES_CFLAGS 802XEYES_LIBS 803XRENDER_CFLAGS 804XRENDER_LIBS 805PRESENT_CFLAGS 806PRESENT_LIBS' 807 808 809# Initialize some variables set by options. 810ac_init_help= 811ac_init_version=false 812ac_unrecognized_opts= 813ac_unrecognized_sep= 814# The variables have the same names as the options, with 815# dashes changed to underlines. 816cache_file=/dev/null 817exec_prefix=NONE 818no_create= 819no_recursion= 820prefix=NONE 821program_prefix=NONE 822program_suffix=NONE 823program_transform_name=s,x,x, 824silent= 825site= 826srcdir= 827verbose= 828x_includes=NONE 829x_libraries=NONE 830 831# Installation directory options. 832# These are left unexpanded so users can "make install exec_prefix=/foo" 833# and all the variables that are supposed to be based on exec_prefix 834# by default will actually change. 835# Use braces instead of parens because sh, perl, etc. also accept them. 836# (The list follows the same order as the GNU Coding Standards.) 837bindir='${exec_prefix}/bin' 838sbindir='${exec_prefix}/sbin' 839libexecdir='${exec_prefix}/libexec' 840datarootdir='${prefix}/share' 841datadir='${datarootdir}' 842sysconfdir='${prefix}/etc' 843sharedstatedir='${prefix}/com' 844localstatedir='${prefix}/var' 845runstatedir='${localstatedir}/run' 846includedir='${prefix}/include' 847oldincludedir='/usr/include' 848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 849infodir='${datarootdir}/info' 850htmldir='${docdir}' 851dvidir='${docdir}' 852pdfdir='${docdir}' 853psdir='${docdir}' 854libdir='${exec_prefix}/lib' 855localedir='${datarootdir}/locale' 856mandir='${datarootdir}/man' 857 858ac_prev= 859ac_dashdash= 860for ac_option 861do 862 # If the previous option needs an argument, assign it. 863 if test -n "$ac_prev"; then 864 eval $ac_prev=\$ac_option 865 ac_prev= 866 continue 867 fi 868 869 case $ac_option in 870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 871 *=) ac_optarg= ;; 872 *) ac_optarg=yes ;; 873 esac 874 875 case $ac_dashdash$ac_option in 876 --) 877 ac_dashdash=yes ;; 878 879 -bindir | --bindir | --bindi | --bind | --bin | --bi) 880 ac_prev=bindir ;; 881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 882 bindir=$ac_optarg ;; 883 884 -build | --build | --buil | --bui | --bu) 885 ac_prev=build_alias ;; 886 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 887 build_alias=$ac_optarg ;; 888 889 -cache-file | --cache-file | --cache-fil | --cache-fi \ 890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 891 ac_prev=cache_file ;; 892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 894 cache_file=$ac_optarg ;; 895 896 --config-cache | -C) 897 cache_file=config.cache ;; 898 899 -datadir | --datadir | --datadi | --datad) 900 ac_prev=datadir ;; 901 -datadir=* | --datadir=* | --datadi=* | --datad=*) 902 datadir=$ac_optarg ;; 903 904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 905 | --dataroo | --dataro | --datar) 906 ac_prev=datarootdir ;; 907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 909 datarootdir=$ac_optarg ;; 910 911 -disable-* | --disable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: \`$ac_useropt'" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=no ;; 926 927 -docdir | --docdir | --docdi | --doc | --do) 928 ac_prev=docdir ;; 929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 930 docdir=$ac_optarg ;; 931 932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 933 ac_prev=dvidir ;; 934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 935 dvidir=$ac_optarg ;; 936 937 -enable-* | --enable-*) 938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 939 # Reject names that are not valid shell variable names. 940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 941 as_fn_error $? "invalid feature name: \`$ac_useropt'" 942 ac_useropt_orig=$ac_useropt 943 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 944 case $ac_user_opts in 945 *" 946"enable_$ac_useropt" 947"*) ;; 948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 949 ac_unrecognized_sep=', ';; 950 esac 951 eval enable_$ac_useropt=\$ac_optarg ;; 952 953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 955 | --exec | --exe | --ex) 956 ac_prev=exec_prefix ;; 957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 959 | --exec=* | --exe=* | --ex=*) 960 exec_prefix=$ac_optarg ;; 961 962 -gas | --gas | --ga | --g) 963 # Obsolete; use --with-gas. 964 with_gas=yes ;; 965 966 -help | --help | --hel | --he | -h) 967 ac_init_help=long ;; 968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 969 ac_init_help=recursive ;; 970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 971 ac_init_help=short ;; 972 973 -host | --host | --hos | --ho) 974 ac_prev=host_alias ;; 975 -host=* | --host=* | --hos=* | --ho=*) 976 host_alias=$ac_optarg ;; 977 978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 979 ac_prev=htmldir ;; 980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 981 | --ht=*) 982 htmldir=$ac_optarg ;; 983 984 -includedir | --includedir | --includedi | --included | --include \ 985 | --includ | --inclu | --incl | --inc) 986 ac_prev=includedir ;; 987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 988 | --includ=* | --inclu=* | --incl=* | --inc=*) 989 includedir=$ac_optarg ;; 990 991 -infodir | --infodir | --infodi | --infod | --info | --inf) 992 ac_prev=infodir ;; 993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 994 infodir=$ac_optarg ;; 995 996 -libdir | --libdir | --libdi | --libd) 997 ac_prev=libdir ;; 998 -libdir=* | --libdir=* | --libdi=* | --libd=*) 999 libdir=$ac_optarg ;; 1000 1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1002 | --libexe | --libex | --libe) 1003 ac_prev=libexecdir ;; 1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1005 | --libexe=* | --libex=* | --libe=*) 1006 libexecdir=$ac_optarg ;; 1007 1008 -localedir | --localedir | --localedi | --localed | --locale) 1009 ac_prev=localedir ;; 1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1011 localedir=$ac_optarg ;; 1012 1013 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1014 | --localstate | --localstat | --localsta | --localst | --locals) 1015 ac_prev=localstatedir ;; 1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1018 localstatedir=$ac_optarg ;; 1019 1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1021 ac_prev=mandir ;; 1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1023 mandir=$ac_optarg ;; 1024 1025 -nfp | --nfp | --nf) 1026 # Obsolete; use --without-fp. 1027 with_fp=no ;; 1028 1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1030 | --no-cr | --no-c | -n) 1031 no_create=yes ;; 1032 1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1035 no_recursion=yes ;; 1036 1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1039 | --oldin | --oldi | --old | --ol | --o) 1040 ac_prev=oldincludedir ;; 1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1044 oldincludedir=$ac_optarg ;; 1045 1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1047 ac_prev=prefix ;; 1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1049 prefix=$ac_optarg ;; 1050 1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1052 | --program-pre | --program-pr | --program-p) 1053 ac_prev=program_prefix ;; 1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1056 program_prefix=$ac_optarg ;; 1057 1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1059 | --program-suf | --program-su | --program-s) 1060 ac_prev=program_suffix ;; 1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1063 program_suffix=$ac_optarg ;; 1064 1065 -program-transform-name | --program-transform-name \ 1066 | --program-transform-nam | --program-transform-na \ 1067 | --program-transform-n | --program-transform- \ 1068 | --program-transform | --program-transfor \ 1069 | --program-transfo | --program-transf \ 1070 | --program-trans | --program-tran \ 1071 | --progr-tra | --program-tr | --program-t) 1072 ac_prev=program_transform_name ;; 1073 -program-transform-name=* | --program-transform-name=* \ 1074 | --program-transform-nam=* | --program-transform-na=* \ 1075 | --program-transform-n=* | --program-transform-=* \ 1076 | --program-transform=* | --program-transfor=* \ 1077 | --program-transfo=* | --program-transf=* \ 1078 | --program-trans=* | --program-tran=* \ 1079 | --progr-tra=* | --program-tr=* | --program-t=*) 1080 program_transform_name=$ac_optarg ;; 1081 1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1083 ac_prev=pdfdir ;; 1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1085 pdfdir=$ac_optarg ;; 1086 1087 -psdir | --psdir | --psdi | --psd | --ps) 1088 ac_prev=psdir ;; 1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1090 psdir=$ac_optarg ;; 1091 1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1093 | -silent | --silent | --silen | --sile | --sil) 1094 silent=yes ;; 1095 1096 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1097 | --runstate | --runstat | --runsta | --runst | --runs \ 1098 | --run | --ru | --r) 1099 ac_prev=runstatedir ;; 1100 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1101 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1102 | --run=* | --ru=* | --r=*) 1103 runstatedir=$ac_optarg ;; 1104 1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106 ac_prev=sbindir ;; 1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108 | --sbi=* | --sb=*) 1109 sbindir=$ac_optarg ;; 1110 1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113 | --sharedst | --shareds | --shared | --share | --shar \ 1114 | --sha | --sh) 1115 ac_prev=sharedstatedir ;; 1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119 | --sha=* | --sh=*) 1120 sharedstatedir=$ac_optarg ;; 1121 1122 -site | --site | --sit) 1123 ac_prev=site ;; 1124 -site=* | --site=* | --sit=*) 1125 site=$ac_optarg ;; 1126 1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128 ac_prev=srcdir ;; 1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130 srcdir=$ac_optarg ;; 1131 1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133 | --syscon | --sysco | --sysc | --sys | --sy) 1134 ac_prev=sysconfdir ;; 1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137 sysconfdir=$ac_optarg ;; 1138 1139 -target | --target | --targe | --targ | --tar | --ta | --t) 1140 ac_prev=target_alias ;; 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142 target_alias=$ac_optarg ;; 1143 1144 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145 verbose=yes ;; 1146 1147 -version | --version | --versio | --versi | --vers | -V) 1148 ac_init_version=: ;; 1149 1150 -with-* | --with-*) 1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1154 as_fn_error $? "invalid package name: \`$ac_useropt'" 1155 ac_useropt_orig=$ac_useropt 1156 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 case $ac_user_opts in 1158 *" 1159"with_$ac_useropt" 1160"*) ;; 1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1162 ac_unrecognized_sep=', ';; 1163 esac 1164 eval with_$ac_useropt=\$ac_optarg ;; 1165 1166 -without-* | --without-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error $? "invalid package name: \`$ac_useropt'" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175"with_$ac_useropt" 1176"*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=no ;; 1181 1182 --x) 1183 # Obsolete; use --with-x. 1184 with_x=yes ;; 1185 1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1187 | --x-incl | --x-inc | --x-in | --x-i) 1188 ac_prev=x_includes ;; 1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1191 x_includes=$ac_optarg ;; 1192 1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1195 ac_prev=x_libraries ;; 1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1198 x_libraries=$ac_optarg ;; 1199 1200 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1201Try \`$0 --help' for more information" 1202 ;; 1203 1204 *=*) 1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1206 # Reject names that are not valid shell variable names. 1207 case $ac_envvar in #( 1208 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1210 esac 1211 eval $ac_envvar=\$ac_optarg 1212 export $ac_envvar ;; 1213 1214 *) 1215 # FIXME: should be removed in autoconf 3.0. 1216 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1218 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1220 ;; 1221 1222 esac 1223done 1224 1225if test -n "$ac_prev"; then 1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1227 as_fn_error $? "missing argument to $ac_option" 1228fi 1229 1230if test -n "$ac_unrecognized_opts"; then 1231 case $enable_option_checking in 1232 no) ;; 1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1234 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1235 esac 1236fi 1237 1238# Check all directory arguments for consistency. 1239for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1240 datadir sysconfdir sharedstatedir localstatedir includedir \ 1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1242 libdir localedir mandir runstatedir 1243do 1244 eval ac_val=\$$ac_var 1245 # Remove trailing slashes. 1246 case $ac_val in 1247 */ ) 1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1249 eval $ac_var=\$ac_val;; 1250 esac 1251 # Be sure to have absolute directory names. 1252 case $ac_val in 1253 [\\/$]* | ?:[\\/]* ) continue;; 1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1255 esac 1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1257done 1258 1259# There might be people who depend on the old broken behavior: `$host' 1260# used to hold the argument of --host etc. 1261# FIXME: To remove some day. 1262build=$build_alias 1263host=$host_alias 1264target=$target_alias 1265 1266# FIXME: To remove some day. 1267if test "x$host_alias" != x; then 1268 if test "x$build_alias" = x; then 1269 cross_compiling=maybe 1270 elif test "x$build_alias" != "x$host_alias"; then 1271 cross_compiling=yes 1272 fi 1273fi 1274 1275ac_tool_prefix= 1276test -n "$host_alias" && ac_tool_prefix=$host_alias- 1277 1278test "$silent" = yes && exec 6>/dev/null 1279 1280 1281ac_pwd=`pwd` && test -n "$ac_pwd" && 1282ac_ls_di=`ls -di .` && 1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1284 as_fn_error $? "working directory cannot be determined" 1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1286 as_fn_error $? "pwd does not report name of working directory" 1287 1288 1289# Find the source files, if location was not specified. 1290if test -z "$srcdir"; then 1291 ac_srcdir_defaulted=yes 1292 # Try the directory containing this script, then the parent directory. 1293 ac_confdir=`$as_dirname -- "$as_myself" || 1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1295 X"$as_myself" : 'X\(//\)[^/]' \| \ 1296 X"$as_myself" : 'X\(//\)$' \| \ 1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1298printf "%s\n" X"$as_myself" | 1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)[^/].*/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\/\)$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\).*/{ 1312 s//\1/ 1313 q 1314 } 1315 s/.*/./; q'` 1316 srcdir=$ac_confdir 1317 if test ! -r "$srcdir/$ac_unique_file"; then 1318 srcdir=.. 1319 fi 1320else 1321 ac_srcdir_defaulted=no 1322fi 1323if test ! -r "$srcdir/$ac_unique_file"; then 1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1326fi 1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1328ac_abs_confdir=`( 1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1330 pwd)` 1331# When building in place, set srcdir=. 1332if test "$ac_abs_confdir" = "$ac_pwd"; then 1333 srcdir=. 1334fi 1335# Remove unnecessary trailing slashes from srcdir. 1336# Double slashes in file names in object file debugging info 1337# mess up M-x gdb in Emacs. 1338case $srcdir in 1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1340esac 1341for ac_var in $ac_precious_vars; do 1342 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1343 eval ac_env_${ac_var}_value=\$${ac_var} 1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1346done 1347 1348# 1349# Report the --help message. 1350# 1351if test "$ac_init_help" = "long"; then 1352 # Omit some internal or obsolete options to make the list less imposing. 1353 # This message is too long to be a string in the A/UX 3.1 sh. 1354 cat <<_ACEOF 1355\`configure' configures xeyes 1.2.0 to adapt to many kinds of systems. 1356 1357Usage: $0 [OPTION]... [VAR=VALUE]... 1358 1359To assign environment variables (e.g., CC, CFLAGS...), specify them as 1360VAR=VALUE. See below for descriptions of some of the useful variables. 1361 1362Defaults for the options are specified in brackets. 1363 1364Configuration: 1365 -h, --help display this help and exit 1366 --help=short display options specific to this package 1367 --help=recursive display the short help of all the included packages 1368 -V, --version display version information and exit 1369 -q, --quiet, --silent do not print \`checking ...' messages 1370 --cache-file=FILE cache test results in FILE [disabled] 1371 -C, --config-cache alias for \`--cache-file=config.cache' 1372 -n, --no-create do not create output files 1373 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1374 1375Installation directories: 1376 --prefix=PREFIX install architecture-independent files in PREFIX 1377 [$ac_default_prefix] 1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1379 [PREFIX] 1380 1381By default, \`make install' will install all the files in 1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1383an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1384for instance \`--prefix=\$HOME'. 1385 1386For better control, use the options below. 1387 1388Fine tuning of the installation directories: 1389 --bindir=DIR user executables [EPREFIX/bin] 1390 --sbindir=DIR system admin executables [EPREFIX/sbin] 1391 --libexecdir=DIR program executables [EPREFIX/libexec] 1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1395 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1396 --libdir=DIR object code libraries [EPREFIX/lib] 1397 --includedir=DIR C header files [PREFIX/include] 1398 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1401 --infodir=DIR info documentation [DATAROOTDIR/info] 1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1403 --mandir=DIR man documentation [DATAROOTDIR/man] 1404 --docdir=DIR documentation root [DATAROOTDIR/doc/xeyes] 1405 --htmldir=DIR html documentation [DOCDIR] 1406 --dvidir=DIR dvi documentation [DOCDIR] 1407 --pdfdir=DIR pdf documentation [DOCDIR] 1408 --psdir=DIR ps documentation [DOCDIR] 1409_ACEOF 1410 1411 cat <<\_ACEOF 1412 1413Program names: 1414 --program-prefix=PREFIX prepend PREFIX to installed program names 1415 --program-suffix=SUFFIX append SUFFIX to installed program names 1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1417 1418System types: 1419 --build=BUILD configure for building on BUILD [guessed] 1420 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1421_ACEOF 1422fi 1423 1424if test -n "$ac_init_help"; then 1425 case $ac_init_help in 1426 short | recursive ) echo "Configuration of xeyes 1.2.0:";; 1427 esac 1428 cat <<\_ACEOF 1429 1430Optional Features: 1431 --disable-option-checking ignore unrecognized --enable/--with options 1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1434 --enable-silent-rules less verbose build output (undo: "make V=1") 1435 --disable-silent-rules verbose build output (undo: "make V=0") 1436 --enable-dependency-tracking 1437 do not reject slow dependency extractors 1438 --disable-dependency-tracking 1439 speeds up one-time build 1440 --disable-selective-werror 1441 Turn off selective compiler errors. (default: 1442 enabled) 1443 --enable-strict-compilation 1444 Enable all warnings from compiler and make them 1445 errors (default: disabled) 1446 1447Optional Packages: 1448 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1449 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1450 --with-xrender Use Xrender for rendering (Default is YES) 1451 --with-present Use Present for updates (Default is AUTO) 1452 1453Some influential environment variables: 1454 CC C compiler command 1455 CFLAGS C compiler flags 1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1457 nonstandard directory <lib dir> 1458 LIBS libraries to pass to the linker, e.g. -l<library> 1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1460 you have headers in a nonstandard directory <include dir> 1461 PKG_CONFIG path to pkg-config utility 1462 PKG_CONFIG_PATH 1463 directories to add to pkg-config's search path 1464 PKG_CONFIG_LIBDIR 1465 path overriding pkg-config's built-in search path 1466 XEYES_CFLAGS 1467 C compiler flags for XEYES, overriding pkg-config 1468 XEYES_LIBS linker flags for XEYES, overriding pkg-config 1469 XRENDER_CFLAGS 1470 C compiler flags for XRENDER, overriding pkg-config 1471 XRENDER_LIBS 1472 linker flags for XRENDER, overriding pkg-config 1473 PRESENT_CFLAGS 1474 C compiler flags for PRESENT, overriding pkg-config 1475 PRESENT_LIBS 1476 linker flags for PRESENT, overriding pkg-config 1477 1478Use these variables to override the choices made by `configure' or to help 1479it to find libraries and programs with nonstandard names/locations. 1480 1481Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/issues>. 1482_ACEOF 1483ac_status=$? 1484fi 1485 1486if test "$ac_init_help" = "recursive"; then 1487 # If there are subdirs, report their specific --help. 1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1489 test -d "$ac_dir" || 1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1491 continue 1492 ac_builddir=. 1493 1494case "$ac_dir" in 1495.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1496*) 1497 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1498 # A ".." for each directory in $ac_dir_suffix. 1499 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1500 case $ac_top_builddir_sub in 1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1503 esac ;; 1504esac 1505ac_abs_top_builddir=$ac_pwd 1506ac_abs_builddir=$ac_pwd$ac_dir_suffix 1507# for backward compatibility: 1508ac_top_builddir=$ac_top_build_prefix 1509 1510case $srcdir in 1511 .) # We are building in place. 1512 ac_srcdir=. 1513 ac_top_srcdir=$ac_top_builddir_sub 1514 ac_abs_top_srcdir=$ac_pwd ;; 1515 [\\/]* | ?:[\\/]* ) # Absolute name. 1516 ac_srcdir=$srcdir$ac_dir_suffix; 1517 ac_top_srcdir=$srcdir 1518 ac_abs_top_srcdir=$srcdir ;; 1519 *) # Relative name. 1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1521 ac_top_srcdir=$ac_top_build_prefix$srcdir 1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1523esac 1524ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1525 1526 cd "$ac_dir" || { ac_status=$?; continue; } 1527 # Check for configure.gnu first; this name is used for a wrapper for 1528 # Metaconfig's "Configure" on case-insensitive file systems. 1529 if test -f "$ac_srcdir/configure.gnu"; then 1530 echo && 1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1532 elif test -f "$ac_srcdir/configure"; then 1533 echo && 1534 $SHELL "$ac_srcdir/configure" --help=recursive 1535 else 1536 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1537 fi || ac_status=$? 1538 cd "$ac_pwd" || { ac_status=$?; break; } 1539 done 1540fi 1541 1542test -n "$ac_init_help" && exit $ac_status 1543if $ac_init_version; then 1544 cat <<\_ACEOF 1545xeyes configure 1.2.0 1546generated by GNU Autoconf 2.71 1547 1548Copyright (C) 2021 Free Software Foundation, Inc. 1549This configure script is free software; the Free Software Foundation 1550gives unlimited permission to copy, distribute and modify it. 1551_ACEOF 1552 exit 1553fi 1554 1555## ------------------------ ## 1556## Autoconf initialization. ## 1557## ------------------------ ## 1558 1559# ac_fn_c_try_compile LINENO 1560# -------------------------- 1561# Try to compile conftest.$ac_ext, and return whether this succeeded. 1562ac_fn_c_try_compile () 1563{ 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 rm -f conftest.$ac_objext conftest.beam 1566 if { { ac_try="$ac_compile" 1567case "(($ac_try" in 1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1569 *) ac_try_echo=$ac_try;; 1570esac 1571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1572printf "%s\n" "$ac_try_echo"; } >&5 1573 (eval "$ac_compile") 2>conftest.err 1574 ac_status=$? 1575 if test -s conftest.err; then 1576 grep -v '^ *+' conftest.err >conftest.er1 1577 cat conftest.er1 >&5 1578 mv -f conftest.er1 conftest.err 1579 fi 1580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1581 test $ac_status = 0; } && { 1582 test -z "$ac_c_werror_flag" || 1583 test ! -s conftest.err 1584 } && test -s conftest.$ac_objext 1585then : 1586 ac_retval=0 1587else $as_nop 1588 printf "%s\n" "$as_me: failed program was:" >&5 1589sed 's/^/| /' conftest.$ac_ext >&5 1590 1591 ac_retval=1 1592fi 1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1594 as_fn_set_status $ac_retval 1595 1596} # ac_fn_c_try_compile 1597 1598# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1599# ------------------------------------------------------------------ 1600# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1601# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1602ac_fn_check_decl () 1603{ 1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1605 as_decl_name=`echo $2|sed 's/ *(.*//'` 1606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1607printf %s "checking whether $as_decl_name is declared... " >&6; } 1608if eval test \${$3+y} 1609then : 1610 printf %s "(cached) " >&6 1611else $as_nop 1612 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1613 eval ac_save_FLAGS=\$$6 1614 as_fn_append $6 " $5" 1615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1616/* end confdefs.h. */ 1617$4 1618int 1619main (void) 1620{ 1621#ifndef $as_decl_name 1622#ifdef __cplusplus 1623 (void) $as_decl_use; 1624#else 1625 (void) $as_decl_name; 1626#endif 1627#endif 1628 1629 ; 1630 return 0; 1631} 1632_ACEOF 1633if ac_fn_c_try_compile "$LINENO" 1634then : 1635 eval "$3=yes" 1636else $as_nop 1637 eval "$3=no" 1638fi 1639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1640 eval $6=\$ac_save_FLAGS 1641 1642fi 1643eval ac_res=\$$3 1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1645printf "%s\n" "$ac_res" >&6; } 1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647 1648} # ac_fn_check_decl 1649 1650# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1651# ------------------------------------------------------- 1652# Tests whether HEADER exists and can be compiled using the include files in 1653# INCLUDES, setting the cache variable VAR accordingly. 1654ac_fn_c_check_header_compile () 1655{ 1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1658printf %s "checking for $2... " >&6; } 1659if eval test \${$3+y} 1660then : 1661 printf %s "(cached) " >&6 1662else $as_nop 1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1664/* end confdefs.h. */ 1665$4 1666#include <$2> 1667_ACEOF 1668if ac_fn_c_try_compile "$LINENO" 1669then : 1670 eval "$3=yes" 1671else $as_nop 1672 eval "$3=no" 1673fi 1674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1675fi 1676eval ac_res=\$$3 1677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1678printf "%s\n" "$ac_res" >&6; } 1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1680 1681} # ac_fn_c_check_header_compile 1682 1683# ac_fn_c_try_link LINENO 1684# ----------------------- 1685# Try to link conftest.$ac_ext, and return whether this succeeded. 1686ac_fn_c_try_link () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1690 if { { ac_try="$ac_link" 1691case "(($ac_try" in 1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1693 *) ac_try_echo=$ac_try;; 1694esac 1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1696printf "%s\n" "$ac_try_echo"; } >&5 1697 (eval "$ac_link") 2>conftest.err 1698 ac_status=$? 1699 if test -s conftest.err; then 1700 grep -v '^ *+' conftest.err >conftest.er1 1701 cat conftest.er1 >&5 1702 mv -f conftest.er1 conftest.err 1703 fi 1704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; } && { 1706 test -z "$ac_c_werror_flag" || 1707 test ! -s conftest.err 1708 } && test -s conftest$ac_exeext && { 1709 test "$cross_compiling" = yes || 1710 test -x conftest$ac_exeext 1711 } 1712then : 1713 ac_retval=0 1714else $as_nop 1715 printf "%s\n" "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 1719fi 1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1722 # interfere with the next link command; also delete a directory that is 1723 # left behind by Apple's compiler. We do this before executing the actions. 1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1726 as_fn_set_status $ac_retval 1727 1728} # ac_fn_c_try_link 1729ac_configure_args_raw= 1730for ac_arg 1731do 1732 case $ac_arg in 1733 *\'*) 1734 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1735 esac 1736 as_fn_append ac_configure_args_raw " '$ac_arg'" 1737done 1738 1739case $ac_configure_args_raw in 1740 *$as_nl*) 1741 ac_safe_unquote= ;; 1742 *) 1743 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1744 ac_unsafe_a="$ac_unsafe_z#~" 1745 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1746 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1747esac 1748 1749cat >config.log <<_ACEOF 1750This file contains any messages produced by compilers while 1751running configure, to aid debugging if configure makes a mistake. 1752 1753It was created by xeyes $as_me 1.2.0, which was 1754generated by GNU Autoconf 2.71. Invocation command line was 1755 1756 $ $0$ac_configure_args_raw 1757 1758_ACEOF 1759exec 5>>config.log 1760{ 1761cat <<_ASUNAME 1762## --------- ## 1763## Platform. ## 1764## --------- ## 1765 1766hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1767uname -m = `(uname -m) 2>/dev/null || echo unknown` 1768uname -r = `(uname -r) 2>/dev/null || echo unknown` 1769uname -s = `(uname -s) 2>/dev/null || echo unknown` 1770uname -v = `(uname -v) 2>/dev/null || echo unknown` 1771 1772/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1773/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1774 1775/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1776/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1777/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1778/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1779/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1780/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1781/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1782 1783_ASUNAME 1784 1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1786for as_dir in $PATH 1787do 1788 IFS=$as_save_IFS 1789 case $as_dir in #((( 1790 '') as_dir=./ ;; 1791 */) ;; 1792 *) as_dir=$as_dir/ ;; 1793 esac 1794 printf "%s\n" "PATH: $as_dir" 1795 done 1796IFS=$as_save_IFS 1797 1798} >&5 1799 1800cat >&5 <<_ACEOF 1801 1802 1803## ----------- ## 1804## Core tests. ## 1805## ----------- ## 1806 1807_ACEOF 1808 1809 1810# Keep a trace of the command line. 1811# Strip out --no-create and --no-recursion so they do not pile up. 1812# Strip out --silent because we don't want to record it for future runs. 1813# Also quote any args containing shell meta-characters. 1814# Make two passes to allow for proper duplicate-argument suppression. 1815ac_configure_args= 1816ac_configure_args0= 1817ac_configure_args1= 1818ac_must_keep_next=false 1819for ac_pass in 1 2 1820do 1821 for ac_arg 1822 do 1823 case $ac_arg in 1824 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1826 | -silent | --silent | --silen | --sile | --sil) 1827 continue ;; 1828 *\'*) 1829 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1830 esac 1831 case $ac_pass in 1832 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1833 2) 1834 as_fn_append ac_configure_args1 " '$ac_arg'" 1835 if test $ac_must_keep_next = true; then 1836 ac_must_keep_next=false # Got value, back to normal. 1837 else 1838 case $ac_arg in 1839 *=* | --config-cache | -C | -disable-* | --disable-* \ 1840 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1841 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1842 | -with-* | --with-* | -without-* | --without-* | --x) 1843 case "$ac_configure_args0 " in 1844 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1845 esac 1846 ;; 1847 -* ) ac_must_keep_next=true ;; 1848 esac 1849 fi 1850 as_fn_append ac_configure_args " '$ac_arg'" 1851 ;; 1852 esac 1853 done 1854done 1855{ ac_configure_args0=; unset ac_configure_args0;} 1856{ ac_configure_args1=; unset ac_configure_args1;} 1857 1858# When interrupted or exit'd, cleanup temporary files, and complete 1859# config.log. We remove comments because anyway the quotes in there 1860# would cause problems or look ugly. 1861# WARNING: Use '\'' to represent an apostrophe within the trap. 1862# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1863trap 'exit_status=$? 1864 # Sanitize IFS. 1865 IFS=" "" $as_nl" 1866 # Save into config.log some information that might help in debugging. 1867 { 1868 echo 1869 1870 printf "%s\n" "## ---------------- ## 1871## Cache variables. ## 1872## ---------------- ##" 1873 echo 1874 # The following way of writing the cache mishandles newlines in values, 1875( 1876 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1877 eval ac_val=\$$ac_var 1878 case $ac_val in #( 1879 *${as_nl}*) 1880 case $ac_var in #( 1881 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1882printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1883 esac 1884 case $ac_var in #( 1885 _ | IFS | as_nl) ;; #( 1886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1887 *) { eval $ac_var=; unset $ac_var;} ;; 1888 esac ;; 1889 esac 1890 done 1891 (set) 2>&1 | 1892 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1893 *${as_nl}ac_space=\ *) 1894 sed -n \ 1895 "s/'\''/'\''\\\\'\'''\''/g; 1896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1897 ;; #( 1898 *) 1899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1900 ;; 1901 esac | 1902 sort 1903) 1904 echo 1905 1906 printf "%s\n" "## ----------------- ## 1907## Output variables. ## 1908## ----------------- ##" 1909 echo 1910 for ac_var in $ac_subst_vars 1911 do 1912 eval ac_val=\$$ac_var 1913 case $ac_val in 1914 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1915 esac 1916 printf "%s\n" "$ac_var='\''$ac_val'\''" 1917 done | sort 1918 echo 1919 1920 if test -n "$ac_subst_files"; then 1921 printf "%s\n" "## ------------------- ## 1922## File substitutions. ## 1923## ------------------- ##" 1924 echo 1925 for ac_var in $ac_subst_files 1926 do 1927 eval ac_val=\$$ac_var 1928 case $ac_val in 1929 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1930 esac 1931 printf "%s\n" "$ac_var='\''$ac_val'\''" 1932 done | sort 1933 echo 1934 fi 1935 1936 if test -s confdefs.h; then 1937 printf "%s\n" "## ----------- ## 1938## confdefs.h. ## 1939## ----------- ##" 1940 echo 1941 cat confdefs.h 1942 echo 1943 fi 1944 test "$ac_signal" != 0 && 1945 printf "%s\n" "$as_me: caught signal $ac_signal" 1946 printf "%s\n" "$as_me: exit $exit_status" 1947 } >&5 1948 rm -f core *.core core.conftest.* && 1949 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1950 exit $exit_status 1951' 0 1952for ac_signal in 1 2 13 15; do 1953 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1954done 1955ac_signal=0 1956 1957# confdefs.h avoids OS command line length limits that DEFS can exceed. 1958rm -f -r conftest* confdefs.h 1959 1960printf "%s\n" "/* confdefs.h */" > confdefs.h 1961 1962# Predefined preprocessor variables. 1963 1964printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1965 1966printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1967 1968printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1969 1970printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1971 1972printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1973 1974printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1975 1976 1977# Let the site file select an alternate cache file if it wants to. 1978# Prefer an explicitly selected file to automatically selected ones. 1979if test -n "$CONFIG_SITE"; then 1980 ac_site_files="$CONFIG_SITE" 1981elif test "x$prefix" != xNONE; then 1982 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1983else 1984 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1985fi 1986 1987for ac_site_file in $ac_site_files 1988do 1989 case $ac_site_file in #( 1990 */*) : 1991 ;; #( 1992 *) : 1993 ac_site_file=./$ac_site_file ;; 1994esac 1995 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1997printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1998 sed 's/^/| /' "$ac_site_file" >&5 1999 . "$ac_site_file" \ 2000 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2001printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2002as_fn_error $? "failed to load site script $ac_site_file 2003See \`config.log' for more details" "$LINENO" 5; } 2004 fi 2005done 2006 2007if test -r "$cache_file"; then 2008 # Some versions of bash will fail to source /dev/null (special files 2009 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2010 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2012printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2013 case $cache_file in 2014 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2015 *) . "./$cache_file";; 2016 esac 2017 fi 2018else 2019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2020printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2021 >$cache_file 2022fi 2023 2024# Test code for whether the C compiler supports C89 (global declarations) 2025ac_c_conftest_c89_globals=' 2026/* Does the compiler advertise C89 conformance? 2027 Do not test the value of __STDC__, because some compilers set it to 0 2028 while being otherwise adequately conformant. */ 2029#if !defined __STDC__ 2030# error "Compiler does not advertise C89 conformance" 2031#endif 2032 2033#include <stddef.h> 2034#include <stdarg.h> 2035struct stat; 2036/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2037struct buf { int x; }; 2038struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2039static char *e (p, i) 2040 char **p; 2041 int i; 2042{ 2043 return p[i]; 2044} 2045static char *f (char * (*g) (char **, int), char **p, ...) 2046{ 2047 char *s; 2048 va_list v; 2049 va_start (v,p); 2050 s = g (p, va_arg (v,int)); 2051 va_end (v); 2052 return s; 2053} 2054 2055/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2056 function prototypes and stuff, but not \xHH hex character constants. 2057 These do not provoke an error unfortunately, instead are silently treated 2058 as an "x". The following induces an error, until -std is added to get 2059 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2060 array size at least. It is necessary to write \x00 == 0 to get something 2061 that is true only with -std. */ 2062int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2063 2064/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2065 inside strings and character constants. */ 2066#define FOO(x) '\''x'\'' 2067int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2068 2069int test (int i, double x); 2070struct s1 {int (*f) (int a);}; 2071struct s2 {int (*f) (double a);}; 2072int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2073 int, int);' 2074 2075# Test code for whether the C compiler supports C89 (body of main). 2076ac_c_conftest_c89_main=' 2077ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2078' 2079 2080# Test code for whether the C compiler supports C99 (global declarations) 2081ac_c_conftest_c99_globals=' 2082// Does the compiler advertise C99 conformance? 2083#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2084# error "Compiler does not advertise C99 conformance" 2085#endif 2086 2087#include <stdbool.h> 2088extern int puts (const char *); 2089extern int printf (const char *, ...); 2090extern int dprintf (int, const char *, ...); 2091extern void *malloc (size_t); 2092 2093// Check varargs macros. These examples are taken from C99 6.10.3.5. 2094// dprintf is used instead of fprintf to avoid needing to declare 2095// FILE and stderr. 2096#define debug(...) dprintf (2, __VA_ARGS__) 2097#define showlist(...) puts (#__VA_ARGS__) 2098#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2099static void 2100test_varargs_macros (void) 2101{ 2102 int x = 1234; 2103 int y = 5678; 2104 debug ("Flag"); 2105 debug ("X = %d\n", x); 2106 showlist (The first, second, and third items.); 2107 report (x>y, "x is %d but y is %d", x, y); 2108} 2109 2110// Check long long types. 2111#define BIG64 18446744073709551615ull 2112#define BIG32 4294967295ul 2113#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2114#if !BIG_OK 2115 #error "your preprocessor is broken" 2116#endif 2117#if BIG_OK 2118#else 2119 #error "your preprocessor is broken" 2120#endif 2121static long long int bignum = -9223372036854775807LL; 2122static unsigned long long int ubignum = BIG64; 2123 2124struct incomplete_array 2125{ 2126 int datasize; 2127 double data[]; 2128}; 2129 2130struct named_init { 2131 int number; 2132 const wchar_t *name; 2133 double average; 2134}; 2135 2136typedef const char *ccp; 2137 2138static inline int 2139test_restrict (ccp restrict text) 2140{ 2141 // See if C++-style comments work. 2142 // Iterate through items via the restricted pointer. 2143 // Also check for declarations in for loops. 2144 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2145 continue; 2146 return 0; 2147} 2148 2149// Check varargs and va_copy. 2150static bool 2151test_varargs (const char *format, ...) 2152{ 2153 va_list args; 2154 va_start (args, format); 2155 va_list args_copy; 2156 va_copy (args_copy, args); 2157 2158 const char *str = ""; 2159 int number = 0; 2160 float fnumber = 0; 2161 2162 while (*format) 2163 { 2164 switch (*format++) 2165 { 2166 case '\''s'\'': // string 2167 str = va_arg (args_copy, const char *); 2168 break; 2169 case '\''d'\'': // int 2170 number = va_arg (args_copy, int); 2171 break; 2172 case '\''f'\'': // float 2173 fnumber = va_arg (args_copy, double); 2174 break; 2175 default: 2176 break; 2177 } 2178 } 2179 va_end (args_copy); 2180 va_end (args); 2181 2182 return *str && number && fnumber; 2183} 2184' 2185 2186# Test code for whether the C compiler supports C99 (body of main). 2187ac_c_conftest_c99_main=' 2188 // Check bool. 2189 _Bool success = false; 2190 success |= (argc != 0); 2191 2192 // Check restrict. 2193 if (test_restrict ("String literal") == 0) 2194 success = true; 2195 char *restrict newvar = "Another string"; 2196 2197 // Check varargs. 2198 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2199 test_varargs_macros (); 2200 2201 // Check flexible array members. 2202 struct incomplete_array *ia = 2203 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2204 ia->datasize = 10; 2205 for (int i = 0; i < ia->datasize; ++i) 2206 ia->data[i] = i * 1.234; 2207 2208 // Check named initializers. 2209 struct named_init ni = { 2210 .number = 34, 2211 .name = L"Test wide string", 2212 .average = 543.34343, 2213 }; 2214 2215 ni.number = 58; 2216 2217 int dynamic_array[ni.number]; 2218 dynamic_array[0] = argv[0][0]; 2219 dynamic_array[ni.number - 1] = 543; 2220 2221 // work around unused variable warnings 2222 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2223 || dynamic_array[ni.number - 1] != 543); 2224' 2225 2226# Test code for whether the C compiler supports C11 (global declarations) 2227ac_c_conftest_c11_globals=' 2228// Does the compiler advertise C11 conformance? 2229#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2230# error "Compiler does not advertise C11 conformance" 2231#endif 2232 2233// Check _Alignas. 2234char _Alignas (double) aligned_as_double; 2235char _Alignas (0) no_special_alignment; 2236extern char aligned_as_int; 2237char _Alignas (0) _Alignas (int) aligned_as_int; 2238 2239// Check _Alignof. 2240enum 2241{ 2242 int_alignment = _Alignof (int), 2243 int_array_alignment = _Alignof (int[100]), 2244 char_alignment = _Alignof (char) 2245}; 2246_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2247 2248// Check _Noreturn. 2249int _Noreturn does_not_return (void) { for (;;) continue; } 2250 2251// Check _Static_assert. 2252struct test_static_assert 2253{ 2254 int x; 2255 _Static_assert (sizeof (int) <= sizeof (long int), 2256 "_Static_assert does not work in struct"); 2257 long int y; 2258}; 2259 2260// Check UTF-8 literals. 2261#define u8 syntax error! 2262char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2263 2264// Check duplicate typedefs. 2265typedef long *long_ptr; 2266typedef long int *long_ptr; 2267typedef long_ptr long_ptr; 2268 2269// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2270struct anonymous 2271{ 2272 union { 2273 struct { int i; int j; }; 2274 struct { int k; long int l; } w; 2275 }; 2276 int m; 2277} v1; 2278' 2279 2280# Test code for whether the C compiler supports C11 (body of main). 2281ac_c_conftest_c11_main=' 2282 _Static_assert ((offsetof (struct anonymous, i) 2283 == offsetof (struct anonymous, w.k)), 2284 "Anonymous union alignment botch"); 2285 v1.i = 2; 2286 v1.w.k = 5; 2287 ok |= v1.i != 5; 2288' 2289 2290# Test code for whether the C compiler supports C11 (complete). 2291ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2292${ac_c_conftest_c99_globals} 2293${ac_c_conftest_c11_globals} 2294 2295int 2296main (int argc, char **argv) 2297{ 2298 int ok = 0; 2299 ${ac_c_conftest_c89_main} 2300 ${ac_c_conftest_c99_main} 2301 ${ac_c_conftest_c11_main} 2302 return ok; 2303} 2304" 2305 2306# Test code for whether the C compiler supports C99 (complete). 2307ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2308${ac_c_conftest_c99_globals} 2309 2310int 2311main (int argc, char **argv) 2312{ 2313 int ok = 0; 2314 ${ac_c_conftest_c89_main} 2315 ${ac_c_conftest_c99_main} 2316 return ok; 2317} 2318" 2319 2320# Test code for whether the C compiler supports C89 (complete). 2321ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2322 2323int 2324main (int argc, char **argv) 2325{ 2326 int ok = 0; 2327 ${ac_c_conftest_c89_main} 2328 return ok; 2329} 2330" 2331 2332as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2333as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2334as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2335as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2336as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2337as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2338as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2339as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2340as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2341 2342# Auxiliary files required by this configure script. 2343ac_aux_files="config.guess config.sub compile missing install-sh" 2344 2345# Locations in which to look for auxiliary files. 2346ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2347 2348# Search for a directory containing all of the required auxiliary files, 2349# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2350# If we don't find one directory that contains all the files we need, 2351# we report the set of missing files from the *first* directory in 2352# $ac_aux_dir_candidates and give up. 2353ac_missing_aux_files="" 2354ac_first_candidate=: 2355printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2357as_found=false 2358for as_dir in $ac_aux_dir_candidates 2359do 2360 IFS=$as_save_IFS 2361 case $as_dir in #((( 2362 '') as_dir=./ ;; 2363 */) ;; 2364 *) as_dir=$as_dir/ ;; 2365 esac 2366 as_found=: 2367 2368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2369 ac_aux_dir_found=yes 2370 ac_install_sh= 2371 for ac_aux in $ac_aux_files 2372 do 2373 # As a special case, if "install-sh" is required, that requirement 2374 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2375 # and $ac_install_sh is set appropriately for whichever one is found. 2376 if test x"$ac_aux" = x"install-sh" 2377 then 2378 if test -f "${as_dir}install-sh"; then 2379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2380 ac_install_sh="${as_dir}install-sh -c" 2381 elif test -f "${as_dir}install.sh"; then 2382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2383 ac_install_sh="${as_dir}install.sh -c" 2384 elif test -f "${as_dir}shtool"; then 2385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2386 ac_install_sh="${as_dir}shtool install -c" 2387 else 2388 ac_aux_dir_found=no 2389 if $ac_first_candidate; then 2390 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2391 else 2392 break 2393 fi 2394 fi 2395 else 2396 if test -f "${as_dir}${ac_aux}"; then 2397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2398 else 2399 ac_aux_dir_found=no 2400 if $ac_first_candidate; then 2401 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2402 else 2403 break 2404 fi 2405 fi 2406 fi 2407 done 2408 if test "$ac_aux_dir_found" = yes; then 2409 ac_aux_dir="$as_dir" 2410 break 2411 fi 2412 ac_first_candidate=false 2413 2414 as_found=false 2415done 2416IFS=$as_save_IFS 2417if $as_found 2418then : 2419 2420else $as_nop 2421 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2422fi 2423 2424 2425# These three variables are undocumented and unsupported, 2426# and are intended to be withdrawn in a future Autoconf release. 2427# They can cause serious problems if a builder's source tree is in a directory 2428# whose full name contains unusual characters. 2429if test -f "${ac_aux_dir}config.guess"; then 2430 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2431fi 2432if test -f "${ac_aux_dir}config.sub"; then 2433 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2434fi 2435if test -f "$ac_aux_dir/configure"; then 2436 ac_configure="$SHELL ${ac_aux_dir}configure" 2437fi 2438 2439# Check that the precious variables saved in the cache have kept the same 2440# value. 2441ac_cache_corrupted=false 2442for ac_var in $ac_precious_vars; do 2443 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2444 eval ac_new_set=\$ac_env_${ac_var}_set 2445 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2446 eval ac_new_val=\$ac_env_${ac_var}_value 2447 case $ac_old_set,$ac_new_set in 2448 set,) 2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2450printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2451 ac_cache_corrupted=: ;; 2452 ,set) 2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2454printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2455 ac_cache_corrupted=: ;; 2456 ,);; 2457 *) 2458 if test "x$ac_old_val" != "x$ac_new_val"; then 2459 # differences in whitespace do not lead to failure. 2460 ac_old_val_w=`echo x $ac_old_val` 2461 ac_new_val_w=`echo x $ac_new_val` 2462 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2464printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2465 ac_cache_corrupted=: 2466 else 2467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2468printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2469 eval $ac_var=\$ac_old_val 2470 fi 2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2472printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2474printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2475 fi;; 2476 esac 2477 # Pass precious variables to config.status. 2478 if test "$ac_new_set" = set; then 2479 case $ac_new_val in 2480 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2481 *) ac_arg=$ac_var=$ac_new_val ;; 2482 esac 2483 case " $ac_configure_args " in 2484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2485 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2486 esac 2487 fi 2488done 2489if $ac_cache_corrupted; then 2490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2491printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2493printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2494 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2495 and start over" "$LINENO" 5 2496fi 2497## -------------------- ## 2498## Main body of script. ## 2499## -------------------- ## 2500 2501ac_ext=c 2502ac_cpp='$CPP $CPPFLAGS' 2503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2505ac_compiler_gnu=$ac_cv_c_compiler_gnu 2506 2507 2508 2509ac_config_headers="$ac_config_headers config.h" 2510 2511 2512# Initialize Automake 2513am__api_version='1.16' 2514 2515 2516 2517 # Find a good install program. We prefer a C program (faster), 2518# so one script is as good as another. But avoid the broken or 2519# incompatible versions: 2520# SysV /etc/install, /usr/sbin/install 2521# SunOS /usr/etc/install 2522# IRIX /sbin/install 2523# AIX /bin/install 2524# AmigaOS /C/install, which installs bootblocks on floppy discs 2525# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2526# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2527# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2528# OS/2's system install, which has a completely different semantic 2529# ./install, which can be erroneously created by make from ./install.sh. 2530# Reject install programs that cannot install multiple files. 2531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2532printf %s "checking for a BSD-compatible install... " >&6; } 2533if test -z "$INSTALL"; then 2534if test ${ac_cv_path_install+y} 2535then : 2536 printf %s "(cached) " >&6 2537else $as_nop 2538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2539for as_dir in $PATH 2540do 2541 IFS=$as_save_IFS 2542 case $as_dir in #((( 2543 '') as_dir=./ ;; 2544 */) ;; 2545 *) as_dir=$as_dir/ ;; 2546 esac 2547 # Account for fact that we put trailing slashes in our PATH walk. 2548case $as_dir in #(( 2549 ./ | /[cC]/* | \ 2550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2551 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2552 /usr/ucb/* ) ;; 2553 *) 2554 # OSF1 and SCO ODT 3.0 have their own names for install. 2555 # Don't use installbsd from OSF since it installs stuff as root 2556 # by default. 2557 for ac_prog in ginstall scoinst install; do 2558 for ac_exec_ext in '' $ac_executable_extensions; do 2559 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2560 if test $ac_prog = install && 2561 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2562 # AIX install. It has an incompatible calling convention. 2563 : 2564 elif test $ac_prog = install && 2565 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2566 # program-specific install script used by HP pwplus--don't use. 2567 : 2568 else 2569 rm -rf conftest.one conftest.two conftest.dir 2570 echo one > conftest.one 2571 echo two > conftest.two 2572 mkdir conftest.dir 2573 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2574 test -s conftest.one && test -s conftest.two && 2575 test -s conftest.dir/conftest.one && 2576 test -s conftest.dir/conftest.two 2577 then 2578 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2579 break 3 2580 fi 2581 fi 2582 fi 2583 done 2584 done 2585 ;; 2586esac 2587 2588 done 2589IFS=$as_save_IFS 2590 2591rm -rf conftest.one conftest.two conftest.dir 2592 2593fi 2594 if test ${ac_cv_path_install+y}; then 2595 INSTALL=$ac_cv_path_install 2596 else 2597 # As a last resort, use the slow shell script. Don't cache a 2598 # value for INSTALL within a source directory, because that will 2599 # break other packages using the cache if that directory is 2600 # removed, or if the value is a relative name. 2601 INSTALL=$ac_install_sh 2602 fi 2603fi 2604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2605printf "%s\n" "$INSTALL" >&6; } 2606 2607# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2608# It thinks the first close brace ends the variable substitution. 2609test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2610 2611test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2612 2613test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2614 2615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2616printf %s "checking whether build environment is sane... " >&6; } 2617# Reject unsafe characters in $srcdir or the absolute working directory 2618# name. Accept space and tab only in the latter. 2619am_lf=' 2620' 2621case `pwd` in 2622 *[\\\"\#\$\&\'\`$am_lf]*) 2623 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2624esac 2625case $srcdir in 2626 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2627 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2628esac 2629 2630# Do 'set' in a subshell so we don't clobber the current shell's 2631# arguments. Must try -L first in case configure is actually a 2632# symlink; some systems play weird games with the mod time of symlinks 2633# (eg FreeBSD returns the mod time of the symlink's containing 2634# directory). 2635if ( 2636 am_has_slept=no 2637 for am_try in 1 2; do 2638 echo "timestamp, slept: $am_has_slept" > conftest.file 2639 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2640 if test "$*" = "X"; then 2641 # -L didn't work. 2642 set X `ls -t "$srcdir/configure" conftest.file` 2643 fi 2644 if test "$*" != "X $srcdir/configure conftest.file" \ 2645 && test "$*" != "X conftest.file $srcdir/configure"; then 2646 2647 # If neither matched, then we have a broken ls. This can happen 2648 # if, for instance, CONFIG_SHELL is bash and it inherits a 2649 # broken ls alias from the environment. This has actually 2650 # happened. Such a system could not be considered "sane". 2651 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2652 alias in your environment" "$LINENO" 5 2653 fi 2654 if test "$2" = conftest.file || test $am_try -eq 2; then 2655 break 2656 fi 2657 # Just in case. 2658 sleep 1 2659 am_has_slept=yes 2660 done 2661 test "$2" = conftest.file 2662 ) 2663then 2664 # Ok. 2665 : 2666else 2667 as_fn_error $? "newly created file is older than distributed files! 2668Check your system clock" "$LINENO" 5 2669fi 2670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2671printf "%s\n" "yes" >&6; } 2672# If we didn't sleep, we still need to ensure time stamps of config.status and 2673# generated files are strictly newer. 2674am_sleep_pid= 2675if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2676 ( sleep 1 ) & 2677 am_sleep_pid=$! 2678fi 2679 2680rm -f conftest.file 2681 2682test "$program_prefix" != NONE && 2683 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2684# Use a double $ so make ignores it. 2685test "$program_suffix" != NONE && 2686 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2687# Double any \ or $. 2688# By default was `s,x,x', remove it if useless. 2689ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2690program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2691 2692 2693# Expand $ac_aux_dir to an absolute path. 2694am_aux_dir=`cd "$ac_aux_dir" && pwd` 2695 2696 2697 if test x"${MISSING+set}" != xset; then 2698 MISSING="\${SHELL} '$am_aux_dir/missing'" 2699fi 2700# Use eval to expand $SHELL 2701if eval "$MISSING --is-lightweight"; then 2702 am_missing_run="$MISSING " 2703else 2704 am_missing_run= 2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2706printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2707fi 2708 2709if test x"${install_sh+set}" != xset; then 2710 case $am_aux_dir in 2711 *\ * | *\ *) 2712 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2713 *) 2714 install_sh="\${SHELL} $am_aux_dir/install-sh" 2715 esac 2716fi 2717 2718# Installed binaries are usually stripped using 'strip' when the user 2719# run "make install-strip". However 'strip' might not be the right 2720# tool to use in cross-compilation environments, therefore Automake 2721# will honor the 'STRIP' environment variable to overrule this program. 2722if test "$cross_compiling" != no; then 2723 if test -n "$ac_tool_prefix"; then 2724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2725set dummy ${ac_tool_prefix}strip; ac_word=$2 2726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2727printf %s "checking for $ac_word... " >&6; } 2728if test ${ac_cv_prog_STRIP+y} 2729then : 2730 printf %s "(cached) " >&6 2731else $as_nop 2732 if test -n "$STRIP"; then 2733 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2734else 2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2736for as_dir in $PATH 2737do 2738 IFS=$as_save_IFS 2739 case $as_dir in #((( 2740 '') as_dir=./ ;; 2741 */) ;; 2742 *) as_dir=$as_dir/ ;; 2743 esac 2744 for ac_exec_ext in '' $ac_executable_extensions; do 2745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2746 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2748 break 2 2749 fi 2750done 2751 done 2752IFS=$as_save_IFS 2753 2754fi 2755fi 2756STRIP=$ac_cv_prog_STRIP 2757if test -n "$STRIP"; then 2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2759printf "%s\n" "$STRIP" >&6; } 2760else 2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2762printf "%s\n" "no" >&6; } 2763fi 2764 2765 2766fi 2767if test -z "$ac_cv_prog_STRIP"; then 2768 ac_ct_STRIP=$STRIP 2769 # Extract the first word of "strip", so it can be a program name with args. 2770set dummy strip; ac_word=$2 2771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2772printf %s "checking for $ac_word... " >&6; } 2773if test ${ac_cv_prog_ac_ct_STRIP+y} 2774then : 2775 printf %s "(cached) " >&6 2776else $as_nop 2777 if test -n "$ac_ct_STRIP"; then 2778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2779else 2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2781for as_dir in $PATH 2782do 2783 IFS=$as_save_IFS 2784 case $as_dir in #((( 2785 '') as_dir=./ ;; 2786 */) ;; 2787 *) as_dir=$as_dir/ ;; 2788 esac 2789 for ac_exec_ext in '' $ac_executable_extensions; do 2790 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2791 ac_cv_prog_ac_ct_STRIP="strip" 2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2793 break 2 2794 fi 2795done 2796 done 2797IFS=$as_save_IFS 2798 2799fi 2800fi 2801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2802if test -n "$ac_ct_STRIP"; then 2803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2804printf "%s\n" "$ac_ct_STRIP" >&6; } 2805else 2806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2807printf "%s\n" "no" >&6; } 2808fi 2809 2810 if test "x$ac_ct_STRIP" = x; then 2811 STRIP=":" 2812 else 2813 case $cross_compiling:$ac_tool_warned in 2814yes:) 2815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2816printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2817ac_tool_warned=yes ;; 2818esac 2819 STRIP=$ac_ct_STRIP 2820 fi 2821else 2822 STRIP="$ac_cv_prog_STRIP" 2823fi 2824 2825fi 2826INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2827 2828 2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2830printf %s "checking for a race-free mkdir -p... " >&6; } 2831if test -z "$MKDIR_P"; then 2832 if test ${ac_cv_path_mkdir+y} 2833then : 2834 printf %s "(cached) " >&6 2835else $as_nop 2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2837for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2838do 2839 IFS=$as_save_IFS 2840 case $as_dir in #((( 2841 '') as_dir=./ ;; 2842 */) ;; 2843 *) as_dir=$as_dir/ ;; 2844 esac 2845 for ac_prog in mkdir gmkdir; do 2846 for ac_exec_ext in '' $ac_executable_extensions; do 2847 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2848 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2849 'mkdir ('*'coreutils) '* | \ 2850 'BusyBox '* | \ 2851 'mkdir (fileutils) '4.1*) 2852 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2853 break 3;; 2854 esac 2855 done 2856 done 2857 done 2858IFS=$as_save_IFS 2859 2860fi 2861 2862 test -d ./--version && rmdir ./--version 2863 if test ${ac_cv_path_mkdir+y}; then 2864 MKDIR_P="$ac_cv_path_mkdir -p" 2865 else 2866 # As a last resort, use the slow shell script. Don't cache a 2867 # value for MKDIR_P within a source directory, because that will 2868 # break other packages using the cache if that directory is 2869 # removed, or if the value is a relative name. 2870 MKDIR_P="$ac_install_sh -d" 2871 fi 2872fi 2873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2874printf "%s\n" "$MKDIR_P" >&6; } 2875 2876for ac_prog in gawk mawk nawk awk 2877do 2878 # Extract the first word of "$ac_prog", so it can be a program name with args. 2879set dummy $ac_prog; ac_word=$2 2880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2881printf %s "checking for $ac_word... " >&6; } 2882if test ${ac_cv_prog_AWK+y} 2883then : 2884 printf %s "(cached) " >&6 2885else $as_nop 2886 if test -n "$AWK"; then 2887 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2888else 2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 case $as_dir in #((( 2894 '') as_dir=./ ;; 2895 */) ;; 2896 *) as_dir=$as_dir/ ;; 2897 esac 2898 for ac_exec_ext in '' $ac_executable_extensions; do 2899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2900 ac_cv_prog_AWK="$ac_prog" 2901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2902 break 2 2903 fi 2904done 2905 done 2906IFS=$as_save_IFS 2907 2908fi 2909fi 2910AWK=$ac_cv_prog_AWK 2911if test -n "$AWK"; then 2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2913printf "%s\n" "$AWK" >&6; } 2914else 2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2916printf "%s\n" "no" >&6; } 2917fi 2918 2919 2920 test -n "$AWK" && break 2921done 2922 2923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2924printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2925set x ${MAKE-make} 2926ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2927if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2928then : 2929 printf %s "(cached) " >&6 2930else $as_nop 2931 cat >conftest.make <<\_ACEOF 2932SHELL = /bin/sh 2933all: 2934 @echo '@@@%%%=$(MAKE)=@@@%%%' 2935_ACEOF 2936# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2937case `${MAKE-make} -f conftest.make 2>/dev/null` in 2938 *@@@%%%=?*=@@@%%%*) 2939 eval ac_cv_prog_make_${ac_make}_set=yes;; 2940 *) 2941 eval ac_cv_prog_make_${ac_make}_set=no;; 2942esac 2943rm -f conftest.make 2944fi 2945if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2947printf "%s\n" "yes" >&6; } 2948 SET_MAKE= 2949else 2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2951printf "%s\n" "no" >&6; } 2952 SET_MAKE="MAKE=${MAKE-make}" 2953fi 2954 2955rm -rf .tst 2>/dev/null 2956mkdir .tst 2>/dev/null 2957if test -d .tst; then 2958 am__leading_dot=. 2959else 2960 am__leading_dot=_ 2961fi 2962rmdir .tst 2>/dev/null 2963 2964# Check whether --enable-silent-rules was given. 2965if test ${enable_silent_rules+y} 2966then : 2967 enableval=$enable_silent_rules; 2968fi 2969 2970case $enable_silent_rules in # ((( 2971 yes) AM_DEFAULT_VERBOSITY=0;; 2972 no) AM_DEFAULT_VERBOSITY=1;; 2973 *) AM_DEFAULT_VERBOSITY=1;; 2974esac 2975am_make=${MAKE-make} 2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2977printf %s "checking whether $am_make supports nested variables... " >&6; } 2978if test ${am_cv_make_support_nested_variables+y} 2979then : 2980 printf %s "(cached) " >&6 2981else $as_nop 2982 if printf "%s\n" 'TRUE=$(BAR$(V)) 2983BAR0=false 2984BAR1=true 2985V=1 2986am__doit: 2987 @$(TRUE) 2988.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2989 am_cv_make_support_nested_variables=yes 2990else 2991 am_cv_make_support_nested_variables=no 2992fi 2993fi 2994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2995printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2996if test $am_cv_make_support_nested_variables = yes; then 2997 AM_V='$(V)' 2998 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2999else 3000 AM_V=$AM_DEFAULT_VERBOSITY 3001 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3002fi 3003AM_BACKSLASH='\' 3004 3005if test "`cd $srcdir && pwd`" != "`pwd`"; then 3006 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3007 # is not polluted with repeated "-I." 3008 am__isrc=' -I$(srcdir)' 3009 # test to see if srcdir already configured 3010 if test -f $srcdir/config.status; then 3011 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3012 fi 3013fi 3014 3015# test whether we have cygpath 3016if test -z "$CYGPATH_W"; then 3017 if (cygpath --version) >/dev/null 2>/dev/null; then 3018 CYGPATH_W='cygpath -w' 3019 else 3020 CYGPATH_W=echo 3021 fi 3022fi 3023 3024 3025# Define the identity of the package. 3026 PACKAGE='xeyes' 3027 VERSION='1.2.0' 3028 3029 3030printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3031 3032 3033printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3034 3035# Some tools Automake needs. 3036 3037ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3038 3039 3040AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3041 3042 3043AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3044 3045 3046AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3047 3048 3049MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3050 3051# For better backward compatibility. To be removed once Automake 1.9.x 3052# dies out for good. For more background, see: 3053# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3054# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3055mkdir_p='$(MKDIR_P)' 3056 3057# We need awk for the "check" target (and possibly the TAP driver). The 3058# system "awk" is bad on some platforms. 3059# Always define AMTAR for backward compatibility. Yes, it's still used 3060# in the wild :-( We should find a proper way to deprecate it ... 3061AMTAR='$${TAR-tar}' 3062 3063 3064# We'll loop over all known methods to create a tar archive until one works. 3065_am_tools='gnutar pax cpio none' 3066 3067am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3068 3069 3070 3071 3072 3073# Variables for tags utilities; see am/tags.am 3074if test -z "$CTAGS"; then 3075 CTAGS=ctags 3076fi 3077 3078if test -z "$ETAGS"; then 3079 ETAGS=etags 3080fi 3081 3082if test -z "$CSCOPE"; then 3083 CSCOPE=cscope 3084fi 3085 3086 3087 3088# POSIX will say in a future version that running "rm -f" with no argument 3089# is OK; and we want to be able to make that assumption in our Makefile 3090# recipes. So use an aggressive probe to check that the usage we want is 3091# actually supported "in the wild" to an acceptable degree. 3092# See automake bug#10828. 3093# To make any issue more visible, cause the running configure to be aborted 3094# by default if the 'rm' program in use doesn't match our expectations; the 3095# user can still override this though. 3096if rm -f && rm -fr && rm -rf; then : OK; else 3097 cat >&2 <<'END' 3098Oops! 3099 3100Your 'rm' program seems unable to run without file operands specified 3101on the command line, even when the '-f' option is present. This is contrary 3102to the behaviour of most rm programs out there, and not conforming with 3103the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3104 3105Please tell bug-automake@gnu.org about your system, including the value 3106of your $PATH and any error possibly output before this message. This 3107can help us improve future automake versions. 3108 3109END 3110 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3111 echo 'Configuration will proceed anyway, since you have set the' >&2 3112 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3113 echo >&2 3114 else 3115 cat >&2 <<'END' 3116Aborting the configuration process, to ensure you take notice of the issue. 3117 3118You can download and install GNU coreutils to get an 'rm' implementation 3119that behaves properly: <https://www.gnu.org/software/coreutils/>. 3120 3121If you want to complete the configuration process using your problematic 3122'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3123to "yes", and re-run configure. 3124 3125END 3126 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3127 fi 3128fi 3129 3130 3131# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152DEPDIR="${am__leading_dot}deps" 3153 3154ac_config_commands="$ac_config_commands depfiles" 3155 3156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3157printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3158cat > confinc.mk << 'END' 3159am__doit: 3160 @echo this is the am__doit target >confinc.out 3161.PHONY: am__doit 3162END 3163am__include="#" 3164am__quote= 3165# BSD make does it like this. 3166echo '.include "confinc.mk" # ignored' > confmf.BSD 3167# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3168echo 'include confinc.mk # ignored' > confmf.GNU 3169_am_result=no 3170for s in GNU BSD; do 3171 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3172 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3173 ac_status=$? 3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3175 (exit $ac_status); } 3176 case $?:`cat confinc.out 2>/dev/null` in #( 3177 '0:this is the am__doit target') : 3178 case $s in #( 3179 BSD) : 3180 am__include='.include' am__quote='"' ;; #( 3181 *) : 3182 am__include='include' am__quote='' ;; 3183esac ;; #( 3184 *) : 3185 ;; 3186esac 3187 if test "$am__include" != "#"; then 3188 _am_result="yes ($s style)" 3189 break 3190 fi 3191done 3192rm -f confinc.* confmf.* 3193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3194printf "%s\n" "${_am_result}" >&6; } 3195 3196# Check whether --enable-dependency-tracking was given. 3197if test ${enable_dependency_tracking+y} 3198then : 3199 enableval=$enable_dependency_tracking; 3200fi 3201 3202if test "x$enable_dependency_tracking" != xno; then 3203 am_depcomp="$ac_aux_dir/depcomp" 3204 AMDEPBACKSLASH='\' 3205 am__nodep='_no' 3206fi 3207 if test "x$enable_dependency_tracking" != xno; then 3208 AMDEP_TRUE= 3209 AMDEP_FALSE='#' 3210else 3211 AMDEP_TRUE='#' 3212 AMDEP_FALSE= 3213fi 3214 3215 3216ac_ext=c 3217ac_cpp='$CPP $CPPFLAGS' 3218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3220ac_compiler_gnu=$ac_cv_c_compiler_gnu 3221if test -n "$ac_tool_prefix"; then 3222 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3223set dummy ${ac_tool_prefix}gcc; ac_word=$2 3224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3225printf %s "checking for $ac_word... " >&6; } 3226if test ${ac_cv_prog_CC+y} 3227then : 3228 printf %s "(cached) " >&6 3229else $as_nop 3230 if test -n "$CC"; then 3231 ac_cv_prog_CC="$CC" # Let the user override the test. 3232else 3233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3234for as_dir in $PATH 3235do 3236 IFS=$as_save_IFS 3237 case $as_dir in #((( 3238 '') as_dir=./ ;; 3239 */) ;; 3240 *) as_dir=$as_dir/ ;; 3241 esac 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3244 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3246 break 2 3247 fi 3248done 3249 done 3250IFS=$as_save_IFS 3251 3252fi 3253fi 3254CC=$ac_cv_prog_CC 3255if test -n "$CC"; then 3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3257printf "%s\n" "$CC" >&6; } 3258else 3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3260printf "%s\n" "no" >&6; } 3261fi 3262 3263 3264fi 3265if test -z "$ac_cv_prog_CC"; then 3266 ac_ct_CC=$CC 3267 # Extract the first word of "gcc", so it can be a program name with args. 3268set dummy gcc; ac_word=$2 3269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3270printf %s "checking for $ac_word... " >&6; } 3271if test ${ac_cv_prog_ac_ct_CC+y} 3272then : 3273 printf %s "(cached) " >&6 3274else $as_nop 3275 if test -n "$ac_ct_CC"; then 3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3277else 3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3279for as_dir in $PATH 3280do 3281 IFS=$as_save_IFS 3282 case $as_dir in #((( 3283 '') as_dir=./ ;; 3284 */) ;; 3285 *) as_dir=$as_dir/ ;; 3286 esac 3287 for ac_exec_ext in '' $ac_executable_extensions; do 3288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3289 ac_cv_prog_ac_ct_CC="gcc" 3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3291 break 2 3292 fi 3293done 3294 done 3295IFS=$as_save_IFS 3296 3297fi 3298fi 3299ac_ct_CC=$ac_cv_prog_ac_ct_CC 3300if test -n "$ac_ct_CC"; then 3301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3302printf "%s\n" "$ac_ct_CC" >&6; } 3303else 3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305printf "%s\n" "no" >&6; } 3306fi 3307 3308 if test "x$ac_ct_CC" = x; then 3309 CC="" 3310 else 3311 case $cross_compiling:$ac_tool_warned in 3312yes:) 3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3314printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3315ac_tool_warned=yes ;; 3316esac 3317 CC=$ac_ct_CC 3318 fi 3319else 3320 CC="$ac_cv_prog_CC" 3321fi 3322 3323if test -z "$CC"; then 3324 if test -n "$ac_tool_prefix"; then 3325 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3326set dummy ${ac_tool_prefix}cc; ac_word=$2 3327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3328printf %s "checking for $ac_word... " >&6; } 3329if test ${ac_cv_prog_CC+y} 3330then : 3331 printf %s "(cached) " >&6 3332else $as_nop 3333 if test -n "$CC"; then 3334 ac_cv_prog_CC="$CC" # Let the user override the test. 3335else 3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3337for as_dir in $PATH 3338do 3339 IFS=$as_save_IFS 3340 case $as_dir in #((( 3341 '') as_dir=./ ;; 3342 */) ;; 3343 *) as_dir=$as_dir/ ;; 3344 esac 3345 for ac_exec_ext in '' $ac_executable_extensions; do 3346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3347 ac_cv_prog_CC="${ac_tool_prefix}cc" 3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3349 break 2 3350 fi 3351done 3352 done 3353IFS=$as_save_IFS 3354 3355fi 3356fi 3357CC=$ac_cv_prog_CC 3358if test -n "$CC"; then 3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3360printf "%s\n" "$CC" >&6; } 3361else 3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3363printf "%s\n" "no" >&6; } 3364fi 3365 3366 3367 fi 3368fi 3369if test -z "$CC"; then 3370 # Extract the first word of "cc", so it can be a program name with args. 3371set dummy cc; ac_word=$2 3372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3373printf %s "checking for $ac_word... " >&6; } 3374if test ${ac_cv_prog_CC+y} 3375then : 3376 printf %s "(cached) " >&6 3377else $as_nop 3378 if test -n "$CC"; then 3379 ac_cv_prog_CC="$CC" # Let the user override the test. 3380else 3381 ac_prog_rejected=no 3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3383for as_dir in $PATH 3384do 3385 IFS=$as_save_IFS 3386 case $as_dir in #((( 3387 '') as_dir=./ ;; 3388 */) ;; 3389 *) as_dir=$as_dir/ ;; 3390 esac 3391 for ac_exec_ext in '' $ac_executable_extensions; do 3392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3393 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3394 ac_prog_rejected=yes 3395 continue 3396 fi 3397 ac_cv_prog_CC="cc" 3398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3399 break 2 3400 fi 3401done 3402 done 3403IFS=$as_save_IFS 3404 3405if test $ac_prog_rejected = yes; then 3406 # We found a bogon in the path, so make sure we never use it. 3407 set dummy $ac_cv_prog_CC 3408 shift 3409 if test $# != 0; then 3410 # We chose a different compiler from the bogus one. 3411 # However, it has the same basename, so the bogon will be chosen 3412 # first if we set CC to just the basename; use the full file name. 3413 shift 3414 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3415 fi 3416fi 3417fi 3418fi 3419CC=$ac_cv_prog_CC 3420if test -n "$CC"; then 3421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3422printf "%s\n" "$CC" >&6; } 3423else 3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3425printf "%s\n" "no" >&6; } 3426fi 3427 3428 3429fi 3430if test -z "$CC"; then 3431 if test -n "$ac_tool_prefix"; then 3432 for ac_prog in cl.exe 3433 do 3434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3435set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3437printf %s "checking for $ac_word... " >&6; } 3438if test ${ac_cv_prog_CC+y} 3439then : 3440 printf %s "(cached) " >&6 3441else $as_nop 3442 if test -n "$CC"; then 3443 ac_cv_prog_CC="$CC" # Let the user override the test. 3444else 3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446for as_dir in $PATH 3447do 3448 IFS=$as_save_IFS 3449 case $as_dir in #((( 3450 '') as_dir=./ ;; 3451 */) ;; 3452 *) as_dir=$as_dir/ ;; 3453 esac 3454 for ac_exec_ext in '' $ac_executable_extensions; do 3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3458 break 2 3459 fi 3460done 3461 done 3462IFS=$as_save_IFS 3463 3464fi 3465fi 3466CC=$ac_cv_prog_CC 3467if test -n "$CC"; then 3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3469printf "%s\n" "$CC" >&6; } 3470else 3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3472printf "%s\n" "no" >&6; } 3473fi 3474 3475 3476 test -n "$CC" && break 3477 done 3478fi 3479if test -z "$CC"; then 3480 ac_ct_CC=$CC 3481 for ac_prog in cl.exe 3482do 3483 # Extract the first word of "$ac_prog", so it can be a program name with args. 3484set dummy $ac_prog; ac_word=$2 3485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486printf %s "checking for $ac_word... " >&6; } 3487if test ${ac_cv_prog_ac_ct_CC+y} 3488then : 3489 printf %s "(cached) " >&6 3490else $as_nop 3491 if test -n "$ac_ct_CC"; then 3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3493else 3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3495for as_dir in $PATH 3496do 3497 IFS=$as_save_IFS 3498 case $as_dir in #((( 3499 '') as_dir=./ ;; 3500 */) ;; 3501 *) as_dir=$as_dir/ ;; 3502 esac 3503 for ac_exec_ext in '' $ac_executable_extensions; do 3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3505 ac_cv_prog_ac_ct_CC="$ac_prog" 3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3507 break 2 3508 fi 3509done 3510 done 3511IFS=$as_save_IFS 3512 3513fi 3514fi 3515ac_ct_CC=$ac_cv_prog_ac_ct_CC 3516if test -n "$ac_ct_CC"; then 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3518printf "%s\n" "$ac_ct_CC" >&6; } 3519else 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3521printf "%s\n" "no" >&6; } 3522fi 3523 3524 3525 test -n "$ac_ct_CC" && break 3526done 3527 3528 if test "x$ac_ct_CC" = x; then 3529 CC="" 3530 else 3531 case $cross_compiling:$ac_tool_warned in 3532yes:) 3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3534printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3535ac_tool_warned=yes ;; 3536esac 3537 CC=$ac_ct_CC 3538 fi 3539fi 3540 3541fi 3542if test -z "$CC"; then 3543 if test -n "$ac_tool_prefix"; then 3544 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3545set dummy ${ac_tool_prefix}clang; ac_word=$2 3546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3547printf %s "checking for $ac_word... " >&6; } 3548if test ${ac_cv_prog_CC+y} 3549then : 3550 printf %s "(cached) " >&6 3551else $as_nop 3552 if test -n "$CC"; then 3553 ac_cv_prog_CC="$CC" # Let the user override the test. 3554else 3555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3556for as_dir in $PATH 3557do 3558 IFS=$as_save_IFS 3559 case $as_dir in #((( 3560 '') as_dir=./ ;; 3561 */) ;; 3562 *) as_dir=$as_dir/ ;; 3563 esac 3564 for ac_exec_ext in '' $ac_executable_extensions; do 3565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3566 ac_cv_prog_CC="${ac_tool_prefix}clang" 3567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3568 break 2 3569 fi 3570done 3571 done 3572IFS=$as_save_IFS 3573 3574fi 3575fi 3576CC=$ac_cv_prog_CC 3577if test -n "$CC"; then 3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3579printf "%s\n" "$CC" >&6; } 3580else 3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3582printf "%s\n" "no" >&6; } 3583fi 3584 3585 3586fi 3587if test -z "$ac_cv_prog_CC"; then 3588 ac_ct_CC=$CC 3589 # Extract the first word of "clang", so it can be a program name with args. 3590set dummy clang; ac_word=$2 3591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3592printf %s "checking for $ac_word... " >&6; } 3593if test ${ac_cv_prog_ac_ct_CC+y} 3594then : 3595 printf %s "(cached) " >&6 3596else $as_nop 3597 if test -n "$ac_ct_CC"; then 3598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3599else 3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3601for as_dir in $PATH 3602do 3603 IFS=$as_save_IFS 3604 case $as_dir in #((( 3605 '') as_dir=./ ;; 3606 */) ;; 3607 *) as_dir=$as_dir/ ;; 3608 esac 3609 for ac_exec_ext in '' $ac_executable_extensions; do 3610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3611 ac_cv_prog_ac_ct_CC="clang" 3612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3613 break 2 3614 fi 3615done 3616 done 3617IFS=$as_save_IFS 3618 3619fi 3620fi 3621ac_ct_CC=$ac_cv_prog_ac_ct_CC 3622if test -n "$ac_ct_CC"; then 3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3624printf "%s\n" "$ac_ct_CC" >&6; } 3625else 3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3627printf "%s\n" "no" >&6; } 3628fi 3629 3630 if test "x$ac_ct_CC" = x; then 3631 CC="" 3632 else 3633 case $cross_compiling:$ac_tool_warned in 3634yes:) 3635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3636printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3637ac_tool_warned=yes ;; 3638esac 3639 CC=$ac_ct_CC 3640 fi 3641else 3642 CC="$ac_cv_prog_CC" 3643fi 3644 3645fi 3646 3647 3648test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3649printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3650as_fn_error $? "no acceptable C compiler found in \$PATH 3651See \`config.log' for more details" "$LINENO" 5; } 3652 3653# Provide some information about the compiler. 3654printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3655set X $ac_compile 3656ac_compiler=$2 3657for ac_option in --version -v -V -qversion -version; do 3658 { { ac_try="$ac_compiler $ac_option >&5" 3659case "(($ac_try" in 3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3661 *) ac_try_echo=$ac_try;; 3662esac 3663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3664printf "%s\n" "$ac_try_echo"; } >&5 3665 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3666 ac_status=$? 3667 if test -s conftest.err; then 3668 sed '10a\ 3669... rest of stderr output deleted ... 3670 10q' conftest.err >conftest.er1 3671 cat conftest.er1 >&5 3672 fi 3673 rm -f conftest.er1 conftest.err 3674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3675 test $ac_status = 0; } 3676done 3677 3678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3679/* end confdefs.h. */ 3680 3681int 3682main (void) 3683{ 3684 3685 ; 3686 return 0; 3687} 3688_ACEOF 3689ac_clean_files_save=$ac_clean_files 3690ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3691# Try to create an executable without -o first, disregard a.out. 3692# It will help us diagnose broken compilers, and finding out an intuition 3693# of exeext. 3694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3695printf %s "checking whether the C compiler works... " >&6; } 3696ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3697 3698# The possible output files: 3699ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3700 3701ac_rmfiles= 3702for ac_file in $ac_files 3703do 3704 case $ac_file in 3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3706 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3707 esac 3708done 3709rm -f $ac_rmfiles 3710 3711if { { ac_try="$ac_link_default" 3712case "(($ac_try" in 3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3714 *) ac_try_echo=$ac_try;; 3715esac 3716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3717printf "%s\n" "$ac_try_echo"; } >&5 3718 (eval "$ac_link_default") 2>&5 3719 ac_status=$? 3720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3721 test $ac_status = 0; } 3722then : 3723 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3724# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3725# in a Makefile. We should not override ac_cv_exeext if it was cached, 3726# so that the user can short-circuit this test for compilers unknown to 3727# Autoconf. 3728for ac_file in $ac_files '' 3729do 3730 test -f "$ac_file" || continue 3731 case $ac_file in 3732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3733 ;; 3734 [ab].out ) 3735 # We found the default executable, but exeext='' is most 3736 # certainly right. 3737 break;; 3738 *.* ) 3739 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3740 then :; else 3741 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3742 fi 3743 # We set ac_cv_exeext here because the later test for it is not 3744 # safe: cross compilers may not add the suffix if given an `-o' 3745 # argument, so we may need to know it at that point already. 3746 # Even if this section looks crufty: it has the advantage of 3747 # actually working. 3748 break;; 3749 * ) 3750 break;; 3751 esac 3752done 3753test "$ac_cv_exeext" = no && ac_cv_exeext= 3754 3755else $as_nop 3756 ac_file='' 3757fi 3758if test -z "$ac_file" 3759then : 3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3761printf "%s\n" "no" >&6; } 3762printf "%s\n" "$as_me: failed program was:" >&5 3763sed 's/^/| /' conftest.$ac_ext >&5 3764 3765{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3766printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3767as_fn_error 77 "C compiler cannot create executables 3768See \`config.log' for more details" "$LINENO" 5; } 3769else $as_nop 3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3771printf "%s\n" "yes" >&6; } 3772fi 3773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3774printf %s "checking for C compiler default output file name... " >&6; } 3775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3776printf "%s\n" "$ac_file" >&6; } 3777ac_exeext=$ac_cv_exeext 3778 3779rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3780ac_clean_files=$ac_clean_files_save 3781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3782printf %s "checking for suffix of executables... " >&6; } 3783if { { ac_try="$ac_link" 3784case "(($ac_try" in 3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3786 *) ac_try_echo=$ac_try;; 3787esac 3788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3789printf "%s\n" "$ac_try_echo"; } >&5 3790 (eval "$ac_link") 2>&5 3791 ac_status=$? 3792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3793 test $ac_status = 0; } 3794then : 3795 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3796# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3797# work properly (i.e., refer to `conftest.exe'), while it won't with 3798# `rm'. 3799for ac_file in conftest.exe conftest conftest.*; do 3800 test -f "$ac_file" || continue 3801 case $ac_file in 3802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3803 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3804 break;; 3805 * ) break;; 3806 esac 3807done 3808else $as_nop 3809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3810printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3811as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3812See \`config.log' for more details" "$LINENO" 5; } 3813fi 3814rm -f conftest conftest$ac_cv_exeext 3815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3816printf "%s\n" "$ac_cv_exeext" >&6; } 3817 3818rm -f conftest.$ac_ext 3819EXEEXT=$ac_cv_exeext 3820ac_exeext=$EXEEXT 3821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3822/* end confdefs.h. */ 3823#include <stdio.h> 3824int 3825main (void) 3826{ 3827FILE *f = fopen ("conftest.out", "w"); 3828 return ferror (f) || fclose (f) != 0; 3829 3830 ; 3831 return 0; 3832} 3833_ACEOF 3834ac_clean_files="$ac_clean_files conftest.out" 3835# Check that the compiler produces executables we can run. If not, either 3836# the compiler is broken, or we cross compile. 3837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3838printf %s "checking whether we are cross compiling... " >&6; } 3839if test "$cross_compiling" != yes; then 3840 { { ac_try="$ac_link" 3841case "(($ac_try" in 3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3843 *) ac_try_echo=$ac_try;; 3844esac 3845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3846printf "%s\n" "$ac_try_echo"; } >&5 3847 (eval "$ac_link") 2>&5 3848 ac_status=$? 3849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3850 test $ac_status = 0; } 3851 if { ac_try='./conftest$ac_cv_exeext' 3852 { { case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855esac 3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3857printf "%s\n" "$ac_try_echo"; } >&5 3858 (eval "$ac_try") 2>&5 3859 ac_status=$? 3860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3861 test $ac_status = 0; }; }; then 3862 cross_compiling=no 3863 else 3864 if test "$cross_compiling" = maybe; then 3865 cross_compiling=yes 3866 else 3867 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3868printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3869as_fn_error 77 "cannot run C compiled programs. 3870If you meant to cross compile, use \`--host'. 3871See \`config.log' for more details" "$LINENO" 5; } 3872 fi 3873 fi 3874fi 3875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3876printf "%s\n" "$cross_compiling" >&6; } 3877 3878rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3879ac_clean_files=$ac_clean_files_save 3880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3881printf %s "checking for suffix of object files... " >&6; } 3882if test ${ac_cv_objext+y} 3883then : 3884 printf %s "(cached) " >&6 3885else $as_nop 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887/* end confdefs.h. */ 3888 3889int 3890main (void) 3891{ 3892 3893 ; 3894 return 0; 3895} 3896_ACEOF 3897rm -f conftest.o conftest.obj 3898if { { ac_try="$ac_compile" 3899case "(($ac_try" in 3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3901 *) ac_try_echo=$ac_try;; 3902esac 3903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3904printf "%s\n" "$ac_try_echo"; } >&5 3905 (eval "$ac_compile") 2>&5 3906 ac_status=$? 3907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3908 test $ac_status = 0; } 3909then : 3910 for ac_file in conftest.o conftest.obj conftest.*; do 3911 test -f "$ac_file" || continue; 3912 case $ac_file in 3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3914 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3915 break;; 3916 esac 3917done 3918else $as_nop 3919 printf "%s\n" "$as_me: failed program was:" >&5 3920sed 's/^/| /' conftest.$ac_ext >&5 3921 3922{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3924as_fn_error $? "cannot compute suffix of object files: cannot compile 3925See \`config.log' for more details" "$LINENO" 5; } 3926fi 3927rm -f conftest.$ac_cv_objext conftest.$ac_ext 3928fi 3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3930printf "%s\n" "$ac_cv_objext" >&6; } 3931OBJEXT=$ac_cv_objext 3932ac_objext=$OBJEXT 3933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3934printf %s "checking whether the compiler supports GNU C... " >&6; } 3935if test ${ac_cv_c_compiler_gnu+y} 3936then : 3937 printf %s "(cached) " >&6 3938else $as_nop 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940/* end confdefs.h. */ 3941 3942int 3943main (void) 3944{ 3945#ifndef __GNUC__ 3946 choke me 3947#endif 3948 3949 ; 3950 return 0; 3951} 3952_ACEOF 3953if ac_fn_c_try_compile "$LINENO" 3954then : 3955 ac_compiler_gnu=yes 3956else $as_nop 3957 ac_compiler_gnu=no 3958fi 3959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3960ac_cv_c_compiler_gnu=$ac_compiler_gnu 3961 3962fi 3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3964printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3965ac_compiler_gnu=$ac_cv_c_compiler_gnu 3966 3967if test $ac_compiler_gnu = yes; then 3968 GCC=yes 3969else 3970 GCC= 3971fi 3972ac_test_CFLAGS=${CFLAGS+y} 3973ac_save_CFLAGS=$CFLAGS 3974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3975printf %s "checking whether $CC accepts -g... " >&6; } 3976if test ${ac_cv_prog_cc_g+y} 3977then : 3978 printf %s "(cached) " >&6 3979else $as_nop 3980 ac_save_c_werror_flag=$ac_c_werror_flag 3981 ac_c_werror_flag=yes 3982 ac_cv_prog_cc_g=no 3983 CFLAGS="-g" 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986 3987int 3988main (void) 3989{ 3990 3991 ; 3992 return 0; 3993} 3994_ACEOF 3995if ac_fn_c_try_compile "$LINENO" 3996then : 3997 ac_cv_prog_cc_g=yes 3998else $as_nop 3999 CFLAGS="" 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001/* end confdefs.h. */ 4002 4003int 4004main (void) 4005{ 4006 4007 ; 4008 return 0; 4009} 4010_ACEOF 4011if ac_fn_c_try_compile "$LINENO" 4012then : 4013 4014else $as_nop 4015 ac_c_werror_flag=$ac_save_c_werror_flag 4016 CFLAGS="-g" 4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4018/* end confdefs.h. */ 4019 4020int 4021main (void) 4022{ 4023 4024 ; 4025 return 0; 4026} 4027_ACEOF 4028if ac_fn_c_try_compile "$LINENO" 4029then : 4030 ac_cv_prog_cc_g=yes 4031fi 4032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4033fi 4034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4035fi 4036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4037 ac_c_werror_flag=$ac_save_c_werror_flag 4038fi 4039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4040printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4041if test $ac_test_CFLAGS; then 4042 CFLAGS=$ac_save_CFLAGS 4043elif test $ac_cv_prog_cc_g = yes; then 4044 if test "$GCC" = yes; then 4045 CFLAGS="-g -O2" 4046 else 4047 CFLAGS="-g" 4048 fi 4049else 4050 if test "$GCC" = yes; then 4051 CFLAGS="-O2" 4052 else 4053 CFLAGS= 4054 fi 4055fi 4056ac_prog_cc_stdc=no 4057if test x$ac_prog_cc_stdc = xno 4058then : 4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4060printf %s "checking for $CC option to enable C11 features... " >&6; } 4061if test ${ac_cv_prog_cc_c11+y} 4062then : 4063 printf %s "(cached) " >&6 4064else $as_nop 4065 ac_cv_prog_cc_c11=no 4066ac_save_CC=$CC 4067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4068/* end confdefs.h. */ 4069$ac_c_conftest_c11_program 4070_ACEOF 4071for ac_arg in '' -std=gnu11 4072do 4073 CC="$ac_save_CC $ac_arg" 4074 if ac_fn_c_try_compile "$LINENO" 4075then : 4076 ac_cv_prog_cc_c11=$ac_arg 4077fi 4078rm -f core conftest.err conftest.$ac_objext conftest.beam 4079 test "x$ac_cv_prog_cc_c11" != "xno" && break 4080done 4081rm -f conftest.$ac_ext 4082CC=$ac_save_CC 4083fi 4084 4085if test "x$ac_cv_prog_cc_c11" = xno 4086then : 4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4088printf "%s\n" "unsupported" >&6; } 4089else $as_nop 4090 if test "x$ac_cv_prog_cc_c11" = x 4091then : 4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4093printf "%s\n" "none needed" >&6; } 4094else $as_nop 4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4096printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4097 CC="$CC $ac_cv_prog_cc_c11" 4098fi 4099 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4100 ac_prog_cc_stdc=c11 4101fi 4102fi 4103if test x$ac_prog_cc_stdc = xno 4104then : 4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4106printf %s "checking for $CC option to enable C99 features... " >&6; } 4107if test ${ac_cv_prog_cc_c99+y} 4108then : 4109 printf %s "(cached) " >&6 4110else $as_nop 4111 ac_cv_prog_cc_c99=no 4112ac_save_CC=$CC 4113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115$ac_c_conftest_c99_program 4116_ACEOF 4117for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4118do 4119 CC="$ac_save_CC $ac_arg" 4120 if ac_fn_c_try_compile "$LINENO" 4121then : 4122 ac_cv_prog_cc_c99=$ac_arg 4123fi 4124rm -f core conftest.err conftest.$ac_objext conftest.beam 4125 test "x$ac_cv_prog_cc_c99" != "xno" && break 4126done 4127rm -f conftest.$ac_ext 4128CC=$ac_save_CC 4129fi 4130 4131if test "x$ac_cv_prog_cc_c99" = xno 4132then : 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4134printf "%s\n" "unsupported" >&6; } 4135else $as_nop 4136 if test "x$ac_cv_prog_cc_c99" = x 4137then : 4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4139printf "%s\n" "none needed" >&6; } 4140else $as_nop 4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4142printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4143 CC="$CC $ac_cv_prog_cc_c99" 4144fi 4145 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4146 ac_prog_cc_stdc=c99 4147fi 4148fi 4149if test x$ac_prog_cc_stdc = xno 4150then : 4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4152printf %s "checking for $CC option to enable C89 features... " >&6; } 4153if test ${ac_cv_prog_cc_c89+y} 4154then : 4155 printf %s "(cached) " >&6 4156else $as_nop 4157 ac_cv_prog_cc_c89=no 4158ac_save_CC=$CC 4159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161$ac_c_conftest_c89_program 4162_ACEOF 4163for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4164do 4165 CC="$ac_save_CC $ac_arg" 4166 if ac_fn_c_try_compile "$LINENO" 4167then : 4168 ac_cv_prog_cc_c89=$ac_arg 4169fi 4170rm -f core conftest.err conftest.$ac_objext conftest.beam 4171 test "x$ac_cv_prog_cc_c89" != "xno" && break 4172done 4173rm -f conftest.$ac_ext 4174CC=$ac_save_CC 4175fi 4176 4177if test "x$ac_cv_prog_cc_c89" = xno 4178then : 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4180printf "%s\n" "unsupported" >&6; } 4181else $as_nop 4182 if test "x$ac_cv_prog_cc_c89" = x 4183then : 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4185printf "%s\n" "none needed" >&6; } 4186else $as_nop 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4188printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4189 CC="$CC $ac_cv_prog_cc_c89" 4190fi 4191 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4192 ac_prog_cc_stdc=c89 4193fi 4194fi 4195 4196ac_ext=c 4197ac_cpp='$CPP $CPPFLAGS' 4198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4200ac_compiler_gnu=$ac_cv_c_compiler_gnu 4201 4202 4203 ac_ext=c 4204ac_cpp='$CPP $CPPFLAGS' 4205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4207ac_compiler_gnu=$ac_cv_c_compiler_gnu 4208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4209printf %s "checking whether $CC understands -c and -o together... " >&6; } 4210if test ${am_cv_prog_cc_c_o+y} 4211then : 4212 printf %s "(cached) " >&6 4213else $as_nop 4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215/* end confdefs.h. */ 4216 4217int 4218main (void) 4219{ 4220 4221 ; 4222 return 0; 4223} 4224_ACEOF 4225 # Make sure it works both with $CC and with simple cc. 4226 # Following AC_PROG_CC_C_O, we do the test twice because some 4227 # compilers refuse to overwrite an existing .o file with -o, 4228 # though they will create one. 4229 am_cv_prog_cc_c_o=yes 4230 for am_i in 1 2; do 4231 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4232 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4233 ac_status=$? 4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4235 (exit $ac_status); } \ 4236 && test -f conftest2.$ac_objext; then 4237 : OK 4238 else 4239 am_cv_prog_cc_c_o=no 4240 break 4241 fi 4242 done 4243 rm -f core conftest* 4244 unset am_i 4245fi 4246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4247printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4248if test "$am_cv_prog_cc_c_o" != yes; then 4249 # Losing compiler, so override with the script. 4250 # FIXME: It is wrong to rewrite CC. 4251 # But if we don't then we get into trouble of one sort or another. 4252 # A longer-term fix would be to have automake use am__CC in this case, 4253 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4254 CC="$am_aux_dir/compile $CC" 4255fi 4256ac_ext=c 4257ac_cpp='$CPP $CPPFLAGS' 4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4260ac_compiler_gnu=$ac_cv_c_compiler_gnu 4261 4262 4263depcc="$CC" am_compiler_list= 4264 4265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4266printf %s "checking dependency style of $depcc... " >&6; } 4267if test ${am_cv_CC_dependencies_compiler_type+y} 4268then : 4269 printf %s "(cached) " >&6 4270else $as_nop 4271 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4272 # We make a subdir and do the tests there. Otherwise we can end up 4273 # making bogus files that we don't know about and never remove. For 4274 # instance it was reported that on HP-UX the gcc test will end up 4275 # making a dummy file named 'D' -- because '-MD' means "put the output 4276 # in D". 4277 rm -rf conftest.dir 4278 mkdir conftest.dir 4279 # Copy depcomp to subdir because otherwise we won't find it if we're 4280 # using a relative directory. 4281 cp "$am_depcomp" conftest.dir 4282 cd conftest.dir 4283 # We will build objects and dependencies in a subdirectory because 4284 # it helps to detect inapplicable dependency modes. For instance 4285 # both Tru64's cc and ICC support -MD to output dependencies as a 4286 # side effect of compilation, but ICC will put the dependencies in 4287 # the current directory while Tru64 will put them in the object 4288 # directory. 4289 mkdir sub 4290 4291 am_cv_CC_dependencies_compiler_type=none 4292 if test "$am_compiler_list" = ""; then 4293 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4294 fi 4295 am__universal=false 4296 case " $depcc " in #( 4297 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4298 esac 4299 4300 for depmode in $am_compiler_list; do 4301 # Setup a source with many dependencies, because some compilers 4302 # like to wrap large dependency lists on column 80 (with \), and 4303 # we should not choose a depcomp mode which is confused by this. 4304 # 4305 # We need to recreate these files for each test, as the compiler may 4306 # overwrite some of them when testing with obscure command lines. 4307 # This happens at least with the AIX C compiler. 4308 : > sub/conftest.c 4309 for i in 1 2 3 4 5 6; do 4310 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4311 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4312 # Solaris 10 /bin/sh. 4313 echo '/* dummy */' > sub/conftst$i.h 4314 done 4315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4316 4317 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4318 # mode. It turns out that the SunPro C++ compiler does not properly 4319 # handle '-M -o', and we need to detect this. Also, some Intel 4320 # versions had trouble with output in subdirs. 4321 am__obj=sub/conftest.${OBJEXT-o} 4322 am__minus_obj="-o $am__obj" 4323 case $depmode in 4324 gcc) 4325 # This depmode causes a compiler race in universal mode. 4326 test "$am__universal" = false || continue 4327 ;; 4328 nosideeffect) 4329 # After this tag, mechanisms are not by side-effect, so they'll 4330 # only be used when explicitly requested. 4331 if test "x$enable_dependency_tracking" = xyes; then 4332 continue 4333 else 4334 break 4335 fi 4336 ;; 4337 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4338 # This compiler won't grok '-c -o', but also, the minuso test has 4339 # not run yet. These depmodes are late enough in the game, and 4340 # so weak that their functioning should not be impacted. 4341 am__obj=conftest.${OBJEXT-o} 4342 am__minus_obj= 4343 ;; 4344 none) break ;; 4345 esac 4346 if depmode=$depmode \ 4347 source=sub/conftest.c object=$am__obj \ 4348 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4349 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4350 >/dev/null 2>conftest.err && 4351 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4352 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4353 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4354 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4355 # icc doesn't choke on unknown options, it will just issue warnings 4356 # or remarks (even with -Werror). So we grep stderr for any message 4357 # that says an option was ignored or not supported. 4358 # When given -MP, icc 7.0 and 7.1 complain thusly: 4359 # icc: Command line warning: ignoring option '-M'; no argument required 4360 # The diagnosis changed in icc 8.0: 4361 # icc: Command line remark: option '-MP' not supported 4362 if (grep 'ignoring option' conftest.err || 4363 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4364 am_cv_CC_dependencies_compiler_type=$depmode 4365 break 4366 fi 4367 fi 4368 done 4369 4370 cd .. 4371 rm -rf conftest.dir 4372else 4373 am_cv_CC_dependencies_compiler_type=none 4374fi 4375 4376fi 4377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4378printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4379CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4380 4381 if 4382 test "x$enable_dependency_tracking" != xno \ 4383 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4384 am__fastdepCC_TRUE= 4385 am__fastdepCC_FALSE='#' 4386else 4387 am__fastdepCC_TRUE='#' 4388 am__fastdepCC_FALSE= 4389fi 4390 4391 4392 4393 4394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4395printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4396if test ${ac_cv_c_undeclared_builtin_options+y} 4397then : 4398 printf %s "(cached) " >&6 4399else $as_nop 4400 ac_save_CFLAGS=$CFLAGS 4401 ac_cv_c_undeclared_builtin_options='cannot detect' 4402 for ac_arg in '' -fno-builtin; do 4403 CFLAGS="$ac_save_CFLAGS $ac_arg" 4404 # This test program should *not* compile successfully. 4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4406/* end confdefs.h. */ 4407 4408int 4409main (void) 4410{ 4411(void) strchr; 4412 ; 4413 return 0; 4414} 4415_ACEOF 4416if ac_fn_c_try_compile "$LINENO" 4417then : 4418 4419else $as_nop 4420 # This test program should compile successfully. 4421 # No library function is consistently available on 4422 # freestanding implementations, so test against a dummy 4423 # declaration. Include always-available headers on the 4424 # off chance that they somehow elicit warnings. 4425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4426/* end confdefs.h. */ 4427#include <float.h> 4428#include <limits.h> 4429#include <stdarg.h> 4430#include <stddef.h> 4431extern void ac_decl (int, char *); 4432 4433int 4434main (void) 4435{ 4436(void) ac_decl (0, (char *) 0); 4437 (void) ac_decl; 4438 4439 ; 4440 return 0; 4441} 4442_ACEOF 4443if ac_fn_c_try_compile "$LINENO" 4444then : 4445 if test x"$ac_arg" = x 4446then : 4447 ac_cv_c_undeclared_builtin_options='none needed' 4448else $as_nop 4449 ac_cv_c_undeclared_builtin_options=$ac_arg 4450fi 4451 break 4452fi 4453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4454fi 4455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4456 done 4457 CFLAGS=$ac_save_CFLAGS 4458 4459fi 4460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4461printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4462 case $ac_cv_c_undeclared_builtin_options in #( 4463 'cannot detect') : 4464 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4465printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4466as_fn_error $? "cannot make $CC report undeclared builtins 4467See \`config.log' for more details" "$LINENO" 5; } ;; #( 4468 'none needed') : 4469 ac_c_undeclared_builtin_options='' ;; #( 4470 *) : 4471 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4472esac 4473 4474ac_header= ac_cache= 4475for ac_item in $ac_header_c_list 4476do 4477 if test $ac_cache; then 4478 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4479 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4480 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4481 fi 4482 ac_header= ac_cache= 4483 elif test $ac_header; then 4484 ac_cache=$ac_item 4485 else 4486 ac_header=$ac_item 4487 fi 4488done 4489 4490 4491 4492 4493 4494 4495 4496 4497if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4498then : 4499 4500printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4501 4502fi 4503 4504 4505 4506 4507ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4508if test "x$ac_cv_have_decl___clang__" = xyes 4509then : 4510 CLANGCC="yes" 4511else $as_nop 4512 CLANGCC="no" 4513fi 4514ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4515if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4516then : 4517 INTELCC="yes" 4518else $as_nop 4519 INTELCC="no" 4520fi 4521ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4522if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4523then : 4524 SUNCC="yes" 4525else $as_nop 4526 SUNCC="no" 4527fi 4528 4529 4530 4531 4532 4533 4534 4535 4536if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4537 if test -n "$ac_tool_prefix"; then 4538 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4539set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4541printf %s "checking for $ac_word... " >&6; } 4542if test ${ac_cv_path_PKG_CONFIG+y} 4543then : 4544 printf %s "(cached) " >&6 4545else $as_nop 4546 case $PKG_CONFIG in 4547 [\\/]* | ?:[\\/]*) 4548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4549 ;; 4550 *) 4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4552for as_dir in $PATH 4553do 4554 IFS=$as_save_IFS 4555 case $as_dir in #((( 4556 '') as_dir=./ ;; 4557 */) ;; 4558 *) as_dir=$as_dir/ ;; 4559 esac 4560 for ac_exec_ext in '' $ac_executable_extensions; do 4561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4562 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4564 break 2 4565 fi 4566done 4567 done 4568IFS=$as_save_IFS 4569 4570 ;; 4571esac 4572fi 4573PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4574if test -n "$PKG_CONFIG"; then 4575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4576printf "%s\n" "$PKG_CONFIG" >&6; } 4577else 4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4579printf "%s\n" "no" >&6; } 4580fi 4581 4582 4583fi 4584if test -z "$ac_cv_path_PKG_CONFIG"; then 4585 ac_pt_PKG_CONFIG=$PKG_CONFIG 4586 # Extract the first word of "pkg-config", so it can be a program name with args. 4587set dummy pkg-config; ac_word=$2 4588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4589printf %s "checking for $ac_word... " >&6; } 4590if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4591then : 4592 printf %s "(cached) " >&6 4593else $as_nop 4594 case $ac_pt_PKG_CONFIG in 4595 [\\/]* | ?:[\\/]*) 4596 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4597 ;; 4598 *) 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH 4601do 4602 IFS=$as_save_IFS 4603 case $as_dir in #((( 4604 '') as_dir=./ ;; 4605 */) ;; 4606 *) as_dir=$as_dir/ ;; 4607 esac 4608 for ac_exec_ext in '' $ac_executable_extensions; do 4609 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4610 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4611 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4612 break 2 4613 fi 4614done 4615 done 4616IFS=$as_save_IFS 4617 4618 ;; 4619esac 4620fi 4621ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4622if test -n "$ac_pt_PKG_CONFIG"; then 4623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4624printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4625else 4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4627printf "%s\n" "no" >&6; } 4628fi 4629 4630 if test "x$ac_pt_PKG_CONFIG" = x; then 4631 PKG_CONFIG="" 4632 else 4633 case $cross_compiling:$ac_tool_warned in 4634yes:) 4635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4636printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4637ac_tool_warned=yes ;; 4638esac 4639 PKG_CONFIG=$ac_pt_PKG_CONFIG 4640 fi 4641else 4642 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4643fi 4644 4645fi 4646if test -n "$PKG_CONFIG"; then 4647 _pkg_min_version=0.9.0 4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4649printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4650 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4652printf "%s\n" "yes" >&6; } 4653 else 4654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4655printf "%s\n" "no" >&6; } 4656 PKG_CONFIG="" 4657 fi 4658fi 4659 4660 4661 # Make sure we can run config.sub. 4662$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4663 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4664 4665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4666printf %s "checking build system type... " >&6; } 4667if test ${ac_cv_build+y} 4668then : 4669 printf %s "(cached) " >&6 4670else $as_nop 4671 ac_build_alias=$build_alias 4672test "x$ac_build_alias" = x && 4673 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4674test "x$ac_build_alias" = x && 4675 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4676ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4677 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4678 4679fi 4680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4681printf "%s\n" "$ac_cv_build" >&6; } 4682case $ac_cv_build in 4683*-*-*) ;; 4684*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4685esac 4686build=$ac_cv_build 4687ac_save_IFS=$IFS; IFS='-' 4688set x $ac_cv_build 4689shift 4690build_cpu=$1 4691build_vendor=$2 4692shift; shift 4693# Remember, the first character of IFS is used to create $*, 4694# except with old shells: 4695build_os=$* 4696IFS=$ac_save_IFS 4697case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4698 4699 4700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4701printf %s "checking host system type... " >&6; } 4702if test ${ac_cv_host+y} 4703then : 4704 printf %s "(cached) " >&6 4705else $as_nop 4706 if test "x$host_alias" = x; then 4707 ac_cv_host=$ac_cv_build 4708else 4709 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4710 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4711fi 4712 4713fi 4714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4715printf "%s\n" "$ac_cv_host" >&6; } 4716case $ac_cv_host in 4717*-*-*) ;; 4718*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4719esac 4720host=$ac_cv_host 4721ac_save_IFS=$IFS; IFS='-' 4722set x $ac_cv_host 4723shift 4724host_cpu=$1 4725host_vendor=$2 4726shift; shift 4727# Remember, the first character of IFS is used to create $*, 4728# except with old shells: 4729host_os=$* 4730IFS=$ac_save_IFS 4731case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4732 4733 4734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4735printf %s "checking for a sed that does not truncate output... " >&6; } 4736if test ${ac_cv_path_SED+y} 4737then : 4738 printf %s "(cached) " >&6 4739else $as_nop 4740 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4741 for ac_i in 1 2 3 4 5 6 7; do 4742 ac_script="$ac_script$as_nl$ac_script" 4743 done 4744 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4745 { ac_script=; unset ac_script;} 4746 if test -z "$SED"; then 4747 ac_path_SED_found=false 4748 # Loop through the user's path and test for each of PROGNAME-LIST 4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4750for as_dir in $PATH 4751do 4752 IFS=$as_save_IFS 4753 case $as_dir in #((( 4754 '') as_dir=./ ;; 4755 */) ;; 4756 *) as_dir=$as_dir/ ;; 4757 esac 4758 for ac_prog in sed gsed 4759 do 4760 for ac_exec_ext in '' $ac_executable_extensions; do 4761 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4762 as_fn_executable_p "$ac_path_SED" || continue 4763# Check for GNU ac_path_SED and select it if it is found. 4764 # Check for GNU $ac_path_SED 4765case `"$ac_path_SED" --version 2>&1` in 4766*GNU*) 4767 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4768*) 4769 ac_count=0 4770 printf %s 0123456789 >"conftest.in" 4771 while : 4772 do 4773 cat "conftest.in" "conftest.in" >"conftest.tmp" 4774 mv "conftest.tmp" "conftest.in" 4775 cp "conftest.in" "conftest.nl" 4776 printf "%s\n" '' >> "conftest.nl" 4777 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4779 as_fn_arith $ac_count + 1 && ac_count=$as_val 4780 if test $ac_count -gt ${ac_path_SED_max-0}; then 4781 # Best one so far, save it but keep looking for a better one 4782 ac_cv_path_SED="$ac_path_SED" 4783 ac_path_SED_max=$ac_count 4784 fi 4785 # 10*(2^10) chars as input seems more than enough 4786 test $ac_count -gt 10 && break 4787 done 4788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4789esac 4790 4791 $ac_path_SED_found && break 3 4792 done 4793 done 4794 done 4795IFS=$as_save_IFS 4796 if test -z "$ac_cv_path_SED"; then 4797 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4798 fi 4799else 4800 ac_cv_path_SED=$SED 4801fi 4802 4803fi 4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4805printf "%s\n" "$ac_cv_path_SED" >&6; } 4806 SED="$ac_cv_path_SED" 4807 rm -f conftest.sed 4808 4809 4810 4811 4812 4813 4814# Check whether --enable-selective-werror was given. 4815if test ${enable_selective_werror+y} 4816then : 4817 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4818else $as_nop 4819 SELECTIVE_WERROR=yes 4820fi 4821 4822 4823 4824 4825 4826# -v is too short to test reliably with XORG_TESTSET_CFLAG 4827if test "x$SUNCC" = "xyes"; then 4828 BASE_CFLAGS="-v" 4829else 4830 BASE_CFLAGS="" 4831fi 4832 4833# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847xorg_testset_save_CFLAGS="$CFLAGS" 4848 4849if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4850 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4852printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4853if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4854then : 4855 printf %s "(cached) " >&6 4856else $as_nop 4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4858/* end confdefs.h. */ 4859int i; 4860_ACEOF 4861if ac_fn_c_try_compile "$LINENO" 4862then : 4863 xorg_cv_cc_flag_unknown_warning_option=yes 4864else $as_nop 4865 xorg_cv_cc_flag_unknown_warning_option=no 4866fi 4867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4868fi 4869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4870printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4872 CFLAGS="$xorg_testset_save_CFLAGS" 4873fi 4874 4875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4878 fi 4879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4881printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4882if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4883then : 4884 printf %s "(cached) " >&6 4885else $as_nop 4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4887/* end confdefs.h. */ 4888int i; 4889_ACEOF 4890if ac_fn_c_try_compile "$LINENO" 4891then : 4892 xorg_cv_cc_flag_unused_command_line_argument=yes 4893else $as_nop 4894 xorg_cv_cc_flag_unused_command_line_argument=no 4895fi 4896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4897fi 4898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4901 CFLAGS="$xorg_testset_save_CFLAGS" 4902fi 4903 4904found="no" 4905 4906 if test $found = "no" ; then 4907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4909 fi 4910 4911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4913 fi 4914 4915 CFLAGS="$CFLAGS -Wall" 4916 4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4918printf %s "checking if $CC supports -Wall... " >&6; } 4919 cacheid=xorg_cv_cc_flag__Wall 4920 if eval test \${$cacheid+y} 4921then : 4922 printf %s "(cached) " >&6 4923else $as_nop 4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4925/* end confdefs.h. */ 4926int i; 4927int 4928main (void) 4929{ 4930 4931 ; 4932 return 0; 4933} 4934_ACEOF 4935if ac_fn_c_try_link "$LINENO" 4936then : 4937 eval $cacheid=yes 4938else $as_nop 4939 eval $cacheid=no 4940fi 4941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4942 conftest$ac_exeext conftest.$ac_ext 4943fi 4944 4945 4946 CFLAGS="$xorg_testset_save_CFLAGS" 4947 4948 eval supported=\$$cacheid 4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4950printf "%s\n" "$supported" >&6; } 4951 if test "$supported" = "yes" ; then 4952 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4953 found="yes" 4954 fi 4955 fi 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971xorg_testset_save_CFLAGS="$CFLAGS" 4972 4973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4974 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4976printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4977if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4978then : 4979 printf %s "(cached) " >&6 4980else $as_nop 4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4982/* end confdefs.h. */ 4983int i; 4984_ACEOF 4985if ac_fn_c_try_compile "$LINENO" 4986then : 4987 xorg_cv_cc_flag_unknown_warning_option=yes 4988else $as_nop 4989 xorg_cv_cc_flag_unknown_warning_option=no 4990fi 4991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4992fi 4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4994printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4996 CFLAGS="$xorg_testset_save_CFLAGS" 4997fi 4998 4999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5002 fi 5003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5005printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5006if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5007then : 5008 printf %s "(cached) " >&6 5009else $as_nop 5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5011/* end confdefs.h. */ 5012int i; 5013_ACEOF 5014if ac_fn_c_try_compile "$LINENO" 5015then : 5016 xorg_cv_cc_flag_unused_command_line_argument=yes 5017else $as_nop 5018 xorg_cv_cc_flag_unused_command_line_argument=no 5019fi 5020rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5021fi 5022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5023printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5024 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5025 CFLAGS="$xorg_testset_save_CFLAGS" 5026fi 5027 5028found="no" 5029 5030 if test $found = "no" ; then 5031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5033 fi 5034 5035 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5037 fi 5038 5039 CFLAGS="$CFLAGS -Wpointer-arith" 5040 5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5042printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5043 cacheid=xorg_cv_cc_flag__Wpointer_arith 5044 if eval test \${$cacheid+y} 5045then : 5046 printf %s "(cached) " >&6 5047else $as_nop 5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5049/* end confdefs.h. */ 5050int i; 5051int 5052main (void) 5053{ 5054 5055 ; 5056 return 0; 5057} 5058_ACEOF 5059if ac_fn_c_try_link "$LINENO" 5060then : 5061 eval $cacheid=yes 5062else $as_nop 5063 eval $cacheid=no 5064fi 5065rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5066 conftest$ac_exeext conftest.$ac_ext 5067fi 5068 5069 5070 CFLAGS="$xorg_testset_save_CFLAGS" 5071 5072 eval supported=\$$cacheid 5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5074printf "%s\n" "$supported" >&6; } 5075 if test "$supported" = "yes" ; then 5076 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5077 found="yes" 5078 fi 5079 fi 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095xorg_testset_save_CFLAGS="$CFLAGS" 5096 5097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5100printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5101if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5102then : 5103 printf %s "(cached) " >&6 5104else $as_nop 5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5106/* end confdefs.h. */ 5107int i; 5108_ACEOF 5109if ac_fn_c_try_compile "$LINENO" 5110then : 5111 xorg_cv_cc_flag_unknown_warning_option=yes 5112else $as_nop 5113 xorg_cv_cc_flag_unknown_warning_option=no 5114fi 5115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5116fi 5117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5118printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5120 CFLAGS="$xorg_testset_save_CFLAGS" 5121fi 5122 5123if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5126 fi 5127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5129printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5130if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5131then : 5132 printf %s "(cached) " >&6 5133else $as_nop 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136int i; 5137_ACEOF 5138if ac_fn_c_try_compile "$LINENO" 5139then : 5140 xorg_cv_cc_flag_unused_command_line_argument=yes 5141else $as_nop 5142 xorg_cv_cc_flag_unused_command_line_argument=no 5143fi 5144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5145fi 5146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5147printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5149 CFLAGS="$xorg_testset_save_CFLAGS" 5150fi 5151 5152found="no" 5153 5154 if test $found = "no" ; then 5155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5157 fi 5158 5159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5161 fi 5162 5163 CFLAGS="$CFLAGS -Wmissing-declarations" 5164 5165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5166printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5167 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5168 if eval test \${$cacheid+y} 5169then : 5170 printf %s "(cached) " >&6 5171else $as_nop 5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5173/* end confdefs.h. */ 5174int i; 5175int 5176main (void) 5177{ 5178 5179 ; 5180 return 0; 5181} 5182_ACEOF 5183if ac_fn_c_try_link "$LINENO" 5184then : 5185 eval $cacheid=yes 5186else $as_nop 5187 eval $cacheid=no 5188fi 5189rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5190 conftest$ac_exeext conftest.$ac_ext 5191fi 5192 5193 5194 CFLAGS="$xorg_testset_save_CFLAGS" 5195 5196 eval supported=\$$cacheid 5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5198printf "%s\n" "$supported" >&6; } 5199 if test "$supported" = "yes" ; then 5200 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5201 found="yes" 5202 fi 5203 fi 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219xorg_testset_save_CFLAGS="$CFLAGS" 5220 5221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5224printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5225if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5226then : 5227 printf %s "(cached) " >&6 5228else $as_nop 5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5230/* end confdefs.h. */ 5231int i; 5232_ACEOF 5233if ac_fn_c_try_compile "$LINENO" 5234then : 5235 xorg_cv_cc_flag_unknown_warning_option=yes 5236else $as_nop 5237 xorg_cv_cc_flag_unknown_warning_option=no 5238fi 5239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5240fi 5241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5242printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5243 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5244 CFLAGS="$xorg_testset_save_CFLAGS" 5245fi 5246 5247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5250 fi 5251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5253printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5254if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5255then : 5256 printf %s "(cached) " >&6 5257else $as_nop 5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5259/* end confdefs.h. */ 5260int i; 5261_ACEOF 5262if ac_fn_c_try_compile "$LINENO" 5263then : 5264 xorg_cv_cc_flag_unused_command_line_argument=yes 5265else $as_nop 5266 xorg_cv_cc_flag_unused_command_line_argument=no 5267fi 5268rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5269fi 5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5271printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5273 CFLAGS="$xorg_testset_save_CFLAGS" 5274fi 5275 5276found="no" 5277 5278 if test $found = "no" ; then 5279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5281 fi 5282 5283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5285 fi 5286 5287 CFLAGS="$CFLAGS -Wformat=2" 5288 5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5290printf %s "checking if $CC supports -Wformat=2... " >&6; } 5291 cacheid=xorg_cv_cc_flag__Wformat_2 5292 if eval test \${$cacheid+y} 5293then : 5294 printf %s "(cached) " >&6 5295else $as_nop 5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5297/* end confdefs.h. */ 5298int i; 5299int 5300main (void) 5301{ 5302 5303 ; 5304 return 0; 5305} 5306_ACEOF 5307if ac_fn_c_try_link "$LINENO" 5308then : 5309 eval $cacheid=yes 5310else $as_nop 5311 eval $cacheid=no 5312fi 5313rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5314 conftest$ac_exeext conftest.$ac_ext 5315fi 5316 5317 5318 CFLAGS="$xorg_testset_save_CFLAGS" 5319 5320 eval supported=\$$cacheid 5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5322printf "%s\n" "$supported" >&6; } 5323 if test "$supported" = "yes" ; then 5324 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5325 found="yes" 5326 fi 5327 fi 5328 5329 if test $found = "no" ; then 5330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5332 fi 5333 5334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5336 fi 5337 5338 CFLAGS="$CFLAGS -Wformat" 5339 5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5341printf %s "checking if $CC supports -Wformat... " >&6; } 5342 cacheid=xorg_cv_cc_flag__Wformat 5343 if eval test \${$cacheid+y} 5344then : 5345 printf %s "(cached) " >&6 5346else $as_nop 5347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5348/* end confdefs.h. */ 5349int i; 5350int 5351main (void) 5352{ 5353 5354 ; 5355 return 0; 5356} 5357_ACEOF 5358if ac_fn_c_try_link "$LINENO" 5359then : 5360 eval $cacheid=yes 5361else $as_nop 5362 eval $cacheid=no 5363fi 5364rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5365 conftest$ac_exeext conftest.$ac_ext 5366fi 5367 5368 5369 CFLAGS="$xorg_testset_save_CFLAGS" 5370 5371 eval supported=\$$cacheid 5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5373printf "%s\n" "$supported" >&6; } 5374 if test "$supported" = "yes" ; then 5375 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5376 found="yes" 5377 fi 5378 fi 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396xorg_testset_save_CFLAGS="$CFLAGS" 5397 5398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5401printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5402if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5403then : 5404 printf %s "(cached) " >&6 5405else $as_nop 5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5407/* end confdefs.h. */ 5408int i; 5409_ACEOF 5410if ac_fn_c_try_compile "$LINENO" 5411then : 5412 xorg_cv_cc_flag_unknown_warning_option=yes 5413else $as_nop 5414 xorg_cv_cc_flag_unknown_warning_option=no 5415fi 5416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5417fi 5418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5421 CFLAGS="$xorg_testset_save_CFLAGS" 5422fi 5423 5424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5427 fi 5428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5431if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5432then : 5433 printf %s "(cached) " >&6 5434else $as_nop 5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5436/* end confdefs.h. */ 5437int i; 5438_ACEOF 5439if ac_fn_c_try_compile "$LINENO" 5440then : 5441 xorg_cv_cc_flag_unused_command_line_argument=yes 5442else $as_nop 5443 xorg_cv_cc_flag_unused_command_line_argument=no 5444fi 5445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5446fi 5447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5448printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5450 CFLAGS="$xorg_testset_save_CFLAGS" 5451fi 5452 5453found="no" 5454 5455 if test $found = "no" ; then 5456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5458 fi 5459 5460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5462 fi 5463 5464 CFLAGS="$CFLAGS -Wstrict-prototypes" 5465 5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5467printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5468 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5469 if eval test \${$cacheid+y} 5470then : 5471 printf %s "(cached) " >&6 5472else $as_nop 5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5474/* end confdefs.h. */ 5475int i; 5476int 5477main (void) 5478{ 5479 5480 ; 5481 return 0; 5482} 5483_ACEOF 5484if ac_fn_c_try_link "$LINENO" 5485then : 5486 eval $cacheid=yes 5487else $as_nop 5488 eval $cacheid=no 5489fi 5490rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5491 conftest$ac_exeext conftest.$ac_ext 5492fi 5493 5494 5495 CFLAGS="$xorg_testset_save_CFLAGS" 5496 5497 eval supported=\$$cacheid 5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5499printf "%s\n" "$supported" >&6; } 5500 if test "$supported" = "yes" ; then 5501 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5502 found="yes" 5503 fi 5504 fi 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520xorg_testset_save_CFLAGS="$CFLAGS" 5521 5522if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5525printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5526if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5527then : 5528 printf %s "(cached) " >&6 5529else $as_nop 5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5531/* end confdefs.h. */ 5532int i; 5533_ACEOF 5534if ac_fn_c_try_compile "$LINENO" 5535then : 5536 xorg_cv_cc_flag_unknown_warning_option=yes 5537else $as_nop 5538 xorg_cv_cc_flag_unknown_warning_option=no 5539fi 5540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5541fi 5542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5545 CFLAGS="$xorg_testset_save_CFLAGS" 5546fi 5547 5548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5551 fi 5552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5555if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5556then : 5557 printf %s "(cached) " >&6 5558else $as_nop 5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5560/* end confdefs.h. */ 5561int i; 5562_ACEOF 5563if ac_fn_c_try_compile "$LINENO" 5564then : 5565 xorg_cv_cc_flag_unused_command_line_argument=yes 5566else $as_nop 5567 xorg_cv_cc_flag_unused_command_line_argument=no 5568fi 5569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5570fi 5571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5572printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5574 CFLAGS="$xorg_testset_save_CFLAGS" 5575fi 5576 5577found="no" 5578 5579 if test $found = "no" ; then 5580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5582 fi 5583 5584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5586 fi 5587 5588 CFLAGS="$CFLAGS -Wmissing-prototypes" 5589 5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5591printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5592 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5593 if eval test \${$cacheid+y} 5594then : 5595 printf %s "(cached) " >&6 5596else $as_nop 5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5598/* end confdefs.h. */ 5599int i; 5600int 5601main (void) 5602{ 5603 5604 ; 5605 return 0; 5606} 5607_ACEOF 5608if ac_fn_c_try_link "$LINENO" 5609then : 5610 eval $cacheid=yes 5611else $as_nop 5612 eval $cacheid=no 5613fi 5614rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5615 conftest$ac_exeext conftest.$ac_ext 5616fi 5617 5618 5619 CFLAGS="$xorg_testset_save_CFLAGS" 5620 5621 eval supported=\$$cacheid 5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5623printf "%s\n" "$supported" >&6; } 5624 if test "$supported" = "yes" ; then 5625 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5626 found="yes" 5627 fi 5628 fi 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644xorg_testset_save_CFLAGS="$CFLAGS" 5645 5646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5649printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5650if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5651then : 5652 printf %s "(cached) " >&6 5653else $as_nop 5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5655/* end confdefs.h. */ 5656int i; 5657_ACEOF 5658if ac_fn_c_try_compile "$LINENO" 5659then : 5660 xorg_cv_cc_flag_unknown_warning_option=yes 5661else $as_nop 5662 xorg_cv_cc_flag_unknown_warning_option=no 5663fi 5664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5665fi 5666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5667printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5669 CFLAGS="$xorg_testset_save_CFLAGS" 5670fi 5671 5672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5675 fi 5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5678printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5679if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5680then : 5681 printf %s "(cached) " >&6 5682else $as_nop 5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5684/* end confdefs.h. */ 5685int i; 5686_ACEOF 5687if ac_fn_c_try_compile "$LINENO" 5688then : 5689 xorg_cv_cc_flag_unused_command_line_argument=yes 5690else $as_nop 5691 xorg_cv_cc_flag_unused_command_line_argument=no 5692fi 5693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5694fi 5695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5696printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5698 CFLAGS="$xorg_testset_save_CFLAGS" 5699fi 5700 5701found="no" 5702 5703 if test $found = "no" ; then 5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5706 fi 5707 5708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5710 fi 5711 5712 CFLAGS="$CFLAGS -Wnested-externs" 5713 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5715printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5716 cacheid=xorg_cv_cc_flag__Wnested_externs 5717 if eval test \${$cacheid+y} 5718then : 5719 printf %s "(cached) " >&6 5720else $as_nop 5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5722/* end confdefs.h. */ 5723int i; 5724int 5725main (void) 5726{ 5727 5728 ; 5729 return 0; 5730} 5731_ACEOF 5732if ac_fn_c_try_link "$LINENO" 5733then : 5734 eval $cacheid=yes 5735else $as_nop 5736 eval $cacheid=no 5737fi 5738rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5739 conftest$ac_exeext conftest.$ac_ext 5740fi 5741 5742 5743 CFLAGS="$xorg_testset_save_CFLAGS" 5744 5745 eval supported=\$$cacheid 5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5747printf "%s\n" "$supported" >&6; } 5748 if test "$supported" = "yes" ; then 5749 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5750 found="yes" 5751 fi 5752 fi 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768xorg_testset_save_CFLAGS="$CFLAGS" 5769 5770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5773printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5774if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5775then : 5776 printf %s "(cached) " >&6 5777else $as_nop 5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5779/* end confdefs.h. */ 5780int i; 5781_ACEOF 5782if ac_fn_c_try_compile "$LINENO" 5783then : 5784 xorg_cv_cc_flag_unknown_warning_option=yes 5785else $as_nop 5786 xorg_cv_cc_flag_unknown_warning_option=no 5787fi 5788rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5789fi 5790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5791printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5793 CFLAGS="$xorg_testset_save_CFLAGS" 5794fi 5795 5796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5799 fi 5800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5802printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5803if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5804then : 5805 printf %s "(cached) " >&6 5806else $as_nop 5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5808/* end confdefs.h. */ 5809int i; 5810_ACEOF 5811if ac_fn_c_try_compile "$LINENO" 5812then : 5813 xorg_cv_cc_flag_unused_command_line_argument=yes 5814else $as_nop 5815 xorg_cv_cc_flag_unused_command_line_argument=no 5816fi 5817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5818fi 5819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5820printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5822 CFLAGS="$xorg_testset_save_CFLAGS" 5823fi 5824 5825found="no" 5826 5827 if test $found = "no" ; then 5828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5830 fi 5831 5832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5834 fi 5835 5836 CFLAGS="$CFLAGS -Wbad-function-cast" 5837 5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5839printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5840 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5841 if eval test \${$cacheid+y} 5842then : 5843 printf %s "(cached) " >&6 5844else $as_nop 5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5846/* end confdefs.h. */ 5847int i; 5848int 5849main (void) 5850{ 5851 5852 ; 5853 return 0; 5854} 5855_ACEOF 5856if ac_fn_c_try_link "$LINENO" 5857then : 5858 eval $cacheid=yes 5859else $as_nop 5860 eval $cacheid=no 5861fi 5862rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5863 conftest$ac_exeext conftest.$ac_ext 5864fi 5865 5866 5867 CFLAGS="$xorg_testset_save_CFLAGS" 5868 5869 eval supported=\$$cacheid 5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5871printf "%s\n" "$supported" >&6; } 5872 if test "$supported" = "yes" ; then 5873 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5874 found="yes" 5875 fi 5876 fi 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892xorg_testset_save_CFLAGS="$CFLAGS" 5893 5894if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5897printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5898if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5899then : 5900 printf %s "(cached) " >&6 5901else $as_nop 5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5903/* end confdefs.h. */ 5904int i; 5905_ACEOF 5906if ac_fn_c_try_compile "$LINENO" 5907then : 5908 xorg_cv_cc_flag_unknown_warning_option=yes 5909else $as_nop 5910 xorg_cv_cc_flag_unknown_warning_option=no 5911fi 5912rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5913fi 5914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5915printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5917 CFLAGS="$xorg_testset_save_CFLAGS" 5918fi 5919 5920if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5923 fi 5924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5926printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5927if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5928then : 5929 printf %s "(cached) " >&6 5930else $as_nop 5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5932/* end confdefs.h. */ 5933int i; 5934_ACEOF 5935if ac_fn_c_try_compile "$LINENO" 5936then : 5937 xorg_cv_cc_flag_unused_command_line_argument=yes 5938else $as_nop 5939 xorg_cv_cc_flag_unused_command_line_argument=no 5940fi 5941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5942fi 5943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5944printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5946 CFLAGS="$xorg_testset_save_CFLAGS" 5947fi 5948 5949found="no" 5950 5951 if test $found = "no" ; then 5952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5954 fi 5955 5956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5958 fi 5959 5960 CFLAGS="$CFLAGS -Wold-style-definition" 5961 5962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5963printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5964 cacheid=xorg_cv_cc_flag__Wold_style_definition 5965 if eval test \${$cacheid+y} 5966then : 5967 printf %s "(cached) " >&6 5968else $as_nop 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5970/* end confdefs.h. */ 5971int i; 5972int 5973main (void) 5974{ 5975 5976 ; 5977 return 0; 5978} 5979_ACEOF 5980if ac_fn_c_try_link "$LINENO" 5981then : 5982 eval $cacheid=yes 5983else $as_nop 5984 eval $cacheid=no 5985fi 5986rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5987 conftest$ac_exeext conftest.$ac_ext 5988fi 5989 5990 5991 CFLAGS="$xorg_testset_save_CFLAGS" 5992 5993 eval supported=\$$cacheid 5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5995printf "%s\n" "$supported" >&6; } 5996 if test "$supported" = "yes" ; then 5997 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5998 found="yes" 5999 fi 6000 fi 6001 6002 if test $found = "no" ; then 6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6005 fi 6006 6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6009 fi 6010 6011 CFLAGS="$CFLAGS -fd" 6012 6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6014printf %s "checking if $CC supports -fd... " >&6; } 6015 cacheid=xorg_cv_cc_flag__fd 6016 if eval test \${$cacheid+y} 6017then : 6018 printf %s "(cached) " >&6 6019else $as_nop 6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6021/* end confdefs.h. */ 6022int i; 6023int 6024main (void) 6025{ 6026 6027 ; 6028 return 0; 6029} 6030_ACEOF 6031if ac_fn_c_try_link "$LINENO" 6032then : 6033 eval $cacheid=yes 6034else $as_nop 6035 eval $cacheid=no 6036fi 6037rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6038 conftest$ac_exeext conftest.$ac_ext 6039fi 6040 6041 6042 CFLAGS="$xorg_testset_save_CFLAGS" 6043 6044 eval supported=\$$cacheid 6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6046printf "%s\n" "$supported" >&6; } 6047 if test "$supported" = "yes" ; then 6048 BASE_CFLAGS="$BASE_CFLAGS -fd" 6049 found="yes" 6050 fi 6051 fi 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067xorg_testset_save_CFLAGS="$CFLAGS" 6068 6069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6073if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6074then : 6075 printf %s "(cached) " >&6 6076else $as_nop 6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6078/* end confdefs.h. */ 6079int i; 6080_ACEOF 6081if ac_fn_c_try_compile "$LINENO" 6082then : 6083 xorg_cv_cc_flag_unknown_warning_option=yes 6084else $as_nop 6085 xorg_cv_cc_flag_unknown_warning_option=no 6086fi 6087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6088fi 6089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6091 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6092 CFLAGS="$xorg_testset_save_CFLAGS" 6093fi 6094 6095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6097 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6098 fi 6099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6102if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6103then : 6104 printf %s "(cached) " >&6 6105else $as_nop 6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6107/* end confdefs.h. */ 6108int i; 6109_ACEOF 6110if ac_fn_c_try_compile "$LINENO" 6111then : 6112 xorg_cv_cc_flag_unused_command_line_argument=yes 6113else $as_nop 6114 xorg_cv_cc_flag_unused_command_line_argument=no 6115fi 6116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6117fi 6118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6121 CFLAGS="$xorg_testset_save_CFLAGS" 6122fi 6123 6124found="no" 6125 6126 if test $found = "no" ; then 6127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6129 fi 6130 6131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6133 fi 6134 6135 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6136 6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6138printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6139 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6140 if eval test \${$cacheid+y} 6141then : 6142 printf %s "(cached) " >&6 6143else $as_nop 6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6145/* end confdefs.h. */ 6146int i; 6147int 6148main (void) 6149{ 6150 6151 ; 6152 return 0; 6153} 6154_ACEOF 6155if ac_fn_c_try_link "$LINENO" 6156then : 6157 eval $cacheid=yes 6158else $as_nop 6159 eval $cacheid=no 6160fi 6161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6162 conftest$ac_exeext conftest.$ac_ext 6163fi 6164 6165 6166 CFLAGS="$xorg_testset_save_CFLAGS" 6167 6168 eval supported=\$$cacheid 6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6170printf "%s\n" "$supported" >&6; } 6171 if test "$supported" = "yes" ; then 6172 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6173 found="yes" 6174 fi 6175 fi 6176 6177 6178 6179 6180 6181# This chunk adds additional warnings that could catch undesired effects. 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195xorg_testset_save_CFLAGS="$CFLAGS" 6196 6197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6201if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6202then : 6203 printf %s "(cached) " >&6 6204else $as_nop 6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206/* end confdefs.h. */ 6207int i; 6208_ACEOF 6209if ac_fn_c_try_compile "$LINENO" 6210then : 6211 xorg_cv_cc_flag_unknown_warning_option=yes 6212else $as_nop 6213 xorg_cv_cc_flag_unknown_warning_option=no 6214fi 6215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6216fi 6217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6220 CFLAGS="$xorg_testset_save_CFLAGS" 6221fi 6222 6223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6226 fi 6227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6230if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6231then : 6232 printf %s "(cached) " >&6 6233else $as_nop 6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6235/* end confdefs.h. */ 6236int i; 6237_ACEOF 6238if ac_fn_c_try_compile "$LINENO" 6239then : 6240 xorg_cv_cc_flag_unused_command_line_argument=yes 6241else $as_nop 6242 xorg_cv_cc_flag_unused_command_line_argument=no 6243fi 6244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6245fi 6246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6249 CFLAGS="$xorg_testset_save_CFLAGS" 6250fi 6251 6252found="no" 6253 6254 if test $found = "no" ; then 6255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6257 fi 6258 6259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6261 fi 6262 6263 CFLAGS="$CFLAGS -Wunused" 6264 6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6266printf %s "checking if $CC supports -Wunused... " >&6; } 6267 cacheid=xorg_cv_cc_flag__Wunused 6268 if eval test \${$cacheid+y} 6269then : 6270 printf %s "(cached) " >&6 6271else $as_nop 6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6273/* end confdefs.h. */ 6274int i; 6275int 6276main (void) 6277{ 6278 6279 ; 6280 return 0; 6281} 6282_ACEOF 6283if ac_fn_c_try_link "$LINENO" 6284then : 6285 eval $cacheid=yes 6286else $as_nop 6287 eval $cacheid=no 6288fi 6289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6290 conftest$ac_exeext conftest.$ac_ext 6291fi 6292 6293 6294 CFLAGS="$xorg_testset_save_CFLAGS" 6295 6296 eval supported=\$$cacheid 6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6298printf "%s\n" "$supported" >&6; } 6299 if test "$supported" = "yes" ; then 6300 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6301 found="yes" 6302 fi 6303 fi 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319xorg_testset_save_CFLAGS="$CFLAGS" 6320 6321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6325if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6326then : 6327 printf %s "(cached) " >&6 6328else $as_nop 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330/* end confdefs.h. */ 6331int i; 6332_ACEOF 6333if ac_fn_c_try_compile "$LINENO" 6334then : 6335 xorg_cv_cc_flag_unknown_warning_option=yes 6336else $as_nop 6337 xorg_cv_cc_flag_unknown_warning_option=no 6338fi 6339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6340fi 6341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6342printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6344 CFLAGS="$xorg_testset_save_CFLAGS" 6345fi 6346 6347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6350 fi 6351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6353printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6354if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6355then : 6356 printf %s "(cached) " >&6 6357else $as_nop 6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6359/* end confdefs.h. */ 6360int i; 6361_ACEOF 6362if ac_fn_c_try_compile "$LINENO" 6363then : 6364 xorg_cv_cc_flag_unused_command_line_argument=yes 6365else $as_nop 6366 xorg_cv_cc_flag_unused_command_line_argument=no 6367fi 6368rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6369fi 6370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6373 CFLAGS="$xorg_testset_save_CFLAGS" 6374fi 6375 6376found="no" 6377 6378 if test $found = "no" ; then 6379 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6381 fi 6382 6383 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6385 fi 6386 6387 CFLAGS="$CFLAGS -Wuninitialized" 6388 6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6390printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6391 cacheid=xorg_cv_cc_flag__Wuninitialized 6392 if eval test \${$cacheid+y} 6393then : 6394 printf %s "(cached) " >&6 6395else $as_nop 6396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6397/* end confdefs.h. */ 6398int i; 6399int 6400main (void) 6401{ 6402 6403 ; 6404 return 0; 6405} 6406_ACEOF 6407if ac_fn_c_try_link "$LINENO" 6408then : 6409 eval $cacheid=yes 6410else $as_nop 6411 eval $cacheid=no 6412fi 6413rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6414 conftest$ac_exeext conftest.$ac_ext 6415fi 6416 6417 6418 CFLAGS="$xorg_testset_save_CFLAGS" 6419 6420 eval supported=\$$cacheid 6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6422printf "%s\n" "$supported" >&6; } 6423 if test "$supported" = "yes" ; then 6424 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6425 found="yes" 6426 fi 6427 fi 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443xorg_testset_save_CFLAGS="$CFLAGS" 6444 6445if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6448printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6449if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6450then : 6451 printf %s "(cached) " >&6 6452else $as_nop 6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6454/* end confdefs.h. */ 6455int i; 6456_ACEOF 6457if ac_fn_c_try_compile "$LINENO" 6458then : 6459 xorg_cv_cc_flag_unknown_warning_option=yes 6460else $as_nop 6461 xorg_cv_cc_flag_unknown_warning_option=no 6462fi 6463rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6464fi 6465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6466printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6467 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6468 CFLAGS="$xorg_testset_save_CFLAGS" 6469fi 6470 6471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6472 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6474 fi 6475 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6477printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6478if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6479then : 6480 printf %s "(cached) " >&6 6481else $as_nop 6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6483/* end confdefs.h. */ 6484int i; 6485_ACEOF 6486if ac_fn_c_try_compile "$LINENO" 6487then : 6488 xorg_cv_cc_flag_unused_command_line_argument=yes 6489else $as_nop 6490 xorg_cv_cc_flag_unused_command_line_argument=no 6491fi 6492rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6493fi 6494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6497 CFLAGS="$xorg_testset_save_CFLAGS" 6498fi 6499 6500found="no" 6501 6502 if test $found = "no" ; then 6503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6505 fi 6506 6507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6509 fi 6510 6511 CFLAGS="$CFLAGS -Wshadow" 6512 6513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6514printf %s "checking if $CC supports -Wshadow... " >&6; } 6515 cacheid=xorg_cv_cc_flag__Wshadow 6516 if eval test \${$cacheid+y} 6517then : 6518 printf %s "(cached) " >&6 6519else $as_nop 6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6521/* end confdefs.h. */ 6522int i; 6523int 6524main (void) 6525{ 6526 6527 ; 6528 return 0; 6529} 6530_ACEOF 6531if ac_fn_c_try_link "$LINENO" 6532then : 6533 eval $cacheid=yes 6534else $as_nop 6535 eval $cacheid=no 6536fi 6537rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6538 conftest$ac_exeext conftest.$ac_ext 6539fi 6540 6541 6542 CFLAGS="$xorg_testset_save_CFLAGS" 6543 6544 eval supported=\$$cacheid 6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6546printf "%s\n" "$supported" >&6; } 6547 if test "$supported" = "yes" ; then 6548 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6549 found="yes" 6550 fi 6551 fi 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567xorg_testset_save_CFLAGS="$CFLAGS" 6568 6569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6572printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6573if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6574then : 6575 printf %s "(cached) " >&6 6576else $as_nop 6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6578/* end confdefs.h. */ 6579int i; 6580_ACEOF 6581if ac_fn_c_try_compile "$LINENO" 6582then : 6583 xorg_cv_cc_flag_unknown_warning_option=yes 6584else $as_nop 6585 xorg_cv_cc_flag_unknown_warning_option=no 6586fi 6587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6588fi 6589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6590printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6592 CFLAGS="$xorg_testset_save_CFLAGS" 6593fi 6594 6595if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6598 fi 6599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6601printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6602if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6603then : 6604 printf %s "(cached) " >&6 6605else $as_nop 6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6607/* end confdefs.h. */ 6608int i; 6609_ACEOF 6610if ac_fn_c_try_compile "$LINENO" 6611then : 6612 xorg_cv_cc_flag_unused_command_line_argument=yes 6613else $as_nop 6614 xorg_cv_cc_flag_unused_command_line_argument=no 6615fi 6616rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6617fi 6618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6619printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6621 CFLAGS="$xorg_testset_save_CFLAGS" 6622fi 6623 6624found="no" 6625 6626 if test $found = "no" ; then 6627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6629 fi 6630 6631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6633 fi 6634 6635 CFLAGS="$CFLAGS -Wmissing-noreturn" 6636 6637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6638printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6639 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6640 if eval test \${$cacheid+y} 6641then : 6642 printf %s "(cached) " >&6 6643else $as_nop 6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6645/* end confdefs.h. */ 6646int i; 6647int 6648main (void) 6649{ 6650 6651 ; 6652 return 0; 6653} 6654_ACEOF 6655if ac_fn_c_try_link "$LINENO" 6656then : 6657 eval $cacheid=yes 6658else $as_nop 6659 eval $cacheid=no 6660fi 6661rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6662 conftest$ac_exeext conftest.$ac_ext 6663fi 6664 6665 6666 CFLAGS="$xorg_testset_save_CFLAGS" 6667 6668 eval supported=\$$cacheid 6669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6670printf "%s\n" "$supported" >&6; } 6671 if test "$supported" = "yes" ; then 6672 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6673 found="yes" 6674 fi 6675 fi 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691xorg_testset_save_CFLAGS="$CFLAGS" 6692 6693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6696printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6697if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6698then : 6699 printf %s "(cached) " >&6 6700else $as_nop 6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6702/* end confdefs.h. */ 6703int i; 6704_ACEOF 6705if ac_fn_c_try_compile "$LINENO" 6706then : 6707 xorg_cv_cc_flag_unknown_warning_option=yes 6708else $as_nop 6709 xorg_cv_cc_flag_unknown_warning_option=no 6710fi 6711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6712fi 6713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6714printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6716 CFLAGS="$xorg_testset_save_CFLAGS" 6717fi 6718 6719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6722 fi 6723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6725printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6726if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6727then : 6728 printf %s "(cached) " >&6 6729else $as_nop 6730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6731/* end confdefs.h. */ 6732int i; 6733_ACEOF 6734if ac_fn_c_try_compile "$LINENO" 6735then : 6736 xorg_cv_cc_flag_unused_command_line_argument=yes 6737else $as_nop 6738 xorg_cv_cc_flag_unused_command_line_argument=no 6739fi 6740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6741fi 6742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6743printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6745 CFLAGS="$xorg_testset_save_CFLAGS" 6746fi 6747 6748found="no" 6749 6750 if test $found = "no" ; then 6751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6753 fi 6754 6755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6757 fi 6758 6759 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6760 6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6762printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6763 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6764 if eval test \${$cacheid+y} 6765then : 6766 printf %s "(cached) " >&6 6767else $as_nop 6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769/* end confdefs.h. */ 6770int i; 6771int 6772main (void) 6773{ 6774 6775 ; 6776 return 0; 6777} 6778_ACEOF 6779if ac_fn_c_try_link "$LINENO" 6780then : 6781 eval $cacheid=yes 6782else $as_nop 6783 eval $cacheid=no 6784fi 6785rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6786 conftest$ac_exeext conftest.$ac_ext 6787fi 6788 6789 6790 CFLAGS="$xorg_testset_save_CFLAGS" 6791 6792 eval supported=\$$cacheid 6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6794printf "%s\n" "$supported" >&6; } 6795 if test "$supported" = "yes" ; then 6796 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6797 found="yes" 6798 fi 6799 fi 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815xorg_testset_save_CFLAGS="$CFLAGS" 6816 6817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6820printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6821if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6822then : 6823 printf %s "(cached) " >&6 6824else $as_nop 6825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6826/* end confdefs.h. */ 6827int i; 6828_ACEOF 6829if ac_fn_c_try_compile "$LINENO" 6830then : 6831 xorg_cv_cc_flag_unknown_warning_option=yes 6832else $as_nop 6833 xorg_cv_cc_flag_unknown_warning_option=no 6834fi 6835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6836fi 6837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6838printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6840 CFLAGS="$xorg_testset_save_CFLAGS" 6841fi 6842 6843if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6846 fi 6847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6849printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6850if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6851then : 6852 printf %s "(cached) " >&6 6853else $as_nop 6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6855/* end confdefs.h. */ 6856int i; 6857_ACEOF 6858if ac_fn_c_try_compile "$LINENO" 6859then : 6860 xorg_cv_cc_flag_unused_command_line_argument=yes 6861else $as_nop 6862 xorg_cv_cc_flag_unused_command_line_argument=no 6863fi 6864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6865fi 6866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6867printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6869 CFLAGS="$xorg_testset_save_CFLAGS" 6870fi 6871 6872found="no" 6873 6874 if test $found = "no" ; then 6875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6877 fi 6878 6879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6881 fi 6882 6883 CFLAGS="$CFLAGS -Wredundant-decls" 6884 6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6886printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6887 cacheid=xorg_cv_cc_flag__Wredundant_decls 6888 if eval test \${$cacheid+y} 6889then : 6890 printf %s "(cached) " >&6 6891else $as_nop 6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894int i; 6895int 6896main (void) 6897{ 6898 6899 ; 6900 return 0; 6901} 6902_ACEOF 6903if ac_fn_c_try_link "$LINENO" 6904then : 6905 eval $cacheid=yes 6906else $as_nop 6907 eval $cacheid=no 6908fi 6909rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6910 conftest$ac_exeext conftest.$ac_ext 6911fi 6912 6913 6914 CFLAGS="$xorg_testset_save_CFLAGS" 6915 6916 eval supported=\$$cacheid 6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6918printf "%s\n" "$supported" >&6; } 6919 if test "$supported" = "yes" ; then 6920 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6921 found="yes" 6922 fi 6923 fi 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939xorg_testset_save_CFLAGS="$CFLAGS" 6940 6941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6945if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6946then : 6947 printf %s "(cached) " >&6 6948else $as_nop 6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6950/* end confdefs.h. */ 6951int i; 6952_ACEOF 6953if ac_fn_c_try_compile "$LINENO" 6954then : 6955 xorg_cv_cc_flag_unknown_warning_option=yes 6956else $as_nop 6957 xorg_cv_cc_flag_unknown_warning_option=no 6958fi 6959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6960fi 6961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6962printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6964 CFLAGS="$xorg_testset_save_CFLAGS" 6965fi 6966 6967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6970 fi 6971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6973printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6974if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6975then : 6976 printf %s "(cached) " >&6 6977else $as_nop 6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6979/* end confdefs.h. */ 6980int i; 6981_ACEOF 6982if ac_fn_c_try_compile "$LINENO" 6983then : 6984 xorg_cv_cc_flag_unused_command_line_argument=yes 6985else $as_nop 6986 xorg_cv_cc_flag_unused_command_line_argument=no 6987fi 6988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6989fi 6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6993 CFLAGS="$xorg_testset_save_CFLAGS" 6994fi 6995 6996found="no" 6997 6998 if test $found = "no" ; then 6999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7001 fi 7002 7003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7005 fi 7006 7007 CFLAGS="$CFLAGS -Wlogical-op" 7008 7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7010printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7011 cacheid=xorg_cv_cc_flag__Wlogical_op 7012 if eval test \${$cacheid+y} 7013then : 7014 printf %s "(cached) " >&6 7015else $as_nop 7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7017/* end confdefs.h. */ 7018int i; 7019int 7020main (void) 7021{ 7022 7023 ; 7024 return 0; 7025} 7026_ACEOF 7027if ac_fn_c_try_link "$LINENO" 7028then : 7029 eval $cacheid=yes 7030else $as_nop 7031 eval $cacheid=no 7032fi 7033rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7034 conftest$ac_exeext conftest.$ac_ext 7035fi 7036 7037 7038 CFLAGS="$xorg_testset_save_CFLAGS" 7039 7040 eval supported=\$$cacheid 7041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7042printf "%s\n" "$supported" >&6; } 7043 if test "$supported" = "yes" ; then 7044 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7045 found="yes" 7046 fi 7047 fi 7048 7049 7050 7051# These are currently disabled because they are noisy. They will be enabled 7052# in the future once the codebase is sufficiently modernized to silence 7053# them. For now, I don't want them to drown out the other warnings. 7054# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7055# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7056# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7057 7058# Turn some warnings into errors, so we don't accidently get successful builds 7059# when there are problems that should be fixed. 7060 7061if test "x$SELECTIVE_WERROR" = "xyes" ; then 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075xorg_testset_save_CFLAGS="$CFLAGS" 7076 7077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7081if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7082then : 7083 printf %s "(cached) " >&6 7084else $as_nop 7085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7086/* end confdefs.h. */ 7087int i; 7088_ACEOF 7089if ac_fn_c_try_compile "$LINENO" 7090then : 7091 xorg_cv_cc_flag_unknown_warning_option=yes 7092else $as_nop 7093 xorg_cv_cc_flag_unknown_warning_option=no 7094fi 7095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7096fi 7097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7099 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7100 CFLAGS="$xorg_testset_save_CFLAGS" 7101fi 7102 7103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7105 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7106 fi 7107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7110if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7111then : 7112 printf %s "(cached) " >&6 7113else $as_nop 7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7115/* end confdefs.h. */ 7116int i; 7117_ACEOF 7118if ac_fn_c_try_compile "$LINENO" 7119then : 7120 xorg_cv_cc_flag_unused_command_line_argument=yes 7121else $as_nop 7122 xorg_cv_cc_flag_unused_command_line_argument=no 7123fi 7124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7125fi 7126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7129 CFLAGS="$xorg_testset_save_CFLAGS" 7130fi 7131 7132found="no" 7133 7134 if test $found = "no" ; then 7135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7137 fi 7138 7139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7141 fi 7142 7143 CFLAGS="$CFLAGS -Werror=implicit" 7144 7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7146printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7147 cacheid=xorg_cv_cc_flag__Werror_implicit 7148 if eval test \${$cacheid+y} 7149then : 7150 printf %s "(cached) " >&6 7151else $as_nop 7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153/* end confdefs.h. */ 7154int i; 7155int 7156main (void) 7157{ 7158 7159 ; 7160 return 0; 7161} 7162_ACEOF 7163if ac_fn_c_try_link "$LINENO" 7164then : 7165 eval $cacheid=yes 7166else $as_nop 7167 eval $cacheid=no 7168fi 7169rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7170 conftest$ac_exeext conftest.$ac_ext 7171fi 7172 7173 7174 CFLAGS="$xorg_testset_save_CFLAGS" 7175 7176 eval supported=\$$cacheid 7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7178printf "%s\n" "$supported" >&6; } 7179 if test "$supported" = "yes" ; then 7180 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7181 found="yes" 7182 fi 7183 fi 7184 7185 if test $found = "no" ; then 7186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7188 fi 7189 7190 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7192 fi 7193 7194 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7195 7196 { 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 7197printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7198 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7199 if eval test \${$cacheid+y} 7200then : 7201 printf %s "(cached) " >&6 7202else $as_nop 7203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7204/* end confdefs.h. */ 7205int i; 7206int 7207main (void) 7208{ 7209 7210 ; 7211 return 0; 7212} 7213_ACEOF 7214if ac_fn_c_try_link "$LINENO" 7215then : 7216 eval $cacheid=yes 7217else $as_nop 7218 eval $cacheid=no 7219fi 7220rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7221 conftest$ac_exeext conftest.$ac_ext 7222fi 7223 7224 7225 CFLAGS="$xorg_testset_save_CFLAGS" 7226 7227 eval supported=\$$cacheid 7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7229printf "%s\n" "$supported" >&6; } 7230 if test "$supported" = "yes" ; then 7231 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7232 found="yes" 7233 fi 7234 fi 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250xorg_testset_save_CFLAGS="$CFLAGS" 7251 7252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7255printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7256if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7257then : 7258 printf %s "(cached) " >&6 7259else $as_nop 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261/* end confdefs.h. */ 7262int i; 7263_ACEOF 7264if ac_fn_c_try_compile "$LINENO" 7265then : 7266 xorg_cv_cc_flag_unknown_warning_option=yes 7267else $as_nop 7268 xorg_cv_cc_flag_unknown_warning_option=no 7269fi 7270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7271fi 7272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7273printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7275 CFLAGS="$xorg_testset_save_CFLAGS" 7276fi 7277 7278if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7281 fi 7282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7284printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7285if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7286then : 7287 printf %s "(cached) " >&6 7288else $as_nop 7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7290/* end confdefs.h. */ 7291int i; 7292_ACEOF 7293if ac_fn_c_try_compile "$LINENO" 7294then : 7295 xorg_cv_cc_flag_unused_command_line_argument=yes 7296else $as_nop 7297 xorg_cv_cc_flag_unused_command_line_argument=no 7298fi 7299rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7300fi 7301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7302printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7303 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7304 CFLAGS="$xorg_testset_save_CFLAGS" 7305fi 7306 7307found="no" 7308 7309 if test $found = "no" ; then 7310 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7312 fi 7313 7314 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7316 fi 7317 7318 CFLAGS="$CFLAGS -Werror=nonnull" 7319 7320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7321printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7322 cacheid=xorg_cv_cc_flag__Werror_nonnull 7323 if eval test \${$cacheid+y} 7324then : 7325 printf %s "(cached) " >&6 7326else $as_nop 7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329int i; 7330int 7331main (void) 7332{ 7333 7334 ; 7335 return 0; 7336} 7337_ACEOF 7338if ac_fn_c_try_link "$LINENO" 7339then : 7340 eval $cacheid=yes 7341else $as_nop 7342 eval $cacheid=no 7343fi 7344rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7345 conftest$ac_exeext conftest.$ac_ext 7346fi 7347 7348 7349 CFLAGS="$xorg_testset_save_CFLAGS" 7350 7351 eval supported=\$$cacheid 7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7353printf "%s\n" "$supported" >&6; } 7354 if test "$supported" = "yes" ; then 7355 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7356 found="yes" 7357 fi 7358 fi 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374xorg_testset_save_CFLAGS="$CFLAGS" 7375 7376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7379printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7380if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7381then : 7382 printf %s "(cached) " >&6 7383else $as_nop 7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7385/* end confdefs.h. */ 7386int i; 7387_ACEOF 7388if ac_fn_c_try_compile "$LINENO" 7389then : 7390 xorg_cv_cc_flag_unknown_warning_option=yes 7391else $as_nop 7392 xorg_cv_cc_flag_unknown_warning_option=no 7393fi 7394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7395fi 7396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7397printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7399 CFLAGS="$xorg_testset_save_CFLAGS" 7400fi 7401 7402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7405 fi 7406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7408printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7409if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7410then : 7411 printf %s "(cached) " >&6 7412else $as_nop 7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7414/* end confdefs.h. */ 7415int i; 7416_ACEOF 7417if ac_fn_c_try_compile "$LINENO" 7418then : 7419 xorg_cv_cc_flag_unused_command_line_argument=yes 7420else $as_nop 7421 xorg_cv_cc_flag_unused_command_line_argument=no 7422fi 7423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7424fi 7425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7426printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7428 CFLAGS="$xorg_testset_save_CFLAGS" 7429fi 7430 7431found="no" 7432 7433 if test $found = "no" ; then 7434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7436 fi 7437 7438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7440 fi 7441 7442 CFLAGS="$CFLAGS -Werror=init-self" 7443 7444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7445printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7446 cacheid=xorg_cv_cc_flag__Werror_init_self 7447 if eval test \${$cacheid+y} 7448then : 7449 printf %s "(cached) " >&6 7450else $as_nop 7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452/* end confdefs.h. */ 7453int i; 7454int 7455main (void) 7456{ 7457 7458 ; 7459 return 0; 7460} 7461_ACEOF 7462if ac_fn_c_try_link "$LINENO" 7463then : 7464 eval $cacheid=yes 7465else $as_nop 7466 eval $cacheid=no 7467fi 7468rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7469 conftest$ac_exeext conftest.$ac_ext 7470fi 7471 7472 7473 CFLAGS="$xorg_testset_save_CFLAGS" 7474 7475 eval supported=\$$cacheid 7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7477printf "%s\n" "$supported" >&6; } 7478 if test "$supported" = "yes" ; then 7479 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7480 found="yes" 7481 fi 7482 fi 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498xorg_testset_save_CFLAGS="$CFLAGS" 7499 7500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7503printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7504if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7505then : 7506 printf %s "(cached) " >&6 7507else $as_nop 7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7509/* end confdefs.h. */ 7510int i; 7511_ACEOF 7512if ac_fn_c_try_compile "$LINENO" 7513then : 7514 xorg_cv_cc_flag_unknown_warning_option=yes 7515else $as_nop 7516 xorg_cv_cc_flag_unknown_warning_option=no 7517fi 7518rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7519fi 7520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7521printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7523 CFLAGS="$xorg_testset_save_CFLAGS" 7524fi 7525 7526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7528 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7529 fi 7530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7532printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7533if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7534then : 7535 printf %s "(cached) " >&6 7536else $as_nop 7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538/* end confdefs.h. */ 7539int i; 7540_ACEOF 7541if ac_fn_c_try_compile "$LINENO" 7542then : 7543 xorg_cv_cc_flag_unused_command_line_argument=yes 7544else $as_nop 7545 xorg_cv_cc_flag_unused_command_line_argument=no 7546fi 7547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7548fi 7549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7552 CFLAGS="$xorg_testset_save_CFLAGS" 7553fi 7554 7555found="no" 7556 7557 if test $found = "no" ; then 7558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7560 fi 7561 7562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7564 fi 7565 7566 CFLAGS="$CFLAGS -Werror=main" 7567 7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7569printf %s "checking if $CC supports -Werror=main... " >&6; } 7570 cacheid=xorg_cv_cc_flag__Werror_main 7571 if eval test \${$cacheid+y} 7572then : 7573 printf %s "(cached) " >&6 7574else $as_nop 7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7576/* end confdefs.h. */ 7577int i; 7578int 7579main (void) 7580{ 7581 7582 ; 7583 return 0; 7584} 7585_ACEOF 7586if ac_fn_c_try_link "$LINENO" 7587then : 7588 eval $cacheid=yes 7589else $as_nop 7590 eval $cacheid=no 7591fi 7592rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7593 conftest$ac_exeext conftest.$ac_ext 7594fi 7595 7596 7597 CFLAGS="$xorg_testset_save_CFLAGS" 7598 7599 eval supported=\$$cacheid 7600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7601printf "%s\n" "$supported" >&6; } 7602 if test "$supported" = "yes" ; then 7603 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7604 found="yes" 7605 fi 7606 fi 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622xorg_testset_save_CFLAGS="$CFLAGS" 7623 7624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7627printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7628if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7629then : 7630 printf %s "(cached) " >&6 7631else $as_nop 7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7633/* end confdefs.h. */ 7634int i; 7635_ACEOF 7636if ac_fn_c_try_compile "$LINENO" 7637then : 7638 xorg_cv_cc_flag_unknown_warning_option=yes 7639else $as_nop 7640 xorg_cv_cc_flag_unknown_warning_option=no 7641fi 7642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7643fi 7644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7645printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7646 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7647 CFLAGS="$xorg_testset_save_CFLAGS" 7648fi 7649 7650if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7651 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7653 fi 7654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7656printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7657if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7658then : 7659 printf %s "(cached) " >&6 7660else $as_nop 7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7662/* end confdefs.h. */ 7663int i; 7664_ACEOF 7665if ac_fn_c_try_compile "$LINENO" 7666then : 7667 xorg_cv_cc_flag_unused_command_line_argument=yes 7668else $as_nop 7669 xorg_cv_cc_flag_unused_command_line_argument=no 7670fi 7671rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7672fi 7673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7674printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7676 CFLAGS="$xorg_testset_save_CFLAGS" 7677fi 7678 7679found="no" 7680 7681 if test $found = "no" ; then 7682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7684 fi 7685 7686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7688 fi 7689 7690 CFLAGS="$CFLAGS -Werror=missing-braces" 7691 7692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7693printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7694 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7695 if eval test \${$cacheid+y} 7696then : 7697 printf %s "(cached) " >&6 7698else $as_nop 7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700/* end confdefs.h. */ 7701int i; 7702int 7703main (void) 7704{ 7705 7706 ; 7707 return 0; 7708} 7709_ACEOF 7710if ac_fn_c_try_link "$LINENO" 7711then : 7712 eval $cacheid=yes 7713else $as_nop 7714 eval $cacheid=no 7715fi 7716rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7717 conftest$ac_exeext conftest.$ac_ext 7718fi 7719 7720 7721 CFLAGS="$xorg_testset_save_CFLAGS" 7722 7723 eval supported=\$$cacheid 7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7725printf "%s\n" "$supported" >&6; } 7726 if test "$supported" = "yes" ; then 7727 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7728 found="yes" 7729 fi 7730 fi 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746xorg_testset_save_CFLAGS="$CFLAGS" 7747 7748if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7749 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7751printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7752if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7753then : 7754 printf %s "(cached) " >&6 7755else $as_nop 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7757/* end confdefs.h. */ 7758int i; 7759_ACEOF 7760if ac_fn_c_try_compile "$LINENO" 7761then : 7762 xorg_cv_cc_flag_unknown_warning_option=yes 7763else $as_nop 7764 xorg_cv_cc_flag_unknown_warning_option=no 7765fi 7766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7767fi 7768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7769printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7771 CFLAGS="$xorg_testset_save_CFLAGS" 7772fi 7773 7774if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7777 fi 7778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7780printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7781if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7782then : 7783 printf %s "(cached) " >&6 7784else $as_nop 7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7786/* end confdefs.h. */ 7787int i; 7788_ACEOF 7789if ac_fn_c_try_compile "$LINENO" 7790then : 7791 xorg_cv_cc_flag_unused_command_line_argument=yes 7792else $as_nop 7793 xorg_cv_cc_flag_unused_command_line_argument=no 7794fi 7795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7796fi 7797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7800 CFLAGS="$xorg_testset_save_CFLAGS" 7801fi 7802 7803found="no" 7804 7805 if test $found = "no" ; then 7806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7808 fi 7809 7810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7812 fi 7813 7814 CFLAGS="$CFLAGS -Werror=sequence-point" 7815 7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7817printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7818 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7819 if eval test \${$cacheid+y} 7820then : 7821 printf %s "(cached) " >&6 7822else $as_nop 7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7824/* end confdefs.h. */ 7825int i; 7826int 7827main (void) 7828{ 7829 7830 ; 7831 return 0; 7832} 7833_ACEOF 7834if ac_fn_c_try_link "$LINENO" 7835then : 7836 eval $cacheid=yes 7837else $as_nop 7838 eval $cacheid=no 7839fi 7840rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7841 conftest$ac_exeext conftest.$ac_ext 7842fi 7843 7844 7845 CFLAGS="$xorg_testset_save_CFLAGS" 7846 7847 eval supported=\$$cacheid 7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7849printf "%s\n" "$supported" >&6; } 7850 if test "$supported" = "yes" ; then 7851 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7852 found="yes" 7853 fi 7854 fi 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870xorg_testset_save_CFLAGS="$CFLAGS" 7871 7872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7875printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7876if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7877then : 7878 printf %s "(cached) " >&6 7879else $as_nop 7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7881/* end confdefs.h. */ 7882int i; 7883_ACEOF 7884if ac_fn_c_try_compile "$LINENO" 7885then : 7886 xorg_cv_cc_flag_unknown_warning_option=yes 7887else $as_nop 7888 xorg_cv_cc_flag_unknown_warning_option=no 7889fi 7890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7891fi 7892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7894 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7895 CFLAGS="$xorg_testset_save_CFLAGS" 7896fi 7897 7898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7899 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7901 fi 7902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7905if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7906then : 7907 printf %s "(cached) " >&6 7908else $as_nop 7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7910/* end confdefs.h. */ 7911int i; 7912_ACEOF 7913if ac_fn_c_try_compile "$LINENO" 7914then : 7915 xorg_cv_cc_flag_unused_command_line_argument=yes 7916else $as_nop 7917 xorg_cv_cc_flag_unused_command_line_argument=no 7918fi 7919rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7920fi 7921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7922printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7924 CFLAGS="$xorg_testset_save_CFLAGS" 7925fi 7926 7927found="no" 7928 7929 if test $found = "no" ; then 7930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7932 fi 7933 7934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7936 fi 7937 7938 CFLAGS="$CFLAGS -Werror=return-type" 7939 7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7941printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7942 cacheid=xorg_cv_cc_flag__Werror_return_type 7943 if eval test \${$cacheid+y} 7944then : 7945 printf %s "(cached) " >&6 7946else $as_nop 7947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7948/* end confdefs.h. */ 7949int i; 7950int 7951main (void) 7952{ 7953 7954 ; 7955 return 0; 7956} 7957_ACEOF 7958if ac_fn_c_try_link "$LINENO" 7959then : 7960 eval $cacheid=yes 7961else $as_nop 7962 eval $cacheid=no 7963fi 7964rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7965 conftest$ac_exeext conftest.$ac_ext 7966fi 7967 7968 7969 CFLAGS="$xorg_testset_save_CFLAGS" 7970 7971 eval supported=\$$cacheid 7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7973printf "%s\n" "$supported" >&6; } 7974 if test "$supported" = "yes" ; then 7975 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7976 found="yes" 7977 fi 7978 fi 7979 7980 if test $found = "no" ; then 7981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7983 fi 7984 7985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7987 fi 7988 7989 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7990 7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7992printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7993 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7994 if eval test \${$cacheid+y} 7995then : 7996 printf %s "(cached) " >&6 7997else $as_nop 7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999/* end confdefs.h. */ 8000int i; 8001int 8002main (void) 8003{ 8004 8005 ; 8006 return 0; 8007} 8008_ACEOF 8009if ac_fn_c_try_link "$LINENO" 8010then : 8011 eval $cacheid=yes 8012else $as_nop 8013 eval $cacheid=no 8014fi 8015rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8016 conftest$ac_exeext conftest.$ac_ext 8017fi 8018 8019 8020 CFLAGS="$xorg_testset_save_CFLAGS" 8021 8022 eval supported=\$$cacheid 8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8024printf "%s\n" "$supported" >&6; } 8025 if test "$supported" = "yes" ; then 8026 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8027 found="yes" 8028 fi 8029 fi 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045xorg_testset_save_CFLAGS="$CFLAGS" 8046 8047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8050printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8051if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8052then : 8053 printf %s "(cached) " >&6 8054else $as_nop 8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8056/* end confdefs.h. */ 8057int i; 8058_ACEOF 8059if ac_fn_c_try_compile "$LINENO" 8060then : 8061 xorg_cv_cc_flag_unknown_warning_option=yes 8062else $as_nop 8063 xorg_cv_cc_flag_unknown_warning_option=no 8064fi 8065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8066fi 8067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8068printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8070 CFLAGS="$xorg_testset_save_CFLAGS" 8071fi 8072 8073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8076 fi 8077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8079printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8080if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8081then : 8082 printf %s "(cached) " >&6 8083else $as_nop 8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8085/* end confdefs.h. */ 8086int i; 8087_ACEOF 8088if ac_fn_c_try_compile "$LINENO" 8089then : 8090 xorg_cv_cc_flag_unused_command_line_argument=yes 8091else $as_nop 8092 xorg_cv_cc_flag_unused_command_line_argument=no 8093fi 8094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8095fi 8096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8097printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8099 CFLAGS="$xorg_testset_save_CFLAGS" 8100fi 8101 8102found="no" 8103 8104 if test $found = "no" ; then 8105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8107 fi 8108 8109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8111 fi 8112 8113 CFLAGS="$CFLAGS -Werror=trigraphs" 8114 8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8116printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8117 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8118 if eval test \${$cacheid+y} 8119then : 8120 printf %s "(cached) " >&6 8121else $as_nop 8122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8123/* end confdefs.h. */ 8124int i; 8125int 8126main (void) 8127{ 8128 8129 ; 8130 return 0; 8131} 8132_ACEOF 8133if ac_fn_c_try_link "$LINENO" 8134then : 8135 eval $cacheid=yes 8136else $as_nop 8137 eval $cacheid=no 8138fi 8139rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8140 conftest$ac_exeext conftest.$ac_ext 8141fi 8142 8143 8144 CFLAGS="$xorg_testset_save_CFLAGS" 8145 8146 eval supported=\$$cacheid 8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8148printf "%s\n" "$supported" >&6; } 8149 if test "$supported" = "yes" ; then 8150 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8151 found="yes" 8152 fi 8153 fi 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169xorg_testset_save_CFLAGS="$CFLAGS" 8170 8171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8174printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8175if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8176then : 8177 printf %s "(cached) " >&6 8178else $as_nop 8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8180/* end confdefs.h. */ 8181int i; 8182_ACEOF 8183if ac_fn_c_try_compile "$LINENO" 8184then : 8185 xorg_cv_cc_flag_unknown_warning_option=yes 8186else $as_nop 8187 xorg_cv_cc_flag_unknown_warning_option=no 8188fi 8189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8190fi 8191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8192printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8194 CFLAGS="$xorg_testset_save_CFLAGS" 8195fi 8196 8197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8200 fi 8201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8203printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8204if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8205then : 8206 printf %s "(cached) " >&6 8207else $as_nop 8208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8209/* end confdefs.h. */ 8210int i; 8211_ACEOF 8212if ac_fn_c_try_compile "$LINENO" 8213then : 8214 xorg_cv_cc_flag_unused_command_line_argument=yes 8215else $as_nop 8216 xorg_cv_cc_flag_unused_command_line_argument=no 8217fi 8218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8219fi 8220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8221printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8222 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8223 CFLAGS="$xorg_testset_save_CFLAGS" 8224fi 8225 8226found="no" 8227 8228 if test $found = "no" ; then 8229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8231 fi 8232 8233 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8235 fi 8236 8237 CFLAGS="$CFLAGS -Werror=array-bounds" 8238 8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8240printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8241 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8242 if eval test \${$cacheid+y} 8243then : 8244 printf %s "(cached) " >&6 8245else $as_nop 8246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8247/* end confdefs.h. */ 8248int i; 8249int 8250main (void) 8251{ 8252 8253 ; 8254 return 0; 8255} 8256_ACEOF 8257if ac_fn_c_try_link "$LINENO" 8258then : 8259 eval $cacheid=yes 8260else $as_nop 8261 eval $cacheid=no 8262fi 8263rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8264 conftest$ac_exeext conftest.$ac_ext 8265fi 8266 8267 8268 CFLAGS="$xorg_testset_save_CFLAGS" 8269 8270 eval supported=\$$cacheid 8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8272printf "%s\n" "$supported" >&6; } 8273 if test "$supported" = "yes" ; then 8274 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8275 found="yes" 8276 fi 8277 fi 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293xorg_testset_save_CFLAGS="$CFLAGS" 8294 8295if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8298printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8299if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8300then : 8301 printf %s "(cached) " >&6 8302else $as_nop 8303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8304/* end confdefs.h. */ 8305int i; 8306_ACEOF 8307if ac_fn_c_try_compile "$LINENO" 8308then : 8309 xorg_cv_cc_flag_unknown_warning_option=yes 8310else $as_nop 8311 xorg_cv_cc_flag_unknown_warning_option=no 8312fi 8313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8314fi 8315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8316printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8318 CFLAGS="$xorg_testset_save_CFLAGS" 8319fi 8320 8321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8324 fi 8325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8327printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8328if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8329then : 8330 printf %s "(cached) " >&6 8331else $as_nop 8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8333/* end confdefs.h. */ 8334int i; 8335_ACEOF 8336if ac_fn_c_try_compile "$LINENO" 8337then : 8338 xorg_cv_cc_flag_unused_command_line_argument=yes 8339else $as_nop 8340 xorg_cv_cc_flag_unused_command_line_argument=no 8341fi 8342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8343fi 8344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8345printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8347 CFLAGS="$xorg_testset_save_CFLAGS" 8348fi 8349 8350found="no" 8351 8352 if test $found = "no" ; then 8353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8355 fi 8356 8357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8359 fi 8360 8361 CFLAGS="$CFLAGS -Werror=write-strings" 8362 8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8364printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8365 cacheid=xorg_cv_cc_flag__Werror_write_strings 8366 if eval test \${$cacheid+y} 8367then : 8368 printf %s "(cached) " >&6 8369else $as_nop 8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8371/* end confdefs.h. */ 8372int i; 8373int 8374main (void) 8375{ 8376 8377 ; 8378 return 0; 8379} 8380_ACEOF 8381if ac_fn_c_try_link "$LINENO" 8382then : 8383 eval $cacheid=yes 8384else $as_nop 8385 eval $cacheid=no 8386fi 8387rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8388 conftest$ac_exeext conftest.$ac_ext 8389fi 8390 8391 8392 CFLAGS="$xorg_testset_save_CFLAGS" 8393 8394 eval supported=\$$cacheid 8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8396printf "%s\n" "$supported" >&6; } 8397 if test "$supported" = "yes" ; then 8398 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8399 found="yes" 8400 fi 8401 fi 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417xorg_testset_save_CFLAGS="$CFLAGS" 8418 8419if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8422printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8423if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8424then : 8425 printf %s "(cached) " >&6 8426else $as_nop 8427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8428/* end confdefs.h. */ 8429int i; 8430_ACEOF 8431if ac_fn_c_try_compile "$LINENO" 8432then : 8433 xorg_cv_cc_flag_unknown_warning_option=yes 8434else $as_nop 8435 xorg_cv_cc_flag_unknown_warning_option=no 8436fi 8437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8438fi 8439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8440printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8442 CFLAGS="$xorg_testset_save_CFLAGS" 8443fi 8444 8445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8448 fi 8449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8451printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8452if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8453then : 8454 printf %s "(cached) " >&6 8455else $as_nop 8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8457/* end confdefs.h. */ 8458int i; 8459_ACEOF 8460if ac_fn_c_try_compile "$LINENO" 8461then : 8462 xorg_cv_cc_flag_unused_command_line_argument=yes 8463else $as_nop 8464 xorg_cv_cc_flag_unused_command_line_argument=no 8465fi 8466rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8467fi 8468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8469printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8471 CFLAGS="$xorg_testset_save_CFLAGS" 8472fi 8473 8474found="no" 8475 8476 if test $found = "no" ; then 8477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8479 fi 8480 8481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8483 fi 8484 8485 CFLAGS="$CFLAGS -Werror=address" 8486 8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8488printf %s "checking if $CC supports -Werror=address... " >&6; } 8489 cacheid=xorg_cv_cc_flag__Werror_address 8490 if eval test \${$cacheid+y} 8491then : 8492 printf %s "(cached) " >&6 8493else $as_nop 8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8495/* end confdefs.h. */ 8496int i; 8497int 8498main (void) 8499{ 8500 8501 ; 8502 return 0; 8503} 8504_ACEOF 8505if ac_fn_c_try_link "$LINENO" 8506then : 8507 eval $cacheid=yes 8508else $as_nop 8509 eval $cacheid=no 8510fi 8511rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8512 conftest$ac_exeext conftest.$ac_ext 8513fi 8514 8515 8516 CFLAGS="$xorg_testset_save_CFLAGS" 8517 8518 eval supported=\$$cacheid 8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8520printf "%s\n" "$supported" >&6; } 8521 if test "$supported" = "yes" ; then 8522 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8523 found="yes" 8524 fi 8525 fi 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541xorg_testset_save_CFLAGS="$CFLAGS" 8542 8543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8546printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8547if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8548then : 8549 printf %s "(cached) " >&6 8550else $as_nop 8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8552/* end confdefs.h. */ 8553int i; 8554_ACEOF 8555if ac_fn_c_try_compile "$LINENO" 8556then : 8557 xorg_cv_cc_flag_unknown_warning_option=yes 8558else $as_nop 8559 xorg_cv_cc_flag_unknown_warning_option=no 8560fi 8561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8562fi 8563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8564printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8566 CFLAGS="$xorg_testset_save_CFLAGS" 8567fi 8568 8569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8572 fi 8573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8575printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8576if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8577then : 8578 printf %s "(cached) " >&6 8579else $as_nop 8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8581/* end confdefs.h. */ 8582int i; 8583_ACEOF 8584if ac_fn_c_try_compile "$LINENO" 8585then : 8586 xorg_cv_cc_flag_unused_command_line_argument=yes 8587else $as_nop 8588 xorg_cv_cc_flag_unused_command_line_argument=no 8589fi 8590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8591fi 8592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8593printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8595 CFLAGS="$xorg_testset_save_CFLAGS" 8596fi 8597 8598found="no" 8599 8600 if test $found = "no" ; then 8601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8603 fi 8604 8605 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8607 fi 8608 8609 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8610 8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8612printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8613 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8614 if eval test \${$cacheid+y} 8615then : 8616 printf %s "(cached) " >&6 8617else $as_nop 8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8619/* end confdefs.h. */ 8620int i; 8621int 8622main (void) 8623{ 8624 8625 ; 8626 return 0; 8627} 8628_ACEOF 8629if ac_fn_c_try_link "$LINENO" 8630then : 8631 eval $cacheid=yes 8632else $as_nop 8633 eval $cacheid=no 8634fi 8635rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8636 conftest$ac_exeext conftest.$ac_ext 8637fi 8638 8639 8640 CFLAGS="$xorg_testset_save_CFLAGS" 8641 8642 eval supported=\$$cacheid 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8644printf "%s\n" "$supported" >&6; } 8645 if test "$supported" = "yes" ; then 8646 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8647 found="yes" 8648 fi 8649 fi 8650 8651 if test $found = "no" ; then 8652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8654 fi 8655 8656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8658 fi 8659 8660 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8661 8662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8663printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8664 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8665 if eval test \${$cacheid+y} 8666then : 8667 printf %s "(cached) " >&6 8668else $as_nop 8669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8670/* end confdefs.h. */ 8671int i; 8672int 8673main (void) 8674{ 8675 8676 ; 8677 return 0; 8678} 8679_ACEOF 8680if ac_fn_c_try_link "$LINENO" 8681then : 8682 eval $cacheid=yes 8683else $as_nop 8684 eval $cacheid=no 8685fi 8686rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8687 conftest$ac_exeext conftest.$ac_ext 8688fi 8689 8690 8691 CFLAGS="$xorg_testset_save_CFLAGS" 8692 8693 eval supported=\$$cacheid 8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8695printf "%s\n" "$supported" >&6; } 8696 if test "$supported" = "yes" ; then 8697 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8698 found="yes" 8699 fi 8700 fi 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716xorg_testset_save_CFLAGS="$CFLAGS" 8717 8718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8721printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8722if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8723then : 8724 printf %s "(cached) " >&6 8725else $as_nop 8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8727/* end confdefs.h. */ 8728int i; 8729_ACEOF 8730if ac_fn_c_try_compile "$LINENO" 8731then : 8732 xorg_cv_cc_flag_unknown_warning_option=yes 8733else $as_nop 8734 xorg_cv_cc_flag_unknown_warning_option=no 8735fi 8736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8737fi 8738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8741 CFLAGS="$xorg_testset_save_CFLAGS" 8742fi 8743 8744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8747 fi 8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8751if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8752then : 8753 printf %s "(cached) " >&6 8754else $as_nop 8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8756/* end confdefs.h. */ 8757int i; 8758_ACEOF 8759if ac_fn_c_try_compile "$LINENO" 8760then : 8761 xorg_cv_cc_flag_unused_command_line_argument=yes 8762else $as_nop 8763 xorg_cv_cc_flag_unused_command_line_argument=no 8764fi 8765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8766fi 8767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8770 CFLAGS="$xorg_testset_save_CFLAGS" 8771fi 8772 8773found="no" 8774 8775 if test $found = "no" ; then 8776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8778 fi 8779 8780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8782 fi 8783 8784 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8785 8786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8787printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8788 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8789 if eval test \${$cacheid+y} 8790then : 8791 printf %s "(cached) " >&6 8792else $as_nop 8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8794/* end confdefs.h. */ 8795int i; 8796int 8797main (void) 8798{ 8799 8800 ; 8801 return 0; 8802} 8803_ACEOF 8804if ac_fn_c_try_link "$LINENO" 8805then : 8806 eval $cacheid=yes 8807else $as_nop 8808 eval $cacheid=no 8809fi 8810rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8811 conftest$ac_exeext conftest.$ac_ext 8812fi 8813 8814 8815 CFLAGS="$xorg_testset_save_CFLAGS" 8816 8817 eval supported=\$$cacheid 8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8819printf "%s\n" "$supported" >&6; } 8820 if test "$supported" = "yes" ; then 8821 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8822 found="yes" 8823 fi 8824 fi 8825 8826 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8827else 8828{ 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 8829printf "%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;} 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843xorg_testset_save_CFLAGS="$CFLAGS" 8844 8845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8849if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8850then : 8851 printf %s "(cached) " >&6 8852else $as_nop 8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8854/* end confdefs.h. */ 8855int i; 8856_ACEOF 8857if ac_fn_c_try_compile "$LINENO" 8858then : 8859 xorg_cv_cc_flag_unknown_warning_option=yes 8860else $as_nop 8861 xorg_cv_cc_flag_unknown_warning_option=no 8862fi 8863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8864fi 8865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8866printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8868 CFLAGS="$xorg_testset_save_CFLAGS" 8869fi 8870 8871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8874 fi 8875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8877printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8878if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8879then : 8880 printf %s "(cached) " >&6 8881else $as_nop 8882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8883/* end confdefs.h. */ 8884int i; 8885_ACEOF 8886if ac_fn_c_try_compile "$LINENO" 8887then : 8888 xorg_cv_cc_flag_unused_command_line_argument=yes 8889else $as_nop 8890 xorg_cv_cc_flag_unused_command_line_argument=no 8891fi 8892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8893fi 8894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8895printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8897 CFLAGS="$xorg_testset_save_CFLAGS" 8898fi 8899 8900found="no" 8901 8902 if test $found = "no" ; then 8903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8905 fi 8906 8907 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8909 fi 8910 8911 CFLAGS="$CFLAGS -Wimplicit" 8912 8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8914printf %s "checking if $CC supports -Wimplicit... " >&6; } 8915 cacheid=xorg_cv_cc_flag__Wimplicit 8916 if eval test \${$cacheid+y} 8917then : 8918 printf %s "(cached) " >&6 8919else $as_nop 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921/* end confdefs.h. */ 8922int i; 8923int 8924main (void) 8925{ 8926 8927 ; 8928 return 0; 8929} 8930_ACEOF 8931if ac_fn_c_try_link "$LINENO" 8932then : 8933 eval $cacheid=yes 8934else $as_nop 8935 eval $cacheid=no 8936fi 8937rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8938 conftest$ac_exeext conftest.$ac_ext 8939fi 8940 8941 8942 CFLAGS="$xorg_testset_save_CFLAGS" 8943 8944 eval supported=\$$cacheid 8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8946printf "%s\n" "$supported" >&6; } 8947 if test "$supported" = "yes" ; then 8948 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8949 found="yes" 8950 fi 8951 fi 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967xorg_testset_save_CFLAGS="$CFLAGS" 8968 8969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8973if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8974then : 8975 printf %s "(cached) " >&6 8976else $as_nop 8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8978/* end confdefs.h. */ 8979int i; 8980_ACEOF 8981if ac_fn_c_try_compile "$LINENO" 8982then : 8983 xorg_cv_cc_flag_unknown_warning_option=yes 8984else $as_nop 8985 xorg_cv_cc_flag_unknown_warning_option=no 8986fi 8987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8988fi 8989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8990printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8991 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8992 CFLAGS="$xorg_testset_save_CFLAGS" 8993fi 8994 8995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8997 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8998 fi 8999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9001printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9002if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9003then : 9004 printf %s "(cached) " >&6 9005else $as_nop 9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9007/* end confdefs.h. */ 9008int i; 9009_ACEOF 9010if ac_fn_c_try_compile "$LINENO" 9011then : 9012 xorg_cv_cc_flag_unused_command_line_argument=yes 9013else $as_nop 9014 xorg_cv_cc_flag_unused_command_line_argument=no 9015fi 9016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9017fi 9018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9019printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9021 CFLAGS="$xorg_testset_save_CFLAGS" 9022fi 9023 9024found="no" 9025 9026 if test $found = "no" ; then 9027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9029 fi 9030 9031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9033 fi 9034 9035 CFLAGS="$CFLAGS -Wnonnull" 9036 9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9038printf %s "checking if $CC supports -Wnonnull... " >&6; } 9039 cacheid=xorg_cv_cc_flag__Wnonnull 9040 if eval test \${$cacheid+y} 9041then : 9042 printf %s "(cached) " >&6 9043else $as_nop 9044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9045/* end confdefs.h. */ 9046int i; 9047int 9048main (void) 9049{ 9050 9051 ; 9052 return 0; 9053} 9054_ACEOF 9055if ac_fn_c_try_link "$LINENO" 9056then : 9057 eval $cacheid=yes 9058else $as_nop 9059 eval $cacheid=no 9060fi 9061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9062 conftest$ac_exeext conftest.$ac_ext 9063fi 9064 9065 9066 CFLAGS="$xorg_testset_save_CFLAGS" 9067 9068 eval supported=\$$cacheid 9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9070printf "%s\n" "$supported" >&6; } 9071 if test "$supported" = "yes" ; then 9072 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9073 found="yes" 9074 fi 9075 fi 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091xorg_testset_save_CFLAGS="$CFLAGS" 9092 9093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9097if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9098then : 9099 printf %s "(cached) " >&6 9100else $as_nop 9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9102/* end confdefs.h. */ 9103int i; 9104_ACEOF 9105if ac_fn_c_try_compile "$LINENO" 9106then : 9107 xorg_cv_cc_flag_unknown_warning_option=yes 9108else $as_nop 9109 xorg_cv_cc_flag_unknown_warning_option=no 9110fi 9111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9112fi 9113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9116 CFLAGS="$xorg_testset_save_CFLAGS" 9117fi 9118 9119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9122 fi 9123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9126if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9127then : 9128 printf %s "(cached) " >&6 9129else $as_nop 9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9131/* end confdefs.h. */ 9132int i; 9133_ACEOF 9134if ac_fn_c_try_compile "$LINENO" 9135then : 9136 xorg_cv_cc_flag_unused_command_line_argument=yes 9137else $as_nop 9138 xorg_cv_cc_flag_unused_command_line_argument=no 9139fi 9140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9141fi 9142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9145 CFLAGS="$xorg_testset_save_CFLAGS" 9146fi 9147 9148found="no" 9149 9150 if test $found = "no" ; then 9151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9153 fi 9154 9155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9157 fi 9158 9159 CFLAGS="$CFLAGS -Winit-self" 9160 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9162printf %s "checking if $CC supports -Winit-self... " >&6; } 9163 cacheid=xorg_cv_cc_flag__Winit_self 9164 if eval test \${$cacheid+y} 9165then : 9166 printf %s "(cached) " >&6 9167else $as_nop 9168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9169/* end confdefs.h. */ 9170int i; 9171int 9172main (void) 9173{ 9174 9175 ; 9176 return 0; 9177} 9178_ACEOF 9179if ac_fn_c_try_link "$LINENO" 9180then : 9181 eval $cacheid=yes 9182else $as_nop 9183 eval $cacheid=no 9184fi 9185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9186 conftest$ac_exeext conftest.$ac_ext 9187fi 9188 9189 9190 CFLAGS="$xorg_testset_save_CFLAGS" 9191 9192 eval supported=\$$cacheid 9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9194printf "%s\n" "$supported" >&6; } 9195 if test "$supported" = "yes" ; then 9196 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9197 found="yes" 9198 fi 9199 fi 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215xorg_testset_save_CFLAGS="$CFLAGS" 9216 9217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9220printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9221if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9222then : 9223 printf %s "(cached) " >&6 9224else $as_nop 9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9226/* end confdefs.h. */ 9227int i; 9228_ACEOF 9229if ac_fn_c_try_compile "$LINENO" 9230then : 9231 xorg_cv_cc_flag_unknown_warning_option=yes 9232else $as_nop 9233 xorg_cv_cc_flag_unknown_warning_option=no 9234fi 9235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9236fi 9237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9238printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9240 CFLAGS="$xorg_testset_save_CFLAGS" 9241fi 9242 9243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9246 fi 9247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9249printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9250if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9251then : 9252 printf %s "(cached) " >&6 9253else $as_nop 9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9255/* end confdefs.h. */ 9256int i; 9257_ACEOF 9258if ac_fn_c_try_compile "$LINENO" 9259then : 9260 xorg_cv_cc_flag_unused_command_line_argument=yes 9261else $as_nop 9262 xorg_cv_cc_flag_unused_command_line_argument=no 9263fi 9264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9265fi 9266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9267printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9269 CFLAGS="$xorg_testset_save_CFLAGS" 9270fi 9271 9272found="no" 9273 9274 if test $found = "no" ; then 9275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9277 fi 9278 9279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9281 fi 9282 9283 CFLAGS="$CFLAGS -Wmain" 9284 9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9286printf %s "checking if $CC supports -Wmain... " >&6; } 9287 cacheid=xorg_cv_cc_flag__Wmain 9288 if eval test \${$cacheid+y} 9289then : 9290 printf %s "(cached) " >&6 9291else $as_nop 9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9293/* end confdefs.h. */ 9294int i; 9295int 9296main (void) 9297{ 9298 9299 ; 9300 return 0; 9301} 9302_ACEOF 9303if ac_fn_c_try_link "$LINENO" 9304then : 9305 eval $cacheid=yes 9306else $as_nop 9307 eval $cacheid=no 9308fi 9309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9310 conftest$ac_exeext conftest.$ac_ext 9311fi 9312 9313 9314 CFLAGS="$xorg_testset_save_CFLAGS" 9315 9316 eval supported=\$$cacheid 9317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9318printf "%s\n" "$supported" >&6; } 9319 if test "$supported" = "yes" ; then 9320 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9321 found="yes" 9322 fi 9323 fi 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339xorg_testset_save_CFLAGS="$CFLAGS" 9340 9341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9344printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9345if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9346then : 9347 printf %s "(cached) " >&6 9348else $as_nop 9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9350/* end confdefs.h. */ 9351int i; 9352_ACEOF 9353if ac_fn_c_try_compile "$LINENO" 9354then : 9355 xorg_cv_cc_flag_unknown_warning_option=yes 9356else $as_nop 9357 xorg_cv_cc_flag_unknown_warning_option=no 9358fi 9359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9360fi 9361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9362printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9364 CFLAGS="$xorg_testset_save_CFLAGS" 9365fi 9366 9367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9370 fi 9371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9373printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9374if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9375then : 9376 printf %s "(cached) " >&6 9377else $as_nop 9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9379/* end confdefs.h. */ 9380int i; 9381_ACEOF 9382if ac_fn_c_try_compile "$LINENO" 9383then : 9384 xorg_cv_cc_flag_unused_command_line_argument=yes 9385else $as_nop 9386 xorg_cv_cc_flag_unused_command_line_argument=no 9387fi 9388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9389fi 9390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9391printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9393 CFLAGS="$xorg_testset_save_CFLAGS" 9394fi 9395 9396found="no" 9397 9398 if test $found = "no" ; then 9399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9401 fi 9402 9403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9405 fi 9406 9407 CFLAGS="$CFLAGS -Wmissing-braces" 9408 9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9410printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9411 cacheid=xorg_cv_cc_flag__Wmissing_braces 9412 if eval test \${$cacheid+y} 9413then : 9414 printf %s "(cached) " >&6 9415else $as_nop 9416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9417/* end confdefs.h. */ 9418int i; 9419int 9420main (void) 9421{ 9422 9423 ; 9424 return 0; 9425} 9426_ACEOF 9427if ac_fn_c_try_link "$LINENO" 9428then : 9429 eval $cacheid=yes 9430else $as_nop 9431 eval $cacheid=no 9432fi 9433rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9434 conftest$ac_exeext conftest.$ac_ext 9435fi 9436 9437 9438 CFLAGS="$xorg_testset_save_CFLAGS" 9439 9440 eval supported=\$$cacheid 9441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9442printf "%s\n" "$supported" >&6; } 9443 if test "$supported" = "yes" ; then 9444 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9445 found="yes" 9446 fi 9447 fi 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463xorg_testset_save_CFLAGS="$CFLAGS" 9464 9465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9468printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9469if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9470then : 9471 printf %s "(cached) " >&6 9472else $as_nop 9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9474/* end confdefs.h. */ 9475int i; 9476_ACEOF 9477if ac_fn_c_try_compile "$LINENO" 9478then : 9479 xorg_cv_cc_flag_unknown_warning_option=yes 9480else $as_nop 9481 xorg_cv_cc_flag_unknown_warning_option=no 9482fi 9483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9484fi 9485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9486printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9488 CFLAGS="$xorg_testset_save_CFLAGS" 9489fi 9490 9491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9494 fi 9495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9497printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9498if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9499then : 9500 printf %s "(cached) " >&6 9501else $as_nop 9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9503/* end confdefs.h. */ 9504int i; 9505_ACEOF 9506if ac_fn_c_try_compile "$LINENO" 9507then : 9508 xorg_cv_cc_flag_unused_command_line_argument=yes 9509else $as_nop 9510 xorg_cv_cc_flag_unused_command_line_argument=no 9511fi 9512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9513fi 9514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9517 CFLAGS="$xorg_testset_save_CFLAGS" 9518fi 9519 9520found="no" 9521 9522 if test $found = "no" ; then 9523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9525 fi 9526 9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9529 fi 9530 9531 CFLAGS="$CFLAGS -Wsequence-point" 9532 9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9534printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9535 cacheid=xorg_cv_cc_flag__Wsequence_point 9536 if eval test \${$cacheid+y} 9537then : 9538 printf %s "(cached) " >&6 9539else $as_nop 9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9541/* end confdefs.h. */ 9542int i; 9543int 9544main (void) 9545{ 9546 9547 ; 9548 return 0; 9549} 9550_ACEOF 9551if ac_fn_c_try_link "$LINENO" 9552then : 9553 eval $cacheid=yes 9554else $as_nop 9555 eval $cacheid=no 9556fi 9557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9558 conftest$ac_exeext conftest.$ac_ext 9559fi 9560 9561 9562 CFLAGS="$xorg_testset_save_CFLAGS" 9563 9564 eval supported=\$$cacheid 9565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9566printf "%s\n" "$supported" >&6; } 9567 if test "$supported" = "yes" ; then 9568 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9569 found="yes" 9570 fi 9571 fi 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587xorg_testset_save_CFLAGS="$CFLAGS" 9588 9589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9593if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9594then : 9595 printf %s "(cached) " >&6 9596else $as_nop 9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9598/* end confdefs.h. */ 9599int i; 9600_ACEOF 9601if ac_fn_c_try_compile "$LINENO" 9602then : 9603 xorg_cv_cc_flag_unknown_warning_option=yes 9604else $as_nop 9605 xorg_cv_cc_flag_unknown_warning_option=no 9606fi 9607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9608fi 9609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9612 CFLAGS="$xorg_testset_save_CFLAGS" 9613fi 9614 9615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9618 fi 9619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9622if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9623then : 9624 printf %s "(cached) " >&6 9625else $as_nop 9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9627/* end confdefs.h. */ 9628int i; 9629_ACEOF 9630if ac_fn_c_try_compile "$LINENO" 9631then : 9632 xorg_cv_cc_flag_unused_command_line_argument=yes 9633else $as_nop 9634 xorg_cv_cc_flag_unused_command_line_argument=no 9635fi 9636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9637fi 9638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9641 CFLAGS="$xorg_testset_save_CFLAGS" 9642fi 9643 9644found="no" 9645 9646 if test $found = "no" ; then 9647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9649 fi 9650 9651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9653 fi 9654 9655 CFLAGS="$CFLAGS -Wreturn-type" 9656 9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9658printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9659 cacheid=xorg_cv_cc_flag__Wreturn_type 9660 if eval test \${$cacheid+y} 9661then : 9662 printf %s "(cached) " >&6 9663else $as_nop 9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665/* end confdefs.h. */ 9666int i; 9667int 9668main (void) 9669{ 9670 9671 ; 9672 return 0; 9673} 9674_ACEOF 9675if ac_fn_c_try_link "$LINENO" 9676then : 9677 eval $cacheid=yes 9678else $as_nop 9679 eval $cacheid=no 9680fi 9681rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9682 conftest$ac_exeext conftest.$ac_ext 9683fi 9684 9685 9686 CFLAGS="$xorg_testset_save_CFLAGS" 9687 9688 eval supported=\$$cacheid 9689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9690printf "%s\n" "$supported" >&6; } 9691 if test "$supported" = "yes" ; then 9692 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9693 found="yes" 9694 fi 9695 fi 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711xorg_testset_save_CFLAGS="$CFLAGS" 9712 9713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9716printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9717if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9718then : 9719 printf %s "(cached) " >&6 9720else $as_nop 9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723int i; 9724_ACEOF 9725if ac_fn_c_try_compile "$LINENO" 9726then : 9727 xorg_cv_cc_flag_unknown_warning_option=yes 9728else $as_nop 9729 xorg_cv_cc_flag_unknown_warning_option=no 9730fi 9731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9732fi 9733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9734printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9736 CFLAGS="$xorg_testset_save_CFLAGS" 9737fi 9738 9739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9742 fi 9743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9745printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9746if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9747then : 9748 printf %s "(cached) " >&6 9749else $as_nop 9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9751/* end confdefs.h. */ 9752int i; 9753_ACEOF 9754if ac_fn_c_try_compile "$LINENO" 9755then : 9756 xorg_cv_cc_flag_unused_command_line_argument=yes 9757else $as_nop 9758 xorg_cv_cc_flag_unused_command_line_argument=no 9759fi 9760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9761fi 9762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9763printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9765 CFLAGS="$xorg_testset_save_CFLAGS" 9766fi 9767 9768found="no" 9769 9770 if test $found = "no" ; then 9771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9773 fi 9774 9775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9777 fi 9778 9779 CFLAGS="$CFLAGS -Wtrigraphs" 9780 9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9782printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9783 cacheid=xorg_cv_cc_flag__Wtrigraphs 9784 if eval test \${$cacheid+y} 9785then : 9786 printf %s "(cached) " >&6 9787else $as_nop 9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9789/* end confdefs.h. */ 9790int i; 9791int 9792main (void) 9793{ 9794 9795 ; 9796 return 0; 9797} 9798_ACEOF 9799if ac_fn_c_try_link "$LINENO" 9800then : 9801 eval $cacheid=yes 9802else $as_nop 9803 eval $cacheid=no 9804fi 9805rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9806 conftest$ac_exeext conftest.$ac_ext 9807fi 9808 9809 9810 CFLAGS="$xorg_testset_save_CFLAGS" 9811 9812 eval supported=\$$cacheid 9813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9814printf "%s\n" "$supported" >&6; } 9815 if test "$supported" = "yes" ; then 9816 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9817 found="yes" 9818 fi 9819 fi 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835xorg_testset_save_CFLAGS="$CFLAGS" 9836 9837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9840printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9841if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9842then : 9843 printf %s "(cached) " >&6 9844else $as_nop 9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9846/* end confdefs.h. */ 9847int i; 9848_ACEOF 9849if ac_fn_c_try_compile "$LINENO" 9850then : 9851 xorg_cv_cc_flag_unknown_warning_option=yes 9852else $as_nop 9853 xorg_cv_cc_flag_unknown_warning_option=no 9854fi 9855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9856fi 9857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9858printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9860 CFLAGS="$xorg_testset_save_CFLAGS" 9861fi 9862 9863if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9865 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9866 fi 9867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9869printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9870if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9871then : 9872 printf %s "(cached) " >&6 9873else $as_nop 9874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9875/* end confdefs.h. */ 9876int i; 9877_ACEOF 9878if ac_fn_c_try_compile "$LINENO" 9879then : 9880 xorg_cv_cc_flag_unused_command_line_argument=yes 9881else $as_nop 9882 xorg_cv_cc_flag_unused_command_line_argument=no 9883fi 9884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9885fi 9886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9887printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9889 CFLAGS="$xorg_testset_save_CFLAGS" 9890fi 9891 9892found="no" 9893 9894 if test $found = "no" ; then 9895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9897 fi 9898 9899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9901 fi 9902 9903 CFLAGS="$CFLAGS -Warray-bounds" 9904 9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9906printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9907 cacheid=xorg_cv_cc_flag__Warray_bounds 9908 if eval test \${$cacheid+y} 9909then : 9910 printf %s "(cached) " >&6 9911else $as_nop 9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9913/* end confdefs.h. */ 9914int i; 9915int 9916main (void) 9917{ 9918 9919 ; 9920 return 0; 9921} 9922_ACEOF 9923if ac_fn_c_try_link "$LINENO" 9924then : 9925 eval $cacheid=yes 9926else $as_nop 9927 eval $cacheid=no 9928fi 9929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9930 conftest$ac_exeext conftest.$ac_ext 9931fi 9932 9933 9934 CFLAGS="$xorg_testset_save_CFLAGS" 9935 9936 eval supported=\$$cacheid 9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9938printf "%s\n" "$supported" >&6; } 9939 if test "$supported" = "yes" ; then 9940 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9941 found="yes" 9942 fi 9943 fi 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959xorg_testset_save_CFLAGS="$CFLAGS" 9960 9961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9965if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9966then : 9967 printf %s "(cached) " >&6 9968else $as_nop 9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9970/* end confdefs.h. */ 9971int i; 9972_ACEOF 9973if ac_fn_c_try_compile "$LINENO" 9974then : 9975 xorg_cv_cc_flag_unknown_warning_option=yes 9976else $as_nop 9977 xorg_cv_cc_flag_unknown_warning_option=no 9978fi 9979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9980fi 9981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9984 CFLAGS="$xorg_testset_save_CFLAGS" 9985fi 9986 9987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9990 fi 9991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9994if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9995then : 9996 printf %s "(cached) " >&6 9997else $as_nop 9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000int i; 10001_ACEOF 10002if ac_fn_c_try_compile "$LINENO" 10003then : 10004 xorg_cv_cc_flag_unused_command_line_argument=yes 10005else $as_nop 10006 xorg_cv_cc_flag_unused_command_line_argument=no 10007fi 10008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10009fi 10010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10013 CFLAGS="$xorg_testset_save_CFLAGS" 10014fi 10015 10016found="no" 10017 10018 if test $found = "no" ; then 10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10021 fi 10022 10023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10025 fi 10026 10027 CFLAGS="$CFLAGS -Wwrite-strings" 10028 10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10030printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10031 cacheid=xorg_cv_cc_flag__Wwrite_strings 10032 if eval test \${$cacheid+y} 10033then : 10034 printf %s "(cached) " >&6 10035else $as_nop 10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10037/* end confdefs.h. */ 10038int i; 10039int 10040main (void) 10041{ 10042 10043 ; 10044 return 0; 10045} 10046_ACEOF 10047if ac_fn_c_try_link "$LINENO" 10048then : 10049 eval $cacheid=yes 10050else $as_nop 10051 eval $cacheid=no 10052fi 10053rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10054 conftest$ac_exeext conftest.$ac_ext 10055fi 10056 10057 10058 CFLAGS="$xorg_testset_save_CFLAGS" 10059 10060 eval supported=\$$cacheid 10061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10062printf "%s\n" "$supported" >&6; } 10063 if test "$supported" = "yes" ; then 10064 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10065 found="yes" 10066 fi 10067 fi 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083xorg_testset_save_CFLAGS="$CFLAGS" 10084 10085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10088printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10089if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10090then : 10091 printf %s "(cached) " >&6 10092else $as_nop 10093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10094/* end confdefs.h. */ 10095int i; 10096_ACEOF 10097if ac_fn_c_try_compile "$LINENO" 10098then : 10099 xorg_cv_cc_flag_unknown_warning_option=yes 10100else $as_nop 10101 xorg_cv_cc_flag_unknown_warning_option=no 10102fi 10103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10104fi 10105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10108 CFLAGS="$xorg_testset_save_CFLAGS" 10109fi 10110 10111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10114 fi 10115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10118if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10119then : 10120 printf %s "(cached) " >&6 10121else $as_nop 10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10123/* end confdefs.h. */ 10124int i; 10125_ACEOF 10126if ac_fn_c_try_compile "$LINENO" 10127then : 10128 xorg_cv_cc_flag_unused_command_line_argument=yes 10129else $as_nop 10130 xorg_cv_cc_flag_unused_command_line_argument=no 10131fi 10132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10133fi 10134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10137 CFLAGS="$xorg_testset_save_CFLAGS" 10138fi 10139 10140found="no" 10141 10142 if test $found = "no" ; then 10143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10145 fi 10146 10147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10149 fi 10150 10151 CFLAGS="$CFLAGS -Waddress" 10152 10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10154printf %s "checking if $CC supports -Waddress... " >&6; } 10155 cacheid=xorg_cv_cc_flag__Waddress 10156 if eval test \${$cacheid+y} 10157then : 10158 printf %s "(cached) " >&6 10159else $as_nop 10160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10161/* end confdefs.h. */ 10162int i; 10163int 10164main (void) 10165{ 10166 10167 ; 10168 return 0; 10169} 10170_ACEOF 10171if ac_fn_c_try_link "$LINENO" 10172then : 10173 eval $cacheid=yes 10174else $as_nop 10175 eval $cacheid=no 10176fi 10177rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10178 conftest$ac_exeext conftest.$ac_ext 10179fi 10180 10181 10182 CFLAGS="$xorg_testset_save_CFLAGS" 10183 10184 eval supported=\$$cacheid 10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10186printf "%s\n" "$supported" >&6; } 10187 if test "$supported" = "yes" ; then 10188 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10189 found="yes" 10190 fi 10191 fi 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207xorg_testset_save_CFLAGS="$CFLAGS" 10208 10209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10212printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10213if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10214then : 10215 printf %s "(cached) " >&6 10216else $as_nop 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218/* end confdefs.h. */ 10219int i; 10220_ACEOF 10221if ac_fn_c_try_compile "$LINENO" 10222then : 10223 xorg_cv_cc_flag_unknown_warning_option=yes 10224else $as_nop 10225 xorg_cv_cc_flag_unknown_warning_option=no 10226fi 10227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10228fi 10229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10231 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10232 CFLAGS="$xorg_testset_save_CFLAGS" 10233fi 10234 10235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10238 fi 10239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10242if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10243then : 10244 printf %s "(cached) " >&6 10245else $as_nop 10246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10247/* end confdefs.h. */ 10248int i; 10249_ACEOF 10250if ac_fn_c_try_compile "$LINENO" 10251then : 10252 xorg_cv_cc_flag_unused_command_line_argument=yes 10253else $as_nop 10254 xorg_cv_cc_flag_unused_command_line_argument=no 10255fi 10256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10257fi 10258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10259printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10260 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10261 CFLAGS="$xorg_testset_save_CFLAGS" 10262fi 10263 10264found="no" 10265 10266 if test $found = "no" ; then 10267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10269 fi 10270 10271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10273 fi 10274 10275 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10276 10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10278printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10279 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10280 if eval test \${$cacheid+y} 10281then : 10282 printf %s "(cached) " >&6 10283else $as_nop 10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10285/* end confdefs.h. */ 10286int i; 10287int 10288main (void) 10289{ 10290 10291 ; 10292 return 0; 10293} 10294_ACEOF 10295if ac_fn_c_try_link "$LINENO" 10296then : 10297 eval $cacheid=yes 10298else $as_nop 10299 eval $cacheid=no 10300fi 10301rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10302 conftest$ac_exeext conftest.$ac_ext 10303fi 10304 10305 10306 CFLAGS="$xorg_testset_save_CFLAGS" 10307 10308 eval supported=\$$cacheid 10309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10310printf "%s\n" "$supported" >&6; } 10311 if test "$supported" = "yes" ; then 10312 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10313 found="yes" 10314 fi 10315 fi 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331xorg_testset_save_CFLAGS="$CFLAGS" 10332 10333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10337if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10338then : 10339 printf %s "(cached) " >&6 10340else $as_nop 10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10342/* end confdefs.h. */ 10343int i; 10344_ACEOF 10345if ac_fn_c_try_compile "$LINENO" 10346then : 10347 xorg_cv_cc_flag_unknown_warning_option=yes 10348else $as_nop 10349 xorg_cv_cc_flag_unknown_warning_option=no 10350fi 10351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10352fi 10353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10354printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10355 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10356 CFLAGS="$xorg_testset_save_CFLAGS" 10357fi 10358 10359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10362 fi 10363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10365printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10366if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10367then : 10368 printf %s "(cached) " >&6 10369else $as_nop 10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10371/* end confdefs.h. */ 10372int i; 10373_ACEOF 10374if ac_fn_c_try_compile "$LINENO" 10375then : 10376 xorg_cv_cc_flag_unused_command_line_argument=yes 10377else $as_nop 10378 xorg_cv_cc_flag_unused_command_line_argument=no 10379fi 10380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10381fi 10382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10384 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10385 CFLAGS="$xorg_testset_save_CFLAGS" 10386fi 10387 10388found="no" 10389 10390 if test $found = "no" ; then 10391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10393 fi 10394 10395 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10397 fi 10398 10399 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10400 10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10402printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10403 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10404 if eval test \${$cacheid+y} 10405then : 10406 printf %s "(cached) " >&6 10407else $as_nop 10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409/* end confdefs.h. */ 10410int i; 10411int 10412main (void) 10413{ 10414 10415 ; 10416 return 0; 10417} 10418_ACEOF 10419if ac_fn_c_try_link "$LINENO" 10420then : 10421 eval $cacheid=yes 10422else $as_nop 10423 eval $cacheid=no 10424fi 10425rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10426 conftest$ac_exeext conftest.$ac_ext 10427fi 10428 10429 10430 CFLAGS="$xorg_testset_save_CFLAGS" 10431 10432 eval supported=\$$cacheid 10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10434printf "%s\n" "$supported" >&6; } 10435 if test "$supported" = "yes" ; then 10436 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10437 found="yes" 10438 fi 10439 fi 10440 10441 10442fi 10443 10444 10445 10446 10447 10448 10449 10450 CWARNFLAGS="$BASE_CFLAGS" 10451 if test "x$GCC" = xyes ; then 10452 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10453 fi 10454 10455 10456 10457 10458 10459 10460 10461 10462# Check whether --enable-strict-compilation was given. 10463if test ${enable_strict_compilation+y} 10464then : 10465 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10466else $as_nop 10467 STRICT_COMPILE=no 10468fi 10469 10470 10471 10472 10473 10474 10475STRICT_CFLAGS="" 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489xorg_testset_save_CFLAGS="$CFLAGS" 10490 10491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10495if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10496then : 10497 printf %s "(cached) " >&6 10498else $as_nop 10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10500/* end confdefs.h. */ 10501int i; 10502_ACEOF 10503if ac_fn_c_try_compile "$LINENO" 10504then : 10505 xorg_cv_cc_flag_unknown_warning_option=yes 10506else $as_nop 10507 xorg_cv_cc_flag_unknown_warning_option=no 10508fi 10509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10510fi 10511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10514 CFLAGS="$xorg_testset_save_CFLAGS" 10515fi 10516 10517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10520 fi 10521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10524if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10525then : 10526 printf %s "(cached) " >&6 10527else $as_nop 10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10529/* end confdefs.h. */ 10530int i; 10531_ACEOF 10532if ac_fn_c_try_compile "$LINENO" 10533then : 10534 xorg_cv_cc_flag_unused_command_line_argument=yes 10535else $as_nop 10536 xorg_cv_cc_flag_unused_command_line_argument=no 10537fi 10538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10539fi 10540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10543 CFLAGS="$xorg_testset_save_CFLAGS" 10544fi 10545 10546found="no" 10547 10548 if test $found = "no" ; then 10549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10551 fi 10552 10553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10555 fi 10556 10557 CFLAGS="$CFLAGS -pedantic" 10558 10559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10560printf %s "checking if $CC supports -pedantic... " >&6; } 10561 cacheid=xorg_cv_cc_flag__pedantic 10562 if eval test \${$cacheid+y} 10563then : 10564 printf %s "(cached) " >&6 10565else $as_nop 10566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10567/* end confdefs.h. */ 10568int i; 10569int 10570main (void) 10571{ 10572 10573 ; 10574 return 0; 10575} 10576_ACEOF 10577if ac_fn_c_try_link "$LINENO" 10578then : 10579 eval $cacheid=yes 10580else $as_nop 10581 eval $cacheid=no 10582fi 10583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10584 conftest$ac_exeext conftest.$ac_ext 10585fi 10586 10587 10588 CFLAGS="$xorg_testset_save_CFLAGS" 10589 10590 eval supported=\$$cacheid 10591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10592printf "%s\n" "$supported" >&6; } 10593 if test "$supported" = "yes" ; then 10594 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10595 found="yes" 10596 fi 10597 fi 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613xorg_testset_save_CFLAGS="$CFLAGS" 10614 10615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10619if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10620then : 10621 printf %s "(cached) " >&6 10622else $as_nop 10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10624/* end confdefs.h. */ 10625int i; 10626_ACEOF 10627if ac_fn_c_try_compile "$LINENO" 10628then : 10629 xorg_cv_cc_flag_unknown_warning_option=yes 10630else $as_nop 10631 xorg_cv_cc_flag_unknown_warning_option=no 10632fi 10633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10634fi 10635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10638 CFLAGS="$xorg_testset_save_CFLAGS" 10639fi 10640 10641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10644 fi 10645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10649then : 10650 printf %s "(cached) " >&6 10651else $as_nop 10652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10653/* end confdefs.h. */ 10654int i; 10655_ACEOF 10656if ac_fn_c_try_compile "$LINENO" 10657then : 10658 xorg_cv_cc_flag_unused_command_line_argument=yes 10659else $as_nop 10660 xorg_cv_cc_flag_unused_command_line_argument=no 10661fi 10662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10663fi 10664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10667 CFLAGS="$xorg_testset_save_CFLAGS" 10668fi 10669 10670found="no" 10671 10672 if test $found = "no" ; then 10673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10675 fi 10676 10677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10679 fi 10680 10681 CFLAGS="$CFLAGS -Werror" 10682 10683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10684printf %s "checking if $CC supports -Werror... " >&6; } 10685 cacheid=xorg_cv_cc_flag__Werror 10686 if eval test \${$cacheid+y} 10687then : 10688 printf %s "(cached) " >&6 10689else $as_nop 10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10691/* end confdefs.h. */ 10692int i; 10693int 10694main (void) 10695{ 10696 10697 ; 10698 return 0; 10699} 10700_ACEOF 10701if ac_fn_c_try_link "$LINENO" 10702then : 10703 eval $cacheid=yes 10704else $as_nop 10705 eval $cacheid=no 10706fi 10707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10708 conftest$ac_exeext conftest.$ac_ext 10709fi 10710 10711 10712 CFLAGS="$xorg_testset_save_CFLAGS" 10713 10714 eval supported=\$$cacheid 10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10716printf "%s\n" "$supported" >&6; } 10717 if test "$supported" = "yes" ; then 10718 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10719 found="yes" 10720 fi 10721 fi 10722 10723 if test $found = "no" ; then 10724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10726 fi 10727 10728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10730 fi 10731 10732 CFLAGS="$CFLAGS -errwarn" 10733 10734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10735printf %s "checking if $CC supports -errwarn... " >&6; } 10736 cacheid=xorg_cv_cc_flag__errwarn 10737 if eval test \${$cacheid+y} 10738then : 10739 printf %s "(cached) " >&6 10740else $as_nop 10741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10742/* end confdefs.h. */ 10743int i; 10744int 10745main (void) 10746{ 10747 10748 ; 10749 return 0; 10750} 10751_ACEOF 10752if ac_fn_c_try_link "$LINENO" 10753then : 10754 eval $cacheid=yes 10755else $as_nop 10756 eval $cacheid=no 10757fi 10758rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10759 conftest$ac_exeext conftest.$ac_ext 10760fi 10761 10762 10763 CFLAGS="$xorg_testset_save_CFLAGS" 10764 10765 eval supported=\$$cacheid 10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10767printf "%s\n" "$supported" >&6; } 10768 if test "$supported" = "yes" ; then 10769 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10770 found="yes" 10771 fi 10772 fi 10773 10774 10775 10776# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10777# activate it with -Werror, so we add it here explicitly. 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791xorg_testset_save_CFLAGS="$CFLAGS" 10792 10793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10794 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10796printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10797if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10798then : 10799 printf %s "(cached) " >&6 10800else $as_nop 10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802/* end confdefs.h. */ 10803int i; 10804_ACEOF 10805if ac_fn_c_try_compile "$LINENO" 10806then : 10807 xorg_cv_cc_flag_unknown_warning_option=yes 10808else $as_nop 10809 xorg_cv_cc_flag_unknown_warning_option=no 10810fi 10811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10812fi 10813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10816 CFLAGS="$xorg_testset_save_CFLAGS" 10817fi 10818 10819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10822 fi 10823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10826if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10827then : 10828 printf %s "(cached) " >&6 10829else $as_nop 10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10831/* end confdefs.h. */ 10832int i; 10833_ACEOF 10834if ac_fn_c_try_compile "$LINENO" 10835then : 10836 xorg_cv_cc_flag_unused_command_line_argument=yes 10837else $as_nop 10838 xorg_cv_cc_flag_unused_command_line_argument=no 10839fi 10840rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10841fi 10842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10843printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10844 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10845 CFLAGS="$xorg_testset_save_CFLAGS" 10846fi 10847 10848found="no" 10849 10850 if test $found = "no" ; then 10851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10853 fi 10854 10855 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10857 fi 10858 10859 CFLAGS="$CFLAGS -Werror=attributes" 10860 10861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10862printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10863 cacheid=xorg_cv_cc_flag__Werror_attributes 10864 if eval test \${$cacheid+y} 10865then : 10866 printf %s "(cached) " >&6 10867else $as_nop 10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869/* end confdefs.h. */ 10870int i; 10871int 10872main (void) 10873{ 10874 10875 ; 10876 return 0; 10877} 10878_ACEOF 10879if ac_fn_c_try_link "$LINENO" 10880then : 10881 eval $cacheid=yes 10882else $as_nop 10883 eval $cacheid=no 10884fi 10885rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10886 conftest$ac_exeext conftest.$ac_ext 10887fi 10888 10889 10890 CFLAGS="$xorg_testset_save_CFLAGS" 10891 10892 eval supported=\$$cacheid 10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10894printf "%s\n" "$supported" >&6; } 10895 if test "$supported" = "yes" ; then 10896 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10897 found="yes" 10898 fi 10899 fi 10900 10901 10902 10903if test "x$STRICT_COMPILE" = "xyes"; then 10904 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10905 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10906fi 10907 10908 10909 10910 10911 10912 10913cat >>confdefs.h <<_ACEOF 10914#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10915_ACEOF 10916 10917 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10918 if test "x$PVM" = "x"; then 10919 PVM="0" 10920 fi 10921 10922printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10923 10924 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10925 if test "x$PVP" = "x"; then 10926 PVP="0" 10927 fi 10928 10929printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10930 10931 10932 10933CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10934mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10935|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10936touch \$(top_srcdir)/ChangeLog; \ 10937echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10938 10939 10940 10941 10942macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10943INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10944mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10945|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10946touch \$(top_srcdir)/INSTALL; \ 10947echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10948 10949 10950 10951 10952 10953 10954case $host_os in 10955 solaris*) 10956 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10957 # check for a man page file found in later versions that use 10958 # traditional section numbers instead 10959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10960printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10961if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10962then : 10963 printf %s "(cached) " >&6 10964else $as_nop 10965 test "$cross_compiling" = yes && 10966 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10967if test -r "/usr/share/man/man7/attributes.7"; then 10968 ac_cv_file__usr_share_man_man7_attributes_7=yes 10969else 10970 ac_cv_file__usr_share_man_man7_attributes_7=no 10971fi 10972fi 10973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10974printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10975if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10976then : 10977 SYSV_MAN_SECTIONS=false 10978else $as_nop 10979 SYSV_MAN_SECTIONS=true 10980fi 10981 10982 ;; 10983 *) SYSV_MAN_SECTIONS=false ;; 10984esac 10985 10986if test x$APP_MAN_SUFFIX = x ; then 10987 APP_MAN_SUFFIX=1 10988fi 10989if test x$APP_MAN_DIR = x ; then 10990 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10991fi 10992 10993if test x$LIB_MAN_SUFFIX = x ; then 10994 LIB_MAN_SUFFIX=3 10995fi 10996if test x$LIB_MAN_DIR = x ; then 10997 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10998fi 10999 11000if test x$FILE_MAN_SUFFIX = x ; then 11001 case $SYSV_MAN_SECTIONS in 11002 true) FILE_MAN_SUFFIX=4 ;; 11003 *) FILE_MAN_SUFFIX=5 ;; 11004 esac 11005fi 11006if test x$FILE_MAN_DIR = x ; then 11007 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11008fi 11009 11010if test x$MISC_MAN_SUFFIX = x ; then 11011 case $SYSV_MAN_SECTIONS in 11012 true) MISC_MAN_SUFFIX=5 ;; 11013 *) MISC_MAN_SUFFIX=7 ;; 11014 esac 11015fi 11016if test x$MISC_MAN_DIR = x ; then 11017 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11018fi 11019 11020if test x$DRIVER_MAN_SUFFIX = x ; then 11021 case $SYSV_MAN_SECTIONS in 11022 true) DRIVER_MAN_SUFFIX=7 ;; 11023 *) DRIVER_MAN_SUFFIX=4 ;; 11024 esac 11025fi 11026if test x$DRIVER_MAN_DIR = x ; then 11027 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11028fi 11029 11030if test x$ADMIN_MAN_SUFFIX = x ; then 11031 case $SYSV_MAN_SECTIONS in 11032 true) ADMIN_MAN_SUFFIX=1m ;; 11033 *) ADMIN_MAN_SUFFIX=8 ;; 11034 esac 11035fi 11036if test x$ADMIN_MAN_DIR = x ; then 11037 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11038fi 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054XORG_MAN_PAGE="X Version 11" 11055 11056MAN_SUBSTS="\ 11057 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11058 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11059 -e 's|__xservername__|Xorg|g' \ 11060 -e 's|__xconfigfile__|xorg.conf|g' \ 11061 -e 's|__projectroot__|\$(prefix)|g' \ 11062 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11063 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11064 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11065 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11066 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11067 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11068 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11069 11070 11071 11072# Check whether --enable-silent-rules was given. 11073if test ${enable_silent_rules+y} 11074then : 11075 enableval=$enable_silent_rules; 11076fi 11077 11078case $enable_silent_rules in # ((( 11079 yes) AM_DEFAULT_VERBOSITY=0;; 11080 no) AM_DEFAULT_VERBOSITY=1;; 11081 *) AM_DEFAULT_VERBOSITY=0;; 11082esac 11083am_make=${MAKE-make} 11084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11085printf %s "checking whether $am_make supports nested variables... " >&6; } 11086if test ${am_cv_make_support_nested_variables+y} 11087then : 11088 printf %s "(cached) " >&6 11089else $as_nop 11090 if printf "%s\n" 'TRUE=$(BAR$(V)) 11091BAR0=false 11092BAR1=true 11093V=1 11094am__doit: 11095 @$(TRUE) 11096.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11097 am_cv_make_support_nested_variables=yes 11098else 11099 am_cv_make_support_nested_variables=no 11100fi 11101fi 11102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11103printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11104if test $am_cv_make_support_nested_variables = yes; then 11105 AM_V='$(V)' 11106 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11107else 11108 AM_V=$AM_DEFAULT_VERBOSITY 11109 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11110fi 11111AM_BACKSLASH='\' 11112 11113 11114 11115# Checks for pkg-config packages 11116 11117pkg_failed=no 11118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEYES" >&5 11119printf %s "checking for XEYES... " >&6; } 11120 11121if test -n "$XEYES_CFLAGS"; then 11122 pkg_cv_XEYES_CFLAGS="$XEYES_CFLAGS" 11123 elif test -n "$PKG_CONFIG"; then 11124 if test -n "$PKG_CONFIG" && \ 11125 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5 11126 ($PKG_CONFIG --exists --print-errors "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17") 2>&5 11127 ac_status=$? 11128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11129 test $ac_status = 0; }; then 11130 pkg_cv_XEYES_CFLAGS=`$PKG_CONFIG --cflags "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null` 11131 test "x$?" != "x0" && pkg_failed=yes 11132else 11133 pkg_failed=yes 11134fi 11135 else 11136 pkg_failed=untried 11137fi 11138if test -n "$XEYES_LIBS"; then 11139 pkg_cv_XEYES_LIBS="$XEYES_LIBS" 11140 elif test -n "$PKG_CONFIG"; then 11141 if test -n "$PKG_CONFIG" && \ 11142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17\""; } >&5 11143 ($PKG_CONFIG --exists --print-errors "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17") 2>&5 11144 ac_status=$? 11145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11146 test $ac_status = 0; }; then 11147 pkg_cv_XEYES_LIBS=`$PKG_CONFIG --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>/dev/null` 11148 test "x$?" != "x0" && pkg_failed=yes 11149else 11150 pkg_failed=yes 11151fi 11152 else 11153 pkg_failed=untried 11154fi 11155 11156 11157 11158if test $pkg_failed = yes; then 11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11160printf "%s\n" "no" >&6; } 11161 11162if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11163 _pkg_short_errors_supported=yes 11164else 11165 _pkg_short_errors_supported=no 11166fi 11167 if test $_pkg_short_errors_supported = yes; then 11168 XEYES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>&1` 11169 else 11170 XEYES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17" 2>&1` 11171 fi 11172 # Put the nasty error message in config.log where it belongs 11173 echo "$XEYES_PKG_ERRORS" >&5 11174 11175 as_fn_error $? "Package requirements (xi >= 1.7 x11 xt xext xmu xproto >= 7.0.17) were not met: 11176 11177$XEYES_PKG_ERRORS 11178 11179Consider adjusting the PKG_CONFIG_PATH environment variable if you 11180installed software in a non-standard prefix. 11181 11182Alternatively, you may set the environment variables XEYES_CFLAGS 11183and XEYES_LIBS to avoid the need to call pkg-config. 11184See the pkg-config man page for more details." "$LINENO" 5 11185elif test $pkg_failed = untried; then 11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11187printf "%s\n" "no" >&6; } 11188 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11189printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11190as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11191is in your PATH or set the PKG_CONFIG environment variable to the full 11192path to pkg-config. 11193 11194Alternatively, you may set the environment variables XEYES_CFLAGS 11195and XEYES_LIBS to avoid the need to call pkg-config. 11196See the pkg-config man page for more details. 11197 11198To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11199See \`config.log' for more details" "$LINENO" 5; } 11200else 11201 XEYES_CFLAGS=$pkg_cv_XEYES_CFLAGS 11202 XEYES_LIBS=$pkg_cv_XEYES_LIBS 11203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11204printf "%s\n" "yes" >&6; } 11205 11206fi 11207 11208 11209# Check whether --with-xrender was given. 11210if test ${with_xrender+y} 11211then : 11212 withval=$with_xrender; use_xrender="$withval" 11213else $as_nop 11214 use_xrender="try" 11215fi 11216 11217if test x$use_xrender != xno ; then 11218 11219pkg_failed=no 11220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XRENDER" >&5 11221printf %s "checking for XRENDER... " >&6; } 11222 11223if test -n "$XRENDER_CFLAGS"; then 11224 pkg_cv_XRENDER_CFLAGS="$XRENDER_CFLAGS" 11225 elif test -n "$PKG_CONFIG"; then 11226 if test -n "$PKG_CONFIG" && \ 11227 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5 11228 ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5 11229 ac_status=$? 11230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11231 test $ac_status = 0; }; then 11232 pkg_cv_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.4" 2>/dev/null` 11233 test "x$?" != "x0" && pkg_failed=yes 11234else 11235 pkg_failed=yes 11236fi 11237 else 11238 pkg_failed=untried 11239fi 11240if test -n "$XRENDER_LIBS"; then 11241 pkg_cv_XRENDER_LIBS="$XRENDER_LIBS" 11242 elif test -n "$PKG_CONFIG"; then 11243 if test -n "$PKG_CONFIG" && \ 11244 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.4\""; } >&5 11245 ($PKG_CONFIG --exists --print-errors "xrender >= 0.4") 2>&5 11246 ac_status=$? 11247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11248 test $ac_status = 0; }; then 11249 pkg_cv_XRENDER_LIBS=`$PKG_CONFIG --libs "xrender >= 0.4" 2>/dev/null` 11250 test "x$?" != "x0" && pkg_failed=yes 11251else 11252 pkg_failed=yes 11253fi 11254 else 11255 pkg_failed=untried 11256fi 11257 11258 11259 11260if test $pkg_failed = yes; then 11261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11262printf "%s\n" "no" >&6; } 11263 11264if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11265 _pkg_short_errors_supported=yes 11266else 11267 _pkg_short_errors_supported=no 11268fi 11269 if test $_pkg_short_errors_supported = yes; then 11270 XRENDER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrender >= 0.4" 2>&1` 11271 else 11272 XRENDER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrender >= 0.4" 2>&1` 11273 fi 11274 # Put the nasty error message in config.log where it belongs 11275 echo "$XRENDER_PKG_ERRORS" >&5 11276 11277 as_fn_error $? "Package requirements (xrender >= 0.4) were not met: 11278 11279$XRENDER_PKG_ERRORS 11280 11281Consider adjusting the PKG_CONFIG_PATH environment variable if you 11282installed software in a non-standard prefix. 11283 11284Alternatively, you may set the environment variables XRENDER_CFLAGS 11285and XRENDER_LIBS to avoid the need to call pkg-config. 11286See the pkg-config man page for more details." "$LINENO" 5 11287elif test $pkg_failed = untried; then 11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11289printf "%s\n" "no" >&6; } 11290 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11291printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11292as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11293is in your PATH or set the PKG_CONFIG environment variable to the full 11294path to pkg-config. 11295 11296Alternatively, you may set the environment variables XRENDER_CFLAGS 11297and XRENDER_LIBS to avoid the need to call pkg-config. 11298See the pkg-config man page for more details. 11299 11300To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11301See \`config.log' for more details" "$LINENO" 5; } 11302else 11303 XRENDER_CFLAGS=$pkg_cv_XRENDER_CFLAGS 11304 XRENDER_LIBS=$pkg_cv_XRENDER_LIBS 11305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11306printf "%s\n" "yes" >&6; } 11307 11308fi 11309 11310printf "%s\n" "#define XRENDER 1" >>confdefs.h 11311 11312fi 11313 11314 11315# Check whether --with-present was given. 11316if test ${with_present+y} 11317then : 11318 withval=$with_present; use_present="$withval" 11319else $as_nop 11320 use_present="try" 11321fi 11322 11323if test x$use_present != xno ; then 11324 11325pkg_failed=no 11326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PRESENT" >&5 11327printf %s "checking for PRESENT... " >&6; } 11328 11329if test -n "$PRESENT_CFLAGS"; then 11330 pkg_cv_PRESENT_CFLAGS="$PRESENT_CFLAGS" 11331 elif test -n "$PKG_CONFIG"; then 11332 if test -n "$PKG_CONFIG" && \ 11333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5 11334 ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage") 2>&5 11335 ac_status=$? 11336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11337 test $ac_status = 0; }; then 11338 pkg_cv_PRESENT_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>/dev/null` 11339 test "x$?" != "x0" && pkg_failed=yes 11340else 11341 pkg_failed=yes 11342fi 11343 else 11344 pkg_failed=untried 11345fi 11346if test -n "$PRESENT_LIBS"; then 11347 pkg_cv_PRESENT_LIBS="$PRESENT_LIBS" 11348 elif test -n "$PKG_CONFIG"; then 11349 if test -n "$PKG_CONFIG" && \ 11350 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage\""; } >&5 11351 ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage") 2>&5 11352 ac_status=$? 11353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11354 test $ac_status = 0; }; then 11355 pkg_cv_PRESENT_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>/dev/null` 11356 test "x$?" != "x0" && pkg_failed=yes 11357else 11358 pkg_failed=yes 11359fi 11360 else 11361 pkg_failed=untried 11362fi 11363 11364 11365 11366if test $pkg_failed = yes; then 11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11368printf "%s\n" "no" >&6; } 11369 11370if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11371 _pkg_short_errors_supported=yes 11372else 11373 _pkg_short_errors_supported=no 11374fi 11375 if test $_pkg_short_errors_supported = yes; then 11376 PRESENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>&1` 11377 else 11378 PRESENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage" 2>&1` 11379 fi 11380 # Put the nasty error message in config.log where it belongs 11381 echo "$PRESENT_PKG_ERRORS" >&5 11382 11383 as_fn_error $? "Package requirements (x11-xcb xcb-present >= 1.9 xcb-xfixes xcb-damage) were not met: 11384 11385$PRESENT_PKG_ERRORS 11386 11387Consider adjusting the PKG_CONFIG_PATH environment variable if you 11388installed software in a non-standard prefix. 11389 11390Alternatively, you may set the environment variables PRESENT_CFLAGS 11391and PRESENT_LIBS to avoid the need to call pkg-config. 11392See the pkg-config man page for more details." "$LINENO" 5 11393elif test $pkg_failed = untried; then 11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11395printf "%s\n" "no" >&6; } 11396 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11397printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11398as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11399is in your PATH or set the PKG_CONFIG environment variable to the full 11400path to pkg-config. 11401 11402Alternatively, you may set the environment variables PRESENT_CFLAGS 11403and PRESENT_LIBS to avoid the need to call pkg-config. 11404See the pkg-config man page for more details. 11405 11406To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11407See \`config.log' for more details" "$LINENO" 5; } 11408else 11409 PRESENT_CFLAGS=$pkg_cv_PRESENT_CFLAGS 11410 PRESENT_LIBS=$pkg_cv_PRESENT_LIBS 11411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11412printf "%s\n" "yes" >&6; } 11413 11414fi 11415 11416printf "%s\n" "#define PRESENT 1" >>confdefs.h 11417 11418fi 11419 11420ac_config_files="$ac_config_files Makefile man/Makefile" 11421 11422cat >confcache <<\_ACEOF 11423# This file is a shell script that caches the results of configure 11424# tests run on this system so they can be shared between configure 11425# scripts and configure runs, see configure's option --config-cache. 11426# It is not useful on other systems. If it contains results you don't 11427# want to keep, you may remove or edit it. 11428# 11429# config.status only pays attention to the cache file if you give it 11430# the --recheck option to rerun configure. 11431# 11432# `ac_cv_env_foo' variables (set or unset) will be overridden when 11433# loading this file, other *unset* `ac_cv_foo' will be assigned the 11434# following values. 11435 11436_ACEOF 11437 11438# The following way of writing the cache mishandles newlines in values, 11439# but we know of no workaround that is simple, portable, and efficient. 11440# So, we kill variables containing newlines. 11441# Ultrix sh set writes to stderr and can't be redirected directly, 11442# and sets the high bit in the cache file unless we assign to the vars. 11443( 11444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11445 eval ac_val=\$$ac_var 11446 case $ac_val in #( 11447 *${as_nl}*) 11448 case $ac_var in #( 11449 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11450printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11451 esac 11452 case $ac_var in #( 11453 _ | IFS | as_nl) ;; #( 11454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11455 *) { eval $ac_var=; unset $ac_var;} ;; 11456 esac ;; 11457 esac 11458 done 11459 11460 (set) 2>&1 | 11461 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11462 *${as_nl}ac_space=\ *) 11463 # `set' does not quote correctly, so add quotes: double-quote 11464 # substitution turns \\\\ into \\, and sed turns \\ into \. 11465 sed -n \ 11466 "s/'/'\\\\''/g; 11467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11468 ;; #( 11469 *) 11470 # `set' quotes correctly as required by POSIX, so do not add quotes. 11471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11472 ;; 11473 esac | 11474 sort 11475) | 11476 sed ' 11477 /^ac_cv_env_/b end 11478 t clear 11479 :clear 11480 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11481 t end 11482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11483 :end' >>confcache 11484if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11485 if test -w "$cache_file"; then 11486 if test "x$cache_file" != "x/dev/null"; then 11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11488printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11489 if test ! -f "$cache_file" || test -h "$cache_file"; then 11490 cat confcache >"$cache_file" 11491 else 11492 case $cache_file in #( 11493 */* | ?:*) 11494 mv -f confcache "$cache_file"$$ && 11495 mv -f "$cache_file"$$ "$cache_file" ;; #( 11496 *) 11497 mv -f confcache "$cache_file" ;; 11498 esac 11499 fi 11500 fi 11501 else 11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11503printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11504 fi 11505fi 11506rm -f confcache 11507 11508test "x$prefix" = xNONE && prefix=$ac_default_prefix 11509# Let make expand exec_prefix. 11510test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11511 11512DEFS=-DHAVE_CONFIG_H 11513 11514ac_libobjs= 11515ac_ltlibobjs= 11516U= 11517for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11518 # 1. Remove the extension, and $U if already installed. 11519 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11520 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11521 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11522 # will be set to the directory where LIBOBJS objects are built. 11523 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11524 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11525done 11526LIBOBJS=$ac_libobjs 11527 11528LTLIBOBJS=$ac_ltlibobjs 11529 11530 11531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11532printf %s "checking that generated files are newer than configure... " >&6; } 11533 if test -n "$am_sleep_pid"; then 11534 # Hide warnings about reused PIDs. 11535 wait $am_sleep_pid 2>/dev/null 11536 fi 11537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11538printf "%s\n" "done" >&6; } 11539 if test -n "$EXEEXT"; then 11540 am__EXEEXT_TRUE= 11541 am__EXEEXT_FALSE='#' 11542else 11543 am__EXEEXT_TRUE='#' 11544 am__EXEEXT_FALSE= 11545fi 11546 11547if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11548 as_fn_error $? "conditional \"AMDEP\" was never defined. 11549Usually this means the macro was only invoked conditionally." "$LINENO" 5 11550fi 11551if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11552 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11553Usually this means the macro was only invoked conditionally." "$LINENO" 5 11554fi 11555 11556: "${CONFIG_STATUS=./config.status}" 11557ac_write_fail=0 11558ac_clean_files_save=$ac_clean_files 11559ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11561printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11562as_write_fail=0 11563cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11564#! $SHELL 11565# Generated by $as_me. 11566# Run this file to recreate the current configuration. 11567# Compiler output produced by configure, useful for debugging 11568# configure, is in config.log if it exists. 11569 11570debug=false 11571ac_cs_recheck=false 11572ac_cs_silent=false 11573 11574SHELL=\${CONFIG_SHELL-$SHELL} 11575export SHELL 11576_ASEOF 11577cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11578## -------------------- ## 11579## M4sh Initialization. ## 11580## -------------------- ## 11581 11582# Be more Bourne compatible 11583DUALCASE=1; export DUALCASE # for MKS sh 11584as_nop=: 11585if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11586then : 11587 emulate sh 11588 NULLCMD=: 11589 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11590 # is contrary to our usage. Disable this feature. 11591 alias -g '${1+"$@"}'='"$@"' 11592 setopt NO_GLOB_SUBST 11593else $as_nop 11594 case `(set -o) 2>/dev/null` in #( 11595 *posix*) : 11596 set -o posix ;; #( 11597 *) : 11598 ;; 11599esac 11600fi 11601 11602 11603 11604# Reset variables that may have inherited troublesome values from 11605# the environment. 11606 11607# IFS needs to be set, to space, tab, and newline, in precisely that order. 11608# (If _AS_PATH_WALK were called with IFS unset, it would have the 11609# side effect of setting IFS to empty, thus disabling word splitting.) 11610# Quoting is to prevent editors from complaining about space-tab. 11611as_nl=' 11612' 11613export as_nl 11614IFS=" "" $as_nl" 11615 11616PS1='$ ' 11617PS2='> ' 11618PS4='+ ' 11619 11620# Ensure predictable behavior from utilities with locale-dependent output. 11621LC_ALL=C 11622export LC_ALL 11623LANGUAGE=C 11624export LANGUAGE 11625 11626# We cannot yet rely on "unset" to work, but we need these variables 11627# to be unset--not just set to an empty or harmless value--now, to 11628# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11629# also avoids known problems related to "unset" and subshell syntax 11630# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11631for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11632do eval test \${$as_var+y} \ 11633 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11634done 11635 11636# Ensure that fds 0, 1, and 2 are open. 11637if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11638if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11639if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11640 11641# The user is always right. 11642if ${PATH_SEPARATOR+false} :; then 11643 PATH_SEPARATOR=: 11644 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11645 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11646 PATH_SEPARATOR=';' 11647 } 11648fi 11649 11650 11651# Find who we are. Look in the path if we contain no directory separator. 11652as_myself= 11653case $0 in #(( 11654 *[\\/]* ) as_myself=$0 ;; 11655 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11656for as_dir in $PATH 11657do 11658 IFS=$as_save_IFS 11659 case $as_dir in #((( 11660 '') as_dir=./ ;; 11661 */) ;; 11662 *) as_dir=$as_dir/ ;; 11663 esac 11664 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11665 done 11666IFS=$as_save_IFS 11667 11668 ;; 11669esac 11670# We did not find ourselves, most probably we were run as `sh COMMAND' 11671# in which case we are not to be found in the path. 11672if test "x$as_myself" = x; then 11673 as_myself=$0 11674fi 11675if test ! -f "$as_myself"; then 11676 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11677 exit 1 11678fi 11679 11680 11681 11682# as_fn_error STATUS ERROR [LINENO LOG_FD] 11683# ---------------------------------------- 11684# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11685# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11686# script with STATUS, using 1 if that was 0. 11687as_fn_error () 11688{ 11689 as_status=$1; test $as_status -eq 0 && as_status=1 11690 if test "$4"; then 11691 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11692 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11693 fi 11694 printf "%s\n" "$as_me: error: $2" >&2 11695 as_fn_exit $as_status 11696} # as_fn_error 11697 11698 11699 11700# as_fn_set_status STATUS 11701# ----------------------- 11702# Set $? to STATUS, without forking. 11703as_fn_set_status () 11704{ 11705 return $1 11706} # as_fn_set_status 11707 11708# as_fn_exit STATUS 11709# ----------------- 11710# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11711as_fn_exit () 11712{ 11713 set +e 11714 as_fn_set_status $1 11715 exit $1 11716} # as_fn_exit 11717 11718# as_fn_unset VAR 11719# --------------- 11720# Portably unset VAR. 11721as_fn_unset () 11722{ 11723 { eval $1=; unset $1;} 11724} 11725as_unset=as_fn_unset 11726 11727# as_fn_append VAR VALUE 11728# ---------------------- 11729# Append the text in VALUE to the end of the definition contained in VAR. Take 11730# advantage of any shell optimizations that allow amortized linear growth over 11731# repeated appends, instead of the typical quadratic growth present in naive 11732# implementations. 11733if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11734then : 11735 eval 'as_fn_append () 11736 { 11737 eval $1+=\$2 11738 }' 11739else $as_nop 11740 as_fn_append () 11741 { 11742 eval $1=\$$1\$2 11743 } 11744fi # as_fn_append 11745 11746# as_fn_arith ARG... 11747# ------------------ 11748# Perform arithmetic evaluation on the ARGs, and store the result in the 11749# global $as_val. Take advantage of shells that can avoid forks. The arguments 11750# must be portable across $(()) and expr. 11751if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11752then : 11753 eval 'as_fn_arith () 11754 { 11755 as_val=$(( $* )) 11756 }' 11757else $as_nop 11758 as_fn_arith () 11759 { 11760 as_val=`expr "$@" || test $? -eq 1` 11761 } 11762fi # as_fn_arith 11763 11764 11765if expr a : '\(a\)' >/dev/null 2>&1 && 11766 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11767 as_expr=expr 11768else 11769 as_expr=false 11770fi 11771 11772if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11773 as_basename=basename 11774else 11775 as_basename=false 11776fi 11777 11778if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11779 as_dirname=dirname 11780else 11781 as_dirname=false 11782fi 11783 11784as_me=`$as_basename -- "$0" || 11785$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11786 X"$0" : 'X\(//\)$' \| \ 11787 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11788printf "%s\n" X/"$0" | 11789 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11790 s//\1/ 11791 q 11792 } 11793 /^X\/\(\/\/\)$/{ 11794 s//\1/ 11795 q 11796 } 11797 /^X\/\(\/\).*/{ 11798 s//\1/ 11799 q 11800 } 11801 s/.*/./; q'` 11802 11803# Avoid depending upon Character Ranges. 11804as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11805as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11806as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11807as_cr_digits='0123456789' 11808as_cr_alnum=$as_cr_Letters$as_cr_digits 11809 11810 11811# Determine whether it's possible to make 'echo' print without a newline. 11812# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11813# for compatibility with existing Makefiles. 11814ECHO_C= ECHO_N= ECHO_T= 11815case `echo -n x` in #((((( 11816-n*) 11817 case `echo 'xy\c'` in 11818 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11819 xy) ECHO_C='\c';; 11820 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11821 ECHO_T=' ';; 11822 esac;; 11823*) 11824 ECHO_N='-n';; 11825esac 11826 11827# For backward compatibility with old third-party macros, we provide 11828# the shell variables $as_echo and $as_echo_n. New code should use 11829# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11830as_echo='printf %s\n' 11831as_echo_n='printf %s' 11832 11833rm -f conf$$ conf$$.exe conf$$.file 11834if test -d conf$$.dir; then 11835 rm -f conf$$.dir/conf$$.file 11836else 11837 rm -f conf$$.dir 11838 mkdir conf$$.dir 2>/dev/null 11839fi 11840if (echo >conf$$.file) 2>/dev/null; then 11841 if ln -s conf$$.file conf$$ 2>/dev/null; then 11842 as_ln_s='ln -s' 11843 # ... but there are two gotchas: 11844 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11845 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11846 # In both cases, we have to default to `cp -pR'. 11847 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11848 as_ln_s='cp -pR' 11849 elif ln conf$$.file conf$$ 2>/dev/null; then 11850 as_ln_s=ln 11851 else 11852 as_ln_s='cp -pR' 11853 fi 11854else 11855 as_ln_s='cp -pR' 11856fi 11857rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11858rmdir conf$$.dir 2>/dev/null 11859 11860 11861# as_fn_mkdir_p 11862# ------------- 11863# Create "$as_dir" as a directory, including parents if necessary. 11864as_fn_mkdir_p () 11865{ 11866 11867 case $as_dir in #( 11868 -*) as_dir=./$as_dir;; 11869 esac 11870 test -d "$as_dir" || eval $as_mkdir_p || { 11871 as_dirs= 11872 while :; do 11873 case $as_dir in #( 11874 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11875 *) as_qdir=$as_dir;; 11876 esac 11877 as_dirs="'$as_qdir' $as_dirs" 11878 as_dir=`$as_dirname -- "$as_dir" || 11879$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11880 X"$as_dir" : 'X\(//\)[^/]' \| \ 11881 X"$as_dir" : 'X\(//\)$' \| \ 11882 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11883printf "%s\n" X"$as_dir" | 11884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11885 s//\1/ 11886 q 11887 } 11888 /^X\(\/\/\)[^/].*/{ 11889 s//\1/ 11890 q 11891 } 11892 /^X\(\/\/\)$/{ 11893 s//\1/ 11894 q 11895 } 11896 /^X\(\/\).*/{ 11897 s//\1/ 11898 q 11899 } 11900 s/.*/./; q'` 11901 test -d "$as_dir" && break 11902 done 11903 test -z "$as_dirs" || eval "mkdir $as_dirs" 11904 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11905 11906 11907} # as_fn_mkdir_p 11908if mkdir -p . 2>/dev/null; then 11909 as_mkdir_p='mkdir -p "$as_dir"' 11910else 11911 test -d ./-p && rmdir ./-p 11912 as_mkdir_p=false 11913fi 11914 11915 11916# as_fn_executable_p FILE 11917# ----------------------- 11918# Test if FILE is an executable regular file. 11919as_fn_executable_p () 11920{ 11921 test -f "$1" && test -x "$1" 11922} # as_fn_executable_p 11923as_test_x='test -x' 11924as_executable_p=as_fn_executable_p 11925 11926# Sed expression to map a string onto a valid CPP name. 11927as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11928 11929# Sed expression to map a string onto a valid variable name. 11930as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11931 11932 11933exec 6>&1 11934## ----------------------------------- ## 11935## Main body of $CONFIG_STATUS script. ## 11936## ----------------------------------- ## 11937_ASEOF 11938test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11939 11940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11941# Save the log message, to keep $0 and so on meaningful, and to 11942# report actual input values of CONFIG_FILES etc. instead of their 11943# values after options handling. 11944ac_log=" 11945This file was extended by xeyes $as_me 1.2.0, which was 11946generated by GNU Autoconf 2.71. Invocation command line was 11947 11948 CONFIG_FILES = $CONFIG_FILES 11949 CONFIG_HEADERS = $CONFIG_HEADERS 11950 CONFIG_LINKS = $CONFIG_LINKS 11951 CONFIG_COMMANDS = $CONFIG_COMMANDS 11952 $ $0 $@ 11953 11954on `(hostname || uname -n) 2>/dev/null | sed 1q` 11955" 11956 11957_ACEOF 11958 11959case $ac_config_files in *" 11960"*) set x $ac_config_files; shift; ac_config_files=$*;; 11961esac 11962 11963case $ac_config_headers in *" 11964"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11965esac 11966 11967 11968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11969# Files that config.status was made for. 11970config_files="$ac_config_files" 11971config_headers="$ac_config_headers" 11972config_commands="$ac_config_commands" 11973 11974_ACEOF 11975 11976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11977ac_cs_usage="\ 11978\`$as_me' instantiates files and other configuration actions 11979from templates according to the current configuration. Unless the files 11980and actions are specified as TAGs, all are instantiated by default. 11981 11982Usage: $0 [OPTION]... [TAG]... 11983 11984 -h, --help print this help, then exit 11985 -V, --version print version number and configuration settings, then exit 11986 --config print configuration, then exit 11987 -q, --quiet, --silent 11988 do not print progress messages 11989 -d, --debug don't remove temporary files 11990 --recheck update $as_me by reconfiguring in the same conditions 11991 --file=FILE[:TEMPLATE] 11992 instantiate the configuration file FILE 11993 --header=FILE[:TEMPLATE] 11994 instantiate the configuration header FILE 11995 11996Configuration files: 11997$config_files 11998 11999Configuration headers: 12000$config_headers 12001 12002Configuration commands: 12003$config_commands 12004 12005Report bugs to <https://gitlab.freedesktop.org/xorg/app/xeyes/issues>." 12006 12007_ACEOF 12008ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12009ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12011ac_cs_config='$ac_cs_config_escaped' 12012ac_cs_version="\\ 12013xeyes config.status 1.2.0 12014configured by $0, generated by GNU Autoconf 2.71, 12015 with options \\"\$ac_cs_config\\" 12016 12017Copyright (C) 2021 Free Software Foundation, Inc. 12018This config.status script is free software; the Free Software Foundation 12019gives unlimited permission to copy, distribute and modify it." 12020 12021ac_pwd='$ac_pwd' 12022srcdir='$srcdir' 12023INSTALL='$INSTALL' 12024MKDIR_P='$MKDIR_P' 12025AWK='$AWK' 12026test -n "\$AWK" || AWK=awk 12027_ACEOF 12028 12029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12030# The default lists apply if the user does not specify any file. 12031ac_need_defaults=: 12032while test $# != 0 12033do 12034 case $1 in 12035 --*=?*) 12036 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12037 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12038 ac_shift=: 12039 ;; 12040 --*=) 12041 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12042 ac_optarg= 12043 ac_shift=: 12044 ;; 12045 *) 12046 ac_option=$1 12047 ac_optarg=$2 12048 ac_shift=shift 12049 ;; 12050 esac 12051 12052 case $ac_option in 12053 # Handling of the options. 12054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12055 ac_cs_recheck=: ;; 12056 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12057 printf "%s\n" "$ac_cs_version"; exit ;; 12058 --config | --confi | --conf | --con | --co | --c ) 12059 printf "%s\n" "$ac_cs_config"; exit ;; 12060 --debug | --debu | --deb | --de | --d | -d ) 12061 debug=: ;; 12062 --file | --fil | --fi | --f ) 12063 $ac_shift 12064 case $ac_optarg in 12065 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12066 '') as_fn_error $? "missing file argument" ;; 12067 esac 12068 as_fn_append CONFIG_FILES " '$ac_optarg'" 12069 ac_need_defaults=false;; 12070 --header | --heade | --head | --hea ) 12071 $ac_shift 12072 case $ac_optarg in 12073 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12074 esac 12075 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12076 ac_need_defaults=false;; 12077 --he | --h) 12078 # Conflict between --help and --header 12079 as_fn_error $? "ambiguous option: \`$1' 12080Try \`$0 --help' for more information.";; 12081 --help | --hel | -h ) 12082 printf "%s\n" "$ac_cs_usage"; exit ;; 12083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12084 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12085 ac_cs_silent=: ;; 12086 12087 # This is an error. 12088 -*) as_fn_error $? "unrecognized option: \`$1' 12089Try \`$0 --help' for more information." ;; 12090 12091 *) as_fn_append ac_config_targets " $1" 12092 ac_need_defaults=false ;; 12093 12094 esac 12095 shift 12096done 12097 12098ac_configure_extra_args= 12099 12100if $ac_cs_silent; then 12101 exec 6>/dev/null 12102 ac_configure_extra_args="$ac_configure_extra_args --silent" 12103fi 12104 12105_ACEOF 12106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12107if \$ac_cs_recheck; then 12108 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12109 shift 12110 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12111 CONFIG_SHELL='$SHELL' 12112 export CONFIG_SHELL 12113 exec "\$@" 12114fi 12115 12116_ACEOF 12117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12118exec 5>>config.log 12119{ 12120 echo 12121 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12122## Running $as_me. ## 12123_ASBOX 12124 printf "%s\n" "$ac_log" 12125} >&5 12126 12127_ACEOF 12128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12129# 12130# INIT-COMMANDS 12131# 12132AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12133 12134_ACEOF 12135 12136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12137 12138# Handling of arguments. 12139for ac_config_target in $ac_config_targets 12140do 12141 case $ac_config_target in 12142 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12143 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12144 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12145 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12146 12147 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12148 esac 12149done 12150 12151 12152# If the user did not use the arguments to specify the items to instantiate, 12153# then the envvar interface is used. Set only those that are not. 12154# We use the long form for the default assignment because of an extremely 12155# bizarre bug on SunOS 4.1.3. 12156if $ac_need_defaults; then 12157 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12158 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12159 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12160fi 12161 12162# Have a temporary directory for convenience. Make it in the build tree 12163# simply because there is no reason against having it here, and in addition, 12164# creating and moving files from /tmp can sometimes cause problems. 12165# Hook for its removal unless debugging. 12166# Note that there is a small window in which the directory will not be cleaned: 12167# after its creation but before its name has been assigned to `$tmp'. 12168$debug || 12169{ 12170 tmp= ac_tmp= 12171 trap 'exit_status=$? 12172 : "${ac_tmp:=$tmp}" 12173 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12174' 0 12175 trap 'as_fn_exit 1' 1 2 13 15 12176} 12177# Create a (secure) tmp directory for tmp files. 12178 12179{ 12180 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12181 test -d "$tmp" 12182} || 12183{ 12184 tmp=./conf$$-$RANDOM 12185 (umask 077 && mkdir "$tmp") 12186} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12187ac_tmp=$tmp 12188 12189# Set up the scripts for CONFIG_FILES section. 12190# No need to generate them if there are no CONFIG_FILES. 12191# This happens for instance with `./config.status config.h'. 12192if test -n "$CONFIG_FILES"; then 12193 12194 12195ac_cr=`echo X | tr X '\015'` 12196# On cygwin, bash can eat \r inside `` if the user requested igncr. 12197# But we know of no other shell where ac_cr would be empty at this 12198# point, so we can use a bashism as a fallback. 12199if test "x$ac_cr" = x; then 12200 eval ac_cr=\$\'\\r\' 12201fi 12202ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12203if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12204 ac_cs_awk_cr='\\r' 12205else 12206 ac_cs_awk_cr=$ac_cr 12207fi 12208 12209echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12210_ACEOF 12211 12212 12213{ 12214 echo "cat >conf$$subs.awk <<_ACEOF" && 12215 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12216 echo "_ACEOF" 12217} >conf$$subs.sh || 12218 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12219ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12220ac_delim='%!_!# ' 12221for ac_last_try in false false false false false :; do 12222 . ./conf$$subs.sh || 12223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12224 12225 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12226 if test $ac_delim_n = $ac_delim_num; then 12227 break 12228 elif $ac_last_try; then 12229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12230 else 12231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12232 fi 12233done 12234rm -f conf$$subs.sh 12235 12236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12237cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12238_ACEOF 12239sed -n ' 12240h 12241s/^/S["/; s/!.*/"]=/ 12242p 12243g 12244s/^[^!]*!// 12245:repl 12246t repl 12247s/'"$ac_delim"'$// 12248t delim 12249:nl 12250h 12251s/\(.\{148\}\)..*/\1/ 12252t more1 12253s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12254p 12255n 12256b repl 12257:more1 12258s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12259p 12260g 12261s/.\{148\}// 12262t nl 12263:delim 12264h 12265s/\(.\{148\}\)..*/\1/ 12266t more2 12267s/["\\]/\\&/g; s/^/"/; s/$/"/ 12268p 12269b 12270:more2 12271s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12272p 12273g 12274s/.\{148\}// 12275t delim 12276' <conf$$subs.awk | sed ' 12277/^[^""]/{ 12278 N 12279 s/\n// 12280} 12281' >>$CONFIG_STATUS || ac_write_fail=1 12282rm -f conf$$subs.awk 12283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12284_ACAWK 12285cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12286 for (key in S) S_is_set[key] = 1 12287 FS = "" 12288 12289} 12290{ 12291 line = $ 0 12292 nfields = split(line, field, "@") 12293 substed = 0 12294 len = length(field[1]) 12295 for (i = 2; i < nfields; i++) { 12296 key = field[i] 12297 keylen = length(key) 12298 if (S_is_set[key]) { 12299 value = S[key] 12300 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12301 len += length(value) + length(field[++i]) 12302 substed = 1 12303 } else 12304 len += 1 + keylen 12305 } 12306 12307 print line 12308} 12309 12310_ACAWK 12311_ACEOF 12312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12313if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12314 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12315else 12316 cat 12317fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12318 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12319_ACEOF 12320 12321# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12322# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12323# trailing colons and then remove the whole line if VPATH becomes empty 12324# (actually we leave an empty line to preserve line numbers). 12325if test "x$srcdir" = x.; then 12326 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12327h 12328s/// 12329s/^/:/ 12330s/[ ]*$/:/ 12331s/:\$(srcdir):/:/g 12332s/:\${srcdir}:/:/g 12333s/:@srcdir@:/:/g 12334s/^:*// 12335s/:*$// 12336x 12337s/\(=[ ]*\).*/\1/ 12338G 12339s/\n// 12340s/^[^=]*=[ ]*$// 12341}' 12342fi 12343 12344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12345fi # test -n "$CONFIG_FILES" 12346 12347# Set up the scripts for CONFIG_HEADERS section. 12348# No need to generate them if there are no CONFIG_HEADERS. 12349# This happens for instance with `./config.status Makefile'. 12350if test -n "$CONFIG_HEADERS"; then 12351cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12352BEGIN { 12353_ACEOF 12354 12355# Transform confdefs.h into an awk script `defines.awk', embedded as 12356# here-document in config.status, that substitutes the proper values into 12357# config.h.in to produce config.h. 12358 12359# Create a delimiter string that does not exist in confdefs.h, to ease 12360# handling of long lines. 12361ac_delim='%!_!# ' 12362for ac_last_try in false false :; do 12363 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12364 if test -z "$ac_tt"; then 12365 break 12366 elif $ac_last_try; then 12367 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12368 else 12369 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12370 fi 12371done 12372 12373# For the awk script, D is an array of macro values keyed by name, 12374# likewise P contains macro parameters if any. Preserve backslash 12375# newline sequences. 12376 12377ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12378sed -n ' 12379s/.\{148\}/&'"$ac_delim"'/g 12380t rset 12381:rset 12382s/^[ ]*#[ ]*define[ ][ ]*/ / 12383t def 12384d 12385:def 12386s/\\$// 12387t bsnl 12388s/["\\]/\\&/g 12389s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12390D["\1"]=" \3"/p 12391s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12392d 12393:bsnl 12394s/["\\]/\\&/g 12395s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12396D["\1"]=" \3\\\\\\n"\\/p 12397t cont 12398s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12399t cont 12400d 12401:cont 12402n 12403s/.\{148\}/&'"$ac_delim"'/g 12404t clear 12405:clear 12406s/\\$// 12407t bsnlc 12408s/["\\]/\\&/g; s/^/"/; s/$/"/p 12409d 12410:bsnlc 12411s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12412b cont 12413' <confdefs.h | sed ' 12414s/'"$ac_delim"'/"\\\ 12415"/g' >>$CONFIG_STATUS || ac_write_fail=1 12416 12417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12418 for (key in D) D_is_set[key] = 1 12419 FS = "" 12420} 12421/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12422 line = \$ 0 12423 split(line, arg, " ") 12424 if (arg[1] == "#") { 12425 defundef = arg[2] 12426 mac1 = arg[3] 12427 } else { 12428 defundef = substr(arg[1], 2) 12429 mac1 = arg[2] 12430 } 12431 split(mac1, mac2, "(") #) 12432 macro = mac2[1] 12433 prefix = substr(line, 1, index(line, defundef) - 1) 12434 if (D_is_set[macro]) { 12435 # Preserve the white space surrounding the "#". 12436 print prefix "define", macro P[macro] D[macro] 12437 next 12438 } else { 12439 # Replace #undef with comments. This is necessary, for example, 12440 # in the case of _POSIX_SOURCE, which is predefined and required 12441 # on some systems where configure will not decide to define it. 12442 if (defundef == "undef") { 12443 print "/*", prefix defundef, macro, "*/" 12444 next 12445 } 12446 } 12447} 12448{ print } 12449_ACAWK 12450_ACEOF 12451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12452 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12453fi # test -n "$CONFIG_HEADERS" 12454 12455 12456eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12457shift 12458for ac_tag 12459do 12460 case $ac_tag in 12461 :[FHLC]) ac_mode=$ac_tag; continue;; 12462 esac 12463 case $ac_mode$ac_tag in 12464 :[FHL]*:*);; 12465 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12466 :[FH]-) ac_tag=-:-;; 12467 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12468 esac 12469 ac_save_IFS=$IFS 12470 IFS=: 12471 set x $ac_tag 12472 IFS=$ac_save_IFS 12473 shift 12474 ac_file=$1 12475 shift 12476 12477 case $ac_mode in 12478 :L) ac_source=$1;; 12479 :[FH]) 12480 ac_file_inputs= 12481 for ac_f 12482 do 12483 case $ac_f in 12484 -) ac_f="$ac_tmp/stdin";; 12485 *) # Look for the file first in the build tree, then in the source tree 12486 # (if the path is not absolute). The absolute path cannot be DOS-style, 12487 # because $ac_f cannot contain `:'. 12488 test -f "$ac_f" || 12489 case $ac_f in 12490 [\\/$]*) false;; 12491 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12492 esac || 12493 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12494 esac 12495 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12496 as_fn_append ac_file_inputs " '$ac_f'" 12497 done 12498 12499 # Let's still pretend it is `configure' which instantiates (i.e., don't 12500 # use $as_me), people would be surprised to read: 12501 # /* config.h. Generated by config.status. */ 12502 configure_input='Generated from '` 12503 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12504 `' by configure.' 12505 if test x"$ac_file" != x-; then 12506 configure_input="$ac_file. $configure_input" 12507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12508printf "%s\n" "$as_me: creating $ac_file" >&6;} 12509 fi 12510 # Neutralize special characters interpreted by sed in replacement strings. 12511 case $configure_input in #( 12512 *\&* | *\|* | *\\* ) 12513 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12514 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12515 *) ac_sed_conf_input=$configure_input;; 12516 esac 12517 12518 case $ac_tag in 12519 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12520 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12521 esac 12522 ;; 12523 esac 12524 12525 ac_dir=`$as_dirname -- "$ac_file" || 12526$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12527 X"$ac_file" : 'X\(//\)[^/]' \| \ 12528 X"$ac_file" : 'X\(//\)$' \| \ 12529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12530printf "%s\n" X"$ac_file" | 12531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12532 s//\1/ 12533 q 12534 } 12535 /^X\(\/\/\)[^/].*/{ 12536 s//\1/ 12537 q 12538 } 12539 /^X\(\/\/\)$/{ 12540 s//\1/ 12541 q 12542 } 12543 /^X\(\/\).*/{ 12544 s//\1/ 12545 q 12546 } 12547 s/.*/./; q'` 12548 as_dir="$ac_dir"; as_fn_mkdir_p 12549 ac_builddir=. 12550 12551case "$ac_dir" in 12552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12553*) 12554 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12555 # A ".." for each directory in $ac_dir_suffix. 12556 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12557 case $ac_top_builddir_sub in 12558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12560 esac ;; 12561esac 12562ac_abs_top_builddir=$ac_pwd 12563ac_abs_builddir=$ac_pwd$ac_dir_suffix 12564# for backward compatibility: 12565ac_top_builddir=$ac_top_build_prefix 12566 12567case $srcdir in 12568 .) # We are building in place. 12569 ac_srcdir=. 12570 ac_top_srcdir=$ac_top_builddir_sub 12571 ac_abs_top_srcdir=$ac_pwd ;; 12572 [\\/]* | ?:[\\/]* ) # Absolute name. 12573 ac_srcdir=$srcdir$ac_dir_suffix; 12574 ac_top_srcdir=$srcdir 12575 ac_abs_top_srcdir=$srcdir ;; 12576 *) # Relative name. 12577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12578 ac_top_srcdir=$ac_top_build_prefix$srcdir 12579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12580esac 12581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12582 12583 12584 case $ac_mode in 12585 :F) 12586 # 12587 # CONFIG_FILE 12588 # 12589 12590 case $INSTALL in 12591 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12592 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12593 esac 12594 ac_MKDIR_P=$MKDIR_P 12595 case $MKDIR_P in 12596 [\\/$]* | ?:[\\/]* ) ;; 12597 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12598 esac 12599_ACEOF 12600 12601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12602# If the template does not know about datarootdir, expand it. 12603# FIXME: This hack should be removed a few years after 2.60. 12604ac_datarootdir_hack=; ac_datarootdir_seen= 12605ac_sed_dataroot=' 12606/datarootdir/ { 12607 p 12608 q 12609} 12610/@datadir@/p 12611/@docdir@/p 12612/@infodir@/p 12613/@localedir@/p 12614/@mandir@/p' 12615case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12616*datarootdir*) ac_datarootdir_seen=yes;; 12617*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12619printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12620_ACEOF 12621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12622 ac_datarootdir_hack=' 12623 s&@datadir@&$datadir&g 12624 s&@docdir@&$docdir&g 12625 s&@infodir@&$infodir&g 12626 s&@localedir@&$localedir&g 12627 s&@mandir@&$mandir&g 12628 s&\\\${datarootdir}&$datarootdir&g' ;; 12629esac 12630_ACEOF 12631 12632# Neutralize VPATH when `$srcdir' = `.'. 12633# Shell code in configure.ac might set extrasub. 12634# FIXME: do we really want to maintain this feature? 12635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12636ac_sed_extra="$ac_vpsub 12637$extrasub 12638_ACEOF 12639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12640:t 12641/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12642s|@configure_input@|$ac_sed_conf_input|;t t 12643s&@top_builddir@&$ac_top_builddir_sub&;t t 12644s&@top_build_prefix@&$ac_top_build_prefix&;t t 12645s&@srcdir@&$ac_srcdir&;t t 12646s&@abs_srcdir@&$ac_abs_srcdir&;t t 12647s&@top_srcdir@&$ac_top_srcdir&;t t 12648s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12649s&@builddir@&$ac_builddir&;t t 12650s&@abs_builddir@&$ac_abs_builddir&;t t 12651s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12652s&@INSTALL@&$ac_INSTALL&;t t 12653s&@MKDIR_P@&$ac_MKDIR_P&;t t 12654$ac_datarootdir_hack 12655" 12656eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12657 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12658 12659test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12660 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12661 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12662 "$ac_tmp/out"`; test -z "$ac_out"; } && 12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12664which seems to be undefined. Please make sure it is defined" >&5 12665printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12666which seems to be undefined. Please make sure it is defined" >&2;} 12667 12668 rm -f "$ac_tmp/stdin" 12669 case $ac_file in 12670 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12671 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12672 esac \ 12673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12674 ;; 12675 :H) 12676 # 12677 # CONFIG_HEADER 12678 # 12679 if test x"$ac_file" != x-; then 12680 { 12681 printf "%s\n" "/* $configure_input */" >&1 \ 12682 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12683 } >"$ac_tmp/config.h" \ 12684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12685 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12687printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12688 else 12689 rm -f "$ac_file" 12690 mv "$ac_tmp/config.h" "$ac_file" \ 12691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12692 fi 12693 else 12694 printf "%s\n" "/* $configure_input */" >&1 \ 12695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12696 || as_fn_error $? "could not create -" "$LINENO" 5 12697 fi 12698# Compute "$ac_file"'s index in $config_headers. 12699_am_arg="$ac_file" 12700_am_stamp_count=1 12701for _am_header in $config_headers :; do 12702 case $_am_header in 12703 $_am_arg | $_am_arg:* ) 12704 break ;; 12705 * ) 12706 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12707 esac 12708done 12709echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12710$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12711 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12712 X"$_am_arg" : 'X\(//\)$' \| \ 12713 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12714printf "%s\n" X"$_am_arg" | 12715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12716 s//\1/ 12717 q 12718 } 12719 /^X\(\/\/\)[^/].*/{ 12720 s//\1/ 12721 q 12722 } 12723 /^X\(\/\/\)$/{ 12724 s//\1/ 12725 q 12726 } 12727 /^X\(\/\).*/{ 12728 s//\1/ 12729 q 12730 } 12731 s/.*/./; q'`/stamp-h$_am_stamp_count 12732 ;; 12733 12734 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12735printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12736 ;; 12737 esac 12738 12739 12740 case $ac_file$ac_mode in 12741 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12742 # Older Autoconf quotes --file arguments for eval, but not when files 12743 # are listed without --file. Let's play safe and only enable the eval 12744 # if we detect the quoting. 12745 # TODO: see whether this extra hack can be removed once we start 12746 # requiring Autoconf 2.70 or later. 12747 case $CONFIG_FILES in #( 12748 *\'*) : 12749 eval set x "$CONFIG_FILES" ;; #( 12750 *) : 12751 set x $CONFIG_FILES ;; #( 12752 *) : 12753 ;; 12754esac 12755 shift 12756 # Used to flag and report bootstrapping failures. 12757 am_rc=0 12758 for am_mf 12759 do 12760 # Strip MF so we end up with the name of the file. 12761 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12762 # Check whether this is an Automake generated Makefile which includes 12763 # dependency-tracking related rules and includes. 12764 # Grep'ing the whole file directly is not great: AIX grep has a line 12765 # limit of 2048, but all sed's we know have understand at least 4000. 12766 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12767 || continue 12768 am_dirpart=`$as_dirname -- "$am_mf" || 12769$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12770 X"$am_mf" : 'X\(//\)[^/]' \| \ 12771 X"$am_mf" : 'X\(//\)$' \| \ 12772 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12773printf "%s\n" X"$am_mf" | 12774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12775 s//\1/ 12776 q 12777 } 12778 /^X\(\/\/\)[^/].*/{ 12779 s//\1/ 12780 q 12781 } 12782 /^X\(\/\/\)$/{ 12783 s//\1/ 12784 q 12785 } 12786 /^X\(\/\).*/{ 12787 s//\1/ 12788 q 12789 } 12790 s/.*/./; q'` 12791 am_filepart=`$as_basename -- "$am_mf" || 12792$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12793 X"$am_mf" : 'X\(//\)$' \| \ 12794 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12795printf "%s\n" X/"$am_mf" | 12796 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12797 s//\1/ 12798 q 12799 } 12800 /^X\/\(\/\/\)$/{ 12801 s//\1/ 12802 q 12803 } 12804 /^X\/\(\/\).*/{ 12805 s//\1/ 12806 q 12807 } 12808 s/.*/./; q'` 12809 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12810 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12811 | $MAKE -f - am--depfiles" >&5 12812 (cd "$am_dirpart" \ 12813 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12814 | $MAKE -f - am--depfiles) >&5 2>&5 12815 ac_status=$? 12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12817 (exit $ac_status); } || am_rc=$? 12818 done 12819 if test $am_rc -ne 0; then 12820 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12821printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12822as_fn_error $? "Something went wrong bootstrapping makefile fragments 12823 for automatic dependency tracking. If GNU make was not used, consider 12824 re-running the configure script with MAKE=\"gmake\" (or whatever is 12825 necessary). You can also try re-running configure with the 12826 '--disable-dependency-tracking' option to at least be able to build 12827 the package (albeit without support for automatic dependency tracking). 12828See \`config.log' for more details" "$LINENO" 5; } 12829 fi 12830 { am_dirpart=; unset am_dirpart;} 12831 { am_filepart=; unset am_filepart;} 12832 { am_mf=; unset am_mf;} 12833 { am_rc=; unset am_rc;} 12834 rm -f conftest-deps.mk 12835} 12836 ;; 12837 12838 esac 12839done # for ac_tag 12840 12841 12842as_fn_exit 0 12843_ACEOF 12844ac_clean_files=$ac_clean_files_save 12845 12846test $ac_write_fail = 0 || 12847 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12848 12849 12850# configure is writing to config.log, and then calls config.status. 12851# config.status does its own redirection, appending to config.log. 12852# Unfortunately, on DOS this fails, as config.log is still kept open 12853# by configure, so config.status won't be able to write to it; its 12854# output is simply discarded. So we exec the FD to /dev/null, 12855# effectively closing config.log, so it can be properly (re)opened and 12856# appended to by config.status. When coming back to configure, we 12857# need to make the FD available again. 12858if test "$no_create" != yes; then 12859 ac_cs_success=: 12860 ac_config_status_args= 12861 test "$silent" = yes && 12862 ac_config_status_args="$ac_config_status_args --quiet" 12863 exec 5>/dev/null 12864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12865 exec 5>>config.log 12866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12867 # would make configure fail if this is the last instruction. 12868 $ac_cs_success || as_fn_exit 1 12869fi 12870if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12872printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12873fi 12874 12875 12876