1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xwd 1.0.9. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/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/xwd/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='xwd' 614PACKAGE_TARNAME='xwd' 615PACKAGE_VERSION='1.0.9' 616PACKAGE_STRING='xwd 1.0.9' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xwd/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 657XWD_LIBS 658XWD_CFLAGS 659MAN_SUBSTS 660XORG_MAN_PAGE 661ADMIN_MAN_DIR 662DRIVER_MAN_DIR 663MISC_MAN_DIR 664FILE_MAN_DIR 665LIB_MAN_DIR 666APP_MAN_DIR 667ADMIN_MAN_SUFFIX 668DRIVER_MAN_SUFFIX 669MISC_MAN_SUFFIX 670FILE_MAN_SUFFIX 671LIB_MAN_SUFFIX 672APP_MAN_SUFFIX 673SED 674host_os 675host_vendor 676host_cpu 677host 678build_os 679build_vendor 680build_cpu 681build 682INSTALL_CMD 683PKG_CONFIG_LIBDIR 684PKG_CONFIG_PATH 685PKG_CONFIG 686CHANGELOG_CMD 687STRICT_CFLAGS 688CWARNFLAGS 689BASE_CFLAGS 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__include 698DEPDIR 699OBJEXT 700EXEEXT 701ac_ct_CC 702CPPFLAGS 703LDFLAGS 704CFLAGS 705CC 706AM_BACKSLASH 707AM_DEFAULT_VERBOSITY 708AM_DEFAULT_V 709AM_V 710CSCOPE 711ETAGS 712CTAGS 713am__untar 714am__tar 715AMTAR 716am__leading_dot 717SET_MAKE 718AWK 719mkdir_p 720MKDIR_P 721INSTALL_STRIP_PROGRAM 722STRIP 723install_sh 724MAKEINFO 725AUTOHEADER 726AUTOMAKE 727AUTOCONF 728ACLOCAL 729VERSION 730PACKAGE 731CYGPATH_W 732am__isrc 733INSTALL_DATA 734INSTALL_SCRIPT 735INSTALL_PROGRAM 736target_alias 737host_alias 738build_alias 739LIBS 740ECHO_T 741ECHO_N 742ECHO_C 743DEFS 744mandir 745localedir 746libdir 747psdir 748pdfdir 749dvidir 750htmldir 751infodir 752docdir 753oldincludedir 754includedir 755runstatedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL 775am__quote' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_silent_rules 780enable_dependency_tracking 781enable_selective_werror 782enable_strict_compilation 783with_xkb 784' 785 ac_precious_vars='build_alias 786host_alias 787target_alias 788CC 789CFLAGS 790LDFLAGS 791LIBS 792CPPFLAGS 793PKG_CONFIG 794PKG_CONFIG_PATH 795PKG_CONFIG_LIBDIR 796XWD_CFLAGS 797XWD_LIBS' 798 799 800# Initialize some variables set by options. 801ac_init_help= 802ac_init_version=false 803ac_unrecognized_opts= 804ac_unrecognized_sep= 805# The variables have the same names as the options, with 806# dashes changed to underlines. 807cache_file=/dev/null 808exec_prefix=NONE 809no_create= 810no_recursion= 811prefix=NONE 812program_prefix=NONE 813program_suffix=NONE 814program_transform_name=s,x,x, 815silent= 816site= 817srcdir= 818verbose= 819x_includes=NONE 820x_libraries=NONE 821 822# Installation directory options. 823# These are left unexpanded so users can "make install exec_prefix=/foo" 824# and all the variables that are supposed to be based on exec_prefix 825# by default will actually change. 826# Use braces instead of parens because sh, perl, etc. also accept them. 827# (The list follows the same order as the GNU Coding Standards.) 828bindir='${exec_prefix}/bin' 829sbindir='${exec_prefix}/sbin' 830libexecdir='${exec_prefix}/libexec' 831datarootdir='${prefix}/share' 832datadir='${datarootdir}' 833sysconfdir='${prefix}/etc' 834sharedstatedir='${prefix}/com' 835localstatedir='${prefix}/var' 836runstatedir='${localstatedir}/run' 837includedir='${prefix}/include' 838oldincludedir='/usr/include' 839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 840infodir='${datarootdir}/info' 841htmldir='${docdir}' 842dvidir='${docdir}' 843pdfdir='${docdir}' 844psdir='${docdir}' 845libdir='${exec_prefix}/lib' 846localedir='${datarootdir}/locale' 847mandir='${datarootdir}/man' 848 849ac_prev= 850ac_dashdash= 851for ac_option 852do 853 # If the previous option needs an argument, assign it. 854 if test -n "$ac_prev"; then 855 eval $ac_prev=\$ac_option 856 ac_prev= 857 continue 858 fi 859 860 case $ac_option in 861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 862 *=) ac_optarg= ;; 863 *) ac_optarg=yes ;; 864 esac 865 866 case $ac_dashdash$ac_option in 867 --) 868 ac_dashdash=yes ;; 869 870 -bindir | --bindir | --bindi | --bind | --bin | --bi) 871 ac_prev=bindir ;; 872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 873 bindir=$ac_optarg ;; 874 875 -build | --build | --buil | --bui | --bu) 876 ac_prev=build_alias ;; 877 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 878 build_alias=$ac_optarg ;; 879 880 -cache-file | --cache-file | --cache-fil | --cache-fi \ 881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 882 ac_prev=cache_file ;; 883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 885 cache_file=$ac_optarg ;; 886 887 --config-cache | -C) 888 cache_file=config.cache ;; 889 890 -datadir | --datadir | --datadi | --datad) 891 ac_prev=datadir ;; 892 -datadir=* | --datadir=* | --datadi=* | --datad=*) 893 datadir=$ac_optarg ;; 894 895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 896 | --dataroo | --dataro | --datar) 897 ac_prev=datarootdir ;; 898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 900 datarootdir=$ac_optarg ;; 901 902 -disable-* | --disable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: \`$ac_useropt'" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=no ;; 917 918 -docdir | --docdir | --docdi | --doc | --do) 919 ac_prev=docdir ;; 920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 921 docdir=$ac_optarg ;; 922 923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 924 ac_prev=dvidir ;; 925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 926 dvidir=$ac_optarg ;; 927 928 -enable-* | --enable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: \`$ac_useropt'" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=\$ac_optarg ;; 943 944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 946 | --exec | --exe | --ex) 947 ac_prev=exec_prefix ;; 948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 950 | --exec=* | --exe=* | --ex=*) 951 exec_prefix=$ac_optarg ;; 952 953 -gas | --gas | --ga | --g) 954 # Obsolete; use --with-gas. 955 with_gas=yes ;; 956 957 -help | --help | --hel | --he | -h) 958 ac_init_help=long ;; 959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 960 ac_init_help=recursive ;; 961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 962 ac_init_help=short ;; 963 964 -host | --host | --hos | --ho) 965 ac_prev=host_alias ;; 966 -host=* | --host=* | --hos=* | --ho=*) 967 host_alias=$ac_optarg ;; 968 969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 970 ac_prev=htmldir ;; 971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 972 | --ht=*) 973 htmldir=$ac_optarg ;; 974 975 -includedir | --includedir | --includedi | --included | --include \ 976 | --includ | --inclu | --incl | --inc) 977 ac_prev=includedir ;; 978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 979 | --includ=* | --inclu=* | --incl=* | --inc=*) 980 includedir=$ac_optarg ;; 981 982 -infodir | --infodir | --infodi | --infod | --info | --inf) 983 ac_prev=infodir ;; 984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 985 infodir=$ac_optarg ;; 986 987 -libdir | --libdir | --libdi | --libd) 988 ac_prev=libdir ;; 989 -libdir=* | --libdir=* | --libdi=* | --libd=*) 990 libdir=$ac_optarg ;; 991 992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 993 | --libexe | --libex | --libe) 994 ac_prev=libexecdir ;; 995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 996 | --libexe=* | --libex=* | --libe=*) 997 libexecdir=$ac_optarg ;; 998 999 -localedir | --localedir | --localedi | --localed | --locale) 1000 ac_prev=localedir ;; 1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1002 localedir=$ac_optarg ;; 1003 1004 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1005 | --localstate | --localstat | --localsta | --localst | --locals) 1006 ac_prev=localstatedir ;; 1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1009 localstatedir=$ac_optarg ;; 1010 1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1012 ac_prev=mandir ;; 1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1014 mandir=$ac_optarg ;; 1015 1016 -nfp | --nfp | --nf) 1017 # Obsolete; use --without-fp. 1018 with_fp=no ;; 1019 1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1021 | --no-cr | --no-c | -n) 1022 no_create=yes ;; 1023 1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1026 no_recursion=yes ;; 1027 1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1030 | --oldin | --oldi | --old | --ol | --o) 1031 ac_prev=oldincludedir ;; 1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1035 oldincludedir=$ac_optarg ;; 1036 1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1038 ac_prev=prefix ;; 1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1040 prefix=$ac_optarg ;; 1041 1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1043 | --program-pre | --program-pr | --program-p) 1044 ac_prev=program_prefix ;; 1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1047 program_prefix=$ac_optarg ;; 1048 1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1050 | --program-suf | --program-su | --program-s) 1051 ac_prev=program_suffix ;; 1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1054 program_suffix=$ac_optarg ;; 1055 1056 -program-transform-name | --program-transform-name \ 1057 | --program-transform-nam | --program-transform-na \ 1058 | --program-transform-n | --program-transform- \ 1059 | --program-transform | --program-transfor \ 1060 | --program-transfo | --program-transf \ 1061 | --program-trans | --program-tran \ 1062 | --progr-tra | --program-tr | --program-t) 1063 ac_prev=program_transform_name ;; 1064 -program-transform-name=* | --program-transform-name=* \ 1065 | --program-transform-nam=* | --program-transform-na=* \ 1066 | --program-transform-n=* | --program-transform-=* \ 1067 | --program-transform=* | --program-transfor=* \ 1068 | --program-transfo=* | --program-transf=* \ 1069 | --program-trans=* | --program-tran=* \ 1070 | --progr-tra=* | --program-tr=* | --program-t=*) 1071 program_transform_name=$ac_optarg ;; 1072 1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1074 ac_prev=pdfdir ;; 1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1076 pdfdir=$ac_optarg ;; 1077 1078 -psdir | --psdir | --psdi | --psd | --ps) 1079 ac_prev=psdir ;; 1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1081 psdir=$ac_optarg ;; 1082 1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1084 | -silent | --silent | --silen | --sile | --sil) 1085 silent=yes ;; 1086 1087 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1088 | --runstate | --runstat | --runsta | --runst | --runs \ 1089 | --run | --ru | --r) 1090 ac_prev=runstatedir ;; 1091 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1092 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1093 | --run=* | --ru=* | --r=*) 1094 runstatedir=$ac_optarg ;; 1095 1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1097 ac_prev=sbindir ;; 1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1099 | --sbi=* | --sb=*) 1100 sbindir=$ac_optarg ;; 1101 1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1104 | --sharedst | --shareds | --shared | --share | --shar \ 1105 | --sha | --sh) 1106 ac_prev=sharedstatedir ;; 1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1110 | --sha=* | --sh=*) 1111 sharedstatedir=$ac_optarg ;; 1112 1113 -site | --site | --sit) 1114 ac_prev=site ;; 1115 -site=* | --site=* | --sit=*) 1116 site=$ac_optarg ;; 1117 1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1119 ac_prev=srcdir ;; 1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1121 srcdir=$ac_optarg ;; 1122 1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1124 | --syscon | --sysco | --sysc | --sys | --sy) 1125 ac_prev=sysconfdir ;; 1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1128 sysconfdir=$ac_optarg ;; 1129 1130 -target | --target | --targe | --targ | --tar | --ta | --t) 1131 ac_prev=target_alias ;; 1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1133 target_alias=$ac_optarg ;; 1134 1135 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1136 verbose=yes ;; 1137 1138 -version | --version | --versio | --versi | --vers | -V) 1139 ac_init_version=: ;; 1140 1141 -with-* | --with-*) 1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1143 # Reject names that are not valid shell variable names. 1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1145 as_fn_error $? "invalid package name: \`$ac_useropt'" 1146 ac_useropt_orig=$ac_useropt 1147 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1148 case $ac_user_opts in 1149 *" 1150"with_$ac_useropt" 1151"*) ;; 1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1153 ac_unrecognized_sep=', ';; 1154 esac 1155 eval with_$ac_useropt=\$ac_optarg ;; 1156 1157 -without-* | --without-*) 1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1159 # Reject names that are not valid shell variable names. 1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1161 as_fn_error $? "invalid package name: \`$ac_useropt'" 1162 ac_useropt_orig=$ac_useropt 1163 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1164 case $ac_user_opts in 1165 *" 1166"with_$ac_useropt" 1167"*) ;; 1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1169 ac_unrecognized_sep=', ';; 1170 esac 1171 eval with_$ac_useropt=no ;; 1172 1173 --x) 1174 # Obsolete; use --with-x. 1175 with_x=yes ;; 1176 1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1178 | --x-incl | --x-inc | --x-in | --x-i) 1179 ac_prev=x_includes ;; 1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1182 x_includes=$ac_optarg ;; 1183 1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1186 ac_prev=x_libraries ;; 1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1189 x_libraries=$ac_optarg ;; 1190 1191 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1192Try \`$0 --help' for more information" 1193 ;; 1194 1195 *=*) 1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1197 # Reject names that are not valid shell variable names. 1198 case $ac_envvar in #( 1199 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1201 esac 1202 eval $ac_envvar=\$ac_optarg 1203 export $ac_envvar ;; 1204 1205 *) 1206 # FIXME: should be removed in autoconf 3.0. 1207 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1209 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1211 ;; 1212 1213 esac 1214done 1215 1216if test -n "$ac_prev"; then 1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1218 as_fn_error $? "missing argument to $ac_option" 1219fi 1220 1221if test -n "$ac_unrecognized_opts"; then 1222 case $enable_option_checking in 1223 no) ;; 1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1225 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1226 esac 1227fi 1228 1229# Check all directory arguments for consistency. 1230for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1231 datadir sysconfdir sharedstatedir localstatedir includedir \ 1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1233 libdir localedir mandir runstatedir 1234do 1235 eval ac_val=\$$ac_var 1236 # Remove trailing slashes. 1237 case $ac_val in 1238 */ ) 1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1240 eval $ac_var=\$ac_val;; 1241 esac 1242 # Be sure to have absolute directory names. 1243 case $ac_val in 1244 [\\/$]* | ?:[\\/]* ) continue;; 1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1246 esac 1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1248done 1249 1250# There might be people who depend on the old broken behavior: `$host' 1251# used to hold the argument of --host etc. 1252# FIXME: To remove some day. 1253build=$build_alias 1254host=$host_alias 1255target=$target_alias 1256 1257# FIXME: To remove some day. 1258if test "x$host_alias" != x; then 1259 if test "x$build_alias" = x; then 1260 cross_compiling=maybe 1261 elif test "x$build_alias" != "x$host_alias"; then 1262 cross_compiling=yes 1263 fi 1264fi 1265 1266ac_tool_prefix= 1267test -n "$host_alias" && ac_tool_prefix=$host_alias- 1268 1269test "$silent" = yes && exec 6>/dev/null 1270 1271 1272ac_pwd=`pwd` && test -n "$ac_pwd" && 1273ac_ls_di=`ls -di .` && 1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1275 as_fn_error $? "working directory cannot be determined" 1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1277 as_fn_error $? "pwd does not report name of working directory" 1278 1279 1280# Find the source files, if location was not specified. 1281if test -z "$srcdir"; then 1282 ac_srcdir_defaulted=yes 1283 # Try the directory containing this script, then the parent directory. 1284 ac_confdir=`$as_dirname -- "$as_myself" || 1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1286 X"$as_myself" : 'X\(//\)[^/]' \| \ 1287 X"$as_myself" : 'X\(//\)$' \| \ 1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1289printf "%s\n" X"$as_myself" | 1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)[^/].*/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)$/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\).*/{ 1303 s//\1/ 1304 q 1305 } 1306 s/.*/./; q'` 1307 srcdir=$ac_confdir 1308 if test ! -r "$srcdir/$ac_unique_file"; then 1309 srcdir=.. 1310 fi 1311else 1312 ac_srcdir_defaulted=no 1313fi 1314if test ! -r "$srcdir/$ac_unique_file"; then 1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1317fi 1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1319ac_abs_confdir=`( 1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1321 pwd)` 1322# When building in place, set srcdir=. 1323if test "$ac_abs_confdir" = "$ac_pwd"; then 1324 srcdir=. 1325fi 1326# Remove unnecessary trailing slashes from srcdir. 1327# Double slashes in file names in object file debugging info 1328# mess up M-x gdb in Emacs. 1329case $srcdir in 1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1331esac 1332for ac_var in $ac_precious_vars; do 1333 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1334 eval ac_env_${ac_var}_value=\$${ac_var} 1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1337done 1338 1339# 1340# Report the --help message. 1341# 1342if test "$ac_init_help" = "long"; then 1343 # Omit some internal or obsolete options to make the list less imposing. 1344 # This message is too long to be a string in the A/UX 3.1 sh. 1345 cat <<_ACEOF 1346\`configure' configures xwd 1.0.9 to adapt to many kinds of systems. 1347 1348Usage: $0 [OPTION]... [VAR=VALUE]... 1349 1350To assign environment variables (e.g., CC, CFLAGS...), specify them as 1351VAR=VALUE. See below for descriptions of some of the useful variables. 1352 1353Defaults for the options are specified in brackets. 1354 1355Configuration: 1356 -h, --help display this help and exit 1357 --help=short display options specific to this package 1358 --help=recursive display the short help of all the included packages 1359 -V, --version display version information and exit 1360 -q, --quiet, --silent do not print \`checking ...' messages 1361 --cache-file=FILE cache test results in FILE [disabled] 1362 -C, --config-cache alias for \`--cache-file=config.cache' 1363 -n, --no-create do not create output files 1364 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1365 1366Installation directories: 1367 --prefix=PREFIX install architecture-independent files in PREFIX 1368 [$ac_default_prefix] 1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1370 [PREFIX] 1371 1372By default, \`make install' will install all the files in 1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1374an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1375for instance \`--prefix=\$HOME'. 1376 1377For better control, use the options below. 1378 1379Fine tuning of the installation directories: 1380 --bindir=DIR user executables [EPREFIX/bin] 1381 --sbindir=DIR system admin executables [EPREFIX/sbin] 1382 --libexecdir=DIR program executables [EPREFIX/libexec] 1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1386 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1387 --libdir=DIR object code libraries [EPREFIX/lib] 1388 --includedir=DIR C header files [PREFIX/include] 1389 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1392 --infodir=DIR info documentation [DATAROOTDIR/info] 1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1394 --mandir=DIR man documentation [DATAROOTDIR/man] 1395 --docdir=DIR documentation root [DATAROOTDIR/doc/xwd] 1396 --htmldir=DIR html documentation [DOCDIR] 1397 --dvidir=DIR dvi documentation [DOCDIR] 1398 --pdfdir=DIR pdf documentation [DOCDIR] 1399 --psdir=DIR ps documentation [DOCDIR] 1400_ACEOF 1401 1402 cat <<\_ACEOF 1403 1404Program names: 1405 --program-prefix=PREFIX prepend PREFIX to installed program names 1406 --program-suffix=SUFFIX append SUFFIX to installed program names 1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1408 1409System types: 1410 --build=BUILD configure for building on BUILD [guessed] 1411 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1412_ACEOF 1413fi 1414 1415if test -n "$ac_init_help"; then 1416 case $ac_init_help in 1417 short | recursive ) echo "Configuration of xwd 1.0.9:";; 1418 esac 1419 cat <<\_ACEOF 1420 1421Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --enable-silent-rules less verbose build output (undo: "make V=1") 1426 --disable-silent-rules verbose build output (undo: "make V=0") 1427 --enable-dependency-tracking 1428 do not reject slow dependency extractors 1429 --disable-dependency-tracking 1430 speeds up one-time build 1431 --disable-selective-werror 1432 Turn off selective compiler errors. (default: 1433 enabled) 1434 --enable-strict-compilation 1435 Enable all warnings from compiler and make them 1436 errors (default: disabled) 1437 1438Optional Packages: 1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1441 --without-xkb Disable use of XKB to sound bells (Default is 1442 with-xkb) 1443 1444Some influential environment variables: 1445 CC C compiler command 1446 CFLAGS C compiler flags 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1448 nonstandard directory <lib dir> 1449 LIBS libraries to pass to the linker, e.g. -l<library> 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1451 you have headers in a nonstandard directory <include dir> 1452 PKG_CONFIG path to pkg-config utility 1453 PKG_CONFIG_PATH 1454 directories to add to pkg-config's search path 1455 PKG_CONFIG_LIBDIR 1456 path overriding pkg-config's built-in search path 1457 XWD_CFLAGS C compiler flags for XWD, overriding pkg-config 1458 XWD_LIBS linker flags for XWD, overriding pkg-config 1459 1460Use these variables to override the choices made by `configure' or to help 1461it to find libraries and programs with nonstandard names/locations. 1462 1463Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>. 1464_ACEOF 1465ac_status=$? 1466fi 1467 1468if test "$ac_init_help" = "recursive"; then 1469 # If there are subdirs, report their specific --help. 1470 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1471 test -d "$ac_dir" || 1472 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1473 continue 1474 ac_builddir=. 1475 1476case "$ac_dir" in 1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1478*) 1479 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1480 # A ".." for each directory in $ac_dir_suffix. 1481 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1482 case $ac_top_builddir_sub in 1483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1485 esac ;; 1486esac 1487ac_abs_top_builddir=$ac_pwd 1488ac_abs_builddir=$ac_pwd$ac_dir_suffix 1489# for backward compatibility: 1490ac_top_builddir=$ac_top_build_prefix 1491 1492case $srcdir in 1493 .) # We are building in place. 1494 ac_srcdir=. 1495 ac_top_srcdir=$ac_top_builddir_sub 1496 ac_abs_top_srcdir=$ac_pwd ;; 1497 [\\/]* | ?:[\\/]* ) # Absolute name. 1498 ac_srcdir=$srcdir$ac_dir_suffix; 1499 ac_top_srcdir=$srcdir 1500 ac_abs_top_srcdir=$srcdir ;; 1501 *) # Relative name. 1502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1503 ac_top_srcdir=$ac_top_build_prefix$srcdir 1504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1505esac 1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1507 1508 cd "$ac_dir" || { ac_status=$?; continue; } 1509 # Check for configure.gnu first; this name is used for a wrapper for 1510 # Metaconfig's "Configure" on case-insensitive file systems. 1511 if test -f "$ac_srcdir/configure.gnu"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514 elif test -f "$ac_srcdir/configure"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure" --help=recursive 1517 else 1518 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519 fi || ac_status=$? 1520 cd "$ac_pwd" || { ac_status=$?; break; } 1521 done 1522fi 1523 1524test -n "$ac_init_help" && exit $ac_status 1525if $ac_init_version; then 1526 cat <<\_ACEOF 1527xwd configure 1.0.9 1528generated by GNU Autoconf 2.71 1529 1530Copyright (C) 2021 Free Software Foundation, Inc. 1531This configure script is free software; the Free Software Foundation 1532gives unlimited permission to copy, distribute and modify it. 1533_ACEOF 1534 exit 1535fi 1536 1537## ------------------------ ## 1538## Autoconf initialization. ## 1539## ------------------------ ## 1540 1541# ac_fn_c_try_compile LINENO 1542# -------------------------- 1543# Try to compile conftest.$ac_ext, and return whether this succeeded. 1544ac_fn_c_try_compile () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext conftest.beam 1548 if { { ac_try="$ac_compile" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554printf "%s\n" "$ac_try_echo"; } >&5 1555 (eval "$ac_compile") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest.$ac_objext 1567then : 1568 ac_retval=0 1569else $as_nop 1570 printf "%s\n" "$as_me: failed program was:" >&5 1571sed 's/^/| /' conftest.$ac_ext >&5 1572 1573 ac_retval=1 1574fi 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 as_fn_set_status $ac_retval 1577 1578} # ac_fn_c_try_compile 1579 1580# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1581# ------------------------------------------------------------------ 1582# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1583# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1584ac_fn_check_decl () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 as_decl_name=`echo $2|sed 's/ *(.*//'` 1588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1589printf %s "checking whether $as_decl_name is declared... " >&6; } 1590if eval test \${$3+y} 1591then : 1592 printf %s "(cached) " >&6 1593else $as_nop 1594 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1595 eval ac_save_FLAGS=\$$6 1596 as_fn_append $6 " $5" 1597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1598/* end confdefs.h. */ 1599$4 1600int 1601main (void) 1602{ 1603#ifndef $as_decl_name 1604#ifdef __cplusplus 1605 (void) $as_decl_use; 1606#else 1607 (void) $as_decl_name; 1608#endif 1609#endif 1610 1611 ; 1612 return 0; 1613} 1614_ACEOF 1615if ac_fn_c_try_compile "$LINENO" 1616then : 1617 eval "$3=yes" 1618else $as_nop 1619 eval "$3=no" 1620fi 1621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1622 eval $6=\$ac_save_FLAGS 1623 1624fi 1625eval ac_res=\$$3 1626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1627printf "%s\n" "$ac_res" >&6; } 1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1629 1630} # ac_fn_check_decl 1631 1632# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1633# ------------------------------------------------------- 1634# Tests whether HEADER exists and can be compiled using the include files in 1635# INCLUDES, setting the cache variable VAR accordingly. 1636ac_fn_c_check_header_compile () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640printf %s "checking for $2... " >&6; } 1641if eval test \${$3+y} 1642then : 1643 printf %s "(cached) " >&6 1644else $as_nop 1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1646/* end confdefs.h. */ 1647$4 1648#include <$2> 1649_ACEOF 1650if ac_fn_c_try_compile "$LINENO" 1651then : 1652 eval "$3=yes" 1653else $as_nop 1654 eval "$3=no" 1655fi 1656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1657fi 1658eval ac_res=\$$3 1659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1660printf "%s\n" "$ac_res" >&6; } 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 1663} # ac_fn_c_check_header_compile 1664 1665# ac_fn_c_try_link LINENO 1666# ----------------------- 1667# Try to link conftest.$ac_ext, and return whether this succeeded. 1668ac_fn_c_try_link () 1669{ 1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1671 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1672 if { { ac_try="$ac_link" 1673case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676esac 1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678printf "%s\n" "$ac_try_echo"; } >&5 1679 (eval "$ac_link") 2>conftest.err 1680 ac_status=$? 1681 if test -s conftest.err; then 1682 grep -v '^ *+' conftest.err >conftest.er1 1683 cat conftest.er1 >&5 1684 mv -f conftest.er1 conftest.err 1685 fi 1686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1687 test $ac_status = 0; } && { 1688 test -z "$ac_c_werror_flag" || 1689 test ! -s conftest.err 1690 } && test -s conftest$ac_exeext && { 1691 test "$cross_compiling" = yes || 1692 test -x conftest$ac_exeext 1693 } 1694then : 1695 ac_retval=0 1696else $as_nop 1697 printf "%s\n" "$as_me: failed program was:" >&5 1698sed 's/^/| /' conftest.$ac_ext >&5 1699 1700 ac_retval=1 1701fi 1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1704 # interfere with the next link command; also delete a directory that is 1705 # left behind by Apple's compiler. We do this before executing the actions. 1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_link 1711ac_configure_args_raw= 1712for ac_arg 1713do 1714 case $ac_arg in 1715 *\'*) 1716 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1717 esac 1718 as_fn_append ac_configure_args_raw " '$ac_arg'" 1719done 1720 1721case $ac_configure_args_raw in 1722 *$as_nl*) 1723 ac_safe_unquote= ;; 1724 *) 1725 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1726 ac_unsafe_a="$ac_unsafe_z#~" 1727 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1728 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1729esac 1730 1731cat >config.log <<_ACEOF 1732This file contains any messages produced by compilers while 1733running configure, to aid debugging if configure makes a mistake. 1734 1735It was created by xwd $as_me 1.0.9, which was 1736generated by GNU Autoconf 2.71. Invocation command line was 1737 1738 $ $0$ac_configure_args_raw 1739 1740_ACEOF 1741exec 5>>config.log 1742{ 1743cat <<_ASUNAME 1744## --------- ## 1745## Platform. ## 1746## --------- ## 1747 1748hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1749uname -m = `(uname -m) 2>/dev/null || echo unknown` 1750uname -r = `(uname -r) 2>/dev/null || echo unknown` 1751uname -s = `(uname -s) 2>/dev/null || echo unknown` 1752uname -v = `(uname -v) 2>/dev/null || echo unknown` 1753 1754/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1755/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1756 1757/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1758/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1759/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1760/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1761/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1762/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1763/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1764 1765_ASUNAME 1766 1767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1768for as_dir in $PATH 1769do 1770 IFS=$as_save_IFS 1771 case $as_dir in #((( 1772 '') as_dir=./ ;; 1773 */) ;; 1774 *) as_dir=$as_dir/ ;; 1775 esac 1776 printf "%s\n" "PATH: $as_dir" 1777 done 1778IFS=$as_save_IFS 1779 1780} >&5 1781 1782cat >&5 <<_ACEOF 1783 1784 1785## ----------- ## 1786## Core tests. ## 1787## ----------- ## 1788 1789_ACEOF 1790 1791 1792# Keep a trace of the command line. 1793# Strip out --no-create and --no-recursion so they do not pile up. 1794# Strip out --silent because we don't want to record it for future runs. 1795# Also quote any args containing shell meta-characters. 1796# Make two passes to allow for proper duplicate-argument suppression. 1797ac_configure_args= 1798ac_configure_args0= 1799ac_configure_args1= 1800ac_must_keep_next=false 1801for ac_pass in 1 2 1802do 1803 for ac_arg 1804 do 1805 case $ac_arg in 1806 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1807 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1808 | -silent | --silent | --silen | --sile | --sil) 1809 continue ;; 1810 *\'*) 1811 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1812 esac 1813 case $ac_pass in 1814 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1815 2) 1816 as_fn_append ac_configure_args1 " '$ac_arg'" 1817 if test $ac_must_keep_next = true; then 1818 ac_must_keep_next=false # Got value, back to normal. 1819 else 1820 case $ac_arg in 1821 *=* | --config-cache | -C | -disable-* | --disable-* \ 1822 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1823 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1824 | -with-* | --with-* | -without-* | --without-* | --x) 1825 case "$ac_configure_args0 " in 1826 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1827 esac 1828 ;; 1829 -* ) ac_must_keep_next=true ;; 1830 esac 1831 fi 1832 as_fn_append ac_configure_args " '$ac_arg'" 1833 ;; 1834 esac 1835 done 1836done 1837{ ac_configure_args0=; unset ac_configure_args0;} 1838{ ac_configure_args1=; unset ac_configure_args1;} 1839 1840# When interrupted or exit'd, cleanup temporary files, and complete 1841# config.log. We remove comments because anyway the quotes in there 1842# would cause problems or look ugly. 1843# WARNING: Use '\'' to represent an apostrophe within the trap. 1844# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1845trap 'exit_status=$? 1846 # Sanitize IFS. 1847 IFS=" "" $as_nl" 1848 # Save into config.log some information that might help in debugging. 1849 { 1850 echo 1851 1852 printf "%s\n" "## ---------------- ## 1853## Cache variables. ## 1854## ---------------- ##" 1855 echo 1856 # The following way of writing the cache mishandles newlines in values, 1857( 1858 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1859 eval ac_val=\$$ac_var 1860 case $ac_val in #( 1861 *${as_nl}*) 1862 case $ac_var in #( 1863 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1864printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1865 esac 1866 case $ac_var in #( 1867 _ | IFS | as_nl) ;; #( 1868 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1869 *) { eval $ac_var=; unset $ac_var;} ;; 1870 esac ;; 1871 esac 1872 done 1873 (set) 2>&1 | 1874 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1875 *${as_nl}ac_space=\ *) 1876 sed -n \ 1877 "s/'\''/'\''\\\\'\'''\''/g; 1878 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1879 ;; #( 1880 *) 1881 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1882 ;; 1883 esac | 1884 sort 1885) 1886 echo 1887 1888 printf "%s\n" "## ----------------- ## 1889## Output variables. ## 1890## ----------------- ##" 1891 echo 1892 for ac_var in $ac_subst_vars 1893 do 1894 eval ac_val=\$$ac_var 1895 case $ac_val in 1896 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1897 esac 1898 printf "%s\n" "$ac_var='\''$ac_val'\''" 1899 done | sort 1900 echo 1901 1902 if test -n "$ac_subst_files"; then 1903 printf "%s\n" "## ------------------- ## 1904## File substitutions. ## 1905## ------------------- ##" 1906 echo 1907 for ac_var in $ac_subst_files 1908 do 1909 eval ac_val=\$$ac_var 1910 case $ac_val in 1911 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1912 esac 1913 printf "%s\n" "$ac_var='\''$ac_val'\''" 1914 done | sort 1915 echo 1916 fi 1917 1918 if test -s confdefs.h; then 1919 printf "%s\n" "## ----------- ## 1920## confdefs.h. ## 1921## ----------- ##" 1922 echo 1923 cat confdefs.h 1924 echo 1925 fi 1926 test "$ac_signal" != 0 && 1927 printf "%s\n" "$as_me: caught signal $ac_signal" 1928 printf "%s\n" "$as_me: exit $exit_status" 1929 } >&5 1930 rm -f core *.core core.conftest.* && 1931 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1932 exit $exit_status 1933' 0 1934for ac_signal in 1 2 13 15; do 1935 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1936done 1937ac_signal=0 1938 1939# confdefs.h avoids OS command line length limits that DEFS can exceed. 1940rm -f -r conftest* confdefs.h 1941 1942printf "%s\n" "/* confdefs.h */" > confdefs.h 1943 1944# Predefined preprocessor variables. 1945 1946printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1947 1948printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1949 1950printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1951 1952printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1953 1954printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1955 1956printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1957 1958 1959# Let the site file select an alternate cache file if it wants to. 1960# Prefer an explicitly selected file to automatically selected ones. 1961if test -n "$CONFIG_SITE"; then 1962 ac_site_files="$CONFIG_SITE" 1963elif test "x$prefix" != xNONE; then 1964 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1965else 1966 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1967fi 1968 1969for ac_site_file in $ac_site_files 1970do 1971 case $ac_site_file in #( 1972 */*) : 1973 ;; #( 1974 *) : 1975 ac_site_file=./$ac_site_file ;; 1976esac 1977 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1979printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1980 sed 's/^/| /' "$ac_site_file" >&5 1981 . "$ac_site_file" \ 1982 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1983printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 1984as_fn_error $? "failed to load site script $ac_site_file 1985See \`config.log' for more details" "$LINENO" 5; } 1986 fi 1987done 1988 1989if test -r "$cache_file"; then 1990 # Some versions of bash will fail to source /dev/null (special files 1991 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1992 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1994printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 1995 case $cache_file in 1996 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1997 *) . "./$cache_file";; 1998 esac 1999 fi 2000else 2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2002printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2003 >$cache_file 2004fi 2005 2006# Test code for whether the C compiler supports C89 (global declarations) 2007ac_c_conftest_c89_globals=' 2008/* Does the compiler advertise C89 conformance? 2009 Do not test the value of __STDC__, because some compilers set it to 0 2010 while being otherwise adequately conformant. */ 2011#if !defined __STDC__ 2012# error "Compiler does not advertise C89 conformance" 2013#endif 2014 2015#include <stddef.h> 2016#include <stdarg.h> 2017struct stat; 2018/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2019struct buf { int x; }; 2020struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2021static char *e (p, i) 2022 char **p; 2023 int i; 2024{ 2025 return p[i]; 2026} 2027static char *f (char * (*g) (char **, int), char **p, ...) 2028{ 2029 char *s; 2030 va_list v; 2031 va_start (v,p); 2032 s = g (p, va_arg (v,int)); 2033 va_end (v); 2034 return s; 2035} 2036 2037/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2038 function prototypes and stuff, but not \xHH hex character constants. 2039 These do not provoke an error unfortunately, instead are silently treated 2040 as an "x". The following induces an error, until -std is added to get 2041 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2042 array size at least. It is necessary to write \x00 == 0 to get something 2043 that is true only with -std. */ 2044int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2045 2046/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2047 inside strings and character constants. */ 2048#define FOO(x) '\''x'\'' 2049int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2050 2051int test (int i, double x); 2052struct s1 {int (*f) (int a);}; 2053struct s2 {int (*f) (double a);}; 2054int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2055 int, int);' 2056 2057# Test code for whether the C compiler supports C89 (body of main). 2058ac_c_conftest_c89_main=' 2059ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2060' 2061 2062# Test code for whether the C compiler supports C99 (global declarations) 2063ac_c_conftest_c99_globals=' 2064// Does the compiler advertise C99 conformance? 2065#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2066# error "Compiler does not advertise C99 conformance" 2067#endif 2068 2069#include <stdbool.h> 2070extern int puts (const char *); 2071extern int printf (const char *, ...); 2072extern int dprintf (int, const char *, ...); 2073extern void *malloc (size_t); 2074 2075// Check varargs macros. These examples are taken from C99 6.10.3.5. 2076// dprintf is used instead of fprintf to avoid needing to declare 2077// FILE and stderr. 2078#define debug(...) dprintf (2, __VA_ARGS__) 2079#define showlist(...) puts (#__VA_ARGS__) 2080#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2081static void 2082test_varargs_macros (void) 2083{ 2084 int x = 1234; 2085 int y = 5678; 2086 debug ("Flag"); 2087 debug ("X = %d\n", x); 2088 showlist (The first, second, and third items.); 2089 report (x>y, "x is %d but y is %d", x, y); 2090} 2091 2092// Check long long types. 2093#define BIG64 18446744073709551615ull 2094#define BIG32 4294967295ul 2095#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2096#if !BIG_OK 2097 #error "your preprocessor is broken" 2098#endif 2099#if BIG_OK 2100#else 2101 #error "your preprocessor is broken" 2102#endif 2103static long long int bignum = -9223372036854775807LL; 2104static unsigned long long int ubignum = BIG64; 2105 2106struct incomplete_array 2107{ 2108 int datasize; 2109 double data[]; 2110}; 2111 2112struct named_init { 2113 int number; 2114 const wchar_t *name; 2115 double average; 2116}; 2117 2118typedef const char *ccp; 2119 2120static inline int 2121test_restrict (ccp restrict text) 2122{ 2123 // See if C++-style comments work. 2124 // Iterate through items via the restricted pointer. 2125 // Also check for declarations in for loops. 2126 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2127 continue; 2128 return 0; 2129} 2130 2131// Check varargs and va_copy. 2132static bool 2133test_varargs (const char *format, ...) 2134{ 2135 va_list args; 2136 va_start (args, format); 2137 va_list args_copy; 2138 va_copy (args_copy, args); 2139 2140 const char *str = ""; 2141 int number = 0; 2142 float fnumber = 0; 2143 2144 while (*format) 2145 { 2146 switch (*format++) 2147 { 2148 case '\''s'\'': // string 2149 str = va_arg (args_copy, const char *); 2150 break; 2151 case '\''d'\'': // int 2152 number = va_arg (args_copy, int); 2153 break; 2154 case '\''f'\'': // float 2155 fnumber = va_arg (args_copy, double); 2156 break; 2157 default: 2158 break; 2159 } 2160 } 2161 va_end (args_copy); 2162 va_end (args); 2163 2164 return *str && number && fnumber; 2165} 2166' 2167 2168# Test code for whether the C compiler supports C99 (body of main). 2169ac_c_conftest_c99_main=' 2170 // Check bool. 2171 _Bool success = false; 2172 success |= (argc != 0); 2173 2174 // Check restrict. 2175 if (test_restrict ("String literal") == 0) 2176 success = true; 2177 char *restrict newvar = "Another string"; 2178 2179 // Check varargs. 2180 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2181 test_varargs_macros (); 2182 2183 // Check flexible array members. 2184 struct incomplete_array *ia = 2185 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2186 ia->datasize = 10; 2187 for (int i = 0; i < ia->datasize; ++i) 2188 ia->data[i] = i * 1.234; 2189 2190 // Check named initializers. 2191 struct named_init ni = { 2192 .number = 34, 2193 .name = L"Test wide string", 2194 .average = 543.34343, 2195 }; 2196 2197 ni.number = 58; 2198 2199 int dynamic_array[ni.number]; 2200 dynamic_array[0] = argv[0][0]; 2201 dynamic_array[ni.number - 1] = 543; 2202 2203 // work around unused variable warnings 2204 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2205 || dynamic_array[ni.number - 1] != 543); 2206' 2207 2208# Test code for whether the C compiler supports C11 (global declarations) 2209ac_c_conftest_c11_globals=' 2210// Does the compiler advertise C11 conformance? 2211#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2212# error "Compiler does not advertise C11 conformance" 2213#endif 2214 2215// Check _Alignas. 2216char _Alignas (double) aligned_as_double; 2217char _Alignas (0) no_special_alignment; 2218extern char aligned_as_int; 2219char _Alignas (0) _Alignas (int) aligned_as_int; 2220 2221// Check _Alignof. 2222enum 2223{ 2224 int_alignment = _Alignof (int), 2225 int_array_alignment = _Alignof (int[100]), 2226 char_alignment = _Alignof (char) 2227}; 2228_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2229 2230// Check _Noreturn. 2231int _Noreturn does_not_return (void) { for (;;) continue; } 2232 2233// Check _Static_assert. 2234struct test_static_assert 2235{ 2236 int x; 2237 _Static_assert (sizeof (int) <= sizeof (long int), 2238 "_Static_assert does not work in struct"); 2239 long int y; 2240}; 2241 2242// Check UTF-8 literals. 2243#define u8 syntax error! 2244char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2245 2246// Check duplicate typedefs. 2247typedef long *long_ptr; 2248typedef long int *long_ptr; 2249typedef long_ptr long_ptr; 2250 2251// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2252struct anonymous 2253{ 2254 union { 2255 struct { int i; int j; }; 2256 struct { int k; long int l; } w; 2257 }; 2258 int m; 2259} v1; 2260' 2261 2262# Test code for whether the C compiler supports C11 (body of main). 2263ac_c_conftest_c11_main=' 2264 _Static_assert ((offsetof (struct anonymous, i) 2265 == offsetof (struct anonymous, w.k)), 2266 "Anonymous union alignment botch"); 2267 v1.i = 2; 2268 v1.w.k = 5; 2269 ok |= v1.i != 5; 2270' 2271 2272# Test code for whether the C compiler supports C11 (complete). 2273ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2274${ac_c_conftest_c99_globals} 2275${ac_c_conftest_c11_globals} 2276 2277int 2278main (int argc, char **argv) 2279{ 2280 int ok = 0; 2281 ${ac_c_conftest_c89_main} 2282 ${ac_c_conftest_c99_main} 2283 ${ac_c_conftest_c11_main} 2284 return ok; 2285} 2286" 2287 2288# Test code for whether the C compiler supports C99 (complete). 2289ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2290${ac_c_conftest_c99_globals} 2291 2292int 2293main (int argc, char **argv) 2294{ 2295 int ok = 0; 2296 ${ac_c_conftest_c89_main} 2297 ${ac_c_conftest_c99_main} 2298 return ok; 2299} 2300" 2301 2302# Test code for whether the C compiler supports C89 (complete). 2303ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2304 2305int 2306main (int argc, char **argv) 2307{ 2308 int ok = 0; 2309 ${ac_c_conftest_c89_main} 2310 return ok; 2311} 2312" 2313 2314as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2315as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2316as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2317as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2318as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2319as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2320as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2321as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2322as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2323 2324# Auxiliary files required by this configure script. 2325ac_aux_files="config.guess config.sub compile missing install-sh" 2326 2327# Locations in which to look for auxiliary files. 2328ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2329 2330# Search for a directory containing all of the required auxiliary files, 2331# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2332# If we don't find one directory that contains all the files we need, 2333# we report the set of missing files from the *first* directory in 2334# $ac_aux_dir_candidates and give up. 2335ac_missing_aux_files="" 2336ac_first_candidate=: 2337printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2339as_found=false 2340for as_dir in $ac_aux_dir_candidates 2341do 2342 IFS=$as_save_IFS 2343 case $as_dir in #((( 2344 '') as_dir=./ ;; 2345 */) ;; 2346 *) as_dir=$as_dir/ ;; 2347 esac 2348 as_found=: 2349 2350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2351 ac_aux_dir_found=yes 2352 ac_install_sh= 2353 for ac_aux in $ac_aux_files 2354 do 2355 # As a special case, if "install-sh" is required, that requirement 2356 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2357 # and $ac_install_sh is set appropriately for whichever one is found. 2358 if test x"$ac_aux" = x"install-sh" 2359 then 2360 if test -f "${as_dir}install-sh"; then 2361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2362 ac_install_sh="${as_dir}install-sh -c" 2363 elif test -f "${as_dir}install.sh"; then 2364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2365 ac_install_sh="${as_dir}install.sh -c" 2366 elif test -f "${as_dir}shtool"; then 2367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2368 ac_install_sh="${as_dir}shtool install -c" 2369 else 2370 ac_aux_dir_found=no 2371 if $ac_first_candidate; then 2372 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2373 else 2374 break 2375 fi 2376 fi 2377 else 2378 if test -f "${as_dir}${ac_aux}"; then 2379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2380 else 2381 ac_aux_dir_found=no 2382 if $ac_first_candidate; then 2383 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2384 else 2385 break 2386 fi 2387 fi 2388 fi 2389 done 2390 if test "$ac_aux_dir_found" = yes; then 2391 ac_aux_dir="$as_dir" 2392 break 2393 fi 2394 ac_first_candidate=false 2395 2396 as_found=false 2397done 2398IFS=$as_save_IFS 2399if $as_found 2400then : 2401 2402else $as_nop 2403 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2404fi 2405 2406 2407# These three variables are undocumented and unsupported, 2408# and are intended to be withdrawn in a future Autoconf release. 2409# They can cause serious problems if a builder's source tree is in a directory 2410# whose full name contains unusual characters. 2411if test -f "${ac_aux_dir}config.guess"; then 2412 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2413fi 2414if test -f "${ac_aux_dir}config.sub"; then 2415 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2416fi 2417if test -f "$ac_aux_dir/configure"; then 2418 ac_configure="$SHELL ${ac_aux_dir}configure" 2419fi 2420 2421# Check that the precious variables saved in the cache have kept the same 2422# value. 2423ac_cache_corrupted=false 2424for ac_var in $ac_precious_vars; do 2425 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2426 eval ac_new_set=\$ac_env_${ac_var}_set 2427 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2428 eval ac_new_val=\$ac_env_${ac_var}_value 2429 case $ac_old_set,$ac_new_set in 2430 set,) 2431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2432printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2433 ac_cache_corrupted=: ;; 2434 ,set) 2435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2436printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2437 ac_cache_corrupted=: ;; 2438 ,);; 2439 *) 2440 if test "x$ac_old_val" != "x$ac_new_val"; then 2441 # differences in whitespace do not lead to failure. 2442 ac_old_val_w=`echo x $ac_old_val` 2443 ac_new_val_w=`echo x $ac_new_val` 2444 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2446printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2447 ac_cache_corrupted=: 2448 else 2449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2450printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2451 eval $ac_var=\$ac_old_val 2452 fi 2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2454printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2456printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2457 fi;; 2458 esac 2459 # Pass precious variables to config.status. 2460 if test "$ac_new_set" = set; then 2461 case $ac_new_val in 2462 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2463 *) ac_arg=$ac_var=$ac_new_val ;; 2464 esac 2465 case " $ac_configure_args " in 2466 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2467 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2468 esac 2469 fi 2470done 2471if $ac_cache_corrupted; then 2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2473printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2475printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2476 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2477 and start over" "$LINENO" 5 2478fi 2479## -------------------- ## 2480## Main body of script. ## 2481## -------------------- ## 2482 2483ac_ext=c 2484ac_cpp='$CPP $CPPFLAGS' 2485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2487ac_compiler_gnu=$ac_cv_c_compiler_gnu 2488 2489 2490 2491ac_config_headers="$ac_config_headers config.h" 2492 2493 2494# Initialize Automake 2495am__api_version='1.16' 2496 2497 2498 2499 # Find a good install program. We prefer a C program (faster), 2500# so one script is as good as another. But avoid the broken or 2501# incompatible versions: 2502# SysV /etc/install, /usr/sbin/install 2503# SunOS /usr/etc/install 2504# IRIX /sbin/install 2505# AIX /bin/install 2506# AmigaOS /C/install, which installs bootblocks on floppy discs 2507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2508# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2510# OS/2's system install, which has a completely different semantic 2511# ./install, which can be erroneously created by make from ./install.sh. 2512# Reject install programs that cannot install multiple files. 2513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2514printf %s "checking for a BSD-compatible install... " >&6; } 2515if test -z "$INSTALL"; then 2516if test ${ac_cv_path_install+y} 2517then : 2518 printf %s "(cached) " >&6 2519else $as_nop 2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521for as_dir in $PATH 2522do 2523 IFS=$as_save_IFS 2524 case $as_dir in #((( 2525 '') as_dir=./ ;; 2526 */) ;; 2527 *) as_dir=$as_dir/ ;; 2528 esac 2529 # Account for fact that we put trailing slashes in our PATH walk. 2530case $as_dir in #(( 2531 ./ | /[cC]/* | \ 2532 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2533 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2534 /usr/ucb/* ) ;; 2535 *) 2536 # OSF1 and SCO ODT 3.0 have their own names for install. 2537 # Don't use installbsd from OSF since it installs stuff as root 2538 # by default. 2539 for ac_prog in ginstall scoinst install; do 2540 for ac_exec_ext in '' $ac_executable_extensions; do 2541 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2542 if test $ac_prog = install && 2543 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2544 # AIX install. It has an incompatible calling convention. 2545 : 2546 elif test $ac_prog = install && 2547 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2548 # program-specific install script used by HP pwplus--don't use. 2549 : 2550 else 2551 rm -rf conftest.one conftest.two conftest.dir 2552 echo one > conftest.one 2553 echo two > conftest.two 2554 mkdir conftest.dir 2555 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2556 test -s conftest.one && test -s conftest.two && 2557 test -s conftest.dir/conftest.one && 2558 test -s conftest.dir/conftest.two 2559 then 2560 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2561 break 3 2562 fi 2563 fi 2564 fi 2565 done 2566 done 2567 ;; 2568esac 2569 2570 done 2571IFS=$as_save_IFS 2572 2573rm -rf conftest.one conftest.two conftest.dir 2574 2575fi 2576 if test ${ac_cv_path_install+y}; then 2577 INSTALL=$ac_cv_path_install 2578 else 2579 # As a last resort, use the slow shell script. Don't cache a 2580 # value for INSTALL within a source directory, because that will 2581 # break other packages using the cache if that directory is 2582 # removed, or if the value is a relative name. 2583 INSTALL=$ac_install_sh 2584 fi 2585fi 2586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2587printf "%s\n" "$INSTALL" >&6; } 2588 2589# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2590# It thinks the first close brace ends the variable substitution. 2591test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2592 2593test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2594 2595test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2596 2597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2598printf %s "checking whether build environment is sane... " >&6; } 2599# Reject unsafe characters in $srcdir or the absolute working directory 2600# name. Accept space and tab only in the latter. 2601am_lf=' 2602' 2603case `pwd` in 2604 *[\\\"\#\$\&\'\`$am_lf]*) 2605 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2606esac 2607case $srcdir in 2608 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2609 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2610esac 2611 2612# Do 'set' in a subshell so we don't clobber the current shell's 2613# arguments. Must try -L first in case configure is actually a 2614# symlink; some systems play weird games with the mod time of symlinks 2615# (eg FreeBSD returns the mod time of the symlink's containing 2616# directory). 2617if ( 2618 am_has_slept=no 2619 for am_try in 1 2; do 2620 echo "timestamp, slept: $am_has_slept" > conftest.file 2621 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2622 if test "$*" = "X"; then 2623 # -L didn't work. 2624 set X `ls -t "$srcdir/configure" conftest.file` 2625 fi 2626 if test "$*" != "X $srcdir/configure conftest.file" \ 2627 && test "$*" != "X conftest.file $srcdir/configure"; then 2628 2629 # If neither matched, then we have a broken ls. This can happen 2630 # if, for instance, CONFIG_SHELL is bash and it inherits a 2631 # broken ls alias from the environment. This has actually 2632 # happened. Such a system could not be considered "sane". 2633 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2634 alias in your environment" "$LINENO" 5 2635 fi 2636 if test "$2" = conftest.file || test $am_try -eq 2; then 2637 break 2638 fi 2639 # Just in case. 2640 sleep 1 2641 am_has_slept=yes 2642 done 2643 test "$2" = conftest.file 2644 ) 2645then 2646 # Ok. 2647 : 2648else 2649 as_fn_error $? "newly created file is older than distributed files! 2650Check your system clock" "$LINENO" 5 2651fi 2652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2653printf "%s\n" "yes" >&6; } 2654# If we didn't sleep, we still need to ensure time stamps of config.status and 2655# generated files are strictly newer. 2656am_sleep_pid= 2657if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2658 ( sleep 1 ) & 2659 am_sleep_pid=$! 2660fi 2661 2662rm -f conftest.file 2663 2664test "$program_prefix" != NONE && 2665 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2666# Use a double $ so make ignores it. 2667test "$program_suffix" != NONE && 2668 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2669# Double any \ or $. 2670# By default was `s,x,x', remove it if useless. 2671ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2672program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2673 2674 2675# Expand $ac_aux_dir to an absolute path. 2676am_aux_dir=`cd "$ac_aux_dir" && pwd` 2677 2678 2679 if test x"${MISSING+set}" != xset; then 2680 MISSING="\${SHELL} '$am_aux_dir/missing'" 2681fi 2682# Use eval to expand $SHELL 2683if eval "$MISSING --is-lightweight"; then 2684 am_missing_run="$MISSING " 2685else 2686 am_missing_run= 2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2688printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2689fi 2690 2691if test x"${install_sh+set}" != xset; then 2692 case $am_aux_dir in 2693 *\ * | *\ *) 2694 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2695 *) 2696 install_sh="\${SHELL} $am_aux_dir/install-sh" 2697 esac 2698fi 2699 2700# Installed binaries are usually stripped using 'strip' when the user 2701# run "make install-strip". However 'strip' might not be the right 2702# tool to use in cross-compilation environments, therefore Automake 2703# will honor the 'STRIP' environment variable to overrule this program. 2704if test "$cross_compiling" != no; then 2705 if test -n "$ac_tool_prefix"; then 2706 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2707set dummy ${ac_tool_prefix}strip; ac_word=$2 2708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709printf %s "checking for $ac_word... " >&6; } 2710if test ${ac_cv_prog_STRIP+y} 2711then : 2712 printf %s "(cached) " >&6 2713else $as_nop 2714 if test -n "$STRIP"; then 2715 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2716else 2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 case $as_dir in #((( 2722 '') as_dir=./ ;; 2723 */) ;; 2724 *) as_dir=$as_dir/ ;; 2725 esac 2726 for ac_exec_ext in '' $ac_executable_extensions; do 2727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2728 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2730 break 2 2731 fi 2732done 2733 done 2734IFS=$as_save_IFS 2735 2736fi 2737fi 2738STRIP=$ac_cv_prog_STRIP 2739if test -n "$STRIP"; then 2740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2741printf "%s\n" "$STRIP" >&6; } 2742else 2743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2744printf "%s\n" "no" >&6; } 2745fi 2746 2747 2748fi 2749if test -z "$ac_cv_prog_STRIP"; then 2750 ac_ct_STRIP=$STRIP 2751 # Extract the first word of "strip", so it can be a program name with args. 2752set dummy strip; ac_word=$2 2753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754printf %s "checking for $ac_word... " >&6; } 2755if test ${ac_cv_prog_ac_ct_STRIP+y} 2756then : 2757 printf %s "(cached) " >&6 2758else $as_nop 2759 if test -n "$ac_ct_STRIP"; then 2760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2761else 2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763for as_dir in $PATH 2764do 2765 IFS=$as_save_IFS 2766 case $as_dir in #((( 2767 '') as_dir=./ ;; 2768 */) ;; 2769 *) as_dir=$as_dir/ ;; 2770 esac 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2773 ac_cv_prog_ac_ct_STRIP="strip" 2774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2775 break 2 2776 fi 2777done 2778 done 2779IFS=$as_save_IFS 2780 2781fi 2782fi 2783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2784if test -n "$ac_ct_STRIP"; then 2785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2786printf "%s\n" "$ac_ct_STRIP" >&6; } 2787else 2788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2789printf "%s\n" "no" >&6; } 2790fi 2791 2792 if test "x$ac_ct_STRIP" = x; then 2793 STRIP=":" 2794 else 2795 case $cross_compiling:$ac_tool_warned in 2796yes:) 2797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2798printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2799ac_tool_warned=yes ;; 2800esac 2801 STRIP=$ac_ct_STRIP 2802 fi 2803else 2804 STRIP="$ac_cv_prog_STRIP" 2805fi 2806 2807fi 2808INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2809 2810 2811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2812printf %s "checking for a race-free mkdir -p... " >&6; } 2813if test -z "$MKDIR_P"; then 2814 if test ${ac_cv_path_mkdir+y} 2815then : 2816 printf %s "(cached) " >&6 2817else $as_nop 2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2820do 2821 IFS=$as_save_IFS 2822 case $as_dir in #((( 2823 '') as_dir=./ ;; 2824 */) ;; 2825 *) as_dir=$as_dir/ ;; 2826 esac 2827 for ac_prog in mkdir gmkdir; do 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2830 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2831 'mkdir ('*'coreutils) '* | \ 2832 'BusyBox '* | \ 2833 'mkdir (fileutils) '4.1*) 2834 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2835 break 3;; 2836 esac 2837 done 2838 done 2839 done 2840IFS=$as_save_IFS 2841 2842fi 2843 2844 test -d ./--version && rmdir ./--version 2845 if test ${ac_cv_path_mkdir+y}; then 2846 MKDIR_P="$ac_cv_path_mkdir -p" 2847 else 2848 # As a last resort, use the slow shell script. Don't cache a 2849 # value for MKDIR_P within a source directory, because that will 2850 # break other packages using the cache if that directory is 2851 # removed, or if the value is a relative name. 2852 MKDIR_P="$ac_install_sh -d" 2853 fi 2854fi 2855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2856printf "%s\n" "$MKDIR_P" >&6; } 2857 2858for ac_prog in gawk mawk nawk awk 2859do 2860 # Extract the first word of "$ac_prog", so it can be a program name with args. 2861set dummy $ac_prog; ac_word=$2 2862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2863printf %s "checking for $ac_word... " >&6; } 2864if test ${ac_cv_prog_AWK+y} 2865then : 2866 printf %s "(cached) " >&6 2867else $as_nop 2868 if test -n "$AWK"; then 2869 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 case $as_dir in #((( 2876 '') as_dir=./ ;; 2877 */) ;; 2878 *) as_dir=$as_dir/ ;; 2879 esac 2880 for ac_exec_ext in '' $ac_executable_extensions; do 2881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2882 ac_cv_prog_AWK="$ac_prog" 2883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2884 break 2 2885 fi 2886done 2887 done 2888IFS=$as_save_IFS 2889 2890fi 2891fi 2892AWK=$ac_cv_prog_AWK 2893if test -n "$AWK"; then 2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2895printf "%s\n" "$AWK" >&6; } 2896else 2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2898printf "%s\n" "no" >&6; } 2899fi 2900 2901 2902 test -n "$AWK" && break 2903done 2904 2905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2906printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2907set x ${MAKE-make} 2908ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2909if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2910then : 2911 printf %s "(cached) " >&6 2912else $as_nop 2913 cat >conftest.make <<\_ACEOF 2914SHELL = /bin/sh 2915all: 2916 @echo '@@@%%%=$(MAKE)=@@@%%%' 2917_ACEOF 2918# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2919case `${MAKE-make} -f conftest.make 2>/dev/null` in 2920 *@@@%%%=?*=@@@%%%*) 2921 eval ac_cv_prog_make_${ac_make}_set=yes;; 2922 *) 2923 eval ac_cv_prog_make_${ac_make}_set=no;; 2924esac 2925rm -f conftest.make 2926fi 2927if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2929printf "%s\n" "yes" >&6; } 2930 SET_MAKE= 2931else 2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933printf "%s\n" "no" >&6; } 2934 SET_MAKE="MAKE=${MAKE-make}" 2935fi 2936 2937rm -rf .tst 2>/dev/null 2938mkdir .tst 2>/dev/null 2939if test -d .tst; then 2940 am__leading_dot=. 2941else 2942 am__leading_dot=_ 2943fi 2944rmdir .tst 2>/dev/null 2945 2946# Check whether --enable-silent-rules was given. 2947if test ${enable_silent_rules+y} 2948then : 2949 enableval=$enable_silent_rules; 2950fi 2951 2952case $enable_silent_rules in # ((( 2953 yes) AM_DEFAULT_VERBOSITY=0;; 2954 no) AM_DEFAULT_VERBOSITY=1;; 2955 *) AM_DEFAULT_VERBOSITY=1;; 2956esac 2957am_make=${MAKE-make} 2958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2959printf %s "checking whether $am_make supports nested variables... " >&6; } 2960if test ${am_cv_make_support_nested_variables+y} 2961then : 2962 printf %s "(cached) " >&6 2963else $as_nop 2964 if printf "%s\n" 'TRUE=$(BAR$(V)) 2965BAR0=false 2966BAR1=true 2967V=1 2968am__doit: 2969 @$(TRUE) 2970.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2971 am_cv_make_support_nested_variables=yes 2972else 2973 am_cv_make_support_nested_variables=no 2974fi 2975fi 2976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2977printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2978if test $am_cv_make_support_nested_variables = yes; then 2979 AM_V='$(V)' 2980 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2981else 2982 AM_V=$AM_DEFAULT_VERBOSITY 2983 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2984fi 2985AM_BACKSLASH='\' 2986 2987if test "`cd $srcdir && pwd`" != "`pwd`"; then 2988 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2989 # is not polluted with repeated "-I." 2990 am__isrc=' -I$(srcdir)' 2991 # test to see if srcdir already configured 2992 if test -f $srcdir/config.status; then 2993 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2994 fi 2995fi 2996 2997# test whether we have cygpath 2998if test -z "$CYGPATH_W"; then 2999 if (cygpath --version) >/dev/null 2>/dev/null; then 3000 CYGPATH_W='cygpath -w' 3001 else 3002 CYGPATH_W=echo 3003 fi 3004fi 3005 3006 3007# Define the identity of the package. 3008 PACKAGE='xwd' 3009 VERSION='1.0.9' 3010 3011 3012printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3013 3014 3015printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3016 3017# Some tools Automake needs. 3018 3019ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3020 3021 3022AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3023 3024 3025AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3026 3027 3028AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3029 3030 3031MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3032 3033# For better backward compatibility. To be removed once Automake 1.9.x 3034# dies out for good. For more background, see: 3035# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3036# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3037mkdir_p='$(MKDIR_P)' 3038 3039# We need awk for the "check" target (and possibly the TAP driver). The 3040# system "awk" is bad on some platforms. 3041# Always define AMTAR for backward compatibility. Yes, it's still used 3042# in the wild :-( We should find a proper way to deprecate it ... 3043AMTAR='$${TAR-tar}' 3044 3045 3046# We'll loop over all known methods to create a tar archive until one works. 3047_am_tools='gnutar pax cpio none' 3048 3049am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3050 3051 3052 3053 3054 3055# Variables for tags utilities; see am/tags.am 3056if test -z "$CTAGS"; then 3057 CTAGS=ctags 3058fi 3059 3060if test -z "$ETAGS"; then 3061 ETAGS=etags 3062fi 3063 3064if test -z "$CSCOPE"; then 3065 CSCOPE=cscope 3066fi 3067 3068 3069 3070# POSIX will say in a future version that running "rm -f" with no argument 3071# is OK; and we want to be able to make that assumption in our Makefile 3072# recipes. So use an aggressive probe to check that the usage we want is 3073# actually supported "in the wild" to an acceptable degree. 3074# See automake bug#10828. 3075# To make any issue more visible, cause the running configure to be aborted 3076# by default if the 'rm' program in use doesn't match our expectations; the 3077# user can still override this though. 3078if rm -f && rm -fr && rm -rf; then : OK; else 3079 cat >&2 <<'END' 3080Oops! 3081 3082Your 'rm' program seems unable to run without file operands specified 3083on the command line, even when the '-f' option is present. This is contrary 3084to the behaviour of most rm programs out there, and not conforming with 3085the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3086 3087Please tell bug-automake@gnu.org about your system, including the value 3088of your $PATH and any error possibly output before this message. This 3089can help us improve future automake versions. 3090 3091END 3092 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3093 echo 'Configuration will proceed anyway, since you have set the' >&2 3094 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3095 echo >&2 3096 else 3097 cat >&2 <<'END' 3098Aborting the configuration process, to ensure you take notice of the issue. 3099 3100You can download and install GNU coreutils to get an 'rm' implementation 3101that behaves properly: <https://www.gnu.org/software/coreutils/>. 3102 3103If you want to complete the configuration process using your problematic 3104'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3105to "yes", and re-run configure. 3106 3107END 3108 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3109 fi 3110fi 3111 3112 3113# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134DEPDIR="${am__leading_dot}deps" 3135 3136ac_config_commands="$ac_config_commands depfiles" 3137 3138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3139printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3140cat > confinc.mk << 'END' 3141am__doit: 3142 @echo this is the am__doit target >confinc.out 3143.PHONY: am__doit 3144END 3145am__include="#" 3146am__quote= 3147# BSD make does it like this. 3148echo '.include "confinc.mk" # ignored' > confmf.BSD 3149# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3150echo 'include confinc.mk # ignored' > confmf.GNU 3151_am_result=no 3152for s in GNU BSD; do 3153 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3154 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3155 ac_status=$? 3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3157 (exit $ac_status); } 3158 case $?:`cat confinc.out 2>/dev/null` in #( 3159 '0:this is the am__doit target') : 3160 case $s in #( 3161 BSD) : 3162 am__include='.include' am__quote='"' ;; #( 3163 *) : 3164 am__include='include' am__quote='' ;; 3165esac ;; #( 3166 *) : 3167 ;; 3168esac 3169 if test "$am__include" != "#"; then 3170 _am_result="yes ($s style)" 3171 break 3172 fi 3173done 3174rm -f confinc.* confmf.* 3175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3176printf "%s\n" "${_am_result}" >&6; } 3177 3178# Check whether --enable-dependency-tracking was given. 3179if test ${enable_dependency_tracking+y} 3180then : 3181 enableval=$enable_dependency_tracking; 3182fi 3183 3184if test "x$enable_dependency_tracking" != xno; then 3185 am_depcomp="$ac_aux_dir/depcomp" 3186 AMDEPBACKSLASH='\' 3187 am__nodep='_no' 3188fi 3189 if test "x$enable_dependency_tracking" != xno; then 3190 AMDEP_TRUE= 3191 AMDEP_FALSE='#' 3192else 3193 AMDEP_TRUE='#' 3194 AMDEP_FALSE= 3195fi 3196 3197 3198ac_ext=c 3199ac_cpp='$CPP $CPPFLAGS' 3200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3202ac_compiler_gnu=$ac_cv_c_compiler_gnu 3203if test -n "$ac_tool_prefix"; then 3204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3205set dummy ${ac_tool_prefix}gcc; ac_word=$2 3206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3207printf %s "checking for $ac_word... " >&6; } 3208if test ${ac_cv_prog_CC+y} 3209then : 3210 printf %s "(cached) " >&6 3211else $as_nop 3212 if test -n "$CC"; then 3213 ac_cv_prog_CC="$CC" # Let the user override the test. 3214else 3215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216for as_dir in $PATH 3217do 3218 IFS=$as_save_IFS 3219 case $as_dir in #((( 3220 '') as_dir=./ ;; 3221 */) ;; 3222 *) as_dir=$as_dir/ ;; 3223 esac 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3226 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230done 3231 done 3232IFS=$as_save_IFS 3233 3234fi 3235fi 3236CC=$ac_cv_prog_CC 3237if test -n "$CC"; then 3238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3239printf "%s\n" "$CC" >&6; } 3240else 3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242printf "%s\n" "no" >&6; } 3243fi 3244 3245 3246fi 3247if test -z "$ac_cv_prog_CC"; then 3248 ac_ct_CC=$CC 3249 # Extract the first word of "gcc", so it can be a program name with args. 3250set dummy gcc; ac_word=$2 3251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3252printf %s "checking for $ac_word... " >&6; } 3253if test ${ac_cv_prog_ac_ct_CC+y} 3254then : 3255 printf %s "(cached) " >&6 3256else $as_nop 3257 if test -n "$ac_ct_CC"; then 3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3259else 3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261for as_dir in $PATH 3262do 3263 IFS=$as_save_IFS 3264 case $as_dir in #((( 3265 '') as_dir=./ ;; 3266 */) ;; 3267 *) as_dir=$as_dir/ ;; 3268 esac 3269 for ac_exec_ext in '' $ac_executable_extensions; do 3270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3271 ac_cv_prog_ac_ct_CC="gcc" 3272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279fi 3280fi 3281ac_ct_CC=$ac_cv_prog_ac_ct_CC 3282if test -n "$ac_ct_CC"; then 3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3284printf "%s\n" "$ac_ct_CC" >&6; } 3285else 3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3287printf "%s\n" "no" >&6; } 3288fi 3289 3290 if test "x$ac_ct_CC" = x; then 3291 CC="" 3292 else 3293 case $cross_compiling:$ac_tool_warned in 3294yes:) 3295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3296printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3297ac_tool_warned=yes ;; 3298esac 3299 CC=$ac_ct_CC 3300 fi 3301else 3302 CC="$ac_cv_prog_CC" 3303fi 3304 3305if test -z "$CC"; then 3306 if test -n "$ac_tool_prefix"; then 3307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3308set dummy ${ac_tool_prefix}cc; ac_word=$2 3309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3310printf %s "checking for $ac_word... " >&6; } 3311if test ${ac_cv_prog_CC+y} 3312then : 3313 printf %s "(cached) " >&6 3314else $as_nop 3315 if test -n "$CC"; then 3316 ac_cv_prog_CC="$CC" # Let the user override the test. 3317else 3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH 3320do 3321 IFS=$as_save_IFS 3322 case $as_dir in #((( 3323 '') as_dir=./ ;; 3324 */) ;; 3325 *) as_dir=$as_dir/ ;; 3326 esac 3327 for ac_exec_ext in '' $ac_executable_extensions; do 3328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3329 ac_cv_prog_CC="${ac_tool_prefix}cc" 3330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3331 break 2 3332 fi 3333done 3334 done 3335IFS=$as_save_IFS 3336 3337fi 3338fi 3339CC=$ac_cv_prog_CC 3340if test -n "$CC"; then 3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3342printf "%s\n" "$CC" >&6; } 3343else 3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3345printf "%s\n" "no" >&6; } 3346fi 3347 3348 3349 fi 3350fi 3351if test -z "$CC"; then 3352 # Extract the first word of "cc", so it can be a program name with args. 3353set dummy cc; ac_word=$2 3354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3355printf %s "checking for $ac_word... " >&6; } 3356if test ${ac_cv_prog_CC+y} 3357then : 3358 printf %s "(cached) " >&6 3359else $as_nop 3360 if test -n "$CC"; then 3361 ac_cv_prog_CC="$CC" # Let the user override the test. 3362else 3363 ac_prog_rejected=no 3364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365for as_dir in $PATH 3366do 3367 IFS=$as_save_IFS 3368 case $as_dir in #((( 3369 '') as_dir=./ ;; 3370 */) ;; 3371 *) as_dir=$as_dir/ ;; 3372 esac 3373 for ac_exec_ext in '' $ac_executable_extensions; do 3374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3375 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3376 ac_prog_rejected=yes 3377 continue 3378 fi 3379 ac_cv_prog_CC="cc" 3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387if test $ac_prog_rejected = yes; then 3388 # We found a bogon in the path, so make sure we never use it. 3389 set dummy $ac_cv_prog_CC 3390 shift 3391 if test $# != 0; then 3392 # We chose a different compiler from the bogus one. 3393 # However, it has the same basename, so the bogon will be chosen 3394 # first if we set CC to just the basename; use the full file name. 3395 shift 3396 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3397 fi 3398fi 3399fi 3400fi 3401CC=$ac_cv_prog_CC 3402if test -n "$CC"; then 3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3404printf "%s\n" "$CC" >&6; } 3405else 3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3407printf "%s\n" "no" >&6; } 3408fi 3409 3410 3411fi 3412if test -z "$CC"; then 3413 if test -n "$ac_tool_prefix"; then 3414 for ac_prog in cl.exe 3415 do 3416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3417set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3419printf %s "checking for $ac_word... " >&6; } 3420if test ${ac_cv_prog_CC+y} 3421then : 3422 printf %s "(cached) " >&6 3423else $as_nop 3424 if test -n "$CC"; then 3425 ac_cv_prog_CC="$CC" # Let the user override the test. 3426else 3427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428for as_dir in $PATH 3429do 3430 IFS=$as_save_IFS 3431 case $as_dir in #((( 3432 '') as_dir=./ ;; 3433 */) ;; 3434 *) as_dir=$as_dir/ ;; 3435 esac 3436 for ac_exec_ext in '' $ac_executable_extensions; do 3437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3440 break 2 3441 fi 3442done 3443 done 3444IFS=$as_save_IFS 3445 3446fi 3447fi 3448CC=$ac_cv_prog_CC 3449if test -n "$CC"; then 3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3451printf "%s\n" "$CC" >&6; } 3452else 3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3454printf "%s\n" "no" >&6; } 3455fi 3456 3457 3458 test -n "$CC" && break 3459 done 3460fi 3461if test -z "$CC"; then 3462 ac_ct_CC=$CC 3463 for ac_prog in cl.exe 3464do 3465 # Extract the first word of "$ac_prog", so it can be a program name with args. 3466set dummy $ac_prog; ac_word=$2 3467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3468printf %s "checking for $ac_word... " >&6; } 3469if test ${ac_cv_prog_ac_ct_CC+y} 3470then : 3471 printf %s "(cached) " >&6 3472else $as_nop 3473 if test -n "$ac_ct_CC"; then 3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3475else 3476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3477for as_dir in $PATH 3478do 3479 IFS=$as_save_IFS 3480 case $as_dir in #((( 3481 '') as_dir=./ ;; 3482 */) ;; 3483 *) as_dir=$as_dir/ ;; 3484 esac 3485 for ac_exec_ext in '' $ac_executable_extensions; do 3486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3487 ac_cv_prog_ac_ct_CC="$ac_prog" 3488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3489 break 2 3490 fi 3491done 3492 done 3493IFS=$as_save_IFS 3494 3495fi 3496fi 3497ac_ct_CC=$ac_cv_prog_ac_ct_CC 3498if test -n "$ac_ct_CC"; then 3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3500printf "%s\n" "$ac_ct_CC" >&6; } 3501else 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3503printf "%s\n" "no" >&6; } 3504fi 3505 3506 3507 test -n "$ac_ct_CC" && break 3508done 3509 3510 if test "x$ac_ct_CC" = x; then 3511 CC="" 3512 else 3513 case $cross_compiling:$ac_tool_warned in 3514yes:) 3515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3516printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3517ac_tool_warned=yes ;; 3518esac 3519 CC=$ac_ct_CC 3520 fi 3521fi 3522 3523fi 3524if test -z "$CC"; then 3525 if test -n "$ac_tool_prefix"; then 3526 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3527set dummy ${ac_tool_prefix}clang; ac_word=$2 3528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3529printf %s "checking for $ac_word... " >&6; } 3530if test ${ac_cv_prog_CC+y} 3531then : 3532 printf %s "(cached) " >&6 3533else $as_nop 3534 if test -n "$CC"; then 3535 ac_cv_prog_CC="$CC" # Let the user override the test. 3536else 3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3538for as_dir in $PATH 3539do 3540 IFS=$as_save_IFS 3541 case $as_dir in #((( 3542 '') as_dir=./ ;; 3543 */) ;; 3544 *) as_dir=$as_dir/ ;; 3545 esac 3546 for ac_exec_ext in '' $ac_executable_extensions; do 3547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3548 ac_cv_prog_CC="${ac_tool_prefix}clang" 3549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3550 break 2 3551 fi 3552done 3553 done 3554IFS=$as_save_IFS 3555 3556fi 3557fi 3558CC=$ac_cv_prog_CC 3559if test -n "$CC"; then 3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3561printf "%s\n" "$CC" >&6; } 3562else 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3564printf "%s\n" "no" >&6; } 3565fi 3566 3567 3568fi 3569if test -z "$ac_cv_prog_CC"; then 3570 ac_ct_CC=$CC 3571 # Extract the first word of "clang", so it can be a program name with args. 3572set dummy clang; ac_word=$2 3573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3574printf %s "checking for $ac_word... " >&6; } 3575if test ${ac_cv_prog_ac_ct_CC+y} 3576then : 3577 printf %s "(cached) " >&6 3578else $as_nop 3579 if test -n "$ac_ct_CC"; then 3580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3581else 3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3583for as_dir in $PATH 3584do 3585 IFS=$as_save_IFS 3586 case $as_dir in #((( 3587 '') as_dir=./ ;; 3588 */) ;; 3589 *) as_dir=$as_dir/ ;; 3590 esac 3591 for ac_exec_ext in '' $ac_executable_extensions; do 3592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3593 ac_cv_prog_ac_ct_CC="clang" 3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3595 break 2 3596 fi 3597done 3598 done 3599IFS=$as_save_IFS 3600 3601fi 3602fi 3603ac_ct_CC=$ac_cv_prog_ac_ct_CC 3604if test -n "$ac_ct_CC"; then 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3606printf "%s\n" "$ac_ct_CC" >&6; } 3607else 3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3609printf "%s\n" "no" >&6; } 3610fi 3611 3612 if test "x$ac_ct_CC" = x; then 3613 CC="" 3614 else 3615 case $cross_compiling:$ac_tool_warned in 3616yes:) 3617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3618printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3619ac_tool_warned=yes ;; 3620esac 3621 CC=$ac_ct_CC 3622 fi 3623else 3624 CC="$ac_cv_prog_CC" 3625fi 3626 3627fi 3628 3629 3630test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3631printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3632as_fn_error $? "no acceptable C compiler found in \$PATH 3633See \`config.log' for more details" "$LINENO" 5; } 3634 3635# Provide some information about the compiler. 3636printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3637set X $ac_compile 3638ac_compiler=$2 3639for ac_option in --version -v -V -qversion -version; do 3640 { { ac_try="$ac_compiler $ac_option >&5" 3641case "(($ac_try" in 3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3643 *) ac_try_echo=$ac_try;; 3644esac 3645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3646printf "%s\n" "$ac_try_echo"; } >&5 3647 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3648 ac_status=$? 3649 if test -s conftest.err; then 3650 sed '10a\ 3651... rest of stderr output deleted ... 3652 10q' conftest.err >conftest.er1 3653 cat conftest.er1 >&5 3654 fi 3655 rm -f conftest.er1 conftest.err 3656 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3657 test $ac_status = 0; } 3658done 3659 3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662 3663int 3664main (void) 3665{ 3666 3667 ; 3668 return 0; 3669} 3670_ACEOF 3671ac_clean_files_save=$ac_clean_files 3672ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3673# Try to create an executable without -o first, disregard a.out. 3674# It will help us diagnose broken compilers, and finding out an intuition 3675# of exeext. 3676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3677printf %s "checking whether the C compiler works... " >&6; } 3678ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3679 3680# The possible output files: 3681ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3682 3683ac_rmfiles= 3684for ac_file in $ac_files 3685do 3686 case $ac_file in 3687 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3688 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3689 esac 3690done 3691rm -f $ac_rmfiles 3692 3693if { { ac_try="$ac_link_default" 3694case "(($ac_try" in 3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3696 *) ac_try_echo=$ac_try;; 3697esac 3698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3699printf "%s\n" "$ac_try_echo"; } >&5 3700 (eval "$ac_link_default") 2>&5 3701 ac_status=$? 3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3703 test $ac_status = 0; } 3704then : 3705 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3706# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3707# in a Makefile. We should not override ac_cv_exeext if it was cached, 3708# so that the user can short-circuit this test for compilers unknown to 3709# Autoconf. 3710for ac_file in $ac_files '' 3711do 3712 test -f "$ac_file" || continue 3713 case $ac_file in 3714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3715 ;; 3716 [ab].out ) 3717 # We found the default executable, but exeext='' is most 3718 # certainly right. 3719 break;; 3720 *.* ) 3721 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3722 then :; else 3723 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3724 fi 3725 # We set ac_cv_exeext here because the later test for it is not 3726 # safe: cross compilers may not add the suffix if given an `-o' 3727 # argument, so we may need to know it at that point already. 3728 # Even if this section looks crufty: it has the advantage of 3729 # actually working. 3730 break;; 3731 * ) 3732 break;; 3733 esac 3734done 3735test "$ac_cv_exeext" = no && ac_cv_exeext= 3736 3737else $as_nop 3738 ac_file='' 3739fi 3740if test -z "$ac_file" 3741then : 3742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3743printf "%s\n" "no" >&6; } 3744printf "%s\n" "$as_me: failed program was:" >&5 3745sed 's/^/| /' conftest.$ac_ext >&5 3746 3747{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3748printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3749as_fn_error 77 "C compiler cannot create executables 3750See \`config.log' for more details" "$LINENO" 5; } 3751else $as_nop 3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3753printf "%s\n" "yes" >&6; } 3754fi 3755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3756printf %s "checking for C compiler default output file name... " >&6; } 3757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3758printf "%s\n" "$ac_file" >&6; } 3759ac_exeext=$ac_cv_exeext 3760 3761rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3762ac_clean_files=$ac_clean_files_save 3763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3764printf %s "checking for suffix of executables... " >&6; } 3765if { { ac_try="$ac_link" 3766case "(($ac_try" in 3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3768 *) ac_try_echo=$ac_try;; 3769esac 3770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3771printf "%s\n" "$ac_try_echo"; } >&5 3772 (eval "$ac_link") 2>&5 3773 ac_status=$? 3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3775 test $ac_status = 0; } 3776then : 3777 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3778# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3779# work properly (i.e., refer to `conftest.exe'), while it won't with 3780# `rm'. 3781for ac_file in conftest.exe conftest conftest.*; do 3782 test -f "$ac_file" || continue 3783 case $ac_file in 3784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3785 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3786 break;; 3787 * ) break;; 3788 esac 3789done 3790else $as_nop 3791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3792printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3793as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3794See \`config.log' for more details" "$LINENO" 5; } 3795fi 3796rm -f conftest conftest$ac_cv_exeext 3797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3798printf "%s\n" "$ac_cv_exeext" >&6; } 3799 3800rm -f conftest.$ac_ext 3801EXEEXT=$ac_cv_exeext 3802ac_exeext=$EXEEXT 3803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3804/* end confdefs.h. */ 3805#include <stdio.h> 3806int 3807main (void) 3808{ 3809FILE *f = fopen ("conftest.out", "w"); 3810 return ferror (f) || fclose (f) != 0; 3811 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816ac_clean_files="$ac_clean_files conftest.out" 3817# Check that the compiler produces executables we can run. If not, either 3818# the compiler is broken, or we cross compile. 3819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3820printf %s "checking whether we are cross compiling... " >&6; } 3821if test "$cross_compiling" != yes; then 3822 { { ac_try="$ac_link" 3823case "(($ac_try" in 3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3825 *) ac_try_echo=$ac_try;; 3826esac 3827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3828printf "%s\n" "$ac_try_echo"; } >&5 3829 (eval "$ac_link") 2>&5 3830 ac_status=$? 3831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3832 test $ac_status = 0; } 3833 if { ac_try='./conftest$ac_cv_exeext' 3834 { { case "(($ac_try" in 3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3836 *) ac_try_echo=$ac_try;; 3837esac 3838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3839printf "%s\n" "$ac_try_echo"; } >&5 3840 (eval "$ac_try") 2>&5 3841 ac_status=$? 3842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3843 test $ac_status = 0; }; }; then 3844 cross_compiling=no 3845 else 3846 if test "$cross_compiling" = maybe; then 3847 cross_compiling=yes 3848 else 3849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3850printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3851as_fn_error 77 "cannot run C compiled programs. 3852If you meant to cross compile, use \`--host'. 3853See \`config.log' for more details" "$LINENO" 5; } 3854 fi 3855 fi 3856fi 3857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3858printf "%s\n" "$cross_compiling" >&6; } 3859 3860rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3861ac_clean_files=$ac_clean_files_save 3862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3863printf %s "checking for suffix of object files... " >&6; } 3864if test ${ac_cv_objext+y} 3865then : 3866 printf %s "(cached) " >&6 3867else $as_nop 3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3869/* end confdefs.h. */ 3870 3871int 3872main (void) 3873{ 3874 3875 ; 3876 return 0; 3877} 3878_ACEOF 3879rm -f conftest.o conftest.obj 3880if { { ac_try="$ac_compile" 3881case "(($ac_try" in 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3883 *) ac_try_echo=$ac_try;; 3884esac 3885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3886printf "%s\n" "$ac_try_echo"; } >&5 3887 (eval "$ac_compile") 2>&5 3888 ac_status=$? 3889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3890 test $ac_status = 0; } 3891then : 3892 for ac_file in conftest.o conftest.obj conftest.*; do 3893 test -f "$ac_file" || continue; 3894 case $ac_file in 3895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3896 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3897 break;; 3898 esac 3899done 3900else $as_nop 3901 printf "%s\n" "$as_me: failed program was:" >&5 3902sed 's/^/| /' conftest.$ac_ext >&5 3903 3904{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3905printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3906as_fn_error $? "cannot compute suffix of object files: cannot compile 3907See \`config.log' for more details" "$LINENO" 5; } 3908fi 3909rm -f conftest.$ac_cv_objext conftest.$ac_ext 3910fi 3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3912printf "%s\n" "$ac_cv_objext" >&6; } 3913OBJEXT=$ac_cv_objext 3914ac_objext=$OBJEXT 3915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3916printf %s "checking whether the compiler supports GNU C... " >&6; } 3917if test ${ac_cv_c_compiler_gnu+y} 3918then : 3919 printf %s "(cached) " >&6 3920else $as_nop 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923 3924int 3925main (void) 3926{ 3927#ifndef __GNUC__ 3928 choke me 3929#endif 3930 3931 ; 3932 return 0; 3933} 3934_ACEOF 3935if ac_fn_c_try_compile "$LINENO" 3936then : 3937 ac_compiler_gnu=yes 3938else $as_nop 3939 ac_compiler_gnu=no 3940fi 3941rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3942ac_cv_c_compiler_gnu=$ac_compiler_gnu 3943 3944fi 3945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3946printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3947ac_compiler_gnu=$ac_cv_c_compiler_gnu 3948 3949if test $ac_compiler_gnu = yes; then 3950 GCC=yes 3951else 3952 GCC= 3953fi 3954ac_test_CFLAGS=${CFLAGS+y} 3955ac_save_CFLAGS=$CFLAGS 3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3957printf %s "checking whether $CC accepts -g... " >&6; } 3958if test ${ac_cv_prog_cc_g+y} 3959then : 3960 printf %s "(cached) " >&6 3961else $as_nop 3962 ac_save_c_werror_flag=$ac_c_werror_flag 3963 ac_c_werror_flag=yes 3964 ac_cv_prog_cc_g=no 3965 CFLAGS="-g" 3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3967/* end confdefs.h. */ 3968 3969int 3970main (void) 3971{ 3972 3973 ; 3974 return 0; 3975} 3976_ACEOF 3977if ac_fn_c_try_compile "$LINENO" 3978then : 3979 ac_cv_prog_cc_g=yes 3980else $as_nop 3981 CFLAGS="" 3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3983/* end confdefs.h. */ 3984 3985int 3986main (void) 3987{ 3988 3989 ; 3990 return 0; 3991} 3992_ACEOF 3993if ac_fn_c_try_compile "$LINENO" 3994then : 3995 3996else $as_nop 3997 ac_c_werror_flag=$ac_save_c_werror_flag 3998 CFLAGS="-g" 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000/* end confdefs.h. */ 4001 4002int 4003main (void) 4004{ 4005 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010if ac_fn_c_try_compile "$LINENO" 4011then : 4012 ac_cv_prog_cc_g=yes 4013fi 4014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4015fi 4016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4017fi 4018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4019 ac_c_werror_flag=$ac_save_c_werror_flag 4020fi 4021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4022printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4023if test $ac_test_CFLAGS; then 4024 CFLAGS=$ac_save_CFLAGS 4025elif test $ac_cv_prog_cc_g = yes; then 4026 if test "$GCC" = yes; then 4027 CFLAGS="-g -O2" 4028 else 4029 CFLAGS="-g" 4030 fi 4031else 4032 if test "$GCC" = yes; then 4033 CFLAGS="-O2" 4034 else 4035 CFLAGS= 4036 fi 4037fi 4038ac_prog_cc_stdc=no 4039if test x$ac_prog_cc_stdc = xno 4040then : 4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4042printf %s "checking for $CC option to enable C11 features... " >&6; } 4043if test ${ac_cv_prog_cc_c11+y} 4044then : 4045 printf %s "(cached) " >&6 4046else $as_nop 4047 ac_cv_prog_cc_c11=no 4048ac_save_CC=$CC 4049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4050/* end confdefs.h. */ 4051$ac_c_conftest_c11_program 4052_ACEOF 4053for ac_arg in '' -std=gnu11 4054do 4055 CC="$ac_save_CC $ac_arg" 4056 if ac_fn_c_try_compile "$LINENO" 4057then : 4058 ac_cv_prog_cc_c11=$ac_arg 4059fi 4060rm -f core conftest.err conftest.$ac_objext conftest.beam 4061 test "x$ac_cv_prog_cc_c11" != "xno" && break 4062done 4063rm -f conftest.$ac_ext 4064CC=$ac_save_CC 4065fi 4066 4067if test "x$ac_cv_prog_cc_c11" = xno 4068then : 4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4070printf "%s\n" "unsupported" >&6; } 4071else $as_nop 4072 if test "x$ac_cv_prog_cc_c11" = x 4073then : 4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4075printf "%s\n" "none needed" >&6; } 4076else $as_nop 4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4078printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4079 CC="$CC $ac_cv_prog_cc_c11" 4080fi 4081 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4082 ac_prog_cc_stdc=c11 4083fi 4084fi 4085if test x$ac_prog_cc_stdc = xno 4086then : 4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4088printf %s "checking for $CC option to enable C99 features... " >&6; } 4089if test ${ac_cv_prog_cc_c99+y} 4090then : 4091 printf %s "(cached) " >&6 4092else $as_nop 4093 ac_cv_prog_cc_c99=no 4094ac_save_CC=$CC 4095cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4096/* end confdefs.h. */ 4097$ac_c_conftest_c99_program 4098_ACEOF 4099for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4100do 4101 CC="$ac_save_CC $ac_arg" 4102 if ac_fn_c_try_compile "$LINENO" 4103then : 4104 ac_cv_prog_cc_c99=$ac_arg 4105fi 4106rm -f core conftest.err conftest.$ac_objext conftest.beam 4107 test "x$ac_cv_prog_cc_c99" != "xno" && break 4108done 4109rm -f conftest.$ac_ext 4110CC=$ac_save_CC 4111fi 4112 4113if test "x$ac_cv_prog_cc_c99" = xno 4114then : 4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4116printf "%s\n" "unsupported" >&6; } 4117else $as_nop 4118 if test "x$ac_cv_prog_cc_c99" = x 4119then : 4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4121printf "%s\n" "none needed" >&6; } 4122else $as_nop 4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4124printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4125 CC="$CC $ac_cv_prog_cc_c99" 4126fi 4127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4128 ac_prog_cc_stdc=c99 4129fi 4130fi 4131if test x$ac_prog_cc_stdc = xno 4132then : 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4134printf %s "checking for $CC option to enable C89 features... " >&6; } 4135if test ${ac_cv_prog_cc_c89+y} 4136then : 4137 printf %s "(cached) " >&6 4138else $as_nop 4139 ac_cv_prog_cc_c89=no 4140ac_save_CC=$CC 4141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4142/* end confdefs.h. */ 4143$ac_c_conftest_c89_program 4144_ACEOF 4145for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4146do 4147 CC="$ac_save_CC $ac_arg" 4148 if ac_fn_c_try_compile "$LINENO" 4149then : 4150 ac_cv_prog_cc_c89=$ac_arg 4151fi 4152rm -f core conftest.err conftest.$ac_objext conftest.beam 4153 test "x$ac_cv_prog_cc_c89" != "xno" && break 4154done 4155rm -f conftest.$ac_ext 4156CC=$ac_save_CC 4157fi 4158 4159if test "x$ac_cv_prog_cc_c89" = xno 4160then : 4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4162printf "%s\n" "unsupported" >&6; } 4163else $as_nop 4164 if test "x$ac_cv_prog_cc_c89" = x 4165then : 4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4167printf "%s\n" "none needed" >&6; } 4168else $as_nop 4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4170printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4171 CC="$CC $ac_cv_prog_cc_c89" 4172fi 4173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4174 ac_prog_cc_stdc=c89 4175fi 4176fi 4177 4178ac_ext=c 4179ac_cpp='$CPP $CPPFLAGS' 4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4182ac_compiler_gnu=$ac_cv_c_compiler_gnu 4183 4184 4185 ac_ext=c 4186ac_cpp='$CPP $CPPFLAGS' 4187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4189ac_compiler_gnu=$ac_cv_c_compiler_gnu 4190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4191printf %s "checking whether $CC understands -c and -o together... " >&6; } 4192if test ${am_cv_prog_cc_c_o+y} 4193then : 4194 printf %s "(cached) " >&6 4195else $as_nop 4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197/* end confdefs.h. */ 4198 4199int 4200main (void) 4201{ 4202 4203 ; 4204 return 0; 4205} 4206_ACEOF 4207 # Make sure it works both with $CC and with simple cc. 4208 # Following AC_PROG_CC_C_O, we do the test twice because some 4209 # compilers refuse to overwrite an existing .o file with -o, 4210 # though they will create one. 4211 am_cv_prog_cc_c_o=yes 4212 for am_i in 1 2; do 4213 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4214 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4215 ac_status=$? 4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4217 (exit $ac_status); } \ 4218 && test -f conftest2.$ac_objext; then 4219 : OK 4220 else 4221 am_cv_prog_cc_c_o=no 4222 break 4223 fi 4224 done 4225 rm -f core conftest* 4226 unset am_i 4227fi 4228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4229printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4230if test "$am_cv_prog_cc_c_o" != yes; then 4231 # Losing compiler, so override with the script. 4232 # FIXME: It is wrong to rewrite CC. 4233 # But if we don't then we get into trouble of one sort or another. 4234 # A longer-term fix would be to have automake use am__CC in this case, 4235 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4236 CC="$am_aux_dir/compile $CC" 4237fi 4238ac_ext=c 4239ac_cpp='$CPP $CPPFLAGS' 4240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4242ac_compiler_gnu=$ac_cv_c_compiler_gnu 4243 4244 4245depcc="$CC" am_compiler_list= 4246 4247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4248printf %s "checking dependency style of $depcc... " >&6; } 4249if test ${am_cv_CC_dependencies_compiler_type+y} 4250then : 4251 printf %s "(cached) " >&6 4252else $as_nop 4253 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4254 # We make a subdir and do the tests there. Otherwise we can end up 4255 # making bogus files that we don't know about and never remove. For 4256 # instance it was reported that on HP-UX the gcc test will end up 4257 # making a dummy file named 'D' -- because '-MD' means "put the output 4258 # in D". 4259 rm -rf conftest.dir 4260 mkdir conftest.dir 4261 # Copy depcomp to subdir because otherwise we won't find it if we're 4262 # using a relative directory. 4263 cp "$am_depcomp" conftest.dir 4264 cd conftest.dir 4265 # We will build objects and dependencies in a subdirectory because 4266 # it helps to detect inapplicable dependency modes. For instance 4267 # both Tru64's cc and ICC support -MD to output dependencies as a 4268 # side effect of compilation, but ICC will put the dependencies in 4269 # the current directory while Tru64 will put them in the object 4270 # directory. 4271 mkdir sub 4272 4273 am_cv_CC_dependencies_compiler_type=none 4274 if test "$am_compiler_list" = ""; then 4275 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4276 fi 4277 am__universal=false 4278 case " $depcc " in #( 4279 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4280 esac 4281 4282 for depmode in $am_compiler_list; do 4283 # Setup a source with many dependencies, because some compilers 4284 # like to wrap large dependency lists on column 80 (with \), and 4285 # we should not choose a depcomp mode which is confused by this. 4286 # 4287 # We need to recreate these files for each test, as the compiler may 4288 # overwrite some of them when testing with obscure command lines. 4289 # This happens at least with the AIX C compiler. 4290 : > sub/conftest.c 4291 for i in 1 2 3 4 5 6; do 4292 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4293 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4294 # Solaris 10 /bin/sh. 4295 echo '/* dummy */' > sub/conftst$i.h 4296 done 4297 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4298 4299 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4300 # mode. It turns out that the SunPro C++ compiler does not properly 4301 # handle '-M -o', and we need to detect this. Also, some Intel 4302 # versions had trouble with output in subdirs. 4303 am__obj=sub/conftest.${OBJEXT-o} 4304 am__minus_obj="-o $am__obj" 4305 case $depmode in 4306 gcc) 4307 # This depmode causes a compiler race in universal mode. 4308 test "$am__universal" = false || continue 4309 ;; 4310 nosideeffect) 4311 # After this tag, mechanisms are not by side-effect, so they'll 4312 # only be used when explicitly requested. 4313 if test "x$enable_dependency_tracking" = xyes; then 4314 continue 4315 else 4316 break 4317 fi 4318 ;; 4319 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4320 # This compiler won't grok '-c -o', but also, the minuso test has 4321 # not run yet. These depmodes are late enough in the game, and 4322 # so weak that their functioning should not be impacted. 4323 am__obj=conftest.${OBJEXT-o} 4324 am__minus_obj= 4325 ;; 4326 none) break ;; 4327 esac 4328 if depmode=$depmode \ 4329 source=sub/conftest.c object=$am__obj \ 4330 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4331 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4332 >/dev/null 2>conftest.err && 4333 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4334 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4335 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4336 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4337 # icc doesn't choke on unknown options, it will just issue warnings 4338 # or remarks (even with -Werror). So we grep stderr for any message 4339 # that says an option was ignored or not supported. 4340 # When given -MP, icc 7.0 and 7.1 complain thusly: 4341 # icc: Command line warning: ignoring option '-M'; no argument required 4342 # The diagnosis changed in icc 8.0: 4343 # icc: Command line remark: option '-MP' not supported 4344 if (grep 'ignoring option' conftest.err || 4345 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4346 am_cv_CC_dependencies_compiler_type=$depmode 4347 break 4348 fi 4349 fi 4350 done 4351 4352 cd .. 4353 rm -rf conftest.dir 4354else 4355 am_cv_CC_dependencies_compiler_type=none 4356fi 4357 4358fi 4359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4360printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4361CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4362 4363 if 4364 test "x$enable_dependency_tracking" != xno \ 4365 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4366 am__fastdepCC_TRUE= 4367 am__fastdepCC_FALSE='#' 4368else 4369 am__fastdepCC_TRUE='#' 4370 am__fastdepCC_FALSE= 4371fi 4372 4373 4374 4375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4376printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4377if test ${ac_cv_c_undeclared_builtin_options+y} 4378then : 4379 printf %s "(cached) " >&6 4380else $as_nop 4381 ac_save_CFLAGS=$CFLAGS 4382 ac_cv_c_undeclared_builtin_options='cannot detect' 4383 for ac_arg in '' -fno-builtin; do 4384 CFLAGS="$ac_save_CFLAGS $ac_arg" 4385 # This test program should *not* compile successfully. 4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4387/* end confdefs.h. */ 4388 4389int 4390main (void) 4391{ 4392(void) strchr; 4393 ; 4394 return 0; 4395} 4396_ACEOF 4397if ac_fn_c_try_compile "$LINENO" 4398then : 4399 4400else $as_nop 4401 # This test program should compile successfully. 4402 # No library function is consistently available on 4403 # freestanding implementations, so test against a dummy 4404 # declaration. Include always-available headers on the 4405 # off chance that they somehow elicit warnings. 4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4407/* end confdefs.h. */ 4408#include <float.h> 4409#include <limits.h> 4410#include <stdarg.h> 4411#include <stddef.h> 4412extern void ac_decl (int, char *); 4413 4414int 4415main (void) 4416{ 4417(void) ac_decl (0, (char *) 0); 4418 (void) ac_decl; 4419 4420 ; 4421 return 0; 4422} 4423_ACEOF 4424if ac_fn_c_try_compile "$LINENO" 4425then : 4426 if test x"$ac_arg" = x 4427then : 4428 ac_cv_c_undeclared_builtin_options='none needed' 4429else $as_nop 4430 ac_cv_c_undeclared_builtin_options=$ac_arg 4431fi 4432 break 4433fi 4434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4435fi 4436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4437 done 4438 CFLAGS=$ac_save_CFLAGS 4439 4440fi 4441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4442printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4443 case $ac_cv_c_undeclared_builtin_options in #( 4444 'cannot detect') : 4445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4446printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4447as_fn_error $? "cannot make $CC report undeclared builtins 4448See \`config.log' for more details" "$LINENO" 5; } ;; #( 4449 'none needed') : 4450 ac_c_undeclared_builtin_options='' ;; #( 4451 *) : 4452 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4453esac 4454 4455ac_header= ac_cache= 4456for ac_item in $ac_header_c_list 4457do 4458 if test $ac_cache; then 4459 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4460 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4461 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4462 fi 4463 ac_header= ac_cache= 4464 elif test $ac_header; then 4465 ac_cache=$ac_item 4466 else 4467 ac_header=$ac_item 4468 fi 4469done 4470 4471 4472 4473 4474 4475 4476 4477 4478if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4479then : 4480 4481printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4482 4483fi 4484 4485 4486 4487 4488ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4489if test "x$ac_cv_have_decl___clang__" = xyes 4490then : 4491 CLANGCC="yes" 4492else $as_nop 4493 CLANGCC="no" 4494fi 4495ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4496if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4497then : 4498 INTELCC="yes" 4499else $as_nop 4500 INTELCC="no" 4501fi 4502ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4503if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4504then : 4505 SUNCC="yes" 4506else $as_nop 4507 SUNCC="no" 4508fi 4509 4510 4511 4512 4513 4514 4515 4516 4517if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4518 if test -n "$ac_tool_prefix"; then 4519 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4520set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4522printf %s "checking for $ac_word... " >&6; } 4523if test ${ac_cv_path_PKG_CONFIG+y} 4524then : 4525 printf %s "(cached) " >&6 4526else $as_nop 4527 case $PKG_CONFIG in 4528 [\\/]* | ?:[\\/]*) 4529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4530 ;; 4531 *) 4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4533for as_dir in $PATH 4534do 4535 IFS=$as_save_IFS 4536 case $as_dir in #((( 4537 '') as_dir=./ ;; 4538 */) ;; 4539 *) as_dir=$as_dir/ ;; 4540 esac 4541 for ac_exec_ext in '' $ac_executable_extensions; do 4542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4543 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4545 break 2 4546 fi 4547done 4548 done 4549IFS=$as_save_IFS 4550 4551 ;; 4552esac 4553fi 4554PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4555if test -n "$PKG_CONFIG"; then 4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4557printf "%s\n" "$PKG_CONFIG" >&6; } 4558else 4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4560printf "%s\n" "no" >&6; } 4561fi 4562 4563 4564fi 4565if test -z "$ac_cv_path_PKG_CONFIG"; then 4566 ac_pt_PKG_CONFIG=$PKG_CONFIG 4567 # Extract the first word of "pkg-config", so it can be a program name with args. 4568set dummy pkg-config; ac_word=$2 4569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4570printf %s "checking for $ac_word... " >&6; } 4571if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4572then : 4573 printf %s "(cached) " >&6 4574else $as_nop 4575 case $ac_pt_PKG_CONFIG in 4576 [\\/]* | ?:[\\/]*) 4577 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4578 ;; 4579 *) 4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581for as_dir in $PATH 4582do 4583 IFS=$as_save_IFS 4584 case $as_dir in #((( 4585 '') as_dir=./ ;; 4586 */) ;; 4587 *) as_dir=$as_dir/ ;; 4588 esac 4589 for ac_exec_ext in '' $ac_executable_extensions; do 4590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4591 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4593 break 2 4594 fi 4595done 4596 done 4597IFS=$as_save_IFS 4598 4599 ;; 4600esac 4601fi 4602ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4603if test -n "$ac_pt_PKG_CONFIG"; then 4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4605printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4606else 4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4608printf "%s\n" "no" >&6; } 4609fi 4610 4611 if test "x$ac_pt_PKG_CONFIG" = x; then 4612 PKG_CONFIG="" 4613 else 4614 case $cross_compiling:$ac_tool_warned in 4615yes:) 4616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4617printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4618ac_tool_warned=yes ;; 4619esac 4620 PKG_CONFIG=$ac_pt_PKG_CONFIG 4621 fi 4622else 4623 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4624fi 4625 4626fi 4627if test -n "$PKG_CONFIG"; then 4628 _pkg_min_version=0.9.0 4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4630printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4631 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4633printf "%s\n" "yes" >&6; } 4634 else 4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4636printf "%s\n" "no" >&6; } 4637 PKG_CONFIG="" 4638 fi 4639fi 4640 4641 4642 # Make sure we can run config.sub. 4643$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4644 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4645 4646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4647printf %s "checking build system type... " >&6; } 4648if test ${ac_cv_build+y} 4649then : 4650 printf %s "(cached) " >&6 4651else $as_nop 4652 ac_build_alias=$build_alias 4653test "x$ac_build_alias" = x && 4654 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4655test "x$ac_build_alias" = x && 4656 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4657ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4658 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4659 4660fi 4661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4662printf "%s\n" "$ac_cv_build" >&6; } 4663case $ac_cv_build in 4664*-*-*) ;; 4665*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4666esac 4667build=$ac_cv_build 4668ac_save_IFS=$IFS; IFS='-' 4669set x $ac_cv_build 4670shift 4671build_cpu=$1 4672build_vendor=$2 4673shift; shift 4674# Remember, the first character of IFS is used to create $*, 4675# except with old shells: 4676build_os=$* 4677IFS=$ac_save_IFS 4678case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4679 4680 4681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4682printf %s "checking host system type... " >&6; } 4683if test ${ac_cv_host+y} 4684then : 4685 printf %s "(cached) " >&6 4686else $as_nop 4687 if test "x$host_alias" = x; then 4688 ac_cv_host=$ac_cv_build 4689else 4690 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4691 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4692fi 4693 4694fi 4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4696printf "%s\n" "$ac_cv_host" >&6; } 4697case $ac_cv_host in 4698*-*-*) ;; 4699*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4700esac 4701host=$ac_cv_host 4702ac_save_IFS=$IFS; IFS='-' 4703set x $ac_cv_host 4704shift 4705host_cpu=$1 4706host_vendor=$2 4707shift; shift 4708# Remember, the first character of IFS is used to create $*, 4709# except with old shells: 4710host_os=$* 4711IFS=$ac_save_IFS 4712case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4713 4714 4715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4716printf %s "checking for a sed that does not truncate output... " >&6; } 4717if test ${ac_cv_path_SED+y} 4718then : 4719 printf %s "(cached) " >&6 4720else $as_nop 4721 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4722 for ac_i in 1 2 3 4 5 6 7; do 4723 ac_script="$ac_script$as_nl$ac_script" 4724 done 4725 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4726 { ac_script=; unset ac_script;} 4727 if test -z "$SED"; then 4728 ac_path_SED_found=false 4729 # Loop through the user's path and test for each of PROGNAME-LIST 4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4731for as_dir in $PATH 4732do 4733 IFS=$as_save_IFS 4734 case $as_dir in #((( 4735 '') as_dir=./ ;; 4736 */) ;; 4737 *) as_dir=$as_dir/ ;; 4738 esac 4739 for ac_prog in sed gsed 4740 do 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4743 as_fn_executable_p "$ac_path_SED" || continue 4744# Check for GNU ac_path_SED and select it if it is found. 4745 # Check for GNU $ac_path_SED 4746case `"$ac_path_SED" --version 2>&1` in 4747*GNU*) 4748 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4749*) 4750 ac_count=0 4751 printf %s 0123456789 >"conftest.in" 4752 while : 4753 do 4754 cat "conftest.in" "conftest.in" >"conftest.tmp" 4755 mv "conftest.tmp" "conftest.in" 4756 cp "conftest.in" "conftest.nl" 4757 printf "%s\n" '' >> "conftest.nl" 4758 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4759 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4760 as_fn_arith $ac_count + 1 && ac_count=$as_val 4761 if test $ac_count -gt ${ac_path_SED_max-0}; then 4762 # Best one so far, save it but keep looking for a better one 4763 ac_cv_path_SED="$ac_path_SED" 4764 ac_path_SED_max=$ac_count 4765 fi 4766 # 10*(2^10) chars as input seems more than enough 4767 test $ac_count -gt 10 && break 4768 done 4769 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4770esac 4771 4772 $ac_path_SED_found && break 3 4773 done 4774 done 4775 done 4776IFS=$as_save_IFS 4777 if test -z "$ac_cv_path_SED"; then 4778 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4779 fi 4780else 4781 ac_cv_path_SED=$SED 4782fi 4783 4784fi 4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4786printf "%s\n" "$ac_cv_path_SED" >&6; } 4787 SED="$ac_cv_path_SED" 4788 rm -f conftest.sed 4789 4790 4791 4792 4793 4794 4795# Check whether --enable-selective-werror was given. 4796if test ${enable_selective_werror+y} 4797then : 4798 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4799else $as_nop 4800 SELECTIVE_WERROR=yes 4801fi 4802 4803 4804 4805 4806 4807# -v is too short to test reliably with XORG_TESTSET_CFLAG 4808if test "x$SUNCC" = "xyes"; then 4809 BASE_CFLAGS="-v" 4810else 4811 BASE_CFLAGS="" 4812fi 4813 4814# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828xorg_testset_save_CFLAGS="$CFLAGS" 4829 4830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4833printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4834if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4835then : 4836 printf %s "(cached) " >&6 4837else $as_nop 4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4839/* end confdefs.h. */ 4840int i; 4841_ACEOF 4842if ac_fn_c_try_compile "$LINENO" 4843then : 4844 xorg_cv_cc_flag_unknown_warning_option=yes 4845else $as_nop 4846 xorg_cv_cc_flag_unknown_warning_option=no 4847fi 4848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4849fi 4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4853 CFLAGS="$xorg_testset_save_CFLAGS" 4854fi 4855 4856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4859 fi 4860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4864then : 4865 printf %s "(cached) " >&6 4866else $as_nop 4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4868/* end confdefs.h. */ 4869int i; 4870_ACEOF 4871if ac_fn_c_try_compile "$LINENO" 4872then : 4873 xorg_cv_cc_flag_unused_command_line_argument=yes 4874else $as_nop 4875 xorg_cv_cc_flag_unused_command_line_argument=no 4876fi 4877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4878fi 4879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4882 CFLAGS="$xorg_testset_save_CFLAGS" 4883fi 4884 4885found="no" 4886 4887 if test $found = "no" ; then 4888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4890 fi 4891 4892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4894 fi 4895 4896 CFLAGS="$CFLAGS -Wall" 4897 4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4899printf %s "checking if $CC supports -Wall... " >&6; } 4900 cacheid=xorg_cv_cc_flag__Wall 4901 if eval test \${$cacheid+y} 4902then : 4903 printf %s "(cached) " >&6 4904else $as_nop 4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4906/* end confdefs.h. */ 4907int i; 4908int 4909main (void) 4910{ 4911 4912 ; 4913 return 0; 4914} 4915_ACEOF 4916if ac_fn_c_try_link "$LINENO" 4917then : 4918 eval $cacheid=yes 4919else $as_nop 4920 eval $cacheid=no 4921fi 4922rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4923 conftest$ac_exeext conftest.$ac_ext 4924fi 4925 4926 4927 CFLAGS="$xorg_testset_save_CFLAGS" 4928 4929 eval supported=\$$cacheid 4930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4931printf "%s\n" "$supported" >&6; } 4932 if test "$supported" = "yes" ; then 4933 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4934 found="yes" 4935 fi 4936 fi 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952xorg_testset_save_CFLAGS="$CFLAGS" 4953 4954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4958if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4959then : 4960 printf %s "(cached) " >&6 4961else $as_nop 4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4963/* end confdefs.h. */ 4964int i; 4965_ACEOF 4966if ac_fn_c_try_compile "$LINENO" 4967then : 4968 xorg_cv_cc_flag_unknown_warning_option=yes 4969else $as_nop 4970 xorg_cv_cc_flag_unknown_warning_option=no 4971fi 4972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4973fi 4974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4977 CFLAGS="$xorg_testset_save_CFLAGS" 4978fi 4979 4980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4983 fi 4984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4987if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4988then : 4989 printf %s "(cached) " >&6 4990else $as_nop 4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4992/* end confdefs.h. */ 4993int i; 4994_ACEOF 4995if ac_fn_c_try_compile "$LINENO" 4996then : 4997 xorg_cv_cc_flag_unused_command_line_argument=yes 4998else $as_nop 4999 xorg_cv_cc_flag_unused_command_line_argument=no 5000fi 5001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5002fi 5003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5004printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5006 CFLAGS="$xorg_testset_save_CFLAGS" 5007fi 5008 5009found="no" 5010 5011 if test $found = "no" ; then 5012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5014 fi 5015 5016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5018 fi 5019 5020 CFLAGS="$CFLAGS -Wpointer-arith" 5021 5022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5023printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5024 cacheid=xorg_cv_cc_flag__Wpointer_arith 5025 if eval test \${$cacheid+y} 5026then : 5027 printf %s "(cached) " >&6 5028else $as_nop 5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5030/* end confdefs.h. */ 5031int i; 5032int 5033main (void) 5034{ 5035 5036 ; 5037 return 0; 5038} 5039_ACEOF 5040if ac_fn_c_try_link "$LINENO" 5041then : 5042 eval $cacheid=yes 5043else $as_nop 5044 eval $cacheid=no 5045fi 5046rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5047 conftest$ac_exeext conftest.$ac_ext 5048fi 5049 5050 5051 CFLAGS="$xorg_testset_save_CFLAGS" 5052 5053 eval supported=\$$cacheid 5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5055printf "%s\n" "$supported" >&6; } 5056 if test "$supported" = "yes" ; then 5057 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5058 found="yes" 5059 fi 5060 fi 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076xorg_testset_save_CFLAGS="$CFLAGS" 5077 5078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5082if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5083then : 5084 printf %s "(cached) " >&6 5085else $as_nop 5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5087/* end confdefs.h. */ 5088int i; 5089_ACEOF 5090if ac_fn_c_try_compile "$LINENO" 5091then : 5092 xorg_cv_cc_flag_unknown_warning_option=yes 5093else $as_nop 5094 xorg_cv_cc_flag_unknown_warning_option=no 5095fi 5096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5097fi 5098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5101 CFLAGS="$xorg_testset_save_CFLAGS" 5102fi 5103 5104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5107 fi 5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5111if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5112then : 5113 printf %s "(cached) " >&6 5114else $as_nop 5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116/* end confdefs.h. */ 5117int i; 5118_ACEOF 5119if ac_fn_c_try_compile "$LINENO" 5120then : 5121 xorg_cv_cc_flag_unused_command_line_argument=yes 5122else $as_nop 5123 xorg_cv_cc_flag_unused_command_line_argument=no 5124fi 5125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5126fi 5127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5130 CFLAGS="$xorg_testset_save_CFLAGS" 5131fi 5132 5133found="no" 5134 5135 if test $found = "no" ; then 5136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5138 fi 5139 5140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5142 fi 5143 5144 CFLAGS="$CFLAGS -Wmissing-declarations" 5145 5146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5147printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5148 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5149 if eval test \${$cacheid+y} 5150then : 5151 printf %s "(cached) " >&6 5152else $as_nop 5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5154/* end confdefs.h. */ 5155int i; 5156int 5157main (void) 5158{ 5159 5160 ; 5161 return 0; 5162} 5163_ACEOF 5164if ac_fn_c_try_link "$LINENO" 5165then : 5166 eval $cacheid=yes 5167else $as_nop 5168 eval $cacheid=no 5169fi 5170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5171 conftest$ac_exeext conftest.$ac_ext 5172fi 5173 5174 5175 CFLAGS="$xorg_testset_save_CFLAGS" 5176 5177 eval supported=\$$cacheid 5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5179printf "%s\n" "$supported" >&6; } 5180 if test "$supported" = "yes" ; then 5181 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5182 found="yes" 5183 fi 5184 fi 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200xorg_testset_save_CFLAGS="$CFLAGS" 5201 5202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5206if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5207then : 5208 printf %s "(cached) " >&6 5209else $as_nop 5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5211/* end confdefs.h. */ 5212int i; 5213_ACEOF 5214if ac_fn_c_try_compile "$LINENO" 5215then : 5216 xorg_cv_cc_flag_unknown_warning_option=yes 5217else $as_nop 5218 xorg_cv_cc_flag_unknown_warning_option=no 5219fi 5220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5221fi 5222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5225 CFLAGS="$xorg_testset_save_CFLAGS" 5226fi 5227 5228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5231 fi 5232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5235if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5236then : 5237 printf %s "(cached) " >&6 5238else $as_nop 5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5240/* end confdefs.h. */ 5241int i; 5242_ACEOF 5243if ac_fn_c_try_compile "$LINENO" 5244then : 5245 xorg_cv_cc_flag_unused_command_line_argument=yes 5246else $as_nop 5247 xorg_cv_cc_flag_unused_command_line_argument=no 5248fi 5249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5250fi 5251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5253 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5254 CFLAGS="$xorg_testset_save_CFLAGS" 5255fi 5256 5257found="no" 5258 5259 if test $found = "no" ; then 5260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5262 fi 5263 5264 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5266 fi 5267 5268 CFLAGS="$CFLAGS -Wformat=2" 5269 5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5271printf %s "checking if $CC supports -Wformat=2... " >&6; } 5272 cacheid=xorg_cv_cc_flag__Wformat_2 5273 if eval test \${$cacheid+y} 5274then : 5275 printf %s "(cached) " >&6 5276else $as_nop 5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5278/* end confdefs.h. */ 5279int i; 5280int 5281main (void) 5282{ 5283 5284 ; 5285 return 0; 5286} 5287_ACEOF 5288if ac_fn_c_try_link "$LINENO" 5289then : 5290 eval $cacheid=yes 5291else $as_nop 5292 eval $cacheid=no 5293fi 5294rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5295 conftest$ac_exeext conftest.$ac_ext 5296fi 5297 5298 5299 CFLAGS="$xorg_testset_save_CFLAGS" 5300 5301 eval supported=\$$cacheid 5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5303printf "%s\n" "$supported" >&6; } 5304 if test "$supported" = "yes" ; then 5305 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5306 found="yes" 5307 fi 5308 fi 5309 5310 if test $found = "no" ; then 5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 fi 5314 5315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5317 fi 5318 5319 CFLAGS="$CFLAGS -Wformat" 5320 5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5322printf %s "checking if $CC supports -Wformat... " >&6; } 5323 cacheid=xorg_cv_cc_flag__Wformat 5324 if eval test \${$cacheid+y} 5325then : 5326 printf %s "(cached) " >&6 5327else $as_nop 5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5329/* end confdefs.h. */ 5330int i; 5331int 5332main (void) 5333{ 5334 5335 ; 5336 return 0; 5337} 5338_ACEOF 5339if ac_fn_c_try_link "$LINENO" 5340then : 5341 eval $cacheid=yes 5342else $as_nop 5343 eval $cacheid=no 5344fi 5345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5346 conftest$ac_exeext conftest.$ac_ext 5347fi 5348 5349 5350 CFLAGS="$xorg_testset_save_CFLAGS" 5351 5352 eval supported=\$$cacheid 5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5354printf "%s\n" "$supported" >&6; } 5355 if test "$supported" = "yes" ; then 5356 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5357 found="yes" 5358 fi 5359 fi 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377xorg_testset_save_CFLAGS="$CFLAGS" 5378 5379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5383if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5384then : 5385 printf %s "(cached) " >&6 5386else $as_nop 5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389int i; 5390_ACEOF 5391if ac_fn_c_try_compile "$LINENO" 5392then : 5393 xorg_cv_cc_flag_unknown_warning_option=yes 5394else $as_nop 5395 xorg_cv_cc_flag_unknown_warning_option=no 5396fi 5397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5398fi 5399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5402 CFLAGS="$xorg_testset_save_CFLAGS" 5403fi 5404 5405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5408 fi 5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5413then : 5414 printf %s "(cached) " >&6 5415else $as_nop 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418int i; 5419_ACEOF 5420if ac_fn_c_try_compile "$LINENO" 5421then : 5422 xorg_cv_cc_flag_unused_command_line_argument=yes 5423else $as_nop 5424 xorg_cv_cc_flag_unused_command_line_argument=no 5425fi 5426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5427fi 5428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5431 CFLAGS="$xorg_testset_save_CFLAGS" 5432fi 5433 5434found="no" 5435 5436 if test $found = "no" ; then 5437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5439 fi 5440 5441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5443 fi 5444 5445 CFLAGS="$CFLAGS -Wstrict-prototypes" 5446 5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5448printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5449 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5450 if eval test \${$cacheid+y} 5451then : 5452 printf %s "(cached) " >&6 5453else $as_nop 5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455/* end confdefs.h. */ 5456int i; 5457int 5458main (void) 5459{ 5460 5461 ; 5462 return 0; 5463} 5464_ACEOF 5465if ac_fn_c_try_link "$LINENO" 5466then : 5467 eval $cacheid=yes 5468else $as_nop 5469 eval $cacheid=no 5470fi 5471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5472 conftest$ac_exeext conftest.$ac_ext 5473fi 5474 5475 5476 CFLAGS="$xorg_testset_save_CFLAGS" 5477 5478 eval supported=\$$cacheid 5479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5480printf "%s\n" "$supported" >&6; } 5481 if test "$supported" = "yes" ; then 5482 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5483 found="yes" 5484 fi 5485 fi 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501xorg_testset_save_CFLAGS="$CFLAGS" 5502 5503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5507if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5508then : 5509 printf %s "(cached) " >&6 5510else $as_nop 5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5512/* end confdefs.h. */ 5513int i; 5514_ACEOF 5515if ac_fn_c_try_compile "$LINENO" 5516then : 5517 xorg_cv_cc_flag_unknown_warning_option=yes 5518else $as_nop 5519 xorg_cv_cc_flag_unknown_warning_option=no 5520fi 5521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5522fi 5523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5526 CFLAGS="$xorg_testset_save_CFLAGS" 5527fi 5528 5529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5532 fi 5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5536if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5537then : 5538 printf %s "(cached) " >&6 5539else $as_nop 5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5541/* end confdefs.h. */ 5542int i; 5543_ACEOF 5544if ac_fn_c_try_compile "$LINENO" 5545then : 5546 xorg_cv_cc_flag_unused_command_line_argument=yes 5547else $as_nop 5548 xorg_cv_cc_flag_unused_command_line_argument=no 5549fi 5550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5551fi 5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5555 CFLAGS="$xorg_testset_save_CFLAGS" 5556fi 5557 5558found="no" 5559 5560 if test $found = "no" ; then 5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 fi 5564 5565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5567 fi 5568 5569 CFLAGS="$CFLAGS -Wmissing-prototypes" 5570 5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5572printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5573 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5574 if eval test \${$cacheid+y} 5575then : 5576 printf %s "(cached) " >&6 5577else $as_nop 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579/* end confdefs.h. */ 5580int i; 5581int 5582main (void) 5583{ 5584 5585 ; 5586 return 0; 5587} 5588_ACEOF 5589if ac_fn_c_try_link "$LINENO" 5590then : 5591 eval $cacheid=yes 5592else $as_nop 5593 eval $cacheid=no 5594fi 5595rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5596 conftest$ac_exeext conftest.$ac_ext 5597fi 5598 5599 5600 CFLAGS="$xorg_testset_save_CFLAGS" 5601 5602 eval supported=\$$cacheid 5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5604printf "%s\n" "$supported" >&6; } 5605 if test "$supported" = "yes" ; then 5606 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5607 found="yes" 5608 fi 5609 fi 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625xorg_testset_save_CFLAGS="$CFLAGS" 5626 5627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5632then : 5633 printf %s "(cached) " >&6 5634else $as_nop 5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636/* end confdefs.h. */ 5637int i; 5638_ACEOF 5639if ac_fn_c_try_compile "$LINENO" 5640then : 5641 xorg_cv_cc_flag_unknown_warning_option=yes 5642else $as_nop 5643 xorg_cv_cc_flag_unknown_warning_option=no 5644fi 5645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5646fi 5647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5650 CFLAGS="$xorg_testset_save_CFLAGS" 5651fi 5652 5653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5656 fi 5657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5660if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5661then : 5662 printf %s "(cached) " >&6 5663else $as_nop 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5665/* end confdefs.h. */ 5666int i; 5667_ACEOF 5668if ac_fn_c_try_compile "$LINENO" 5669then : 5670 xorg_cv_cc_flag_unused_command_line_argument=yes 5671else $as_nop 5672 xorg_cv_cc_flag_unused_command_line_argument=no 5673fi 5674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5675fi 5676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5679 CFLAGS="$xorg_testset_save_CFLAGS" 5680fi 5681 5682found="no" 5683 5684 if test $found = "no" ; then 5685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687 fi 5688 5689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5691 fi 5692 5693 CFLAGS="$CFLAGS -Wnested-externs" 5694 5695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5696printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5697 cacheid=xorg_cv_cc_flag__Wnested_externs 5698 if eval test \${$cacheid+y} 5699then : 5700 printf %s "(cached) " >&6 5701else $as_nop 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5703/* end confdefs.h. */ 5704int i; 5705int 5706main (void) 5707{ 5708 5709 ; 5710 return 0; 5711} 5712_ACEOF 5713if ac_fn_c_try_link "$LINENO" 5714then : 5715 eval $cacheid=yes 5716else $as_nop 5717 eval $cacheid=no 5718fi 5719rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5720 conftest$ac_exeext conftest.$ac_ext 5721fi 5722 5723 5724 CFLAGS="$xorg_testset_save_CFLAGS" 5725 5726 eval supported=\$$cacheid 5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5728printf "%s\n" "$supported" >&6; } 5729 if test "$supported" = "yes" ; then 5730 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5731 found="yes" 5732 fi 5733 fi 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749xorg_testset_save_CFLAGS="$CFLAGS" 5750 5751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5755if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5756then : 5757 printf %s "(cached) " >&6 5758else $as_nop 5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5760/* end confdefs.h. */ 5761int i; 5762_ACEOF 5763if ac_fn_c_try_compile "$LINENO" 5764then : 5765 xorg_cv_cc_flag_unknown_warning_option=yes 5766else $as_nop 5767 xorg_cv_cc_flag_unknown_warning_option=no 5768fi 5769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5770fi 5771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5773 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5774 CFLAGS="$xorg_testset_save_CFLAGS" 5775fi 5776 5777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5780 fi 5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5784if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5785then : 5786 printf %s "(cached) " >&6 5787else $as_nop 5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5789/* end confdefs.h. */ 5790int i; 5791_ACEOF 5792if ac_fn_c_try_compile "$LINENO" 5793then : 5794 xorg_cv_cc_flag_unused_command_line_argument=yes 5795else $as_nop 5796 xorg_cv_cc_flag_unused_command_line_argument=no 5797fi 5798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5799fi 5800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5803 CFLAGS="$xorg_testset_save_CFLAGS" 5804fi 5805 5806found="no" 5807 5808 if test $found = "no" ; then 5809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5811 fi 5812 5813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5815 fi 5816 5817 CFLAGS="$CFLAGS -Wbad-function-cast" 5818 5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5820printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5821 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5822 if eval test \${$cacheid+y} 5823then : 5824 printf %s "(cached) " >&6 5825else $as_nop 5826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5827/* end confdefs.h. */ 5828int i; 5829int 5830main (void) 5831{ 5832 5833 ; 5834 return 0; 5835} 5836_ACEOF 5837if ac_fn_c_try_link "$LINENO" 5838then : 5839 eval $cacheid=yes 5840else $as_nop 5841 eval $cacheid=no 5842fi 5843rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5844 conftest$ac_exeext conftest.$ac_ext 5845fi 5846 5847 5848 CFLAGS="$xorg_testset_save_CFLAGS" 5849 5850 eval supported=\$$cacheid 5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5852printf "%s\n" "$supported" >&6; } 5853 if test "$supported" = "yes" ; then 5854 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5855 found="yes" 5856 fi 5857 fi 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873xorg_testset_save_CFLAGS="$CFLAGS" 5874 5875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5879if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5880then : 5881 printf %s "(cached) " >&6 5882else $as_nop 5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5884/* end confdefs.h. */ 5885int i; 5886_ACEOF 5887if ac_fn_c_try_compile "$LINENO" 5888then : 5889 xorg_cv_cc_flag_unknown_warning_option=yes 5890else $as_nop 5891 xorg_cv_cc_flag_unknown_warning_option=no 5892fi 5893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5894fi 5895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5897 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5898 CFLAGS="$xorg_testset_save_CFLAGS" 5899fi 5900 5901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5902 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5903 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5904 fi 5905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5908if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5909then : 5910 printf %s "(cached) " >&6 5911else $as_nop 5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5913/* end confdefs.h. */ 5914int i; 5915_ACEOF 5916if ac_fn_c_try_compile "$LINENO" 5917then : 5918 xorg_cv_cc_flag_unused_command_line_argument=yes 5919else $as_nop 5920 xorg_cv_cc_flag_unused_command_line_argument=no 5921fi 5922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5923fi 5924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5927 CFLAGS="$xorg_testset_save_CFLAGS" 5928fi 5929 5930found="no" 5931 5932 if test $found = "no" ; then 5933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5935 fi 5936 5937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5939 fi 5940 5941 CFLAGS="$CFLAGS -Wold-style-definition" 5942 5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5944printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5945 cacheid=xorg_cv_cc_flag__Wold_style_definition 5946 if eval test \${$cacheid+y} 5947then : 5948 printf %s "(cached) " >&6 5949else $as_nop 5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5951/* end confdefs.h. */ 5952int i; 5953int 5954main (void) 5955{ 5956 5957 ; 5958 return 0; 5959} 5960_ACEOF 5961if ac_fn_c_try_link "$LINENO" 5962then : 5963 eval $cacheid=yes 5964else $as_nop 5965 eval $cacheid=no 5966fi 5967rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5968 conftest$ac_exeext conftest.$ac_ext 5969fi 5970 5971 5972 CFLAGS="$xorg_testset_save_CFLAGS" 5973 5974 eval supported=\$$cacheid 5975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5976printf "%s\n" "$supported" >&6; } 5977 if test "$supported" = "yes" ; then 5978 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5979 found="yes" 5980 fi 5981 fi 5982 5983 if test $found = "no" ; then 5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5986 fi 5987 5988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5990 fi 5991 5992 CFLAGS="$CFLAGS -fd" 5993 5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5995printf %s "checking if $CC supports -fd... " >&6; } 5996 cacheid=xorg_cv_cc_flag__fd 5997 if eval test \${$cacheid+y} 5998then : 5999 printf %s "(cached) " >&6 6000else $as_nop 6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6002/* end confdefs.h. */ 6003int i; 6004int 6005main (void) 6006{ 6007 6008 ; 6009 return 0; 6010} 6011_ACEOF 6012if ac_fn_c_try_link "$LINENO" 6013then : 6014 eval $cacheid=yes 6015else $as_nop 6016 eval $cacheid=no 6017fi 6018rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6019 conftest$ac_exeext conftest.$ac_ext 6020fi 6021 6022 6023 CFLAGS="$xorg_testset_save_CFLAGS" 6024 6025 eval supported=\$$cacheid 6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6027printf "%s\n" "$supported" >&6; } 6028 if test "$supported" = "yes" ; then 6029 BASE_CFLAGS="$BASE_CFLAGS -fd" 6030 found="yes" 6031 fi 6032 fi 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048xorg_testset_save_CFLAGS="$CFLAGS" 6049 6050if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6053printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6054if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6055then : 6056 printf %s "(cached) " >&6 6057else $as_nop 6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6059/* end confdefs.h. */ 6060int i; 6061_ACEOF 6062if ac_fn_c_try_compile "$LINENO" 6063then : 6064 xorg_cv_cc_flag_unknown_warning_option=yes 6065else $as_nop 6066 xorg_cv_cc_flag_unknown_warning_option=no 6067fi 6068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6069fi 6070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6071printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6073 CFLAGS="$xorg_testset_save_CFLAGS" 6074fi 6075 6076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6079 fi 6080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6082printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6083if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6084then : 6085 printf %s "(cached) " >&6 6086else $as_nop 6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6088/* end confdefs.h. */ 6089int i; 6090_ACEOF 6091if ac_fn_c_try_compile "$LINENO" 6092then : 6093 xorg_cv_cc_flag_unused_command_line_argument=yes 6094else $as_nop 6095 xorg_cv_cc_flag_unused_command_line_argument=no 6096fi 6097rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6098fi 6099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6100printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6102 CFLAGS="$xorg_testset_save_CFLAGS" 6103fi 6104 6105found="no" 6106 6107 if test $found = "no" ; then 6108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6110 fi 6111 6112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6114 fi 6115 6116 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6117 6118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6119printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6120 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6121 if eval test \${$cacheid+y} 6122then : 6123 printf %s "(cached) " >&6 6124else $as_nop 6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6126/* end confdefs.h. */ 6127int i; 6128int 6129main (void) 6130{ 6131 6132 ; 6133 return 0; 6134} 6135_ACEOF 6136if ac_fn_c_try_link "$LINENO" 6137then : 6138 eval $cacheid=yes 6139else $as_nop 6140 eval $cacheid=no 6141fi 6142rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6143 conftest$ac_exeext conftest.$ac_ext 6144fi 6145 6146 6147 CFLAGS="$xorg_testset_save_CFLAGS" 6148 6149 eval supported=\$$cacheid 6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6151printf "%s\n" "$supported" >&6; } 6152 if test "$supported" = "yes" ; then 6153 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6154 found="yes" 6155 fi 6156 fi 6157 6158 6159 6160 6161 6162# This chunk adds additional warnings that could catch undesired effects. 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176xorg_testset_save_CFLAGS="$CFLAGS" 6177 6178if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6181printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6182if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6183then : 6184 printf %s "(cached) " >&6 6185else $as_nop 6186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6187/* end confdefs.h. */ 6188int i; 6189_ACEOF 6190if ac_fn_c_try_compile "$LINENO" 6191then : 6192 xorg_cv_cc_flag_unknown_warning_option=yes 6193else $as_nop 6194 xorg_cv_cc_flag_unknown_warning_option=no 6195fi 6196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6197fi 6198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6199printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6200 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6201 CFLAGS="$xorg_testset_save_CFLAGS" 6202fi 6203 6204if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6207 fi 6208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6210printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6211if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6212then : 6213 printf %s "(cached) " >&6 6214else $as_nop 6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216/* end confdefs.h. */ 6217int i; 6218_ACEOF 6219if ac_fn_c_try_compile "$LINENO" 6220then : 6221 xorg_cv_cc_flag_unused_command_line_argument=yes 6222else $as_nop 6223 xorg_cv_cc_flag_unused_command_line_argument=no 6224fi 6225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6226fi 6227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6228printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6229 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6230 CFLAGS="$xorg_testset_save_CFLAGS" 6231fi 6232 6233found="no" 6234 6235 if test $found = "no" ; then 6236 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6238 fi 6239 6240 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6242 fi 6243 6244 CFLAGS="$CFLAGS -Wunused" 6245 6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6247printf %s "checking if $CC supports -Wunused... " >&6; } 6248 cacheid=xorg_cv_cc_flag__Wunused 6249 if eval test \${$cacheid+y} 6250then : 6251 printf %s "(cached) " >&6 6252else $as_nop 6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6254/* end confdefs.h. */ 6255int i; 6256int 6257main (void) 6258{ 6259 6260 ; 6261 return 0; 6262} 6263_ACEOF 6264if ac_fn_c_try_link "$LINENO" 6265then : 6266 eval $cacheid=yes 6267else $as_nop 6268 eval $cacheid=no 6269fi 6270rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6271 conftest$ac_exeext conftest.$ac_ext 6272fi 6273 6274 6275 CFLAGS="$xorg_testset_save_CFLAGS" 6276 6277 eval supported=\$$cacheid 6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6279printf "%s\n" "$supported" >&6; } 6280 if test "$supported" = "yes" ; then 6281 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6282 found="yes" 6283 fi 6284 fi 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300xorg_testset_save_CFLAGS="$CFLAGS" 6301 6302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6305printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6306if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6307then : 6308 printf %s "(cached) " >&6 6309else $as_nop 6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6311/* end confdefs.h. */ 6312int i; 6313_ACEOF 6314if ac_fn_c_try_compile "$LINENO" 6315then : 6316 xorg_cv_cc_flag_unknown_warning_option=yes 6317else $as_nop 6318 xorg_cv_cc_flag_unknown_warning_option=no 6319fi 6320rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6321fi 6322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6323printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6324 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6325 CFLAGS="$xorg_testset_save_CFLAGS" 6326fi 6327 6328if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6331 fi 6332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6334printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6335if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6336then : 6337 printf %s "(cached) " >&6 6338else $as_nop 6339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6340/* end confdefs.h. */ 6341int i; 6342_ACEOF 6343if ac_fn_c_try_compile "$LINENO" 6344then : 6345 xorg_cv_cc_flag_unused_command_line_argument=yes 6346else $as_nop 6347 xorg_cv_cc_flag_unused_command_line_argument=no 6348fi 6349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6350fi 6351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6354 CFLAGS="$xorg_testset_save_CFLAGS" 6355fi 6356 6357found="no" 6358 6359 if test $found = "no" ; then 6360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6362 fi 6363 6364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6366 fi 6367 6368 CFLAGS="$CFLAGS -Wuninitialized" 6369 6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6371printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6372 cacheid=xorg_cv_cc_flag__Wuninitialized 6373 if eval test \${$cacheid+y} 6374then : 6375 printf %s "(cached) " >&6 6376else $as_nop 6377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6378/* end confdefs.h. */ 6379int i; 6380int 6381main (void) 6382{ 6383 6384 ; 6385 return 0; 6386} 6387_ACEOF 6388if ac_fn_c_try_link "$LINENO" 6389then : 6390 eval $cacheid=yes 6391else $as_nop 6392 eval $cacheid=no 6393fi 6394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6395 conftest$ac_exeext conftest.$ac_ext 6396fi 6397 6398 6399 CFLAGS="$xorg_testset_save_CFLAGS" 6400 6401 eval supported=\$$cacheid 6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6403printf "%s\n" "$supported" >&6; } 6404 if test "$supported" = "yes" ; then 6405 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6406 found="yes" 6407 fi 6408 fi 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424xorg_testset_save_CFLAGS="$CFLAGS" 6425 6426if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6429printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6430if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6431then : 6432 printf %s "(cached) " >&6 6433else $as_nop 6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6435/* end confdefs.h. */ 6436int i; 6437_ACEOF 6438if ac_fn_c_try_compile "$LINENO" 6439then : 6440 xorg_cv_cc_flag_unknown_warning_option=yes 6441else $as_nop 6442 xorg_cv_cc_flag_unknown_warning_option=no 6443fi 6444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6445fi 6446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6449 CFLAGS="$xorg_testset_save_CFLAGS" 6450fi 6451 6452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6455 fi 6456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6459if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6460then : 6461 printf %s "(cached) " >&6 6462else $as_nop 6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464/* end confdefs.h. */ 6465int i; 6466_ACEOF 6467if ac_fn_c_try_compile "$LINENO" 6468then : 6469 xorg_cv_cc_flag_unused_command_line_argument=yes 6470else $as_nop 6471 xorg_cv_cc_flag_unused_command_line_argument=no 6472fi 6473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6474fi 6475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6478 CFLAGS="$xorg_testset_save_CFLAGS" 6479fi 6480 6481found="no" 6482 6483 if test $found = "no" ; then 6484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6486 fi 6487 6488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6490 fi 6491 6492 CFLAGS="$CFLAGS -Wshadow" 6493 6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6495printf %s "checking if $CC supports -Wshadow... " >&6; } 6496 cacheid=xorg_cv_cc_flag__Wshadow 6497 if eval test \${$cacheid+y} 6498then : 6499 printf %s "(cached) " >&6 6500else $as_nop 6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6502/* end confdefs.h. */ 6503int i; 6504int 6505main (void) 6506{ 6507 6508 ; 6509 return 0; 6510} 6511_ACEOF 6512if ac_fn_c_try_link "$LINENO" 6513then : 6514 eval $cacheid=yes 6515else $as_nop 6516 eval $cacheid=no 6517fi 6518rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6519 conftest$ac_exeext conftest.$ac_ext 6520fi 6521 6522 6523 CFLAGS="$xorg_testset_save_CFLAGS" 6524 6525 eval supported=\$$cacheid 6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6527printf "%s\n" "$supported" >&6; } 6528 if test "$supported" = "yes" ; then 6529 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6530 found="yes" 6531 fi 6532 fi 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548xorg_testset_save_CFLAGS="$CFLAGS" 6549 6550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6553printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6554if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6555then : 6556 printf %s "(cached) " >&6 6557else $as_nop 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560int i; 6561_ACEOF 6562if ac_fn_c_try_compile "$LINENO" 6563then : 6564 xorg_cv_cc_flag_unknown_warning_option=yes 6565else $as_nop 6566 xorg_cv_cc_flag_unknown_warning_option=no 6567fi 6568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6569fi 6570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6571printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6573 CFLAGS="$xorg_testset_save_CFLAGS" 6574fi 6575 6576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6579 fi 6580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6582printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6583if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6584then : 6585 printf %s "(cached) " >&6 6586else $as_nop 6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6588/* end confdefs.h. */ 6589int i; 6590_ACEOF 6591if ac_fn_c_try_compile "$LINENO" 6592then : 6593 xorg_cv_cc_flag_unused_command_line_argument=yes 6594else $as_nop 6595 xorg_cv_cc_flag_unused_command_line_argument=no 6596fi 6597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6598fi 6599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6600printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6602 CFLAGS="$xorg_testset_save_CFLAGS" 6603fi 6604 6605found="no" 6606 6607 if test $found = "no" ; then 6608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6610 fi 6611 6612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6614 fi 6615 6616 CFLAGS="$CFLAGS -Wmissing-noreturn" 6617 6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6619printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6620 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6621 if eval test \${$cacheid+y} 6622then : 6623 printf %s "(cached) " >&6 6624else $as_nop 6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6626/* end confdefs.h. */ 6627int i; 6628int 6629main (void) 6630{ 6631 6632 ; 6633 return 0; 6634} 6635_ACEOF 6636if ac_fn_c_try_link "$LINENO" 6637then : 6638 eval $cacheid=yes 6639else $as_nop 6640 eval $cacheid=no 6641fi 6642rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6643 conftest$ac_exeext conftest.$ac_ext 6644fi 6645 6646 6647 CFLAGS="$xorg_testset_save_CFLAGS" 6648 6649 eval supported=\$$cacheid 6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6651printf "%s\n" "$supported" >&6; } 6652 if test "$supported" = "yes" ; then 6653 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6654 found="yes" 6655 fi 6656 fi 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672xorg_testset_save_CFLAGS="$CFLAGS" 6673 6674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6677printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6678if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6679then : 6680 printf %s "(cached) " >&6 6681else $as_nop 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684int i; 6685_ACEOF 6686if ac_fn_c_try_compile "$LINENO" 6687then : 6688 xorg_cv_cc_flag_unknown_warning_option=yes 6689else $as_nop 6690 xorg_cv_cc_flag_unknown_warning_option=no 6691fi 6692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6693fi 6694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6695printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6697 CFLAGS="$xorg_testset_save_CFLAGS" 6698fi 6699 6700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6703 fi 6704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6706printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6707if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6708then : 6709 printf %s "(cached) " >&6 6710else $as_nop 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713int i; 6714_ACEOF 6715if ac_fn_c_try_compile "$LINENO" 6716then : 6717 xorg_cv_cc_flag_unused_command_line_argument=yes 6718else $as_nop 6719 xorg_cv_cc_flag_unused_command_line_argument=no 6720fi 6721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6722fi 6723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6724printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6726 CFLAGS="$xorg_testset_save_CFLAGS" 6727fi 6728 6729found="no" 6730 6731 if test $found = "no" ; then 6732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6734 fi 6735 6736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6738 fi 6739 6740 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6741 6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6743printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6744 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6745 if eval test \${$cacheid+y} 6746then : 6747 printf %s "(cached) " >&6 6748else $as_nop 6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6750/* end confdefs.h. */ 6751int i; 6752int 6753main (void) 6754{ 6755 6756 ; 6757 return 0; 6758} 6759_ACEOF 6760if ac_fn_c_try_link "$LINENO" 6761then : 6762 eval $cacheid=yes 6763else $as_nop 6764 eval $cacheid=no 6765fi 6766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6767 conftest$ac_exeext conftest.$ac_ext 6768fi 6769 6770 6771 CFLAGS="$xorg_testset_save_CFLAGS" 6772 6773 eval supported=\$$cacheid 6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6775printf "%s\n" "$supported" >&6; } 6776 if test "$supported" = "yes" ; then 6777 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6778 found="yes" 6779 fi 6780 fi 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796xorg_testset_save_CFLAGS="$CFLAGS" 6797 6798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6801printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6802if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6803then : 6804 printf %s "(cached) " >&6 6805else $as_nop 6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6807/* end confdefs.h. */ 6808int i; 6809_ACEOF 6810if ac_fn_c_try_compile "$LINENO" 6811then : 6812 xorg_cv_cc_flag_unknown_warning_option=yes 6813else $as_nop 6814 xorg_cv_cc_flag_unknown_warning_option=no 6815fi 6816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6817fi 6818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6819printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6821 CFLAGS="$xorg_testset_save_CFLAGS" 6822fi 6823 6824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6827 fi 6828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6830printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6831if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6832then : 6833 printf %s "(cached) " >&6 6834else $as_nop 6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6836/* end confdefs.h. */ 6837int i; 6838_ACEOF 6839if ac_fn_c_try_compile "$LINENO" 6840then : 6841 xorg_cv_cc_flag_unused_command_line_argument=yes 6842else $as_nop 6843 xorg_cv_cc_flag_unused_command_line_argument=no 6844fi 6845rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6846fi 6847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6848printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6850 CFLAGS="$xorg_testset_save_CFLAGS" 6851fi 6852 6853found="no" 6854 6855 if test $found = "no" ; then 6856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6858 fi 6859 6860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6862 fi 6863 6864 CFLAGS="$CFLAGS -Wredundant-decls" 6865 6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6867printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6868 cacheid=xorg_cv_cc_flag__Wredundant_decls 6869 if eval test \${$cacheid+y} 6870then : 6871 printf %s "(cached) " >&6 6872else $as_nop 6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6874/* end confdefs.h. */ 6875int i; 6876int 6877main (void) 6878{ 6879 6880 ; 6881 return 0; 6882} 6883_ACEOF 6884if ac_fn_c_try_link "$LINENO" 6885then : 6886 eval $cacheid=yes 6887else $as_nop 6888 eval $cacheid=no 6889fi 6890rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6891 conftest$ac_exeext conftest.$ac_ext 6892fi 6893 6894 6895 CFLAGS="$xorg_testset_save_CFLAGS" 6896 6897 eval supported=\$$cacheid 6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6899printf "%s\n" "$supported" >&6; } 6900 if test "$supported" = "yes" ; then 6901 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6902 found="yes" 6903 fi 6904 fi 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920xorg_testset_save_CFLAGS="$CFLAGS" 6921 6922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6925printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6926if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6927then : 6928 printf %s "(cached) " >&6 6929else $as_nop 6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6931/* end confdefs.h. */ 6932int i; 6933_ACEOF 6934if ac_fn_c_try_compile "$LINENO" 6935then : 6936 xorg_cv_cc_flag_unknown_warning_option=yes 6937else $as_nop 6938 xorg_cv_cc_flag_unknown_warning_option=no 6939fi 6940rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6941fi 6942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6943printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6945 CFLAGS="$xorg_testset_save_CFLAGS" 6946fi 6947 6948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6951 fi 6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6954printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6955if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6956then : 6957 printf %s "(cached) " >&6 6958else $as_nop 6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6960/* end confdefs.h. */ 6961int i; 6962_ACEOF 6963if ac_fn_c_try_compile "$LINENO" 6964then : 6965 xorg_cv_cc_flag_unused_command_line_argument=yes 6966else $as_nop 6967 xorg_cv_cc_flag_unused_command_line_argument=no 6968fi 6969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6970fi 6971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6972printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6974 CFLAGS="$xorg_testset_save_CFLAGS" 6975fi 6976 6977found="no" 6978 6979 if test $found = "no" ; then 6980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6982 fi 6983 6984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6986 fi 6987 6988 CFLAGS="$CFLAGS -Wlogical-op" 6989 6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6991printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6992 cacheid=xorg_cv_cc_flag__Wlogical_op 6993 if eval test \${$cacheid+y} 6994then : 6995 printf %s "(cached) " >&6 6996else $as_nop 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999int i; 7000int 7001main (void) 7002{ 7003 7004 ; 7005 return 0; 7006} 7007_ACEOF 7008if ac_fn_c_try_link "$LINENO" 7009then : 7010 eval $cacheid=yes 7011else $as_nop 7012 eval $cacheid=no 7013fi 7014rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7015 conftest$ac_exeext conftest.$ac_ext 7016fi 7017 7018 7019 CFLAGS="$xorg_testset_save_CFLAGS" 7020 7021 eval supported=\$$cacheid 7022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7023printf "%s\n" "$supported" >&6; } 7024 if test "$supported" = "yes" ; then 7025 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7026 found="yes" 7027 fi 7028 fi 7029 7030 7031 7032# These are currently disabled because they are noisy. They will be enabled 7033# in the future once the codebase is sufficiently modernized to silence 7034# them. For now, I don't want them to drown out the other warnings. 7035# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7036# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7037# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7038 7039# Turn some warnings into errors, so we don't accidentally get successful builds 7040# when there are problems that should be fixed. 7041 7042if test "x$SELECTIVE_WERROR" = "xyes" ; then 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056xorg_testset_save_CFLAGS="$CFLAGS" 7057 7058if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7059 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7061printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7062if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7063then : 7064 printf %s "(cached) " >&6 7065else $as_nop 7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7067/* end confdefs.h. */ 7068int i; 7069_ACEOF 7070if ac_fn_c_try_compile "$LINENO" 7071then : 7072 xorg_cv_cc_flag_unknown_warning_option=yes 7073else $as_nop 7074 xorg_cv_cc_flag_unknown_warning_option=no 7075fi 7076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7077fi 7078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7079printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7080 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7081 CFLAGS="$xorg_testset_save_CFLAGS" 7082fi 7083 7084if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7087 fi 7088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7090printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7091if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7092then : 7093 printf %s "(cached) " >&6 7094else $as_nop 7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7096/* end confdefs.h. */ 7097int i; 7098_ACEOF 7099if ac_fn_c_try_compile "$LINENO" 7100then : 7101 xorg_cv_cc_flag_unused_command_line_argument=yes 7102else $as_nop 7103 xorg_cv_cc_flag_unused_command_line_argument=no 7104fi 7105rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7106fi 7107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7108printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7110 CFLAGS="$xorg_testset_save_CFLAGS" 7111fi 7112 7113found="no" 7114 7115 if test $found = "no" ; then 7116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7118 fi 7119 7120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7122 fi 7123 7124 CFLAGS="$CFLAGS -Werror=implicit" 7125 7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7127printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7128 cacheid=xorg_cv_cc_flag__Werror_implicit 7129 if eval test \${$cacheid+y} 7130then : 7131 printf %s "(cached) " >&6 7132else $as_nop 7133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7134/* end confdefs.h. */ 7135int i; 7136int 7137main (void) 7138{ 7139 7140 ; 7141 return 0; 7142} 7143_ACEOF 7144if ac_fn_c_try_link "$LINENO" 7145then : 7146 eval $cacheid=yes 7147else $as_nop 7148 eval $cacheid=no 7149fi 7150rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7151 conftest$ac_exeext conftest.$ac_ext 7152fi 7153 7154 7155 CFLAGS="$xorg_testset_save_CFLAGS" 7156 7157 eval supported=\$$cacheid 7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7159printf "%s\n" "$supported" >&6; } 7160 if test "$supported" = "yes" ; then 7161 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7162 found="yes" 7163 fi 7164 fi 7165 7166 if test $found = "no" ; then 7167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7169 fi 7170 7171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7173 fi 7174 7175 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7176 7177 { 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 7178printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7179 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7180 if eval test \${$cacheid+y} 7181then : 7182 printf %s "(cached) " >&6 7183else $as_nop 7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7185/* end confdefs.h. */ 7186int i; 7187int 7188main (void) 7189{ 7190 7191 ; 7192 return 0; 7193} 7194_ACEOF 7195if ac_fn_c_try_link "$LINENO" 7196then : 7197 eval $cacheid=yes 7198else $as_nop 7199 eval $cacheid=no 7200fi 7201rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7202 conftest$ac_exeext conftest.$ac_ext 7203fi 7204 7205 7206 CFLAGS="$xorg_testset_save_CFLAGS" 7207 7208 eval supported=\$$cacheid 7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7210printf "%s\n" "$supported" >&6; } 7211 if test "$supported" = "yes" ; then 7212 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7213 found="yes" 7214 fi 7215 fi 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231xorg_testset_save_CFLAGS="$CFLAGS" 7232 7233if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7236printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7237if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7238then : 7239 printf %s "(cached) " >&6 7240else $as_nop 7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7242/* end confdefs.h. */ 7243int i; 7244_ACEOF 7245if ac_fn_c_try_compile "$LINENO" 7246then : 7247 xorg_cv_cc_flag_unknown_warning_option=yes 7248else $as_nop 7249 xorg_cv_cc_flag_unknown_warning_option=no 7250fi 7251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7252fi 7253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7256 CFLAGS="$xorg_testset_save_CFLAGS" 7257fi 7258 7259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7262 fi 7263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7266if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7267then : 7268 printf %s "(cached) " >&6 7269else $as_nop 7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7271/* end confdefs.h. */ 7272int i; 7273_ACEOF 7274if ac_fn_c_try_compile "$LINENO" 7275then : 7276 xorg_cv_cc_flag_unused_command_line_argument=yes 7277else $as_nop 7278 xorg_cv_cc_flag_unused_command_line_argument=no 7279fi 7280rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7281fi 7282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7283printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7285 CFLAGS="$xorg_testset_save_CFLAGS" 7286fi 7287 7288found="no" 7289 7290 if test $found = "no" ; then 7291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7292 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7293 fi 7294 7295 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7297 fi 7298 7299 CFLAGS="$CFLAGS -Werror=nonnull" 7300 7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7302printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7303 cacheid=xorg_cv_cc_flag__Werror_nonnull 7304 if eval test \${$cacheid+y} 7305then : 7306 printf %s "(cached) " >&6 7307else $as_nop 7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7309/* end confdefs.h. */ 7310int i; 7311int 7312main (void) 7313{ 7314 7315 ; 7316 return 0; 7317} 7318_ACEOF 7319if ac_fn_c_try_link "$LINENO" 7320then : 7321 eval $cacheid=yes 7322else $as_nop 7323 eval $cacheid=no 7324fi 7325rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7326 conftest$ac_exeext conftest.$ac_ext 7327fi 7328 7329 7330 CFLAGS="$xorg_testset_save_CFLAGS" 7331 7332 eval supported=\$$cacheid 7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7334printf "%s\n" "$supported" >&6; } 7335 if test "$supported" = "yes" ; then 7336 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7337 found="yes" 7338 fi 7339 fi 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355xorg_testset_save_CFLAGS="$CFLAGS" 7356 7357if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7360printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7361if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7362then : 7363 printf %s "(cached) " >&6 7364else $as_nop 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367int i; 7368_ACEOF 7369if ac_fn_c_try_compile "$LINENO" 7370then : 7371 xorg_cv_cc_flag_unknown_warning_option=yes 7372else $as_nop 7373 xorg_cv_cc_flag_unknown_warning_option=no 7374fi 7375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7376fi 7377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7380 CFLAGS="$xorg_testset_save_CFLAGS" 7381fi 7382 7383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7386 fi 7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7390if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7391then : 7392 printf %s "(cached) " >&6 7393else $as_nop 7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7395/* end confdefs.h. */ 7396int i; 7397_ACEOF 7398if ac_fn_c_try_compile "$LINENO" 7399then : 7400 xorg_cv_cc_flag_unused_command_line_argument=yes 7401else $as_nop 7402 xorg_cv_cc_flag_unused_command_line_argument=no 7403fi 7404rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7405fi 7406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7407printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7409 CFLAGS="$xorg_testset_save_CFLAGS" 7410fi 7411 7412found="no" 7413 7414 if test $found = "no" ; then 7415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7416 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7417 fi 7418 7419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7421 fi 7422 7423 CFLAGS="$CFLAGS -Werror=init-self" 7424 7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7426printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7427 cacheid=xorg_cv_cc_flag__Werror_init_self 7428 if eval test \${$cacheid+y} 7429then : 7430 printf %s "(cached) " >&6 7431else $as_nop 7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7433/* end confdefs.h. */ 7434int i; 7435int 7436main (void) 7437{ 7438 7439 ; 7440 return 0; 7441} 7442_ACEOF 7443if ac_fn_c_try_link "$LINENO" 7444then : 7445 eval $cacheid=yes 7446else $as_nop 7447 eval $cacheid=no 7448fi 7449rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7450 conftest$ac_exeext conftest.$ac_ext 7451fi 7452 7453 7454 CFLAGS="$xorg_testset_save_CFLAGS" 7455 7456 eval supported=\$$cacheid 7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7458printf "%s\n" "$supported" >&6; } 7459 if test "$supported" = "yes" ; then 7460 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7461 found="yes" 7462 fi 7463 fi 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479xorg_testset_save_CFLAGS="$CFLAGS" 7480 7481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7484printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7485if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7486then : 7487 printf %s "(cached) " >&6 7488else $as_nop 7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7490/* end confdefs.h. */ 7491int i; 7492_ACEOF 7493if ac_fn_c_try_compile "$LINENO" 7494then : 7495 xorg_cv_cc_flag_unknown_warning_option=yes 7496else $as_nop 7497 xorg_cv_cc_flag_unknown_warning_option=no 7498fi 7499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7500fi 7501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7502printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7504 CFLAGS="$xorg_testset_save_CFLAGS" 7505fi 7506 7507if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7510 fi 7511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7513printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7514if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7515then : 7516 printf %s "(cached) " >&6 7517else $as_nop 7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7519/* end confdefs.h. */ 7520int i; 7521_ACEOF 7522if ac_fn_c_try_compile "$LINENO" 7523then : 7524 xorg_cv_cc_flag_unused_command_line_argument=yes 7525else $as_nop 7526 xorg_cv_cc_flag_unused_command_line_argument=no 7527fi 7528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7529fi 7530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7531printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7533 CFLAGS="$xorg_testset_save_CFLAGS" 7534fi 7535 7536found="no" 7537 7538 if test $found = "no" ; then 7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7541 fi 7542 7543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7545 fi 7546 7547 CFLAGS="$CFLAGS -Werror=main" 7548 7549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7550printf %s "checking if $CC supports -Werror=main... " >&6; } 7551 cacheid=xorg_cv_cc_flag__Werror_main 7552 if eval test \${$cacheid+y} 7553then : 7554 printf %s "(cached) " >&6 7555else $as_nop 7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7557/* end confdefs.h. */ 7558int i; 7559int 7560main (void) 7561{ 7562 7563 ; 7564 return 0; 7565} 7566_ACEOF 7567if ac_fn_c_try_link "$LINENO" 7568then : 7569 eval $cacheid=yes 7570else $as_nop 7571 eval $cacheid=no 7572fi 7573rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7574 conftest$ac_exeext conftest.$ac_ext 7575fi 7576 7577 7578 CFLAGS="$xorg_testset_save_CFLAGS" 7579 7580 eval supported=\$$cacheid 7581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7582printf "%s\n" "$supported" >&6; } 7583 if test "$supported" = "yes" ; then 7584 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7585 found="yes" 7586 fi 7587 fi 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603xorg_testset_save_CFLAGS="$CFLAGS" 7604 7605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7608printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7609if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7610then : 7611 printf %s "(cached) " >&6 7612else $as_nop 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7614/* end confdefs.h. */ 7615int i; 7616_ACEOF 7617if ac_fn_c_try_compile "$LINENO" 7618then : 7619 xorg_cv_cc_flag_unknown_warning_option=yes 7620else $as_nop 7621 xorg_cv_cc_flag_unknown_warning_option=no 7622fi 7623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7624fi 7625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7628 CFLAGS="$xorg_testset_save_CFLAGS" 7629fi 7630 7631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7634 fi 7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7638if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7639then : 7640 printf %s "(cached) " >&6 7641else $as_nop 7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643/* end confdefs.h. */ 7644int i; 7645_ACEOF 7646if ac_fn_c_try_compile "$LINENO" 7647then : 7648 xorg_cv_cc_flag_unused_command_line_argument=yes 7649else $as_nop 7650 xorg_cv_cc_flag_unused_command_line_argument=no 7651fi 7652rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7653fi 7654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7655printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7657 CFLAGS="$xorg_testset_save_CFLAGS" 7658fi 7659 7660found="no" 7661 7662 if test $found = "no" ; then 7663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7665 fi 7666 7667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7669 fi 7670 7671 CFLAGS="$CFLAGS -Werror=missing-braces" 7672 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7674printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7675 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7676 if eval test \${$cacheid+y} 7677then : 7678 printf %s "(cached) " >&6 7679else $as_nop 7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681/* end confdefs.h. */ 7682int i; 7683int 7684main (void) 7685{ 7686 7687 ; 7688 return 0; 7689} 7690_ACEOF 7691if ac_fn_c_try_link "$LINENO" 7692then : 7693 eval $cacheid=yes 7694else $as_nop 7695 eval $cacheid=no 7696fi 7697rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7698 conftest$ac_exeext conftest.$ac_ext 7699fi 7700 7701 7702 CFLAGS="$xorg_testset_save_CFLAGS" 7703 7704 eval supported=\$$cacheid 7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7706printf "%s\n" "$supported" >&6; } 7707 if test "$supported" = "yes" ; then 7708 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7709 found="yes" 7710 fi 7711 fi 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727xorg_testset_save_CFLAGS="$CFLAGS" 7728 7729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7732printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7733if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7734then : 7735 printf %s "(cached) " >&6 7736else $as_nop 7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738/* end confdefs.h. */ 7739int i; 7740_ACEOF 7741if ac_fn_c_try_compile "$LINENO" 7742then : 7743 xorg_cv_cc_flag_unknown_warning_option=yes 7744else $as_nop 7745 xorg_cv_cc_flag_unknown_warning_option=no 7746fi 7747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7748fi 7749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7750printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7752 CFLAGS="$xorg_testset_save_CFLAGS" 7753fi 7754 7755if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7758 fi 7759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7761printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7762if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7763then : 7764 printf %s "(cached) " >&6 7765else $as_nop 7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7767/* end confdefs.h. */ 7768int i; 7769_ACEOF 7770if ac_fn_c_try_compile "$LINENO" 7771then : 7772 xorg_cv_cc_flag_unused_command_line_argument=yes 7773else $as_nop 7774 xorg_cv_cc_flag_unused_command_line_argument=no 7775fi 7776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7777fi 7778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7779printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7780 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7781 CFLAGS="$xorg_testset_save_CFLAGS" 7782fi 7783 7784found="no" 7785 7786 if test $found = "no" ; then 7787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7789 fi 7790 7791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7793 fi 7794 7795 CFLAGS="$CFLAGS -Werror=sequence-point" 7796 7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7798printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7799 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7800 if eval test \${$cacheid+y} 7801then : 7802 printf %s "(cached) " >&6 7803else $as_nop 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805/* end confdefs.h. */ 7806int i; 7807int 7808main (void) 7809{ 7810 7811 ; 7812 return 0; 7813} 7814_ACEOF 7815if ac_fn_c_try_link "$LINENO" 7816then : 7817 eval $cacheid=yes 7818else $as_nop 7819 eval $cacheid=no 7820fi 7821rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7822 conftest$ac_exeext conftest.$ac_ext 7823fi 7824 7825 7826 CFLAGS="$xorg_testset_save_CFLAGS" 7827 7828 eval supported=\$$cacheid 7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7830printf "%s\n" "$supported" >&6; } 7831 if test "$supported" = "yes" ; then 7832 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7833 found="yes" 7834 fi 7835 fi 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851xorg_testset_save_CFLAGS="$CFLAGS" 7852 7853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7857if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7858then : 7859 printf %s "(cached) " >&6 7860else $as_nop 7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7862/* end confdefs.h. */ 7863int i; 7864_ACEOF 7865if ac_fn_c_try_compile "$LINENO" 7866then : 7867 xorg_cv_cc_flag_unknown_warning_option=yes 7868else $as_nop 7869 xorg_cv_cc_flag_unknown_warning_option=no 7870fi 7871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7872fi 7873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7874printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7875 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7876 CFLAGS="$xorg_testset_save_CFLAGS" 7877fi 7878 7879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7881 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7882 fi 7883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7885printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7886if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7887then : 7888 printf %s "(cached) " >&6 7889else $as_nop 7890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7891/* end confdefs.h. */ 7892int i; 7893_ACEOF 7894if ac_fn_c_try_compile "$LINENO" 7895then : 7896 xorg_cv_cc_flag_unused_command_line_argument=yes 7897else $as_nop 7898 xorg_cv_cc_flag_unused_command_line_argument=no 7899fi 7900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7901fi 7902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7903printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7905 CFLAGS="$xorg_testset_save_CFLAGS" 7906fi 7907 7908found="no" 7909 7910 if test $found = "no" ; then 7911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7912 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7913 fi 7914 7915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7917 fi 7918 7919 CFLAGS="$CFLAGS -Werror=return-type" 7920 7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7922printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7923 cacheid=xorg_cv_cc_flag__Werror_return_type 7924 if eval test \${$cacheid+y} 7925then : 7926 printf %s "(cached) " >&6 7927else $as_nop 7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7929/* end confdefs.h. */ 7930int i; 7931int 7932main (void) 7933{ 7934 7935 ; 7936 return 0; 7937} 7938_ACEOF 7939if ac_fn_c_try_link "$LINENO" 7940then : 7941 eval $cacheid=yes 7942else $as_nop 7943 eval $cacheid=no 7944fi 7945rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7946 conftest$ac_exeext conftest.$ac_ext 7947fi 7948 7949 7950 CFLAGS="$xorg_testset_save_CFLAGS" 7951 7952 eval supported=\$$cacheid 7953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7954printf "%s\n" "$supported" >&6; } 7955 if test "$supported" = "yes" ; then 7956 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7957 found="yes" 7958 fi 7959 fi 7960 7961 if test $found = "no" ; then 7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7964 fi 7965 7966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7968 fi 7969 7970 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7971 7972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7973printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7974 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7975 if eval test \${$cacheid+y} 7976then : 7977 printf %s "(cached) " >&6 7978else $as_nop 7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980/* end confdefs.h. */ 7981int i; 7982int 7983main (void) 7984{ 7985 7986 ; 7987 return 0; 7988} 7989_ACEOF 7990if ac_fn_c_try_link "$LINENO" 7991then : 7992 eval $cacheid=yes 7993else $as_nop 7994 eval $cacheid=no 7995fi 7996rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7997 conftest$ac_exeext conftest.$ac_ext 7998fi 7999 8000 8001 CFLAGS="$xorg_testset_save_CFLAGS" 8002 8003 eval supported=\$$cacheid 8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8005printf "%s\n" "$supported" >&6; } 8006 if test "$supported" = "yes" ; then 8007 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8008 found="yes" 8009 fi 8010 fi 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026xorg_testset_save_CFLAGS="$CFLAGS" 8027 8028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8031printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8032if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8033then : 8034 printf %s "(cached) " >&6 8035else $as_nop 8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8037/* end confdefs.h. */ 8038int i; 8039_ACEOF 8040if ac_fn_c_try_compile "$LINENO" 8041then : 8042 xorg_cv_cc_flag_unknown_warning_option=yes 8043else $as_nop 8044 xorg_cv_cc_flag_unknown_warning_option=no 8045fi 8046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8047fi 8048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8051 CFLAGS="$xorg_testset_save_CFLAGS" 8052fi 8053 8054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8057 fi 8058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8061if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8062then : 8063 printf %s "(cached) " >&6 8064else $as_nop 8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8066/* end confdefs.h. */ 8067int i; 8068_ACEOF 8069if ac_fn_c_try_compile "$LINENO" 8070then : 8071 xorg_cv_cc_flag_unused_command_line_argument=yes 8072else $as_nop 8073 xorg_cv_cc_flag_unused_command_line_argument=no 8074fi 8075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8076fi 8077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8078printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8080 CFLAGS="$xorg_testset_save_CFLAGS" 8081fi 8082 8083found="no" 8084 8085 if test $found = "no" ; then 8086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8088 fi 8089 8090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8092 fi 8093 8094 CFLAGS="$CFLAGS -Werror=trigraphs" 8095 8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8097printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8098 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8099 if eval test \${$cacheid+y} 8100then : 8101 printf %s "(cached) " >&6 8102else $as_nop 8103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8104/* end confdefs.h. */ 8105int i; 8106int 8107main (void) 8108{ 8109 8110 ; 8111 return 0; 8112} 8113_ACEOF 8114if ac_fn_c_try_link "$LINENO" 8115then : 8116 eval $cacheid=yes 8117else $as_nop 8118 eval $cacheid=no 8119fi 8120rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8121 conftest$ac_exeext conftest.$ac_ext 8122fi 8123 8124 8125 CFLAGS="$xorg_testset_save_CFLAGS" 8126 8127 eval supported=\$$cacheid 8128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8129printf "%s\n" "$supported" >&6; } 8130 if test "$supported" = "yes" ; then 8131 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8132 found="yes" 8133 fi 8134 fi 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150xorg_testset_save_CFLAGS="$CFLAGS" 8151 8152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8155printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8156if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8157then : 8158 printf %s "(cached) " >&6 8159else $as_nop 8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162int i; 8163_ACEOF 8164if ac_fn_c_try_compile "$LINENO" 8165then : 8166 xorg_cv_cc_flag_unknown_warning_option=yes 8167else $as_nop 8168 xorg_cv_cc_flag_unknown_warning_option=no 8169fi 8170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8171fi 8172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8173printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8174 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8175 CFLAGS="$xorg_testset_save_CFLAGS" 8176fi 8177 8178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8179 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8180 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8181 fi 8182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8184printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8185if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8186then : 8187 printf %s "(cached) " >&6 8188else $as_nop 8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8190/* end confdefs.h. */ 8191int i; 8192_ACEOF 8193if ac_fn_c_try_compile "$LINENO" 8194then : 8195 xorg_cv_cc_flag_unused_command_line_argument=yes 8196else $as_nop 8197 xorg_cv_cc_flag_unused_command_line_argument=no 8198fi 8199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8200fi 8201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8204 CFLAGS="$xorg_testset_save_CFLAGS" 8205fi 8206 8207found="no" 8208 8209 if test $found = "no" ; then 8210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8212 fi 8213 8214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8216 fi 8217 8218 CFLAGS="$CFLAGS -Werror=array-bounds" 8219 8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8221printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8222 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8223 if eval test \${$cacheid+y} 8224then : 8225 printf %s "(cached) " >&6 8226else $as_nop 8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8228/* end confdefs.h. */ 8229int i; 8230int 8231main (void) 8232{ 8233 8234 ; 8235 return 0; 8236} 8237_ACEOF 8238if ac_fn_c_try_link "$LINENO" 8239then : 8240 eval $cacheid=yes 8241else $as_nop 8242 eval $cacheid=no 8243fi 8244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8245 conftest$ac_exeext conftest.$ac_ext 8246fi 8247 8248 8249 CFLAGS="$xorg_testset_save_CFLAGS" 8250 8251 eval supported=\$$cacheid 8252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8253printf "%s\n" "$supported" >&6; } 8254 if test "$supported" = "yes" ; then 8255 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8256 found="yes" 8257 fi 8258 fi 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274xorg_testset_save_CFLAGS="$CFLAGS" 8275 8276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8279printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8280if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8281then : 8282 printf %s "(cached) " >&6 8283else $as_nop 8284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8285/* end confdefs.h. */ 8286int i; 8287_ACEOF 8288if ac_fn_c_try_compile "$LINENO" 8289then : 8290 xorg_cv_cc_flag_unknown_warning_option=yes 8291else $as_nop 8292 xorg_cv_cc_flag_unknown_warning_option=no 8293fi 8294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8295fi 8296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8297printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8299 CFLAGS="$xorg_testset_save_CFLAGS" 8300fi 8301 8302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8305 fi 8306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8308printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8309if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8310then : 8311 printf %s "(cached) " >&6 8312else $as_nop 8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315int i; 8316_ACEOF 8317if ac_fn_c_try_compile "$LINENO" 8318then : 8319 xorg_cv_cc_flag_unused_command_line_argument=yes 8320else $as_nop 8321 xorg_cv_cc_flag_unused_command_line_argument=no 8322fi 8323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8324fi 8325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8326printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8328 CFLAGS="$xorg_testset_save_CFLAGS" 8329fi 8330 8331found="no" 8332 8333 if test $found = "no" ; then 8334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8336 fi 8337 8338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8340 fi 8341 8342 CFLAGS="$CFLAGS -Werror=write-strings" 8343 8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8345printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8346 cacheid=xorg_cv_cc_flag__Werror_write_strings 8347 if eval test \${$cacheid+y} 8348then : 8349 printf %s "(cached) " >&6 8350else $as_nop 8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8352/* end confdefs.h. */ 8353int i; 8354int 8355main (void) 8356{ 8357 8358 ; 8359 return 0; 8360} 8361_ACEOF 8362if ac_fn_c_try_link "$LINENO" 8363then : 8364 eval $cacheid=yes 8365else $as_nop 8366 eval $cacheid=no 8367fi 8368rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8369 conftest$ac_exeext conftest.$ac_ext 8370fi 8371 8372 8373 CFLAGS="$xorg_testset_save_CFLAGS" 8374 8375 eval supported=\$$cacheid 8376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8377printf "%s\n" "$supported" >&6; } 8378 if test "$supported" = "yes" ; then 8379 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8380 found="yes" 8381 fi 8382 fi 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398xorg_testset_save_CFLAGS="$CFLAGS" 8399 8400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8404if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8405then : 8406 printf %s "(cached) " >&6 8407else $as_nop 8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409/* end confdefs.h. */ 8410int i; 8411_ACEOF 8412if ac_fn_c_try_compile "$LINENO" 8413then : 8414 xorg_cv_cc_flag_unknown_warning_option=yes 8415else $as_nop 8416 xorg_cv_cc_flag_unknown_warning_option=no 8417fi 8418rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8419fi 8420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8421printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8423 CFLAGS="$xorg_testset_save_CFLAGS" 8424fi 8425 8426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8429 fi 8430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8432printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8433if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8434then : 8435 printf %s "(cached) " >&6 8436else $as_nop 8437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438/* end confdefs.h. */ 8439int i; 8440_ACEOF 8441if ac_fn_c_try_compile "$LINENO" 8442then : 8443 xorg_cv_cc_flag_unused_command_line_argument=yes 8444else $as_nop 8445 xorg_cv_cc_flag_unused_command_line_argument=no 8446fi 8447rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8448fi 8449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8452 CFLAGS="$xorg_testset_save_CFLAGS" 8453fi 8454 8455found="no" 8456 8457 if test $found = "no" ; then 8458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8460 fi 8461 8462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8464 fi 8465 8466 CFLAGS="$CFLAGS -Werror=address" 8467 8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8469printf %s "checking if $CC supports -Werror=address... " >&6; } 8470 cacheid=xorg_cv_cc_flag__Werror_address 8471 if eval test \${$cacheid+y} 8472then : 8473 printf %s "(cached) " >&6 8474else $as_nop 8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476/* end confdefs.h. */ 8477int i; 8478int 8479main (void) 8480{ 8481 8482 ; 8483 return 0; 8484} 8485_ACEOF 8486if ac_fn_c_try_link "$LINENO" 8487then : 8488 eval $cacheid=yes 8489else $as_nop 8490 eval $cacheid=no 8491fi 8492rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8493 conftest$ac_exeext conftest.$ac_ext 8494fi 8495 8496 8497 CFLAGS="$xorg_testset_save_CFLAGS" 8498 8499 eval supported=\$$cacheid 8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8501printf "%s\n" "$supported" >&6; } 8502 if test "$supported" = "yes" ; then 8503 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8504 found="yes" 8505 fi 8506 fi 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522xorg_testset_save_CFLAGS="$CFLAGS" 8523 8524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8527printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8528if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8529then : 8530 printf %s "(cached) " >&6 8531else $as_nop 8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8533/* end confdefs.h. */ 8534int i; 8535_ACEOF 8536if ac_fn_c_try_compile "$LINENO" 8537then : 8538 xorg_cv_cc_flag_unknown_warning_option=yes 8539else $as_nop 8540 xorg_cv_cc_flag_unknown_warning_option=no 8541fi 8542rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8543fi 8544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8545printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8547 CFLAGS="$xorg_testset_save_CFLAGS" 8548fi 8549 8550if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8553 fi 8554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8556printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8557if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8558then : 8559 printf %s "(cached) " >&6 8560else $as_nop 8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8562/* end confdefs.h. */ 8563int i; 8564_ACEOF 8565if ac_fn_c_try_compile "$LINENO" 8566then : 8567 xorg_cv_cc_flag_unused_command_line_argument=yes 8568else $as_nop 8569 xorg_cv_cc_flag_unused_command_line_argument=no 8570fi 8571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8572fi 8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8576 CFLAGS="$xorg_testset_save_CFLAGS" 8577fi 8578 8579found="no" 8580 8581 if test $found = "no" ; then 8582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8584 fi 8585 8586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8588 fi 8589 8590 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8591 8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8593printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8594 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8595 if eval test \${$cacheid+y} 8596then : 8597 printf %s "(cached) " >&6 8598else $as_nop 8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8600/* end confdefs.h. */ 8601int i; 8602int 8603main (void) 8604{ 8605 8606 ; 8607 return 0; 8608} 8609_ACEOF 8610if ac_fn_c_try_link "$LINENO" 8611then : 8612 eval $cacheid=yes 8613else $as_nop 8614 eval $cacheid=no 8615fi 8616rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8617 conftest$ac_exeext conftest.$ac_ext 8618fi 8619 8620 8621 CFLAGS="$xorg_testset_save_CFLAGS" 8622 8623 eval supported=\$$cacheid 8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8625printf "%s\n" "$supported" >&6; } 8626 if test "$supported" = "yes" ; then 8627 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8628 found="yes" 8629 fi 8630 fi 8631 8632 if test $found = "no" ; then 8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8635 fi 8636 8637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8639 fi 8640 8641 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8642 8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8644printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8645 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8646 if eval test \${$cacheid+y} 8647then : 8648 printf %s "(cached) " >&6 8649else $as_nop 8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8651/* end confdefs.h. */ 8652int i; 8653int 8654main (void) 8655{ 8656 8657 ; 8658 return 0; 8659} 8660_ACEOF 8661if ac_fn_c_try_link "$LINENO" 8662then : 8663 eval $cacheid=yes 8664else $as_nop 8665 eval $cacheid=no 8666fi 8667rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8668 conftest$ac_exeext conftest.$ac_ext 8669fi 8670 8671 8672 CFLAGS="$xorg_testset_save_CFLAGS" 8673 8674 eval supported=\$$cacheid 8675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8676printf "%s\n" "$supported" >&6; } 8677 if test "$supported" = "yes" ; then 8678 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8679 found="yes" 8680 fi 8681 fi 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697xorg_testset_save_CFLAGS="$CFLAGS" 8698 8699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8702printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8703if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8704then : 8705 printf %s "(cached) " >&6 8706else $as_nop 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708/* end confdefs.h. */ 8709int i; 8710_ACEOF 8711if ac_fn_c_try_compile "$LINENO" 8712then : 8713 xorg_cv_cc_flag_unknown_warning_option=yes 8714else $as_nop 8715 xorg_cv_cc_flag_unknown_warning_option=no 8716fi 8717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8718fi 8719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8720printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8722 CFLAGS="$xorg_testset_save_CFLAGS" 8723fi 8724 8725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8728 fi 8729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8731printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8732if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8733then : 8734 printf %s "(cached) " >&6 8735else $as_nop 8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737/* end confdefs.h. */ 8738int i; 8739_ACEOF 8740if ac_fn_c_try_compile "$LINENO" 8741then : 8742 xorg_cv_cc_flag_unused_command_line_argument=yes 8743else $as_nop 8744 xorg_cv_cc_flag_unused_command_line_argument=no 8745fi 8746rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8747fi 8748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8749printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8751 CFLAGS="$xorg_testset_save_CFLAGS" 8752fi 8753 8754found="no" 8755 8756 if test $found = "no" ; then 8757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8759 fi 8760 8761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8763 fi 8764 8765 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8766 8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8768printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8769 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8770 if eval test \${$cacheid+y} 8771then : 8772 printf %s "(cached) " >&6 8773else $as_nop 8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8775/* end confdefs.h. */ 8776int i; 8777int 8778main (void) 8779{ 8780 8781 ; 8782 return 0; 8783} 8784_ACEOF 8785if ac_fn_c_try_link "$LINENO" 8786then : 8787 eval $cacheid=yes 8788else $as_nop 8789 eval $cacheid=no 8790fi 8791rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8792 conftest$ac_exeext conftest.$ac_ext 8793fi 8794 8795 8796 CFLAGS="$xorg_testset_save_CFLAGS" 8797 8798 eval supported=\$$cacheid 8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8800printf "%s\n" "$supported" >&6; } 8801 if test "$supported" = "yes" ; then 8802 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8803 found="yes" 8804 fi 8805 fi 8806 8807 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8808else 8809{ 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 8810printf "%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;} 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824xorg_testset_save_CFLAGS="$CFLAGS" 8825 8826if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8829printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8830if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8831then : 8832 printf %s "(cached) " >&6 8833else $as_nop 8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8835/* end confdefs.h. */ 8836int i; 8837_ACEOF 8838if ac_fn_c_try_compile "$LINENO" 8839then : 8840 xorg_cv_cc_flag_unknown_warning_option=yes 8841else $as_nop 8842 xorg_cv_cc_flag_unknown_warning_option=no 8843fi 8844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8845fi 8846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8847printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8848 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8849 CFLAGS="$xorg_testset_save_CFLAGS" 8850fi 8851 8852if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8855 fi 8856 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8858printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8859if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8860then : 8861 printf %s "(cached) " >&6 8862else $as_nop 8863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8864/* end confdefs.h. */ 8865int i; 8866_ACEOF 8867if ac_fn_c_try_compile "$LINENO" 8868then : 8869 xorg_cv_cc_flag_unused_command_line_argument=yes 8870else $as_nop 8871 xorg_cv_cc_flag_unused_command_line_argument=no 8872fi 8873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8874fi 8875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8876printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8878 CFLAGS="$xorg_testset_save_CFLAGS" 8879fi 8880 8881found="no" 8882 8883 if test $found = "no" ; then 8884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8886 fi 8887 8888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8890 fi 8891 8892 CFLAGS="$CFLAGS -Wimplicit" 8893 8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8895printf %s "checking if $CC supports -Wimplicit... " >&6; } 8896 cacheid=xorg_cv_cc_flag__Wimplicit 8897 if eval test \${$cacheid+y} 8898then : 8899 printf %s "(cached) " >&6 8900else $as_nop 8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8902/* end confdefs.h. */ 8903int i; 8904int 8905main (void) 8906{ 8907 8908 ; 8909 return 0; 8910} 8911_ACEOF 8912if ac_fn_c_try_link "$LINENO" 8913then : 8914 eval $cacheid=yes 8915else $as_nop 8916 eval $cacheid=no 8917fi 8918rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8919 conftest$ac_exeext conftest.$ac_ext 8920fi 8921 8922 8923 CFLAGS="$xorg_testset_save_CFLAGS" 8924 8925 eval supported=\$$cacheid 8926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8927printf "%s\n" "$supported" >&6; } 8928 if test "$supported" = "yes" ; then 8929 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8930 found="yes" 8931 fi 8932 fi 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948xorg_testset_save_CFLAGS="$CFLAGS" 8949 8950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8953printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8954if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8955then : 8956 printf %s "(cached) " >&6 8957else $as_nop 8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959/* end confdefs.h. */ 8960int i; 8961_ACEOF 8962if ac_fn_c_try_compile "$LINENO" 8963then : 8964 xorg_cv_cc_flag_unknown_warning_option=yes 8965else $as_nop 8966 xorg_cv_cc_flag_unknown_warning_option=no 8967fi 8968rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8969fi 8970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8971printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8972 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8973 CFLAGS="$xorg_testset_save_CFLAGS" 8974fi 8975 8976if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8979 fi 8980 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8982printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8983if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8984then : 8985 printf %s "(cached) " >&6 8986else $as_nop 8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8988/* end confdefs.h. */ 8989int i; 8990_ACEOF 8991if ac_fn_c_try_compile "$LINENO" 8992then : 8993 xorg_cv_cc_flag_unused_command_line_argument=yes 8994else $as_nop 8995 xorg_cv_cc_flag_unused_command_line_argument=no 8996fi 8997rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8998fi 8999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9001 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9002 CFLAGS="$xorg_testset_save_CFLAGS" 9003fi 9004 9005found="no" 9006 9007 if test $found = "no" ; then 9008 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9010 fi 9011 9012 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9014 fi 9015 9016 CFLAGS="$CFLAGS -Wnonnull" 9017 9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9019printf %s "checking if $CC supports -Wnonnull... " >&6; } 9020 cacheid=xorg_cv_cc_flag__Wnonnull 9021 if eval test \${$cacheid+y} 9022then : 9023 printf %s "(cached) " >&6 9024else $as_nop 9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9026/* end confdefs.h. */ 9027int i; 9028int 9029main (void) 9030{ 9031 9032 ; 9033 return 0; 9034} 9035_ACEOF 9036if ac_fn_c_try_link "$LINENO" 9037then : 9038 eval $cacheid=yes 9039else $as_nop 9040 eval $cacheid=no 9041fi 9042rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9043 conftest$ac_exeext conftest.$ac_ext 9044fi 9045 9046 9047 CFLAGS="$xorg_testset_save_CFLAGS" 9048 9049 eval supported=\$$cacheid 9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9051printf "%s\n" "$supported" >&6; } 9052 if test "$supported" = "yes" ; then 9053 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9054 found="yes" 9055 fi 9056 fi 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072xorg_testset_save_CFLAGS="$CFLAGS" 9073 9074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9078if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9079then : 9080 printf %s "(cached) " >&6 9081else $as_nop 9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9083/* end confdefs.h. */ 9084int i; 9085_ACEOF 9086if ac_fn_c_try_compile "$LINENO" 9087then : 9088 xorg_cv_cc_flag_unknown_warning_option=yes 9089else $as_nop 9090 xorg_cv_cc_flag_unknown_warning_option=no 9091fi 9092rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9093fi 9094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9095printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9097 CFLAGS="$xorg_testset_save_CFLAGS" 9098fi 9099 9100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9103 fi 9104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9106printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9107if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9108then : 9109 printf %s "(cached) " >&6 9110else $as_nop 9111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9112/* end confdefs.h. */ 9113int i; 9114_ACEOF 9115if ac_fn_c_try_compile "$LINENO" 9116then : 9117 xorg_cv_cc_flag_unused_command_line_argument=yes 9118else $as_nop 9119 xorg_cv_cc_flag_unused_command_line_argument=no 9120fi 9121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9122fi 9123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9124printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9126 CFLAGS="$xorg_testset_save_CFLAGS" 9127fi 9128 9129found="no" 9130 9131 if test $found = "no" ; then 9132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9133 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9134 fi 9135 9136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9138 fi 9139 9140 CFLAGS="$CFLAGS -Winit-self" 9141 9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9143printf %s "checking if $CC supports -Winit-self... " >&6; } 9144 cacheid=xorg_cv_cc_flag__Winit_self 9145 if eval test \${$cacheid+y} 9146then : 9147 printf %s "(cached) " >&6 9148else $as_nop 9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9150/* end confdefs.h. */ 9151int i; 9152int 9153main (void) 9154{ 9155 9156 ; 9157 return 0; 9158} 9159_ACEOF 9160if ac_fn_c_try_link "$LINENO" 9161then : 9162 eval $cacheid=yes 9163else $as_nop 9164 eval $cacheid=no 9165fi 9166rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9167 conftest$ac_exeext conftest.$ac_ext 9168fi 9169 9170 9171 CFLAGS="$xorg_testset_save_CFLAGS" 9172 9173 eval supported=\$$cacheid 9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9175printf "%s\n" "$supported" >&6; } 9176 if test "$supported" = "yes" ; then 9177 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9178 found="yes" 9179 fi 9180 fi 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196xorg_testset_save_CFLAGS="$CFLAGS" 9197 9198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9202if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9203then : 9204 printf %s "(cached) " >&6 9205else $as_nop 9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9207/* end confdefs.h. */ 9208int i; 9209_ACEOF 9210if ac_fn_c_try_compile "$LINENO" 9211then : 9212 xorg_cv_cc_flag_unknown_warning_option=yes 9213else $as_nop 9214 xorg_cv_cc_flag_unknown_warning_option=no 9215fi 9216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9217fi 9218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9221 CFLAGS="$xorg_testset_save_CFLAGS" 9222fi 9223 9224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9227 fi 9228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9231if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9232then : 9233 printf %s "(cached) " >&6 9234else $as_nop 9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236/* end confdefs.h. */ 9237int i; 9238_ACEOF 9239if ac_fn_c_try_compile "$LINENO" 9240then : 9241 xorg_cv_cc_flag_unused_command_line_argument=yes 9242else $as_nop 9243 xorg_cv_cc_flag_unused_command_line_argument=no 9244fi 9245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9246fi 9247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9250 CFLAGS="$xorg_testset_save_CFLAGS" 9251fi 9252 9253found="no" 9254 9255 if test $found = "no" ; then 9256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9258 fi 9259 9260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9262 fi 9263 9264 CFLAGS="$CFLAGS -Wmain" 9265 9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9267printf %s "checking if $CC supports -Wmain... " >&6; } 9268 cacheid=xorg_cv_cc_flag__Wmain 9269 if eval test \${$cacheid+y} 9270then : 9271 printf %s "(cached) " >&6 9272else $as_nop 9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274/* end confdefs.h. */ 9275int i; 9276int 9277main (void) 9278{ 9279 9280 ; 9281 return 0; 9282} 9283_ACEOF 9284if ac_fn_c_try_link "$LINENO" 9285then : 9286 eval $cacheid=yes 9287else $as_nop 9288 eval $cacheid=no 9289fi 9290rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9291 conftest$ac_exeext conftest.$ac_ext 9292fi 9293 9294 9295 CFLAGS="$xorg_testset_save_CFLAGS" 9296 9297 eval supported=\$$cacheid 9298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9299printf "%s\n" "$supported" >&6; } 9300 if test "$supported" = "yes" ; then 9301 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9302 found="yes" 9303 fi 9304 fi 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320xorg_testset_save_CFLAGS="$CFLAGS" 9321 9322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9326if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9327then : 9328 printf %s "(cached) " >&6 9329else $as_nop 9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9331/* end confdefs.h. */ 9332int i; 9333_ACEOF 9334if ac_fn_c_try_compile "$LINENO" 9335then : 9336 xorg_cv_cc_flag_unknown_warning_option=yes 9337else $as_nop 9338 xorg_cv_cc_flag_unknown_warning_option=no 9339fi 9340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9341fi 9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9345 CFLAGS="$xorg_testset_save_CFLAGS" 9346fi 9347 9348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9351 fi 9352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9356then : 9357 printf %s "(cached) " >&6 9358else $as_nop 9359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9360/* end confdefs.h. */ 9361int i; 9362_ACEOF 9363if ac_fn_c_try_compile "$LINENO" 9364then : 9365 xorg_cv_cc_flag_unused_command_line_argument=yes 9366else $as_nop 9367 xorg_cv_cc_flag_unused_command_line_argument=no 9368fi 9369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9370fi 9371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9374 CFLAGS="$xorg_testset_save_CFLAGS" 9375fi 9376 9377found="no" 9378 9379 if test $found = "no" ; then 9380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9382 fi 9383 9384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9386 fi 9387 9388 CFLAGS="$CFLAGS -Wmissing-braces" 9389 9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9391printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9392 cacheid=xorg_cv_cc_flag__Wmissing_braces 9393 if eval test \${$cacheid+y} 9394then : 9395 printf %s "(cached) " >&6 9396else $as_nop 9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9398/* end confdefs.h. */ 9399int i; 9400int 9401main (void) 9402{ 9403 9404 ; 9405 return 0; 9406} 9407_ACEOF 9408if ac_fn_c_try_link "$LINENO" 9409then : 9410 eval $cacheid=yes 9411else $as_nop 9412 eval $cacheid=no 9413fi 9414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9415 conftest$ac_exeext conftest.$ac_ext 9416fi 9417 9418 9419 CFLAGS="$xorg_testset_save_CFLAGS" 9420 9421 eval supported=\$$cacheid 9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9423printf "%s\n" "$supported" >&6; } 9424 if test "$supported" = "yes" ; then 9425 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9426 found="yes" 9427 fi 9428 fi 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444xorg_testset_save_CFLAGS="$CFLAGS" 9445 9446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9450if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9451then : 9452 printf %s "(cached) " >&6 9453else $as_nop 9454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9455/* end confdefs.h. */ 9456int i; 9457_ACEOF 9458if ac_fn_c_try_compile "$LINENO" 9459then : 9460 xorg_cv_cc_flag_unknown_warning_option=yes 9461else $as_nop 9462 xorg_cv_cc_flag_unknown_warning_option=no 9463fi 9464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9465fi 9466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9469 CFLAGS="$xorg_testset_save_CFLAGS" 9470fi 9471 9472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9475 fi 9476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9479if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9480then : 9481 printf %s "(cached) " >&6 9482else $as_nop 9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9484/* end confdefs.h. */ 9485int i; 9486_ACEOF 9487if ac_fn_c_try_compile "$LINENO" 9488then : 9489 xorg_cv_cc_flag_unused_command_line_argument=yes 9490else $as_nop 9491 xorg_cv_cc_flag_unused_command_line_argument=no 9492fi 9493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9494fi 9495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9498 CFLAGS="$xorg_testset_save_CFLAGS" 9499fi 9500 9501found="no" 9502 9503 if test $found = "no" ; then 9504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9506 fi 9507 9508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9510 fi 9511 9512 CFLAGS="$CFLAGS -Wsequence-point" 9513 9514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9515printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9516 cacheid=xorg_cv_cc_flag__Wsequence_point 9517 if eval test \${$cacheid+y} 9518then : 9519 printf %s "(cached) " >&6 9520else $as_nop 9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9522/* end confdefs.h. */ 9523int i; 9524int 9525main (void) 9526{ 9527 9528 ; 9529 return 0; 9530} 9531_ACEOF 9532if ac_fn_c_try_link "$LINENO" 9533then : 9534 eval $cacheid=yes 9535else $as_nop 9536 eval $cacheid=no 9537fi 9538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9539 conftest$ac_exeext conftest.$ac_ext 9540fi 9541 9542 9543 CFLAGS="$xorg_testset_save_CFLAGS" 9544 9545 eval supported=\$$cacheid 9546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9547printf "%s\n" "$supported" >&6; } 9548 if test "$supported" = "yes" ; then 9549 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9550 found="yes" 9551 fi 9552 fi 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568xorg_testset_save_CFLAGS="$CFLAGS" 9569 9570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9573printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9574if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9575then : 9576 printf %s "(cached) " >&6 9577else $as_nop 9578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9579/* end confdefs.h. */ 9580int i; 9581_ACEOF 9582if ac_fn_c_try_compile "$LINENO" 9583then : 9584 xorg_cv_cc_flag_unknown_warning_option=yes 9585else $as_nop 9586 xorg_cv_cc_flag_unknown_warning_option=no 9587fi 9588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9589fi 9590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9593 CFLAGS="$xorg_testset_save_CFLAGS" 9594fi 9595 9596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9599 fi 9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9604then : 9605 printf %s "(cached) " >&6 9606else $as_nop 9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9608/* end confdefs.h. */ 9609int i; 9610_ACEOF 9611if ac_fn_c_try_compile "$LINENO" 9612then : 9613 xorg_cv_cc_flag_unused_command_line_argument=yes 9614else $as_nop 9615 xorg_cv_cc_flag_unused_command_line_argument=no 9616fi 9617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9618fi 9619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9622 CFLAGS="$xorg_testset_save_CFLAGS" 9623fi 9624 9625found="no" 9626 9627 if test $found = "no" ; then 9628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9630 fi 9631 9632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9634 fi 9635 9636 CFLAGS="$CFLAGS -Wreturn-type" 9637 9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9639printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9640 cacheid=xorg_cv_cc_flag__Wreturn_type 9641 if eval test \${$cacheid+y} 9642then : 9643 printf %s "(cached) " >&6 9644else $as_nop 9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9646/* end confdefs.h. */ 9647int i; 9648int 9649main (void) 9650{ 9651 9652 ; 9653 return 0; 9654} 9655_ACEOF 9656if ac_fn_c_try_link "$LINENO" 9657then : 9658 eval $cacheid=yes 9659else $as_nop 9660 eval $cacheid=no 9661fi 9662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9663 conftest$ac_exeext conftest.$ac_ext 9664fi 9665 9666 9667 CFLAGS="$xorg_testset_save_CFLAGS" 9668 9669 eval supported=\$$cacheid 9670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9671printf "%s\n" "$supported" >&6; } 9672 if test "$supported" = "yes" ; then 9673 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9674 found="yes" 9675 fi 9676 fi 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692xorg_testset_save_CFLAGS="$CFLAGS" 9693 9694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9698if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9699then : 9700 printf %s "(cached) " >&6 9701else $as_nop 9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703/* end confdefs.h. */ 9704int i; 9705_ACEOF 9706if ac_fn_c_try_compile "$LINENO" 9707then : 9708 xorg_cv_cc_flag_unknown_warning_option=yes 9709else $as_nop 9710 xorg_cv_cc_flag_unknown_warning_option=no 9711fi 9712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9713fi 9714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9717 CFLAGS="$xorg_testset_save_CFLAGS" 9718fi 9719 9720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9723 fi 9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9727if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9728then : 9729 printf %s "(cached) " >&6 9730else $as_nop 9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732/* end confdefs.h. */ 9733int i; 9734_ACEOF 9735if ac_fn_c_try_compile "$LINENO" 9736then : 9737 xorg_cv_cc_flag_unused_command_line_argument=yes 9738else $as_nop 9739 xorg_cv_cc_flag_unused_command_line_argument=no 9740fi 9741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9742fi 9743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9744printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9746 CFLAGS="$xorg_testset_save_CFLAGS" 9747fi 9748 9749found="no" 9750 9751 if test $found = "no" ; then 9752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9754 fi 9755 9756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9758 fi 9759 9760 CFLAGS="$CFLAGS -Wtrigraphs" 9761 9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9763printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9764 cacheid=xorg_cv_cc_flag__Wtrigraphs 9765 if eval test \${$cacheid+y} 9766then : 9767 printf %s "(cached) " >&6 9768else $as_nop 9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9770/* end confdefs.h. */ 9771int i; 9772int 9773main (void) 9774{ 9775 9776 ; 9777 return 0; 9778} 9779_ACEOF 9780if ac_fn_c_try_link "$LINENO" 9781then : 9782 eval $cacheid=yes 9783else $as_nop 9784 eval $cacheid=no 9785fi 9786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9787 conftest$ac_exeext conftest.$ac_ext 9788fi 9789 9790 9791 CFLAGS="$xorg_testset_save_CFLAGS" 9792 9793 eval supported=\$$cacheid 9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9795printf "%s\n" "$supported" >&6; } 9796 if test "$supported" = "yes" ; then 9797 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9798 found="yes" 9799 fi 9800 fi 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816xorg_testset_save_CFLAGS="$CFLAGS" 9817 9818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9821printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9822if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9823then : 9824 printf %s "(cached) " >&6 9825else $as_nop 9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827/* end confdefs.h. */ 9828int i; 9829_ACEOF 9830if ac_fn_c_try_compile "$LINENO" 9831then : 9832 xorg_cv_cc_flag_unknown_warning_option=yes 9833else $as_nop 9834 xorg_cv_cc_flag_unknown_warning_option=no 9835fi 9836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9837fi 9838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9841 CFLAGS="$xorg_testset_save_CFLAGS" 9842fi 9843 9844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9847 fi 9848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9851if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9852then : 9853 printf %s "(cached) " >&6 9854else $as_nop 9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9856/* end confdefs.h. */ 9857int i; 9858_ACEOF 9859if ac_fn_c_try_compile "$LINENO" 9860then : 9861 xorg_cv_cc_flag_unused_command_line_argument=yes 9862else $as_nop 9863 xorg_cv_cc_flag_unused_command_line_argument=no 9864fi 9865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9866fi 9867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9870 CFLAGS="$xorg_testset_save_CFLAGS" 9871fi 9872 9873found="no" 9874 9875 if test $found = "no" ; then 9876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9878 fi 9879 9880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9882 fi 9883 9884 CFLAGS="$CFLAGS -Warray-bounds" 9885 9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9887printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9888 cacheid=xorg_cv_cc_flag__Warray_bounds 9889 if eval test \${$cacheid+y} 9890then : 9891 printf %s "(cached) " >&6 9892else $as_nop 9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894/* end confdefs.h. */ 9895int i; 9896int 9897main (void) 9898{ 9899 9900 ; 9901 return 0; 9902} 9903_ACEOF 9904if ac_fn_c_try_link "$LINENO" 9905then : 9906 eval $cacheid=yes 9907else $as_nop 9908 eval $cacheid=no 9909fi 9910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9911 conftest$ac_exeext conftest.$ac_ext 9912fi 9913 9914 9915 CFLAGS="$xorg_testset_save_CFLAGS" 9916 9917 eval supported=\$$cacheid 9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9919printf "%s\n" "$supported" >&6; } 9920 if test "$supported" = "yes" ; then 9921 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9922 found="yes" 9923 fi 9924 fi 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940xorg_testset_save_CFLAGS="$CFLAGS" 9941 9942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9946if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9947then : 9948 printf %s "(cached) " >&6 9949else $as_nop 9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9951/* end confdefs.h. */ 9952int i; 9953_ACEOF 9954if ac_fn_c_try_compile "$LINENO" 9955then : 9956 xorg_cv_cc_flag_unknown_warning_option=yes 9957else $as_nop 9958 xorg_cv_cc_flag_unknown_warning_option=no 9959fi 9960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9961fi 9962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9965 CFLAGS="$xorg_testset_save_CFLAGS" 9966fi 9967 9968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9971 fi 9972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9975if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9976then : 9977 printf %s "(cached) " >&6 9978else $as_nop 9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9980/* end confdefs.h. */ 9981int i; 9982_ACEOF 9983if ac_fn_c_try_compile "$LINENO" 9984then : 9985 xorg_cv_cc_flag_unused_command_line_argument=yes 9986else $as_nop 9987 xorg_cv_cc_flag_unused_command_line_argument=no 9988fi 9989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9990fi 9991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9994 CFLAGS="$xorg_testset_save_CFLAGS" 9995fi 9996 9997found="no" 9998 9999 if test $found = "no" ; then 10000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10002 fi 10003 10004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10006 fi 10007 10008 CFLAGS="$CFLAGS -Wwrite-strings" 10009 10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10011printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10012 cacheid=xorg_cv_cc_flag__Wwrite_strings 10013 if eval test \${$cacheid+y} 10014then : 10015 printf %s "(cached) " >&6 10016else $as_nop 10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10018/* end confdefs.h. */ 10019int i; 10020int 10021main (void) 10022{ 10023 10024 ; 10025 return 0; 10026} 10027_ACEOF 10028if ac_fn_c_try_link "$LINENO" 10029then : 10030 eval $cacheid=yes 10031else $as_nop 10032 eval $cacheid=no 10033fi 10034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10035 conftest$ac_exeext conftest.$ac_ext 10036fi 10037 10038 10039 CFLAGS="$xorg_testset_save_CFLAGS" 10040 10041 eval supported=\$$cacheid 10042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10043printf "%s\n" "$supported" >&6; } 10044 if test "$supported" = "yes" ; then 10045 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10046 found="yes" 10047 fi 10048 fi 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064xorg_testset_save_CFLAGS="$CFLAGS" 10065 10066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10069printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10070if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10071then : 10072 printf %s "(cached) " >&6 10073else $as_nop 10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075/* end confdefs.h. */ 10076int i; 10077_ACEOF 10078if ac_fn_c_try_compile "$LINENO" 10079then : 10080 xorg_cv_cc_flag_unknown_warning_option=yes 10081else $as_nop 10082 xorg_cv_cc_flag_unknown_warning_option=no 10083fi 10084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10085fi 10086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10087printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10089 CFLAGS="$xorg_testset_save_CFLAGS" 10090fi 10091 10092if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10095 fi 10096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10098printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10099if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10100then : 10101 printf %s "(cached) " >&6 10102else $as_nop 10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10104/* end confdefs.h. */ 10105int i; 10106_ACEOF 10107if ac_fn_c_try_compile "$LINENO" 10108then : 10109 xorg_cv_cc_flag_unused_command_line_argument=yes 10110else $as_nop 10111 xorg_cv_cc_flag_unused_command_line_argument=no 10112fi 10113rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10114fi 10115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10116printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10117 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10118 CFLAGS="$xorg_testset_save_CFLAGS" 10119fi 10120 10121found="no" 10122 10123 if test $found = "no" ; then 10124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10126 fi 10127 10128 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10130 fi 10131 10132 CFLAGS="$CFLAGS -Waddress" 10133 10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10135printf %s "checking if $CC supports -Waddress... " >&6; } 10136 cacheid=xorg_cv_cc_flag__Waddress 10137 if eval test \${$cacheid+y} 10138then : 10139 printf %s "(cached) " >&6 10140else $as_nop 10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10142/* end confdefs.h. */ 10143int i; 10144int 10145main (void) 10146{ 10147 10148 ; 10149 return 0; 10150} 10151_ACEOF 10152if ac_fn_c_try_link "$LINENO" 10153then : 10154 eval $cacheid=yes 10155else $as_nop 10156 eval $cacheid=no 10157fi 10158rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10159 conftest$ac_exeext conftest.$ac_ext 10160fi 10161 10162 10163 CFLAGS="$xorg_testset_save_CFLAGS" 10164 10165 eval supported=\$$cacheid 10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10167printf "%s\n" "$supported" >&6; } 10168 if test "$supported" = "yes" ; then 10169 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10170 found="yes" 10171 fi 10172 fi 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188xorg_testset_save_CFLAGS="$CFLAGS" 10189 10190if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10193printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10194if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10195then : 10196 printf %s "(cached) " >&6 10197else $as_nop 10198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10199/* end confdefs.h. */ 10200int i; 10201_ACEOF 10202if ac_fn_c_try_compile "$LINENO" 10203then : 10204 xorg_cv_cc_flag_unknown_warning_option=yes 10205else $as_nop 10206 xorg_cv_cc_flag_unknown_warning_option=no 10207fi 10208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10209fi 10210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10211printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10213 CFLAGS="$xorg_testset_save_CFLAGS" 10214fi 10215 10216if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10219 fi 10220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10222printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10223if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10224then : 10225 printf %s "(cached) " >&6 10226else $as_nop 10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10228/* end confdefs.h. */ 10229int i; 10230_ACEOF 10231if ac_fn_c_try_compile "$LINENO" 10232then : 10233 xorg_cv_cc_flag_unused_command_line_argument=yes 10234else $as_nop 10235 xorg_cv_cc_flag_unused_command_line_argument=no 10236fi 10237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10238fi 10239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10240printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10242 CFLAGS="$xorg_testset_save_CFLAGS" 10243fi 10244 10245found="no" 10246 10247 if test $found = "no" ; then 10248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10250 fi 10251 10252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10254 fi 10255 10256 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10257 10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10259printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10260 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10261 if eval test \${$cacheid+y} 10262then : 10263 printf %s "(cached) " >&6 10264else $as_nop 10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10266/* end confdefs.h. */ 10267int i; 10268int 10269main (void) 10270{ 10271 10272 ; 10273 return 0; 10274} 10275_ACEOF 10276if ac_fn_c_try_link "$LINENO" 10277then : 10278 eval $cacheid=yes 10279else $as_nop 10280 eval $cacheid=no 10281fi 10282rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10283 conftest$ac_exeext conftest.$ac_ext 10284fi 10285 10286 10287 CFLAGS="$xorg_testset_save_CFLAGS" 10288 10289 eval supported=\$$cacheid 10290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10291printf "%s\n" "$supported" >&6; } 10292 if test "$supported" = "yes" ; then 10293 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10294 found="yes" 10295 fi 10296 fi 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312xorg_testset_save_CFLAGS="$CFLAGS" 10313 10314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10317printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10318if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10319then : 10320 printf %s "(cached) " >&6 10321else $as_nop 10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10323/* end confdefs.h. */ 10324int i; 10325_ACEOF 10326if ac_fn_c_try_compile "$LINENO" 10327then : 10328 xorg_cv_cc_flag_unknown_warning_option=yes 10329else $as_nop 10330 xorg_cv_cc_flag_unknown_warning_option=no 10331fi 10332rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10333fi 10334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10335printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10337 CFLAGS="$xorg_testset_save_CFLAGS" 10338fi 10339 10340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10343 fi 10344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10346printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10347if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10348then : 10349 printf %s "(cached) " >&6 10350else $as_nop 10351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10352/* end confdefs.h. */ 10353int i; 10354_ACEOF 10355if ac_fn_c_try_compile "$LINENO" 10356then : 10357 xorg_cv_cc_flag_unused_command_line_argument=yes 10358else $as_nop 10359 xorg_cv_cc_flag_unused_command_line_argument=no 10360fi 10361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10362fi 10363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10364printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10366 CFLAGS="$xorg_testset_save_CFLAGS" 10367fi 10368 10369found="no" 10370 10371 if test $found = "no" ; then 10372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10374 fi 10375 10376 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10378 fi 10379 10380 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10381 10382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10383printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10384 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10385 if eval test \${$cacheid+y} 10386then : 10387 printf %s "(cached) " >&6 10388else $as_nop 10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390/* end confdefs.h. */ 10391int i; 10392int 10393main (void) 10394{ 10395 10396 ; 10397 return 0; 10398} 10399_ACEOF 10400if ac_fn_c_try_link "$LINENO" 10401then : 10402 eval $cacheid=yes 10403else $as_nop 10404 eval $cacheid=no 10405fi 10406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10407 conftest$ac_exeext conftest.$ac_ext 10408fi 10409 10410 10411 CFLAGS="$xorg_testset_save_CFLAGS" 10412 10413 eval supported=\$$cacheid 10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10415printf "%s\n" "$supported" >&6; } 10416 if test "$supported" = "yes" ; then 10417 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10418 found="yes" 10419 fi 10420 fi 10421 10422 10423fi 10424 10425 10426 10427 10428 10429 10430 10431 CWARNFLAGS="$BASE_CFLAGS" 10432 if test "x$GCC" = xyes ; then 10433 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10434 fi 10435 10436 10437 10438 10439 10440 10441 10442 10443# Check whether --enable-strict-compilation was given. 10444if test ${enable_strict_compilation+y} 10445then : 10446 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10447else $as_nop 10448 STRICT_COMPILE=no 10449fi 10450 10451 10452 10453 10454 10455 10456STRICT_CFLAGS="" 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470xorg_testset_save_CFLAGS="$CFLAGS" 10471 10472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10475printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10476if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10477then : 10478 printf %s "(cached) " >&6 10479else $as_nop 10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10481/* end confdefs.h. */ 10482int i; 10483_ACEOF 10484if ac_fn_c_try_compile "$LINENO" 10485then : 10486 xorg_cv_cc_flag_unknown_warning_option=yes 10487else $as_nop 10488 xorg_cv_cc_flag_unknown_warning_option=no 10489fi 10490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10491fi 10492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10493printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10494 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10495 CFLAGS="$xorg_testset_save_CFLAGS" 10496fi 10497 10498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10501 fi 10502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10504printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10505if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10506then : 10507 printf %s "(cached) " >&6 10508else $as_nop 10509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10510/* end confdefs.h. */ 10511int i; 10512_ACEOF 10513if ac_fn_c_try_compile "$LINENO" 10514then : 10515 xorg_cv_cc_flag_unused_command_line_argument=yes 10516else $as_nop 10517 xorg_cv_cc_flag_unused_command_line_argument=no 10518fi 10519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10520fi 10521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10522printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10523 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10524 CFLAGS="$xorg_testset_save_CFLAGS" 10525fi 10526 10527found="no" 10528 10529 if test $found = "no" ; then 10530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10532 fi 10533 10534 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10536 fi 10537 10538 CFLAGS="$CFLAGS -pedantic" 10539 10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10541printf %s "checking if $CC supports -pedantic... " >&6; } 10542 cacheid=xorg_cv_cc_flag__pedantic 10543 if eval test \${$cacheid+y} 10544then : 10545 printf %s "(cached) " >&6 10546else $as_nop 10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10548/* end confdefs.h. */ 10549int i; 10550int 10551main (void) 10552{ 10553 10554 ; 10555 return 0; 10556} 10557_ACEOF 10558if ac_fn_c_try_link "$LINENO" 10559then : 10560 eval $cacheid=yes 10561else $as_nop 10562 eval $cacheid=no 10563fi 10564rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10565 conftest$ac_exeext conftest.$ac_ext 10566fi 10567 10568 10569 CFLAGS="$xorg_testset_save_CFLAGS" 10570 10571 eval supported=\$$cacheid 10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10573printf "%s\n" "$supported" >&6; } 10574 if test "$supported" = "yes" ; then 10575 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10576 found="yes" 10577 fi 10578 fi 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594xorg_testset_save_CFLAGS="$CFLAGS" 10595 10596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10599printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10600if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10601then : 10602 printf %s "(cached) " >&6 10603else $as_nop 10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10605/* end confdefs.h. */ 10606int i; 10607_ACEOF 10608if ac_fn_c_try_compile "$LINENO" 10609then : 10610 xorg_cv_cc_flag_unknown_warning_option=yes 10611else $as_nop 10612 xorg_cv_cc_flag_unknown_warning_option=no 10613fi 10614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10615fi 10616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10617printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10619 CFLAGS="$xorg_testset_save_CFLAGS" 10620fi 10621 10622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10625 fi 10626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10628printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10629if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10630then : 10631 printf %s "(cached) " >&6 10632else $as_nop 10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10634/* end confdefs.h. */ 10635int i; 10636_ACEOF 10637if ac_fn_c_try_compile "$LINENO" 10638then : 10639 xorg_cv_cc_flag_unused_command_line_argument=yes 10640else $as_nop 10641 xorg_cv_cc_flag_unused_command_line_argument=no 10642fi 10643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10644fi 10645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10648 CFLAGS="$xorg_testset_save_CFLAGS" 10649fi 10650 10651found="no" 10652 10653 if test $found = "no" ; then 10654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10656 fi 10657 10658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10660 fi 10661 10662 CFLAGS="$CFLAGS -Werror" 10663 10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10665printf %s "checking if $CC supports -Werror... " >&6; } 10666 cacheid=xorg_cv_cc_flag__Werror 10667 if eval test \${$cacheid+y} 10668then : 10669 printf %s "(cached) " >&6 10670else $as_nop 10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10672/* end confdefs.h. */ 10673int i; 10674int 10675main (void) 10676{ 10677 10678 ; 10679 return 0; 10680} 10681_ACEOF 10682if ac_fn_c_try_link "$LINENO" 10683then : 10684 eval $cacheid=yes 10685else $as_nop 10686 eval $cacheid=no 10687fi 10688rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10689 conftest$ac_exeext conftest.$ac_ext 10690fi 10691 10692 10693 CFLAGS="$xorg_testset_save_CFLAGS" 10694 10695 eval supported=\$$cacheid 10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10697printf "%s\n" "$supported" >&6; } 10698 if test "$supported" = "yes" ; then 10699 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10700 found="yes" 10701 fi 10702 fi 10703 10704 if test $found = "no" ; then 10705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10707 fi 10708 10709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10711 fi 10712 10713 CFLAGS="$CFLAGS -errwarn" 10714 10715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10716printf %s "checking if $CC supports -errwarn... " >&6; } 10717 cacheid=xorg_cv_cc_flag__errwarn 10718 if eval test \${$cacheid+y} 10719then : 10720 printf %s "(cached) " >&6 10721else $as_nop 10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10723/* end confdefs.h. */ 10724int i; 10725int 10726main (void) 10727{ 10728 10729 ; 10730 return 0; 10731} 10732_ACEOF 10733if ac_fn_c_try_link "$LINENO" 10734then : 10735 eval $cacheid=yes 10736else $as_nop 10737 eval $cacheid=no 10738fi 10739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10740 conftest$ac_exeext conftest.$ac_ext 10741fi 10742 10743 10744 CFLAGS="$xorg_testset_save_CFLAGS" 10745 10746 eval supported=\$$cacheid 10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10748printf "%s\n" "$supported" >&6; } 10749 if test "$supported" = "yes" ; then 10750 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10751 found="yes" 10752 fi 10753 fi 10754 10755 10756 10757# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10758# activate it with -Werror, so we add it here explicitly. 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772xorg_testset_save_CFLAGS="$CFLAGS" 10773 10774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10778if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10779then : 10780 printf %s "(cached) " >&6 10781else $as_nop 10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10783/* end confdefs.h. */ 10784int i; 10785_ACEOF 10786if ac_fn_c_try_compile "$LINENO" 10787then : 10788 xorg_cv_cc_flag_unknown_warning_option=yes 10789else $as_nop 10790 xorg_cv_cc_flag_unknown_warning_option=no 10791fi 10792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10793fi 10794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10795printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10797 CFLAGS="$xorg_testset_save_CFLAGS" 10798fi 10799 10800if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10803 fi 10804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10806printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10807if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10808then : 10809 printf %s "(cached) " >&6 10810else $as_nop 10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10812/* end confdefs.h. */ 10813int i; 10814_ACEOF 10815if ac_fn_c_try_compile "$LINENO" 10816then : 10817 xorg_cv_cc_flag_unused_command_line_argument=yes 10818else $as_nop 10819 xorg_cv_cc_flag_unused_command_line_argument=no 10820fi 10821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10822fi 10823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10824printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10825 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10826 CFLAGS="$xorg_testset_save_CFLAGS" 10827fi 10828 10829found="no" 10830 10831 if test $found = "no" ; then 10832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10834 fi 10835 10836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10838 fi 10839 10840 CFLAGS="$CFLAGS -Werror=attributes" 10841 10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10843printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10844 cacheid=xorg_cv_cc_flag__Werror_attributes 10845 if eval test \${$cacheid+y} 10846then : 10847 printf %s "(cached) " >&6 10848else $as_nop 10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10850/* end confdefs.h. */ 10851int i; 10852int 10853main (void) 10854{ 10855 10856 ; 10857 return 0; 10858} 10859_ACEOF 10860if ac_fn_c_try_link "$LINENO" 10861then : 10862 eval $cacheid=yes 10863else $as_nop 10864 eval $cacheid=no 10865fi 10866rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10867 conftest$ac_exeext conftest.$ac_ext 10868fi 10869 10870 10871 CFLAGS="$xorg_testset_save_CFLAGS" 10872 10873 eval supported=\$$cacheid 10874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10875printf "%s\n" "$supported" >&6; } 10876 if test "$supported" = "yes" ; then 10877 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10878 found="yes" 10879 fi 10880 fi 10881 10882 10883 10884if test "x$STRICT_COMPILE" = "xyes"; then 10885 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10886 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10887fi 10888 10889 10890 10891 10892 10893 10894 10895 10896cat >>confdefs.h <<_ACEOF 10897#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10898_ACEOF 10899 10900 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10901 if test "x$PVM" = "x"; then 10902 PVM="0" 10903 fi 10904 10905printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10906 10907 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10908 if test "x$PVP" = "x"; then 10909 PVP="0" 10910 fi 10911 10912printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10913 10914 10915 10916CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10917mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10918|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10919touch \$(top_srcdir)/ChangeLog; \ 10920echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10921 10922 10923 10924 10925macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10926INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10927mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10928|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10929touch \$(top_srcdir)/INSTALL; \ 10930echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10931 10932 10933 10934 10935 10936 10937case $host_os in 10938 solaris*) 10939 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10940 # check for a man page file found in later versions that use 10941 # traditional section numbers instead 10942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10943printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10944if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10945then : 10946 printf %s "(cached) " >&6 10947else $as_nop 10948 test "$cross_compiling" = yes && 10949 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10950if test -r "/usr/share/man/man7/attributes.7"; then 10951 ac_cv_file__usr_share_man_man7_attributes_7=yes 10952else 10953 ac_cv_file__usr_share_man_man7_attributes_7=no 10954fi 10955fi 10956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10957printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10958if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10959then : 10960 SYSV_MAN_SECTIONS=false 10961else $as_nop 10962 SYSV_MAN_SECTIONS=true 10963fi 10964 10965 ;; 10966 *) SYSV_MAN_SECTIONS=false ;; 10967esac 10968 10969if test x$APP_MAN_SUFFIX = x ; then 10970 APP_MAN_SUFFIX=1 10971fi 10972if test x$APP_MAN_DIR = x ; then 10973 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10974fi 10975 10976if test x$LIB_MAN_SUFFIX = x ; then 10977 LIB_MAN_SUFFIX=3 10978fi 10979if test x$LIB_MAN_DIR = x ; then 10980 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10981fi 10982 10983if test x$FILE_MAN_SUFFIX = x ; then 10984 case $SYSV_MAN_SECTIONS in 10985 true) FILE_MAN_SUFFIX=4 ;; 10986 *) FILE_MAN_SUFFIX=5 ;; 10987 esac 10988fi 10989if test x$FILE_MAN_DIR = x ; then 10990 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10991fi 10992 10993if test x$MISC_MAN_SUFFIX = x ; then 10994 case $SYSV_MAN_SECTIONS in 10995 true) MISC_MAN_SUFFIX=5 ;; 10996 *) MISC_MAN_SUFFIX=7 ;; 10997 esac 10998fi 10999if test x$MISC_MAN_DIR = x ; then 11000 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11001fi 11002 11003if test x$DRIVER_MAN_SUFFIX = x ; then 11004 case $SYSV_MAN_SECTIONS in 11005 true) DRIVER_MAN_SUFFIX=7 ;; 11006 *) DRIVER_MAN_SUFFIX=4 ;; 11007 esac 11008fi 11009if test x$DRIVER_MAN_DIR = x ; then 11010 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11011fi 11012 11013if test x$ADMIN_MAN_SUFFIX = x ; then 11014 case $SYSV_MAN_SECTIONS in 11015 true) ADMIN_MAN_SUFFIX=1m ;; 11016 *) ADMIN_MAN_SUFFIX=8 ;; 11017 esac 11018fi 11019if test x$ADMIN_MAN_DIR = x ; then 11020 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11021fi 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037XORG_MAN_PAGE="X Version 11" 11038 11039MAN_SUBSTS="\ 11040 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11041 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11042 -e 's|__xservername__|Xorg|g' \ 11043 -e 's|__xconfigfile__|xorg.conf|g' \ 11044 -e 's|__projectroot__|\$(prefix)|g' \ 11045 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11046 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11047 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11048 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11049 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11050 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11051 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11052 11053 11054 11055# Check whether --enable-silent-rules was given. 11056if test ${enable_silent_rules+y} 11057then : 11058 enableval=$enable_silent_rules; 11059fi 11060 11061case $enable_silent_rules in # ((( 11062 yes) AM_DEFAULT_VERBOSITY=0;; 11063 no) AM_DEFAULT_VERBOSITY=1;; 11064 *) AM_DEFAULT_VERBOSITY=0;; 11065esac 11066am_make=${MAKE-make} 11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11068printf %s "checking whether $am_make supports nested variables... " >&6; } 11069if test ${am_cv_make_support_nested_variables+y} 11070then : 11071 printf %s "(cached) " >&6 11072else $as_nop 11073 if printf "%s\n" 'TRUE=$(BAR$(V)) 11074BAR0=false 11075BAR1=true 11076V=1 11077am__doit: 11078 @$(TRUE) 11079.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11080 am_cv_make_support_nested_variables=yes 11081else 11082 am_cv_make_support_nested_variables=no 11083fi 11084fi 11085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11086printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11087if test $am_cv_make_support_nested_variables = yes; then 11088 AM_V='$(V)' 11089 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11090else 11091 AM_V=$AM_DEFAULT_VERBOSITY 11092 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11093fi 11094AM_BACKSLASH='\' 11095 11096 11097 11098 11099# Optional dependencies 11100 11101# Check whether --with-xkb was given. 11102if test ${with_xkb+y} 11103then : 11104 withval=$with_xkb; use_xkb="$withval" 11105else $as_nop 11106 use_xkb="yes" 11107fi 11108 11109if test x$use_xkb != xno ; then 11110 XKBMODULE="xkbfile" 11111 11112printf "%s\n" "#define XKB 1" >>confdefs.h 11113 11114fi 11115 11116# Checks for pkg-config packages 11117 11118pkg_failed=no 11119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XWD" >&5 11120printf %s "checking for XWD... " >&6; } 11121 11122if test -n "$XWD_CFLAGS"; then 11123 pkg_cv_XWD_CFLAGS="$XWD_CFLAGS" 11124 elif test -n "$PKG_CONFIG"; then 11125 if test -n "$PKG_CONFIG" && \ 11126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25 \${XKBMODULE}\""; } >&5 11127 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25 ${XKBMODULE}") 2>&5 11128 ac_status=$? 11129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11130 test $ac_status = 0; }; then 11131 pkg_cv_XWD_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null` 11132 test "x$?" != "x0" && pkg_failed=yes 11133else 11134 pkg_failed=yes 11135fi 11136 else 11137 pkg_failed=untried 11138fi 11139if test -n "$XWD_LIBS"; then 11140 pkg_cv_XWD_LIBS="$XWD_LIBS" 11141 elif test -n "$PKG_CONFIG"; then 11142 if test -n "$PKG_CONFIG" && \ 11143 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25 \${XKBMODULE}\""; } >&5 11144 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25 ${XKBMODULE}") 2>&5 11145 ac_status=$? 11146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11147 test $ac_status = 0; }; then 11148 pkg_cv_XWD_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null` 11149 test "x$?" != "x0" && pkg_failed=yes 11150else 11151 pkg_failed=yes 11152fi 11153 else 11154 pkg_failed=untried 11155fi 11156 11157 11158 11159if test $pkg_failed = yes; then 11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11161printf "%s\n" "no" >&6; } 11162 11163if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11164 _pkg_short_errors_supported=yes 11165else 11166 _pkg_short_errors_supported=no 11167fi 11168 if test $_pkg_short_errors_supported = yes; then 11169 XWD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>&1` 11170 else 11171 XWD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25 ${XKBMODULE}" 2>&1` 11172 fi 11173 # Put the nasty error message in config.log where it belongs 11174 echo "$XWD_PKG_ERRORS" >&5 11175 11176 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25 ${XKBMODULE}) were not met: 11177 11178$XWD_PKG_ERRORS 11179 11180Consider adjusting the PKG_CONFIG_PATH environment variable if you 11181installed software in a non-standard prefix. 11182 11183Alternatively, you may set the environment variables XWD_CFLAGS 11184and XWD_LIBS to avoid the need to call pkg-config. 11185See the pkg-config man page for more details." "$LINENO" 5 11186elif test $pkg_failed = untried; then 11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11188printf "%s\n" "no" >&6; } 11189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11190printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11191as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11192is in your PATH or set the PKG_CONFIG environment variable to the full 11193path to pkg-config. 11194 11195Alternatively, you may set the environment variables XWD_CFLAGS 11196and XWD_LIBS to avoid the need to call pkg-config. 11197See the pkg-config man page for more details. 11198 11199To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11200See \`config.log' for more details" "$LINENO" 5; } 11201else 11202 XWD_CFLAGS=$pkg_cv_XWD_CFLAGS 11203 XWD_LIBS=$pkg_cv_XWD_LIBS 11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11205printf "%s\n" "yes" >&6; } 11206 11207fi 11208 11209ac_config_files="$ac_config_files Makefile man/Makefile" 11210 11211cat >confcache <<\_ACEOF 11212# This file is a shell script that caches the results of configure 11213# tests run on this system so they can be shared between configure 11214# scripts and configure runs, see configure's option --config-cache. 11215# It is not useful on other systems. If it contains results you don't 11216# want to keep, you may remove or edit it. 11217# 11218# config.status only pays attention to the cache file if you give it 11219# the --recheck option to rerun configure. 11220# 11221# `ac_cv_env_foo' variables (set or unset) will be overridden when 11222# loading this file, other *unset* `ac_cv_foo' will be assigned the 11223# following values. 11224 11225_ACEOF 11226 11227# The following way of writing the cache mishandles newlines in values, 11228# but we know of no workaround that is simple, portable, and efficient. 11229# So, we kill variables containing newlines. 11230# Ultrix sh set writes to stderr and can't be redirected directly, 11231# and sets the high bit in the cache file unless we assign to the vars. 11232( 11233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11234 eval ac_val=\$$ac_var 11235 case $ac_val in #( 11236 *${as_nl}*) 11237 case $ac_var in #( 11238 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11239printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11240 esac 11241 case $ac_var in #( 11242 _ | IFS | as_nl) ;; #( 11243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11244 *) { eval $ac_var=; unset $ac_var;} ;; 11245 esac ;; 11246 esac 11247 done 11248 11249 (set) 2>&1 | 11250 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11251 *${as_nl}ac_space=\ *) 11252 # `set' does not quote correctly, so add quotes: double-quote 11253 # substitution turns \\\\ into \\, and sed turns \\ into \. 11254 sed -n \ 11255 "s/'/'\\\\''/g; 11256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11257 ;; #( 11258 *) 11259 # `set' quotes correctly as required by POSIX, so do not add quotes. 11260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11261 ;; 11262 esac | 11263 sort 11264) | 11265 sed ' 11266 /^ac_cv_env_/b end 11267 t clear 11268 :clear 11269 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11270 t end 11271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11272 :end' >>confcache 11273if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11274 if test -w "$cache_file"; then 11275 if test "x$cache_file" != "x/dev/null"; then 11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11277printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11278 if test ! -f "$cache_file" || test -h "$cache_file"; then 11279 cat confcache >"$cache_file" 11280 else 11281 case $cache_file in #( 11282 */* | ?:*) 11283 mv -f confcache "$cache_file"$$ && 11284 mv -f "$cache_file"$$ "$cache_file" ;; #( 11285 *) 11286 mv -f confcache "$cache_file" ;; 11287 esac 11288 fi 11289 fi 11290 else 11291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11292printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11293 fi 11294fi 11295rm -f confcache 11296 11297test "x$prefix" = xNONE && prefix=$ac_default_prefix 11298# Let make expand exec_prefix. 11299test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11300 11301DEFS=-DHAVE_CONFIG_H 11302 11303ac_libobjs= 11304ac_ltlibobjs= 11305U= 11306for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11307 # 1. Remove the extension, and $U if already installed. 11308 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11309 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11310 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11311 # will be set to the directory where LIBOBJS objects are built. 11312 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11313 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11314done 11315LIBOBJS=$ac_libobjs 11316 11317LTLIBOBJS=$ac_ltlibobjs 11318 11319 11320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11321printf %s "checking that generated files are newer than configure... " >&6; } 11322 if test -n "$am_sleep_pid"; then 11323 # Hide warnings about reused PIDs. 11324 wait $am_sleep_pid 2>/dev/null 11325 fi 11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11327printf "%s\n" "done" >&6; } 11328 if test -n "$EXEEXT"; then 11329 am__EXEEXT_TRUE= 11330 am__EXEEXT_FALSE='#' 11331else 11332 am__EXEEXT_TRUE='#' 11333 am__EXEEXT_FALSE= 11334fi 11335 11336if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11337 as_fn_error $? "conditional \"AMDEP\" was never defined. 11338Usually this means the macro was only invoked conditionally." "$LINENO" 5 11339fi 11340if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11341 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11342Usually this means the macro was only invoked conditionally." "$LINENO" 5 11343fi 11344 11345: "${CONFIG_STATUS=./config.status}" 11346ac_write_fail=0 11347ac_clean_files_save=$ac_clean_files 11348ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11350printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11351as_write_fail=0 11352cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11353#! $SHELL 11354# Generated by $as_me. 11355# Run this file to recreate the current configuration. 11356# Compiler output produced by configure, useful for debugging 11357# configure, is in config.log if it exists. 11358 11359debug=false 11360ac_cs_recheck=false 11361ac_cs_silent=false 11362 11363SHELL=\${CONFIG_SHELL-$SHELL} 11364export SHELL 11365_ASEOF 11366cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11367## -------------------- ## 11368## M4sh Initialization. ## 11369## -------------------- ## 11370 11371# Be more Bourne compatible 11372DUALCASE=1; export DUALCASE # for MKS sh 11373as_nop=: 11374if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11375then : 11376 emulate sh 11377 NULLCMD=: 11378 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11379 # is contrary to our usage. Disable this feature. 11380 alias -g '${1+"$@"}'='"$@"' 11381 setopt NO_GLOB_SUBST 11382else $as_nop 11383 case `(set -o) 2>/dev/null` in #( 11384 *posix*) : 11385 set -o posix ;; #( 11386 *) : 11387 ;; 11388esac 11389fi 11390 11391 11392 11393# Reset variables that may have inherited troublesome values from 11394# the environment. 11395 11396# IFS needs to be set, to space, tab, and newline, in precisely that order. 11397# (If _AS_PATH_WALK were called with IFS unset, it would have the 11398# side effect of setting IFS to empty, thus disabling word splitting.) 11399# Quoting is to prevent editors from complaining about space-tab. 11400as_nl=' 11401' 11402export as_nl 11403IFS=" "" $as_nl" 11404 11405PS1='$ ' 11406PS2='> ' 11407PS4='+ ' 11408 11409# Ensure predictable behavior from utilities with locale-dependent output. 11410LC_ALL=C 11411export LC_ALL 11412LANGUAGE=C 11413export LANGUAGE 11414 11415# We cannot yet rely on "unset" to work, but we need these variables 11416# to be unset--not just set to an empty or harmless value--now, to 11417# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11418# also avoids known problems related to "unset" and subshell syntax 11419# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11420for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11421do eval test \${$as_var+y} \ 11422 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11423done 11424 11425# Ensure that fds 0, 1, and 2 are open. 11426if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11427if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11428if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11429 11430# The user is always right. 11431if ${PATH_SEPARATOR+false} :; then 11432 PATH_SEPARATOR=: 11433 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11434 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11435 PATH_SEPARATOR=';' 11436 } 11437fi 11438 11439 11440# Find who we are. Look in the path if we contain no directory separator. 11441as_myself= 11442case $0 in #(( 11443 *[\\/]* ) as_myself=$0 ;; 11444 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11445for as_dir in $PATH 11446do 11447 IFS=$as_save_IFS 11448 case $as_dir in #((( 11449 '') as_dir=./ ;; 11450 */) ;; 11451 *) as_dir=$as_dir/ ;; 11452 esac 11453 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11454 done 11455IFS=$as_save_IFS 11456 11457 ;; 11458esac 11459# We did not find ourselves, most probably we were run as `sh COMMAND' 11460# in which case we are not to be found in the path. 11461if test "x$as_myself" = x; then 11462 as_myself=$0 11463fi 11464if test ! -f "$as_myself"; then 11465 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11466 exit 1 11467fi 11468 11469 11470 11471# as_fn_error STATUS ERROR [LINENO LOG_FD] 11472# ---------------------------------------- 11473# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11474# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11475# script with STATUS, using 1 if that was 0. 11476as_fn_error () 11477{ 11478 as_status=$1; test $as_status -eq 0 && as_status=1 11479 if test "$4"; then 11480 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11482 fi 11483 printf "%s\n" "$as_me: error: $2" >&2 11484 as_fn_exit $as_status 11485} # as_fn_error 11486 11487 11488 11489# as_fn_set_status STATUS 11490# ----------------------- 11491# Set $? to STATUS, without forking. 11492as_fn_set_status () 11493{ 11494 return $1 11495} # as_fn_set_status 11496 11497# as_fn_exit STATUS 11498# ----------------- 11499# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11500as_fn_exit () 11501{ 11502 set +e 11503 as_fn_set_status $1 11504 exit $1 11505} # as_fn_exit 11506 11507# as_fn_unset VAR 11508# --------------- 11509# Portably unset VAR. 11510as_fn_unset () 11511{ 11512 { eval $1=; unset $1;} 11513} 11514as_unset=as_fn_unset 11515 11516# as_fn_append VAR VALUE 11517# ---------------------- 11518# Append the text in VALUE to the end of the definition contained in VAR. Take 11519# advantage of any shell optimizations that allow amortized linear growth over 11520# repeated appends, instead of the typical quadratic growth present in naive 11521# implementations. 11522if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11523then : 11524 eval 'as_fn_append () 11525 { 11526 eval $1+=\$2 11527 }' 11528else $as_nop 11529 as_fn_append () 11530 { 11531 eval $1=\$$1\$2 11532 } 11533fi # as_fn_append 11534 11535# as_fn_arith ARG... 11536# ------------------ 11537# Perform arithmetic evaluation on the ARGs, and store the result in the 11538# global $as_val. Take advantage of shells that can avoid forks. The arguments 11539# must be portable across $(()) and expr. 11540if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11541then : 11542 eval 'as_fn_arith () 11543 { 11544 as_val=$(( $* )) 11545 }' 11546else $as_nop 11547 as_fn_arith () 11548 { 11549 as_val=`expr "$@" || test $? -eq 1` 11550 } 11551fi # as_fn_arith 11552 11553 11554if expr a : '\(a\)' >/dev/null 2>&1 && 11555 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11556 as_expr=expr 11557else 11558 as_expr=false 11559fi 11560 11561if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11562 as_basename=basename 11563else 11564 as_basename=false 11565fi 11566 11567if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11568 as_dirname=dirname 11569else 11570 as_dirname=false 11571fi 11572 11573as_me=`$as_basename -- "$0" || 11574$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11575 X"$0" : 'X\(//\)$' \| \ 11576 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11577printf "%s\n" X/"$0" | 11578 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11579 s//\1/ 11580 q 11581 } 11582 /^X\/\(\/\/\)$/{ 11583 s//\1/ 11584 q 11585 } 11586 /^X\/\(\/\).*/{ 11587 s//\1/ 11588 q 11589 } 11590 s/.*/./; q'` 11591 11592# Avoid depending upon Character Ranges. 11593as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11594as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11595as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11596as_cr_digits='0123456789' 11597as_cr_alnum=$as_cr_Letters$as_cr_digits 11598 11599 11600# Determine whether it's possible to make 'echo' print without a newline. 11601# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11602# for compatibility with existing Makefiles. 11603ECHO_C= ECHO_N= ECHO_T= 11604case `echo -n x` in #((((( 11605-n*) 11606 case `echo 'xy\c'` in 11607 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11608 xy) ECHO_C='\c';; 11609 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11610 ECHO_T=' ';; 11611 esac;; 11612*) 11613 ECHO_N='-n';; 11614esac 11615 11616# For backward compatibility with old third-party macros, we provide 11617# the shell variables $as_echo and $as_echo_n. New code should use 11618# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11619as_echo='printf %s\n' 11620as_echo_n='printf %s' 11621 11622rm -f conf$$ conf$$.exe conf$$.file 11623if test -d conf$$.dir; then 11624 rm -f conf$$.dir/conf$$.file 11625else 11626 rm -f conf$$.dir 11627 mkdir conf$$.dir 2>/dev/null 11628fi 11629if (echo >conf$$.file) 2>/dev/null; then 11630 if ln -s conf$$.file conf$$ 2>/dev/null; then 11631 as_ln_s='ln -s' 11632 # ... but there are two gotchas: 11633 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11634 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11635 # In both cases, we have to default to `cp -pR'. 11636 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11637 as_ln_s='cp -pR' 11638 elif ln conf$$.file conf$$ 2>/dev/null; then 11639 as_ln_s=ln 11640 else 11641 as_ln_s='cp -pR' 11642 fi 11643else 11644 as_ln_s='cp -pR' 11645fi 11646rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11647rmdir conf$$.dir 2>/dev/null 11648 11649 11650# as_fn_mkdir_p 11651# ------------- 11652# Create "$as_dir" as a directory, including parents if necessary. 11653as_fn_mkdir_p () 11654{ 11655 11656 case $as_dir in #( 11657 -*) as_dir=./$as_dir;; 11658 esac 11659 test -d "$as_dir" || eval $as_mkdir_p || { 11660 as_dirs= 11661 while :; do 11662 case $as_dir in #( 11663 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11664 *) as_qdir=$as_dir;; 11665 esac 11666 as_dirs="'$as_qdir' $as_dirs" 11667 as_dir=`$as_dirname -- "$as_dir" || 11668$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11669 X"$as_dir" : 'X\(//\)[^/]' \| \ 11670 X"$as_dir" : 'X\(//\)$' \| \ 11671 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11672printf "%s\n" X"$as_dir" | 11673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11674 s//\1/ 11675 q 11676 } 11677 /^X\(\/\/\)[^/].*/{ 11678 s//\1/ 11679 q 11680 } 11681 /^X\(\/\/\)$/{ 11682 s//\1/ 11683 q 11684 } 11685 /^X\(\/\).*/{ 11686 s//\1/ 11687 q 11688 } 11689 s/.*/./; q'` 11690 test -d "$as_dir" && break 11691 done 11692 test -z "$as_dirs" || eval "mkdir $as_dirs" 11693 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11694 11695 11696} # as_fn_mkdir_p 11697if mkdir -p . 2>/dev/null; then 11698 as_mkdir_p='mkdir -p "$as_dir"' 11699else 11700 test -d ./-p && rmdir ./-p 11701 as_mkdir_p=false 11702fi 11703 11704 11705# as_fn_executable_p FILE 11706# ----------------------- 11707# Test if FILE is an executable regular file. 11708as_fn_executable_p () 11709{ 11710 test -f "$1" && test -x "$1" 11711} # as_fn_executable_p 11712as_test_x='test -x' 11713as_executable_p=as_fn_executable_p 11714 11715# Sed expression to map a string onto a valid CPP name. 11716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11717 11718# Sed expression to map a string onto a valid variable name. 11719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11720 11721 11722exec 6>&1 11723## ----------------------------------- ## 11724## Main body of $CONFIG_STATUS script. ## 11725## ----------------------------------- ## 11726_ASEOF 11727test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11728 11729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11730# Save the log message, to keep $0 and so on meaningful, and to 11731# report actual input values of CONFIG_FILES etc. instead of their 11732# values after options handling. 11733ac_log=" 11734This file was extended by xwd $as_me 1.0.9, which was 11735generated by GNU Autoconf 2.71. Invocation command line was 11736 11737 CONFIG_FILES = $CONFIG_FILES 11738 CONFIG_HEADERS = $CONFIG_HEADERS 11739 CONFIG_LINKS = $CONFIG_LINKS 11740 CONFIG_COMMANDS = $CONFIG_COMMANDS 11741 $ $0 $@ 11742 11743on `(hostname || uname -n) 2>/dev/null | sed 1q` 11744" 11745 11746_ACEOF 11747 11748case $ac_config_files in *" 11749"*) set x $ac_config_files; shift; ac_config_files=$*;; 11750esac 11751 11752case $ac_config_headers in *" 11753"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11754esac 11755 11756 11757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11758# Files that config.status was made for. 11759config_files="$ac_config_files" 11760config_headers="$ac_config_headers" 11761config_commands="$ac_config_commands" 11762 11763_ACEOF 11764 11765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11766ac_cs_usage="\ 11767\`$as_me' instantiates files and other configuration actions 11768from templates according to the current configuration. Unless the files 11769and actions are specified as TAGs, all are instantiated by default. 11770 11771Usage: $0 [OPTION]... [TAG]... 11772 11773 -h, --help print this help, then exit 11774 -V, --version print version number and configuration settings, then exit 11775 --config print configuration, then exit 11776 -q, --quiet, --silent 11777 do not print progress messages 11778 -d, --debug don't remove temporary files 11779 --recheck update $as_me by reconfiguring in the same conditions 11780 --file=FILE[:TEMPLATE] 11781 instantiate the configuration file FILE 11782 --header=FILE[:TEMPLATE] 11783 instantiate the configuration header FILE 11784 11785Configuration files: 11786$config_files 11787 11788Configuration headers: 11789$config_headers 11790 11791Configuration commands: 11792$config_commands 11793 11794Report bugs to <https://gitlab.freedesktop.org/xorg/app/xwd/issues>." 11795 11796_ACEOF 11797ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11798ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11800ac_cs_config='$ac_cs_config_escaped' 11801ac_cs_version="\\ 11802xwd config.status 1.0.9 11803configured by $0, generated by GNU Autoconf 2.71, 11804 with options \\"\$ac_cs_config\\" 11805 11806Copyright (C) 2021 Free Software Foundation, Inc. 11807This config.status script is free software; the Free Software Foundation 11808gives unlimited permission to copy, distribute and modify it." 11809 11810ac_pwd='$ac_pwd' 11811srcdir='$srcdir' 11812INSTALL='$INSTALL' 11813MKDIR_P='$MKDIR_P' 11814AWK='$AWK' 11815test -n "\$AWK" || AWK=awk 11816_ACEOF 11817 11818cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11819# The default lists apply if the user does not specify any file. 11820ac_need_defaults=: 11821while test $# != 0 11822do 11823 case $1 in 11824 --*=?*) 11825 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11826 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11827 ac_shift=: 11828 ;; 11829 --*=) 11830 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11831 ac_optarg= 11832 ac_shift=: 11833 ;; 11834 *) 11835 ac_option=$1 11836 ac_optarg=$2 11837 ac_shift=shift 11838 ;; 11839 esac 11840 11841 case $ac_option in 11842 # Handling of the options. 11843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11844 ac_cs_recheck=: ;; 11845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11846 printf "%s\n" "$ac_cs_version"; exit ;; 11847 --config | --confi | --conf | --con | --co | --c ) 11848 printf "%s\n" "$ac_cs_config"; exit ;; 11849 --debug | --debu | --deb | --de | --d | -d ) 11850 debug=: ;; 11851 --file | --fil | --fi | --f ) 11852 $ac_shift 11853 case $ac_optarg in 11854 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11855 '') as_fn_error $? "missing file argument" ;; 11856 esac 11857 as_fn_append CONFIG_FILES " '$ac_optarg'" 11858 ac_need_defaults=false;; 11859 --header | --heade | --head | --hea ) 11860 $ac_shift 11861 case $ac_optarg in 11862 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11863 esac 11864 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11865 ac_need_defaults=false;; 11866 --he | --h) 11867 # Conflict between --help and --header 11868 as_fn_error $? "ambiguous option: \`$1' 11869Try \`$0 --help' for more information.";; 11870 --help | --hel | -h ) 11871 printf "%s\n" "$ac_cs_usage"; exit ;; 11872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11873 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11874 ac_cs_silent=: ;; 11875 11876 # This is an error. 11877 -*) as_fn_error $? "unrecognized option: \`$1' 11878Try \`$0 --help' for more information." ;; 11879 11880 *) as_fn_append ac_config_targets " $1" 11881 ac_need_defaults=false ;; 11882 11883 esac 11884 shift 11885done 11886 11887ac_configure_extra_args= 11888 11889if $ac_cs_silent; then 11890 exec 6>/dev/null 11891 ac_configure_extra_args="$ac_configure_extra_args --silent" 11892fi 11893 11894_ACEOF 11895cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11896if \$ac_cs_recheck; then 11897 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11898 shift 11899 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11900 CONFIG_SHELL='$SHELL' 11901 export CONFIG_SHELL 11902 exec "\$@" 11903fi 11904 11905_ACEOF 11906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11907exec 5>>config.log 11908{ 11909 echo 11910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11911## Running $as_me. ## 11912_ASBOX 11913 printf "%s\n" "$ac_log" 11914} >&5 11915 11916_ACEOF 11917cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11918# 11919# INIT-COMMANDS 11920# 11921AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 11922 11923_ACEOF 11924 11925cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11926 11927# Handling of arguments. 11928for ac_config_target in $ac_config_targets 11929do 11930 case $ac_config_target in 11931 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11932 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11934 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11935 11936 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11937 esac 11938done 11939 11940 11941# If the user did not use the arguments to specify the items to instantiate, 11942# then the envvar interface is used. Set only those that are not. 11943# We use the long form for the default assignment because of an extremely 11944# bizarre bug on SunOS 4.1.3. 11945if $ac_need_defaults; then 11946 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11947 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 11948 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11949fi 11950 11951# Have a temporary directory for convenience. Make it in the build tree 11952# simply because there is no reason against having it here, and in addition, 11953# creating and moving files from /tmp can sometimes cause problems. 11954# Hook for its removal unless debugging. 11955# Note that there is a small window in which the directory will not be cleaned: 11956# after its creation but before its name has been assigned to `$tmp'. 11957$debug || 11958{ 11959 tmp= ac_tmp= 11960 trap 'exit_status=$? 11961 : "${ac_tmp:=$tmp}" 11962 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11963' 0 11964 trap 'as_fn_exit 1' 1 2 13 15 11965} 11966# Create a (secure) tmp directory for tmp files. 11967 11968{ 11969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11970 test -d "$tmp" 11971} || 11972{ 11973 tmp=./conf$$-$RANDOM 11974 (umask 077 && mkdir "$tmp") 11975} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11976ac_tmp=$tmp 11977 11978# Set up the scripts for CONFIG_FILES section. 11979# No need to generate them if there are no CONFIG_FILES. 11980# This happens for instance with `./config.status config.h'. 11981if test -n "$CONFIG_FILES"; then 11982 11983 11984ac_cr=`echo X | tr X '\015'` 11985# On cygwin, bash can eat \r inside `` if the user requested igncr. 11986# But we know of no other shell where ac_cr would be empty at this 11987# point, so we can use a bashism as a fallback. 11988if test "x$ac_cr" = x; then 11989 eval ac_cr=\$\'\\r\' 11990fi 11991ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11992if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11993 ac_cs_awk_cr='\\r' 11994else 11995 ac_cs_awk_cr=$ac_cr 11996fi 11997 11998echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11999_ACEOF 12000 12001 12002{ 12003 echo "cat >conf$$subs.awk <<_ACEOF" && 12004 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12005 echo "_ACEOF" 12006} >conf$$subs.sh || 12007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12008ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12009ac_delim='%!_!# ' 12010for ac_last_try in false false false false false :; do 12011 . ./conf$$subs.sh || 12012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12013 12014 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12015 if test $ac_delim_n = $ac_delim_num; then 12016 break 12017 elif $ac_last_try; then 12018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12019 else 12020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12021 fi 12022done 12023rm -f conf$$subs.sh 12024 12025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12026cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12027_ACEOF 12028sed -n ' 12029h 12030s/^/S["/; s/!.*/"]=/ 12031p 12032g 12033s/^[^!]*!// 12034:repl 12035t repl 12036s/'"$ac_delim"'$// 12037t delim 12038:nl 12039h 12040s/\(.\{148\}\)..*/\1/ 12041t more1 12042s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12043p 12044n 12045b repl 12046:more1 12047s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12048p 12049g 12050s/.\{148\}// 12051t nl 12052:delim 12053h 12054s/\(.\{148\}\)..*/\1/ 12055t more2 12056s/["\\]/\\&/g; s/^/"/; s/$/"/ 12057p 12058b 12059:more2 12060s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12061p 12062g 12063s/.\{148\}// 12064t delim 12065' <conf$$subs.awk | sed ' 12066/^[^""]/{ 12067 N 12068 s/\n// 12069} 12070' >>$CONFIG_STATUS || ac_write_fail=1 12071rm -f conf$$subs.awk 12072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12073_ACAWK 12074cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12075 for (key in S) S_is_set[key] = 1 12076 FS = "" 12077 12078} 12079{ 12080 line = $ 0 12081 nfields = split(line, field, "@") 12082 substed = 0 12083 len = length(field[1]) 12084 for (i = 2; i < nfields; i++) { 12085 key = field[i] 12086 keylen = length(key) 12087 if (S_is_set[key]) { 12088 value = S[key] 12089 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12090 len += length(value) + length(field[++i]) 12091 substed = 1 12092 } else 12093 len += 1 + keylen 12094 } 12095 12096 print line 12097} 12098 12099_ACAWK 12100_ACEOF 12101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12102if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12103 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12104else 12105 cat 12106fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12107 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12108_ACEOF 12109 12110# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12111# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12112# trailing colons and then remove the whole line if VPATH becomes empty 12113# (actually we leave an empty line to preserve line numbers). 12114if test "x$srcdir" = x.; then 12115 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12116h 12117s/// 12118s/^/:/ 12119s/[ ]*$/:/ 12120s/:\$(srcdir):/:/g 12121s/:\${srcdir}:/:/g 12122s/:@srcdir@:/:/g 12123s/^:*// 12124s/:*$// 12125x 12126s/\(=[ ]*\).*/\1/ 12127G 12128s/\n// 12129s/^[^=]*=[ ]*$// 12130}' 12131fi 12132 12133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12134fi # test -n "$CONFIG_FILES" 12135 12136# Set up the scripts for CONFIG_HEADERS section. 12137# No need to generate them if there are no CONFIG_HEADERS. 12138# This happens for instance with `./config.status Makefile'. 12139if test -n "$CONFIG_HEADERS"; then 12140cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12141BEGIN { 12142_ACEOF 12143 12144# Transform confdefs.h into an awk script `defines.awk', embedded as 12145# here-document in config.status, that substitutes the proper values into 12146# config.h.in to produce config.h. 12147 12148# Create a delimiter string that does not exist in confdefs.h, to ease 12149# handling of long lines. 12150ac_delim='%!_!# ' 12151for ac_last_try in false false :; do 12152 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12153 if test -z "$ac_tt"; then 12154 break 12155 elif $ac_last_try; then 12156 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12157 else 12158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12159 fi 12160done 12161 12162# For the awk script, D is an array of macro values keyed by name, 12163# likewise P contains macro parameters if any. Preserve backslash 12164# newline sequences. 12165 12166ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12167sed -n ' 12168s/.\{148\}/&'"$ac_delim"'/g 12169t rset 12170:rset 12171s/^[ ]*#[ ]*define[ ][ ]*/ / 12172t def 12173d 12174:def 12175s/\\$// 12176t bsnl 12177s/["\\]/\\&/g 12178s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12179D["\1"]=" \3"/p 12180s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12181d 12182:bsnl 12183s/["\\]/\\&/g 12184s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12185D["\1"]=" \3\\\\\\n"\\/p 12186t cont 12187s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12188t cont 12189d 12190:cont 12191n 12192s/.\{148\}/&'"$ac_delim"'/g 12193t clear 12194:clear 12195s/\\$// 12196t bsnlc 12197s/["\\]/\\&/g; s/^/"/; s/$/"/p 12198d 12199:bsnlc 12200s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12201b cont 12202' <confdefs.h | sed ' 12203s/'"$ac_delim"'/"\\\ 12204"/g' >>$CONFIG_STATUS || ac_write_fail=1 12205 12206cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12207 for (key in D) D_is_set[key] = 1 12208 FS = "" 12209} 12210/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12211 line = \$ 0 12212 split(line, arg, " ") 12213 if (arg[1] == "#") { 12214 defundef = arg[2] 12215 mac1 = arg[3] 12216 } else { 12217 defundef = substr(arg[1], 2) 12218 mac1 = arg[2] 12219 } 12220 split(mac1, mac2, "(") #) 12221 macro = mac2[1] 12222 prefix = substr(line, 1, index(line, defundef) - 1) 12223 if (D_is_set[macro]) { 12224 # Preserve the white space surrounding the "#". 12225 print prefix "define", macro P[macro] D[macro] 12226 next 12227 } else { 12228 # Replace #undef with comments. This is necessary, for example, 12229 # in the case of _POSIX_SOURCE, which is predefined and required 12230 # on some systems where configure will not decide to define it. 12231 if (defundef == "undef") { 12232 print "/*", prefix defundef, macro, "*/" 12233 next 12234 } 12235 } 12236} 12237{ print } 12238_ACAWK 12239_ACEOF 12240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12241 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12242fi # test -n "$CONFIG_HEADERS" 12243 12244 12245eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12246shift 12247for ac_tag 12248do 12249 case $ac_tag in 12250 :[FHLC]) ac_mode=$ac_tag; continue;; 12251 esac 12252 case $ac_mode$ac_tag in 12253 :[FHL]*:*);; 12254 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12255 :[FH]-) ac_tag=-:-;; 12256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12257 esac 12258 ac_save_IFS=$IFS 12259 IFS=: 12260 set x $ac_tag 12261 IFS=$ac_save_IFS 12262 shift 12263 ac_file=$1 12264 shift 12265 12266 case $ac_mode in 12267 :L) ac_source=$1;; 12268 :[FH]) 12269 ac_file_inputs= 12270 for ac_f 12271 do 12272 case $ac_f in 12273 -) ac_f="$ac_tmp/stdin";; 12274 *) # Look for the file first in the build tree, then in the source tree 12275 # (if the path is not absolute). The absolute path cannot be DOS-style, 12276 # because $ac_f cannot contain `:'. 12277 test -f "$ac_f" || 12278 case $ac_f in 12279 [\\/$]*) false;; 12280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12281 esac || 12282 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12283 esac 12284 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12285 as_fn_append ac_file_inputs " '$ac_f'" 12286 done 12287 12288 # Let's still pretend it is `configure' which instantiates (i.e., don't 12289 # use $as_me), people would be surprised to read: 12290 # /* config.h. Generated by config.status. */ 12291 configure_input='Generated from '` 12292 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12293 `' by configure.' 12294 if test x"$ac_file" != x-; then 12295 configure_input="$ac_file. $configure_input" 12296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12297printf "%s\n" "$as_me: creating $ac_file" >&6;} 12298 fi 12299 # Neutralize special characters interpreted by sed in replacement strings. 12300 case $configure_input in #( 12301 *\&* | *\|* | *\\* ) 12302 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12303 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12304 *) ac_sed_conf_input=$configure_input;; 12305 esac 12306 12307 case $ac_tag in 12308 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12310 esac 12311 ;; 12312 esac 12313 12314 ac_dir=`$as_dirname -- "$ac_file" || 12315$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12316 X"$ac_file" : 'X\(//\)[^/]' \| \ 12317 X"$ac_file" : 'X\(//\)$' \| \ 12318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12319printf "%s\n" X"$ac_file" | 12320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12321 s//\1/ 12322 q 12323 } 12324 /^X\(\/\/\)[^/].*/{ 12325 s//\1/ 12326 q 12327 } 12328 /^X\(\/\/\)$/{ 12329 s//\1/ 12330 q 12331 } 12332 /^X\(\/\).*/{ 12333 s//\1/ 12334 q 12335 } 12336 s/.*/./; q'` 12337 as_dir="$ac_dir"; as_fn_mkdir_p 12338 ac_builddir=. 12339 12340case "$ac_dir" in 12341.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12342*) 12343 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12344 # A ".." for each directory in $ac_dir_suffix. 12345 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12346 case $ac_top_builddir_sub in 12347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12349 esac ;; 12350esac 12351ac_abs_top_builddir=$ac_pwd 12352ac_abs_builddir=$ac_pwd$ac_dir_suffix 12353# for backward compatibility: 12354ac_top_builddir=$ac_top_build_prefix 12355 12356case $srcdir in 12357 .) # We are building in place. 12358 ac_srcdir=. 12359 ac_top_srcdir=$ac_top_builddir_sub 12360 ac_abs_top_srcdir=$ac_pwd ;; 12361 [\\/]* | ?:[\\/]* ) # Absolute name. 12362 ac_srcdir=$srcdir$ac_dir_suffix; 12363 ac_top_srcdir=$srcdir 12364 ac_abs_top_srcdir=$srcdir ;; 12365 *) # Relative name. 12366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12367 ac_top_srcdir=$ac_top_build_prefix$srcdir 12368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12369esac 12370ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12371 12372 12373 case $ac_mode in 12374 :F) 12375 # 12376 # CONFIG_FILE 12377 # 12378 12379 case $INSTALL in 12380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12381 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12382 esac 12383 ac_MKDIR_P=$MKDIR_P 12384 case $MKDIR_P in 12385 [\\/$]* | ?:[\\/]* ) ;; 12386 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12387 esac 12388_ACEOF 12389 12390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12391# If the template does not know about datarootdir, expand it. 12392# FIXME: This hack should be removed a few years after 2.60. 12393ac_datarootdir_hack=; ac_datarootdir_seen= 12394ac_sed_dataroot=' 12395/datarootdir/ { 12396 p 12397 q 12398} 12399/@datadir@/p 12400/@docdir@/p 12401/@infodir@/p 12402/@localedir@/p 12403/@mandir@/p' 12404case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12405*datarootdir*) ac_datarootdir_seen=yes;; 12406*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12408printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12409_ACEOF 12410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12411 ac_datarootdir_hack=' 12412 s&@datadir@&$datadir&g 12413 s&@docdir@&$docdir&g 12414 s&@infodir@&$infodir&g 12415 s&@localedir@&$localedir&g 12416 s&@mandir@&$mandir&g 12417 s&\\\${datarootdir}&$datarootdir&g' ;; 12418esac 12419_ACEOF 12420 12421# Neutralize VPATH when `$srcdir' = `.'. 12422# Shell code in configure.ac might set extrasub. 12423# FIXME: do we really want to maintain this feature? 12424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12425ac_sed_extra="$ac_vpsub 12426$extrasub 12427_ACEOF 12428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12429:t 12430/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12431s|@configure_input@|$ac_sed_conf_input|;t t 12432s&@top_builddir@&$ac_top_builddir_sub&;t t 12433s&@top_build_prefix@&$ac_top_build_prefix&;t t 12434s&@srcdir@&$ac_srcdir&;t t 12435s&@abs_srcdir@&$ac_abs_srcdir&;t t 12436s&@top_srcdir@&$ac_top_srcdir&;t t 12437s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12438s&@builddir@&$ac_builddir&;t t 12439s&@abs_builddir@&$ac_abs_builddir&;t t 12440s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12441s&@INSTALL@&$ac_INSTALL&;t t 12442s&@MKDIR_P@&$ac_MKDIR_P&;t t 12443$ac_datarootdir_hack 12444" 12445eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12446 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12447 12448test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12449 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12450 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12451 "$ac_tmp/out"`; test -z "$ac_out"; } && 12452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12453which seems to be undefined. Please make sure it is defined" >&5 12454printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12455which seems to be undefined. Please make sure it is defined" >&2;} 12456 12457 rm -f "$ac_tmp/stdin" 12458 case $ac_file in 12459 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12460 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12461 esac \ 12462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12463 ;; 12464 :H) 12465 # 12466 # CONFIG_HEADER 12467 # 12468 if test x"$ac_file" != x-; then 12469 { 12470 printf "%s\n" "/* $configure_input */" >&1 \ 12471 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12472 } >"$ac_tmp/config.h" \ 12473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12474 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12476printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12477 else 12478 rm -f "$ac_file" 12479 mv "$ac_tmp/config.h" "$ac_file" \ 12480 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12481 fi 12482 else 12483 printf "%s\n" "/* $configure_input */" >&1 \ 12484 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12485 || as_fn_error $? "could not create -" "$LINENO" 5 12486 fi 12487# Compute "$ac_file"'s index in $config_headers. 12488_am_arg="$ac_file" 12489_am_stamp_count=1 12490for _am_header in $config_headers :; do 12491 case $_am_header in 12492 $_am_arg | $_am_arg:* ) 12493 break ;; 12494 * ) 12495 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12496 esac 12497done 12498echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12499$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12500 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12501 X"$_am_arg" : 'X\(//\)$' \| \ 12502 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12503printf "%s\n" X"$_am_arg" | 12504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12505 s//\1/ 12506 q 12507 } 12508 /^X\(\/\/\)[^/].*/{ 12509 s//\1/ 12510 q 12511 } 12512 /^X\(\/\/\)$/{ 12513 s//\1/ 12514 q 12515 } 12516 /^X\(\/\).*/{ 12517 s//\1/ 12518 q 12519 } 12520 s/.*/./; q'`/stamp-h$_am_stamp_count 12521 ;; 12522 12523 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12524printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12525 ;; 12526 esac 12527 12528 12529 case $ac_file$ac_mode in 12530 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12531 # Older Autoconf quotes --file arguments for eval, but not when files 12532 # are listed without --file. Let's play safe and only enable the eval 12533 # if we detect the quoting. 12534 # TODO: see whether this extra hack can be removed once we start 12535 # requiring Autoconf 2.70 or later. 12536 case $CONFIG_FILES in #( 12537 *\'*) : 12538 eval set x "$CONFIG_FILES" ;; #( 12539 *) : 12540 set x $CONFIG_FILES ;; #( 12541 *) : 12542 ;; 12543esac 12544 shift 12545 # Used to flag and report bootstrapping failures. 12546 am_rc=0 12547 for am_mf 12548 do 12549 # Strip MF so we end up with the name of the file. 12550 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12551 # Check whether this is an Automake generated Makefile which includes 12552 # dependency-tracking related rules and includes. 12553 # Grep'ing the whole file directly is not great: AIX grep has a line 12554 # limit of 2048, but all sed's we know have understand at least 4000. 12555 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12556 || continue 12557 am_dirpart=`$as_dirname -- "$am_mf" || 12558$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12559 X"$am_mf" : 'X\(//\)[^/]' \| \ 12560 X"$am_mf" : 'X\(//\)$' \| \ 12561 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12562printf "%s\n" X"$am_mf" | 12563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12564 s//\1/ 12565 q 12566 } 12567 /^X\(\/\/\)[^/].*/{ 12568 s//\1/ 12569 q 12570 } 12571 /^X\(\/\/\)$/{ 12572 s//\1/ 12573 q 12574 } 12575 /^X\(\/\).*/{ 12576 s//\1/ 12577 q 12578 } 12579 s/.*/./; q'` 12580 am_filepart=`$as_basename -- "$am_mf" || 12581$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12582 X"$am_mf" : 'X\(//\)$' \| \ 12583 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12584printf "%s\n" X/"$am_mf" | 12585 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12586 s//\1/ 12587 q 12588 } 12589 /^X\/\(\/\/\)$/{ 12590 s//\1/ 12591 q 12592 } 12593 /^X\/\(\/\).*/{ 12594 s//\1/ 12595 q 12596 } 12597 s/.*/./; q'` 12598 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12599 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12600 | $MAKE -f - am--depfiles" >&5 12601 (cd "$am_dirpart" \ 12602 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12603 | $MAKE -f - am--depfiles) >&5 2>&5 12604 ac_status=$? 12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12606 (exit $ac_status); } || am_rc=$? 12607 done 12608 if test $am_rc -ne 0; then 12609 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12610printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12611as_fn_error $? "Something went wrong bootstrapping makefile fragments 12612 for automatic dependency tracking. If GNU make was not used, consider 12613 re-running the configure script with MAKE=\"gmake\" (or whatever is 12614 necessary). You can also try re-running configure with the 12615 '--disable-dependency-tracking' option to at least be able to build 12616 the package (albeit without support for automatic dependency tracking). 12617See \`config.log' for more details" "$LINENO" 5; } 12618 fi 12619 { am_dirpart=; unset am_dirpart;} 12620 { am_filepart=; unset am_filepart;} 12621 { am_mf=; unset am_mf;} 12622 { am_rc=; unset am_rc;} 12623 rm -f conftest-deps.mk 12624} 12625 ;; 12626 12627 esac 12628done # for ac_tag 12629 12630 12631as_fn_exit 0 12632_ACEOF 12633ac_clean_files=$ac_clean_files_save 12634 12635test $ac_write_fail = 0 || 12636 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12637 12638 12639# configure is writing to config.log, and then calls config.status. 12640# config.status does its own redirection, appending to config.log. 12641# Unfortunately, on DOS this fails, as config.log is still kept open 12642# by configure, so config.status won't be able to write to it; its 12643# output is simply discarded. So we exec the FD to /dev/null, 12644# effectively closing config.log, so it can be properly (re)opened and 12645# appended to by config.status. When coming back to configure, we 12646# need to make the FD available again. 12647if test "$no_create" != yes; then 12648 ac_cs_success=: 12649 ac_config_status_args= 12650 test "$silent" = yes && 12651 ac_config_status_args="$ac_config_status_args --quiet" 12652 exec 5>/dev/null 12653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12654 exec 5>>config.log 12655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12656 # would make configure fail if this is the last instruction. 12657 $ac_cs_success || as_fn_exit 1 12658fi 12659if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12661printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12662fi 12663 12664 12665