1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xfd 1.1.4. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/-/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/xfd/-/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='xfd' 614PACKAGE_TARNAME='xfd' 615PACKAGE_VERSION='1.1.4' 616PACKAGE_STRING='xfd 1.1.4' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfd/-/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 657appdefaultdir 658APPDEFS_LIBS 659APPDEFS_CFLAGS 660XFD_LIBS 661XFD_CFLAGS 662USE_GETTEXT_FALSE 663USE_GETTEXT_TRUE 664LOCALEDIR 665MAN_SUBSTS 666XORG_MAN_PAGE 667ADMIN_MAN_DIR 668DRIVER_MAN_DIR 669MISC_MAN_DIR 670FILE_MAN_DIR 671LIB_MAN_DIR 672APP_MAN_DIR 673ADMIN_MAN_SUFFIX 674DRIVER_MAN_SUFFIX 675MISC_MAN_SUFFIX 676FILE_MAN_SUFFIX 677LIB_MAN_SUFFIX 678APP_MAN_SUFFIX 679SED 680host_os 681host_vendor 682host_cpu 683host 684build_os 685build_vendor 686build_cpu 687build 688INSTALL_CMD 689PKG_CONFIG_LIBDIR 690PKG_CONFIG_PATH 691PKG_CONFIG 692CHANGELOG_CMD 693STRICT_CFLAGS 694CWARNFLAGS 695BASE_CFLAGS 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__include 704DEPDIR 705OBJEXT 706EXEEXT 707ac_ct_CC 708CPPFLAGS 709LDFLAGS 710CFLAGS 711CC 712AM_BACKSLASH 713AM_DEFAULT_VERBOSITY 714AM_DEFAULT_V 715AM_V 716CSCOPE 717ETAGS 718CTAGS 719am__untar 720am__tar 721AMTAR 722am__leading_dot 723SET_MAKE 724AWK 725mkdir_p 726MKDIR_P 727INSTALL_STRIP_PROGRAM 728STRIP 729install_sh 730MAKEINFO 731AUTOHEADER 732AUTOMAKE 733AUTOCONF 734ACLOCAL 735VERSION 736PACKAGE 737CYGPATH_W 738am__isrc 739INSTALL_DATA 740INSTALL_SCRIPT 741INSTALL_PROGRAM 742target_alias 743host_alias 744build_alias 745LIBS 746ECHO_T 747ECHO_N 748ECHO_C 749DEFS 750mandir 751localedir 752libdir 753psdir 754pdfdir 755dvidir 756htmldir 757infodir 758docdir 759oldincludedir 760includedir 761runstatedir 762localstatedir 763sharedstatedir 764sysconfdir 765datadir 766datarootdir 767libexecdir 768sbindir 769bindir 770program_transform_name 771prefix 772exec_prefix 773PACKAGE_URL 774PACKAGE_BUGREPORT 775PACKAGE_STRING 776PACKAGE_VERSION 777PACKAGE_TARNAME 778PACKAGE_NAME 779PATH_SEPARATOR 780SHELL 781am__quote' 782ac_subst_files='' 783ac_user_opts=' 784enable_option_checking 785enable_silent_rules 786enable_dependency_tracking 787enable_selective_werror 788enable_strict_compilation 789with_localedir 790with_xkb 791with_appdefaultdir 792' 793 ac_precious_vars='build_alias 794host_alias 795target_alias 796CC 797CFLAGS 798LDFLAGS 799LIBS 800CPPFLAGS 801PKG_CONFIG 802PKG_CONFIG_PATH 803PKG_CONFIG_LIBDIR 804XFD_CFLAGS 805XFD_LIBS 806APPDEFS_CFLAGS 807APPDEFS_LIBS' 808 809 810# Initialize some variables set by options. 811ac_init_help= 812ac_init_version=false 813ac_unrecognized_opts= 814ac_unrecognized_sep= 815# The variables have the same names as the options, with 816# dashes changed to underlines. 817cache_file=/dev/null 818exec_prefix=NONE 819no_create= 820no_recursion= 821prefix=NONE 822program_prefix=NONE 823program_suffix=NONE 824program_transform_name=s,x,x, 825silent= 826site= 827srcdir= 828verbose= 829x_includes=NONE 830x_libraries=NONE 831 832# Installation directory options. 833# These are left unexpanded so users can "make install exec_prefix=/foo" 834# and all the variables that are supposed to be based on exec_prefix 835# by default will actually change. 836# Use braces instead of parens because sh, perl, etc. also accept them. 837# (The list follows the same order as the GNU Coding Standards.) 838bindir='${exec_prefix}/bin' 839sbindir='${exec_prefix}/sbin' 840libexecdir='${exec_prefix}/libexec' 841datarootdir='${prefix}/share' 842datadir='${datarootdir}' 843sysconfdir='${prefix}/etc' 844sharedstatedir='${prefix}/com' 845localstatedir='${prefix}/var' 846runstatedir='${localstatedir}/run' 847includedir='${prefix}/include' 848oldincludedir='/usr/include' 849docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 850infodir='${datarootdir}/info' 851htmldir='${docdir}' 852dvidir='${docdir}' 853pdfdir='${docdir}' 854psdir='${docdir}' 855libdir='${exec_prefix}/lib' 856localedir='${datarootdir}/locale' 857mandir='${datarootdir}/man' 858 859ac_prev= 860ac_dashdash= 861for ac_option 862do 863 # If the previous option needs an argument, assign it. 864 if test -n "$ac_prev"; then 865 eval $ac_prev=\$ac_option 866 ac_prev= 867 continue 868 fi 869 870 case $ac_option in 871 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 872 *=) ac_optarg= ;; 873 *) ac_optarg=yes ;; 874 esac 875 876 case $ac_dashdash$ac_option in 877 --) 878 ac_dashdash=yes ;; 879 880 -bindir | --bindir | --bindi | --bind | --bin | --bi) 881 ac_prev=bindir ;; 882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 883 bindir=$ac_optarg ;; 884 885 -build | --build | --buil | --bui | --bu) 886 ac_prev=build_alias ;; 887 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 888 build_alias=$ac_optarg ;; 889 890 -cache-file | --cache-file | --cache-fil | --cache-fi \ 891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 892 ac_prev=cache_file ;; 893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 895 cache_file=$ac_optarg ;; 896 897 --config-cache | -C) 898 cache_file=config.cache ;; 899 900 -datadir | --datadir | --datadi | --datad) 901 ac_prev=datadir ;; 902 -datadir=* | --datadir=* | --datadi=* | --datad=*) 903 datadir=$ac_optarg ;; 904 905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 906 | --dataroo | --dataro | --datar) 907 ac_prev=datarootdir ;; 908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 910 datarootdir=$ac_optarg ;; 911 912 -disable-* | --disable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error $? "invalid feature name: \`$ac_useropt'" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921"enable_$ac_useropt" 922"*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=no ;; 927 928 -docdir | --docdir | --docdi | --doc | --do) 929 ac_prev=docdir ;; 930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 931 docdir=$ac_optarg ;; 932 933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 934 ac_prev=dvidir ;; 935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 936 dvidir=$ac_optarg ;; 937 938 -enable-* | --enable-*) 939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 940 # Reject names that are not valid shell variable names. 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 942 as_fn_error $? "invalid feature name: \`$ac_useropt'" 943 ac_useropt_orig=$ac_useropt 944 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 945 case $ac_user_opts in 946 *" 947"enable_$ac_useropt" 948"*) ;; 949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 950 ac_unrecognized_sep=', ';; 951 esac 952 eval enable_$ac_useropt=\$ac_optarg ;; 953 954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 956 | --exec | --exe | --ex) 957 ac_prev=exec_prefix ;; 958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 960 | --exec=* | --exe=* | --ex=*) 961 exec_prefix=$ac_optarg ;; 962 963 -gas | --gas | --ga | --g) 964 # Obsolete; use --with-gas. 965 with_gas=yes ;; 966 967 -help | --help | --hel | --he | -h) 968 ac_init_help=long ;; 969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 970 ac_init_help=recursive ;; 971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 972 ac_init_help=short ;; 973 974 -host | --host | --hos | --ho) 975 ac_prev=host_alias ;; 976 -host=* | --host=* | --hos=* | --ho=*) 977 host_alias=$ac_optarg ;; 978 979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 980 ac_prev=htmldir ;; 981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 982 | --ht=*) 983 htmldir=$ac_optarg ;; 984 985 -includedir | --includedir | --includedi | --included | --include \ 986 | --includ | --inclu | --incl | --inc) 987 ac_prev=includedir ;; 988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 989 | --includ=* | --inclu=* | --incl=* | --inc=*) 990 includedir=$ac_optarg ;; 991 992 -infodir | --infodir | --infodi | --infod | --info | --inf) 993 ac_prev=infodir ;; 994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 995 infodir=$ac_optarg ;; 996 997 -libdir | --libdir | --libdi | --libd) 998 ac_prev=libdir ;; 999 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1000 libdir=$ac_optarg ;; 1001 1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1003 | --libexe | --libex | --libe) 1004 ac_prev=libexecdir ;; 1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1006 | --libexe=* | --libex=* | --libe=*) 1007 libexecdir=$ac_optarg ;; 1008 1009 -localedir | --localedir | --localedi | --localed | --locale) 1010 ac_prev=localedir ;; 1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1012 localedir=$ac_optarg ;; 1013 1014 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1015 | --localstate | --localstat | --localsta | --localst | --locals) 1016 ac_prev=localstatedir ;; 1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1019 localstatedir=$ac_optarg ;; 1020 1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1022 ac_prev=mandir ;; 1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1024 mandir=$ac_optarg ;; 1025 1026 -nfp | --nfp | --nf) 1027 # Obsolete; use --without-fp. 1028 with_fp=no ;; 1029 1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1031 | --no-cr | --no-c | -n) 1032 no_create=yes ;; 1033 1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1036 no_recursion=yes ;; 1037 1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1040 | --oldin | --oldi | --old | --ol | --o) 1041 ac_prev=oldincludedir ;; 1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1045 oldincludedir=$ac_optarg ;; 1046 1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1048 ac_prev=prefix ;; 1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1050 prefix=$ac_optarg ;; 1051 1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1053 | --program-pre | --program-pr | --program-p) 1054 ac_prev=program_prefix ;; 1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1057 program_prefix=$ac_optarg ;; 1058 1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1060 | --program-suf | --program-su | --program-s) 1061 ac_prev=program_suffix ;; 1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1064 program_suffix=$ac_optarg ;; 1065 1066 -program-transform-name | --program-transform-name \ 1067 | --program-transform-nam | --program-transform-na \ 1068 | --program-transform-n | --program-transform- \ 1069 | --program-transform | --program-transfor \ 1070 | --program-transfo | --program-transf \ 1071 | --program-trans | --program-tran \ 1072 | --progr-tra | --program-tr | --program-t) 1073 ac_prev=program_transform_name ;; 1074 -program-transform-name=* | --program-transform-name=* \ 1075 | --program-transform-nam=* | --program-transform-na=* \ 1076 | --program-transform-n=* | --program-transform-=* \ 1077 | --program-transform=* | --program-transfor=* \ 1078 | --program-transfo=* | --program-transf=* \ 1079 | --program-trans=* | --program-tran=* \ 1080 | --progr-tra=* | --program-tr=* | --program-t=*) 1081 program_transform_name=$ac_optarg ;; 1082 1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1084 ac_prev=pdfdir ;; 1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1086 pdfdir=$ac_optarg ;; 1087 1088 -psdir | --psdir | --psdi | --psd | --ps) 1089 ac_prev=psdir ;; 1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1091 psdir=$ac_optarg ;; 1092 1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1094 | -silent | --silent | --silen | --sile | --sil) 1095 silent=yes ;; 1096 1097 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1098 | --runstate | --runstat | --runsta | --runst | --runs \ 1099 | --run | --ru | --r) 1100 ac_prev=runstatedir ;; 1101 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1102 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1103 | --run=* | --ru=* | --r=*) 1104 runstatedir=$ac_optarg ;; 1105 1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1107 ac_prev=sbindir ;; 1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1109 | --sbi=* | --sb=*) 1110 sbindir=$ac_optarg ;; 1111 1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1114 | --sharedst | --shareds | --shared | --share | --shar \ 1115 | --sha | --sh) 1116 ac_prev=sharedstatedir ;; 1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1120 | --sha=* | --sh=*) 1121 sharedstatedir=$ac_optarg ;; 1122 1123 -site | --site | --sit) 1124 ac_prev=site ;; 1125 -site=* | --site=* | --sit=*) 1126 site=$ac_optarg ;; 1127 1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1129 ac_prev=srcdir ;; 1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1131 srcdir=$ac_optarg ;; 1132 1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1134 | --syscon | --sysco | --sysc | --sys | --sy) 1135 ac_prev=sysconfdir ;; 1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1138 sysconfdir=$ac_optarg ;; 1139 1140 -target | --target | --targe | --targ | --tar | --ta | --t) 1141 ac_prev=target_alias ;; 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1143 target_alias=$ac_optarg ;; 1144 1145 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1146 verbose=yes ;; 1147 1148 -version | --version | --versio | --versi | --vers | -V) 1149 ac_init_version=: ;; 1150 1151 -with-* | --with-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: \`$ac_useropt'" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=\$ac_optarg ;; 1166 1167 -without-* | --without-*) 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1169 # Reject names that are not valid shell variable names. 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1171 as_fn_error $? "invalid package name: \`$ac_useropt'" 1172 ac_useropt_orig=$ac_useropt 1173 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1174 case $ac_user_opts in 1175 *" 1176"with_$ac_useropt" 1177"*) ;; 1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1179 ac_unrecognized_sep=', ';; 1180 esac 1181 eval with_$ac_useropt=no ;; 1182 1183 --x) 1184 # Obsolete; use --with-x. 1185 with_x=yes ;; 1186 1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1188 | --x-incl | --x-inc | --x-in | --x-i) 1189 ac_prev=x_includes ;; 1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1192 x_includes=$ac_optarg ;; 1193 1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1196 ac_prev=x_libraries ;; 1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1199 x_libraries=$ac_optarg ;; 1200 1201 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1202Try \`$0 --help' for more information" 1203 ;; 1204 1205 *=*) 1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1207 # Reject names that are not valid shell variable names. 1208 case $ac_envvar in #( 1209 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1210 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1211 esac 1212 eval $ac_envvar=\$ac_optarg 1213 export $ac_envvar ;; 1214 1215 *) 1216 # FIXME: should be removed in autoconf 3.0. 1217 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1219 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1220 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1221 ;; 1222 1223 esac 1224done 1225 1226if test -n "$ac_prev"; then 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1228 as_fn_error $? "missing argument to $ac_option" 1229fi 1230 1231if test -n "$ac_unrecognized_opts"; then 1232 case $enable_option_checking in 1233 no) ;; 1234 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1235 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1236 esac 1237fi 1238 1239# Check all directory arguments for consistency. 1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1241 datadir sysconfdir sharedstatedir localstatedir includedir \ 1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1243 libdir localedir mandir runstatedir 1244do 1245 eval ac_val=\$$ac_var 1246 # Remove trailing slashes. 1247 case $ac_val in 1248 */ ) 1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1250 eval $ac_var=\$ac_val;; 1251 esac 1252 # Be sure to have absolute directory names. 1253 case $ac_val in 1254 [\\/$]* | ?:[\\/]* ) continue;; 1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1256 esac 1257 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1258done 1259 1260# There might be people who depend on the old broken behavior: `$host' 1261# used to hold the argument of --host etc. 1262# FIXME: To remove some day. 1263build=$build_alias 1264host=$host_alias 1265target=$target_alias 1266 1267# FIXME: To remove some day. 1268if test "x$host_alias" != x; then 1269 if test "x$build_alias" = x; then 1270 cross_compiling=maybe 1271 elif test "x$build_alias" != "x$host_alias"; then 1272 cross_compiling=yes 1273 fi 1274fi 1275 1276ac_tool_prefix= 1277test -n "$host_alias" && ac_tool_prefix=$host_alias- 1278 1279test "$silent" = yes && exec 6>/dev/null 1280 1281 1282ac_pwd=`pwd` && test -n "$ac_pwd" && 1283ac_ls_di=`ls -di .` && 1284ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1285 as_fn_error $? "working directory cannot be determined" 1286test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1287 as_fn_error $? "pwd does not report name of working directory" 1288 1289 1290# Find the source files, if location was not specified. 1291if test -z "$srcdir"; then 1292 ac_srcdir_defaulted=yes 1293 # Try the directory containing this script, then the parent directory. 1294 ac_confdir=`$as_dirname -- "$as_myself" || 1295$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1296 X"$as_myself" : 'X\(//\)[^/]' \| \ 1297 X"$as_myself" : 'X\(//\)$' \| \ 1298 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1299printf "%s\n" X"$as_myself" | 1300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)[^/].*/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\/\)$/{ 1309 s//\1/ 1310 q 1311 } 1312 /^X\(\/\).*/{ 1313 s//\1/ 1314 q 1315 } 1316 s/.*/./; q'` 1317 srcdir=$ac_confdir 1318 if test ! -r "$srcdir/$ac_unique_file"; then 1319 srcdir=.. 1320 fi 1321else 1322 ac_srcdir_defaulted=no 1323fi 1324if test ! -r "$srcdir/$ac_unique_file"; then 1325 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1326 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1327fi 1328ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1329ac_abs_confdir=`( 1330 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1331 pwd)` 1332# When building in place, set srcdir=. 1333if test "$ac_abs_confdir" = "$ac_pwd"; then 1334 srcdir=. 1335fi 1336# Remove unnecessary trailing slashes from srcdir. 1337# Double slashes in file names in object file debugging info 1338# mess up M-x gdb in Emacs. 1339case $srcdir in 1340*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1341esac 1342for ac_var in $ac_precious_vars; do 1343 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1344 eval ac_env_${ac_var}_value=\$${ac_var} 1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1347done 1348 1349# 1350# Report the --help message. 1351# 1352if test "$ac_init_help" = "long"; then 1353 # Omit some internal or obsolete options to make the list less imposing. 1354 # This message is too long to be a string in the A/UX 3.1 sh. 1355 cat <<_ACEOF 1356\`configure' configures xfd 1.1.4 to adapt to many kinds of systems. 1357 1358Usage: $0 [OPTION]... [VAR=VALUE]... 1359 1360To assign environment variables (e.g., CC, CFLAGS...), specify them as 1361VAR=VALUE. See below for descriptions of some of the useful variables. 1362 1363Defaults for the options are specified in brackets. 1364 1365Configuration: 1366 -h, --help display this help and exit 1367 --help=short display options specific to this package 1368 --help=recursive display the short help of all the included packages 1369 -V, --version display version information and exit 1370 -q, --quiet, --silent do not print \`checking ...' messages 1371 --cache-file=FILE cache test results in FILE [disabled] 1372 -C, --config-cache alias for \`--cache-file=config.cache' 1373 -n, --no-create do not create output files 1374 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1375 1376Installation directories: 1377 --prefix=PREFIX install architecture-independent files in PREFIX 1378 [$ac_default_prefix] 1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1380 [PREFIX] 1381 1382By default, \`make install' will install all the files in 1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1384an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1385for instance \`--prefix=\$HOME'. 1386 1387For better control, use the options below. 1388 1389Fine tuning of the installation directories: 1390 --bindir=DIR user executables [EPREFIX/bin] 1391 --sbindir=DIR system admin executables [EPREFIX/sbin] 1392 --libexecdir=DIR program executables [EPREFIX/libexec] 1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1396 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1397 --libdir=DIR object code libraries [EPREFIX/lib] 1398 --includedir=DIR C header files [PREFIX/include] 1399 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1402 --infodir=DIR info documentation [DATAROOTDIR/info] 1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1404 --mandir=DIR man documentation [DATAROOTDIR/man] 1405 --docdir=DIR documentation root [DATAROOTDIR/doc/xfd] 1406 --htmldir=DIR html documentation [DOCDIR] 1407 --dvidir=DIR dvi documentation [DOCDIR] 1408 --pdfdir=DIR pdf documentation [DOCDIR] 1409 --psdir=DIR ps documentation [DOCDIR] 1410_ACEOF 1411 1412 cat <<\_ACEOF 1413 1414Program names: 1415 --program-prefix=PREFIX prepend PREFIX to installed program names 1416 --program-suffix=SUFFIX append SUFFIX to installed program names 1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1418 1419System types: 1420 --build=BUILD configure for building on BUILD [guessed] 1421 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1422_ACEOF 1423fi 1424 1425if test -n "$ac_init_help"; then 1426 case $ac_init_help in 1427 short | recursive ) echo "Configuration of xfd 1.1.4:";; 1428 esac 1429 cat <<\_ACEOF 1430 1431Optional Features: 1432 --disable-option-checking ignore unrecognized --enable/--with options 1433 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1434 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1435 --enable-silent-rules less verbose build output (undo: "make V=1") 1436 --disable-silent-rules verbose build output (undo: "make V=0") 1437 --enable-dependency-tracking 1438 do not reject slow dependency extractors 1439 --disable-dependency-tracking 1440 speeds up one-time build 1441 --disable-selective-werror 1442 Turn off selective compiler errors. (default: 1443 enabled) 1444 --enable-strict-compilation 1445 Enable all warnings from compiler and make them 1446 errors (default: disabled) 1447 1448Optional Packages: 1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1451 --with-localedir=<path> Path to install message files in (default: 1452 datadir/locale) 1453 --without-xkb Disable use of XKB to sound bells (Default is 1454 with-xkb) 1455 --with-appdefaultdir=<pathname> 1456 specify directory for app-defaults files (default is 1457 autodetected) 1458 1459Some influential environment variables: 1460 CC C compiler command 1461 CFLAGS C compiler flags 1462 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1463 nonstandard directory <lib dir> 1464 LIBS libraries to pass to the linker, e.g. -l<library> 1465 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1466 you have headers in a nonstandard directory <include dir> 1467 PKG_CONFIG path to pkg-config utility 1468 PKG_CONFIG_PATH 1469 directories to add to pkg-config's search path 1470 PKG_CONFIG_LIBDIR 1471 path overriding pkg-config's built-in search path 1472 XFD_CFLAGS C compiler flags for XFD, overriding pkg-config 1473 XFD_LIBS linker flags for XFD, overriding pkg-config 1474 APPDEFS_CFLAGS 1475 C compiler flags for APPDEFS, overriding pkg-config 1476 APPDEFS_LIBS 1477 linker flags for APPDEFS, overriding pkg-config 1478 1479Use these variables to override the choices made by `configure' or to help 1480it to find libraries and programs with nonstandard names/locations. 1481 1482Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/-/issues>. 1483_ACEOF 1484ac_status=$? 1485fi 1486 1487if test "$ac_init_help" = "recursive"; then 1488 # If there are subdirs, report their specific --help. 1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1490 test -d "$ac_dir" || 1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1492 continue 1493 ac_builddir=. 1494 1495case "$ac_dir" in 1496.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1497*) 1498 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1499 # A ".." for each directory in $ac_dir_suffix. 1500 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1501 case $ac_top_builddir_sub in 1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1504 esac ;; 1505esac 1506ac_abs_top_builddir=$ac_pwd 1507ac_abs_builddir=$ac_pwd$ac_dir_suffix 1508# for backward compatibility: 1509ac_top_builddir=$ac_top_build_prefix 1510 1511case $srcdir in 1512 .) # We are building in place. 1513 ac_srcdir=. 1514 ac_top_srcdir=$ac_top_builddir_sub 1515 ac_abs_top_srcdir=$ac_pwd ;; 1516 [\\/]* | ?:[\\/]* ) # Absolute name. 1517 ac_srcdir=$srcdir$ac_dir_suffix; 1518 ac_top_srcdir=$srcdir 1519 ac_abs_top_srcdir=$srcdir ;; 1520 *) # Relative name. 1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1522 ac_top_srcdir=$ac_top_build_prefix$srcdir 1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1524esac 1525ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1526 1527 cd "$ac_dir" || { ac_status=$?; continue; } 1528 # Check for configure.gnu first; this name is used for a wrapper for 1529 # Metaconfig's "Configure" on case-insensitive file systems. 1530 if test -f "$ac_srcdir/configure.gnu"; then 1531 echo && 1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1533 elif test -f "$ac_srcdir/configure"; then 1534 echo && 1535 $SHELL "$ac_srcdir/configure" --help=recursive 1536 else 1537 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1538 fi || ac_status=$? 1539 cd "$ac_pwd" || { ac_status=$?; break; } 1540 done 1541fi 1542 1543test -n "$ac_init_help" && exit $ac_status 1544if $ac_init_version; then 1545 cat <<\_ACEOF 1546xfd configure 1.1.4 1547generated by GNU Autoconf 2.71 1548 1549Copyright (C) 2021 Free Software Foundation, Inc. 1550This configure script is free software; the Free Software Foundation 1551gives unlimited permission to copy, distribute and modify it. 1552_ACEOF 1553 exit 1554fi 1555 1556## ------------------------ ## 1557## Autoconf initialization. ## 1558## ------------------------ ## 1559 1560# ac_fn_c_try_compile LINENO 1561# -------------------------- 1562# Try to compile conftest.$ac_ext, and return whether this succeeded. 1563ac_fn_c_try_compile () 1564{ 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1566 rm -f conftest.$ac_objext conftest.beam 1567 if { { ac_try="$ac_compile" 1568case "(($ac_try" in 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1570 *) ac_try_echo=$ac_try;; 1571esac 1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1573printf "%s\n" "$ac_try_echo"; } >&5 1574 (eval "$ac_compile") 2>conftest.err 1575 ac_status=$? 1576 if test -s conftest.err; then 1577 grep -v '^ *+' conftest.err >conftest.er1 1578 cat conftest.er1 >&5 1579 mv -f conftest.er1 conftest.err 1580 fi 1581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1582 test $ac_status = 0; } && { 1583 test -z "$ac_c_werror_flag" || 1584 test ! -s conftest.err 1585 } && test -s conftest.$ac_objext 1586then : 1587 ac_retval=0 1588else $as_nop 1589 printf "%s\n" "$as_me: failed program was:" >&5 1590sed 's/^/| /' conftest.$ac_ext >&5 1591 1592 ac_retval=1 1593fi 1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_compile 1598 1599# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1600# ------------------------------------------------------------------ 1601# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1602# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1603ac_fn_check_decl () 1604{ 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 as_decl_name=`echo $2|sed 's/ *(.*//'` 1607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1608printf %s "checking whether $as_decl_name is declared... " >&6; } 1609if eval test \${$3+y} 1610then : 1611 printf %s "(cached) " >&6 1612else $as_nop 1613 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1614 eval ac_save_FLAGS=\$$6 1615 as_fn_append $6 " $5" 1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1617/* end confdefs.h. */ 1618$4 1619int 1620main (void) 1621{ 1622#ifndef $as_decl_name 1623#ifdef __cplusplus 1624 (void) $as_decl_use; 1625#else 1626 (void) $as_decl_name; 1627#endif 1628#endif 1629 1630 ; 1631 return 0; 1632} 1633_ACEOF 1634if ac_fn_c_try_compile "$LINENO" 1635then : 1636 eval "$3=yes" 1637else $as_nop 1638 eval "$3=no" 1639fi 1640rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1641 eval $6=\$ac_save_FLAGS 1642 1643fi 1644eval ac_res=\$$3 1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1646printf "%s\n" "$ac_res" >&6; } 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 1649} # ac_fn_check_decl 1650 1651# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1652# ------------------------------------------------------- 1653# Tests whether HEADER exists and can be compiled using the include files in 1654# INCLUDES, setting the cache variable VAR accordingly. 1655ac_fn_c_check_header_compile () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1659printf %s "checking for $2... " >&6; } 1660if eval test \${$3+y} 1661then : 1662 printf %s "(cached) " >&6 1663else $as_nop 1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1665/* end confdefs.h. */ 1666$4 1667#include <$2> 1668_ACEOF 1669if ac_fn_c_try_compile "$LINENO" 1670then : 1671 eval "$3=yes" 1672else $as_nop 1673 eval "$3=no" 1674fi 1675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1676fi 1677eval ac_res=\$$3 1678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1679printf "%s\n" "$ac_res" >&6; } 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 1682} # ac_fn_c_check_header_compile 1683 1684# ac_fn_c_try_link LINENO 1685# ----------------------- 1686# Try to link conftest.$ac_ext, and return whether this succeeded. 1687ac_fn_c_try_link () 1688{ 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1690 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1691 if { { ac_try="$ac_link" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697printf "%s\n" "$ac_try_echo"; } >&5 1698 (eval "$ac_link") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } && { 1707 test -z "$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 } && test -s conftest$ac_exeext && { 1710 test "$cross_compiling" = yes || 1711 test -x conftest$ac_exeext 1712 } 1713then : 1714 ac_retval=0 1715else $as_nop 1716 printf "%s\n" "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=1 1720fi 1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1723 # interfere with the next link command; also delete a directory that is 1724 # left behind by Apple's compiler. We do this before executing the actions. 1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 as_fn_set_status $ac_retval 1728 1729} # ac_fn_c_try_link 1730ac_configure_args_raw= 1731for ac_arg 1732do 1733 case $ac_arg in 1734 *\'*) 1735 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1736 esac 1737 as_fn_append ac_configure_args_raw " '$ac_arg'" 1738done 1739 1740case $ac_configure_args_raw in 1741 *$as_nl*) 1742 ac_safe_unquote= ;; 1743 *) 1744 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1745 ac_unsafe_a="$ac_unsafe_z#~" 1746 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1747 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1748esac 1749 1750cat >config.log <<_ACEOF 1751This file contains any messages produced by compilers while 1752running configure, to aid debugging if configure makes a mistake. 1753 1754It was created by xfd $as_me 1.1.4, which was 1755generated by GNU Autoconf 2.71. Invocation command line was 1756 1757 $ $0$ac_configure_args_raw 1758 1759_ACEOF 1760exec 5>>config.log 1761{ 1762cat <<_ASUNAME 1763## --------- ## 1764## Platform. ## 1765## --------- ## 1766 1767hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1768uname -m = `(uname -m) 2>/dev/null || echo unknown` 1769uname -r = `(uname -r) 2>/dev/null || echo unknown` 1770uname -s = `(uname -s) 2>/dev/null || echo unknown` 1771uname -v = `(uname -v) 2>/dev/null || echo unknown` 1772 1773/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1774/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1775 1776/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1777/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1778/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1779/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1780/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1781/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1782/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1783 1784_ASUNAME 1785 1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1787for as_dir in $PATH 1788do 1789 IFS=$as_save_IFS 1790 case $as_dir in #((( 1791 '') as_dir=./ ;; 1792 */) ;; 1793 *) as_dir=$as_dir/ ;; 1794 esac 1795 printf "%s\n" "PATH: $as_dir" 1796 done 1797IFS=$as_save_IFS 1798 1799} >&5 1800 1801cat >&5 <<_ACEOF 1802 1803 1804## ----------- ## 1805## Core tests. ## 1806## ----------- ## 1807 1808_ACEOF 1809 1810 1811# Keep a trace of the command line. 1812# Strip out --no-create and --no-recursion so they do not pile up. 1813# Strip out --silent because we don't want to record it for future runs. 1814# Also quote any args containing shell meta-characters. 1815# Make two passes to allow for proper duplicate-argument suppression. 1816ac_configure_args= 1817ac_configure_args0= 1818ac_configure_args1= 1819ac_must_keep_next=false 1820for ac_pass in 1 2 1821do 1822 for ac_arg 1823 do 1824 case $ac_arg in 1825 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1827 | -silent | --silent | --silen | --sile | --sil) 1828 continue ;; 1829 *\'*) 1830 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1831 esac 1832 case $ac_pass in 1833 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1834 2) 1835 as_fn_append ac_configure_args1 " '$ac_arg'" 1836 if test $ac_must_keep_next = true; then 1837 ac_must_keep_next=false # Got value, back to normal. 1838 else 1839 case $ac_arg in 1840 *=* | --config-cache | -C | -disable-* | --disable-* \ 1841 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1842 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1843 | -with-* | --with-* | -without-* | --without-* | --x) 1844 case "$ac_configure_args0 " in 1845 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1846 esac 1847 ;; 1848 -* ) ac_must_keep_next=true ;; 1849 esac 1850 fi 1851 as_fn_append ac_configure_args " '$ac_arg'" 1852 ;; 1853 esac 1854 done 1855done 1856{ ac_configure_args0=; unset ac_configure_args0;} 1857{ ac_configure_args1=; unset ac_configure_args1;} 1858 1859# When interrupted or exit'd, cleanup temporary files, and complete 1860# config.log. We remove comments because anyway the quotes in there 1861# would cause problems or look ugly. 1862# WARNING: Use '\'' to represent an apostrophe within the trap. 1863# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1864trap 'exit_status=$? 1865 # Sanitize IFS. 1866 IFS=" "" $as_nl" 1867 # Save into config.log some information that might help in debugging. 1868 { 1869 echo 1870 1871 printf "%s\n" "## ---------------- ## 1872## Cache variables. ## 1873## ---------------- ##" 1874 echo 1875 # The following way of writing the cache mishandles newlines in values, 1876( 1877 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1878 eval ac_val=\$$ac_var 1879 case $ac_val in #( 1880 *${as_nl}*) 1881 case $ac_var in #( 1882 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1883printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1884 esac 1885 case $ac_var in #( 1886 _ | IFS | as_nl) ;; #( 1887 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1888 *) { eval $ac_var=; unset $ac_var;} ;; 1889 esac ;; 1890 esac 1891 done 1892 (set) 2>&1 | 1893 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1894 *${as_nl}ac_space=\ *) 1895 sed -n \ 1896 "s/'\''/'\''\\\\'\'''\''/g; 1897 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1898 ;; #( 1899 *) 1900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1901 ;; 1902 esac | 1903 sort 1904) 1905 echo 1906 1907 printf "%s\n" "## ----------------- ## 1908## Output variables. ## 1909## ----------------- ##" 1910 echo 1911 for ac_var in $ac_subst_vars 1912 do 1913 eval ac_val=\$$ac_var 1914 case $ac_val in 1915 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1916 esac 1917 printf "%s\n" "$ac_var='\''$ac_val'\''" 1918 done | sort 1919 echo 1920 1921 if test -n "$ac_subst_files"; then 1922 printf "%s\n" "## ------------------- ## 1923## File substitutions. ## 1924## ------------------- ##" 1925 echo 1926 for ac_var in $ac_subst_files 1927 do 1928 eval ac_val=\$$ac_var 1929 case $ac_val in 1930 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1931 esac 1932 printf "%s\n" "$ac_var='\''$ac_val'\''" 1933 done | sort 1934 echo 1935 fi 1936 1937 if test -s confdefs.h; then 1938 printf "%s\n" "## ----------- ## 1939## confdefs.h. ## 1940## ----------- ##" 1941 echo 1942 cat confdefs.h 1943 echo 1944 fi 1945 test "$ac_signal" != 0 && 1946 printf "%s\n" "$as_me: caught signal $ac_signal" 1947 printf "%s\n" "$as_me: exit $exit_status" 1948 } >&5 1949 rm -f core *.core core.conftest.* && 1950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1951 exit $exit_status 1952' 0 1953for ac_signal in 1 2 13 15; do 1954 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1955done 1956ac_signal=0 1957 1958# confdefs.h avoids OS command line length limits that DEFS can exceed. 1959rm -f -r conftest* confdefs.h 1960 1961printf "%s\n" "/* confdefs.h */" > confdefs.h 1962 1963# Predefined preprocessor variables. 1964 1965printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1966 1967printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1968 1969printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1970 1971printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1972 1973printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1974 1975printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1976 1977 1978# Let the site file select an alternate cache file if it wants to. 1979# Prefer an explicitly selected file to automatically selected ones. 1980if test -n "$CONFIG_SITE"; then 1981 ac_site_files="$CONFIG_SITE" 1982elif test "x$prefix" != xNONE; then 1983 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1984else 1985 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1986fi 1987 1988for ac_site_file in $ac_site_files 1989do 1990 case $ac_site_file in #( 1991 */*) : 1992 ;; #( 1993 *) : 1994 ac_site_file=./$ac_site_file ;; 1995esac 1996 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1998printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1999 sed 's/^/| /' "$ac_site_file" >&5 2000 . "$ac_site_file" \ 2001 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2002printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2003as_fn_error $? "failed to load site script $ac_site_file 2004See \`config.log' for more details" "$LINENO" 5; } 2005 fi 2006done 2007 2008if test -r "$cache_file"; then 2009 # Some versions of bash will fail to source /dev/null (special files 2010 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2011 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2013printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2014 case $cache_file in 2015 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2016 *) . "./$cache_file";; 2017 esac 2018 fi 2019else 2020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2021printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2022 >$cache_file 2023fi 2024 2025# Test code for whether the C compiler supports C89 (global declarations) 2026ac_c_conftest_c89_globals=' 2027/* Does the compiler advertise C89 conformance? 2028 Do not test the value of __STDC__, because some compilers set it to 0 2029 while being otherwise adequately conformant. */ 2030#if !defined __STDC__ 2031# error "Compiler does not advertise C89 conformance" 2032#endif 2033 2034#include <stddef.h> 2035#include <stdarg.h> 2036struct stat; 2037/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2038struct buf { int x; }; 2039struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2040static char *e (p, i) 2041 char **p; 2042 int i; 2043{ 2044 return p[i]; 2045} 2046static char *f (char * (*g) (char **, int), char **p, ...) 2047{ 2048 char *s; 2049 va_list v; 2050 va_start (v,p); 2051 s = g (p, va_arg (v,int)); 2052 va_end (v); 2053 return s; 2054} 2055 2056/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2057 function prototypes and stuff, but not \xHH hex character constants. 2058 These do not provoke an error unfortunately, instead are silently treated 2059 as an "x". The following induces an error, until -std is added to get 2060 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2061 array size at least. It is necessary to write \x00 == 0 to get something 2062 that is true only with -std. */ 2063int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2064 2065/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2066 inside strings and character constants. */ 2067#define FOO(x) '\''x'\'' 2068int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2069 2070int test (int i, double x); 2071struct s1 {int (*f) (int a);}; 2072struct s2 {int (*f) (double a);}; 2073int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2074 int, int);' 2075 2076# Test code for whether the C compiler supports C89 (body of main). 2077ac_c_conftest_c89_main=' 2078ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2079' 2080 2081# Test code for whether the C compiler supports C99 (global declarations) 2082ac_c_conftest_c99_globals=' 2083// Does the compiler advertise C99 conformance? 2084#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2085# error "Compiler does not advertise C99 conformance" 2086#endif 2087 2088#include <stdbool.h> 2089extern int puts (const char *); 2090extern int printf (const char *, ...); 2091extern int dprintf (int, const char *, ...); 2092extern void *malloc (size_t); 2093 2094// Check varargs macros. These examples are taken from C99 6.10.3.5. 2095// dprintf is used instead of fprintf to avoid needing to declare 2096// FILE and stderr. 2097#define debug(...) dprintf (2, __VA_ARGS__) 2098#define showlist(...) puts (#__VA_ARGS__) 2099#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2100static void 2101test_varargs_macros (void) 2102{ 2103 int x = 1234; 2104 int y = 5678; 2105 debug ("Flag"); 2106 debug ("X = %d\n", x); 2107 showlist (The first, second, and third items.); 2108 report (x>y, "x is %d but y is %d", x, y); 2109} 2110 2111// Check long long types. 2112#define BIG64 18446744073709551615ull 2113#define BIG32 4294967295ul 2114#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2115#if !BIG_OK 2116 #error "your preprocessor is broken" 2117#endif 2118#if BIG_OK 2119#else 2120 #error "your preprocessor is broken" 2121#endif 2122static long long int bignum = -9223372036854775807LL; 2123static unsigned long long int ubignum = BIG64; 2124 2125struct incomplete_array 2126{ 2127 int datasize; 2128 double data[]; 2129}; 2130 2131struct named_init { 2132 int number; 2133 const wchar_t *name; 2134 double average; 2135}; 2136 2137typedef const char *ccp; 2138 2139static inline int 2140test_restrict (ccp restrict text) 2141{ 2142 // See if C++-style comments work. 2143 // Iterate through items via the restricted pointer. 2144 // Also check for declarations in for loops. 2145 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2146 continue; 2147 return 0; 2148} 2149 2150// Check varargs and va_copy. 2151static bool 2152test_varargs (const char *format, ...) 2153{ 2154 va_list args; 2155 va_start (args, format); 2156 va_list args_copy; 2157 va_copy (args_copy, args); 2158 2159 const char *str = ""; 2160 int number = 0; 2161 float fnumber = 0; 2162 2163 while (*format) 2164 { 2165 switch (*format++) 2166 { 2167 case '\''s'\'': // string 2168 str = va_arg (args_copy, const char *); 2169 break; 2170 case '\''d'\'': // int 2171 number = va_arg (args_copy, int); 2172 break; 2173 case '\''f'\'': // float 2174 fnumber = va_arg (args_copy, double); 2175 break; 2176 default: 2177 break; 2178 } 2179 } 2180 va_end (args_copy); 2181 va_end (args); 2182 2183 return *str && number && fnumber; 2184} 2185' 2186 2187# Test code for whether the C compiler supports C99 (body of main). 2188ac_c_conftest_c99_main=' 2189 // Check bool. 2190 _Bool success = false; 2191 success |= (argc != 0); 2192 2193 // Check restrict. 2194 if (test_restrict ("String literal") == 0) 2195 success = true; 2196 char *restrict newvar = "Another string"; 2197 2198 // Check varargs. 2199 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2200 test_varargs_macros (); 2201 2202 // Check flexible array members. 2203 struct incomplete_array *ia = 2204 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2205 ia->datasize = 10; 2206 for (int i = 0; i < ia->datasize; ++i) 2207 ia->data[i] = i * 1.234; 2208 2209 // Check named initializers. 2210 struct named_init ni = { 2211 .number = 34, 2212 .name = L"Test wide string", 2213 .average = 543.34343, 2214 }; 2215 2216 ni.number = 58; 2217 2218 int dynamic_array[ni.number]; 2219 dynamic_array[0] = argv[0][0]; 2220 dynamic_array[ni.number - 1] = 543; 2221 2222 // work around unused variable warnings 2223 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2224 || dynamic_array[ni.number - 1] != 543); 2225' 2226 2227# Test code for whether the C compiler supports C11 (global declarations) 2228ac_c_conftest_c11_globals=' 2229// Does the compiler advertise C11 conformance? 2230#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2231# error "Compiler does not advertise C11 conformance" 2232#endif 2233 2234// Check _Alignas. 2235char _Alignas (double) aligned_as_double; 2236char _Alignas (0) no_special_alignment; 2237extern char aligned_as_int; 2238char _Alignas (0) _Alignas (int) aligned_as_int; 2239 2240// Check _Alignof. 2241enum 2242{ 2243 int_alignment = _Alignof (int), 2244 int_array_alignment = _Alignof (int[100]), 2245 char_alignment = _Alignof (char) 2246}; 2247_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2248 2249// Check _Noreturn. 2250int _Noreturn does_not_return (void) { for (;;) continue; } 2251 2252// Check _Static_assert. 2253struct test_static_assert 2254{ 2255 int x; 2256 _Static_assert (sizeof (int) <= sizeof (long int), 2257 "_Static_assert does not work in struct"); 2258 long int y; 2259}; 2260 2261// Check UTF-8 literals. 2262#define u8 syntax error! 2263char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2264 2265// Check duplicate typedefs. 2266typedef long *long_ptr; 2267typedef long int *long_ptr; 2268typedef long_ptr long_ptr; 2269 2270// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2271struct anonymous 2272{ 2273 union { 2274 struct { int i; int j; }; 2275 struct { int k; long int l; } w; 2276 }; 2277 int m; 2278} v1; 2279' 2280 2281# Test code for whether the C compiler supports C11 (body of main). 2282ac_c_conftest_c11_main=' 2283 _Static_assert ((offsetof (struct anonymous, i) 2284 == offsetof (struct anonymous, w.k)), 2285 "Anonymous union alignment botch"); 2286 v1.i = 2; 2287 v1.w.k = 5; 2288 ok |= v1.i != 5; 2289' 2290 2291# Test code for whether the C compiler supports C11 (complete). 2292ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2293${ac_c_conftest_c99_globals} 2294${ac_c_conftest_c11_globals} 2295 2296int 2297main (int argc, char **argv) 2298{ 2299 int ok = 0; 2300 ${ac_c_conftest_c89_main} 2301 ${ac_c_conftest_c99_main} 2302 ${ac_c_conftest_c11_main} 2303 return ok; 2304} 2305" 2306 2307# Test code for whether the C compiler supports C99 (complete). 2308ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2309${ac_c_conftest_c99_globals} 2310 2311int 2312main (int argc, char **argv) 2313{ 2314 int ok = 0; 2315 ${ac_c_conftest_c89_main} 2316 ${ac_c_conftest_c99_main} 2317 return ok; 2318} 2319" 2320 2321# Test code for whether the C compiler supports C89 (complete). 2322ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2323 2324int 2325main (int argc, char **argv) 2326{ 2327 int ok = 0; 2328 ${ac_c_conftest_c89_main} 2329 return ok; 2330} 2331" 2332 2333as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2334as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2335as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2336as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2337as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2338as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2339as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2340as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2341as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2342 2343# Auxiliary files required by this configure script. 2344ac_aux_files="config.guess config.sub compile missing install-sh" 2345 2346# Locations in which to look for auxiliary files. 2347ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2348 2349# Search for a directory containing all of the required auxiliary files, 2350# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2351# If we don't find one directory that contains all the files we need, 2352# we report the set of missing files from the *first* directory in 2353# $ac_aux_dir_candidates and give up. 2354ac_missing_aux_files="" 2355ac_first_candidate=: 2356printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358as_found=false 2359for as_dir in $ac_aux_dir_candidates 2360do 2361 IFS=$as_save_IFS 2362 case $as_dir in #((( 2363 '') as_dir=./ ;; 2364 */) ;; 2365 *) as_dir=$as_dir/ ;; 2366 esac 2367 as_found=: 2368 2369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2370 ac_aux_dir_found=yes 2371 ac_install_sh= 2372 for ac_aux in $ac_aux_files 2373 do 2374 # As a special case, if "install-sh" is required, that requirement 2375 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2376 # and $ac_install_sh is set appropriately for whichever one is found. 2377 if test x"$ac_aux" = x"install-sh" 2378 then 2379 if test -f "${as_dir}install-sh"; then 2380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2381 ac_install_sh="${as_dir}install-sh -c" 2382 elif test -f "${as_dir}install.sh"; then 2383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2384 ac_install_sh="${as_dir}install.sh -c" 2385 elif test -f "${as_dir}shtool"; then 2386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2387 ac_install_sh="${as_dir}shtool install -c" 2388 else 2389 ac_aux_dir_found=no 2390 if $ac_first_candidate; then 2391 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2392 else 2393 break 2394 fi 2395 fi 2396 else 2397 if test -f "${as_dir}${ac_aux}"; then 2398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2399 else 2400 ac_aux_dir_found=no 2401 if $ac_first_candidate; then 2402 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2403 else 2404 break 2405 fi 2406 fi 2407 fi 2408 done 2409 if test "$ac_aux_dir_found" = yes; then 2410 ac_aux_dir="$as_dir" 2411 break 2412 fi 2413 ac_first_candidate=false 2414 2415 as_found=false 2416done 2417IFS=$as_save_IFS 2418if $as_found 2419then : 2420 2421else $as_nop 2422 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2423fi 2424 2425 2426# These three variables are undocumented and unsupported, 2427# and are intended to be withdrawn in a future Autoconf release. 2428# They can cause serious problems if a builder's source tree is in a directory 2429# whose full name contains unusual characters. 2430if test -f "${ac_aux_dir}config.guess"; then 2431 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2432fi 2433if test -f "${ac_aux_dir}config.sub"; then 2434 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2435fi 2436if test -f "$ac_aux_dir/configure"; then 2437 ac_configure="$SHELL ${ac_aux_dir}configure" 2438fi 2439 2440# Check that the precious variables saved in the cache have kept the same 2441# value. 2442ac_cache_corrupted=false 2443for ac_var in $ac_precious_vars; do 2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2445 eval ac_new_set=\$ac_env_${ac_var}_set 2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2447 eval ac_new_val=\$ac_env_${ac_var}_value 2448 case $ac_old_set,$ac_new_set in 2449 set,) 2450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2451printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2452 ac_cache_corrupted=: ;; 2453 ,set) 2454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2455printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2456 ac_cache_corrupted=: ;; 2457 ,);; 2458 *) 2459 if test "x$ac_old_val" != "x$ac_new_val"; then 2460 # differences in whitespace do not lead to failure. 2461 ac_old_val_w=`echo x $ac_old_val` 2462 ac_new_val_w=`echo x $ac_new_val` 2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2465printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2466 ac_cache_corrupted=: 2467 else 2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2469printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2470 eval $ac_var=\$ac_old_val 2471 fi 2472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2473printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2475printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2476 fi;; 2477 esac 2478 # Pass precious variables to config.status. 2479 if test "$ac_new_set" = set; then 2480 case $ac_new_val in 2481 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2482 *) ac_arg=$ac_var=$ac_new_val ;; 2483 esac 2484 case " $ac_configure_args " in 2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2487 esac 2488 fi 2489done 2490if $ac_cache_corrupted; then 2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2492printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2494printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2495 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2496 and start over" "$LINENO" 5 2497fi 2498## -------------------- ## 2499## Main body of script. ## 2500## -------------------- ## 2501 2502ac_ext=c 2503ac_cpp='$CPP $CPPFLAGS' 2504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2506ac_compiler_gnu=$ac_cv_c_compiler_gnu 2507 2508 2509 2510ac_config_headers="$ac_config_headers config.h" 2511 2512 2513# Initialize Automake 2514am__api_version='1.16' 2515 2516 2517 2518 # Find a good install program. We prefer a C program (faster), 2519# so one script is as good as another. But avoid the broken or 2520# incompatible versions: 2521# SysV /etc/install, /usr/sbin/install 2522# SunOS /usr/etc/install 2523# IRIX /sbin/install 2524# AIX /bin/install 2525# AmigaOS /C/install, which installs bootblocks on floppy discs 2526# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2527# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2528# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2529# OS/2's system install, which has a completely different semantic 2530# ./install, which can be erroneously created by make from ./install.sh. 2531# Reject install programs that cannot install multiple files. 2532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2533printf %s "checking for a BSD-compatible install... " >&6; } 2534if test -z "$INSTALL"; then 2535if test ${ac_cv_path_install+y} 2536then : 2537 printf %s "(cached) " >&6 2538else $as_nop 2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2540for as_dir in $PATH 2541do 2542 IFS=$as_save_IFS 2543 case $as_dir in #((( 2544 '') as_dir=./ ;; 2545 */) ;; 2546 *) as_dir=$as_dir/ ;; 2547 esac 2548 # Account for fact that we put trailing slashes in our PATH walk. 2549case $as_dir in #(( 2550 ./ | /[cC]/* | \ 2551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2552 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2553 /usr/ucb/* ) ;; 2554 *) 2555 # OSF1 and SCO ODT 3.0 have their own names for install. 2556 # Don't use installbsd from OSF since it installs stuff as root 2557 # by default. 2558 for ac_prog in ginstall scoinst install; do 2559 for ac_exec_ext in '' $ac_executable_extensions; do 2560 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2561 if test $ac_prog = install && 2562 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2563 # AIX install. It has an incompatible calling convention. 2564 : 2565 elif test $ac_prog = install && 2566 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2567 # program-specific install script used by HP pwplus--don't use. 2568 : 2569 else 2570 rm -rf conftest.one conftest.two conftest.dir 2571 echo one > conftest.one 2572 echo two > conftest.two 2573 mkdir conftest.dir 2574 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2575 test -s conftest.one && test -s conftest.two && 2576 test -s conftest.dir/conftest.one && 2577 test -s conftest.dir/conftest.two 2578 then 2579 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2580 break 3 2581 fi 2582 fi 2583 fi 2584 done 2585 done 2586 ;; 2587esac 2588 2589 done 2590IFS=$as_save_IFS 2591 2592rm -rf conftest.one conftest.two conftest.dir 2593 2594fi 2595 if test ${ac_cv_path_install+y}; then 2596 INSTALL=$ac_cv_path_install 2597 else 2598 # As a last resort, use the slow shell script. Don't cache a 2599 # value for INSTALL within a source directory, because that will 2600 # break other packages using the cache if that directory is 2601 # removed, or if the value is a relative name. 2602 INSTALL=$ac_install_sh 2603 fi 2604fi 2605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2606printf "%s\n" "$INSTALL" >&6; } 2607 2608# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2609# It thinks the first close brace ends the variable substitution. 2610test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2611 2612test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2613 2614test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2615 2616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2617printf %s "checking whether build environment is sane... " >&6; } 2618# Reject unsafe characters in $srcdir or the absolute working directory 2619# name. Accept space and tab only in the latter. 2620am_lf=' 2621' 2622case `pwd` in 2623 *[\\\"\#\$\&\'\`$am_lf]*) 2624 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2625esac 2626case $srcdir in 2627 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2628 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2629esac 2630 2631# Do 'set' in a subshell so we don't clobber the current shell's 2632# arguments. Must try -L first in case configure is actually a 2633# symlink; some systems play weird games with the mod time of symlinks 2634# (eg FreeBSD returns the mod time of the symlink's containing 2635# directory). 2636if ( 2637 am_has_slept=no 2638 for am_try in 1 2; do 2639 echo "timestamp, slept: $am_has_slept" > conftest.file 2640 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2641 if test "$*" = "X"; then 2642 # -L didn't work. 2643 set X `ls -t "$srcdir/configure" conftest.file` 2644 fi 2645 if test "$*" != "X $srcdir/configure conftest.file" \ 2646 && test "$*" != "X conftest.file $srcdir/configure"; then 2647 2648 # If neither matched, then we have a broken ls. This can happen 2649 # if, for instance, CONFIG_SHELL is bash and it inherits a 2650 # broken ls alias from the environment. This has actually 2651 # happened. Such a system could not be considered "sane". 2652 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2653 alias in your environment" "$LINENO" 5 2654 fi 2655 if test "$2" = conftest.file || test $am_try -eq 2; then 2656 break 2657 fi 2658 # Just in case. 2659 sleep 1 2660 am_has_slept=yes 2661 done 2662 test "$2" = conftest.file 2663 ) 2664then 2665 # Ok. 2666 : 2667else 2668 as_fn_error $? "newly created file is older than distributed files! 2669Check your system clock" "$LINENO" 5 2670fi 2671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2672printf "%s\n" "yes" >&6; } 2673# If we didn't sleep, we still need to ensure time stamps of config.status and 2674# generated files are strictly newer. 2675am_sleep_pid= 2676if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2677 ( sleep 1 ) & 2678 am_sleep_pid=$! 2679fi 2680 2681rm -f conftest.file 2682 2683test "$program_prefix" != NONE && 2684 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2685# Use a double $ so make ignores it. 2686test "$program_suffix" != NONE && 2687 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2688# Double any \ or $. 2689# By default was `s,x,x', remove it if useless. 2690ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2691program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2692 2693 2694# Expand $ac_aux_dir to an absolute path. 2695am_aux_dir=`cd "$ac_aux_dir" && pwd` 2696 2697 2698 if test x"${MISSING+set}" != xset; then 2699 MISSING="\${SHELL} '$am_aux_dir/missing'" 2700fi 2701# Use eval to expand $SHELL 2702if eval "$MISSING --is-lightweight"; then 2703 am_missing_run="$MISSING " 2704else 2705 am_missing_run= 2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2707printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2708fi 2709 2710if test x"${install_sh+set}" != xset; then 2711 case $am_aux_dir in 2712 *\ * | *\ *) 2713 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2714 *) 2715 install_sh="\${SHELL} $am_aux_dir/install-sh" 2716 esac 2717fi 2718 2719# Installed binaries are usually stripped using 'strip' when the user 2720# run "make install-strip". However 'strip' might not be the right 2721# tool to use in cross-compilation environments, therefore Automake 2722# will honor the 'STRIP' environment variable to overrule this program. 2723if test "$cross_compiling" != no; then 2724 if test -n "$ac_tool_prefix"; then 2725 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2726set dummy ${ac_tool_prefix}strip; ac_word=$2 2727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2728printf %s "checking for $ac_word... " >&6; } 2729if test ${ac_cv_prog_STRIP+y} 2730then : 2731 printf %s "(cached) " >&6 2732else $as_nop 2733 if test -n "$STRIP"; then 2734 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2735else 2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2737for as_dir in $PATH 2738do 2739 IFS=$as_save_IFS 2740 case $as_dir in #((( 2741 '') as_dir=./ ;; 2742 */) ;; 2743 *) as_dir=$as_dir/ ;; 2744 esac 2745 for ac_exec_ext in '' $ac_executable_extensions; do 2746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2747 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2749 break 2 2750 fi 2751done 2752 done 2753IFS=$as_save_IFS 2754 2755fi 2756fi 2757STRIP=$ac_cv_prog_STRIP 2758if test -n "$STRIP"; then 2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2760printf "%s\n" "$STRIP" >&6; } 2761else 2762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2763printf "%s\n" "no" >&6; } 2764fi 2765 2766 2767fi 2768if test -z "$ac_cv_prog_STRIP"; then 2769 ac_ct_STRIP=$STRIP 2770 # Extract the first word of "strip", so it can be a program name with args. 2771set dummy strip; ac_word=$2 2772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2773printf %s "checking for $ac_word... " >&6; } 2774if test ${ac_cv_prog_ac_ct_STRIP+y} 2775then : 2776 printf %s "(cached) " >&6 2777else $as_nop 2778 if test -n "$ac_ct_STRIP"; then 2779 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2780else 2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2782for as_dir in $PATH 2783do 2784 IFS=$as_save_IFS 2785 case $as_dir in #((( 2786 '') as_dir=./ ;; 2787 */) ;; 2788 *) as_dir=$as_dir/ ;; 2789 esac 2790 for ac_exec_ext in '' $ac_executable_extensions; do 2791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2792 ac_cv_prog_ac_ct_STRIP="strip" 2793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2794 break 2 2795 fi 2796done 2797 done 2798IFS=$as_save_IFS 2799 2800fi 2801fi 2802ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2803if test -n "$ac_ct_STRIP"; then 2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2805printf "%s\n" "$ac_ct_STRIP" >&6; } 2806else 2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2808printf "%s\n" "no" >&6; } 2809fi 2810 2811 if test "x$ac_ct_STRIP" = x; then 2812 STRIP=":" 2813 else 2814 case $cross_compiling:$ac_tool_warned in 2815yes:) 2816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2817printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2818ac_tool_warned=yes ;; 2819esac 2820 STRIP=$ac_ct_STRIP 2821 fi 2822else 2823 STRIP="$ac_cv_prog_STRIP" 2824fi 2825 2826fi 2827INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2828 2829 2830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2831printf %s "checking for a race-free mkdir -p... " >&6; } 2832if test -z "$MKDIR_P"; then 2833 if test ${ac_cv_path_mkdir+y} 2834then : 2835 printf %s "(cached) " >&6 2836else $as_nop 2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2838for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2839do 2840 IFS=$as_save_IFS 2841 case $as_dir in #((( 2842 '') as_dir=./ ;; 2843 */) ;; 2844 *) as_dir=$as_dir/ ;; 2845 esac 2846 for ac_prog in mkdir gmkdir; do 2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2849 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2850 'mkdir ('*'coreutils) '* | \ 2851 'BusyBox '* | \ 2852 'mkdir (fileutils) '4.1*) 2853 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2854 break 3;; 2855 esac 2856 done 2857 done 2858 done 2859IFS=$as_save_IFS 2860 2861fi 2862 2863 test -d ./--version && rmdir ./--version 2864 if test ${ac_cv_path_mkdir+y}; then 2865 MKDIR_P="$ac_cv_path_mkdir -p" 2866 else 2867 # As a last resort, use the slow shell script. Don't cache a 2868 # value for MKDIR_P within a source directory, because that will 2869 # break other packages using the cache if that directory is 2870 # removed, or if the value is a relative name. 2871 MKDIR_P="$ac_install_sh -d" 2872 fi 2873fi 2874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2875printf "%s\n" "$MKDIR_P" >&6; } 2876 2877for ac_prog in gawk mawk nawk awk 2878do 2879 # Extract the first word of "$ac_prog", so it can be a program name with args. 2880set dummy $ac_prog; ac_word=$2 2881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2882printf %s "checking for $ac_word... " >&6; } 2883if test ${ac_cv_prog_AWK+y} 2884then : 2885 printf %s "(cached) " >&6 2886else $as_nop 2887 if test -n "$AWK"; then 2888 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2889else 2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891for as_dir in $PATH 2892do 2893 IFS=$as_save_IFS 2894 case $as_dir in #((( 2895 '') as_dir=./ ;; 2896 */) ;; 2897 *) as_dir=$as_dir/ ;; 2898 esac 2899 for ac_exec_ext in '' $ac_executable_extensions; do 2900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2901 ac_cv_prog_AWK="$ac_prog" 2902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2903 break 2 2904 fi 2905done 2906 done 2907IFS=$as_save_IFS 2908 2909fi 2910fi 2911AWK=$ac_cv_prog_AWK 2912if test -n "$AWK"; then 2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2914printf "%s\n" "$AWK" >&6; } 2915else 2916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2917printf "%s\n" "no" >&6; } 2918fi 2919 2920 2921 test -n "$AWK" && break 2922done 2923 2924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2925printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2926set x ${MAKE-make} 2927ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2928if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2929then : 2930 printf %s "(cached) " >&6 2931else $as_nop 2932 cat >conftest.make <<\_ACEOF 2933SHELL = /bin/sh 2934all: 2935 @echo '@@@%%%=$(MAKE)=@@@%%%' 2936_ACEOF 2937# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2938case `${MAKE-make} -f conftest.make 2>/dev/null` in 2939 *@@@%%%=?*=@@@%%%*) 2940 eval ac_cv_prog_make_${ac_make}_set=yes;; 2941 *) 2942 eval ac_cv_prog_make_${ac_make}_set=no;; 2943esac 2944rm -f conftest.make 2945fi 2946if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2948printf "%s\n" "yes" >&6; } 2949 SET_MAKE= 2950else 2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2952printf "%s\n" "no" >&6; } 2953 SET_MAKE="MAKE=${MAKE-make}" 2954fi 2955 2956rm -rf .tst 2>/dev/null 2957mkdir .tst 2>/dev/null 2958if test -d .tst; then 2959 am__leading_dot=. 2960else 2961 am__leading_dot=_ 2962fi 2963rmdir .tst 2>/dev/null 2964 2965# Check whether --enable-silent-rules was given. 2966if test ${enable_silent_rules+y} 2967then : 2968 enableval=$enable_silent_rules; 2969fi 2970 2971case $enable_silent_rules in # ((( 2972 yes) AM_DEFAULT_VERBOSITY=0;; 2973 no) AM_DEFAULT_VERBOSITY=1;; 2974 *) AM_DEFAULT_VERBOSITY=1;; 2975esac 2976am_make=${MAKE-make} 2977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2978printf %s "checking whether $am_make supports nested variables... " >&6; } 2979if test ${am_cv_make_support_nested_variables+y} 2980then : 2981 printf %s "(cached) " >&6 2982else $as_nop 2983 if printf "%s\n" 'TRUE=$(BAR$(V)) 2984BAR0=false 2985BAR1=true 2986V=1 2987am__doit: 2988 @$(TRUE) 2989.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2990 am_cv_make_support_nested_variables=yes 2991else 2992 am_cv_make_support_nested_variables=no 2993fi 2994fi 2995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2996printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 2997if test $am_cv_make_support_nested_variables = yes; then 2998 AM_V='$(V)' 2999 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3000else 3001 AM_V=$AM_DEFAULT_VERBOSITY 3002 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3003fi 3004AM_BACKSLASH='\' 3005 3006if test "`cd $srcdir && pwd`" != "`pwd`"; then 3007 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3008 # is not polluted with repeated "-I." 3009 am__isrc=' -I$(srcdir)' 3010 # test to see if srcdir already configured 3011 if test -f $srcdir/config.status; then 3012 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3013 fi 3014fi 3015 3016# test whether we have cygpath 3017if test -z "$CYGPATH_W"; then 3018 if (cygpath --version) >/dev/null 2>/dev/null; then 3019 CYGPATH_W='cygpath -w' 3020 else 3021 CYGPATH_W=echo 3022 fi 3023fi 3024 3025 3026# Define the identity of the package. 3027 PACKAGE='xfd' 3028 VERSION='1.1.4' 3029 3030 3031printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3032 3033 3034printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3035 3036# Some tools Automake needs. 3037 3038ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3039 3040 3041AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3042 3043 3044AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3045 3046 3047AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3048 3049 3050MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3051 3052# For better backward compatibility. To be removed once Automake 1.9.x 3053# dies out for good. For more background, see: 3054# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3055# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3056mkdir_p='$(MKDIR_P)' 3057 3058# We need awk for the "check" target (and possibly the TAP driver). The 3059# system "awk" is bad on some platforms. 3060# Always define AMTAR for backward compatibility. Yes, it's still used 3061# in the wild :-( We should find a proper way to deprecate it ... 3062AMTAR='$${TAR-tar}' 3063 3064 3065# We'll loop over all known methods to create a tar archive until one works. 3066_am_tools='gnutar pax cpio none' 3067 3068am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3069 3070 3071 3072 3073 3074# Variables for tags utilities; see am/tags.am 3075if test -z "$CTAGS"; then 3076 CTAGS=ctags 3077fi 3078 3079if test -z "$ETAGS"; then 3080 ETAGS=etags 3081fi 3082 3083if test -z "$CSCOPE"; then 3084 CSCOPE=cscope 3085fi 3086 3087 3088 3089# POSIX will say in a future version that running "rm -f" with no argument 3090# is OK; and we want to be able to make that assumption in our Makefile 3091# recipes. So use an aggressive probe to check that the usage we want is 3092# actually supported "in the wild" to an acceptable degree. 3093# See automake bug#10828. 3094# To make any issue more visible, cause the running configure to be aborted 3095# by default if the 'rm' program in use doesn't match our expectations; the 3096# user can still override this though. 3097if rm -f && rm -fr && rm -rf; then : OK; else 3098 cat >&2 <<'END' 3099Oops! 3100 3101Your 'rm' program seems unable to run without file operands specified 3102on the command line, even when the '-f' option is present. This is contrary 3103to the behaviour of most rm programs out there, and not conforming with 3104the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3105 3106Please tell bug-automake@gnu.org about your system, including the value 3107of your $PATH and any error possibly output before this message. This 3108can help us improve future automake versions. 3109 3110END 3111 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3112 echo 'Configuration will proceed anyway, since you have set the' >&2 3113 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3114 echo >&2 3115 else 3116 cat >&2 <<'END' 3117Aborting the configuration process, to ensure you take notice of the issue. 3118 3119You can download and install GNU coreutils to get an 'rm' implementation 3120that behaves properly: <https://www.gnu.org/software/coreutils/>. 3121 3122If you want to complete the configuration process using your problematic 3123'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3124to "yes", and re-run configure. 3125 3126END 3127 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3128 fi 3129fi 3130 3131 3132# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153DEPDIR="${am__leading_dot}deps" 3154 3155ac_config_commands="$ac_config_commands depfiles" 3156 3157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3158printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3159cat > confinc.mk << 'END' 3160am__doit: 3161 @echo this is the am__doit target >confinc.out 3162.PHONY: am__doit 3163END 3164am__include="#" 3165am__quote= 3166# BSD make does it like this. 3167echo '.include "confinc.mk" # ignored' > confmf.BSD 3168# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3169echo 'include confinc.mk # ignored' > confmf.GNU 3170_am_result=no 3171for s in GNU BSD; do 3172 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3173 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3174 ac_status=$? 3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3176 (exit $ac_status); } 3177 case $?:`cat confinc.out 2>/dev/null` in #( 3178 '0:this is the am__doit target') : 3179 case $s in #( 3180 BSD) : 3181 am__include='.include' am__quote='"' ;; #( 3182 *) : 3183 am__include='include' am__quote='' ;; 3184esac ;; #( 3185 *) : 3186 ;; 3187esac 3188 if test "$am__include" != "#"; then 3189 _am_result="yes ($s style)" 3190 break 3191 fi 3192done 3193rm -f confinc.* confmf.* 3194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3195printf "%s\n" "${_am_result}" >&6; } 3196 3197# Check whether --enable-dependency-tracking was given. 3198if test ${enable_dependency_tracking+y} 3199then : 3200 enableval=$enable_dependency_tracking; 3201fi 3202 3203if test "x$enable_dependency_tracking" != xno; then 3204 am_depcomp="$ac_aux_dir/depcomp" 3205 AMDEPBACKSLASH='\' 3206 am__nodep='_no' 3207fi 3208 if test "x$enable_dependency_tracking" != xno; then 3209 AMDEP_TRUE= 3210 AMDEP_FALSE='#' 3211else 3212 AMDEP_TRUE='#' 3213 AMDEP_FALSE= 3214fi 3215 3216 3217ac_ext=c 3218ac_cpp='$CPP $CPPFLAGS' 3219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3221ac_compiler_gnu=$ac_cv_c_compiler_gnu 3222if test -n "$ac_tool_prefix"; then 3223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3224set dummy ${ac_tool_prefix}gcc; ac_word=$2 3225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3226printf %s "checking for $ac_word... " >&6; } 3227if test ${ac_cv_prog_CC+y} 3228then : 3229 printf %s "(cached) " >&6 3230else $as_nop 3231 if test -n "$CC"; then 3232 ac_cv_prog_CC="$CC" # Let the user override the test. 3233else 3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3235for as_dir in $PATH 3236do 3237 IFS=$as_save_IFS 3238 case $as_dir in #((( 3239 '') as_dir=./ ;; 3240 */) ;; 3241 *) as_dir=$as_dir/ ;; 3242 esac 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3245 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3247 break 2 3248 fi 3249done 3250 done 3251IFS=$as_save_IFS 3252 3253fi 3254fi 3255CC=$ac_cv_prog_CC 3256if test -n "$CC"; then 3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258printf "%s\n" "$CC" >&6; } 3259else 3260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261printf "%s\n" "no" >&6; } 3262fi 3263 3264 3265fi 3266if test -z "$ac_cv_prog_CC"; then 3267 ac_ct_CC=$CC 3268 # Extract the first word of "gcc", so it can be a program name with args. 3269set dummy gcc; ac_word=$2 3270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3271printf %s "checking for $ac_word... " >&6; } 3272if test ${ac_cv_prog_ac_ct_CC+y} 3273then : 3274 printf %s "(cached) " >&6 3275else $as_nop 3276 if test -n "$ac_ct_CC"; then 3277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3278else 3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3280for as_dir in $PATH 3281do 3282 IFS=$as_save_IFS 3283 case $as_dir in #((( 3284 '') as_dir=./ ;; 3285 */) ;; 3286 *) as_dir=$as_dir/ ;; 3287 esac 3288 for ac_exec_ext in '' $ac_executable_extensions; do 3289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3290 ac_cv_prog_ac_ct_CC="gcc" 3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3292 break 2 3293 fi 3294done 3295 done 3296IFS=$as_save_IFS 3297 3298fi 3299fi 3300ac_ct_CC=$ac_cv_prog_ac_ct_CC 3301if test -n "$ac_ct_CC"; then 3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3303printf "%s\n" "$ac_ct_CC" >&6; } 3304else 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3306printf "%s\n" "no" >&6; } 3307fi 3308 3309 if test "x$ac_ct_CC" = x; then 3310 CC="" 3311 else 3312 case $cross_compiling:$ac_tool_warned in 3313yes:) 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3315printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3316ac_tool_warned=yes ;; 3317esac 3318 CC=$ac_ct_CC 3319 fi 3320else 3321 CC="$ac_cv_prog_CC" 3322fi 3323 3324if test -z "$CC"; then 3325 if test -n "$ac_tool_prefix"; then 3326 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3327set dummy ${ac_tool_prefix}cc; ac_word=$2 3328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3329printf %s "checking for $ac_word... " >&6; } 3330if test ${ac_cv_prog_CC+y} 3331then : 3332 printf %s "(cached) " >&6 3333else $as_nop 3334 if test -n "$CC"; then 3335 ac_cv_prog_CC="$CC" # Let the user override the test. 3336else 3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3338for as_dir in $PATH 3339do 3340 IFS=$as_save_IFS 3341 case $as_dir in #((( 3342 '') as_dir=./ ;; 3343 */) ;; 3344 *) as_dir=$as_dir/ ;; 3345 esac 3346 for ac_exec_ext in '' $ac_executable_extensions; do 3347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3348 ac_cv_prog_CC="${ac_tool_prefix}cc" 3349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3350 break 2 3351 fi 3352done 3353 done 3354IFS=$as_save_IFS 3355 3356fi 3357fi 3358CC=$ac_cv_prog_CC 3359if test -n "$CC"; then 3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3361printf "%s\n" "$CC" >&6; } 3362else 3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3364printf "%s\n" "no" >&6; } 3365fi 3366 3367 3368 fi 3369fi 3370if test -z "$CC"; then 3371 # Extract the first word of "cc", so it can be a program name with args. 3372set dummy cc; ac_word=$2 3373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3374printf %s "checking for $ac_word... " >&6; } 3375if test ${ac_cv_prog_CC+y} 3376then : 3377 printf %s "(cached) " >&6 3378else $as_nop 3379 if test -n "$CC"; then 3380 ac_cv_prog_CC="$CC" # Let the user override the test. 3381else 3382 ac_prog_rejected=no 3383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3384for as_dir in $PATH 3385do 3386 IFS=$as_save_IFS 3387 case $as_dir in #((( 3388 '') as_dir=./ ;; 3389 */) ;; 3390 *) as_dir=$as_dir/ ;; 3391 esac 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3394 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3395 ac_prog_rejected=yes 3396 continue 3397 fi 3398 ac_cv_prog_CC="cc" 3399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3400 break 2 3401 fi 3402done 3403 done 3404IFS=$as_save_IFS 3405 3406if test $ac_prog_rejected = yes; then 3407 # We found a bogon in the path, so make sure we never use it. 3408 set dummy $ac_cv_prog_CC 3409 shift 3410 if test $# != 0; then 3411 # We chose a different compiler from the bogus one. 3412 # However, it has the same basename, so the bogon will be chosen 3413 # first if we set CC to just the basename; use the full file name. 3414 shift 3415 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3416 fi 3417fi 3418fi 3419fi 3420CC=$ac_cv_prog_CC 3421if test -n "$CC"; then 3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3423printf "%s\n" "$CC" >&6; } 3424else 3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3426printf "%s\n" "no" >&6; } 3427fi 3428 3429 3430fi 3431if test -z "$CC"; then 3432 if test -n "$ac_tool_prefix"; then 3433 for ac_prog in cl.exe 3434 do 3435 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3436set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3438printf %s "checking for $ac_word... " >&6; } 3439if test ${ac_cv_prog_CC+y} 3440then : 3441 printf %s "(cached) " >&6 3442else $as_nop 3443 if test -n "$CC"; then 3444 ac_cv_prog_CC="$CC" # Let the user override the test. 3445else 3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3447for as_dir in $PATH 3448do 3449 IFS=$as_save_IFS 3450 case $as_dir in #((( 3451 '') as_dir=./ ;; 3452 */) ;; 3453 *) as_dir=$as_dir/ ;; 3454 esac 3455 for ac_exec_ext in '' $ac_executable_extensions; do 3456 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3457 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3459 break 2 3460 fi 3461done 3462 done 3463IFS=$as_save_IFS 3464 3465fi 3466fi 3467CC=$ac_cv_prog_CC 3468if test -n "$CC"; then 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3470printf "%s\n" "$CC" >&6; } 3471else 3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3473printf "%s\n" "no" >&6; } 3474fi 3475 3476 3477 test -n "$CC" && break 3478 done 3479fi 3480if test -z "$CC"; then 3481 ac_ct_CC=$CC 3482 for ac_prog in cl.exe 3483do 3484 # Extract the first word of "$ac_prog", so it can be a program name with args. 3485set dummy $ac_prog; ac_word=$2 3486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3487printf %s "checking for $ac_word... " >&6; } 3488if test ${ac_cv_prog_ac_ct_CC+y} 3489then : 3490 printf %s "(cached) " >&6 3491else $as_nop 3492 if test -n "$ac_ct_CC"; then 3493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3494else 3495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3496for as_dir in $PATH 3497do 3498 IFS=$as_save_IFS 3499 case $as_dir in #((( 3500 '') as_dir=./ ;; 3501 */) ;; 3502 *) as_dir=$as_dir/ ;; 3503 esac 3504 for ac_exec_ext in '' $ac_executable_extensions; do 3505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3506 ac_cv_prog_ac_ct_CC="$ac_prog" 3507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3508 break 2 3509 fi 3510done 3511 done 3512IFS=$as_save_IFS 3513 3514fi 3515fi 3516ac_ct_CC=$ac_cv_prog_ac_ct_CC 3517if test -n "$ac_ct_CC"; then 3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3519printf "%s\n" "$ac_ct_CC" >&6; } 3520else 3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3522printf "%s\n" "no" >&6; } 3523fi 3524 3525 3526 test -n "$ac_ct_CC" && break 3527done 3528 3529 if test "x$ac_ct_CC" = x; then 3530 CC="" 3531 else 3532 case $cross_compiling:$ac_tool_warned in 3533yes:) 3534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3536ac_tool_warned=yes ;; 3537esac 3538 CC=$ac_ct_CC 3539 fi 3540fi 3541 3542fi 3543if test -z "$CC"; then 3544 if test -n "$ac_tool_prefix"; then 3545 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3546set dummy ${ac_tool_prefix}clang; ac_word=$2 3547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3548printf %s "checking for $ac_word... " >&6; } 3549if test ${ac_cv_prog_CC+y} 3550then : 3551 printf %s "(cached) " >&6 3552else $as_nop 3553 if test -n "$CC"; then 3554 ac_cv_prog_CC="$CC" # Let the user override the test. 3555else 3556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3557for as_dir in $PATH 3558do 3559 IFS=$as_save_IFS 3560 case $as_dir in #((( 3561 '') as_dir=./ ;; 3562 */) ;; 3563 *) as_dir=$as_dir/ ;; 3564 esac 3565 for ac_exec_ext in '' $ac_executable_extensions; do 3566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3567 ac_cv_prog_CC="${ac_tool_prefix}clang" 3568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3569 break 2 3570 fi 3571done 3572 done 3573IFS=$as_save_IFS 3574 3575fi 3576fi 3577CC=$ac_cv_prog_CC 3578if test -n "$CC"; then 3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3580printf "%s\n" "$CC" >&6; } 3581else 3582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3583printf "%s\n" "no" >&6; } 3584fi 3585 3586 3587fi 3588if test -z "$ac_cv_prog_CC"; then 3589 ac_ct_CC=$CC 3590 # Extract the first word of "clang", so it can be a program name with args. 3591set dummy clang; ac_word=$2 3592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3593printf %s "checking for $ac_word... " >&6; } 3594if test ${ac_cv_prog_ac_ct_CC+y} 3595then : 3596 printf %s "(cached) " >&6 3597else $as_nop 3598 if test -n "$ac_ct_CC"; then 3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3600else 3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3602for as_dir in $PATH 3603do 3604 IFS=$as_save_IFS 3605 case $as_dir in #((( 3606 '') as_dir=./ ;; 3607 */) ;; 3608 *) as_dir=$as_dir/ ;; 3609 esac 3610 for ac_exec_ext in '' $ac_executable_extensions; do 3611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3612 ac_cv_prog_ac_ct_CC="clang" 3613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3614 break 2 3615 fi 3616done 3617 done 3618IFS=$as_save_IFS 3619 3620fi 3621fi 3622ac_ct_CC=$ac_cv_prog_ac_ct_CC 3623if test -n "$ac_ct_CC"; then 3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3625printf "%s\n" "$ac_ct_CC" >&6; } 3626else 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628printf "%s\n" "no" >&6; } 3629fi 3630 3631 if test "x$ac_ct_CC" = x; then 3632 CC="" 3633 else 3634 case $cross_compiling:$ac_tool_warned in 3635yes:) 3636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3637printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3638ac_tool_warned=yes ;; 3639esac 3640 CC=$ac_ct_CC 3641 fi 3642else 3643 CC="$ac_cv_prog_CC" 3644fi 3645 3646fi 3647 3648 3649test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3650printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3651as_fn_error $? "no acceptable C compiler found in \$PATH 3652See \`config.log' for more details" "$LINENO" 5; } 3653 3654# Provide some information about the compiler. 3655printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3656set X $ac_compile 3657ac_compiler=$2 3658for ac_option in --version -v -V -qversion -version; do 3659 { { ac_try="$ac_compiler $ac_option >&5" 3660case "(($ac_try" in 3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3662 *) ac_try_echo=$ac_try;; 3663esac 3664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3665printf "%s\n" "$ac_try_echo"; } >&5 3666 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3667 ac_status=$? 3668 if test -s conftest.err; then 3669 sed '10a\ 3670... rest of stderr output deleted ... 3671 10q' conftest.err >conftest.er1 3672 cat conftest.er1 >&5 3673 fi 3674 rm -f conftest.er1 conftest.err 3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3676 test $ac_status = 0; } 3677done 3678 3679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3680/* end confdefs.h. */ 3681 3682int 3683main (void) 3684{ 3685 3686 ; 3687 return 0; 3688} 3689_ACEOF 3690ac_clean_files_save=$ac_clean_files 3691ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3692# Try to create an executable without -o first, disregard a.out. 3693# It will help us diagnose broken compilers, and finding out an intuition 3694# of exeext. 3695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3696printf %s "checking whether the C compiler works... " >&6; } 3697ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3698 3699# The possible output files: 3700ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3701 3702ac_rmfiles= 3703for ac_file in $ac_files 3704do 3705 case $ac_file in 3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3707 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3708 esac 3709done 3710rm -f $ac_rmfiles 3711 3712if { { ac_try="$ac_link_default" 3713case "(($ac_try" in 3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3715 *) ac_try_echo=$ac_try;; 3716esac 3717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3718printf "%s\n" "$ac_try_echo"; } >&5 3719 (eval "$ac_link_default") 2>&5 3720 ac_status=$? 3721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3722 test $ac_status = 0; } 3723then : 3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3725# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3726# in a Makefile. We should not override ac_cv_exeext if it was cached, 3727# so that the user can short-circuit this test for compilers unknown to 3728# Autoconf. 3729for ac_file in $ac_files '' 3730do 3731 test -f "$ac_file" || continue 3732 case $ac_file in 3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3734 ;; 3735 [ab].out ) 3736 # We found the default executable, but exeext='' is most 3737 # certainly right. 3738 break;; 3739 *.* ) 3740 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3741 then :; else 3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3743 fi 3744 # We set ac_cv_exeext here because the later test for it is not 3745 # safe: cross compilers may not add the suffix if given an `-o' 3746 # argument, so we may need to know it at that point already. 3747 # Even if this section looks crufty: it has the advantage of 3748 # actually working. 3749 break;; 3750 * ) 3751 break;; 3752 esac 3753done 3754test "$ac_cv_exeext" = no && ac_cv_exeext= 3755 3756else $as_nop 3757 ac_file='' 3758fi 3759if test -z "$ac_file" 3760then : 3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3762printf "%s\n" "no" >&6; } 3763printf "%s\n" "$as_me: failed program was:" >&5 3764sed 's/^/| /' conftest.$ac_ext >&5 3765 3766{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3767printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3768as_fn_error 77 "C compiler cannot create executables 3769See \`config.log' for more details" "$LINENO" 5; } 3770else $as_nop 3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3772printf "%s\n" "yes" >&6; } 3773fi 3774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3775printf %s "checking for C compiler default output file name... " >&6; } 3776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3777printf "%s\n" "$ac_file" >&6; } 3778ac_exeext=$ac_cv_exeext 3779 3780rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3781ac_clean_files=$ac_clean_files_save 3782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3783printf %s "checking for suffix of executables... " >&6; } 3784if { { ac_try="$ac_link" 3785case "(($ac_try" in 3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3787 *) ac_try_echo=$ac_try;; 3788esac 3789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3790printf "%s\n" "$ac_try_echo"; } >&5 3791 (eval "$ac_link") 2>&5 3792 ac_status=$? 3793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3794 test $ac_status = 0; } 3795then : 3796 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3797# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3798# work properly (i.e., refer to `conftest.exe'), while it won't with 3799# `rm'. 3800for ac_file in conftest.exe conftest conftest.*; do 3801 test -f "$ac_file" || continue 3802 case $ac_file in 3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3805 break;; 3806 * ) break;; 3807 esac 3808done 3809else $as_nop 3810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3811printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3812as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3813See \`config.log' for more details" "$LINENO" 5; } 3814fi 3815rm -f conftest conftest$ac_cv_exeext 3816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3817printf "%s\n" "$ac_cv_exeext" >&6; } 3818 3819rm -f conftest.$ac_ext 3820EXEEXT=$ac_cv_exeext 3821ac_exeext=$EXEEXT 3822cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3823/* end confdefs.h. */ 3824#include <stdio.h> 3825int 3826main (void) 3827{ 3828FILE *f = fopen ("conftest.out", "w"); 3829 return ferror (f) || fclose (f) != 0; 3830 3831 ; 3832 return 0; 3833} 3834_ACEOF 3835ac_clean_files="$ac_clean_files conftest.out" 3836# Check that the compiler produces executables we can run. If not, either 3837# the compiler is broken, or we cross compile. 3838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3839printf %s "checking whether we are cross compiling... " >&6; } 3840if test "$cross_compiling" != yes; then 3841 { { ac_try="$ac_link" 3842case "(($ac_try" in 3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3844 *) ac_try_echo=$ac_try;; 3845esac 3846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3847printf "%s\n" "$ac_try_echo"; } >&5 3848 (eval "$ac_link") 2>&5 3849 ac_status=$? 3850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3851 test $ac_status = 0; } 3852 if { ac_try='./conftest$ac_cv_exeext' 3853 { { case "(($ac_try" in 3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3855 *) ac_try_echo=$ac_try;; 3856esac 3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3858printf "%s\n" "$ac_try_echo"; } >&5 3859 (eval "$ac_try") 2>&5 3860 ac_status=$? 3861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3862 test $ac_status = 0; }; }; then 3863 cross_compiling=no 3864 else 3865 if test "$cross_compiling" = maybe; then 3866 cross_compiling=yes 3867 else 3868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3869printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3870as_fn_error 77 "cannot run C compiled programs. 3871If you meant to cross compile, use \`--host'. 3872See \`config.log' for more details" "$LINENO" 5; } 3873 fi 3874 fi 3875fi 3876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3877printf "%s\n" "$cross_compiling" >&6; } 3878 3879rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3880ac_clean_files=$ac_clean_files_save 3881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3882printf %s "checking for suffix of object files... " >&6; } 3883if test ${ac_cv_objext+y} 3884then : 3885 printf %s "(cached) " >&6 3886else $as_nop 3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3888/* end confdefs.h. */ 3889 3890int 3891main (void) 3892{ 3893 3894 ; 3895 return 0; 3896} 3897_ACEOF 3898rm -f conftest.o conftest.obj 3899if { { ac_try="$ac_compile" 3900case "(($ac_try" in 3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3902 *) ac_try_echo=$ac_try;; 3903esac 3904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3905printf "%s\n" "$ac_try_echo"; } >&5 3906 (eval "$ac_compile") 2>&5 3907 ac_status=$? 3908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3909 test $ac_status = 0; } 3910then : 3911 for ac_file in conftest.o conftest.obj conftest.*; do 3912 test -f "$ac_file" || continue; 3913 case $ac_file in 3914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3916 break;; 3917 esac 3918done 3919else $as_nop 3920 printf "%s\n" "$as_me: failed program was:" >&5 3921sed 's/^/| /' conftest.$ac_ext >&5 3922 3923{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3924printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3925as_fn_error $? "cannot compute suffix of object files: cannot compile 3926See \`config.log' for more details" "$LINENO" 5; } 3927fi 3928rm -f conftest.$ac_cv_objext conftest.$ac_ext 3929fi 3930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3931printf "%s\n" "$ac_cv_objext" >&6; } 3932OBJEXT=$ac_cv_objext 3933ac_objext=$OBJEXT 3934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3935printf %s "checking whether the compiler supports GNU C... " >&6; } 3936if test ${ac_cv_c_compiler_gnu+y} 3937then : 3938 printf %s "(cached) " >&6 3939else $as_nop 3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3941/* end confdefs.h. */ 3942 3943int 3944main (void) 3945{ 3946#ifndef __GNUC__ 3947 choke me 3948#endif 3949 3950 ; 3951 return 0; 3952} 3953_ACEOF 3954if ac_fn_c_try_compile "$LINENO" 3955then : 3956 ac_compiler_gnu=yes 3957else $as_nop 3958 ac_compiler_gnu=no 3959fi 3960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3961ac_cv_c_compiler_gnu=$ac_compiler_gnu 3962 3963fi 3964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3965printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3966ac_compiler_gnu=$ac_cv_c_compiler_gnu 3967 3968if test $ac_compiler_gnu = yes; then 3969 GCC=yes 3970else 3971 GCC= 3972fi 3973ac_test_CFLAGS=${CFLAGS+y} 3974ac_save_CFLAGS=$CFLAGS 3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3976printf %s "checking whether $CC accepts -g... " >&6; } 3977if test ${ac_cv_prog_cc_g+y} 3978then : 3979 printf %s "(cached) " >&6 3980else $as_nop 3981 ac_save_c_werror_flag=$ac_c_werror_flag 3982 ac_c_werror_flag=yes 3983 ac_cv_prog_cc_g=no 3984 CFLAGS="-g" 3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3986/* end confdefs.h. */ 3987 3988int 3989main (void) 3990{ 3991 3992 ; 3993 return 0; 3994} 3995_ACEOF 3996if ac_fn_c_try_compile "$LINENO" 3997then : 3998 ac_cv_prog_cc_g=yes 3999else $as_nop 4000 CFLAGS="" 4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4002/* end confdefs.h. */ 4003 4004int 4005main (void) 4006{ 4007 4008 ; 4009 return 0; 4010} 4011_ACEOF 4012if ac_fn_c_try_compile "$LINENO" 4013then : 4014 4015else $as_nop 4016 ac_c_werror_flag=$ac_save_c_werror_flag 4017 CFLAGS="-g" 4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4019/* end confdefs.h. */ 4020 4021int 4022main (void) 4023{ 4024 4025 ; 4026 return 0; 4027} 4028_ACEOF 4029if ac_fn_c_try_compile "$LINENO" 4030then : 4031 ac_cv_prog_cc_g=yes 4032fi 4033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4034fi 4035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4036fi 4037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4038 ac_c_werror_flag=$ac_save_c_werror_flag 4039fi 4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4041printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4042if test $ac_test_CFLAGS; then 4043 CFLAGS=$ac_save_CFLAGS 4044elif test $ac_cv_prog_cc_g = yes; then 4045 if test "$GCC" = yes; then 4046 CFLAGS="-g -O2" 4047 else 4048 CFLAGS="-g" 4049 fi 4050else 4051 if test "$GCC" = yes; then 4052 CFLAGS="-O2" 4053 else 4054 CFLAGS= 4055 fi 4056fi 4057ac_prog_cc_stdc=no 4058if test x$ac_prog_cc_stdc = xno 4059then : 4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4061printf %s "checking for $CC option to enable C11 features... " >&6; } 4062if test ${ac_cv_prog_cc_c11+y} 4063then : 4064 printf %s "(cached) " >&6 4065else $as_nop 4066 ac_cv_prog_cc_c11=no 4067ac_save_CC=$CC 4068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4069/* end confdefs.h. */ 4070$ac_c_conftest_c11_program 4071_ACEOF 4072for ac_arg in '' -std=gnu11 4073do 4074 CC="$ac_save_CC $ac_arg" 4075 if ac_fn_c_try_compile "$LINENO" 4076then : 4077 ac_cv_prog_cc_c11=$ac_arg 4078fi 4079rm -f core conftest.err conftest.$ac_objext conftest.beam 4080 test "x$ac_cv_prog_cc_c11" != "xno" && break 4081done 4082rm -f conftest.$ac_ext 4083CC=$ac_save_CC 4084fi 4085 4086if test "x$ac_cv_prog_cc_c11" = xno 4087then : 4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4089printf "%s\n" "unsupported" >&6; } 4090else $as_nop 4091 if test "x$ac_cv_prog_cc_c11" = x 4092then : 4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4094printf "%s\n" "none needed" >&6; } 4095else $as_nop 4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4097printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4098 CC="$CC $ac_cv_prog_cc_c11" 4099fi 4100 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4101 ac_prog_cc_stdc=c11 4102fi 4103fi 4104if test x$ac_prog_cc_stdc = xno 4105then : 4106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4107printf %s "checking for $CC option to enable C99 features... " >&6; } 4108if test ${ac_cv_prog_cc_c99+y} 4109then : 4110 printf %s "(cached) " >&6 4111else $as_nop 4112 ac_cv_prog_cc_c99=no 4113ac_save_CC=$CC 4114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116$ac_c_conftest_c99_program 4117_ACEOF 4118for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4119do 4120 CC="$ac_save_CC $ac_arg" 4121 if ac_fn_c_try_compile "$LINENO" 4122then : 4123 ac_cv_prog_cc_c99=$ac_arg 4124fi 4125rm -f core conftest.err conftest.$ac_objext conftest.beam 4126 test "x$ac_cv_prog_cc_c99" != "xno" && break 4127done 4128rm -f conftest.$ac_ext 4129CC=$ac_save_CC 4130fi 4131 4132if test "x$ac_cv_prog_cc_c99" = xno 4133then : 4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4135printf "%s\n" "unsupported" >&6; } 4136else $as_nop 4137 if test "x$ac_cv_prog_cc_c99" = x 4138then : 4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4140printf "%s\n" "none needed" >&6; } 4141else $as_nop 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4143printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4144 CC="$CC $ac_cv_prog_cc_c99" 4145fi 4146 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4147 ac_prog_cc_stdc=c99 4148fi 4149fi 4150if test x$ac_prog_cc_stdc = xno 4151then : 4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4153printf %s "checking for $CC option to enable C89 features... " >&6; } 4154if test ${ac_cv_prog_cc_c89+y} 4155then : 4156 printf %s "(cached) " >&6 4157else $as_nop 4158 ac_cv_prog_cc_c89=no 4159ac_save_CC=$CC 4160cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162$ac_c_conftest_c89_program 4163_ACEOF 4164for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4165do 4166 CC="$ac_save_CC $ac_arg" 4167 if ac_fn_c_try_compile "$LINENO" 4168then : 4169 ac_cv_prog_cc_c89=$ac_arg 4170fi 4171rm -f core conftest.err conftest.$ac_objext conftest.beam 4172 test "x$ac_cv_prog_cc_c89" != "xno" && break 4173done 4174rm -f conftest.$ac_ext 4175CC=$ac_save_CC 4176fi 4177 4178if test "x$ac_cv_prog_cc_c89" = xno 4179then : 4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4181printf "%s\n" "unsupported" >&6; } 4182else $as_nop 4183 if test "x$ac_cv_prog_cc_c89" = x 4184then : 4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4186printf "%s\n" "none needed" >&6; } 4187else $as_nop 4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4189printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4190 CC="$CC $ac_cv_prog_cc_c89" 4191fi 4192 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4193 ac_prog_cc_stdc=c89 4194fi 4195fi 4196 4197ac_ext=c 4198ac_cpp='$CPP $CPPFLAGS' 4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4201ac_compiler_gnu=$ac_cv_c_compiler_gnu 4202 4203 4204 ac_ext=c 4205ac_cpp='$CPP $CPPFLAGS' 4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4208ac_compiler_gnu=$ac_cv_c_compiler_gnu 4209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4210printf %s "checking whether $CC understands -c and -o together... " >&6; } 4211if test ${am_cv_prog_cc_c_o+y} 4212then : 4213 printf %s "(cached) " >&6 4214else $as_nop 4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4216/* end confdefs.h. */ 4217 4218int 4219main (void) 4220{ 4221 4222 ; 4223 return 0; 4224} 4225_ACEOF 4226 # Make sure it works both with $CC and with simple cc. 4227 # Following AC_PROG_CC_C_O, we do the test twice because some 4228 # compilers refuse to overwrite an existing .o file with -o, 4229 # though they will create one. 4230 am_cv_prog_cc_c_o=yes 4231 for am_i in 1 2; do 4232 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4233 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4234 ac_status=$? 4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4236 (exit $ac_status); } \ 4237 && test -f conftest2.$ac_objext; then 4238 : OK 4239 else 4240 am_cv_prog_cc_c_o=no 4241 break 4242 fi 4243 done 4244 rm -f core conftest* 4245 unset am_i 4246fi 4247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4248printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4249if test "$am_cv_prog_cc_c_o" != yes; then 4250 # Losing compiler, so override with the script. 4251 # FIXME: It is wrong to rewrite CC. 4252 # But if we don't then we get into trouble of one sort or another. 4253 # A longer-term fix would be to have automake use am__CC in this case, 4254 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4255 CC="$am_aux_dir/compile $CC" 4256fi 4257ac_ext=c 4258ac_cpp='$CPP $CPPFLAGS' 4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4261ac_compiler_gnu=$ac_cv_c_compiler_gnu 4262 4263 4264depcc="$CC" am_compiler_list= 4265 4266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4267printf %s "checking dependency style of $depcc... " >&6; } 4268if test ${am_cv_CC_dependencies_compiler_type+y} 4269then : 4270 printf %s "(cached) " >&6 4271else $as_nop 4272 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4273 # We make a subdir and do the tests there. Otherwise we can end up 4274 # making bogus files that we don't know about and never remove. For 4275 # instance it was reported that on HP-UX the gcc test will end up 4276 # making a dummy file named 'D' -- because '-MD' means "put the output 4277 # in D". 4278 rm -rf conftest.dir 4279 mkdir conftest.dir 4280 # Copy depcomp to subdir because otherwise we won't find it if we're 4281 # using a relative directory. 4282 cp "$am_depcomp" conftest.dir 4283 cd conftest.dir 4284 # We will build objects and dependencies in a subdirectory because 4285 # it helps to detect inapplicable dependency modes. For instance 4286 # both Tru64's cc and ICC support -MD to output dependencies as a 4287 # side effect of compilation, but ICC will put the dependencies in 4288 # the current directory while Tru64 will put them in the object 4289 # directory. 4290 mkdir sub 4291 4292 am_cv_CC_dependencies_compiler_type=none 4293 if test "$am_compiler_list" = ""; then 4294 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4295 fi 4296 am__universal=false 4297 case " $depcc " in #( 4298 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4299 esac 4300 4301 for depmode in $am_compiler_list; do 4302 # Setup a source with many dependencies, because some compilers 4303 # like to wrap large dependency lists on column 80 (with \), and 4304 # we should not choose a depcomp mode which is confused by this. 4305 # 4306 # We need to recreate these files for each test, as the compiler may 4307 # overwrite some of them when testing with obscure command lines. 4308 # This happens at least with the AIX C compiler. 4309 : > sub/conftest.c 4310 for i in 1 2 3 4 5 6; do 4311 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4312 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4313 # Solaris 10 /bin/sh. 4314 echo '/* dummy */' > sub/conftst$i.h 4315 done 4316 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4317 4318 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4319 # mode. It turns out that the SunPro C++ compiler does not properly 4320 # handle '-M -o', and we need to detect this. Also, some Intel 4321 # versions had trouble with output in subdirs. 4322 am__obj=sub/conftest.${OBJEXT-o} 4323 am__minus_obj="-o $am__obj" 4324 case $depmode in 4325 gcc) 4326 # This depmode causes a compiler race in universal mode. 4327 test "$am__universal" = false || continue 4328 ;; 4329 nosideeffect) 4330 # After this tag, mechanisms are not by side-effect, so they'll 4331 # only be used when explicitly requested. 4332 if test "x$enable_dependency_tracking" = xyes; then 4333 continue 4334 else 4335 break 4336 fi 4337 ;; 4338 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4339 # This compiler won't grok '-c -o', but also, the minuso test has 4340 # not run yet. These depmodes are late enough in the game, and 4341 # so weak that their functioning should not be impacted. 4342 am__obj=conftest.${OBJEXT-o} 4343 am__minus_obj= 4344 ;; 4345 none) break ;; 4346 esac 4347 if depmode=$depmode \ 4348 source=sub/conftest.c object=$am__obj \ 4349 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4350 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4351 >/dev/null 2>conftest.err && 4352 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4353 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4354 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4355 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4356 # icc doesn't choke on unknown options, it will just issue warnings 4357 # or remarks (even with -Werror). So we grep stderr for any message 4358 # that says an option was ignored or not supported. 4359 # When given -MP, icc 7.0 and 7.1 complain thusly: 4360 # icc: Command line warning: ignoring option '-M'; no argument required 4361 # The diagnosis changed in icc 8.0: 4362 # icc: Command line remark: option '-MP' not supported 4363 if (grep 'ignoring option' conftest.err || 4364 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4365 am_cv_CC_dependencies_compiler_type=$depmode 4366 break 4367 fi 4368 fi 4369 done 4370 4371 cd .. 4372 rm -rf conftest.dir 4373else 4374 am_cv_CC_dependencies_compiler_type=none 4375fi 4376 4377fi 4378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4379printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4380CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4381 4382 if 4383 test "x$enable_dependency_tracking" != xno \ 4384 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4385 am__fastdepCC_TRUE= 4386 am__fastdepCC_FALSE='#' 4387else 4388 am__fastdepCC_TRUE='#' 4389 am__fastdepCC_FALSE= 4390fi 4391 4392 4393 4394 4395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4396printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4397if test ${ac_cv_c_undeclared_builtin_options+y} 4398then : 4399 printf %s "(cached) " >&6 4400else $as_nop 4401 ac_save_CFLAGS=$CFLAGS 4402 ac_cv_c_undeclared_builtin_options='cannot detect' 4403 for ac_arg in '' -fno-builtin; do 4404 CFLAGS="$ac_save_CFLAGS $ac_arg" 4405 # This test program should *not* compile successfully. 4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4407/* end confdefs.h. */ 4408 4409int 4410main (void) 4411{ 4412(void) strchr; 4413 ; 4414 return 0; 4415} 4416_ACEOF 4417if ac_fn_c_try_compile "$LINENO" 4418then : 4419 4420else $as_nop 4421 # This test program should compile successfully. 4422 # No library function is consistently available on 4423 # freestanding implementations, so test against a dummy 4424 # declaration. Include always-available headers on the 4425 # off chance that they somehow elicit warnings. 4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4427/* end confdefs.h. */ 4428#include <float.h> 4429#include <limits.h> 4430#include <stdarg.h> 4431#include <stddef.h> 4432extern void ac_decl (int, char *); 4433 4434int 4435main (void) 4436{ 4437(void) ac_decl (0, (char *) 0); 4438 (void) ac_decl; 4439 4440 ; 4441 return 0; 4442} 4443_ACEOF 4444if ac_fn_c_try_compile "$LINENO" 4445then : 4446 if test x"$ac_arg" = x 4447then : 4448 ac_cv_c_undeclared_builtin_options='none needed' 4449else $as_nop 4450 ac_cv_c_undeclared_builtin_options=$ac_arg 4451fi 4452 break 4453fi 4454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4455fi 4456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4457 done 4458 CFLAGS=$ac_save_CFLAGS 4459 4460fi 4461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4462printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4463 case $ac_cv_c_undeclared_builtin_options in #( 4464 'cannot detect') : 4465 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4466printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4467as_fn_error $? "cannot make $CC report undeclared builtins 4468See \`config.log' for more details" "$LINENO" 5; } ;; #( 4469 'none needed') : 4470 ac_c_undeclared_builtin_options='' ;; #( 4471 *) : 4472 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4473esac 4474 4475ac_header= ac_cache= 4476for ac_item in $ac_header_c_list 4477do 4478 if test $ac_cache; then 4479 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4480 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4481 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4482 fi 4483 ac_header= ac_cache= 4484 elif test $ac_header; then 4485 ac_cache=$ac_item 4486 else 4487 ac_header=$ac_item 4488 fi 4489done 4490 4491 4492 4493 4494 4495 4496 4497 4498if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4499then : 4500 4501printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4502 4503fi 4504 4505 4506 4507 4508ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4509if test "x$ac_cv_have_decl___clang__" = xyes 4510then : 4511 CLANGCC="yes" 4512else $as_nop 4513 CLANGCC="no" 4514fi 4515ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4516if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4517then : 4518 INTELCC="yes" 4519else $as_nop 4520 INTELCC="no" 4521fi 4522ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4523if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4524then : 4525 SUNCC="yes" 4526else $as_nop 4527 SUNCC="no" 4528fi 4529 4530 4531 4532 4533 4534 4535 4536 4537if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4538 if test -n "$ac_tool_prefix"; then 4539 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4540set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4542printf %s "checking for $ac_word... " >&6; } 4543if test ${ac_cv_path_PKG_CONFIG+y} 4544then : 4545 printf %s "(cached) " >&6 4546else $as_nop 4547 case $PKG_CONFIG in 4548 [\\/]* | ?:[\\/]*) 4549 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4550 ;; 4551 *) 4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4553for as_dir in $PATH 4554do 4555 IFS=$as_save_IFS 4556 case $as_dir in #((( 4557 '') as_dir=./ ;; 4558 */) ;; 4559 *) as_dir=$as_dir/ ;; 4560 esac 4561 for ac_exec_ext in '' $ac_executable_extensions; do 4562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4563 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4565 break 2 4566 fi 4567done 4568 done 4569IFS=$as_save_IFS 4570 4571 ;; 4572esac 4573fi 4574PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4575if test -n "$PKG_CONFIG"; then 4576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4577printf "%s\n" "$PKG_CONFIG" >&6; } 4578else 4579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4580printf "%s\n" "no" >&6; } 4581fi 4582 4583 4584fi 4585if test -z "$ac_cv_path_PKG_CONFIG"; then 4586 ac_pt_PKG_CONFIG=$PKG_CONFIG 4587 # Extract the first word of "pkg-config", so it can be a program name with args. 4588set dummy pkg-config; ac_word=$2 4589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4590printf %s "checking for $ac_word... " >&6; } 4591if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4592then : 4593 printf %s "(cached) " >&6 4594else $as_nop 4595 case $ac_pt_PKG_CONFIG in 4596 [\\/]* | ?:[\\/]*) 4597 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4598 ;; 4599 *) 4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH 4602do 4603 IFS=$as_save_IFS 4604 case $as_dir in #((( 4605 '') as_dir=./ ;; 4606 */) ;; 4607 *) as_dir=$as_dir/ ;; 4608 esac 4609 for ac_exec_ext in '' $ac_executable_extensions; do 4610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4611 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4612 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4613 break 2 4614 fi 4615done 4616 done 4617IFS=$as_save_IFS 4618 4619 ;; 4620esac 4621fi 4622ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4623if test -n "$ac_pt_PKG_CONFIG"; then 4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4625printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4626else 4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4628printf "%s\n" "no" >&6; } 4629fi 4630 4631 if test "x$ac_pt_PKG_CONFIG" = x; then 4632 PKG_CONFIG="" 4633 else 4634 case $cross_compiling:$ac_tool_warned in 4635yes:) 4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4637printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4638ac_tool_warned=yes ;; 4639esac 4640 PKG_CONFIG=$ac_pt_PKG_CONFIG 4641 fi 4642else 4643 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4644fi 4645 4646fi 4647if test -n "$PKG_CONFIG"; then 4648 _pkg_min_version=0.9.0 4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4650printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4651 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4653printf "%s\n" "yes" >&6; } 4654 else 4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4656printf "%s\n" "no" >&6; } 4657 PKG_CONFIG="" 4658 fi 4659fi 4660 4661 4662 # Make sure we can run config.sub. 4663$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4664 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4665 4666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4667printf %s "checking build system type... " >&6; } 4668if test ${ac_cv_build+y} 4669then : 4670 printf %s "(cached) " >&6 4671else $as_nop 4672 ac_build_alias=$build_alias 4673test "x$ac_build_alias" = x && 4674 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4675test "x$ac_build_alias" = x && 4676 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4677ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4678 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4679 4680fi 4681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4682printf "%s\n" "$ac_cv_build" >&6; } 4683case $ac_cv_build in 4684*-*-*) ;; 4685*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4686esac 4687build=$ac_cv_build 4688ac_save_IFS=$IFS; IFS='-' 4689set x $ac_cv_build 4690shift 4691build_cpu=$1 4692build_vendor=$2 4693shift; shift 4694# Remember, the first character of IFS is used to create $*, 4695# except with old shells: 4696build_os=$* 4697IFS=$ac_save_IFS 4698case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4699 4700 4701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4702printf %s "checking host system type... " >&6; } 4703if test ${ac_cv_host+y} 4704then : 4705 printf %s "(cached) " >&6 4706else $as_nop 4707 if test "x$host_alias" = x; then 4708 ac_cv_host=$ac_cv_build 4709else 4710 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4711 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4712fi 4713 4714fi 4715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4716printf "%s\n" "$ac_cv_host" >&6; } 4717case $ac_cv_host in 4718*-*-*) ;; 4719*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4720esac 4721host=$ac_cv_host 4722ac_save_IFS=$IFS; IFS='-' 4723set x $ac_cv_host 4724shift 4725host_cpu=$1 4726host_vendor=$2 4727shift; shift 4728# Remember, the first character of IFS is used to create $*, 4729# except with old shells: 4730host_os=$* 4731IFS=$ac_save_IFS 4732case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4733 4734 4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4736printf %s "checking for a sed that does not truncate output... " >&6; } 4737if test ${ac_cv_path_SED+y} 4738then : 4739 printf %s "(cached) " >&6 4740else $as_nop 4741 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4742 for ac_i in 1 2 3 4 5 6 7; do 4743 ac_script="$ac_script$as_nl$ac_script" 4744 done 4745 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4746 { ac_script=; unset ac_script;} 4747 if test -z "$SED"; then 4748 ac_path_SED_found=false 4749 # Loop through the user's path and test for each of PROGNAME-LIST 4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4751for as_dir in $PATH 4752do 4753 IFS=$as_save_IFS 4754 case $as_dir in #((( 4755 '') as_dir=./ ;; 4756 */) ;; 4757 *) as_dir=$as_dir/ ;; 4758 esac 4759 for ac_prog in sed gsed 4760 do 4761 for ac_exec_ext in '' $ac_executable_extensions; do 4762 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4763 as_fn_executable_p "$ac_path_SED" || continue 4764# Check for GNU ac_path_SED and select it if it is found. 4765 # Check for GNU $ac_path_SED 4766case `"$ac_path_SED" --version 2>&1` in 4767*GNU*) 4768 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4769*) 4770 ac_count=0 4771 printf %s 0123456789 >"conftest.in" 4772 while : 4773 do 4774 cat "conftest.in" "conftest.in" >"conftest.tmp" 4775 mv "conftest.tmp" "conftest.in" 4776 cp "conftest.in" "conftest.nl" 4777 printf "%s\n" '' >> "conftest.nl" 4778 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4779 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4780 as_fn_arith $ac_count + 1 && ac_count=$as_val 4781 if test $ac_count -gt ${ac_path_SED_max-0}; then 4782 # Best one so far, save it but keep looking for a better one 4783 ac_cv_path_SED="$ac_path_SED" 4784 ac_path_SED_max=$ac_count 4785 fi 4786 # 10*(2^10) chars as input seems more than enough 4787 test $ac_count -gt 10 && break 4788 done 4789 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4790esac 4791 4792 $ac_path_SED_found && break 3 4793 done 4794 done 4795 done 4796IFS=$as_save_IFS 4797 if test -z "$ac_cv_path_SED"; then 4798 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4799 fi 4800else 4801 ac_cv_path_SED=$SED 4802fi 4803 4804fi 4805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4806printf "%s\n" "$ac_cv_path_SED" >&6; } 4807 SED="$ac_cv_path_SED" 4808 rm -f conftest.sed 4809 4810 4811 4812 4813 4814 4815# Check whether --enable-selective-werror was given. 4816if test ${enable_selective_werror+y} 4817then : 4818 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4819else $as_nop 4820 SELECTIVE_WERROR=yes 4821fi 4822 4823 4824 4825 4826 4827# -v is too short to test reliably with XORG_TESTSET_CFLAG 4828if test "x$SUNCC" = "xyes"; then 4829 BASE_CFLAGS="-v" 4830else 4831 BASE_CFLAGS="" 4832fi 4833 4834# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848xorg_testset_save_CFLAGS="$CFLAGS" 4849 4850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4853printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4854if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4855then : 4856 printf %s "(cached) " >&6 4857else $as_nop 4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4859/* end confdefs.h. */ 4860int i; 4861_ACEOF 4862if ac_fn_c_try_compile "$LINENO" 4863then : 4864 xorg_cv_cc_flag_unknown_warning_option=yes 4865else $as_nop 4866 xorg_cv_cc_flag_unknown_warning_option=no 4867fi 4868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4869fi 4870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4871printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4872 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4873 CFLAGS="$xorg_testset_save_CFLAGS" 4874fi 4875 4876if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4877 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4878 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4879 fi 4880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4882printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4883if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4884then : 4885 printf %s "(cached) " >&6 4886else $as_nop 4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4888/* end confdefs.h. */ 4889int i; 4890_ACEOF 4891if ac_fn_c_try_compile "$LINENO" 4892then : 4893 xorg_cv_cc_flag_unused_command_line_argument=yes 4894else $as_nop 4895 xorg_cv_cc_flag_unused_command_line_argument=no 4896fi 4897rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4898fi 4899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4900printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4902 CFLAGS="$xorg_testset_save_CFLAGS" 4903fi 4904 4905found="no" 4906 4907 if test $found = "no" ; then 4908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4910 fi 4911 4912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4914 fi 4915 4916 CFLAGS="$CFLAGS -Wall" 4917 4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4919printf %s "checking if $CC supports -Wall... " >&6; } 4920 cacheid=xorg_cv_cc_flag__Wall 4921 if eval test \${$cacheid+y} 4922then : 4923 printf %s "(cached) " >&6 4924else $as_nop 4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4926/* end confdefs.h. */ 4927int i; 4928int 4929main (void) 4930{ 4931 4932 ; 4933 return 0; 4934} 4935_ACEOF 4936if ac_fn_c_try_link "$LINENO" 4937then : 4938 eval $cacheid=yes 4939else $as_nop 4940 eval $cacheid=no 4941fi 4942rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4943 conftest$ac_exeext conftest.$ac_ext 4944fi 4945 4946 4947 CFLAGS="$xorg_testset_save_CFLAGS" 4948 4949 eval supported=\$$cacheid 4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4951printf "%s\n" "$supported" >&6; } 4952 if test "$supported" = "yes" ; then 4953 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4954 found="yes" 4955 fi 4956 fi 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972xorg_testset_save_CFLAGS="$CFLAGS" 4973 4974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4978if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4979then : 4980 printf %s "(cached) " >&6 4981else $as_nop 4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4983/* end confdefs.h. */ 4984int i; 4985_ACEOF 4986if ac_fn_c_try_compile "$LINENO" 4987then : 4988 xorg_cv_cc_flag_unknown_warning_option=yes 4989else $as_nop 4990 xorg_cv_cc_flag_unknown_warning_option=no 4991fi 4992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4993fi 4994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4995printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4997 CFLAGS="$xorg_testset_save_CFLAGS" 4998fi 4999 5000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5002 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5003 fi 5004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5006printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5007if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5008then : 5009 printf %s "(cached) " >&6 5010else $as_nop 5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5012/* end confdefs.h. */ 5013int i; 5014_ACEOF 5015if ac_fn_c_try_compile "$LINENO" 5016then : 5017 xorg_cv_cc_flag_unused_command_line_argument=yes 5018else $as_nop 5019 xorg_cv_cc_flag_unused_command_line_argument=no 5020fi 5021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5022fi 5023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5024printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5025 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5026 CFLAGS="$xorg_testset_save_CFLAGS" 5027fi 5028 5029found="no" 5030 5031 if test $found = "no" ; then 5032 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5034 fi 5035 5036 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5038 fi 5039 5040 CFLAGS="$CFLAGS -Wpointer-arith" 5041 5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5043printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5044 cacheid=xorg_cv_cc_flag__Wpointer_arith 5045 if eval test \${$cacheid+y} 5046then : 5047 printf %s "(cached) " >&6 5048else $as_nop 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051int i; 5052int 5053main (void) 5054{ 5055 5056 ; 5057 return 0; 5058} 5059_ACEOF 5060if ac_fn_c_try_link "$LINENO" 5061then : 5062 eval $cacheid=yes 5063else $as_nop 5064 eval $cacheid=no 5065fi 5066rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5067 conftest$ac_exeext conftest.$ac_ext 5068fi 5069 5070 5071 CFLAGS="$xorg_testset_save_CFLAGS" 5072 5073 eval supported=\$$cacheid 5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5075printf "%s\n" "$supported" >&6; } 5076 if test "$supported" = "yes" ; then 5077 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5078 found="yes" 5079 fi 5080 fi 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096xorg_testset_save_CFLAGS="$CFLAGS" 5097 5098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5101printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5102if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5103then : 5104 printf %s "(cached) " >&6 5105else $as_nop 5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5107/* end confdefs.h. */ 5108int i; 5109_ACEOF 5110if ac_fn_c_try_compile "$LINENO" 5111then : 5112 xorg_cv_cc_flag_unknown_warning_option=yes 5113else $as_nop 5114 xorg_cv_cc_flag_unknown_warning_option=no 5115fi 5116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5117fi 5118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5119printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5120 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5121 CFLAGS="$xorg_testset_save_CFLAGS" 5122fi 5123 5124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5126 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5127 fi 5128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5130printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5131if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5132then : 5133 printf %s "(cached) " >&6 5134else $as_nop 5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5136/* end confdefs.h. */ 5137int i; 5138_ACEOF 5139if ac_fn_c_try_compile "$LINENO" 5140then : 5141 xorg_cv_cc_flag_unused_command_line_argument=yes 5142else $as_nop 5143 xorg_cv_cc_flag_unused_command_line_argument=no 5144fi 5145rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5146fi 5147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5148printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5150 CFLAGS="$xorg_testset_save_CFLAGS" 5151fi 5152 5153found="no" 5154 5155 if test $found = "no" ; then 5156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5158 fi 5159 5160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5162 fi 5163 5164 CFLAGS="$CFLAGS -Wmissing-declarations" 5165 5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5167printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5168 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5169 if eval test \${$cacheid+y} 5170then : 5171 printf %s "(cached) " >&6 5172else $as_nop 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174/* end confdefs.h. */ 5175int i; 5176int 5177main (void) 5178{ 5179 5180 ; 5181 return 0; 5182} 5183_ACEOF 5184if ac_fn_c_try_link "$LINENO" 5185then : 5186 eval $cacheid=yes 5187else $as_nop 5188 eval $cacheid=no 5189fi 5190rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5191 conftest$ac_exeext conftest.$ac_ext 5192fi 5193 5194 5195 CFLAGS="$xorg_testset_save_CFLAGS" 5196 5197 eval supported=\$$cacheid 5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5199printf "%s\n" "$supported" >&6; } 5200 if test "$supported" = "yes" ; then 5201 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5202 found="yes" 5203 fi 5204 fi 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220xorg_testset_save_CFLAGS="$CFLAGS" 5221 5222if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5225printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5226if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5227then : 5228 printf %s "(cached) " >&6 5229else $as_nop 5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5231/* end confdefs.h. */ 5232int i; 5233_ACEOF 5234if ac_fn_c_try_compile "$LINENO" 5235then : 5236 xorg_cv_cc_flag_unknown_warning_option=yes 5237else $as_nop 5238 xorg_cv_cc_flag_unknown_warning_option=no 5239fi 5240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5241fi 5242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5243printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5245 CFLAGS="$xorg_testset_save_CFLAGS" 5246fi 5247 5248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5251 fi 5252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5254printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5255if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5256then : 5257 printf %s "(cached) " >&6 5258else $as_nop 5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5260/* end confdefs.h. */ 5261int i; 5262_ACEOF 5263if ac_fn_c_try_compile "$LINENO" 5264then : 5265 xorg_cv_cc_flag_unused_command_line_argument=yes 5266else $as_nop 5267 xorg_cv_cc_flag_unused_command_line_argument=no 5268fi 5269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5270fi 5271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5272printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5274 CFLAGS="$xorg_testset_save_CFLAGS" 5275fi 5276 5277found="no" 5278 5279 if test $found = "no" ; then 5280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5282 fi 5283 5284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5286 fi 5287 5288 CFLAGS="$CFLAGS -Wformat=2" 5289 5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5291printf %s "checking if $CC supports -Wformat=2... " >&6; } 5292 cacheid=xorg_cv_cc_flag__Wformat_2 5293 if eval test \${$cacheid+y} 5294then : 5295 printf %s "(cached) " >&6 5296else $as_nop 5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299int i; 5300int 5301main (void) 5302{ 5303 5304 ; 5305 return 0; 5306} 5307_ACEOF 5308if ac_fn_c_try_link "$LINENO" 5309then : 5310 eval $cacheid=yes 5311else $as_nop 5312 eval $cacheid=no 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5315 conftest$ac_exeext conftest.$ac_ext 5316fi 5317 5318 5319 CFLAGS="$xorg_testset_save_CFLAGS" 5320 5321 eval supported=\$$cacheid 5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5323printf "%s\n" "$supported" >&6; } 5324 if test "$supported" = "yes" ; then 5325 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5326 found="yes" 5327 fi 5328 fi 5329 5330 if test $found = "no" ; then 5331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5333 fi 5334 5335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5337 fi 5338 5339 CFLAGS="$CFLAGS -Wformat" 5340 5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5342printf %s "checking if $CC supports -Wformat... " >&6; } 5343 cacheid=xorg_cv_cc_flag__Wformat 5344 if eval test \${$cacheid+y} 5345then : 5346 printf %s "(cached) " >&6 5347else $as_nop 5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5349/* end confdefs.h. */ 5350int i; 5351int 5352main (void) 5353{ 5354 5355 ; 5356 return 0; 5357} 5358_ACEOF 5359if ac_fn_c_try_link "$LINENO" 5360then : 5361 eval $cacheid=yes 5362else $as_nop 5363 eval $cacheid=no 5364fi 5365rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5366 conftest$ac_exeext conftest.$ac_ext 5367fi 5368 5369 5370 CFLAGS="$xorg_testset_save_CFLAGS" 5371 5372 eval supported=\$$cacheid 5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5374printf "%s\n" "$supported" >&6; } 5375 if test "$supported" = "yes" ; then 5376 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5377 found="yes" 5378 fi 5379 fi 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397xorg_testset_save_CFLAGS="$CFLAGS" 5398 5399if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5402printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5403if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5404then : 5405 printf %s "(cached) " >&6 5406else $as_nop 5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5408/* end confdefs.h. */ 5409int i; 5410_ACEOF 5411if ac_fn_c_try_compile "$LINENO" 5412then : 5413 xorg_cv_cc_flag_unknown_warning_option=yes 5414else $as_nop 5415 xorg_cv_cc_flag_unknown_warning_option=no 5416fi 5417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5418fi 5419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5420printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5422 CFLAGS="$xorg_testset_save_CFLAGS" 5423fi 5424 5425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5428 fi 5429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5431printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5432if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5433then : 5434 printf %s "(cached) " >&6 5435else $as_nop 5436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5437/* end confdefs.h. */ 5438int i; 5439_ACEOF 5440if ac_fn_c_try_compile "$LINENO" 5441then : 5442 xorg_cv_cc_flag_unused_command_line_argument=yes 5443else $as_nop 5444 xorg_cv_cc_flag_unused_command_line_argument=no 5445fi 5446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5447fi 5448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5451 CFLAGS="$xorg_testset_save_CFLAGS" 5452fi 5453 5454found="no" 5455 5456 if test $found = "no" ; then 5457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5459 fi 5460 5461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5463 fi 5464 5465 CFLAGS="$CFLAGS -Wstrict-prototypes" 5466 5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5468printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5469 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5470 if eval test \${$cacheid+y} 5471then : 5472 printf %s "(cached) " >&6 5473else $as_nop 5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5475/* end confdefs.h. */ 5476int i; 5477int 5478main (void) 5479{ 5480 5481 ; 5482 return 0; 5483} 5484_ACEOF 5485if ac_fn_c_try_link "$LINENO" 5486then : 5487 eval $cacheid=yes 5488else $as_nop 5489 eval $cacheid=no 5490fi 5491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5492 conftest$ac_exeext conftest.$ac_ext 5493fi 5494 5495 5496 CFLAGS="$xorg_testset_save_CFLAGS" 5497 5498 eval supported=\$$cacheid 5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5500printf "%s\n" "$supported" >&6; } 5501 if test "$supported" = "yes" ; then 5502 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5503 found="yes" 5504 fi 5505 fi 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521xorg_testset_save_CFLAGS="$CFLAGS" 5522 5523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5527if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5528then : 5529 printf %s "(cached) " >&6 5530else $as_nop 5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5532/* end confdefs.h. */ 5533int i; 5534_ACEOF 5535if ac_fn_c_try_compile "$LINENO" 5536then : 5537 xorg_cv_cc_flag_unknown_warning_option=yes 5538else $as_nop 5539 xorg_cv_cc_flag_unknown_warning_option=no 5540fi 5541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5542fi 5543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5546 CFLAGS="$xorg_testset_save_CFLAGS" 5547fi 5548 5549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5552 fi 5553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5556if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5557then : 5558 printf %s "(cached) " >&6 5559else $as_nop 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5561/* end confdefs.h. */ 5562int i; 5563_ACEOF 5564if ac_fn_c_try_compile "$LINENO" 5565then : 5566 xorg_cv_cc_flag_unused_command_line_argument=yes 5567else $as_nop 5568 xorg_cv_cc_flag_unused_command_line_argument=no 5569fi 5570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5571fi 5572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5574 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5575 CFLAGS="$xorg_testset_save_CFLAGS" 5576fi 5577 5578found="no" 5579 5580 if test $found = "no" ; then 5581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5583 fi 5584 5585 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5587 fi 5588 5589 CFLAGS="$CFLAGS -Wmissing-prototypes" 5590 5591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5592printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5593 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5594 if eval test \${$cacheid+y} 5595then : 5596 printf %s "(cached) " >&6 5597else $as_nop 5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5599/* end confdefs.h. */ 5600int i; 5601int 5602main (void) 5603{ 5604 5605 ; 5606 return 0; 5607} 5608_ACEOF 5609if ac_fn_c_try_link "$LINENO" 5610then : 5611 eval $cacheid=yes 5612else $as_nop 5613 eval $cacheid=no 5614fi 5615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5616 conftest$ac_exeext conftest.$ac_ext 5617fi 5618 5619 5620 CFLAGS="$xorg_testset_save_CFLAGS" 5621 5622 eval supported=\$$cacheid 5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5624printf "%s\n" "$supported" >&6; } 5625 if test "$supported" = "yes" ; then 5626 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5627 found="yes" 5628 fi 5629 fi 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645xorg_testset_save_CFLAGS="$CFLAGS" 5646 5647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5650printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5651if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5652then : 5653 printf %s "(cached) " >&6 5654else $as_nop 5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5656/* end confdefs.h. */ 5657int i; 5658_ACEOF 5659if ac_fn_c_try_compile "$LINENO" 5660then : 5661 xorg_cv_cc_flag_unknown_warning_option=yes 5662else $as_nop 5663 xorg_cv_cc_flag_unknown_warning_option=no 5664fi 5665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5666fi 5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5668printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5670 CFLAGS="$xorg_testset_save_CFLAGS" 5671fi 5672 5673if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5676 fi 5677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5679printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5680if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5681then : 5682 printf %s "(cached) " >&6 5683else $as_nop 5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685/* end confdefs.h. */ 5686int i; 5687_ACEOF 5688if ac_fn_c_try_compile "$LINENO" 5689then : 5690 xorg_cv_cc_flag_unused_command_line_argument=yes 5691else $as_nop 5692 xorg_cv_cc_flag_unused_command_line_argument=no 5693fi 5694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5695fi 5696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5697printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5698 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5699 CFLAGS="$xorg_testset_save_CFLAGS" 5700fi 5701 5702found="no" 5703 5704 if test $found = "no" ; then 5705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5707 fi 5708 5709 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5711 fi 5712 5713 CFLAGS="$CFLAGS -Wnested-externs" 5714 5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5716printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5717 cacheid=xorg_cv_cc_flag__Wnested_externs 5718 if eval test \${$cacheid+y} 5719then : 5720 printf %s "(cached) " >&6 5721else $as_nop 5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5723/* end confdefs.h. */ 5724int i; 5725int 5726main (void) 5727{ 5728 5729 ; 5730 return 0; 5731} 5732_ACEOF 5733if ac_fn_c_try_link "$LINENO" 5734then : 5735 eval $cacheid=yes 5736else $as_nop 5737 eval $cacheid=no 5738fi 5739rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5740 conftest$ac_exeext conftest.$ac_ext 5741fi 5742 5743 5744 CFLAGS="$xorg_testset_save_CFLAGS" 5745 5746 eval supported=\$$cacheid 5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5748printf "%s\n" "$supported" >&6; } 5749 if test "$supported" = "yes" ; then 5750 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5751 found="yes" 5752 fi 5753 fi 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769xorg_testset_save_CFLAGS="$CFLAGS" 5770 5771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5774printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5775if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5776then : 5777 printf %s "(cached) " >&6 5778else $as_nop 5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5780/* end confdefs.h. */ 5781int i; 5782_ACEOF 5783if ac_fn_c_try_compile "$LINENO" 5784then : 5785 xorg_cv_cc_flag_unknown_warning_option=yes 5786else $as_nop 5787 xorg_cv_cc_flag_unknown_warning_option=no 5788fi 5789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5790fi 5791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5792printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5794 CFLAGS="$xorg_testset_save_CFLAGS" 5795fi 5796 5797if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5800 fi 5801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5803printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5804if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5805then : 5806 printf %s "(cached) " >&6 5807else $as_nop 5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5809/* end confdefs.h. */ 5810int i; 5811_ACEOF 5812if ac_fn_c_try_compile "$LINENO" 5813then : 5814 xorg_cv_cc_flag_unused_command_line_argument=yes 5815else $as_nop 5816 xorg_cv_cc_flag_unused_command_line_argument=no 5817fi 5818rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5819fi 5820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5823 CFLAGS="$xorg_testset_save_CFLAGS" 5824fi 5825 5826found="no" 5827 5828 if test $found = "no" ; then 5829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5831 fi 5832 5833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5835 fi 5836 5837 CFLAGS="$CFLAGS -Wbad-function-cast" 5838 5839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5840printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5841 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5842 if eval test \${$cacheid+y} 5843then : 5844 printf %s "(cached) " >&6 5845else $as_nop 5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5847/* end confdefs.h. */ 5848int i; 5849int 5850main (void) 5851{ 5852 5853 ; 5854 return 0; 5855} 5856_ACEOF 5857if ac_fn_c_try_link "$LINENO" 5858then : 5859 eval $cacheid=yes 5860else $as_nop 5861 eval $cacheid=no 5862fi 5863rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5864 conftest$ac_exeext conftest.$ac_ext 5865fi 5866 5867 5868 CFLAGS="$xorg_testset_save_CFLAGS" 5869 5870 eval supported=\$$cacheid 5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5872printf "%s\n" "$supported" >&6; } 5873 if test "$supported" = "yes" ; then 5874 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5875 found="yes" 5876 fi 5877 fi 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893xorg_testset_save_CFLAGS="$CFLAGS" 5894 5895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5899if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5900then : 5901 printf %s "(cached) " >&6 5902else $as_nop 5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5904/* end confdefs.h. */ 5905int i; 5906_ACEOF 5907if ac_fn_c_try_compile "$LINENO" 5908then : 5909 xorg_cv_cc_flag_unknown_warning_option=yes 5910else $as_nop 5911 xorg_cv_cc_flag_unknown_warning_option=no 5912fi 5913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5914fi 5915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5918 CFLAGS="$xorg_testset_save_CFLAGS" 5919fi 5920 5921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5924 fi 5925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5928if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5929then : 5930 printf %s "(cached) " >&6 5931else $as_nop 5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5933/* end confdefs.h. */ 5934int i; 5935_ACEOF 5936if ac_fn_c_try_compile "$LINENO" 5937then : 5938 xorg_cv_cc_flag_unused_command_line_argument=yes 5939else $as_nop 5940 xorg_cv_cc_flag_unused_command_line_argument=no 5941fi 5942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5943fi 5944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5947 CFLAGS="$xorg_testset_save_CFLAGS" 5948fi 5949 5950found="no" 5951 5952 if test $found = "no" ; then 5953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5955 fi 5956 5957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5959 fi 5960 5961 CFLAGS="$CFLAGS -Wold-style-definition" 5962 5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5964printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5965 cacheid=xorg_cv_cc_flag__Wold_style_definition 5966 if eval test \${$cacheid+y} 5967then : 5968 printf %s "(cached) " >&6 5969else $as_nop 5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5971/* end confdefs.h. */ 5972int i; 5973int 5974main (void) 5975{ 5976 5977 ; 5978 return 0; 5979} 5980_ACEOF 5981if ac_fn_c_try_link "$LINENO" 5982then : 5983 eval $cacheid=yes 5984else $as_nop 5985 eval $cacheid=no 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5988 conftest$ac_exeext conftest.$ac_ext 5989fi 5990 5991 5992 CFLAGS="$xorg_testset_save_CFLAGS" 5993 5994 eval supported=\$$cacheid 5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5996printf "%s\n" "$supported" >&6; } 5997 if test "$supported" = "yes" ; then 5998 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5999 found="yes" 6000 fi 6001 fi 6002 6003 if test $found = "no" ; then 6004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6006 fi 6007 6008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6010 fi 6011 6012 CFLAGS="$CFLAGS -fd" 6013 6014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6015printf %s "checking if $CC supports -fd... " >&6; } 6016 cacheid=xorg_cv_cc_flag__fd 6017 if eval test \${$cacheid+y} 6018then : 6019 printf %s "(cached) " >&6 6020else $as_nop 6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6022/* end confdefs.h. */ 6023int i; 6024int 6025main (void) 6026{ 6027 6028 ; 6029 return 0; 6030} 6031_ACEOF 6032if ac_fn_c_try_link "$LINENO" 6033then : 6034 eval $cacheid=yes 6035else $as_nop 6036 eval $cacheid=no 6037fi 6038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6039 conftest$ac_exeext conftest.$ac_ext 6040fi 6041 6042 6043 CFLAGS="$xorg_testset_save_CFLAGS" 6044 6045 eval supported=\$$cacheid 6046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6047printf "%s\n" "$supported" >&6; } 6048 if test "$supported" = "yes" ; then 6049 BASE_CFLAGS="$BASE_CFLAGS -fd" 6050 found="yes" 6051 fi 6052 fi 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068xorg_testset_save_CFLAGS="$CFLAGS" 6069 6070if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6073printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6074if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6075then : 6076 printf %s "(cached) " >&6 6077else $as_nop 6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6079/* end confdefs.h. */ 6080int i; 6081_ACEOF 6082if ac_fn_c_try_compile "$LINENO" 6083then : 6084 xorg_cv_cc_flag_unknown_warning_option=yes 6085else $as_nop 6086 xorg_cv_cc_flag_unknown_warning_option=no 6087fi 6088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6089fi 6090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6092 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6093 CFLAGS="$xorg_testset_save_CFLAGS" 6094fi 6095 6096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6099 fi 6100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6103if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6104then : 6105 printf %s "(cached) " >&6 6106else $as_nop 6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6108/* end confdefs.h. */ 6109int i; 6110_ACEOF 6111if ac_fn_c_try_compile "$LINENO" 6112then : 6113 xorg_cv_cc_flag_unused_command_line_argument=yes 6114else $as_nop 6115 xorg_cv_cc_flag_unused_command_line_argument=no 6116fi 6117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6118fi 6119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6120printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6122 CFLAGS="$xorg_testset_save_CFLAGS" 6123fi 6124 6125found="no" 6126 6127 if test $found = "no" ; then 6128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6130 fi 6131 6132 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6134 fi 6135 6136 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6137 6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6139printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6140 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6141 if eval test \${$cacheid+y} 6142then : 6143 printf %s "(cached) " >&6 6144else $as_nop 6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6146/* end confdefs.h. */ 6147int i; 6148int 6149main (void) 6150{ 6151 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156if ac_fn_c_try_link "$LINENO" 6157then : 6158 eval $cacheid=yes 6159else $as_nop 6160 eval $cacheid=no 6161fi 6162rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6163 conftest$ac_exeext conftest.$ac_ext 6164fi 6165 6166 6167 CFLAGS="$xorg_testset_save_CFLAGS" 6168 6169 eval supported=\$$cacheid 6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6171printf "%s\n" "$supported" >&6; } 6172 if test "$supported" = "yes" ; then 6173 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6174 found="yes" 6175 fi 6176 fi 6177 6178 6179 6180 6181 6182# This chunk adds additional warnings that could catch undesired effects. 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196xorg_testset_save_CFLAGS="$CFLAGS" 6197 6198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6202if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6203then : 6204 printf %s "(cached) " >&6 6205else $as_nop 6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6207/* end confdefs.h. */ 6208int i; 6209_ACEOF 6210if ac_fn_c_try_compile "$LINENO" 6211then : 6212 xorg_cv_cc_flag_unknown_warning_option=yes 6213else $as_nop 6214 xorg_cv_cc_flag_unknown_warning_option=no 6215fi 6216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6217fi 6218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6219printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6221 CFLAGS="$xorg_testset_save_CFLAGS" 6222fi 6223 6224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6227 fi 6228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6230printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6231if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6232then : 6233 printf %s "(cached) " >&6 6234else $as_nop 6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236/* end confdefs.h. */ 6237int i; 6238_ACEOF 6239if ac_fn_c_try_compile "$LINENO" 6240then : 6241 xorg_cv_cc_flag_unused_command_line_argument=yes 6242else $as_nop 6243 xorg_cv_cc_flag_unused_command_line_argument=no 6244fi 6245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6246fi 6247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6250 CFLAGS="$xorg_testset_save_CFLAGS" 6251fi 6252 6253found="no" 6254 6255 if test $found = "no" ; then 6256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6258 fi 6259 6260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6262 fi 6263 6264 CFLAGS="$CFLAGS -Wunused" 6265 6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6267printf %s "checking if $CC supports -Wunused... " >&6; } 6268 cacheid=xorg_cv_cc_flag__Wunused 6269 if eval test \${$cacheid+y} 6270then : 6271 printf %s "(cached) " >&6 6272else $as_nop 6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6274/* end confdefs.h. */ 6275int i; 6276int 6277main (void) 6278{ 6279 6280 ; 6281 return 0; 6282} 6283_ACEOF 6284if ac_fn_c_try_link "$LINENO" 6285then : 6286 eval $cacheid=yes 6287else $as_nop 6288 eval $cacheid=no 6289fi 6290rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6291 conftest$ac_exeext conftest.$ac_ext 6292fi 6293 6294 6295 CFLAGS="$xorg_testset_save_CFLAGS" 6296 6297 eval supported=\$$cacheid 6298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6299printf "%s\n" "$supported" >&6; } 6300 if test "$supported" = "yes" ; then 6301 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6302 found="yes" 6303 fi 6304 fi 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320xorg_testset_save_CFLAGS="$CFLAGS" 6321 6322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6325printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6326if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6327then : 6328 printf %s "(cached) " >&6 6329else $as_nop 6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6331/* end confdefs.h. */ 6332int i; 6333_ACEOF 6334if ac_fn_c_try_compile "$LINENO" 6335then : 6336 xorg_cv_cc_flag_unknown_warning_option=yes 6337else $as_nop 6338 xorg_cv_cc_flag_unknown_warning_option=no 6339fi 6340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6341fi 6342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6343printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6345 CFLAGS="$xorg_testset_save_CFLAGS" 6346fi 6347 6348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6351 fi 6352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6354printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6355if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6356then : 6357 printf %s "(cached) " >&6 6358else $as_nop 6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6360/* end confdefs.h. */ 6361int i; 6362_ACEOF 6363if ac_fn_c_try_compile "$LINENO" 6364then : 6365 xorg_cv_cc_flag_unused_command_line_argument=yes 6366else $as_nop 6367 xorg_cv_cc_flag_unused_command_line_argument=no 6368fi 6369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6370fi 6371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6372printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6374 CFLAGS="$xorg_testset_save_CFLAGS" 6375fi 6376 6377found="no" 6378 6379 if test $found = "no" ; then 6380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6382 fi 6383 6384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6386 fi 6387 6388 CFLAGS="$CFLAGS -Wuninitialized" 6389 6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6391printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6392 cacheid=xorg_cv_cc_flag__Wuninitialized 6393 if eval test \${$cacheid+y} 6394then : 6395 printf %s "(cached) " >&6 6396else $as_nop 6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6398/* end confdefs.h. */ 6399int i; 6400int 6401main (void) 6402{ 6403 6404 ; 6405 return 0; 6406} 6407_ACEOF 6408if ac_fn_c_try_link "$LINENO" 6409then : 6410 eval $cacheid=yes 6411else $as_nop 6412 eval $cacheid=no 6413fi 6414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6415 conftest$ac_exeext conftest.$ac_ext 6416fi 6417 6418 6419 CFLAGS="$xorg_testset_save_CFLAGS" 6420 6421 eval supported=\$$cacheid 6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6423printf "%s\n" "$supported" >&6; } 6424 if test "$supported" = "yes" ; then 6425 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6426 found="yes" 6427 fi 6428 fi 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444xorg_testset_save_CFLAGS="$CFLAGS" 6445 6446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6449printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6450if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6451then : 6452 printf %s "(cached) " >&6 6453else $as_nop 6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6455/* end confdefs.h. */ 6456int i; 6457_ACEOF 6458if ac_fn_c_try_compile "$LINENO" 6459then : 6460 xorg_cv_cc_flag_unknown_warning_option=yes 6461else $as_nop 6462 xorg_cv_cc_flag_unknown_warning_option=no 6463fi 6464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6465fi 6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6467printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6469 CFLAGS="$xorg_testset_save_CFLAGS" 6470fi 6471 6472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6475 fi 6476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6478printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6479if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6480then : 6481 printf %s "(cached) " >&6 6482else $as_nop 6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6484/* end confdefs.h. */ 6485int i; 6486_ACEOF 6487if ac_fn_c_try_compile "$LINENO" 6488then : 6489 xorg_cv_cc_flag_unused_command_line_argument=yes 6490else $as_nop 6491 xorg_cv_cc_flag_unused_command_line_argument=no 6492fi 6493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6494fi 6495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6496printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6498 CFLAGS="$xorg_testset_save_CFLAGS" 6499fi 6500 6501found="no" 6502 6503 if test $found = "no" ; then 6504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6505 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6506 fi 6507 6508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6510 fi 6511 6512 CFLAGS="$CFLAGS -Wshadow" 6513 6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6515printf %s "checking if $CC supports -Wshadow... " >&6; } 6516 cacheid=xorg_cv_cc_flag__Wshadow 6517 if eval test \${$cacheid+y} 6518then : 6519 printf %s "(cached) " >&6 6520else $as_nop 6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6522/* end confdefs.h. */ 6523int i; 6524int 6525main (void) 6526{ 6527 6528 ; 6529 return 0; 6530} 6531_ACEOF 6532if ac_fn_c_try_link "$LINENO" 6533then : 6534 eval $cacheid=yes 6535else $as_nop 6536 eval $cacheid=no 6537fi 6538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6539 conftest$ac_exeext conftest.$ac_ext 6540fi 6541 6542 6543 CFLAGS="$xorg_testset_save_CFLAGS" 6544 6545 eval supported=\$$cacheid 6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6547printf "%s\n" "$supported" >&6; } 6548 if test "$supported" = "yes" ; then 6549 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6550 found="yes" 6551 fi 6552 fi 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568xorg_testset_save_CFLAGS="$CFLAGS" 6569 6570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6573printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6574if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6575then : 6576 printf %s "(cached) " >&6 6577else $as_nop 6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580int i; 6581_ACEOF 6582if ac_fn_c_try_compile "$LINENO" 6583then : 6584 xorg_cv_cc_flag_unknown_warning_option=yes 6585else $as_nop 6586 xorg_cv_cc_flag_unknown_warning_option=no 6587fi 6588rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6589fi 6590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6593 CFLAGS="$xorg_testset_save_CFLAGS" 6594fi 6595 6596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6599 fi 6600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6604then : 6605 printf %s "(cached) " >&6 6606else $as_nop 6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6608/* end confdefs.h. */ 6609int i; 6610_ACEOF 6611if ac_fn_c_try_compile "$LINENO" 6612then : 6613 xorg_cv_cc_flag_unused_command_line_argument=yes 6614else $as_nop 6615 xorg_cv_cc_flag_unused_command_line_argument=no 6616fi 6617rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6618fi 6619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6620printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6622 CFLAGS="$xorg_testset_save_CFLAGS" 6623fi 6624 6625found="no" 6626 6627 if test $found = "no" ; then 6628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6630 fi 6631 6632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6634 fi 6635 6636 CFLAGS="$CFLAGS -Wmissing-noreturn" 6637 6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6639printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6640 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6641 if eval test \${$cacheid+y} 6642then : 6643 printf %s "(cached) " >&6 6644else $as_nop 6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646/* end confdefs.h. */ 6647int i; 6648int 6649main (void) 6650{ 6651 6652 ; 6653 return 0; 6654} 6655_ACEOF 6656if ac_fn_c_try_link "$LINENO" 6657then : 6658 eval $cacheid=yes 6659else $as_nop 6660 eval $cacheid=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6663 conftest$ac_exeext conftest.$ac_ext 6664fi 6665 6666 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668 6669 eval supported=\$$cacheid 6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6671printf "%s\n" "$supported" >&6; } 6672 if test "$supported" = "yes" ; then 6673 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6674 found="yes" 6675 fi 6676 fi 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692xorg_testset_save_CFLAGS="$CFLAGS" 6693 6694if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6697printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6698if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6699then : 6700 printf %s "(cached) " >&6 6701else $as_nop 6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6703/* end confdefs.h. */ 6704int i; 6705_ACEOF 6706if ac_fn_c_try_compile "$LINENO" 6707then : 6708 xorg_cv_cc_flag_unknown_warning_option=yes 6709else $as_nop 6710 xorg_cv_cc_flag_unknown_warning_option=no 6711fi 6712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6713fi 6714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6715printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6717 CFLAGS="$xorg_testset_save_CFLAGS" 6718fi 6719 6720if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6723 fi 6724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6726printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6727if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6728then : 6729 printf %s "(cached) " >&6 6730else $as_nop 6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6732/* end confdefs.h. */ 6733int i; 6734_ACEOF 6735if ac_fn_c_try_compile "$LINENO" 6736then : 6737 xorg_cv_cc_flag_unused_command_line_argument=yes 6738else $as_nop 6739 xorg_cv_cc_flag_unused_command_line_argument=no 6740fi 6741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6742fi 6743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6744printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6745 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6746 CFLAGS="$xorg_testset_save_CFLAGS" 6747fi 6748 6749found="no" 6750 6751 if test $found = "no" ; then 6752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6754 fi 6755 6756 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6758 fi 6759 6760 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6761 6762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6763printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6764 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6765 if eval test \${$cacheid+y} 6766then : 6767 printf %s "(cached) " >&6 6768else $as_nop 6769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6770/* end confdefs.h. */ 6771int i; 6772int 6773main (void) 6774{ 6775 6776 ; 6777 return 0; 6778} 6779_ACEOF 6780if ac_fn_c_try_link "$LINENO" 6781then : 6782 eval $cacheid=yes 6783else $as_nop 6784 eval $cacheid=no 6785fi 6786rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6787 conftest$ac_exeext conftest.$ac_ext 6788fi 6789 6790 6791 CFLAGS="$xorg_testset_save_CFLAGS" 6792 6793 eval supported=\$$cacheid 6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6795printf "%s\n" "$supported" >&6; } 6796 if test "$supported" = "yes" ; then 6797 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6798 found="yes" 6799 fi 6800 fi 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816xorg_testset_save_CFLAGS="$CFLAGS" 6817 6818if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6821printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6822if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6823then : 6824 printf %s "(cached) " >&6 6825else $as_nop 6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6827/* end confdefs.h. */ 6828int i; 6829_ACEOF 6830if ac_fn_c_try_compile "$LINENO" 6831then : 6832 xorg_cv_cc_flag_unknown_warning_option=yes 6833else $as_nop 6834 xorg_cv_cc_flag_unknown_warning_option=no 6835fi 6836rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6837fi 6838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6840 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6841 CFLAGS="$xorg_testset_save_CFLAGS" 6842fi 6843 6844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6845 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6846 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6847 fi 6848 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6851if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6852then : 6853 printf %s "(cached) " >&6 6854else $as_nop 6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6856/* end confdefs.h. */ 6857int i; 6858_ACEOF 6859if ac_fn_c_try_compile "$LINENO" 6860then : 6861 xorg_cv_cc_flag_unused_command_line_argument=yes 6862else $as_nop 6863 xorg_cv_cc_flag_unused_command_line_argument=no 6864fi 6865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6866fi 6867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6869 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6870 CFLAGS="$xorg_testset_save_CFLAGS" 6871fi 6872 6873found="no" 6874 6875 if test $found = "no" ; then 6876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6877 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6878 fi 6879 6880 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6882 fi 6883 6884 CFLAGS="$CFLAGS -Wredundant-decls" 6885 6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6887printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6888 cacheid=xorg_cv_cc_flag__Wredundant_decls 6889 if eval test \${$cacheid+y} 6890then : 6891 printf %s "(cached) " >&6 6892else $as_nop 6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895int i; 6896int 6897main (void) 6898{ 6899 6900 ; 6901 return 0; 6902} 6903_ACEOF 6904if ac_fn_c_try_link "$LINENO" 6905then : 6906 eval $cacheid=yes 6907else $as_nop 6908 eval $cacheid=no 6909fi 6910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6911 conftest$ac_exeext conftest.$ac_ext 6912fi 6913 6914 6915 CFLAGS="$xorg_testset_save_CFLAGS" 6916 6917 eval supported=\$$cacheid 6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6919printf "%s\n" "$supported" >&6; } 6920 if test "$supported" = "yes" ; then 6921 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6922 found="yes" 6923 fi 6924 fi 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940xorg_testset_save_CFLAGS="$CFLAGS" 6941 6942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6946if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6947then : 6948 printf %s "(cached) " >&6 6949else $as_nop 6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952int i; 6953_ACEOF 6954if ac_fn_c_try_compile "$LINENO" 6955then : 6956 xorg_cv_cc_flag_unknown_warning_option=yes 6957else $as_nop 6958 xorg_cv_cc_flag_unknown_warning_option=no 6959fi 6960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6961fi 6962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6963printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6965 CFLAGS="$xorg_testset_save_CFLAGS" 6966fi 6967 6968if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6971 fi 6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6974printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6975if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6976then : 6977 printf %s "(cached) " >&6 6978else $as_nop 6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6980/* end confdefs.h. */ 6981int i; 6982_ACEOF 6983if ac_fn_c_try_compile "$LINENO" 6984then : 6985 xorg_cv_cc_flag_unused_command_line_argument=yes 6986else $as_nop 6987 xorg_cv_cc_flag_unused_command_line_argument=no 6988fi 6989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6990fi 6991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6993 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6994 CFLAGS="$xorg_testset_save_CFLAGS" 6995fi 6996 6997found="no" 6998 6999 if test $found = "no" ; then 7000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7001 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7002 fi 7003 7004 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7005 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7006 fi 7007 7008 CFLAGS="$CFLAGS -Wlogical-op" 7009 7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7011printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7012 cacheid=xorg_cv_cc_flag__Wlogical_op 7013 if eval test \${$cacheid+y} 7014then : 7015 printf %s "(cached) " >&6 7016else $as_nop 7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7018/* end confdefs.h. */ 7019int i; 7020int 7021main (void) 7022{ 7023 7024 ; 7025 return 0; 7026} 7027_ACEOF 7028if ac_fn_c_try_link "$LINENO" 7029then : 7030 eval $cacheid=yes 7031else $as_nop 7032 eval $cacheid=no 7033fi 7034rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7035 conftest$ac_exeext conftest.$ac_ext 7036fi 7037 7038 7039 CFLAGS="$xorg_testset_save_CFLAGS" 7040 7041 eval supported=\$$cacheid 7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7043printf "%s\n" "$supported" >&6; } 7044 if test "$supported" = "yes" ; then 7045 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7046 found="yes" 7047 fi 7048 fi 7049 7050 7051 7052# These are currently disabled because they are noisy. They will be enabled 7053# in the future once the codebase is sufficiently modernized to silence 7054# them. For now, I don't want them to drown out the other warnings. 7055# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7056# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7057# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7058 7059# Turn some warnings into errors, so we don't accidently get successful builds 7060# when there are problems that should be fixed. 7061 7062if test "x$SELECTIVE_WERROR" = "xyes" ; then 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076xorg_testset_save_CFLAGS="$CFLAGS" 7077 7078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7082if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7083then : 7084 printf %s "(cached) " >&6 7085else $as_nop 7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7087/* end confdefs.h. */ 7088int i; 7089_ACEOF 7090if ac_fn_c_try_compile "$LINENO" 7091then : 7092 xorg_cv_cc_flag_unknown_warning_option=yes 7093else $as_nop 7094 xorg_cv_cc_flag_unknown_warning_option=no 7095fi 7096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7097fi 7098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7101 CFLAGS="$xorg_testset_save_CFLAGS" 7102fi 7103 7104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7107 fi 7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7111if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7112then : 7113 printf %s "(cached) " >&6 7114else $as_nop 7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7116/* end confdefs.h. */ 7117int i; 7118_ACEOF 7119if ac_fn_c_try_compile "$LINENO" 7120then : 7121 xorg_cv_cc_flag_unused_command_line_argument=yes 7122else $as_nop 7123 xorg_cv_cc_flag_unused_command_line_argument=no 7124fi 7125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7126fi 7127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7130 CFLAGS="$xorg_testset_save_CFLAGS" 7131fi 7132 7133found="no" 7134 7135 if test $found = "no" ; then 7136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7138 fi 7139 7140 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7142 fi 7143 7144 CFLAGS="$CFLAGS -Werror=implicit" 7145 7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7147printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7148 cacheid=xorg_cv_cc_flag__Werror_implicit 7149 if eval test \${$cacheid+y} 7150then : 7151 printf %s "(cached) " >&6 7152else $as_nop 7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7154/* end confdefs.h. */ 7155int i; 7156int 7157main (void) 7158{ 7159 7160 ; 7161 return 0; 7162} 7163_ACEOF 7164if ac_fn_c_try_link "$LINENO" 7165then : 7166 eval $cacheid=yes 7167else $as_nop 7168 eval $cacheid=no 7169fi 7170rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7171 conftest$ac_exeext conftest.$ac_ext 7172fi 7173 7174 7175 CFLAGS="$xorg_testset_save_CFLAGS" 7176 7177 eval supported=\$$cacheid 7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7179printf "%s\n" "$supported" >&6; } 7180 if test "$supported" = "yes" ; then 7181 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7182 found="yes" 7183 fi 7184 fi 7185 7186 if test $found = "no" ; then 7187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7189 fi 7190 7191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7193 fi 7194 7195 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7196 7197 { 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 7198printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7199 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7200 if eval test \${$cacheid+y} 7201then : 7202 printf %s "(cached) " >&6 7203else $as_nop 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206int i; 7207int 7208main (void) 7209{ 7210 7211 ; 7212 return 0; 7213} 7214_ACEOF 7215if ac_fn_c_try_link "$LINENO" 7216then : 7217 eval $cacheid=yes 7218else $as_nop 7219 eval $cacheid=no 7220fi 7221rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7222 conftest$ac_exeext conftest.$ac_ext 7223fi 7224 7225 7226 CFLAGS="$xorg_testset_save_CFLAGS" 7227 7228 eval supported=\$$cacheid 7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7230printf "%s\n" "$supported" >&6; } 7231 if test "$supported" = "yes" ; then 7232 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7233 found="yes" 7234 fi 7235 fi 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251xorg_testset_save_CFLAGS="$CFLAGS" 7252 7253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7257if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7258then : 7259 printf %s "(cached) " >&6 7260else $as_nop 7261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7262/* end confdefs.h. */ 7263int i; 7264_ACEOF 7265if ac_fn_c_try_compile "$LINENO" 7266then : 7267 xorg_cv_cc_flag_unknown_warning_option=yes 7268else $as_nop 7269 xorg_cv_cc_flag_unknown_warning_option=no 7270fi 7271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7272fi 7273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7274printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7276 CFLAGS="$xorg_testset_save_CFLAGS" 7277fi 7278 7279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7282 fi 7283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7285printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7286if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7287then : 7288 printf %s "(cached) " >&6 7289else $as_nop 7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7291/* end confdefs.h. */ 7292int i; 7293_ACEOF 7294if ac_fn_c_try_compile "$LINENO" 7295then : 7296 xorg_cv_cc_flag_unused_command_line_argument=yes 7297else $as_nop 7298 xorg_cv_cc_flag_unused_command_line_argument=no 7299fi 7300rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7301fi 7302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7303printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7305 CFLAGS="$xorg_testset_save_CFLAGS" 7306fi 7307 7308found="no" 7309 7310 if test $found = "no" ; then 7311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7313 fi 7314 7315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7317 fi 7318 7319 CFLAGS="$CFLAGS -Werror=nonnull" 7320 7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7322printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7323 cacheid=xorg_cv_cc_flag__Werror_nonnull 7324 if eval test \${$cacheid+y} 7325then : 7326 printf %s "(cached) " >&6 7327else $as_nop 7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7329/* end confdefs.h. */ 7330int i; 7331int 7332main (void) 7333{ 7334 7335 ; 7336 return 0; 7337} 7338_ACEOF 7339if ac_fn_c_try_link "$LINENO" 7340then : 7341 eval $cacheid=yes 7342else $as_nop 7343 eval $cacheid=no 7344fi 7345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7346 conftest$ac_exeext conftest.$ac_ext 7347fi 7348 7349 7350 CFLAGS="$xorg_testset_save_CFLAGS" 7351 7352 eval supported=\$$cacheid 7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7354printf "%s\n" "$supported" >&6; } 7355 if test "$supported" = "yes" ; then 7356 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7357 found="yes" 7358 fi 7359 fi 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375xorg_testset_save_CFLAGS="$CFLAGS" 7376 7377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7381if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7382then : 7383 printf %s "(cached) " >&6 7384else $as_nop 7385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386/* end confdefs.h. */ 7387int i; 7388_ACEOF 7389if ac_fn_c_try_compile "$LINENO" 7390then : 7391 xorg_cv_cc_flag_unknown_warning_option=yes 7392else $as_nop 7393 xorg_cv_cc_flag_unknown_warning_option=no 7394fi 7395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7396fi 7397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7398printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7399 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7400 CFLAGS="$xorg_testset_save_CFLAGS" 7401fi 7402 7403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7406 fi 7407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7409printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7410if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7411then : 7412 printf %s "(cached) " >&6 7413else $as_nop 7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7415/* end confdefs.h. */ 7416int i; 7417_ACEOF 7418if ac_fn_c_try_compile "$LINENO" 7419then : 7420 xorg_cv_cc_flag_unused_command_line_argument=yes 7421else $as_nop 7422 xorg_cv_cc_flag_unused_command_line_argument=no 7423fi 7424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7425fi 7426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7429 CFLAGS="$xorg_testset_save_CFLAGS" 7430fi 7431 7432found="no" 7433 7434 if test $found = "no" ; then 7435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7437 fi 7438 7439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7441 fi 7442 7443 CFLAGS="$CFLAGS -Werror=init-self" 7444 7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7446printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7447 cacheid=xorg_cv_cc_flag__Werror_init_self 7448 if eval test \${$cacheid+y} 7449then : 7450 printf %s "(cached) " >&6 7451else $as_nop 7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7453/* end confdefs.h. */ 7454int i; 7455int 7456main (void) 7457{ 7458 7459 ; 7460 return 0; 7461} 7462_ACEOF 7463if ac_fn_c_try_link "$LINENO" 7464then : 7465 eval $cacheid=yes 7466else $as_nop 7467 eval $cacheid=no 7468fi 7469rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7470 conftest$ac_exeext conftest.$ac_ext 7471fi 7472 7473 7474 CFLAGS="$xorg_testset_save_CFLAGS" 7475 7476 eval supported=\$$cacheid 7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7478printf "%s\n" "$supported" >&6; } 7479 if test "$supported" = "yes" ; then 7480 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7481 found="yes" 7482 fi 7483 fi 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499xorg_testset_save_CFLAGS="$CFLAGS" 7500 7501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7502 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7505if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7506then : 7507 printf %s "(cached) " >&6 7508else $as_nop 7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7510/* end confdefs.h. */ 7511int i; 7512_ACEOF 7513if ac_fn_c_try_compile "$LINENO" 7514then : 7515 xorg_cv_cc_flag_unknown_warning_option=yes 7516else $as_nop 7517 xorg_cv_cc_flag_unknown_warning_option=no 7518fi 7519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7520fi 7521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7524 CFLAGS="$xorg_testset_save_CFLAGS" 7525fi 7526 7527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7530 fi 7531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7534if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7535then : 7536 printf %s "(cached) " >&6 7537else $as_nop 7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7539/* end confdefs.h. */ 7540int i; 7541_ACEOF 7542if ac_fn_c_try_compile "$LINENO" 7543then : 7544 xorg_cv_cc_flag_unused_command_line_argument=yes 7545else $as_nop 7546 xorg_cv_cc_flag_unused_command_line_argument=no 7547fi 7548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7549fi 7550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7553 CFLAGS="$xorg_testset_save_CFLAGS" 7554fi 7555 7556found="no" 7557 7558 if test $found = "no" ; then 7559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7561 fi 7562 7563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7565 fi 7566 7567 CFLAGS="$CFLAGS -Werror=main" 7568 7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7570printf %s "checking if $CC supports -Werror=main... " >&6; } 7571 cacheid=xorg_cv_cc_flag__Werror_main 7572 if eval test \${$cacheid+y} 7573then : 7574 printf %s "(cached) " >&6 7575else $as_nop 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7577/* end confdefs.h. */ 7578int i; 7579int 7580main (void) 7581{ 7582 7583 ; 7584 return 0; 7585} 7586_ACEOF 7587if ac_fn_c_try_link "$LINENO" 7588then : 7589 eval $cacheid=yes 7590else $as_nop 7591 eval $cacheid=no 7592fi 7593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7594 conftest$ac_exeext conftest.$ac_ext 7595fi 7596 7597 7598 CFLAGS="$xorg_testset_save_CFLAGS" 7599 7600 eval supported=\$$cacheid 7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7602printf "%s\n" "$supported" >&6; } 7603 if test "$supported" = "yes" ; then 7604 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7605 found="yes" 7606 fi 7607 fi 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623xorg_testset_save_CFLAGS="$CFLAGS" 7624 7625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7629if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7630then : 7631 printf %s "(cached) " >&6 7632else $as_nop 7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7634/* end confdefs.h. */ 7635int i; 7636_ACEOF 7637if ac_fn_c_try_compile "$LINENO" 7638then : 7639 xorg_cv_cc_flag_unknown_warning_option=yes 7640else $as_nop 7641 xorg_cv_cc_flag_unknown_warning_option=no 7642fi 7643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7644fi 7645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7648 CFLAGS="$xorg_testset_save_CFLAGS" 7649fi 7650 7651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7654 fi 7655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7658if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7659then : 7660 printf %s "(cached) " >&6 7661else $as_nop 7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664int i; 7665_ACEOF 7666if ac_fn_c_try_compile "$LINENO" 7667then : 7668 xorg_cv_cc_flag_unused_command_line_argument=yes 7669else $as_nop 7670 xorg_cv_cc_flag_unused_command_line_argument=no 7671fi 7672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7673fi 7674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7677 CFLAGS="$xorg_testset_save_CFLAGS" 7678fi 7679 7680found="no" 7681 7682 if test $found = "no" ; then 7683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7685 fi 7686 7687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7689 fi 7690 7691 CFLAGS="$CFLAGS -Werror=missing-braces" 7692 7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7694printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7695 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7696 if eval test \${$cacheid+y} 7697then : 7698 printf %s "(cached) " >&6 7699else $as_nop 7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7701/* end confdefs.h. */ 7702int i; 7703int 7704main (void) 7705{ 7706 7707 ; 7708 return 0; 7709} 7710_ACEOF 7711if ac_fn_c_try_link "$LINENO" 7712then : 7713 eval $cacheid=yes 7714else $as_nop 7715 eval $cacheid=no 7716fi 7717rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7718 conftest$ac_exeext conftest.$ac_ext 7719fi 7720 7721 7722 CFLAGS="$xorg_testset_save_CFLAGS" 7723 7724 eval supported=\$$cacheid 7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7726printf "%s\n" "$supported" >&6; } 7727 if test "$supported" = "yes" ; then 7728 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7729 found="yes" 7730 fi 7731 fi 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747xorg_testset_save_CFLAGS="$CFLAGS" 7748 7749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7753if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7754then : 7755 printf %s "(cached) " >&6 7756else $as_nop 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759int i; 7760_ACEOF 7761if ac_fn_c_try_compile "$LINENO" 7762then : 7763 xorg_cv_cc_flag_unknown_warning_option=yes 7764else $as_nop 7765 xorg_cv_cc_flag_unknown_warning_option=no 7766fi 7767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7768fi 7769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7771 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7772 CFLAGS="$xorg_testset_save_CFLAGS" 7773fi 7774 7775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7777 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7778 fi 7779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7782if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7783then : 7784 printf %s "(cached) " >&6 7785else $as_nop 7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7787/* end confdefs.h. */ 7788int i; 7789_ACEOF 7790if ac_fn_c_try_compile "$LINENO" 7791then : 7792 xorg_cv_cc_flag_unused_command_line_argument=yes 7793else $as_nop 7794 xorg_cv_cc_flag_unused_command_line_argument=no 7795fi 7796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7797fi 7798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7800 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7801 CFLAGS="$xorg_testset_save_CFLAGS" 7802fi 7803 7804found="no" 7805 7806 if test $found = "no" ; then 7807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7809 fi 7810 7811 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7813 fi 7814 7815 CFLAGS="$CFLAGS -Werror=sequence-point" 7816 7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7818printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7819 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7820 if eval test \${$cacheid+y} 7821then : 7822 printf %s "(cached) " >&6 7823else $as_nop 7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7825/* end confdefs.h. */ 7826int i; 7827int 7828main (void) 7829{ 7830 7831 ; 7832 return 0; 7833} 7834_ACEOF 7835if ac_fn_c_try_link "$LINENO" 7836then : 7837 eval $cacheid=yes 7838else $as_nop 7839 eval $cacheid=no 7840fi 7841rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7842 conftest$ac_exeext conftest.$ac_ext 7843fi 7844 7845 7846 CFLAGS="$xorg_testset_save_CFLAGS" 7847 7848 eval supported=\$$cacheid 7849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7850printf "%s\n" "$supported" >&6; } 7851 if test "$supported" = "yes" ; then 7852 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7853 found="yes" 7854 fi 7855 fi 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871xorg_testset_save_CFLAGS="$CFLAGS" 7872 7873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7877if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7878then : 7879 printf %s "(cached) " >&6 7880else $as_nop 7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7882/* end confdefs.h. */ 7883int i; 7884_ACEOF 7885if ac_fn_c_try_compile "$LINENO" 7886then : 7887 xorg_cv_cc_flag_unknown_warning_option=yes 7888else $as_nop 7889 xorg_cv_cc_flag_unknown_warning_option=no 7890fi 7891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7892fi 7893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7894printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7896 CFLAGS="$xorg_testset_save_CFLAGS" 7897fi 7898 7899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7901 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7902 fi 7903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7905printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7906if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7907then : 7908 printf %s "(cached) " >&6 7909else $as_nop 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7911/* end confdefs.h. */ 7912int i; 7913_ACEOF 7914if ac_fn_c_try_compile "$LINENO" 7915then : 7916 xorg_cv_cc_flag_unused_command_line_argument=yes 7917else $as_nop 7918 xorg_cv_cc_flag_unused_command_line_argument=no 7919fi 7920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7921fi 7922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7923printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7924 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7925 CFLAGS="$xorg_testset_save_CFLAGS" 7926fi 7927 7928found="no" 7929 7930 if test $found = "no" ; then 7931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7933 fi 7934 7935 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7937 fi 7938 7939 CFLAGS="$CFLAGS -Werror=return-type" 7940 7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7942printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7943 cacheid=xorg_cv_cc_flag__Werror_return_type 7944 if eval test \${$cacheid+y} 7945then : 7946 printf %s "(cached) " >&6 7947else $as_nop 7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7949/* end confdefs.h. */ 7950int i; 7951int 7952main (void) 7953{ 7954 7955 ; 7956 return 0; 7957} 7958_ACEOF 7959if ac_fn_c_try_link "$LINENO" 7960then : 7961 eval $cacheid=yes 7962else $as_nop 7963 eval $cacheid=no 7964fi 7965rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7966 conftest$ac_exeext conftest.$ac_ext 7967fi 7968 7969 7970 CFLAGS="$xorg_testset_save_CFLAGS" 7971 7972 eval supported=\$$cacheid 7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7974printf "%s\n" "$supported" >&6; } 7975 if test "$supported" = "yes" ; then 7976 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7977 found="yes" 7978 fi 7979 fi 7980 7981 if test $found = "no" ; then 7982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7983 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7984 fi 7985 7986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7988 fi 7989 7990 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7991 7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7993printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7994 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7995 if eval test \${$cacheid+y} 7996then : 7997 printf %s "(cached) " >&6 7998else $as_nop 7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8000/* end confdefs.h. */ 8001int i; 8002int 8003main (void) 8004{ 8005 8006 ; 8007 return 0; 8008} 8009_ACEOF 8010if ac_fn_c_try_link "$LINENO" 8011then : 8012 eval $cacheid=yes 8013else $as_nop 8014 eval $cacheid=no 8015fi 8016rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8017 conftest$ac_exeext conftest.$ac_ext 8018fi 8019 8020 8021 CFLAGS="$xorg_testset_save_CFLAGS" 8022 8023 eval supported=\$$cacheid 8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8025printf "%s\n" "$supported" >&6; } 8026 if test "$supported" = "yes" ; then 8027 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8028 found="yes" 8029 fi 8030 fi 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046xorg_testset_save_CFLAGS="$CFLAGS" 8047 8048if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8049 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8051printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8052if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8053then : 8054 printf %s "(cached) " >&6 8055else $as_nop 8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8057/* end confdefs.h. */ 8058int i; 8059_ACEOF 8060if ac_fn_c_try_compile "$LINENO" 8061then : 8062 xorg_cv_cc_flag_unknown_warning_option=yes 8063else $as_nop 8064 xorg_cv_cc_flag_unknown_warning_option=no 8065fi 8066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8067fi 8068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8069printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8070 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8071 CFLAGS="$xorg_testset_save_CFLAGS" 8072fi 8073 8074if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8077 fi 8078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8080printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8081if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8082then : 8083 printf %s "(cached) " >&6 8084else $as_nop 8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8086/* end confdefs.h. */ 8087int i; 8088_ACEOF 8089if ac_fn_c_try_compile "$LINENO" 8090then : 8091 xorg_cv_cc_flag_unused_command_line_argument=yes 8092else $as_nop 8093 xorg_cv_cc_flag_unused_command_line_argument=no 8094fi 8095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8096fi 8097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8098printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8100 CFLAGS="$xorg_testset_save_CFLAGS" 8101fi 8102 8103found="no" 8104 8105 if test $found = "no" ; then 8106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8108 fi 8109 8110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8112 fi 8113 8114 CFLAGS="$CFLAGS -Werror=trigraphs" 8115 8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8117printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8118 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8119 if eval test \${$cacheid+y} 8120then : 8121 printf %s "(cached) " >&6 8122else $as_nop 8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8124/* end confdefs.h. */ 8125int i; 8126int 8127main (void) 8128{ 8129 8130 ; 8131 return 0; 8132} 8133_ACEOF 8134if ac_fn_c_try_link "$LINENO" 8135then : 8136 eval $cacheid=yes 8137else $as_nop 8138 eval $cacheid=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8141 conftest$ac_exeext conftest.$ac_ext 8142fi 8143 8144 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146 8147 eval supported=\$$cacheid 8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8149printf "%s\n" "$supported" >&6; } 8150 if test "$supported" = "yes" ; then 8151 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8152 found="yes" 8153 fi 8154 fi 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170xorg_testset_save_CFLAGS="$CFLAGS" 8171 8172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8176if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8177then : 8178 printf %s "(cached) " >&6 8179else $as_nop 8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8181/* end confdefs.h. */ 8182int i; 8183_ACEOF 8184if ac_fn_c_try_compile "$LINENO" 8185then : 8186 xorg_cv_cc_flag_unknown_warning_option=yes 8187else $as_nop 8188 xorg_cv_cc_flag_unknown_warning_option=no 8189fi 8190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8191fi 8192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8194 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8195 CFLAGS="$xorg_testset_save_CFLAGS" 8196fi 8197 8198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8199 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8201 fi 8202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8205if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8206then : 8207 printf %s "(cached) " >&6 8208else $as_nop 8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8210/* end confdefs.h. */ 8211int i; 8212_ACEOF 8213if ac_fn_c_try_compile "$LINENO" 8214then : 8215 xorg_cv_cc_flag_unused_command_line_argument=yes 8216else $as_nop 8217 xorg_cv_cc_flag_unused_command_line_argument=no 8218fi 8219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8220fi 8221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8224 CFLAGS="$xorg_testset_save_CFLAGS" 8225fi 8226 8227found="no" 8228 8229 if test $found = "no" ; then 8230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8232 fi 8233 8234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8236 fi 8237 8238 CFLAGS="$CFLAGS -Werror=array-bounds" 8239 8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8241printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8242 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8243 if eval test \${$cacheid+y} 8244then : 8245 printf %s "(cached) " >&6 8246else $as_nop 8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8248/* end confdefs.h. */ 8249int i; 8250int 8251main (void) 8252{ 8253 8254 ; 8255 return 0; 8256} 8257_ACEOF 8258if ac_fn_c_try_link "$LINENO" 8259then : 8260 eval $cacheid=yes 8261else $as_nop 8262 eval $cacheid=no 8263fi 8264rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8265 conftest$ac_exeext conftest.$ac_ext 8266fi 8267 8268 8269 CFLAGS="$xorg_testset_save_CFLAGS" 8270 8271 eval supported=\$$cacheid 8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8273printf "%s\n" "$supported" >&6; } 8274 if test "$supported" = "yes" ; then 8275 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8276 found="yes" 8277 fi 8278 fi 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294xorg_testset_save_CFLAGS="$CFLAGS" 8295 8296if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8299printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8300if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8301then : 8302 printf %s "(cached) " >&6 8303else $as_nop 8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8305/* end confdefs.h. */ 8306int i; 8307_ACEOF 8308if ac_fn_c_try_compile "$LINENO" 8309then : 8310 xorg_cv_cc_flag_unknown_warning_option=yes 8311else $as_nop 8312 xorg_cv_cc_flag_unknown_warning_option=no 8313fi 8314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8315fi 8316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8318 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8319 CFLAGS="$xorg_testset_save_CFLAGS" 8320fi 8321 8322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8323 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8325 fi 8326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8329if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8330then : 8331 printf %s "(cached) " >&6 8332else $as_nop 8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8334/* end confdefs.h. */ 8335int i; 8336_ACEOF 8337if ac_fn_c_try_compile "$LINENO" 8338then : 8339 xorg_cv_cc_flag_unused_command_line_argument=yes 8340else $as_nop 8341 xorg_cv_cc_flag_unused_command_line_argument=no 8342fi 8343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8344fi 8345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8348 CFLAGS="$xorg_testset_save_CFLAGS" 8349fi 8350 8351found="no" 8352 8353 if test $found = "no" ; then 8354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8356 fi 8357 8358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8360 fi 8361 8362 CFLAGS="$CFLAGS -Werror=write-strings" 8363 8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8365printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8366 cacheid=xorg_cv_cc_flag__Werror_write_strings 8367 if eval test \${$cacheid+y} 8368then : 8369 printf %s "(cached) " >&6 8370else $as_nop 8371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8372/* end confdefs.h. */ 8373int i; 8374int 8375main (void) 8376{ 8377 8378 ; 8379 return 0; 8380} 8381_ACEOF 8382if ac_fn_c_try_link "$LINENO" 8383then : 8384 eval $cacheid=yes 8385else $as_nop 8386 eval $cacheid=no 8387fi 8388rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8389 conftest$ac_exeext conftest.$ac_ext 8390fi 8391 8392 8393 CFLAGS="$xorg_testset_save_CFLAGS" 8394 8395 eval supported=\$$cacheid 8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8397printf "%s\n" "$supported" >&6; } 8398 if test "$supported" = "yes" ; then 8399 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8400 found="yes" 8401 fi 8402 fi 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418xorg_testset_save_CFLAGS="$CFLAGS" 8419 8420if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8423printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8424if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8425then : 8426 printf %s "(cached) " >&6 8427else $as_nop 8428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8429/* end confdefs.h. */ 8430int i; 8431_ACEOF 8432if ac_fn_c_try_compile "$LINENO" 8433then : 8434 xorg_cv_cc_flag_unknown_warning_option=yes 8435else $as_nop 8436 xorg_cv_cc_flag_unknown_warning_option=no 8437fi 8438rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8439fi 8440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8442 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8443 CFLAGS="$xorg_testset_save_CFLAGS" 8444fi 8445 8446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8449 fi 8450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8453if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8454then : 8455 printf %s "(cached) " >&6 8456else $as_nop 8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458/* end confdefs.h. */ 8459int i; 8460_ACEOF 8461if ac_fn_c_try_compile "$LINENO" 8462then : 8463 xorg_cv_cc_flag_unused_command_line_argument=yes 8464else $as_nop 8465 xorg_cv_cc_flag_unused_command_line_argument=no 8466fi 8467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8468fi 8469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8470printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8472 CFLAGS="$xorg_testset_save_CFLAGS" 8473fi 8474 8475found="no" 8476 8477 if test $found = "no" ; then 8478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8480 fi 8481 8482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8484 fi 8485 8486 CFLAGS="$CFLAGS -Werror=address" 8487 8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8489printf %s "checking if $CC supports -Werror=address... " >&6; } 8490 cacheid=xorg_cv_cc_flag__Werror_address 8491 if eval test \${$cacheid+y} 8492then : 8493 printf %s "(cached) " >&6 8494else $as_nop 8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8496/* end confdefs.h. */ 8497int i; 8498int 8499main (void) 8500{ 8501 8502 ; 8503 return 0; 8504} 8505_ACEOF 8506if ac_fn_c_try_link "$LINENO" 8507then : 8508 eval $cacheid=yes 8509else $as_nop 8510 eval $cacheid=no 8511fi 8512rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8513 conftest$ac_exeext conftest.$ac_ext 8514fi 8515 8516 8517 CFLAGS="$xorg_testset_save_CFLAGS" 8518 8519 eval supported=\$$cacheid 8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8521printf "%s\n" "$supported" >&6; } 8522 if test "$supported" = "yes" ; then 8523 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8524 found="yes" 8525 fi 8526 fi 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542xorg_testset_save_CFLAGS="$CFLAGS" 8543 8544if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8547printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8548if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8549then : 8550 printf %s "(cached) " >&6 8551else $as_nop 8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8553/* end confdefs.h. */ 8554int i; 8555_ACEOF 8556if ac_fn_c_try_compile "$LINENO" 8557then : 8558 xorg_cv_cc_flag_unknown_warning_option=yes 8559else $as_nop 8560 xorg_cv_cc_flag_unknown_warning_option=no 8561fi 8562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8563fi 8564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8567 CFLAGS="$xorg_testset_save_CFLAGS" 8568fi 8569 8570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8572 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8573 fi 8574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8577if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8578then : 8579 printf %s "(cached) " >&6 8580else $as_nop 8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8582/* end confdefs.h. */ 8583int i; 8584_ACEOF 8585if ac_fn_c_try_compile "$LINENO" 8586then : 8587 xorg_cv_cc_flag_unused_command_line_argument=yes 8588else $as_nop 8589 xorg_cv_cc_flag_unused_command_line_argument=no 8590fi 8591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8592fi 8593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8594printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8596 CFLAGS="$xorg_testset_save_CFLAGS" 8597fi 8598 8599found="no" 8600 8601 if test $found = "no" ; then 8602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8604 fi 8605 8606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8608 fi 8609 8610 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8611 8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8613printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8614 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8615 if eval test \${$cacheid+y} 8616then : 8617 printf %s "(cached) " >&6 8618else $as_nop 8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8620/* end confdefs.h. */ 8621int i; 8622int 8623main (void) 8624{ 8625 8626 ; 8627 return 0; 8628} 8629_ACEOF 8630if ac_fn_c_try_link "$LINENO" 8631then : 8632 eval $cacheid=yes 8633else $as_nop 8634 eval $cacheid=no 8635fi 8636rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8637 conftest$ac_exeext conftest.$ac_ext 8638fi 8639 8640 8641 CFLAGS="$xorg_testset_save_CFLAGS" 8642 8643 eval supported=\$$cacheid 8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8645printf "%s\n" "$supported" >&6; } 8646 if test "$supported" = "yes" ; then 8647 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8648 found="yes" 8649 fi 8650 fi 8651 8652 if test $found = "no" ; then 8653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8654 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8655 fi 8656 8657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8659 fi 8660 8661 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8662 8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8664printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8665 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8666 if eval test \${$cacheid+y} 8667then : 8668 printf %s "(cached) " >&6 8669else $as_nop 8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8671/* end confdefs.h. */ 8672int i; 8673int 8674main (void) 8675{ 8676 8677 ; 8678 return 0; 8679} 8680_ACEOF 8681if ac_fn_c_try_link "$LINENO" 8682then : 8683 eval $cacheid=yes 8684else $as_nop 8685 eval $cacheid=no 8686fi 8687rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8688 conftest$ac_exeext conftest.$ac_ext 8689fi 8690 8691 8692 CFLAGS="$xorg_testset_save_CFLAGS" 8693 8694 eval supported=\$$cacheid 8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8696printf "%s\n" "$supported" >&6; } 8697 if test "$supported" = "yes" ; then 8698 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8699 found="yes" 8700 fi 8701 fi 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717xorg_testset_save_CFLAGS="$CFLAGS" 8718 8719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8722printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8723if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8724then : 8725 printf %s "(cached) " >&6 8726else $as_nop 8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8728/* end confdefs.h. */ 8729int i; 8730_ACEOF 8731if ac_fn_c_try_compile "$LINENO" 8732then : 8733 xorg_cv_cc_flag_unknown_warning_option=yes 8734else $as_nop 8735 xorg_cv_cc_flag_unknown_warning_option=no 8736fi 8737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8738fi 8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8740printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8742 CFLAGS="$xorg_testset_save_CFLAGS" 8743fi 8744 8745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8748 fi 8749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8751printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8752if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8753then : 8754 printf %s "(cached) " >&6 8755else $as_nop 8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8757/* end confdefs.h. */ 8758int i; 8759_ACEOF 8760if ac_fn_c_try_compile "$LINENO" 8761then : 8762 xorg_cv_cc_flag_unused_command_line_argument=yes 8763else $as_nop 8764 xorg_cv_cc_flag_unused_command_line_argument=no 8765fi 8766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8767fi 8768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8771 CFLAGS="$xorg_testset_save_CFLAGS" 8772fi 8773 8774found="no" 8775 8776 if test $found = "no" ; then 8777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8779 fi 8780 8781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8783 fi 8784 8785 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8786 8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8788printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8789 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8790 if eval test \${$cacheid+y} 8791then : 8792 printf %s "(cached) " >&6 8793else $as_nop 8794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8795/* end confdefs.h. */ 8796int i; 8797int 8798main (void) 8799{ 8800 8801 ; 8802 return 0; 8803} 8804_ACEOF 8805if ac_fn_c_try_link "$LINENO" 8806then : 8807 eval $cacheid=yes 8808else $as_nop 8809 eval $cacheid=no 8810fi 8811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8812 conftest$ac_exeext conftest.$ac_ext 8813fi 8814 8815 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817 8818 eval supported=\$$cacheid 8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8820printf "%s\n" "$supported" >&6; } 8821 if test "$supported" = "yes" ; then 8822 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8823 found="yes" 8824 fi 8825 fi 8826 8827 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8828else 8829{ 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 8830printf "%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;} 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844xorg_testset_save_CFLAGS="$CFLAGS" 8845 8846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8849printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8850if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8851then : 8852 printf %s "(cached) " >&6 8853else $as_nop 8854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8855/* end confdefs.h. */ 8856int i; 8857_ACEOF 8858if ac_fn_c_try_compile "$LINENO" 8859then : 8860 xorg_cv_cc_flag_unknown_warning_option=yes 8861else $as_nop 8862 xorg_cv_cc_flag_unknown_warning_option=no 8863fi 8864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8865fi 8866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8867printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8869 CFLAGS="$xorg_testset_save_CFLAGS" 8870fi 8871 8872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8875 fi 8876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8878printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8879if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8880then : 8881 printf %s "(cached) " >&6 8882else $as_nop 8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884/* end confdefs.h. */ 8885int i; 8886_ACEOF 8887if ac_fn_c_try_compile "$LINENO" 8888then : 8889 xorg_cv_cc_flag_unused_command_line_argument=yes 8890else $as_nop 8891 xorg_cv_cc_flag_unused_command_line_argument=no 8892fi 8893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8894fi 8895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8896printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8898 CFLAGS="$xorg_testset_save_CFLAGS" 8899fi 8900 8901found="no" 8902 8903 if test $found = "no" ; then 8904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8906 fi 8907 8908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8910 fi 8911 8912 CFLAGS="$CFLAGS -Wimplicit" 8913 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8915printf %s "checking if $CC supports -Wimplicit... " >&6; } 8916 cacheid=xorg_cv_cc_flag__Wimplicit 8917 if eval test \${$cacheid+y} 8918then : 8919 printf %s "(cached) " >&6 8920else $as_nop 8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8922/* end confdefs.h. */ 8923int i; 8924int 8925main (void) 8926{ 8927 8928 ; 8929 return 0; 8930} 8931_ACEOF 8932if ac_fn_c_try_link "$LINENO" 8933then : 8934 eval $cacheid=yes 8935else $as_nop 8936 eval $cacheid=no 8937fi 8938rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8939 conftest$ac_exeext conftest.$ac_ext 8940fi 8941 8942 8943 CFLAGS="$xorg_testset_save_CFLAGS" 8944 8945 eval supported=\$$cacheid 8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8947printf "%s\n" "$supported" >&6; } 8948 if test "$supported" = "yes" ; then 8949 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8950 found="yes" 8951 fi 8952 fi 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968xorg_testset_save_CFLAGS="$CFLAGS" 8969 8970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8973printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8974if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8975then : 8976 printf %s "(cached) " >&6 8977else $as_nop 8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8979/* end confdefs.h. */ 8980int i; 8981_ACEOF 8982if ac_fn_c_try_compile "$LINENO" 8983then : 8984 xorg_cv_cc_flag_unknown_warning_option=yes 8985else $as_nop 8986 xorg_cv_cc_flag_unknown_warning_option=no 8987fi 8988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8989fi 8990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8991printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8993 CFLAGS="$xorg_testset_save_CFLAGS" 8994fi 8995 8996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8999 fi 9000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9002printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9003if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9004then : 9005 printf %s "(cached) " >&6 9006else $as_nop 9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9008/* end confdefs.h. */ 9009int i; 9010_ACEOF 9011if ac_fn_c_try_compile "$LINENO" 9012then : 9013 xorg_cv_cc_flag_unused_command_line_argument=yes 9014else $as_nop 9015 xorg_cv_cc_flag_unused_command_line_argument=no 9016fi 9017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9018fi 9019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9020printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9021 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9022 CFLAGS="$xorg_testset_save_CFLAGS" 9023fi 9024 9025found="no" 9026 9027 if test $found = "no" ; then 9028 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9029 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9030 fi 9031 9032 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9034 fi 9035 9036 CFLAGS="$CFLAGS -Wnonnull" 9037 9038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9039printf %s "checking if $CC supports -Wnonnull... " >&6; } 9040 cacheid=xorg_cv_cc_flag__Wnonnull 9041 if eval test \${$cacheid+y} 9042then : 9043 printf %s "(cached) " >&6 9044else $as_nop 9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9046/* end confdefs.h. */ 9047int i; 9048int 9049main (void) 9050{ 9051 9052 ; 9053 return 0; 9054} 9055_ACEOF 9056if ac_fn_c_try_link "$LINENO" 9057then : 9058 eval $cacheid=yes 9059else $as_nop 9060 eval $cacheid=no 9061fi 9062rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9063 conftest$ac_exeext conftest.$ac_ext 9064fi 9065 9066 9067 CFLAGS="$xorg_testset_save_CFLAGS" 9068 9069 eval supported=\$$cacheid 9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9071printf "%s\n" "$supported" >&6; } 9072 if test "$supported" = "yes" ; then 9073 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9074 found="yes" 9075 fi 9076 fi 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092xorg_testset_save_CFLAGS="$CFLAGS" 9093 9094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9097printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9098if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9099then : 9100 printf %s "(cached) " >&6 9101else $as_nop 9102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9103/* end confdefs.h. */ 9104int i; 9105_ACEOF 9106if ac_fn_c_try_compile "$LINENO" 9107then : 9108 xorg_cv_cc_flag_unknown_warning_option=yes 9109else $as_nop 9110 xorg_cv_cc_flag_unknown_warning_option=no 9111fi 9112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9113fi 9114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9117 CFLAGS="$xorg_testset_save_CFLAGS" 9118fi 9119 9120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9122 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9123 fi 9124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9127if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9128then : 9129 printf %s "(cached) " >&6 9130else $as_nop 9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9132/* end confdefs.h. */ 9133int i; 9134_ACEOF 9135if ac_fn_c_try_compile "$LINENO" 9136then : 9137 xorg_cv_cc_flag_unused_command_line_argument=yes 9138else $as_nop 9139 xorg_cv_cc_flag_unused_command_line_argument=no 9140fi 9141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9142fi 9143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9144printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9145 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9146 CFLAGS="$xorg_testset_save_CFLAGS" 9147fi 9148 9149found="no" 9150 9151 if test $found = "no" ; then 9152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9154 fi 9155 9156 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9157 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9158 fi 9159 9160 CFLAGS="$CFLAGS -Winit-self" 9161 9162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9163printf %s "checking if $CC supports -Winit-self... " >&6; } 9164 cacheid=xorg_cv_cc_flag__Winit_self 9165 if eval test \${$cacheid+y} 9166then : 9167 printf %s "(cached) " >&6 9168else $as_nop 9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9170/* end confdefs.h. */ 9171int i; 9172int 9173main (void) 9174{ 9175 9176 ; 9177 return 0; 9178} 9179_ACEOF 9180if ac_fn_c_try_link "$LINENO" 9181then : 9182 eval $cacheid=yes 9183else $as_nop 9184 eval $cacheid=no 9185fi 9186rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9187 conftest$ac_exeext conftest.$ac_ext 9188fi 9189 9190 9191 CFLAGS="$xorg_testset_save_CFLAGS" 9192 9193 eval supported=\$$cacheid 9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9195printf "%s\n" "$supported" >&6; } 9196 if test "$supported" = "yes" ; then 9197 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9198 found="yes" 9199 fi 9200 fi 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216xorg_testset_save_CFLAGS="$CFLAGS" 9217 9218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9219 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9221printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9222if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9223then : 9224 printf %s "(cached) " >&6 9225else $as_nop 9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9227/* end confdefs.h. */ 9228int i; 9229_ACEOF 9230if ac_fn_c_try_compile "$LINENO" 9231then : 9232 xorg_cv_cc_flag_unknown_warning_option=yes 9233else $as_nop 9234 xorg_cv_cc_flag_unknown_warning_option=no 9235fi 9236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9237fi 9238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9239printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9241 CFLAGS="$xorg_testset_save_CFLAGS" 9242fi 9243 9244if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9247 fi 9248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9250printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9251if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9252then : 9253 printf %s "(cached) " >&6 9254else $as_nop 9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9256/* end confdefs.h. */ 9257int i; 9258_ACEOF 9259if ac_fn_c_try_compile "$LINENO" 9260then : 9261 xorg_cv_cc_flag_unused_command_line_argument=yes 9262else $as_nop 9263 xorg_cv_cc_flag_unused_command_line_argument=no 9264fi 9265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9266fi 9267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9268printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9269 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9270 CFLAGS="$xorg_testset_save_CFLAGS" 9271fi 9272 9273found="no" 9274 9275 if test $found = "no" ; then 9276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9278 fi 9279 9280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9282 fi 9283 9284 CFLAGS="$CFLAGS -Wmain" 9285 9286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9287printf %s "checking if $CC supports -Wmain... " >&6; } 9288 cacheid=xorg_cv_cc_flag__Wmain 9289 if eval test \${$cacheid+y} 9290then : 9291 printf %s "(cached) " >&6 9292else $as_nop 9293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9294/* end confdefs.h. */ 9295int i; 9296int 9297main (void) 9298{ 9299 9300 ; 9301 return 0; 9302} 9303_ACEOF 9304if ac_fn_c_try_link "$LINENO" 9305then : 9306 eval $cacheid=yes 9307else $as_nop 9308 eval $cacheid=no 9309fi 9310rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9311 conftest$ac_exeext conftest.$ac_ext 9312fi 9313 9314 9315 CFLAGS="$xorg_testset_save_CFLAGS" 9316 9317 eval supported=\$$cacheid 9318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9319printf "%s\n" "$supported" >&6; } 9320 if test "$supported" = "yes" ; then 9321 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9322 found="yes" 9323 fi 9324 fi 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340xorg_testset_save_CFLAGS="$CFLAGS" 9341 9342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9345printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9346if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9347then : 9348 printf %s "(cached) " >&6 9349else $as_nop 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351/* end confdefs.h. */ 9352int i; 9353_ACEOF 9354if ac_fn_c_try_compile "$LINENO" 9355then : 9356 xorg_cv_cc_flag_unknown_warning_option=yes 9357else $as_nop 9358 xorg_cv_cc_flag_unknown_warning_option=no 9359fi 9360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9361fi 9362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9363printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9365 CFLAGS="$xorg_testset_save_CFLAGS" 9366fi 9367 9368if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9371 fi 9372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9374printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9375if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9376then : 9377 printf %s "(cached) " >&6 9378else $as_nop 9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9380/* end confdefs.h. */ 9381int i; 9382_ACEOF 9383if ac_fn_c_try_compile "$LINENO" 9384then : 9385 xorg_cv_cc_flag_unused_command_line_argument=yes 9386else $as_nop 9387 xorg_cv_cc_flag_unused_command_line_argument=no 9388fi 9389rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9390fi 9391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9392printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9394 CFLAGS="$xorg_testset_save_CFLAGS" 9395fi 9396 9397found="no" 9398 9399 if test $found = "no" ; then 9400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9401 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9402 fi 9403 9404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9406 fi 9407 9408 CFLAGS="$CFLAGS -Wmissing-braces" 9409 9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9411printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9412 cacheid=xorg_cv_cc_flag__Wmissing_braces 9413 if eval test \${$cacheid+y} 9414then : 9415 printf %s "(cached) " >&6 9416else $as_nop 9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9418/* end confdefs.h. */ 9419int i; 9420int 9421main (void) 9422{ 9423 9424 ; 9425 return 0; 9426} 9427_ACEOF 9428if ac_fn_c_try_link "$LINENO" 9429then : 9430 eval $cacheid=yes 9431else $as_nop 9432 eval $cacheid=no 9433fi 9434rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9435 conftest$ac_exeext conftest.$ac_ext 9436fi 9437 9438 9439 CFLAGS="$xorg_testset_save_CFLAGS" 9440 9441 eval supported=\$$cacheid 9442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9443printf "%s\n" "$supported" >&6; } 9444 if test "$supported" = "yes" ; then 9445 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9446 found="yes" 9447 fi 9448 fi 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464xorg_testset_save_CFLAGS="$CFLAGS" 9465 9466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9469printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9470if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9471then : 9472 printf %s "(cached) " >&6 9473else $as_nop 9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9475/* end confdefs.h. */ 9476int i; 9477_ACEOF 9478if ac_fn_c_try_compile "$LINENO" 9479then : 9480 xorg_cv_cc_flag_unknown_warning_option=yes 9481else $as_nop 9482 xorg_cv_cc_flag_unknown_warning_option=no 9483fi 9484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9485fi 9486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9487printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9489 CFLAGS="$xorg_testset_save_CFLAGS" 9490fi 9491 9492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9495 fi 9496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9498printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9499if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9500then : 9501 printf %s "(cached) " >&6 9502else $as_nop 9503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9504/* end confdefs.h. */ 9505int i; 9506_ACEOF 9507if ac_fn_c_try_compile "$LINENO" 9508then : 9509 xorg_cv_cc_flag_unused_command_line_argument=yes 9510else $as_nop 9511 xorg_cv_cc_flag_unused_command_line_argument=no 9512fi 9513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9514fi 9515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9516printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9518 CFLAGS="$xorg_testset_save_CFLAGS" 9519fi 9520 9521found="no" 9522 9523 if test $found = "no" ; then 9524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9526 fi 9527 9528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9530 fi 9531 9532 CFLAGS="$CFLAGS -Wsequence-point" 9533 9534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9535printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9536 cacheid=xorg_cv_cc_flag__Wsequence_point 9537 if eval test \${$cacheid+y} 9538then : 9539 printf %s "(cached) " >&6 9540else $as_nop 9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9542/* end confdefs.h. */ 9543int i; 9544int 9545main (void) 9546{ 9547 9548 ; 9549 return 0; 9550} 9551_ACEOF 9552if ac_fn_c_try_link "$LINENO" 9553then : 9554 eval $cacheid=yes 9555else $as_nop 9556 eval $cacheid=no 9557fi 9558rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9559 conftest$ac_exeext conftest.$ac_ext 9560fi 9561 9562 9563 CFLAGS="$xorg_testset_save_CFLAGS" 9564 9565 eval supported=\$$cacheid 9566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9567printf "%s\n" "$supported" >&6; } 9568 if test "$supported" = "yes" ; then 9569 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9570 found="yes" 9571 fi 9572 fi 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588xorg_testset_save_CFLAGS="$CFLAGS" 9589 9590if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9593printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9594if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9595then : 9596 printf %s "(cached) " >&6 9597else $as_nop 9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9599/* end confdefs.h. */ 9600int i; 9601_ACEOF 9602if ac_fn_c_try_compile "$LINENO" 9603then : 9604 xorg_cv_cc_flag_unknown_warning_option=yes 9605else $as_nop 9606 xorg_cv_cc_flag_unknown_warning_option=no 9607fi 9608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9609fi 9610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9613 CFLAGS="$xorg_testset_save_CFLAGS" 9614fi 9615 9616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9619 fi 9620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9623if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9624then : 9625 printf %s "(cached) " >&6 9626else $as_nop 9627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628/* end confdefs.h. */ 9629int i; 9630_ACEOF 9631if ac_fn_c_try_compile "$LINENO" 9632then : 9633 xorg_cv_cc_flag_unused_command_line_argument=yes 9634else $as_nop 9635 xorg_cv_cc_flag_unused_command_line_argument=no 9636fi 9637rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9638fi 9639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9642 CFLAGS="$xorg_testset_save_CFLAGS" 9643fi 9644 9645found="no" 9646 9647 if test $found = "no" ; then 9648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9650 fi 9651 9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9654 fi 9655 9656 CFLAGS="$CFLAGS -Wreturn-type" 9657 9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9659printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9660 cacheid=xorg_cv_cc_flag__Wreturn_type 9661 if eval test \${$cacheid+y} 9662then : 9663 printf %s "(cached) " >&6 9664else $as_nop 9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9666/* end confdefs.h. */ 9667int i; 9668int 9669main (void) 9670{ 9671 9672 ; 9673 return 0; 9674} 9675_ACEOF 9676if ac_fn_c_try_link "$LINENO" 9677then : 9678 eval $cacheid=yes 9679else $as_nop 9680 eval $cacheid=no 9681fi 9682rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9683 conftest$ac_exeext conftest.$ac_ext 9684fi 9685 9686 9687 CFLAGS="$xorg_testset_save_CFLAGS" 9688 9689 eval supported=\$$cacheid 9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9691printf "%s\n" "$supported" >&6; } 9692 if test "$supported" = "yes" ; then 9693 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9694 found="yes" 9695 fi 9696 fi 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712xorg_testset_save_CFLAGS="$CFLAGS" 9713 9714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9718if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9719then : 9720 printf %s "(cached) " >&6 9721else $as_nop 9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9723/* end confdefs.h. */ 9724int i; 9725_ACEOF 9726if ac_fn_c_try_compile "$LINENO" 9727then : 9728 xorg_cv_cc_flag_unknown_warning_option=yes 9729else $as_nop 9730 xorg_cv_cc_flag_unknown_warning_option=no 9731fi 9732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9733fi 9734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9735printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9737 CFLAGS="$xorg_testset_save_CFLAGS" 9738fi 9739 9740if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9743 fi 9744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9746printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9747if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9748then : 9749 printf %s "(cached) " >&6 9750else $as_nop 9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9752/* end confdefs.h. */ 9753int i; 9754_ACEOF 9755if ac_fn_c_try_compile "$LINENO" 9756then : 9757 xorg_cv_cc_flag_unused_command_line_argument=yes 9758else $as_nop 9759 xorg_cv_cc_flag_unused_command_line_argument=no 9760fi 9761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9762fi 9763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9764printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9766 CFLAGS="$xorg_testset_save_CFLAGS" 9767fi 9768 9769found="no" 9770 9771 if test $found = "no" ; then 9772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9774 fi 9775 9776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9778 fi 9779 9780 CFLAGS="$CFLAGS -Wtrigraphs" 9781 9782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9783printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9784 cacheid=xorg_cv_cc_flag__Wtrigraphs 9785 if eval test \${$cacheid+y} 9786then : 9787 printf %s "(cached) " >&6 9788else $as_nop 9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9790/* end confdefs.h. */ 9791int i; 9792int 9793main (void) 9794{ 9795 9796 ; 9797 return 0; 9798} 9799_ACEOF 9800if ac_fn_c_try_link "$LINENO" 9801then : 9802 eval $cacheid=yes 9803else $as_nop 9804 eval $cacheid=no 9805fi 9806rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9807 conftest$ac_exeext conftest.$ac_ext 9808fi 9809 9810 9811 CFLAGS="$xorg_testset_save_CFLAGS" 9812 9813 eval supported=\$$cacheid 9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9815printf "%s\n" "$supported" >&6; } 9816 if test "$supported" = "yes" ; then 9817 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9818 found="yes" 9819 fi 9820 fi 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836xorg_testset_save_CFLAGS="$CFLAGS" 9837 9838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9842if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9843then : 9844 printf %s "(cached) " >&6 9845else $as_nop 9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9847/* end confdefs.h. */ 9848int i; 9849_ACEOF 9850if ac_fn_c_try_compile "$LINENO" 9851then : 9852 xorg_cv_cc_flag_unknown_warning_option=yes 9853else $as_nop 9854 xorg_cv_cc_flag_unknown_warning_option=no 9855fi 9856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9857fi 9858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9861 CFLAGS="$xorg_testset_save_CFLAGS" 9862fi 9863 9864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9867 fi 9868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9871if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9872then : 9873 printf %s "(cached) " >&6 9874else $as_nop 9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9876/* end confdefs.h. */ 9877int i; 9878_ACEOF 9879if ac_fn_c_try_compile "$LINENO" 9880then : 9881 xorg_cv_cc_flag_unused_command_line_argument=yes 9882else $as_nop 9883 xorg_cv_cc_flag_unused_command_line_argument=no 9884fi 9885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9886fi 9887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9890 CFLAGS="$xorg_testset_save_CFLAGS" 9891fi 9892 9893found="no" 9894 9895 if test $found = "no" ; then 9896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9897 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9898 fi 9899 9900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9902 fi 9903 9904 CFLAGS="$CFLAGS -Warray-bounds" 9905 9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9907printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9908 cacheid=xorg_cv_cc_flag__Warray_bounds 9909 if eval test \${$cacheid+y} 9910then : 9911 printf %s "(cached) " >&6 9912else $as_nop 9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9914/* end confdefs.h. */ 9915int i; 9916int 9917main (void) 9918{ 9919 9920 ; 9921 return 0; 9922} 9923_ACEOF 9924if ac_fn_c_try_link "$LINENO" 9925then : 9926 eval $cacheid=yes 9927else $as_nop 9928 eval $cacheid=no 9929fi 9930rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9931 conftest$ac_exeext conftest.$ac_ext 9932fi 9933 9934 9935 CFLAGS="$xorg_testset_save_CFLAGS" 9936 9937 eval supported=\$$cacheid 9938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9939printf "%s\n" "$supported" >&6; } 9940 if test "$supported" = "yes" ; then 9941 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9942 found="yes" 9943 fi 9944 fi 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960xorg_testset_save_CFLAGS="$CFLAGS" 9961 9962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9966if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9967then : 9968 printf %s "(cached) " >&6 9969else $as_nop 9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9971/* end confdefs.h. */ 9972int i; 9973_ACEOF 9974if ac_fn_c_try_compile "$LINENO" 9975then : 9976 xorg_cv_cc_flag_unknown_warning_option=yes 9977else $as_nop 9978 xorg_cv_cc_flag_unknown_warning_option=no 9979fi 9980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9981fi 9982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9983printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9985 CFLAGS="$xorg_testset_save_CFLAGS" 9986fi 9987 9988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9991 fi 9992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9994printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9995if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9996then : 9997 printf %s "(cached) " >&6 9998else $as_nop 9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10000/* end confdefs.h. */ 10001int i; 10002_ACEOF 10003if ac_fn_c_try_compile "$LINENO" 10004then : 10005 xorg_cv_cc_flag_unused_command_line_argument=yes 10006else $as_nop 10007 xorg_cv_cc_flag_unused_command_line_argument=no 10008fi 10009rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10010fi 10011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10014 CFLAGS="$xorg_testset_save_CFLAGS" 10015fi 10016 10017found="no" 10018 10019 if test $found = "no" ; then 10020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10022 fi 10023 10024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10026 fi 10027 10028 CFLAGS="$CFLAGS -Wwrite-strings" 10029 10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10031printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10032 cacheid=xorg_cv_cc_flag__Wwrite_strings 10033 if eval test \${$cacheid+y} 10034then : 10035 printf %s "(cached) " >&6 10036else $as_nop 10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038/* end confdefs.h. */ 10039int i; 10040int 10041main (void) 10042{ 10043 10044 ; 10045 return 0; 10046} 10047_ACEOF 10048if ac_fn_c_try_link "$LINENO" 10049then : 10050 eval $cacheid=yes 10051else $as_nop 10052 eval $cacheid=no 10053fi 10054rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10055 conftest$ac_exeext conftest.$ac_ext 10056fi 10057 10058 10059 CFLAGS="$xorg_testset_save_CFLAGS" 10060 10061 eval supported=\$$cacheid 10062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10063printf "%s\n" "$supported" >&6; } 10064 if test "$supported" = "yes" ; then 10065 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10066 found="yes" 10067 fi 10068 fi 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084xorg_testset_save_CFLAGS="$CFLAGS" 10085 10086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10089printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10090if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10091then : 10092 printf %s "(cached) " >&6 10093else $as_nop 10094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10095/* end confdefs.h. */ 10096int i; 10097_ACEOF 10098if ac_fn_c_try_compile "$LINENO" 10099then : 10100 xorg_cv_cc_flag_unknown_warning_option=yes 10101else $as_nop 10102 xorg_cv_cc_flag_unknown_warning_option=no 10103fi 10104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10105fi 10106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10107printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10109 CFLAGS="$xorg_testset_save_CFLAGS" 10110fi 10111 10112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10115 fi 10116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10118printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10119if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10120then : 10121 printf %s "(cached) " >&6 10122else $as_nop 10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10124/* end confdefs.h. */ 10125int i; 10126_ACEOF 10127if ac_fn_c_try_compile "$LINENO" 10128then : 10129 xorg_cv_cc_flag_unused_command_line_argument=yes 10130else $as_nop 10131 xorg_cv_cc_flag_unused_command_line_argument=no 10132fi 10133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10134fi 10135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10136printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10138 CFLAGS="$xorg_testset_save_CFLAGS" 10139fi 10140 10141found="no" 10142 10143 if test $found = "no" ; then 10144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10146 fi 10147 10148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10150 fi 10151 10152 CFLAGS="$CFLAGS -Waddress" 10153 10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10155printf %s "checking if $CC supports -Waddress... " >&6; } 10156 cacheid=xorg_cv_cc_flag__Waddress 10157 if eval test \${$cacheid+y} 10158then : 10159 printf %s "(cached) " >&6 10160else $as_nop 10161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163int i; 10164int 10165main (void) 10166{ 10167 10168 ; 10169 return 0; 10170} 10171_ACEOF 10172if ac_fn_c_try_link "$LINENO" 10173then : 10174 eval $cacheid=yes 10175else $as_nop 10176 eval $cacheid=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10179 conftest$ac_exeext conftest.$ac_ext 10180fi 10181 10182 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184 10185 eval supported=\$$cacheid 10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10187printf "%s\n" "$supported" >&6; } 10188 if test "$supported" = "yes" ; then 10189 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10190 found="yes" 10191 fi 10192 fi 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208xorg_testset_save_CFLAGS="$CFLAGS" 10209 10210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10213printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10214if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10215then : 10216 printf %s "(cached) " >&6 10217else $as_nop 10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10219/* end confdefs.h. */ 10220int i; 10221_ACEOF 10222if ac_fn_c_try_compile "$LINENO" 10223then : 10224 xorg_cv_cc_flag_unknown_warning_option=yes 10225else $as_nop 10226 xorg_cv_cc_flag_unknown_warning_option=no 10227fi 10228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10229fi 10230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10231printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10232 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10233 CFLAGS="$xorg_testset_save_CFLAGS" 10234fi 10235 10236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10239 fi 10240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10242printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10243if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10244then : 10245 printf %s "(cached) " >&6 10246else $as_nop 10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10248/* end confdefs.h. */ 10249int i; 10250_ACEOF 10251if ac_fn_c_try_compile "$LINENO" 10252then : 10253 xorg_cv_cc_flag_unused_command_line_argument=yes 10254else $as_nop 10255 xorg_cv_cc_flag_unused_command_line_argument=no 10256fi 10257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10258fi 10259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10260printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10261 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10262 CFLAGS="$xorg_testset_save_CFLAGS" 10263fi 10264 10265found="no" 10266 10267 if test $found = "no" ; then 10268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10269 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10270 fi 10271 10272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10274 fi 10275 10276 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10277 10278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10279printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10280 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10281 if eval test \${$cacheid+y} 10282then : 10283 printf %s "(cached) " >&6 10284else $as_nop 10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286/* end confdefs.h. */ 10287int i; 10288int 10289main (void) 10290{ 10291 10292 ; 10293 return 0; 10294} 10295_ACEOF 10296if ac_fn_c_try_link "$LINENO" 10297then : 10298 eval $cacheid=yes 10299else $as_nop 10300 eval $cacheid=no 10301fi 10302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10303 conftest$ac_exeext conftest.$ac_ext 10304fi 10305 10306 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308 10309 eval supported=\$$cacheid 10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10311printf "%s\n" "$supported" >&6; } 10312 if test "$supported" = "yes" ; then 10313 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10314 found="yes" 10315 fi 10316 fi 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332xorg_testset_save_CFLAGS="$CFLAGS" 10333 10334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10337printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10338if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10339then : 10340 printf %s "(cached) " >&6 10341else $as_nop 10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10343/* end confdefs.h. */ 10344int i; 10345_ACEOF 10346if ac_fn_c_try_compile "$LINENO" 10347then : 10348 xorg_cv_cc_flag_unknown_warning_option=yes 10349else $as_nop 10350 xorg_cv_cc_flag_unknown_warning_option=no 10351fi 10352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10353fi 10354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10355printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10357 CFLAGS="$xorg_testset_save_CFLAGS" 10358fi 10359 10360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10363 fi 10364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10366printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10367if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10368then : 10369 printf %s "(cached) " >&6 10370else $as_nop 10371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10372/* end confdefs.h. */ 10373int i; 10374_ACEOF 10375if ac_fn_c_try_compile "$LINENO" 10376then : 10377 xorg_cv_cc_flag_unused_command_line_argument=yes 10378else $as_nop 10379 xorg_cv_cc_flag_unused_command_line_argument=no 10380fi 10381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10382fi 10383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10384printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10386 CFLAGS="$xorg_testset_save_CFLAGS" 10387fi 10388 10389found="no" 10390 10391 if test $found = "no" ; then 10392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10394 fi 10395 10396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10398 fi 10399 10400 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10401 10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10403printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10404 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10405 if eval test \${$cacheid+y} 10406then : 10407 printf %s "(cached) " >&6 10408else $as_nop 10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10410/* end confdefs.h. */ 10411int i; 10412int 10413main (void) 10414{ 10415 10416 ; 10417 return 0; 10418} 10419_ACEOF 10420if ac_fn_c_try_link "$LINENO" 10421then : 10422 eval $cacheid=yes 10423else $as_nop 10424 eval $cacheid=no 10425fi 10426rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10427 conftest$ac_exeext conftest.$ac_ext 10428fi 10429 10430 10431 CFLAGS="$xorg_testset_save_CFLAGS" 10432 10433 eval supported=\$$cacheid 10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10435printf "%s\n" "$supported" >&6; } 10436 if test "$supported" = "yes" ; then 10437 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10438 found="yes" 10439 fi 10440 fi 10441 10442 10443fi 10444 10445 10446 10447 10448 10449 10450 10451 CWARNFLAGS="$BASE_CFLAGS" 10452 if test "x$GCC" = xyes ; then 10453 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10454 fi 10455 10456 10457 10458 10459 10460 10461 10462 10463# Check whether --enable-strict-compilation was given. 10464if test ${enable_strict_compilation+y} 10465then : 10466 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10467else $as_nop 10468 STRICT_COMPILE=no 10469fi 10470 10471 10472 10473 10474 10475 10476STRICT_CFLAGS="" 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490xorg_testset_save_CFLAGS="$CFLAGS" 10491 10492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10495printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10496if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10497then : 10498 printf %s "(cached) " >&6 10499else $as_nop 10500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10501/* end confdefs.h. */ 10502int i; 10503_ACEOF 10504if ac_fn_c_try_compile "$LINENO" 10505then : 10506 xorg_cv_cc_flag_unknown_warning_option=yes 10507else $as_nop 10508 xorg_cv_cc_flag_unknown_warning_option=no 10509fi 10510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10511fi 10512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10515 CFLAGS="$xorg_testset_save_CFLAGS" 10516fi 10517 10518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10521 fi 10522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10525if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10526then : 10527 printf %s "(cached) " >&6 10528else $as_nop 10529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10530/* end confdefs.h. */ 10531int i; 10532_ACEOF 10533if ac_fn_c_try_compile "$LINENO" 10534then : 10535 xorg_cv_cc_flag_unused_command_line_argument=yes 10536else $as_nop 10537 xorg_cv_cc_flag_unused_command_line_argument=no 10538fi 10539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10540fi 10541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10542printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10544 CFLAGS="$xorg_testset_save_CFLAGS" 10545fi 10546 10547found="no" 10548 10549 if test $found = "no" ; then 10550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10552 fi 10553 10554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10556 fi 10557 10558 CFLAGS="$CFLAGS -pedantic" 10559 10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10561printf %s "checking if $CC supports -pedantic... " >&6; } 10562 cacheid=xorg_cv_cc_flag__pedantic 10563 if eval test \${$cacheid+y} 10564then : 10565 printf %s "(cached) " >&6 10566else $as_nop 10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10568/* end confdefs.h. */ 10569int i; 10570int 10571main (void) 10572{ 10573 10574 ; 10575 return 0; 10576} 10577_ACEOF 10578if ac_fn_c_try_link "$LINENO" 10579then : 10580 eval $cacheid=yes 10581else $as_nop 10582 eval $cacheid=no 10583fi 10584rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10585 conftest$ac_exeext conftest.$ac_ext 10586fi 10587 10588 10589 CFLAGS="$xorg_testset_save_CFLAGS" 10590 10591 eval supported=\$$cacheid 10592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10593printf "%s\n" "$supported" >&6; } 10594 if test "$supported" = "yes" ; then 10595 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10596 found="yes" 10597 fi 10598 fi 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614xorg_testset_save_CFLAGS="$CFLAGS" 10615 10616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10620if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10621then : 10622 printf %s "(cached) " >&6 10623else $as_nop 10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10625/* end confdefs.h. */ 10626int i; 10627_ACEOF 10628if ac_fn_c_try_compile "$LINENO" 10629then : 10630 xorg_cv_cc_flag_unknown_warning_option=yes 10631else $as_nop 10632 xorg_cv_cc_flag_unknown_warning_option=no 10633fi 10634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10635fi 10636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10639 CFLAGS="$xorg_testset_save_CFLAGS" 10640fi 10641 10642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10645 fi 10646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10649if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10650then : 10651 printf %s "(cached) " >&6 10652else $as_nop 10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10654/* end confdefs.h. */ 10655int i; 10656_ACEOF 10657if ac_fn_c_try_compile "$LINENO" 10658then : 10659 xorg_cv_cc_flag_unused_command_line_argument=yes 10660else $as_nop 10661 xorg_cv_cc_flag_unused_command_line_argument=no 10662fi 10663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10664fi 10665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10668 CFLAGS="$xorg_testset_save_CFLAGS" 10669fi 10670 10671found="no" 10672 10673 if test $found = "no" ; then 10674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10676 fi 10677 10678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10680 fi 10681 10682 CFLAGS="$CFLAGS -Werror" 10683 10684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10685printf %s "checking if $CC supports -Werror... " >&6; } 10686 cacheid=xorg_cv_cc_flag__Werror 10687 if eval test \${$cacheid+y} 10688then : 10689 printf %s "(cached) " >&6 10690else $as_nop 10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10692/* end confdefs.h. */ 10693int i; 10694int 10695main (void) 10696{ 10697 10698 ; 10699 return 0; 10700} 10701_ACEOF 10702if ac_fn_c_try_link "$LINENO" 10703then : 10704 eval $cacheid=yes 10705else $as_nop 10706 eval $cacheid=no 10707fi 10708rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10709 conftest$ac_exeext conftest.$ac_ext 10710fi 10711 10712 10713 CFLAGS="$xorg_testset_save_CFLAGS" 10714 10715 eval supported=\$$cacheid 10716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10717printf "%s\n" "$supported" >&6; } 10718 if test "$supported" = "yes" ; then 10719 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10720 found="yes" 10721 fi 10722 fi 10723 10724 if test $found = "no" ; then 10725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10726 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10727 fi 10728 10729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10731 fi 10732 10733 CFLAGS="$CFLAGS -errwarn" 10734 10735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10736printf %s "checking if $CC supports -errwarn... " >&6; } 10737 cacheid=xorg_cv_cc_flag__errwarn 10738 if eval test \${$cacheid+y} 10739then : 10740 printf %s "(cached) " >&6 10741else $as_nop 10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10743/* end confdefs.h. */ 10744int i; 10745int 10746main (void) 10747{ 10748 10749 ; 10750 return 0; 10751} 10752_ACEOF 10753if ac_fn_c_try_link "$LINENO" 10754then : 10755 eval $cacheid=yes 10756else $as_nop 10757 eval $cacheid=no 10758fi 10759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10760 conftest$ac_exeext conftest.$ac_ext 10761fi 10762 10763 10764 CFLAGS="$xorg_testset_save_CFLAGS" 10765 10766 eval supported=\$$cacheid 10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10768printf "%s\n" "$supported" >&6; } 10769 if test "$supported" = "yes" ; then 10770 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10771 found="yes" 10772 fi 10773 fi 10774 10775 10776 10777# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10778# activate it with -Werror, so we add it here explicitly. 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792xorg_testset_save_CFLAGS="$CFLAGS" 10793 10794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10798if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10799then : 10800 printf %s "(cached) " >&6 10801else $as_nop 10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10803/* end confdefs.h. */ 10804int i; 10805_ACEOF 10806if ac_fn_c_try_compile "$LINENO" 10807then : 10808 xorg_cv_cc_flag_unknown_warning_option=yes 10809else $as_nop 10810 xorg_cv_cc_flag_unknown_warning_option=no 10811fi 10812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10813fi 10814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10817 CFLAGS="$xorg_testset_save_CFLAGS" 10818fi 10819 10820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10823 fi 10824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10827if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10828then : 10829 printf %s "(cached) " >&6 10830else $as_nop 10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832/* end confdefs.h. */ 10833int i; 10834_ACEOF 10835if ac_fn_c_try_compile "$LINENO" 10836then : 10837 xorg_cv_cc_flag_unused_command_line_argument=yes 10838else $as_nop 10839 xorg_cv_cc_flag_unused_command_line_argument=no 10840fi 10841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10842fi 10843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10846 CFLAGS="$xorg_testset_save_CFLAGS" 10847fi 10848 10849found="no" 10850 10851 if test $found = "no" ; then 10852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10854 fi 10855 10856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10858 fi 10859 10860 CFLAGS="$CFLAGS -Werror=attributes" 10861 10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10863printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10864 cacheid=xorg_cv_cc_flag__Werror_attributes 10865 if eval test \${$cacheid+y} 10866then : 10867 printf %s "(cached) " >&6 10868else $as_nop 10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10870/* end confdefs.h. */ 10871int i; 10872int 10873main (void) 10874{ 10875 10876 ; 10877 return 0; 10878} 10879_ACEOF 10880if ac_fn_c_try_link "$LINENO" 10881then : 10882 eval $cacheid=yes 10883else $as_nop 10884 eval $cacheid=no 10885fi 10886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10887 conftest$ac_exeext conftest.$ac_ext 10888fi 10889 10890 10891 CFLAGS="$xorg_testset_save_CFLAGS" 10892 10893 eval supported=\$$cacheid 10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10895printf "%s\n" "$supported" >&6; } 10896 if test "$supported" = "yes" ; then 10897 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10898 found="yes" 10899 fi 10900 fi 10901 10902 10903 10904if test "x$STRICT_COMPILE" = "xyes"; then 10905 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10906 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10907fi 10908 10909 10910 10911 10912 10913 10914cat >>confdefs.h <<_ACEOF 10915#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10916_ACEOF 10917 10918 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10919 if test "x$PVM" = "x"; then 10920 PVM="0" 10921 fi 10922 10923printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10924 10925 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10926 if test "x$PVP" = "x"; then 10927 PVP="0" 10928 fi 10929 10930printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10931 10932 10933 10934CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10935mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10936|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10937touch \$(top_srcdir)/ChangeLog; \ 10938echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10939 10940 10941 10942 10943macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10944INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10945mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10946|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10947touch \$(top_srcdir)/INSTALL; \ 10948echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10949 10950 10951 10952 10953 10954 10955case $host_os in 10956 solaris*) 10957 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10958 # check for a man page file found in later versions that use 10959 # traditional section numbers instead 10960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10961printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10962if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10963then : 10964 printf %s "(cached) " >&6 10965else $as_nop 10966 test "$cross_compiling" = yes && 10967 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10968if test -r "/usr/share/man/man7/attributes.7"; then 10969 ac_cv_file__usr_share_man_man7_attributes_7=yes 10970else 10971 ac_cv_file__usr_share_man_man7_attributes_7=no 10972fi 10973fi 10974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10975printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10976if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10977then : 10978 SYSV_MAN_SECTIONS=false 10979else $as_nop 10980 SYSV_MAN_SECTIONS=true 10981fi 10982 10983 ;; 10984 *) SYSV_MAN_SECTIONS=false ;; 10985esac 10986 10987if test x$APP_MAN_SUFFIX = x ; then 10988 APP_MAN_SUFFIX=1 10989fi 10990if test x$APP_MAN_DIR = x ; then 10991 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10992fi 10993 10994if test x$LIB_MAN_SUFFIX = x ; then 10995 LIB_MAN_SUFFIX=3 10996fi 10997if test x$LIB_MAN_DIR = x ; then 10998 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10999fi 11000 11001if test x$FILE_MAN_SUFFIX = x ; then 11002 case $SYSV_MAN_SECTIONS in 11003 true) FILE_MAN_SUFFIX=4 ;; 11004 *) FILE_MAN_SUFFIX=5 ;; 11005 esac 11006fi 11007if test x$FILE_MAN_DIR = x ; then 11008 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11009fi 11010 11011if test x$MISC_MAN_SUFFIX = x ; then 11012 case $SYSV_MAN_SECTIONS in 11013 true) MISC_MAN_SUFFIX=5 ;; 11014 *) MISC_MAN_SUFFIX=7 ;; 11015 esac 11016fi 11017if test x$MISC_MAN_DIR = x ; then 11018 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11019fi 11020 11021if test x$DRIVER_MAN_SUFFIX = x ; then 11022 case $SYSV_MAN_SECTIONS in 11023 true) DRIVER_MAN_SUFFIX=7 ;; 11024 *) DRIVER_MAN_SUFFIX=4 ;; 11025 esac 11026fi 11027if test x$DRIVER_MAN_DIR = x ; then 11028 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11029fi 11030 11031if test x$ADMIN_MAN_SUFFIX = x ; then 11032 case $SYSV_MAN_SECTIONS in 11033 true) ADMIN_MAN_SUFFIX=1m ;; 11034 *) ADMIN_MAN_SUFFIX=8 ;; 11035 esac 11036fi 11037if test x$ADMIN_MAN_DIR = x ; then 11038 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11039fi 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055XORG_MAN_PAGE="X Version 11" 11056 11057MAN_SUBSTS="\ 11058 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11059 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11060 -e 's|__xservername__|Xorg|g' \ 11061 -e 's|__xconfigfile__|xorg.conf|g' \ 11062 -e 's|__projectroot__|\$(prefix)|g' \ 11063 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11064 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11065 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11066 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11067 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11068 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11069 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11070 11071 11072 11073# Check whether --enable-silent-rules was given. 11074if test ${enable_silent_rules+y} 11075then : 11076 enableval=$enable_silent_rules; 11077fi 11078 11079case $enable_silent_rules in # ((( 11080 yes) AM_DEFAULT_VERBOSITY=0;; 11081 no) AM_DEFAULT_VERBOSITY=1;; 11082 *) AM_DEFAULT_VERBOSITY=0;; 11083esac 11084am_make=${MAKE-make} 11085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11086printf %s "checking whether $am_make supports nested variables... " >&6; } 11087if test ${am_cv_make_support_nested_variables+y} 11088then : 11089 printf %s "(cached) " >&6 11090else $as_nop 11091 if printf "%s\n" 'TRUE=$(BAR$(V)) 11092BAR0=false 11093BAR1=true 11094V=1 11095am__doit: 11096 @$(TRUE) 11097.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11098 am_cv_make_support_nested_variables=yes 11099else 11100 am_cv_make_support_nested_variables=no 11101fi 11102fi 11103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11104printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11105if test $am_cv_make_support_nested_variables = yes; then 11106 AM_V='$(V)' 11107 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11108else 11109 AM_V=$AM_DEFAULT_VERBOSITY 11110 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11111fi 11112AM_BACKSLASH='\' 11113 11114 11115 11116# Internationalization & localization support 11117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5 11118printf %s "checking for library containing gettext... " >&6; } 11119if test ${ac_cv_search_gettext+y} 11120then : 11121 printf %s "(cached) " >&6 11122else $as_nop 11123 ac_func_search_save_LIBS=$LIBS 11124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11125/* end confdefs.h. */ 11126 11127/* Override any GCC internal prototype to avoid an error. 11128 Use char because int might match the return type of a GCC 11129 builtin and then its argument prototype would still apply. */ 11130char gettext (); 11131int 11132main (void) 11133{ 11134return gettext (); 11135 ; 11136 return 0; 11137} 11138_ACEOF 11139for ac_lib in '' intl 11140do 11141 if test -z "$ac_lib"; then 11142 ac_res="none required" 11143 else 11144 ac_res=-l$ac_lib 11145 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11146 fi 11147 if ac_fn_c_try_link "$LINENO" 11148then : 11149 ac_cv_search_gettext=$ac_res 11150fi 11151rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11152 conftest$ac_exeext 11153 if test ${ac_cv_search_gettext+y} 11154then : 11155 break 11156fi 11157done 11158if test ${ac_cv_search_gettext+y} 11159then : 11160 11161else $as_nop 11162 ac_cv_search_gettext=no 11163fi 11164rm conftest.$ac_ext 11165LIBS=$ac_func_search_save_LIBS 11166fi 11167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5 11168printf "%s\n" "$ac_cv_search_gettext" >&6; } 11169ac_res=$ac_cv_search_gettext 11170if test "$ac_res" != no 11171then : 11172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11173 USE_GETTEXT="yes" 11174else $as_nop 11175 USE_GETTEXT="no" 11176fi 11177 11178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5 11179printf %s "checking where to install localized messages... " >&6; } 11180 11181# Check whether --with-localedir was given. 11182if test ${with_localedir+y} 11183then : 11184 withval=$with_localedir; LOCALEDIR=${withval} 11185else $as_nop 11186 LOCALEDIR=${datadir}/locale 11187fi 11188 11189 11190if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5 11192printf "%s\n" "nowhere" >&6; } 11193 USE_GETTEXT="no" 11194else 11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5 11196printf "%s\n" "$LOCALEDIR" >&6; } 11197fi 11198 11199if test "x$USE_GETTEXT" = "xyes" ; then 11200 11201printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h 11202 11203fi 11204 if test "x$USE_GETTEXT" = "xyes"; then 11205 USE_GETTEXT_TRUE= 11206 USE_GETTEXT_FALSE='#' 11207else 11208 USE_GETTEXT_TRUE='#' 11209 USE_GETTEXT_FALSE= 11210fi 11211 11212 11213# Optional dependencies 11214 11215# Check whether --with-xkb was given. 11216if test ${with_xkb+y} 11217then : 11218 withval=$with_xkb; use_xkb="$withval" 11219else $as_nop 11220 use_xkb="yes" 11221fi 11222 11223if test x$use_xkb != xno ; then 11224 XKBMODULE="xkbfile" 11225 11226printf "%s\n" "#define XKB 1" >>confdefs.h 11227 11228fi 11229 11230# Checks for pkg-config packages 11231 11232pkg_failed=no 11233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFD" >&5 11234printf %s "checking for XFD... " >&6; } 11235 11236if test -n "$XFD_CFLAGS"; then 11237 pkg_cv_XFD_CFLAGS="$XFD_CFLAGS" 11238 elif test -n "$PKG_CONFIG"; then 11239 if test -n "$PKG_CONFIG" && \ 11240 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 \${XKBMODULE}\""; } >&5 11241 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}") 2>&5 11242 ac_status=$? 11243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11244 test $ac_status = 0; }; then 11245 pkg_cv_XFD_CFLAGS=`$PKG_CONFIG --cflags "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null` 11246 test "x$?" != "x0" && pkg_failed=yes 11247else 11248 pkg_failed=yes 11249fi 11250 else 11251 pkg_failed=untried 11252fi 11253if test -n "$XFD_LIBS"; then 11254 pkg_cv_XFD_LIBS="$XFD_LIBS" 11255 elif test -n "$PKG_CONFIG"; then 11256 if test -n "$PKG_CONFIG" && \ 11257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 \${XKBMODULE}\""; } >&5 11258 ($PKG_CONFIG --exists --print-errors "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}") 2>&5 11259 ac_status=$? 11260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11261 test $ac_status = 0; }; then 11262 pkg_cv_XFD_LIBS=`$PKG_CONFIG --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}" 2>/dev/null` 11263 test "x$?" != "x0" && pkg_failed=yes 11264else 11265 pkg_failed=yes 11266fi 11267 else 11268 pkg_failed=untried 11269fi 11270 11271 11272 11273if test $pkg_failed = yes; then 11274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11275printf "%s\n" "no" >&6; } 11276 11277if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11278 _pkg_short_errors_supported=yes 11279else 11280 _pkg_short_errors_supported=no 11281fi 11282 if test $_pkg_short_errors_supported = yes; then 11283 XFD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}" 2>&1` 11284 else 11285 XFD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}" 2>&1` 11286 fi 11287 # Put the nasty error message in config.log where it belongs 11288 echo "$XFD_PKG_ERRORS" >&5 11289 11290 as_fn_error $? "Package requirements (xaw7 fontconfig xft xrender xmu xproto >= 7.0.25 ${XKBMODULE}) were not met: 11291 11292$XFD_PKG_ERRORS 11293 11294Consider adjusting the PKG_CONFIG_PATH environment variable if you 11295installed software in a non-standard prefix. 11296 11297Alternatively, you may set the environment variables XFD_CFLAGS 11298and XFD_LIBS to avoid the need to call pkg-config. 11299See the pkg-config man page for more details." "$LINENO" 5 11300elif test $pkg_failed = untried; then 11301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11302printf "%s\n" "no" >&6; } 11303 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11304printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11305as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11306is in your PATH or set the PKG_CONFIG environment variable to the full 11307path to pkg-config. 11308 11309Alternatively, you may set the environment variables XFD_CFLAGS 11310and XFD_LIBS to avoid the need to call pkg-config. 11311See the pkg-config man page for more details. 11312 11313To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11314See \`config.log' for more details" "$LINENO" 5; } 11315else 11316 XFD_CFLAGS=$pkg_cv_XFD_CFLAGS 11317 XFD_LIBS=$pkg_cv_XFD_LIBS 11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11319printf "%s\n" "yes" >&6; } 11320 11321fi 11322 11323 11324pkg_failed=no 11325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11326printf %s "checking for APPDEFS... " >&6; } 11327 11328if test -n "$APPDEFS_CFLAGS"; then 11329 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11330 elif test -n "$PKG_CONFIG"; then 11331 if test -n "$PKG_CONFIG" && \ 11332 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11333 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11334 ac_status=$? 11335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11336 test $ac_status = 0; }; then 11337 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11338 test "x$?" != "x0" && pkg_failed=yes 11339else 11340 pkg_failed=yes 11341fi 11342 else 11343 pkg_failed=untried 11344fi 11345if test -n "$APPDEFS_LIBS"; then 11346 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11347 elif test -n "$PKG_CONFIG"; then 11348 if test -n "$PKG_CONFIG" && \ 11349 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11350 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11351 ac_status=$? 11352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11353 test $ac_status = 0; }; then 11354 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11355 test "x$?" != "x0" && pkg_failed=yes 11356else 11357 pkg_failed=yes 11358fi 11359 else 11360 pkg_failed=untried 11361fi 11362 11363 11364 11365if test $pkg_failed = yes; then 11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11367printf "%s\n" "no" >&6; } 11368 11369if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11370 _pkg_short_errors_supported=yes 11371else 11372 _pkg_short_errors_supported=no 11373fi 11374 if test $_pkg_short_errors_supported = yes; then 11375 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11376 else 11377 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11378 fi 11379 # Put the nasty error message in config.log where it belongs 11380 echo "$APPDEFS_PKG_ERRORS" >&5 11381 11382 as_fn_error $? "Package requirements (xt) were not met: 11383 11384$APPDEFS_PKG_ERRORS 11385 11386Consider adjusting the PKG_CONFIG_PATH environment variable if you 11387installed software in a non-standard prefix. 11388 11389Alternatively, you may set the environment variables APPDEFS_CFLAGS 11390and APPDEFS_LIBS to avoid the need to call pkg-config. 11391See the pkg-config man page for more details." "$LINENO" 5 11392elif test $pkg_failed = untried; then 11393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11394printf "%s\n" "no" >&6; } 11395 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11396printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11397as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11398is in your PATH or set the PKG_CONFIG environment variable to the full 11399path to pkg-config. 11400 11401Alternatively, you may set the environment variables APPDEFS_CFLAGS 11402and APPDEFS_LIBS to avoid the need to call pkg-config. 11403See the pkg-config man page for more details. 11404 11405To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11406See \`config.log' for more details" "$LINENO" 5; } 11407else 11408 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11409 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11411printf "%s\n" "yes" >&6; } 11412 11413fi 11414xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11415 11416# Check whether --with-appdefaultdir was given. 11417if test ${with_appdefaultdir+y} 11418then : 11419 withval=$with_appdefaultdir; appdefaultdir="$withval" 11420else $as_nop 11421 appdefaultdir="${xt_appdefaultdir}" 11422fi 11423 11424 11425 11426 11427ac_config_files="$ac_config_files Makefile man/Makefile" 11428 11429cat >confcache <<\_ACEOF 11430# This file is a shell script that caches the results of configure 11431# tests run on this system so they can be shared between configure 11432# scripts and configure runs, see configure's option --config-cache. 11433# It is not useful on other systems. If it contains results you don't 11434# want to keep, you may remove or edit it. 11435# 11436# config.status only pays attention to the cache file if you give it 11437# the --recheck option to rerun configure. 11438# 11439# `ac_cv_env_foo' variables (set or unset) will be overridden when 11440# loading this file, other *unset* `ac_cv_foo' will be assigned the 11441# following values. 11442 11443_ACEOF 11444 11445# The following way of writing the cache mishandles newlines in values, 11446# but we know of no workaround that is simple, portable, and efficient. 11447# So, we kill variables containing newlines. 11448# Ultrix sh set writes to stderr and can't be redirected directly, 11449# and sets the high bit in the cache file unless we assign to the vars. 11450( 11451 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11452 eval ac_val=\$$ac_var 11453 case $ac_val in #( 11454 *${as_nl}*) 11455 case $ac_var in #( 11456 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11457printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11458 esac 11459 case $ac_var in #( 11460 _ | IFS | as_nl) ;; #( 11461 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11462 *) { eval $ac_var=; unset $ac_var;} ;; 11463 esac ;; 11464 esac 11465 done 11466 11467 (set) 2>&1 | 11468 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11469 *${as_nl}ac_space=\ *) 11470 # `set' does not quote correctly, so add quotes: double-quote 11471 # substitution turns \\\\ into \\, and sed turns \\ into \. 11472 sed -n \ 11473 "s/'/'\\\\''/g; 11474 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11475 ;; #( 11476 *) 11477 # `set' quotes correctly as required by POSIX, so do not add quotes. 11478 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11479 ;; 11480 esac | 11481 sort 11482) | 11483 sed ' 11484 /^ac_cv_env_/b end 11485 t clear 11486 :clear 11487 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11488 t end 11489 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11490 :end' >>confcache 11491if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11492 if test -w "$cache_file"; then 11493 if test "x$cache_file" != "x/dev/null"; then 11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11495printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11496 if test ! -f "$cache_file" || test -h "$cache_file"; then 11497 cat confcache >"$cache_file" 11498 else 11499 case $cache_file in #( 11500 */* | ?:*) 11501 mv -f confcache "$cache_file"$$ && 11502 mv -f "$cache_file"$$ "$cache_file" ;; #( 11503 *) 11504 mv -f confcache "$cache_file" ;; 11505 esac 11506 fi 11507 fi 11508 else 11509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11510printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11511 fi 11512fi 11513rm -f confcache 11514 11515test "x$prefix" = xNONE && prefix=$ac_default_prefix 11516# Let make expand exec_prefix. 11517test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11518 11519DEFS=-DHAVE_CONFIG_H 11520 11521ac_libobjs= 11522ac_ltlibobjs= 11523U= 11524for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11525 # 1. Remove the extension, and $U if already installed. 11526 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11527 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11528 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11529 # will be set to the directory where LIBOBJS objects are built. 11530 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11531 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11532done 11533LIBOBJS=$ac_libobjs 11534 11535LTLIBOBJS=$ac_ltlibobjs 11536 11537 11538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11539printf %s "checking that generated files are newer than configure... " >&6; } 11540 if test -n "$am_sleep_pid"; then 11541 # Hide warnings about reused PIDs. 11542 wait $am_sleep_pid 2>/dev/null 11543 fi 11544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11545printf "%s\n" "done" >&6; } 11546 if test -n "$EXEEXT"; then 11547 am__EXEEXT_TRUE= 11548 am__EXEEXT_FALSE='#' 11549else 11550 am__EXEEXT_TRUE='#' 11551 am__EXEEXT_FALSE= 11552fi 11553 11554if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11555 as_fn_error $? "conditional \"AMDEP\" was never defined. 11556Usually this means the macro was only invoked conditionally." "$LINENO" 5 11557fi 11558if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11559 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11560Usually this means the macro was only invoked conditionally." "$LINENO" 5 11561fi 11562if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then 11563 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined. 11564Usually this means the macro was only invoked conditionally." "$LINENO" 5 11565fi 11566 11567: "${CONFIG_STATUS=./config.status}" 11568ac_write_fail=0 11569ac_clean_files_save=$ac_clean_files 11570ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11572printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11573as_write_fail=0 11574cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11575#! $SHELL 11576# Generated by $as_me. 11577# Run this file to recreate the current configuration. 11578# Compiler output produced by configure, useful for debugging 11579# configure, is in config.log if it exists. 11580 11581debug=false 11582ac_cs_recheck=false 11583ac_cs_silent=false 11584 11585SHELL=\${CONFIG_SHELL-$SHELL} 11586export SHELL 11587_ASEOF 11588cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11589## -------------------- ## 11590## M4sh Initialization. ## 11591## -------------------- ## 11592 11593# Be more Bourne compatible 11594DUALCASE=1; export DUALCASE # for MKS sh 11595as_nop=: 11596if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11597then : 11598 emulate sh 11599 NULLCMD=: 11600 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11601 # is contrary to our usage. Disable this feature. 11602 alias -g '${1+"$@"}'='"$@"' 11603 setopt NO_GLOB_SUBST 11604else $as_nop 11605 case `(set -o) 2>/dev/null` in #( 11606 *posix*) : 11607 set -o posix ;; #( 11608 *) : 11609 ;; 11610esac 11611fi 11612 11613 11614 11615# Reset variables that may have inherited troublesome values from 11616# the environment. 11617 11618# IFS needs to be set, to space, tab, and newline, in precisely that order. 11619# (If _AS_PATH_WALK were called with IFS unset, it would have the 11620# side effect of setting IFS to empty, thus disabling word splitting.) 11621# Quoting is to prevent editors from complaining about space-tab. 11622as_nl=' 11623' 11624export as_nl 11625IFS=" "" $as_nl" 11626 11627PS1='$ ' 11628PS2='> ' 11629PS4='+ ' 11630 11631# Ensure predictable behavior from utilities with locale-dependent output. 11632LC_ALL=C 11633export LC_ALL 11634LANGUAGE=C 11635export LANGUAGE 11636 11637# We cannot yet rely on "unset" to work, but we need these variables 11638# to be unset--not just set to an empty or harmless value--now, to 11639# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11640# also avoids known problems related to "unset" and subshell syntax 11641# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11642for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11643do eval test \${$as_var+y} \ 11644 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11645done 11646 11647# Ensure that fds 0, 1, and 2 are open. 11648if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11649if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11650if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11651 11652# The user is always right. 11653if ${PATH_SEPARATOR+false} :; then 11654 PATH_SEPARATOR=: 11655 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11656 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11657 PATH_SEPARATOR=';' 11658 } 11659fi 11660 11661 11662# Find who we are. Look in the path if we contain no directory separator. 11663as_myself= 11664case $0 in #(( 11665 *[\\/]* ) as_myself=$0 ;; 11666 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11667for as_dir in $PATH 11668do 11669 IFS=$as_save_IFS 11670 case $as_dir in #((( 11671 '') as_dir=./ ;; 11672 */) ;; 11673 *) as_dir=$as_dir/ ;; 11674 esac 11675 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11676 done 11677IFS=$as_save_IFS 11678 11679 ;; 11680esac 11681# We did not find ourselves, most probably we were run as `sh COMMAND' 11682# in which case we are not to be found in the path. 11683if test "x$as_myself" = x; then 11684 as_myself=$0 11685fi 11686if test ! -f "$as_myself"; then 11687 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11688 exit 1 11689fi 11690 11691 11692 11693# as_fn_error STATUS ERROR [LINENO LOG_FD] 11694# ---------------------------------------- 11695# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11696# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11697# script with STATUS, using 1 if that was 0. 11698as_fn_error () 11699{ 11700 as_status=$1; test $as_status -eq 0 && as_status=1 11701 if test "$4"; then 11702 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11704 fi 11705 printf "%s\n" "$as_me: error: $2" >&2 11706 as_fn_exit $as_status 11707} # as_fn_error 11708 11709 11710 11711# as_fn_set_status STATUS 11712# ----------------------- 11713# Set $? to STATUS, without forking. 11714as_fn_set_status () 11715{ 11716 return $1 11717} # as_fn_set_status 11718 11719# as_fn_exit STATUS 11720# ----------------- 11721# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11722as_fn_exit () 11723{ 11724 set +e 11725 as_fn_set_status $1 11726 exit $1 11727} # as_fn_exit 11728 11729# as_fn_unset VAR 11730# --------------- 11731# Portably unset VAR. 11732as_fn_unset () 11733{ 11734 { eval $1=; unset $1;} 11735} 11736as_unset=as_fn_unset 11737 11738# as_fn_append VAR VALUE 11739# ---------------------- 11740# Append the text in VALUE to the end of the definition contained in VAR. Take 11741# advantage of any shell optimizations that allow amortized linear growth over 11742# repeated appends, instead of the typical quadratic growth present in naive 11743# implementations. 11744if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11745then : 11746 eval 'as_fn_append () 11747 { 11748 eval $1+=\$2 11749 }' 11750else $as_nop 11751 as_fn_append () 11752 { 11753 eval $1=\$$1\$2 11754 } 11755fi # as_fn_append 11756 11757# as_fn_arith ARG... 11758# ------------------ 11759# Perform arithmetic evaluation on the ARGs, and store the result in the 11760# global $as_val. Take advantage of shells that can avoid forks. The arguments 11761# must be portable across $(()) and expr. 11762if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11763then : 11764 eval 'as_fn_arith () 11765 { 11766 as_val=$(( $* )) 11767 }' 11768else $as_nop 11769 as_fn_arith () 11770 { 11771 as_val=`expr "$@" || test $? -eq 1` 11772 } 11773fi # as_fn_arith 11774 11775 11776if expr a : '\(a\)' >/dev/null 2>&1 && 11777 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11778 as_expr=expr 11779else 11780 as_expr=false 11781fi 11782 11783if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11784 as_basename=basename 11785else 11786 as_basename=false 11787fi 11788 11789if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11790 as_dirname=dirname 11791else 11792 as_dirname=false 11793fi 11794 11795as_me=`$as_basename -- "$0" || 11796$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11797 X"$0" : 'X\(//\)$' \| \ 11798 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11799printf "%s\n" X/"$0" | 11800 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11801 s//\1/ 11802 q 11803 } 11804 /^X\/\(\/\/\)$/{ 11805 s//\1/ 11806 q 11807 } 11808 /^X\/\(\/\).*/{ 11809 s//\1/ 11810 q 11811 } 11812 s/.*/./; q'` 11813 11814# Avoid depending upon Character Ranges. 11815as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11816as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11817as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11818as_cr_digits='0123456789' 11819as_cr_alnum=$as_cr_Letters$as_cr_digits 11820 11821 11822# Determine whether it's possible to make 'echo' print without a newline. 11823# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11824# for compatibility with existing Makefiles. 11825ECHO_C= ECHO_N= ECHO_T= 11826case `echo -n x` in #((((( 11827-n*) 11828 case `echo 'xy\c'` in 11829 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11830 xy) ECHO_C='\c';; 11831 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11832 ECHO_T=' ';; 11833 esac;; 11834*) 11835 ECHO_N='-n';; 11836esac 11837 11838# For backward compatibility with old third-party macros, we provide 11839# the shell variables $as_echo and $as_echo_n. New code should use 11840# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11841as_echo='printf %s\n' 11842as_echo_n='printf %s' 11843 11844rm -f conf$$ conf$$.exe conf$$.file 11845if test -d conf$$.dir; then 11846 rm -f conf$$.dir/conf$$.file 11847else 11848 rm -f conf$$.dir 11849 mkdir conf$$.dir 2>/dev/null 11850fi 11851if (echo >conf$$.file) 2>/dev/null; then 11852 if ln -s conf$$.file conf$$ 2>/dev/null; then 11853 as_ln_s='ln -s' 11854 # ... but there are two gotchas: 11855 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11856 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11857 # In both cases, we have to default to `cp -pR'. 11858 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11859 as_ln_s='cp -pR' 11860 elif ln conf$$.file conf$$ 2>/dev/null; then 11861 as_ln_s=ln 11862 else 11863 as_ln_s='cp -pR' 11864 fi 11865else 11866 as_ln_s='cp -pR' 11867fi 11868rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11869rmdir conf$$.dir 2>/dev/null 11870 11871 11872# as_fn_mkdir_p 11873# ------------- 11874# Create "$as_dir" as a directory, including parents if necessary. 11875as_fn_mkdir_p () 11876{ 11877 11878 case $as_dir in #( 11879 -*) as_dir=./$as_dir;; 11880 esac 11881 test -d "$as_dir" || eval $as_mkdir_p || { 11882 as_dirs= 11883 while :; do 11884 case $as_dir in #( 11885 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11886 *) as_qdir=$as_dir;; 11887 esac 11888 as_dirs="'$as_qdir' $as_dirs" 11889 as_dir=`$as_dirname -- "$as_dir" || 11890$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11891 X"$as_dir" : 'X\(//\)[^/]' \| \ 11892 X"$as_dir" : 'X\(//\)$' \| \ 11893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11894printf "%s\n" X"$as_dir" | 11895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11896 s//\1/ 11897 q 11898 } 11899 /^X\(\/\/\)[^/].*/{ 11900 s//\1/ 11901 q 11902 } 11903 /^X\(\/\/\)$/{ 11904 s//\1/ 11905 q 11906 } 11907 /^X\(\/\).*/{ 11908 s//\1/ 11909 q 11910 } 11911 s/.*/./; q'` 11912 test -d "$as_dir" && break 11913 done 11914 test -z "$as_dirs" || eval "mkdir $as_dirs" 11915 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11916 11917 11918} # as_fn_mkdir_p 11919if mkdir -p . 2>/dev/null; then 11920 as_mkdir_p='mkdir -p "$as_dir"' 11921else 11922 test -d ./-p && rmdir ./-p 11923 as_mkdir_p=false 11924fi 11925 11926 11927# as_fn_executable_p FILE 11928# ----------------------- 11929# Test if FILE is an executable regular file. 11930as_fn_executable_p () 11931{ 11932 test -f "$1" && test -x "$1" 11933} # as_fn_executable_p 11934as_test_x='test -x' 11935as_executable_p=as_fn_executable_p 11936 11937# Sed expression to map a string onto a valid CPP name. 11938as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11939 11940# Sed expression to map a string onto a valid variable name. 11941as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11942 11943 11944exec 6>&1 11945## ----------------------------------- ## 11946## Main body of $CONFIG_STATUS script. ## 11947## ----------------------------------- ## 11948_ASEOF 11949test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11950 11951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11952# Save the log message, to keep $0 and so on meaningful, and to 11953# report actual input values of CONFIG_FILES etc. instead of their 11954# values after options handling. 11955ac_log=" 11956This file was extended by xfd $as_me 1.1.4, which was 11957generated by GNU Autoconf 2.71. Invocation command line was 11958 11959 CONFIG_FILES = $CONFIG_FILES 11960 CONFIG_HEADERS = $CONFIG_HEADERS 11961 CONFIG_LINKS = $CONFIG_LINKS 11962 CONFIG_COMMANDS = $CONFIG_COMMANDS 11963 $ $0 $@ 11964 11965on `(hostname || uname -n) 2>/dev/null | sed 1q` 11966" 11967 11968_ACEOF 11969 11970case $ac_config_files in *" 11971"*) set x $ac_config_files; shift; ac_config_files=$*;; 11972esac 11973 11974case $ac_config_headers in *" 11975"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11976esac 11977 11978 11979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11980# Files that config.status was made for. 11981config_files="$ac_config_files" 11982config_headers="$ac_config_headers" 11983config_commands="$ac_config_commands" 11984 11985_ACEOF 11986 11987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11988ac_cs_usage="\ 11989\`$as_me' instantiates files and other configuration actions 11990from templates according to the current configuration. Unless the files 11991and actions are specified as TAGs, all are instantiated by default. 11992 11993Usage: $0 [OPTION]... [TAG]... 11994 11995 -h, --help print this help, then exit 11996 -V, --version print version number and configuration settings, then exit 11997 --config print configuration, then exit 11998 -q, --quiet, --silent 11999 do not print progress messages 12000 -d, --debug don't remove temporary files 12001 --recheck update $as_me by reconfiguring in the same conditions 12002 --file=FILE[:TEMPLATE] 12003 instantiate the configuration file FILE 12004 --header=FILE[:TEMPLATE] 12005 instantiate the configuration header FILE 12006 12007Configuration files: 12008$config_files 12009 12010Configuration headers: 12011$config_headers 12012 12013Configuration commands: 12014$config_commands 12015 12016Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfd/-/issues>." 12017 12018_ACEOF 12019ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12020ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12022ac_cs_config='$ac_cs_config_escaped' 12023ac_cs_version="\\ 12024xfd config.status 1.1.4 12025configured by $0, generated by GNU Autoconf 2.71, 12026 with options \\"\$ac_cs_config\\" 12027 12028Copyright (C) 2021 Free Software Foundation, Inc. 12029This config.status script is free software; the Free Software Foundation 12030gives unlimited permission to copy, distribute and modify it." 12031 12032ac_pwd='$ac_pwd' 12033srcdir='$srcdir' 12034INSTALL='$INSTALL' 12035MKDIR_P='$MKDIR_P' 12036AWK='$AWK' 12037test -n "\$AWK" || AWK=awk 12038_ACEOF 12039 12040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12041# The default lists apply if the user does not specify any file. 12042ac_need_defaults=: 12043while test $# != 0 12044do 12045 case $1 in 12046 --*=?*) 12047 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12048 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12049 ac_shift=: 12050 ;; 12051 --*=) 12052 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12053 ac_optarg= 12054 ac_shift=: 12055 ;; 12056 *) 12057 ac_option=$1 12058 ac_optarg=$2 12059 ac_shift=shift 12060 ;; 12061 esac 12062 12063 case $ac_option in 12064 # Handling of the options. 12065 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12066 ac_cs_recheck=: ;; 12067 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12068 printf "%s\n" "$ac_cs_version"; exit ;; 12069 --config | --confi | --conf | --con | --co | --c ) 12070 printf "%s\n" "$ac_cs_config"; exit ;; 12071 --debug | --debu | --deb | --de | --d | -d ) 12072 debug=: ;; 12073 --file | --fil | --fi | --f ) 12074 $ac_shift 12075 case $ac_optarg in 12076 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12077 '') as_fn_error $? "missing file argument" ;; 12078 esac 12079 as_fn_append CONFIG_FILES " '$ac_optarg'" 12080 ac_need_defaults=false;; 12081 --header | --heade | --head | --hea ) 12082 $ac_shift 12083 case $ac_optarg in 12084 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12085 esac 12086 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12087 ac_need_defaults=false;; 12088 --he | --h) 12089 # Conflict between --help and --header 12090 as_fn_error $? "ambiguous option: \`$1' 12091Try \`$0 --help' for more information.";; 12092 --help | --hel | -h ) 12093 printf "%s\n" "$ac_cs_usage"; exit ;; 12094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12095 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12096 ac_cs_silent=: ;; 12097 12098 # This is an error. 12099 -*) as_fn_error $? "unrecognized option: \`$1' 12100Try \`$0 --help' for more information." ;; 12101 12102 *) as_fn_append ac_config_targets " $1" 12103 ac_need_defaults=false ;; 12104 12105 esac 12106 shift 12107done 12108 12109ac_configure_extra_args= 12110 12111if $ac_cs_silent; then 12112 exec 6>/dev/null 12113 ac_configure_extra_args="$ac_configure_extra_args --silent" 12114fi 12115 12116_ACEOF 12117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12118if \$ac_cs_recheck; then 12119 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12120 shift 12121 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12122 CONFIG_SHELL='$SHELL' 12123 export CONFIG_SHELL 12124 exec "\$@" 12125fi 12126 12127_ACEOF 12128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12129exec 5>>config.log 12130{ 12131 echo 12132 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12133## Running $as_me. ## 12134_ASBOX 12135 printf "%s\n" "$ac_log" 12136} >&5 12137 12138_ACEOF 12139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12140# 12141# INIT-COMMANDS 12142# 12143AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12144 12145_ACEOF 12146 12147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12148 12149# Handling of arguments. 12150for ac_config_target in $ac_config_targets 12151do 12152 case $ac_config_target in 12153 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12154 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12155 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12156 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12157 12158 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12159 esac 12160done 12161 12162 12163# If the user did not use the arguments to specify the items to instantiate, 12164# then the envvar interface is used. Set only those that are not. 12165# We use the long form for the default assignment because of an extremely 12166# bizarre bug on SunOS 4.1.3. 12167if $ac_need_defaults; then 12168 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12169 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12170 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12171fi 12172 12173# Have a temporary directory for convenience. Make it in the build tree 12174# simply because there is no reason against having it here, and in addition, 12175# creating and moving files from /tmp can sometimes cause problems. 12176# Hook for its removal unless debugging. 12177# Note that there is a small window in which the directory will not be cleaned: 12178# after its creation but before its name has been assigned to `$tmp'. 12179$debug || 12180{ 12181 tmp= ac_tmp= 12182 trap 'exit_status=$? 12183 : "${ac_tmp:=$tmp}" 12184 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12185' 0 12186 trap 'as_fn_exit 1' 1 2 13 15 12187} 12188# Create a (secure) tmp directory for tmp files. 12189 12190{ 12191 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12192 test -d "$tmp" 12193} || 12194{ 12195 tmp=./conf$$-$RANDOM 12196 (umask 077 && mkdir "$tmp") 12197} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12198ac_tmp=$tmp 12199 12200# Set up the scripts for CONFIG_FILES section. 12201# No need to generate them if there are no CONFIG_FILES. 12202# This happens for instance with `./config.status config.h'. 12203if test -n "$CONFIG_FILES"; then 12204 12205 12206ac_cr=`echo X | tr X '\015'` 12207# On cygwin, bash can eat \r inside `` if the user requested igncr. 12208# But we know of no other shell where ac_cr would be empty at this 12209# point, so we can use a bashism as a fallback. 12210if test "x$ac_cr" = x; then 12211 eval ac_cr=\$\'\\r\' 12212fi 12213ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12214if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12215 ac_cs_awk_cr='\\r' 12216else 12217 ac_cs_awk_cr=$ac_cr 12218fi 12219 12220echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12221_ACEOF 12222 12223 12224{ 12225 echo "cat >conf$$subs.awk <<_ACEOF" && 12226 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12227 echo "_ACEOF" 12228} >conf$$subs.sh || 12229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12230ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12231ac_delim='%!_!# ' 12232for ac_last_try in false false false false false :; do 12233 . ./conf$$subs.sh || 12234 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12235 12236 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12237 if test $ac_delim_n = $ac_delim_num; then 12238 break 12239 elif $ac_last_try; then 12240 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12241 else 12242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12243 fi 12244done 12245rm -f conf$$subs.sh 12246 12247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12248cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12249_ACEOF 12250sed -n ' 12251h 12252s/^/S["/; s/!.*/"]=/ 12253p 12254g 12255s/^[^!]*!// 12256:repl 12257t repl 12258s/'"$ac_delim"'$// 12259t delim 12260:nl 12261h 12262s/\(.\{148\}\)..*/\1/ 12263t more1 12264s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12265p 12266n 12267b repl 12268:more1 12269s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12270p 12271g 12272s/.\{148\}// 12273t nl 12274:delim 12275h 12276s/\(.\{148\}\)..*/\1/ 12277t more2 12278s/["\\]/\\&/g; s/^/"/; s/$/"/ 12279p 12280b 12281:more2 12282s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12283p 12284g 12285s/.\{148\}// 12286t delim 12287' <conf$$subs.awk | sed ' 12288/^[^""]/{ 12289 N 12290 s/\n// 12291} 12292' >>$CONFIG_STATUS || ac_write_fail=1 12293rm -f conf$$subs.awk 12294cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12295_ACAWK 12296cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12297 for (key in S) S_is_set[key] = 1 12298 FS = "" 12299 12300} 12301{ 12302 line = $ 0 12303 nfields = split(line, field, "@") 12304 substed = 0 12305 len = length(field[1]) 12306 for (i = 2; i < nfields; i++) { 12307 key = field[i] 12308 keylen = length(key) 12309 if (S_is_set[key]) { 12310 value = S[key] 12311 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12312 len += length(value) + length(field[++i]) 12313 substed = 1 12314 } else 12315 len += 1 + keylen 12316 } 12317 12318 print line 12319} 12320 12321_ACAWK 12322_ACEOF 12323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12324if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12325 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12326else 12327 cat 12328fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12329 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12330_ACEOF 12331 12332# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12333# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12334# trailing colons and then remove the whole line if VPATH becomes empty 12335# (actually we leave an empty line to preserve line numbers). 12336if test "x$srcdir" = x.; then 12337 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12338h 12339s/// 12340s/^/:/ 12341s/[ ]*$/:/ 12342s/:\$(srcdir):/:/g 12343s/:\${srcdir}:/:/g 12344s/:@srcdir@:/:/g 12345s/^:*// 12346s/:*$// 12347x 12348s/\(=[ ]*\).*/\1/ 12349G 12350s/\n// 12351s/^[^=]*=[ ]*$// 12352}' 12353fi 12354 12355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12356fi # test -n "$CONFIG_FILES" 12357 12358# Set up the scripts for CONFIG_HEADERS section. 12359# No need to generate them if there are no CONFIG_HEADERS. 12360# This happens for instance with `./config.status Makefile'. 12361if test -n "$CONFIG_HEADERS"; then 12362cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12363BEGIN { 12364_ACEOF 12365 12366# Transform confdefs.h into an awk script `defines.awk', embedded as 12367# here-document in config.status, that substitutes the proper values into 12368# config.h.in to produce config.h. 12369 12370# Create a delimiter string that does not exist in confdefs.h, to ease 12371# handling of long lines. 12372ac_delim='%!_!# ' 12373for ac_last_try in false false :; do 12374 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12375 if test -z "$ac_tt"; then 12376 break 12377 elif $ac_last_try; then 12378 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12379 else 12380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12381 fi 12382done 12383 12384# For the awk script, D is an array of macro values keyed by name, 12385# likewise P contains macro parameters if any. Preserve backslash 12386# newline sequences. 12387 12388ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12389sed -n ' 12390s/.\{148\}/&'"$ac_delim"'/g 12391t rset 12392:rset 12393s/^[ ]*#[ ]*define[ ][ ]*/ / 12394t def 12395d 12396:def 12397s/\\$// 12398t bsnl 12399s/["\\]/\\&/g 12400s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12401D["\1"]=" \3"/p 12402s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12403d 12404:bsnl 12405s/["\\]/\\&/g 12406s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12407D["\1"]=" \3\\\\\\n"\\/p 12408t cont 12409s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12410t cont 12411d 12412:cont 12413n 12414s/.\{148\}/&'"$ac_delim"'/g 12415t clear 12416:clear 12417s/\\$// 12418t bsnlc 12419s/["\\]/\\&/g; s/^/"/; s/$/"/p 12420d 12421:bsnlc 12422s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12423b cont 12424' <confdefs.h | sed ' 12425s/'"$ac_delim"'/"\\\ 12426"/g' >>$CONFIG_STATUS || ac_write_fail=1 12427 12428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12429 for (key in D) D_is_set[key] = 1 12430 FS = "" 12431} 12432/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12433 line = \$ 0 12434 split(line, arg, " ") 12435 if (arg[1] == "#") { 12436 defundef = arg[2] 12437 mac1 = arg[3] 12438 } else { 12439 defundef = substr(arg[1], 2) 12440 mac1 = arg[2] 12441 } 12442 split(mac1, mac2, "(") #) 12443 macro = mac2[1] 12444 prefix = substr(line, 1, index(line, defundef) - 1) 12445 if (D_is_set[macro]) { 12446 # Preserve the white space surrounding the "#". 12447 print prefix "define", macro P[macro] D[macro] 12448 next 12449 } else { 12450 # Replace #undef with comments. This is necessary, for example, 12451 # in the case of _POSIX_SOURCE, which is predefined and required 12452 # on some systems where configure will not decide to define it. 12453 if (defundef == "undef") { 12454 print "/*", prefix defundef, macro, "*/" 12455 next 12456 } 12457 } 12458} 12459{ print } 12460_ACAWK 12461_ACEOF 12462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12463 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12464fi # test -n "$CONFIG_HEADERS" 12465 12466 12467eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12468shift 12469for ac_tag 12470do 12471 case $ac_tag in 12472 :[FHLC]) ac_mode=$ac_tag; continue;; 12473 esac 12474 case $ac_mode$ac_tag in 12475 :[FHL]*:*);; 12476 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12477 :[FH]-) ac_tag=-:-;; 12478 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12479 esac 12480 ac_save_IFS=$IFS 12481 IFS=: 12482 set x $ac_tag 12483 IFS=$ac_save_IFS 12484 shift 12485 ac_file=$1 12486 shift 12487 12488 case $ac_mode in 12489 :L) ac_source=$1;; 12490 :[FH]) 12491 ac_file_inputs= 12492 for ac_f 12493 do 12494 case $ac_f in 12495 -) ac_f="$ac_tmp/stdin";; 12496 *) # Look for the file first in the build tree, then in the source tree 12497 # (if the path is not absolute). The absolute path cannot be DOS-style, 12498 # because $ac_f cannot contain `:'. 12499 test -f "$ac_f" || 12500 case $ac_f in 12501 [\\/$]*) false;; 12502 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12503 esac || 12504 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12505 esac 12506 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12507 as_fn_append ac_file_inputs " '$ac_f'" 12508 done 12509 12510 # Let's still pretend it is `configure' which instantiates (i.e., don't 12511 # use $as_me), people would be surprised to read: 12512 # /* config.h. Generated by config.status. */ 12513 configure_input='Generated from '` 12514 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12515 `' by configure.' 12516 if test x"$ac_file" != x-; then 12517 configure_input="$ac_file. $configure_input" 12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12519printf "%s\n" "$as_me: creating $ac_file" >&6;} 12520 fi 12521 # Neutralize special characters interpreted by sed in replacement strings. 12522 case $configure_input in #( 12523 *\&* | *\|* | *\\* ) 12524 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12525 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12526 *) ac_sed_conf_input=$configure_input;; 12527 esac 12528 12529 case $ac_tag in 12530 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12531 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12532 esac 12533 ;; 12534 esac 12535 12536 ac_dir=`$as_dirname -- "$ac_file" || 12537$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12538 X"$ac_file" : 'X\(//\)[^/]' \| \ 12539 X"$ac_file" : 'X\(//\)$' \| \ 12540 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12541printf "%s\n" X"$ac_file" | 12542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12543 s//\1/ 12544 q 12545 } 12546 /^X\(\/\/\)[^/].*/{ 12547 s//\1/ 12548 q 12549 } 12550 /^X\(\/\/\)$/{ 12551 s//\1/ 12552 q 12553 } 12554 /^X\(\/\).*/{ 12555 s//\1/ 12556 q 12557 } 12558 s/.*/./; q'` 12559 as_dir="$ac_dir"; as_fn_mkdir_p 12560 ac_builddir=. 12561 12562case "$ac_dir" in 12563.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12564*) 12565 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12566 # A ".." for each directory in $ac_dir_suffix. 12567 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12568 case $ac_top_builddir_sub in 12569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12571 esac ;; 12572esac 12573ac_abs_top_builddir=$ac_pwd 12574ac_abs_builddir=$ac_pwd$ac_dir_suffix 12575# for backward compatibility: 12576ac_top_builddir=$ac_top_build_prefix 12577 12578case $srcdir in 12579 .) # We are building in place. 12580 ac_srcdir=. 12581 ac_top_srcdir=$ac_top_builddir_sub 12582 ac_abs_top_srcdir=$ac_pwd ;; 12583 [\\/]* | ?:[\\/]* ) # Absolute name. 12584 ac_srcdir=$srcdir$ac_dir_suffix; 12585 ac_top_srcdir=$srcdir 12586 ac_abs_top_srcdir=$srcdir ;; 12587 *) # Relative name. 12588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12589 ac_top_srcdir=$ac_top_build_prefix$srcdir 12590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12591esac 12592ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12593 12594 12595 case $ac_mode in 12596 :F) 12597 # 12598 # CONFIG_FILE 12599 # 12600 12601 case $INSTALL in 12602 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12603 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12604 esac 12605 ac_MKDIR_P=$MKDIR_P 12606 case $MKDIR_P in 12607 [\\/$]* | ?:[\\/]* ) ;; 12608 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12609 esac 12610_ACEOF 12611 12612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12613# If the template does not know about datarootdir, expand it. 12614# FIXME: This hack should be removed a few years after 2.60. 12615ac_datarootdir_hack=; ac_datarootdir_seen= 12616ac_sed_dataroot=' 12617/datarootdir/ { 12618 p 12619 q 12620} 12621/@datadir@/p 12622/@docdir@/p 12623/@infodir@/p 12624/@localedir@/p 12625/@mandir@/p' 12626case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12627*datarootdir*) ac_datarootdir_seen=yes;; 12628*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12630printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12631_ACEOF 12632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12633 ac_datarootdir_hack=' 12634 s&@datadir@&$datadir&g 12635 s&@docdir@&$docdir&g 12636 s&@infodir@&$infodir&g 12637 s&@localedir@&$localedir&g 12638 s&@mandir@&$mandir&g 12639 s&\\\${datarootdir}&$datarootdir&g' ;; 12640esac 12641_ACEOF 12642 12643# Neutralize VPATH when `$srcdir' = `.'. 12644# Shell code in configure.ac might set extrasub. 12645# FIXME: do we really want to maintain this feature? 12646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12647ac_sed_extra="$ac_vpsub 12648$extrasub 12649_ACEOF 12650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12651:t 12652/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12653s|@configure_input@|$ac_sed_conf_input|;t t 12654s&@top_builddir@&$ac_top_builddir_sub&;t t 12655s&@top_build_prefix@&$ac_top_build_prefix&;t t 12656s&@srcdir@&$ac_srcdir&;t t 12657s&@abs_srcdir@&$ac_abs_srcdir&;t t 12658s&@top_srcdir@&$ac_top_srcdir&;t t 12659s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12660s&@builddir@&$ac_builddir&;t t 12661s&@abs_builddir@&$ac_abs_builddir&;t t 12662s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12663s&@INSTALL@&$ac_INSTALL&;t t 12664s&@MKDIR_P@&$ac_MKDIR_P&;t t 12665$ac_datarootdir_hack 12666" 12667eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12668 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12669 12670test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12671 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12672 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12673 "$ac_tmp/out"`; test -z "$ac_out"; } && 12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12675which seems to be undefined. Please make sure it is defined" >&5 12676printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12677which seems to be undefined. Please make sure it is defined" >&2;} 12678 12679 rm -f "$ac_tmp/stdin" 12680 case $ac_file in 12681 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12682 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12683 esac \ 12684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12685 ;; 12686 :H) 12687 # 12688 # CONFIG_HEADER 12689 # 12690 if test x"$ac_file" != x-; then 12691 { 12692 printf "%s\n" "/* $configure_input */" >&1 \ 12693 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12694 } >"$ac_tmp/config.h" \ 12695 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12696 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12698printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12699 else 12700 rm -f "$ac_file" 12701 mv "$ac_tmp/config.h" "$ac_file" \ 12702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12703 fi 12704 else 12705 printf "%s\n" "/* $configure_input */" >&1 \ 12706 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12707 || as_fn_error $? "could not create -" "$LINENO" 5 12708 fi 12709# Compute "$ac_file"'s index in $config_headers. 12710_am_arg="$ac_file" 12711_am_stamp_count=1 12712for _am_header in $config_headers :; do 12713 case $_am_header in 12714 $_am_arg | $_am_arg:* ) 12715 break ;; 12716 * ) 12717 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12718 esac 12719done 12720echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12721$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12722 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12723 X"$_am_arg" : 'X\(//\)$' \| \ 12724 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12725printf "%s\n" X"$_am_arg" | 12726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12727 s//\1/ 12728 q 12729 } 12730 /^X\(\/\/\)[^/].*/{ 12731 s//\1/ 12732 q 12733 } 12734 /^X\(\/\/\)$/{ 12735 s//\1/ 12736 q 12737 } 12738 /^X\(\/\).*/{ 12739 s//\1/ 12740 q 12741 } 12742 s/.*/./; q'`/stamp-h$_am_stamp_count 12743 ;; 12744 12745 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12746printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12747 ;; 12748 esac 12749 12750 12751 case $ac_file$ac_mode in 12752 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12753 # Older Autoconf quotes --file arguments for eval, but not when files 12754 # are listed without --file. Let's play safe and only enable the eval 12755 # if we detect the quoting. 12756 # TODO: see whether this extra hack can be removed once we start 12757 # requiring Autoconf 2.70 or later. 12758 case $CONFIG_FILES in #( 12759 *\'*) : 12760 eval set x "$CONFIG_FILES" ;; #( 12761 *) : 12762 set x $CONFIG_FILES ;; #( 12763 *) : 12764 ;; 12765esac 12766 shift 12767 # Used to flag and report bootstrapping failures. 12768 am_rc=0 12769 for am_mf 12770 do 12771 # Strip MF so we end up with the name of the file. 12772 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12773 # Check whether this is an Automake generated Makefile which includes 12774 # dependency-tracking related rules and includes. 12775 # Grep'ing the whole file directly is not great: AIX grep has a line 12776 # limit of 2048, but all sed's we know have understand at least 4000. 12777 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12778 || continue 12779 am_dirpart=`$as_dirname -- "$am_mf" || 12780$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12781 X"$am_mf" : 'X\(//\)[^/]' \| \ 12782 X"$am_mf" : 'X\(//\)$' \| \ 12783 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12784printf "%s\n" X"$am_mf" | 12785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12786 s//\1/ 12787 q 12788 } 12789 /^X\(\/\/\)[^/].*/{ 12790 s//\1/ 12791 q 12792 } 12793 /^X\(\/\/\)$/{ 12794 s//\1/ 12795 q 12796 } 12797 /^X\(\/\).*/{ 12798 s//\1/ 12799 q 12800 } 12801 s/.*/./; q'` 12802 am_filepart=`$as_basename -- "$am_mf" || 12803$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12804 X"$am_mf" : 'X\(//\)$' \| \ 12805 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12806printf "%s\n" X/"$am_mf" | 12807 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12808 s//\1/ 12809 q 12810 } 12811 /^X\/\(\/\/\)$/{ 12812 s//\1/ 12813 q 12814 } 12815 /^X\/\(\/\).*/{ 12816 s//\1/ 12817 q 12818 } 12819 s/.*/./; q'` 12820 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12821 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12822 | $MAKE -f - am--depfiles" >&5 12823 (cd "$am_dirpart" \ 12824 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12825 | $MAKE -f - am--depfiles) >&5 2>&5 12826 ac_status=$? 12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12828 (exit $ac_status); } || am_rc=$? 12829 done 12830 if test $am_rc -ne 0; then 12831 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12832printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12833as_fn_error $? "Something went wrong bootstrapping makefile fragments 12834 for automatic dependency tracking. If GNU make was not used, consider 12835 re-running the configure script with MAKE=\"gmake\" (or whatever is 12836 necessary). You can also try re-running configure with the 12837 '--disable-dependency-tracking' option to at least be able to build 12838 the package (albeit without support for automatic dependency tracking). 12839See \`config.log' for more details" "$LINENO" 5; } 12840 fi 12841 { am_dirpart=; unset am_dirpart;} 12842 { am_filepart=; unset am_filepart;} 12843 { am_mf=; unset am_mf;} 12844 { am_rc=; unset am_rc;} 12845 rm -f conftest-deps.mk 12846} 12847 ;; 12848 12849 esac 12850done # for ac_tag 12851 12852 12853as_fn_exit 0 12854_ACEOF 12855ac_clean_files=$ac_clean_files_save 12856 12857test $ac_write_fail = 0 || 12858 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12859 12860 12861# configure is writing to config.log, and then calls config.status. 12862# config.status does its own redirection, appending to config.log. 12863# Unfortunately, on DOS this fails, as config.log is still kept open 12864# by configure, so config.status won't be able to write to it; its 12865# output is simply discarded. So we exec the FD to /dev/null, 12866# effectively closing config.log, so it can be properly (re)opened and 12867# appended to by config.status. When coming back to configure, we 12868# need to make the FD available again. 12869if test "$no_create" != yes; then 12870 ac_cs_success=: 12871 ac_config_status_args= 12872 test "$silent" = yes && 12873 ac_config_status_args="$ac_config_status_args --quiet" 12874 exec 5>/dev/null 12875 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12876 exec 5>>config.log 12877 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12878 # would make configure fail if this is the last instruction. 12879 $ac_cs_success || as_fn_exit 1 12880fi 12881if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12883printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12884fi 12885 12886 12887