configure revision e39ce84c
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xmag 1.0.7. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/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/xmag/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='xmag' 614PACKAGE_TARNAME='xmag' 615PACKAGE_VERSION='1.0.7' 616PACKAGE_STRING='xmag 1.0.7' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmag/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 658XMAG_LIBS 659XMAG_CFLAGS 660MAN_SUBSTS 661XORG_MAN_PAGE 662ADMIN_MAN_DIR 663DRIVER_MAN_DIR 664MISC_MAN_DIR 665FILE_MAN_DIR 666LIB_MAN_DIR 667APP_MAN_DIR 668ADMIN_MAN_SUFFIX 669DRIVER_MAN_SUFFIX 670MISC_MAN_SUFFIX 671FILE_MAN_SUFFIX 672LIB_MAN_SUFFIX 673APP_MAN_SUFFIX 674SED 675host_os 676host_vendor 677host_cpu 678host 679build_os 680build_vendor 681build_cpu 682build 683INSTALL_CMD 684PKG_CONFIG_LIBDIR 685PKG_CONFIG_PATH 686PKG_CONFIG 687CHANGELOG_CMD 688STRICT_CFLAGS 689CWARNFLAGS 690BASE_CFLAGS 691am__fastdepCC_FALSE 692am__fastdepCC_TRUE 693CCDEPMODE 694am__nodep 695AMDEPBACKSLASH 696AMDEP_FALSE 697AMDEP_TRUE 698am__include 699DEPDIR 700OBJEXT 701EXEEXT 702ac_ct_CC 703CPPFLAGS 704LDFLAGS 705CFLAGS 706CC 707AM_BACKSLASH 708AM_DEFAULT_VERBOSITY 709AM_DEFAULT_V 710AM_V 711CSCOPE 712ETAGS 713CTAGS 714am__untar 715am__tar 716AMTAR 717am__leading_dot 718SET_MAKE 719AWK 720mkdir_p 721MKDIR_P 722INSTALL_STRIP_PROGRAM 723STRIP 724install_sh 725MAKEINFO 726AUTOHEADER 727AUTOMAKE 728AUTOCONF 729ACLOCAL 730VERSION 731PACKAGE 732CYGPATH_W 733am__isrc 734INSTALL_DATA 735INSTALL_SCRIPT 736INSTALL_PROGRAM 737target_alias 738host_alias 739build_alias 740LIBS 741ECHO_T 742ECHO_N 743ECHO_C 744DEFS 745mandir 746localedir 747libdir 748psdir 749pdfdir 750dvidir 751htmldir 752infodir 753docdir 754oldincludedir 755includedir 756runstatedir 757localstatedir 758sharedstatedir 759sysconfdir 760datadir 761datarootdir 762libexecdir 763sbindir 764bindir 765program_transform_name 766prefix 767exec_prefix 768PACKAGE_URL 769PACKAGE_BUGREPORT 770PACKAGE_STRING 771PACKAGE_VERSION 772PACKAGE_TARNAME 773PACKAGE_NAME 774PATH_SEPARATOR 775SHELL 776am__quote' 777ac_subst_files='' 778ac_user_opts=' 779enable_option_checking 780enable_silent_rules 781enable_dependency_tracking 782enable_selective_werror 783enable_strict_compilation 784with_appdefaultdir 785' 786 ac_precious_vars='build_alias 787host_alias 788target_alias 789CC 790CFLAGS 791LDFLAGS 792LIBS 793CPPFLAGS 794PKG_CONFIG 795PKG_CONFIG_PATH 796PKG_CONFIG_LIBDIR 797XMAG_CFLAGS 798XMAG_LIBS' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837runstatedir='${localstatedir}/run' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: \`$ac_useropt'" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: \`$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089 | --runstate | --runstat | --runsta | --runst | --runs \ 1090 | --run | --ru | --r) 1091 ac_prev=runstatedir ;; 1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094 | --run=* | --ru=* | --r=*) 1095 runstatedir=$ac_optarg ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: \`$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: \`$ac_useropt'" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1193Try \`$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir runstatedir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: `$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265fi 1266 1267ac_tool_prefix= 1268test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270test "$silent" = yes && exec 6>/dev/null 1271 1272 1273ac_pwd=`pwd` && test -n "$ac_pwd" && 1274ac_ls_di=`ls -di .` && 1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281# Find the source files, if location was not specified. 1282if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290printf "%s\n" X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312else 1313 ac_srcdir_defaulted=no 1314fi 1315if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318fi 1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1320ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323# When building in place, set srcdir=. 1324if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326fi 1327# Remove unnecessary trailing slashes from srcdir. 1328# Double slashes in file names in object file debugging info 1329# mess up M-x gdb in Emacs. 1330case $srcdir in 1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332esac 1333for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338done 1339 1340# 1341# Report the --help message. 1342# 1343if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347\`configure' configures xmag 1.0.7 to adapt to many kinds of systems. 1348 1349Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354Defaults for the options are specified in brackets. 1355 1356Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print \`checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for \`--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1366 1367Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373By default, \`make install' will install all the files in 1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1375an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1376for instance \`--prefix=\$HOME'. 1377 1378For better control, use the options below. 1379 1380Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xmag] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of xmag 1.0.7:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-selective-werror 1433 Turn off selective compiler errors. (default: 1434 enabled) 1435 --enable-strict-compilation 1436 Enable all warnings from compiler and make them 1437 errors (default: disabled) 1438 1439Optional Packages: 1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --with-appdefaultdir=<pathname> 1443 specify directory for app-defaults files (default is 1444 autodetected) 1445 1446Some influential environment variables: 1447 CC C compiler command 1448 CFLAGS C compiler flags 1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1450 nonstandard directory <lib dir> 1451 LIBS libraries to pass to the linker, e.g. -l<library> 1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1453 you have headers in a nonstandard directory <include dir> 1454 PKG_CONFIG path to pkg-config utility 1455 PKG_CONFIG_PATH 1456 directories to add to pkg-config's search path 1457 PKG_CONFIG_LIBDIR 1458 path overriding pkg-config's built-in search path 1459 XMAG_CFLAGS C compiler flags for XMAG, overriding pkg-config 1460 XMAG_LIBS linker flags for XMAG, overriding pkg-config 1461 1462Use these variables to override the choices made by `configure' or to help 1463it to find libraries and programs with nonstandard names/locations. 1464 1465Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/issues>. 1466_ACEOF 1467ac_status=$? 1468fi 1469 1470if test "$ac_init_help" = "recursive"; then 1471 # If there are subdirs, report their specific --help. 1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1473 test -d "$ac_dir" || 1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1475 continue 1476 ac_builddir=. 1477 1478case "$ac_dir" in 1479.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1480*) 1481 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1482 # A ".." for each directory in $ac_dir_suffix. 1483 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1484 case $ac_top_builddir_sub in 1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1487 esac ;; 1488esac 1489ac_abs_top_builddir=$ac_pwd 1490ac_abs_builddir=$ac_pwd$ac_dir_suffix 1491# for backward compatibility: 1492ac_top_builddir=$ac_top_build_prefix 1493 1494case $srcdir in 1495 .) # We are building in place. 1496 ac_srcdir=. 1497 ac_top_srcdir=$ac_top_builddir_sub 1498 ac_abs_top_srcdir=$ac_pwd ;; 1499 [\\/]* | ?:[\\/]* ) # Absolute name. 1500 ac_srcdir=$srcdir$ac_dir_suffix; 1501 ac_top_srcdir=$srcdir 1502 ac_abs_top_srcdir=$srcdir ;; 1503 *) # Relative name. 1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1505 ac_top_srcdir=$ac_top_build_prefix$srcdir 1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1507esac 1508ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1509 1510 cd "$ac_dir" || { ac_status=$?; continue; } 1511 # Check for configure.gnu first; this name is used for a wrapper for 1512 # Metaconfig's "Configure" on case-insensitive file systems. 1513 if test -f "$ac_srcdir/configure.gnu"; then 1514 echo && 1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1516 elif test -f "$ac_srcdir/configure"; then 1517 echo && 1518 $SHELL "$ac_srcdir/configure" --help=recursive 1519 else 1520 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1521 fi || ac_status=$? 1522 cd "$ac_pwd" || { ac_status=$?; break; } 1523 done 1524fi 1525 1526test -n "$ac_init_help" && exit $ac_status 1527if $ac_init_version; then 1528 cat <<\_ACEOF 1529xmag configure 1.0.7 1530generated by GNU Autoconf 2.71 1531 1532Copyright (C) 2021 Free Software Foundation, Inc. 1533This configure script is free software; the Free Software Foundation 1534gives unlimited permission to copy, distribute and modify it. 1535_ACEOF 1536 exit 1537fi 1538 1539## ------------------------ ## 1540## Autoconf initialization. ## 1541## ------------------------ ## 1542 1543# ac_fn_c_try_compile LINENO 1544# -------------------------- 1545# Try to compile conftest.$ac_ext, and return whether this succeeded. 1546ac_fn_c_try_compile () 1547{ 1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1549 rm -f conftest.$ac_objext conftest.beam 1550 if { { ac_try="$ac_compile" 1551case "(($ac_try" in 1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1553 *) ac_try_echo=$ac_try;; 1554esac 1555eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1556printf "%s\n" "$ac_try_echo"; } >&5 1557 (eval "$ac_compile") 2>conftest.err 1558 ac_status=$? 1559 if test -s conftest.err; then 1560 grep -v '^ *+' conftest.err >conftest.er1 1561 cat conftest.er1 >&5 1562 mv -f conftest.er1 conftest.err 1563 fi 1564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1565 test $ac_status = 0; } && { 1566 test -z "$ac_c_werror_flag" || 1567 test ! -s conftest.err 1568 } && test -s conftest.$ac_objext 1569then : 1570 ac_retval=0 1571else $as_nop 1572 printf "%s\n" "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1578 as_fn_set_status $ac_retval 1579 1580} # ac_fn_c_try_compile 1581 1582# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1583# ------------------------------------------------------------------ 1584# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1585# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1586ac_fn_check_decl () 1587{ 1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1589 as_decl_name=`echo $2|sed 's/ *(.*//'` 1590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1591printf %s "checking whether $as_decl_name is declared... " >&6; } 1592if eval test \${$3+y} 1593then : 1594 printf %s "(cached) " >&6 1595else $as_nop 1596 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1597 eval ac_save_FLAGS=\$$6 1598 as_fn_append $6 " $5" 1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1600/* end confdefs.h. */ 1601$4 1602int 1603main (void) 1604{ 1605#ifndef $as_decl_name 1606#ifdef __cplusplus 1607 (void) $as_decl_use; 1608#else 1609 (void) $as_decl_name; 1610#endif 1611#endif 1612 1613 ; 1614 return 0; 1615} 1616_ACEOF 1617if ac_fn_c_try_compile "$LINENO" 1618then : 1619 eval "$3=yes" 1620else $as_nop 1621 eval "$3=no" 1622fi 1623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1624 eval $6=\$ac_save_FLAGS 1625 1626fi 1627eval ac_res=\$$3 1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1629printf "%s\n" "$ac_res" >&6; } 1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1631 1632} # ac_fn_check_decl 1633 1634# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1635# ------------------------------------------------------- 1636# Tests whether HEADER exists and can be compiled using the include files in 1637# INCLUDES, setting the cache variable VAR accordingly. 1638ac_fn_c_check_header_compile () 1639{ 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1642printf %s "checking for $2... " >&6; } 1643if eval test \${$3+y} 1644then : 1645 printf %s "(cached) " >&6 1646else $as_nop 1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1648/* end confdefs.h. */ 1649$4 1650#include <$2> 1651_ACEOF 1652if ac_fn_c_try_compile "$LINENO" 1653then : 1654 eval "$3=yes" 1655else $as_nop 1656 eval "$3=no" 1657fi 1658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1659fi 1660eval ac_res=\$$3 1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1662printf "%s\n" "$ac_res" >&6; } 1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1664 1665} # ac_fn_c_check_header_compile 1666 1667# ac_fn_c_try_link LINENO 1668# ----------------------- 1669# Try to link conftest.$ac_ext, and return whether this succeeded. 1670ac_fn_c_try_link () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1674 if { { ac_try="$ac_link" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680printf "%s\n" "$ac_try_echo"; } >&5 1681 (eval "$ac_link") 2>conftest.err 1682 ac_status=$? 1683 if test -s conftest.err; then 1684 grep -v '^ *+' conftest.err >conftest.er1 1685 cat conftest.er1 >&5 1686 mv -f conftest.er1 conftest.err 1687 fi 1688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1689 test $ac_status = 0; } && { 1690 test -z "$ac_c_werror_flag" || 1691 test ! -s conftest.err 1692 } && test -s conftest$ac_exeext && { 1693 test "$cross_compiling" = yes || 1694 test -x conftest$ac_exeext 1695 } 1696then : 1697 ac_retval=0 1698else $as_nop 1699 printf "%s\n" "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1706 # interfere with the next link command; also delete a directory that is 1707 # left behind by Apple's compiler. We do this before executing the actions. 1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1710 as_fn_set_status $ac_retval 1711 1712} # ac_fn_c_try_link 1713 1714# ac_fn_c_check_func LINENO FUNC VAR 1715# ---------------------------------- 1716# Tests whether FUNC exists, setting the cache variable VAR accordingly 1717ac_fn_c_check_func () 1718{ 1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1721printf %s "checking for $2... " >&6; } 1722if eval test \${$3+y} 1723then : 1724 printf %s "(cached) " >&6 1725else $as_nop 1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1727/* end confdefs.h. */ 1728/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1730#define $2 innocuous_$2 1731 1732/* System header to define __stub macros and hopefully few prototypes, 1733 which can conflict with char $2 (); below. */ 1734 1735#include <limits.h> 1736#undef $2 1737 1738/* Override any GCC internal prototype to avoid an error. 1739 Use char because int might match the return type of a GCC 1740 builtin and then its argument prototype would still apply. */ 1741#ifdef __cplusplus 1742extern "C" 1743#endif 1744char $2 (); 1745/* The GNU C library defines this for functions which it implements 1746 to always fail with ENOSYS. Some functions are actually named 1747 something starting with __ and the normal name is an alias. */ 1748#if defined __stub_$2 || defined __stub___$2 1749choke me 1750#endif 1751 1752int 1753main (void) 1754{ 1755return $2 (); 1756 ; 1757 return 0; 1758} 1759_ACEOF 1760if ac_fn_c_try_link "$LINENO" 1761then : 1762 eval "$3=yes" 1763else $as_nop 1764 eval "$3=no" 1765fi 1766rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1767 conftest$ac_exeext conftest.$ac_ext 1768fi 1769eval ac_res=\$$3 1770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1771printf "%s\n" "$ac_res" >&6; } 1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1773 1774} # ac_fn_c_check_func 1775ac_configure_args_raw= 1776for ac_arg 1777do 1778 case $ac_arg in 1779 *\'*) 1780 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1781 esac 1782 as_fn_append ac_configure_args_raw " '$ac_arg'" 1783done 1784 1785case $ac_configure_args_raw in 1786 *$as_nl*) 1787 ac_safe_unquote= ;; 1788 *) 1789 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1790 ac_unsafe_a="$ac_unsafe_z#~" 1791 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1792 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1793esac 1794 1795cat >config.log <<_ACEOF 1796This file contains any messages produced by compilers while 1797running configure, to aid debugging if configure makes a mistake. 1798 1799It was created by xmag $as_me 1.0.7, which was 1800generated by GNU Autoconf 2.71. Invocation command line was 1801 1802 $ $0$ac_configure_args_raw 1803 1804_ACEOF 1805exec 5>>config.log 1806{ 1807cat <<_ASUNAME 1808## --------- ## 1809## Platform. ## 1810## --------- ## 1811 1812hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1813uname -m = `(uname -m) 2>/dev/null || echo unknown` 1814uname -r = `(uname -r) 2>/dev/null || echo unknown` 1815uname -s = `(uname -s) 2>/dev/null || echo unknown` 1816uname -v = `(uname -v) 2>/dev/null || echo unknown` 1817 1818/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1819/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1820 1821/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1822/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1823/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1824/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1825/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1826/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1827/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1828 1829_ASUNAME 1830 1831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1832for as_dir in $PATH 1833do 1834 IFS=$as_save_IFS 1835 case $as_dir in #((( 1836 '') as_dir=./ ;; 1837 */) ;; 1838 *) as_dir=$as_dir/ ;; 1839 esac 1840 printf "%s\n" "PATH: $as_dir" 1841 done 1842IFS=$as_save_IFS 1843 1844} >&5 1845 1846cat >&5 <<_ACEOF 1847 1848 1849## ----------- ## 1850## Core tests. ## 1851## ----------- ## 1852 1853_ACEOF 1854 1855 1856# Keep a trace of the command line. 1857# Strip out --no-create and --no-recursion so they do not pile up. 1858# Strip out --silent because we don't want to record it for future runs. 1859# Also quote any args containing shell meta-characters. 1860# Make two passes to allow for proper duplicate-argument suppression. 1861ac_configure_args= 1862ac_configure_args0= 1863ac_configure_args1= 1864ac_must_keep_next=false 1865for ac_pass in 1 2 1866do 1867 for ac_arg 1868 do 1869 case $ac_arg in 1870 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1872 | -silent | --silent | --silen | --sile | --sil) 1873 continue ;; 1874 *\'*) 1875 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1876 esac 1877 case $ac_pass in 1878 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1879 2) 1880 as_fn_append ac_configure_args1 " '$ac_arg'" 1881 if test $ac_must_keep_next = true; then 1882 ac_must_keep_next=false # Got value, back to normal. 1883 else 1884 case $ac_arg in 1885 *=* | --config-cache | -C | -disable-* | --disable-* \ 1886 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1887 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1888 | -with-* | --with-* | -without-* | --without-* | --x) 1889 case "$ac_configure_args0 " in 1890 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1891 esac 1892 ;; 1893 -* ) ac_must_keep_next=true ;; 1894 esac 1895 fi 1896 as_fn_append ac_configure_args " '$ac_arg'" 1897 ;; 1898 esac 1899 done 1900done 1901{ ac_configure_args0=; unset ac_configure_args0;} 1902{ ac_configure_args1=; unset ac_configure_args1;} 1903 1904# When interrupted or exit'd, cleanup temporary files, and complete 1905# config.log. We remove comments because anyway the quotes in there 1906# would cause problems or look ugly. 1907# WARNING: Use '\'' to represent an apostrophe within the trap. 1908# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1909trap 'exit_status=$? 1910 # Sanitize IFS. 1911 IFS=" "" $as_nl" 1912 # Save into config.log some information that might help in debugging. 1913 { 1914 echo 1915 1916 printf "%s\n" "## ---------------- ## 1917## Cache variables. ## 1918## ---------------- ##" 1919 echo 1920 # The following way of writing the cache mishandles newlines in values, 1921( 1922 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1923 eval ac_val=\$$ac_var 1924 case $ac_val in #( 1925 *${as_nl}*) 1926 case $ac_var in #( 1927 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1928printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1929 esac 1930 case $ac_var in #( 1931 _ | IFS | as_nl) ;; #( 1932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1933 *) { eval $ac_var=; unset $ac_var;} ;; 1934 esac ;; 1935 esac 1936 done 1937 (set) 2>&1 | 1938 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1939 *${as_nl}ac_space=\ *) 1940 sed -n \ 1941 "s/'\''/'\''\\\\'\'''\''/g; 1942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1943 ;; #( 1944 *) 1945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1946 ;; 1947 esac | 1948 sort 1949) 1950 echo 1951 1952 printf "%s\n" "## ----------------- ## 1953## Output variables. ## 1954## ----------------- ##" 1955 echo 1956 for ac_var in $ac_subst_vars 1957 do 1958 eval ac_val=\$$ac_var 1959 case $ac_val in 1960 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1961 esac 1962 printf "%s\n" "$ac_var='\''$ac_val'\''" 1963 done | sort 1964 echo 1965 1966 if test -n "$ac_subst_files"; then 1967 printf "%s\n" "## ------------------- ## 1968## File substitutions. ## 1969## ------------------- ##" 1970 echo 1971 for ac_var in $ac_subst_files 1972 do 1973 eval ac_val=\$$ac_var 1974 case $ac_val in 1975 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1976 esac 1977 printf "%s\n" "$ac_var='\''$ac_val'\''" 1978 done | sort 1979 echo 1980 fi 1981 1982 if test -s confdefs.h; then 1983 printf "%s\n" "## ----------- ## 1984## confdefs.h. ## 1985## ----------- ##" 1986 echo 1987 cat confdefs.h 1988 echo 1989 fi 1990 test "$ac_signal" != 0 && 1991 printf "%s\n" "$as_me: caught signal $ac_signal" 1992 printf "%s\n" "$as_me: exit $exit_status" 1993 } >&5 1994 rm -f core *.core core.conftest.* && 1995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1996 exit $exit_status 1997' 0 1998for ac_signal in 1 2 13 15; do 1999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2000done 2001ac_signal=0 2002 2003# confdefs.h avoids OS command line length limits that DEFS can exceed. 2004rm -f -r conftest* confdefs.h 2005 2006printf "%s\n" "/* confdefs.h */" > confdefs.h 2007 2008# Predefined preprocessor variables. 2009 2010printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2011 2012printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2013 2014printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2015 2016printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2017 2018printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2019 2020printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2021 2022 2023# Let the site file select an alternate cache file if it wants to. 2024# Prefer an explicitly selected file to automatically selected ones. 2025if test -n "$CONFIG_SITE"; then 2026 ac_site_files="$CONFIG_SITE" 2027elif test "x$prefix" != xNONE; then 2028 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2029else 2030 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2031fi 2032 2033for ac_site_file in $ac_site_files 2034do 2035 case $ac_site_file in #( 2036 */*) : 2037 ;; #( 2038 *) : 2039 ac_site_file=./$ac_site_file ;; 2040esac 2041 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2043printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2044 sed 's/^/| /' "$ac_site_file" >&5 2045 . "$ac_site_file" \ 2046 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2047printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2048as_fn_error $? "failed to load site script $ac_site_file 2049See \`config.log' for more details" "$LINENO" 5; } 2050 fi 2051done 2052 2053if test -r "$cache_file"; then 2054 # Some versions of bash will fail to source /dev/null (special files 2055 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2056 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2058printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2059 case $cache_file in 2060 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2061 *) . "./$cache_file";; 2062 esac 2063 fi 2064else 2065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2066printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2067 >$cache_file 2068fi 2069 2070# Test code for whether the C compiler supports C89 (global declarations) 2071ac_c_conftest_c89_globals=' 2072/* Does the compiler advertise C89 conformance? 2073 Do not test the value of __STDC__, because some compilers set it to 0 2074 while being otherwise adequately conformant. */ 2075#if !defined __STDC__ 2076# error "Compiler does not advertise C89 conformance" 2077#endif 2078 2079#include <stddef.h> 2080#include <stdarg.h> 2081struct stat; 2082/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2083struct buf { int x; }; 2084struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2085static char *e (p, i) 2086 char **p; 2087 int i; 2088{ 2089 return p[i]; 2090} 2091static char *f (char * (*g) (char **, int), char **p, ...) 2092{ 2093 char *s; 2094 va_list v; 2095 va_start (v,p); 2096 s = g (p, va_arg (v,int)); 2097 va_end (v); 2098 return s; 2099} 2100 2101/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2102 function prototypes and stuff, but not \xHH hex character constants. 2103 These do not provoke an error unfortunately, instead are silently treated 2104 as an "x". The following induces an error, until -std is added to get 2105 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2106 array size at least. It is necessary to write \x00 == 0 to get something 2107 that is true only with -std. */ 2108int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2109 2110/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2111 inside strings and character constants. */ 2112#define FOO(x) '\''x'\'' 2113int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2114 2115int test (int i, double x); 2116struct s1 {int (*f) (int a);}; 2117struct s2 {int (*f) (double a);}; 2118int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2119 int, int);' 2120 2121# Test code for whether the C compiler supports C89 (body of main). 2122ac_c_conftest_c89_main=' 2123ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2124' 2125 2126# Test code for whether the C compiler supports C99 (global declarations) 2127ac_c_conftest_c99_globals=' 2128// Does the compiler advertise C99 conformance? 2129#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2130# error "Compiler does not advertise C99 conformance" 2131#endif 2132 2133#include <stdbool.h> 2134extern int puts (const char *); 2135extern int printf (const char *, ...); 2136extern int dprintf (int, const char *, ...); 2137extern void *malloc (size_t); 2138 2139// Check varargs macros. These examples are taken from C99 6.10.3.5. 2140// dprintf is used instead of fprintf to avoid needing to declare 2141// FILE and stderr. 2142#define debug(...) dprintf (2, __VA_ARGS__) 2143#define showlist(...) puts (#__VA_ARGS__) 2144#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2145static void 2146test_varargs_macros (void) 2147{ 2148 int x = 1234; 2149 int y = 5678; 2150 debug ("Flag"); 2151 debug ("X = %d\n", x); 2152 showlist (The first, second, and third items.); 2153 report (x>y, "x is %d but y is %d", x, y); 2154} 2155 2156// Check long long types. 2157#define BIG64 18446744073709551615ull 2158#define BIG32 4294967295ul 2159#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2160#if !BIG_OK 2161 #error "your preprocessor is broken" 2162#endif 2163#if BIG_OK 2164#else 2165 #error "your preprocessor is broken" 2166#endif 2167static long long int bignum = -9223372036854775807LL; 2168static unsigned long long int ubignum = BIG64; 2169 2170struct incomplete_array 2171{ 2172 int datasize; 2173 double data[]; 2174}; 2175 2176struct named_init { 2177 int number; 2178 const wchar_t *name; 2179 double average; 2180}; 2181 2182typedef const char *ccp; 2183 2184static inline int 2185test_restrict (ccp restrict text) 2186{ 2187 // See if C++-style comments work. 2188 // Iterate through items via the restricted pointer. 2189 // Also check for declarations in for loops. 2190 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2191 continue; 2192 return 0; 2193} 2194 2195// Check varargs and va_copy. 2196static bool 2197test_varargs (const char *format, ...) 2198{ 2199 va_list args; 2200 va_start (args, format); 2201 va_list args_copy; 2202 va_copy (args_copy, args); 2203 2204 const char *str = ""; 2205 int number = 0; 2206 float fnumber = 0; 2207 2208 while (*format) 2209 { 2210 switch (*format++) 2211 { 2212 case '\''s'\'': // string 2213 str = va_arg (args_copy, const char *); 2214 break; 2215 case '\''d'\'': // int 2216 number = va_arg (args_copy, int); 2217 break; 2218 case '\''f'\'': // float 2219 fnumber = va_arg (args_copy, double); 2220 break; 2221 default: 2222 break; 2223 } 2224 } 2225 va_end (args_copy); 2226 va_end (args); 2227 2228 return *str && number && fnumber; 2229} 2230' 2231 2232# Test code for whether the C compiler supports C99 (body of main). 2233ac_c_conftest_c99_main=' 2234 // Check bool. 2235 _Bool success = false; 2236 success |= (argc != 0); 2237 2238 // Check restrict. 2239 if (test_restrict ("String literal") == 0) 2240 success = true; 2241 char *restrict newvar = "Another string"; 2242 2243 // Check varargs. 2244 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2245 test_varargs_macros (); 2246 2247 // Check flexible array members. 2248 struct incomplete_array *ia = 2249 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2250 ia->datasize = 10; 2251 for (int i = 0; i < ia->datasize; ++i) 2252 ia->data[i] = i * 1.234; 2253 2254 // Check named initializers. 2255 struct named_init ni = { 2256 .number = 34, 2257 .name = L"Test wide string", 2258 .average = 543.34343, 2259 }; 2260 2261 ni.number = 58; 2262 2263 int dynamic_array[ni.number]; 2264 dynamic_array[0] = argv[0][0]; 2265 dynamic_array[ni.number - 1] = 543; 2266 2267 // work around unused variable warnings 2268 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2269 || dynamic_array[ni.number - 1] != 543); 2270' 2271 2272# Test code for whether the C compiler supports C11 (global declarations) 2273ac_c_conftest_c11_globals=' 2274// Does the compiler advertise C11 conformance? 2275#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2276# error "Compiler does not advertise C11 conformance" 2277#endif 2278 2279// Check _Alignas. 2280char _Alignas (double) aligned_as_double; 2281char _Alignas (0) no_special_alignment; 2282extern char aligned_as_int; 2283char _Alignas (0) _Alignas (int) aligned_as_int; 2284 2285// Check _Alignof. 2286enum 2287{ 2288 int_alignment = _Alignof (int), 2289 int_array_alignment = _Alignof (int[100]), 2290 char_alignment = _Alignof (char) 2291}; 2292_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2293 2294// Check _Noreturn. 2295int _Noreturn does_not_return (void) { for (;;) continue; } 2296 2297// Check _Static_assert. 2298struct test_static_assert 2299{ 2300 int x; 2301 _Static_assert (sizeof (int) <= sizeof (long int), 2302 "_Static_assert does not work in struct"); 2303 long int y; 2304}; 2305 2306// Check UTF-8 literals. 2307#define u8 syntax error! 2308char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2309 2310// Check duplicate typedefs. 2311typedef long *long_ptr; 2312typedef long int *long_ptr; 2313typedef long_ptr long_ptr; 2314 2315// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2316struct anonymous 2317{ 2318 union { 2319 struct { int i; int j; }; 2320 struct { int k; long int l; } w; 2321 }; 2322 int m; 2323} v1; 2324' 2325 2326# Test code for whether the C compiler supports C11 (body of main). 2327ac_c_conftest_c11_main=' 2328 _Static_assert ((offsetof (struct anonymous, i) 2329 == offsetof (struct anonymous, w.k)), 2330 "Anonymous union alignment botch"); 2331 v1.i = 2; 2332 v1.w.k = 5; 2333 ok |= v1.i != 5; 2334' 2335 2336# Test code for whether the C compiler supports C11 (complete). 2337ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2338${ac_c_conftest_c99_globals} 2339${ac_c_conftest_c11_globals} 2340 2341int 2342main (int argc, char **argv) 2343{ 2344 int ok = 0; 2345 ${ac_c_conftest_c89_main} 2346 ${ac_c_conftest_c99_main} 2347 ${ac_c_conftest_c11_main} 2348 return ok; 2349} 2350" 2351 2352# Test code for whether the C compiler supports C99 (complete). 2353ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2354${ac_c_conftest_c99_globals} 2355 2356int 2357main (int argc, char **argv) 2358{ 2359 int ok = 0; 2360 ${ac_c_conftest_c89_main} 2361 ${ac_c_conftest_c99_main} 2362 return ok; 2363} 2364" 2365 2366# Test code for whether the C compiler supports C89 (complete). 2367ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2368 2369int 2370main (int argc, char **argv) 2371{ 2372 int ok = 0; 2373 ${ac_c_conftest_c89_main} 2374 return ok; 2375} 2376" 2377 2378as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2379as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2380as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2381as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2382as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2383as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2384as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2385as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2386as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2387 2388# Auxiliary files required by this configure script. 2389ac_aux_files="config.guess config.sub compile missing install-sh" 2390 2391# Locations in which to look for auxiliary files. 2392ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2393 2394# Search for a directory containing all of the required auxiliary files, 2395# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2396# If we don't find one directory that contains all the files we need, 2397# we report the set of missing files from the *first* directory in 2398# $ac_aux_dir_candidates and give up. 2399ac_missing_aux_files="" 2400ac_first_candidate=: 2401printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2403as_found=false 2404for as_dir in $ac_aux_dir_candidates 2405do 2406 IFS=$as_save_IFS 2407 case $as_dir in #((( 2408 '') as_dir=./ ;; 2409 */) ;; 2410 *) as_dir=$as_dir/ ;; 2411 esac 2412 as_found=: 2413 2414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2415 ac_aux_dir_found=yes 2416 ac_install_sh= 2417 for ac_aux in $ac_aux_files 2418 do 2419 # As a special case, if "install-sh" is required, that requirement 2420 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2421 # and $ac_install_sh is set appropriately for whichever one is found. 2422 if test x"$ac_aux" = x"install-sh" 2423 then 2424 if test -f "${as_dir}install-sh"; then 2425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2426 ac_install_sh="${as_dir}install-sh -c" 2427 elif test -f "${as_dir}install.sh"; then 2428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2429 ac_install_sh="${as_dir}install.sh -c" 2430 elif test -f "${as_dir}shtool"; then 2431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2432 ac_install_sh="${as_dir}shtool install -c" 2433 else 2434 ac_aux_dir_found=no 2435 if $ac_first_candidate; then 2436 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2437 else 2438 break 2439 fi 2440 fi 2441 else 2442 if test -f "${as_dir}${ac_aux}"; then 2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2444 else 2445 ac_aux_dir_found=no 2446 if $ac_first_candidate; then 2447 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2448 else 2449 break 2450 fi 2451 fi 2452 fi 2453 done 2454 if test "$ac_aux_dir_found" = yes; then 2455 ac_aux_dir="$as_dir" 2456 break 2457 fi 2458 ac_first_candidate=false 2459 2460 as_found=false 2461done 2462IFS=$as_save_IFS 2463if $as_found 2464then : 2465 2466else $as_nop 2467 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2468fi 2469 2470 2471# These three variables are undocumented and unsupported, 2472# and are intended to be withdrawn in a future Autoconf release. 2473# They can cause serious problems if a builder's source tree is in a directory 2474# whose full name contains unusual characters. 2475if test -f "${ac_aux_dir}config.guess"; then 2476 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2477fi 2478if test -f "${ac_aux_dir}config.sub"; then 2479 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2480fi 2481if test -f "$ac_aux_dir/configure"; then 2482 ac_configure="$SHELL ${ac_aux_dir}configure" 2483fi 2484 2485# Check that the precious variables saved in the cache have kept the same 2486# value. 2487ac_cache_corrupted=false 2488for ac_var in $ac_precious_vars; do 2489 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2490 eval ac_new_set=\$ac_env_${ac_var}_set 2491 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2492 eval ac_new_val=\$ac_env_${ac_var}_value 2493 case $ac_old_set,$ac_new_set in 2494 set,) 2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2496printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2497 ac_cache_corrupted=: ;; 2498 ,set) 2499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2500printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2501 ac_cache_corrupted=: ;; 2502 ,);; 2503 *) 2504 if test "x$ac_old_val" != "x$ac_new_val"; then 2505 # differences in whitespace do not lead to failure. 2506 ac_old_val_w=`echo x $ac_old_val` 2507 ac_new_val_w=`echo x $ac_new_val` 2508 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2510printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2511 ac_cache_corrupted=: 2512 else 2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2514printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2515 eval $ac_var=\$ac_old_val 2516 fi 2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2518printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2520printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2521 fi;; 2522 esac 2523 # Pass precious variables to config.status. 2524 if test "$ac_new_set" = set; then 2525 case $ac_new_val in 2526 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2527 *) ac_arg=$ac_var=$ac_new_val ;; 2528 esac 2529 case " $ac_configure_args " in 2530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2531 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2532 esac 2533 fi 2534done 2535if $ac_cache_corrupted; then 2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2537printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2539printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2540 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2541 and start over" "$LINENO" 5 2542fi 2543## -------------------- ## 2544## Main body of script. ## 2545## -------------------- ## 2546 2547ac_ext=c 2548ac_cpp='$CPP $CPPFLAGS' 2549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2551ac_compiler_gnu=$ac_cv_c_compiler_gnu 2552 2553 2554 2555ac_config_headers="$ac_config_headers config.h" 2556 2557 2558# Initialize Automake 2559am__api_version='1.16' 2560 2561 2562 2563 # Find a good install program. We prefer a C program (faster), 2564# so one script is as good as another. But avoid the broken or 2565# incompatible versions: 2566# SysV /etc/install, /usr/sbin/install 2567# SunOS /usr/etc/install 2568# IRIX /sbin/install 2569# AIX /bin/install 2570# AmigaOS /C/install, which installs bootblocks on floppy discs 2571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2572# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2574# OS/2's system install, which has a completely different semantic 2575# ./install, which can be erroneously created by make from ./install.sh. 2576# Reject install programs that cannot install multiple files. 2577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2578printf %s "checking for a BSD-compatible install... " >&6; } 2579if test -z "$INSTALL"; then 2580if test ${ac_cv_path_install+y} 2581then : 2582 printf %s "(cached) " >&6 2583else $as_nop 2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2585for as_dir in $PATH 2586do 2587 IFS=$as_save_IFS 2588 case $as_dir in #((( 2589 '') as_dir=./ ;; 2590 */) ;; 2591 *) as_dir=$as_dir/ ;; 2592 esac 2593 # Account for fact that we put trailing slashes in our PATH walk. 2594case $as_dir in #(( 2595 ./ | /[cC]/* | \ 2596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2598 /usr/ucb/* ) ;; 2599 *) 2600 # OSF1 and SCO ODT 3.0 have their own names for install. 2601 # Don't use installbsd from OSF since it installs stuff as root 2602 # by default. 2603 for ac_prog in ginstall scoinst install; do 2604 for ac_exec_ext in '' $ac_executable_extensions; do 2605 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2606 if test $ac_prog = install && 2607 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2608 # AIX install. It has an incompatible calling convention. 2609 : 2610 elif test $ac_prog = install && 2611 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2612 # program-specific install script used by HP pwplus--don't use. 2613 : 2614 else 2615 rm -rf conftest.one conftest.two conftest.dir 2616 echo one > conftest.one 2617 echo two > conftest.two 2618 mkdir conftest.dir 2619 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2620 test -s conftest.one && test -s conftest.two && 2621 test -s conftest.dir/conftest.one && 2622 test -s conftest.dir/conftest.two 2623 then 2624 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2625 break 3 2626 fi 2627 fi 2628 fi 2629 done 2630 done 2631 ;; 2632esac 2633 2634 done 2635IFS=$as_save_IFS 2636 2637rm -rf conftest.one conftest.two conftest.dir 2638 2639fi 2640 if test ${ac_cv_path_install+y}; then 2641 INSTALL=$ac_cv_path_install 2642 else 2643 # As a last resort, use the slow shell script. Don't cache a 2644 # value for INSTALL within a source directory, because that will 2645 # break other packages using the cache if that directory is 2646 # removed, or if the value is a relative name. 2647 INSTALL=$ac_install_sh 2648 fi 2649fi 2650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2651printf "%s\n" "$INSTALL" >&6; } 2652 2653# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2654# It thinks the first close brace ends the variable substitution. 2655test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2656 2657test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2658 2659test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2660 2661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2662printf %s "checking whether build environment is sane... " >&6; } 2663# Reject unsafe characters in $srcdir or the absolute working directory 2664# name. Accept space and tab only in the latter. 2665am_lf=' 2666' 2667case `pwd` in 2668 *[\\\"\#\$\&\'\`$am_lf]*) 2669 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2670esac 2671case $srcdir in 2672 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2673 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2674esac 2675 2676# Do 'set' in a subshell so we don't clobber the current shell's 2677# arguments. Must try -L first in case configure is actually a 2678# symlink; some systems play weird games with the mod time of symlinks 2679# (eg FreeBSD returns the mod time of the symlink's containing 2680# directory). 2681if ( 2682 am_has_slept=no 2683 for am_try in 1 2; do 2684 echo "timestamp, slept: $am_has_slept" > conftest.file 2685 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2686 if test "$*" = "X"; then 2687 # -L didn't work. 2688 set X `ls -t "$srcdir/configure" conftest.file` 2689 fi 2690 if test "$*" != "X $srcdir/configure conftest.file" \ 2691 && test "$*" != "X conftest.file $srcdir/configure"; then 2692 2693 # If neither matched, then we have a broken ls. This can happen 2694 # if, for instance, CONFIG_SHELL is bash and it inherits a 2695 # broken ls alias from the environment. This has actually 2696 # happened. Such a system could not be considered "sane". 2697 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2698 alias in your environment" "$LINENO" 5 2699 fi 2700 if test "$2" = conftest.file || test $am_try -eq 2; then 2701 break 2702 fi 2703 # Just in case. 2704 sleep 1 2705 am_has_slept=yes 2706 done 2707 test "$2" = conftest.file 2708 ) 2709then 2710 # Ok. 2711 : 2712else 2713 as_fn_error $? "newly created file is older than distributed files! 2714Check your system clock" "$LINENO" 5 2715fi 2716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2717printf "%s\n" "yes" >&6; } 2718# If we didn't sleep, we still need to ensure time stamps of config.status and 2719# generated files are strictly newer. 2720am_sleep_pid= 2721if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2722 ( sleep 1 ) & 2723 am_sleep_pid=$! 2724fi 2725 2726rm -f conftest.file 2727 2728test "$program_prefix" != NONE && 2729 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2730# Use a double $ so make ignores it. 2731test "$program_suffix" != NONE && 2732 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2733# Double any \ or $. 2734# By default was `s,x,x', remove it if useless. 2735ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2736program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2737 2738 2739# Expand $ac_aux_dir to an absolute path. 2740am_aux_dir=`cd "$ac_aux_dir" && pwd` 2741 2742 2743 if test x"${MISSING+set}" != xset; then 2744 MISSING="\${SHELL} '$am_aux_dir/missing'" 2745fi 2746# Use eval to expand $SHELL 2747if eval "$MISSING --is-lightweight"; then 2748 am_missing_run="$MISSING " 2749else 2750 am_missing_run= 2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2752printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2753fi 2754 2755if test x"${install_sh+set}" != xset; then 2756 case $am_aux_dir in 2757 *\ * | *\ *) 2758 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2759 *) 2760 install_sh="\${SHELL} $am_aux_dir/install-sh" 2761 esac 2762fi 2763 2764# Installed binaries are usually stripped using 'strip' when the user 2765# run "make install-strip". However 'strip' might not be the right 2766# tool to use in cross-compilation environments, therefore Automake 2767# will honor the 'STRIP' environment variable to overrule this program. 2768if test "$cross_compiling" != no; then 2769 if test -n "$ac_tool_prefix"; then 2770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2771set dummy ${ac_tool_prefix}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_STRIP+y} 2775then : 2776 printf %s "(cached) " >&6 2777else $as_nop 2778 if test -n "$STRIP"; then 2779 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 2802STRIP=$ac_cv_prog_STRIP 2803if test -n "$STRIP"; then 2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2805printf "%s\n" "$STRIP" >&6; } 2806else 2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2808printf "%s\n" "no" >&6; } 2809fi 2810 2811 2812fi 2813if test -z "$ac_cv_prog_STRIP"; then 2814 ac_ct_STRIP=$STRIP 2815 # Extract the first word of "strip", so it can be a program name with args. 2816set dummy strip; ac_word=$2 2817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2818printf %s "checking for $ac_word... " >&6; } 2819if test ${ac_cv_prog_ac_ct_STRIP+y} 2820then : 2821 printf %s "(cached) " >&6 2822else $as_nop 2823 if test -n "$ac_ct_STRIP"; then 2824 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2825else 2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2827for as_dir in $PATH 2828do 2829 IFS=$as_save_IFS 2830 case $as_dir in #((( 2831 '') as_dir=./ ;; 2832 */) ;; 2833 *) as_dir=$as_dir/ ;; 2834 esac 2835 for ac_exec_ext in '' $ac_executable_extensions; do 2836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2837 ac_cv_prog_ac_ct_STRIP="strip" 2838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2839 break 2 2840 fi 2841done 2842 done 2843IFS=$as_save_IFS 2844 2845fi 2846fi 2847ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2848if test -n "$ac_ct_STRIP"; then 2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2850printf "%s\n" "$ac_ct_STRIP" >&6; } 2851else 2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2853printf "%s\n" "no" >&6; } 2854fi 2855 2856 if test "x$ac_ct_STRIP" = x; then 2857 STRIP=":" 2858 else 2859 case $cross_compiling:$ac_tool_warned in 2860yes:) 2861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2862printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2863ac_tool_warned=yes ;; 2864esac 2865 STRIP=$ac_ct_STRIP 2866 fi 2867else 2868 STRIP="$ac_cv_prog_STRIP" 2869fi 2870 2871fi 2872INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2873 2874 2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2876printf %s "checking for a race-free mkdir -p... " >&6; } 2877if test -z "$MKDIR_P"; then 2878 if test ${ac_cv_path_mkdir+y} 2879then : 2880 printf %s "(cached) " >&6 2881else $as_nop 2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2883for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2884do 2885 IFS=$as_save_IFS 2886 case $as_dir in #((( 2887 '') as_dir=./ ;; 2888 */) ;; 2889 *) as_dir=$as_dir/ ;; 2890 esac 2891 for ac_prog in mkdir gmkdir; do 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2894 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2895 'mkdir ('*'coreutils) '* | \ 2896 'BusyBox '* | \ 2897 'mkdir (fileutils) '4.1*) 2898 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2899 break 3;; 2900 esac 2901 done 2902 done 2903 done 2904IFS=$as_save_IFS 2905 2906fi 2907 2908 test -d ./--version && rmdir ./--version 2909 if test ${ac_cv_path_mkdir+y}; then 2910 MKDIR_P="$ac_cv_path_mkdir -p" 2911 else 2912 # As a last resort, use the slow shell script. Don't cache a 2913 # value for MKDIR_P within a source directory, because that will 2914 # break other packages using the cache if that directory is 2915 # removed, or if the value is a relative name. 2916 MKDIR_P="$ac_install_sh -d" 2917 fi 2918fi 2919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2920printf "%s\n" "$MKDIR_P" >&6; } 2921 2922for ac_prog in gawk mawk nawk awk 2923do 2924 # Extract the first word of "$ac_prog", so it can be a program name with args. 2925set dummy $ac_prog; ac_word=$2 2926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2927printf %s "checking for $ac_word... " >&6; } 2928if test ${ac_cv_prog_AWK+y} 2929then : 2930 printf %s "(cached) " >&6 2931else $as_nop 2932 if test -n "$AWK"; then 2933 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2934else 2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2936for as_dir in $PATH 2937do 2938 IFS=$as_save_IFS 2939 case $as_dir in #((( 2940 '') as_dir=./ ;; 2941 */) ;; 2942 *) as_dir=$as_dir/ ;; 2943 esac 2944 for ac_exec_ext in '' $ac_executable_extensions; do 2945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2946 ac_cv_prog_AWK="$ac_prog" 2947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2948 break 2 2949 fi 2950done 2951 done 2952IFS=$as_save_IFS 2953 2954fi 2955fi 2956AWK=$ac_cv_prog_AWK 2957if test -n "$AWK"; then 2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2959printf "%s\n" "$AWK" >&6; } 2960else 2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2962printf "%s\n" "no" >&6; } 2963fi 2964 2965 2966 test -n "$AWK" && break 2967done 2968 2969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2970printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2971set x ${MAKE-make} 2972ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2973if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2974then : 2975 printf %s "(cached) " >&6 2976else $as_nop 2977 cat >conftest.make <<\_ACEOF 2978SHELL = /bin/sh 2979all: 2980 @echo '@@@%%%=$(MAKE)=@@@%%%' 2981_ACEOF 2982# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2983case `${MAKE-make} -f conftest.make 2>/dev/null` in 2984 *@@@%%%=?*=@@@%%%*) 2985 eval ac_cv_prog_make_${ac_make}_set=yes;; 2986 *) 2987 eval ac_cv_prog_make_${ac_make}_set=no;; 2988esac 2989rm -f conftest.make 2990fi 2991if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2993printf "%s\n" "yes" >&6; } 2994 SET_MAKE= 2995else 2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2997printf "%s\n" "no" >&6; } 2998 SET_MAKE="MAKE=${MAKE-make}" 2999fi 3000 3001rm -rf .tst 2>/dev/null 3002mkdir .tst 2>/dev/null 3003if test -d .tst; then 3004 am__leading_dot=. 3005else 3006 am__leading_dot=_ 3007fi 3008rmdir .tst 2>/dev/null 3009 3010# Check whether --enable-silent-rules was given. 3011if test ${enable_silent_rules+y} 3012then : 3013 enableval=$enable_silent_rules; 3014fi 3015 3016case $enable_silent_rules in # ((( 3017 yes) AM_DEFAULT_VERBOSITY=0;; 3018 no) AM_DEFAULT_VERBOSITY=1;; 3019 *) AM_DEFAULT_VERBOSITY=1;; 3020esac 3021am_make=${MAKE-make} 3022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3023printf %s "checking whether $am_make supports nested variables... " >&6; } 3024if test ${am_cv_make_support_nested_variables+y} 3025then : 3026 printf %s "(cached) " >&6 3027else $as_nop 3028 if printf "%s\n" 'TRUE=$(BAR$(V)) 3029BAR0=false 3030BAR1=true 3031V=1 3032am__doit: 3033 @$(TRUE) 3034.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3035 am_cv_make_support_nested_variables=yes 3036else 3037 am_cv_make_support_nested_variables=no 3038fi 3039fi 3040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3041printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3042if test $am_cv_make_support_nested_variables = yes; then 3043 AM_V='$(V)' 3044 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3045else 3046 AM_V=$AM_DEFAULT_VERBOSITY 3047 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3048fi 3049AM_BACKSLASH='\' 3050 3051if test "`cd $srcdir && pwd`" != "`pwd`"; then 3052 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3053 # is not polluted with repeated "-I." 3054 am__isrc=' -I$(srcdir)' 3055 # test to see if srcdir already configured 3056 if test -f $srcdir/config.status; then 3057 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3058 fi 3059fi 3060 3061# test whether we have cygpath 3062if test -z "$CYGPATH_W"; then 3063 if (cygpath --version) >/dev/null 2>/dev/null; then 3064 CYGPATH_W='cygpath -w' 3065 else 3066 CYGPATH_W=echo 3067 fi 3068fi 3069 3070 3071# Define the identity of the package. 3072 PACKAGE='xmag' 3073 VERSION='1.0.7' 3074 3075 3076printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3077 3078 3079printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3080 3081# Some tools Automake needs. 3082 3083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3084 3085 3086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3087 3088 3089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3090 3091 3092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3093 3094 3095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3096 3097# For better backward compatibility. To be removed once Automake 1.9.x 3098# dies out for good. For more background, see: 3099# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3100# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3101mkdir_p='$(MKDIR_P)' 3102 3103# We need awk for the "check" target (and possibly the TAP driver). The 3104# system "awk" is bad on some platforms. 3105# Always define AMTAR for backward compatibility. Yes, it's still used 3106# in the wild :-( We should find a proper way to deprecate it ... 3107AMTAR='$${TAR-tar}' 3108 3109 3110# We'll loop over all known methods to create a tar archive until one works. 3111_am_tools='gnutar pax cpio none' 3112 3113am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3114 3115 3116 3117 3118 3119# Variables for tags utilities; see am/tags.am 3120if test -z "$CTAGS"; then 3121 CTAGS=ctags 3122fi 3123 3124if test -z "$ETAGS"; then 3125 ETAGS=etags 3126fi 3127 3128if test -z "$CSCOPE"; then 3129 CSCOPE=cscope 3130fi 3131 3132 3133 3134# POSIX will say in a future version that running "rm -f" with no argument 3135# is OK; and we want to be able to make that assumption in our Makefile 3136# recipes. So use an aggressive probe to check that the usage we want is 3137# actually supported "in the wild" to an acceptable degree. 3138# See automake bug#10828. 3139# To make any issue more visible, cause the running configure to be aborted 3140# by default if the 'rm' program in use doesn't match our expectations; the 3141# user can still override this though. 3142if rm -f && rm -fr && rm -rf; then : OK; else 3143 cat >&2 <<'END' 3144Oops! 3145 3146Your 'rm' program seems unable to run without file operands specified 3147on the command line, even when the '-f' option is present. This is contrary 3148to the behaviour of most rm programs out there, and not conforming with 3149the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3150 3151Please tell bug-automake@gnu.org about your system, including the value 3152of your $PATH and any error possibly output before this message. This 3153can help us improve future automake versions. 3154 3155END 3156 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3157 echo 'Configuration will proceed anyway, since you have set the' >&2 3158 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3159 echo >&2 3160 else 3161 cat >&2 <<'END' 3162Aborting the configuration process, to ensure you take notice of the issue. 3163 3164You can download and install GNU coreutils to get an 'rm' implementation 3165that behaves properly: <https://www.gnu.org/software/coreutils/>. 3166 3167If you want to complete the configuration process using your problematic 3168'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3169to "yes", and re-run configure. 3170 3171END 3172 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3173 fi 3174fi 3175 3176 3177# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198DEPDIR="${am__leading_dot}deps" 3199 3200ac_config_commands="$ac_config_commands depfiles" 3201 3202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3203printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3204cat > confinc.mk << 'END' 3205am__doit: 3206 @echo this is the am__doit target >confinc.out 3207.PHONY: am__doit 3208END 3209am__include="#" 3210am__quote= 3211# BSD make does it like this. 3212echo '.include "confinc.mk" # ignored' > confmf.BSD 3213# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3214echo 'include confinc.mk # ignored' > confmf.GNU 3215_am_result=no 3216for s in GNU BSD; do 3217 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3218 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3219 ac_status=$? 3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3221 (exit $ac_status); } 3222 case $?:`cat confinc.out 2>/dev/null` in #( 3223 '0:this is the am__doit target') : 3224 case $s in #( 3225 BSD) : 3226 am__include='.include' am__quote='"' ;; #( 3227 *) : 3228 am__include='include' am__quote='' ;; 3229esac ;; #( 3230 *) : 3231 ;; 3232esac 3233 if test "$am__include" != "#"; then 3234 _am_result="yes ($s style)" 3235 break 3236 fi 3237done 3238rm -f confinc.* confmf.* 3239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3240printf "%s\n" "${_am_result}" >&6; } 3241 3242# Check whether --enable-dependency-tracking was given. 3243if test ${enable_dependency_tracking+y} 3244then : 3245 enableval=$enable_dependency_tracking; 3246fi 3247 3248if test "x$enable_dependency_tracking" != xno; then 3249 am_depcomp="$ac_aux_dir/depcomp" 3250 AMDEPBACKSLASH='\' 3251 am__nodep='_no' 3252fi 3253 if test "x$enable_dependency_tracking" != xno; then 3254 AMDEP_TRUE= 3255 AMDEP_FALSE='#' 3256else 3257 AMDEP_TRUE='#' 3258 AMDEP_FALSE= 3259fi 3260 3261 3262ac_ext=c 3263ac_cpp='$CPP $CPPFLAGS' 3264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3266ac_compiler_gnu=$ac_cv_c_compiler_gnu 3267if test -n "$ac_tool_prefix"; then 3268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3269set dummy ${ac_tool_prefix}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_CC+y} 3273then : 3274 printf %s "(cached) " >&6 3275else $as_nop 3276 if test -n "$CC"; then 3277 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 3300CC=$ac_cv_prog_CC 3301if test -n "$CC"; then 3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3303printf "%s\n" "$CC" >&6; } 3304else 3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3306printf "%s\n" "no" >&6; } 3307fi 3308 3309 3310fi 3311if test -z "$ac_cv_prog_CC"; then 3312 ac_ct_CC=$CC 3313 # Extract the first word of "gcc", so it can be a program name with args. 3314set dummy gcc; ac_word=$2 3315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3316printf %s "checking for $ac_word... " >&6; } 3317if test ${ac_cv_prog_ac_ct_CC+y} 3318then : 3319 printf %s "(cached) " >&6 3320else $as_nop 3321 if test -n "$ac_ct_CC"; then 3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3323else 3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3325for as_dir in $PATH 3326do 3327 IFS=$as_save_IFS 3328 case $as_dir in #((( 3329 '') as_dir=./ ;; 3330 */) ;; 3331 *) as_dir=$as_dir/ ;; 3332 esac 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3335 ac_cv_prog_ac_ct_CC="gcc" 3336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343fi 3344fi 3345ac_ct_CC=$ac_cv_prog_ac_ct_CC 3346if test -n "$ac_ct_CC"; then 3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3348printf "%s\n" "$ac_ct_CC" >&6; } 3349else 3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351printf "%s\n" "no" >&6; } 3352fi 3353 3354 if test "x$ac_ct_CC" = x; then 3355 CC="" 3356 else 3357 case $cross_compiling:$ac_tool_warned in 3358yes:) 3359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3360printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3361ac_tool_warned=yes ;; 3362esac 3363 CC=$ac_ct_CC 3364 fi 3365else 3366 CC="$ac_cv_prog_CC" 3367fi 3368 3369if test -z "$CC"; then 3370 if test -n "$ac_tool_prefix"; then 3371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3372set dummy ${ac_tool_prefix}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 3382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3383for as_dir in $PATH 3384do 3385 IFS=$as_save_IFS 3386 case $as_dir in #((( 3387 '') as_dir=./ ;; 3388 */) ;; 3389 *) as_dir=$as_dir/ ;; 3390 esac 3391 for ac_exec_ext in '' $ac_executable_extensions; do 3392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3393 ac_cv_prog_CC="${ac_tool_prefix}cc" 3394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3395 break 2 3396 fi 3397done 3398 done 3399IFS=$as_save_IFS 3400 3401fi 3402fi 3403CC=$ac_cv_prog_CC 3404if test -n "$CC"; then 3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3406printf "%s\n" "$CC" >&6; } 3407else 3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3409printf "%s\n" "no" >&6; } 3410fi 3411 3412 3413 fi 3414fi 3415if test -z "$CC"; then 3416 # Extract the first word of "cc", so it can be a program name with args. 3417set dummy cc; ac_word=$2 3418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3419printf %s "checking for $ac_word... " >&6; } 3420if test ${ac_cv_prog_CC+y} 3421then : 3422 printf %s "(cached) " >&6 3423else $as_nop 3424 if test -n "$CC"; then 3425 ac_cv_prog_CC="$CC" # Let the user override the test. 3426else 3427 ac_prog_rejected=no 3428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3429for as_dir in $PATH 3430do 3431 IFS=$as_save_IFS 3432 case $as_dir in #((( 3433 '') as_dir=./ ;; 3434 */) ;; 3435 *) as_dir=$as_dir/ ;; 3436 esac 3437 for ac_exec_ext in '' $ac_executable_extensions; do 3438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3439 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3440 ac_prog_rejected=yes 3441 continue 3442 fi 3443 ac_cv_prog_CC="cc" 3444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3445 break 2 3446 fi 3447done 3448 done 3449IFS=$as_save_IFS 3450 3451if test $ac_prog_rejected = yes; then 3452 # We found a bogon in the path, so make sure we never use it. 3453 set dummy $ac_cv_prog_CC 3454 shift 3455 if test $# != 0; then 3456 # We chose a different compiler from the bogus one. 3457 # However, it has the same basename, so the bogon will be chosen 3458 # first if we set CC to just the basename; use the full file name. 3459 shift 3460 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3461 fi 3462fi 3463fi 3464fi 3465CC=$ac_cv_prog_CC 3466if test -n "$CC"; then 3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3468printf "%s\n" "$CC" >&6; } 3469else 3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3471printf "%s\n" "no" >&6; } 3472fi 3473 3474 3475fi 3476if test -z "$CC"; then 3477 if test -n "$ac_tool_prefix"; then 3478 for ac_prog in cl.exe 3479 do 3480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3481set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3483printf %s "checking for $ac_word... " >&6; } 3484if test ${ac_cv_prog_CC+y} 3485then : 3486 printf %s "(cached) " >&6 3487else $as_nop 3488 if test -n "$CC"; then 3489 ac_cv_prog_CC="$CC" # Let the user override the test. 3490else 3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3492for as_dir in $PATH 3493do 3494 IFS=$as_save_IFS 3495 case $as_dir in #((( 3496 '') as_dir=./ ;; 3497 */) ;; 3498 *) as_dir=$as_dir/ ;; 3499 esac 3500 for ac_exec_ext in '' $ac_executable_extensions; do 3501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3502 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3504 break 2 3505 fi 3506done 3507 done 3508IFS=$as_save_IFS 3509 3510fi 3511fi 3512CC=$ac_cv_prog_CC 3513if test -n "$CC"; then 3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3515printf "%s\n" "$CC" >&6; } 3516else 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3518printf "%s\n" "no" >&6; } 3519fi 3520 3521 3522 test -n "$CC" && break 3523 done 3524fi 3525if test -z "$CC"; then 3526 ac_ct_CC=$CC 3527 for ac_prog in cl.exe 3528do 3529 # Extract the first word of "$ac_prog", so it can be a program name with args. 3530set dummy $ac_prog; ac_word=$2 3531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3532printf %s "checking for $ac_word... " >&6; } 3533if test ${ac_cv_prog_ac_ct_CC+y} 3534then : 3535 printf %s "(cached) " >&6 3536else $as_nop 3537 if test -n "$ac_ct_CC"; then 3538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3539else 3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3541for as_dir in $PATH 3542do 3543 IFS=$as_save_IFS 3544 case $as_dir in #((( 3545 '') as_dir=./ ;; 3546 */) ;; 3547 *) as_dir=$as_dir/ ;; 3548 esac 3549 for ac_exec_ext in '' $ac_executable_extensions; do 3550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3551 ac_cv_prog_ac_ct_CC="$ac_prog" 3552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3553 break 2 3554 fi 3555done 3556 done 3557IFS=$as_save_IFS 3558 3559fi 3560fi 3561ac_ct_CC=$ac_cv_prog_ac_ct_CC 3562if test -n "$ac_ct_CC"; then 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3564printf "%s\n" "$ac_ct_CC" >&6; } 3565else 3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3567printf "%s\n" "no" >&6; } 3568fi 3569 3570 3571 test -n "$ac_ct_CC" && break 3572done 3573 3574 if test "x$ac_ct_CC" = x; then 3575 CC="" 3576 else 3577 case $cross_compiling:$ac_tool_warned in 3578yes:) 3579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3580printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3581ac_tool_warned=yes ;; 3582esac 3583 CC=$ac_ct_CC 3584 fi 3585fi 3586 3587fi 3588if test -z "$CC"; then 3589 if test -n "$ac_tool_prefix"; then 3590 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3591set dummy ${ac_tool_prefix}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_CC+y} 3595then : 3596 printf %s "(cached) " >&6 3597else $as_nop 3598 if test -n "$CC"; then 3599 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 3622CC=$ac_cv_prog_CC 3623if test -n "$CC"; then 3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3625printf "%s\n" "$CC" >&6; } 3626else 3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3628printf "%s\n" "no" >&6; } 3629fi 3630 3631 3632fi 3633if test -z "$ac_cv_prog_CC"; then 3634 ac_ct_CC=$CC 3635 # Extract the first word of "clang", so it can be a program name with args. 3636set dummy clang; ac_word=$2 3637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3638printf %s "checking for $ac_word... " >&6; } 3639if test ${ac_cv_prog_ac_ct_CC+y} 3640then : 3641 printf %s "(cached) " >&6 3642else $as_nop 3643 if test -n "$ac_ct_CC"; then 3644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3645else 3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3647for as_dir in $PATH 3648do 3649 IFS=$as_save_IFS 3650 case $as_dir in #((( 3651 '') as_dir=./ ;; 3652 */) ;; 3653 *) as_dir=$as_dir/ ;; 3654 esac 3655 for ac_exec_ext in '' $ac_executable_extensions; do 3656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3657 ac_cv_prog_ac_ct_CC="clang" 3658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3659 break 2 3660 fi 3661done 3662 done 3663IFS=$as_save_IFS 3664 3665fi 3666fi 3667ac_ct_CC=$ac_cv_prog_ac_ct_CC 3668if test -n "$ac_ct_CC"; then 3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3670printf "%s\n" "$ac_ct_CC" >&6; } 3671else 3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3673printf "%s\n" "no" >&6; } 3674fi 3675 3676 if test "x$ac_ct_CC" = x; then 3677 CC="" 3678 else 3679 case $cross_compiling:$ac_tool_warned in 3680yes:) 3681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3683ac_tool_warned=yes ;; 3684esac 3685 CC=$ac_ct_CC 3686 fi 3687else 3688 CC="$ac_cv_prog_CC" 3689fi 3690 3691fi 3692 3693 3694test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3695printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3696as_fn_error $? "no acceptable C compiler found in \$PATH 3697See \`config.log' for more details" "$LINENO" 5; } 3698 3699# Provide some information about the compiler. 3700printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3701set X $ac_compile 3702ac_compiler=$2 3703for ac_option in --version -v -V -qversion -version; do 3704 { { ac_try="$ac_compiler $ac_option >&5" 3705case "(($ac_try" in 3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3707 *) ac_try_echo=$ac_try;; 3708esac 3709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3710printf "%s\n" "$ac_try_echo"; } >&5 3711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3712 ac_status=$? 3713 if test -s conftest.err; then 3714 sed '10a\ 3715... rest of stderr output deleted ... 3716 10q' conftest.err >conftest.er1 3717 cat conftest.er1 >&5 3718 fi 3719 rm -f conftest.er1 conftest.err 3720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3721 test $ac_status = 0; } 3722done 3723 3724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3725/* end confdefs.h. */ 3726 3727int 3728main (void) 3729{ 3730 3731 ; 3732 return 0; 3733} 3734_ACEOF 3735ac_clean_files_save=$ac_clean_files 3736ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3737# Try to create an executable without -o first, disregard a.out. 3738# It will help us diagnose broken compilers, and finding out an intuition 3739# of exeext. 3740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3741printf %s "checking whether the C compiler works... " >&6; } 3742ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3743 3744# The possible output files: 3745ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3746 3747ac_rmfiles= 3748for ac_file in $ac_files 3749do 3750 case $ac_file in 3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3752 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3753 esac 3754done 3755rm -f $ac_rmfiles 3756 3757if { { ac_try="$ac_link_default" 3758case "(($ac_try" in 3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3760 *) ac_try_echo=$ac_try;; 3761esac 3762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3763printf "%s\n" "$ac_try_echo"; } >&5 3764 (eval "$ac_link_default") 2>&5 3765 ac_status=$? 3766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3767 test $ac_status = 0; } 3768then : 3769 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3770# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3771# in a Makefile. We should not override ac_cv_exeext if it was cached, 3772# so that the user can short-circuit this test for compilers unknown to 3773# Autoconf. 3774for ac_file in $ac_files '' 3775do 3776 test -f "$ac_file" || continue 3777 case $ac_file in 3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3779 ;; 3780 [ab].out ) 3781 # We found the default executable, but exeext='' is most 3782 # certainly right. 3783 break;; 3784 *.* ) 3785 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3786 then :; else 3787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3788 fi 3789 # We set ac_cv_exeext here because the later test for it is not 3790 # safe: cross compilers may not add the suffix if given an `-o' 3791 # argument, so we may need to know it at that point already. 3792 # Even if this section looks crufty: it has the advantage of 3793 # actually working. 3794 break;; 3795 * ) 3796 break;; 3797 esac 3798done 3799test "$ac_cv_exeext" = no && ac_cv_exeext= 3800 3801else $as_nop 3802 ac_file='' 3803fi 3804if test -z "$ac_file" 3805then : 3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3807printf "%s\n" "no" >&6; } 3808printf "%s\n" "$as_me: failed program was:" >&5 3809sed 's/^/| /' conftest.$ac_ext >&5 3810 3811{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3812printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3813as_fn_error 77 "C compiler cannot create executables 3814See \`config.log' for more details" "$LINENO" 5; } 3815else $as_nop 3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3817printf "%s\n" "yes" >&6; } 3818fi 3819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3820printf %s "checking for C compiler default output file name... " >&6; } 3821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3822printf "%s\n" "$ac_file" >&6; } 3823ac_exeext=$ac_cv_exeext 3824 3825rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3826ac_clean_files=$ac_clean_files_save 3827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3828printf %s "checking for suffix of executables... " >&6; } 3829if { { ac_try="$ac_link" 3830case "(($ac_try" in 3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3832 *) ac_try_echo=$ac_try;; 3833esac 3834eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3835printf "%s\n" "$ac_try_echo"; } >&5 3836 (eval "$ac_link") 2>&5 3837 ac_status=$? 3838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3839 test $ac_status = 0; } 3840then : 3841 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3842# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3843# work properly (i.e., refer to `conftest.exe'), while it won't with 3844# `rm'. 3845for ac_file in conftest.exe conftest conftest.*; do 3846 test -f "$ac_file" || continue 3847 case $ac_file in 3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3849 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3850 break;; 3851 * ) break;; 3852 esac 3853done 3854else $as_nop 3855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3856printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3857as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3858See \`config.log' for more details" "$LINENO" 5; } 3859fi 3860rm -f conftest conftest$ac_cv_exeext 3861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3862printf "%s\n" "$ac_cv_exeext" >&6; } 3863 3864rm -f conftest.$ac_ext 3865EXEEXT=$ac_cv_exeext 3866ac_exeext=$EXEEXT 3867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3868/* end confdefs.h. */ 3869#include <stdio.h> 3870int 3871main (void) 3872{ 3873FILE *f = fopen ("conftest.out", "w"); 3874 return ferror (f) || fclose (f) != 0; 3875 3876 ; 3877 return 0; 3878} 3879_ACEOF 3880ac_clean_files="$ac_clean_files conftest.out" 3881# Check that the compiler produces executables we can run. If not, either 3882# the compiler is broken, or we cross compile. 3883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3884printf %s "checking whether we are cross compiling... " >&6; } 3885if test "$cross_compiling" != yes; then 3886 { { ac_try="$ac_link" 3887case "(($ac_try" in 3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3889 *) ac_try_echo=$ac_try;; 3890esac 3891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3892printf "%s\n" "$ac_try_echo"; } >&5 3893 (eval "$ac_link") 2>&5 3894 ac_status=$? 3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3896 test $ac_status = 0; } 3897 if { ac_try='./conftest$ac_cv_exeext' 3898 { { case "(($ac_try" in 3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3900 *) ac_try_echo=$ac_try;; 3901esac 3902eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3903printf "%s\n" "$ac_try_echo"; } >&5 3904 (eval "$ac_try") 2>&5 3905 ac_status=$? 3906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3907 test $ac_status = 0; }; }; then 3908 cross_compiling=no 3909 else 3910 if test "$cross_compiling" = maybe; then 3911 cross_compiling=yes 3912 else 3913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3914printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3915as_fn_error 77 "cannot run C compiled programs. 3916If you meant to cross compile, use \`--host'. 3917See \`config.log' for more details" "$LINENO" 5; } 3918 fi 3919 fi 3920fi 3921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3922printf "%s\n" "$cross_compiling" >&6; } 3923 3924rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3925ac_clean_files=$ac_clean_files_save 3926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3927printf %s "checking for suffix of object files... " >&6; } 3928if test ${ac_cv_objext+y} 3929then : 3930 printf %s "(cached) " >&6 3931else $as_nop 3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3933/* end confdefs.h. */ 3934 3935int 3936main (void) 3937{ 3938 3939 ; 3940 return 0; 3941} 3942_ACEOF 3943rm -f conftest.o conftest.obj 3944if { { ac_try="$ac_compile" 3945case "(($ac_try" in 3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3947 *) ac_try_echo=$ac_try;; 3948esac 3949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3950printf "%s\n" "$ac_try_echo"; } >&5 3951 (eval "$ac_compile") 2>&5 3952 ac_status=$? 3953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3954 test $ac_status = 0; } 3955then : 3956 for ac_file in conftest.o conftest.obj conftest.*; do 3957 test -f "$ac_file" || continue; 3958 case $ac_file in 3959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3960 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3961 break;; 3962 esac 3963done 3964else $as_nop 3965 printf "%s\n" "$as_me: failed program was:" >&5 3966sed 's/^/| /' conftest.$ac_ext >&5 3967 3968{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3969printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3970as_fn_error $? "cannot compute suffix of object files: cannot compile 3971See \`config.log' for more details" "$LINENO" 5; } 3972fi 3973rm -f conftest.$ac_cv_objext conftest.$ac_ext 3974fi 3975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3976printf "%s\n" "$ac_cv_objext" >&6; } 3977OBJEXT=$ac_cv_objext 3978ac_objext=$OBJEXT 3979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3980printf %s "checking whether the compiler supports GNU C... " >&6; } 3981if test ${ac_cv_c_compiler_gnu+y} 3982then : 3983 printf %s "(cached) " >&6 3984else $as_nop 3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3986/* end confdefs.h. */ 3987 3988int 3989main (void) 3990{ 3991#ifndef __GNUC__ 3992 choke me 3993#endif 3994 3995 ; 3996 return 0; 3997} 3998_ACEOF 3999if ac_fn_c_try_compile "$LINENO" 4000then : 4001 ac_compiler_gnu=yes 4002else $as_nop 4003 ac_compiler_gnu=no 4004fi 4005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4006ac_cv_c_compiler_gnu=$ac_compiler_gnu 4007 4008fi 4009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4010printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4011ac_compiler_gnu=$ac_cv_c_compiler_gnu 4012 4013if test $ac_compiler_gnu = yes; then 4014 GCC=yes 4015else 4016 GCC= 4017fi 4018ac_test_CFLAGS=${CFLAGS+y} 4019ac_save_CFLAGS=$CFLAGS 4020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4021printf %s "checking whether $CC accepts -g... " >&6; } 4022if test ${ac_cv_prog_cc_g+y} 4023then : 4024 printf %s "(cached) " >&6 4025else $as_nop 4026 ac_save_c_werror_flag=$ac_c_werror_flag 4027 ac_c_werror_flag=yes 4028 ac_cv_prog_cc_g=no 4029 CFLAGS="-g" 4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4031/* end confdefs.h. */ 4032 4033int 4034main (void) 4035{ 4036 4037 ; 4038 return 0; 4039} 4040_ACEOF 4041if ac_fn_c_try_compile "$LINENO" 4042then : 4043 ac_cv_prog_cc_g=yes 4044else $as_nop 4045 CFLAGS="" 4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4047/* end confdefs.h. */ 4048 4049int 4050main (void) 4051{ 4052 4053 ; 4054 return 0; 4055} 4056_ACEOF 4057if ac_fn_c_try_compile "$LINENO" 4058then : 4059 4060else $as_nop 4061 ac_c_werror_flag=$ac_save_c_werror_flag 4062 CFLAGS="-g" 4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064/* end confdefs.h. */ 4065 4066int 4067main (void) 4068{ 4069 4070 ; 4071 return 0; 4072} 4073_ACEOF 4074if ac_fn_c_try_compile "$LINENO" 4075then : 4076 ac_cv_prog_cc_g=yes 4077fi 4078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4079fi 4080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4081fi 4082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4083 ac_c_werror_flag=$ac_save_c_werror_flag 4084fi 4085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4086printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4087if test $ac_test_CFLAGS; then 4088 CFLAGS=$ac_save_CFLAGS 4089elif test $ac_cv_prog_cc_g = yes; then 4090 if test "$GCC" = yes; then 4091 CFLAGS="-g -O2" 4092 else 4093 CFLAGS="-g" 4094 fi 4095else 4096 if test "$GCC" = yes; then 4097 CFLAGS="-O2" 4098 else 4099 CFLAGS= 4100 fi 4101fi 4102ac_prog_cc_stdc=no 4103if test x$ac_prog_cc_stdc = xno 4104then : 4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4106printf %s "checking for $CC option to enable C11 features... " >&6; } 4107if test ${ac_cv_prog_cc_c11+y} 4108then : 4109 printf %s "(cached) " >&6 4110else $as_nop 4111 ac_cv_prog_cc_c11=no 4112ac_save_CC=$CC 4113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115$ac_c_conftest_c11_program 4116_ACEOF 4117for ac_arg in '' -std=gnu11 4118do 4119 CC="$ac_save_CC $ac_arg" 4120 if ac_fn_c_try_compile "$LINENO" 4121then : 4122 ac_cv_prog_cc_c11=$ac_arg 4123fi 4124rm -f core conftest.err conftest.$ac_objext conftest.beam 4125 test "x$ac_cv_prog_cc_c11" != "xno" && break 4126done 4127rm -f conftest.$ac_ext 4128CC=$ac_save_CC 4129fi 4130 4131if test "x$ac_cv_prog_cc_c11" = xno 4132then : 4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4134printf "%s\n" "unsupported" >&6; } 4135else $as_nop 4136 if test "x$ac_cv_prog_cc_c11" = x 4137then : 4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4139printf "%s\n" "none needed" >&6; } 4140else $as_nop 4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4142printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4143 CC="$CC $ac_cv_prog_cc_c11" 4144fi 4145 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4146 ac_prog_cc_stdc=c11 4147fi 4148fi 4149if test x$ac_prog_cc_stdc = xno 4150then : 4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4152printf %s "checking for $CC option to enable C99 features... " >&6; } 4153if test ${ac_cv_prog_cc_c99+y} 4154then : 4155 printf %s "(cached) " >&6 4156else $as_nop 4157 ac_cv_prog_cc_c99=no 4158ac_save_CC=$CC 4159cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161$ac_c_conftest_c99_program 4162_ACEOF 4163for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4164do 4165 CC="$ac_save_CC $ac_arg" 4166 if ac_fn_c_try_compile "$LINENO" 4167then : 4168 ac_cv_prog_cc_c99=$ac_arg 4169fi 4170rm -f core conftest.err conftest.$ac_objext conftest.beam 4171 test "x$ac_cv_prog_cc_c99" != "xno" && break 4172done 4173rm -f conftest.$ac_ext 4174CC=$ac_save_CC 4175fi 4176 4177if test "x$ac_cv_prog_cc_c99" = xno 4178then : 4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4180printf "%s\n" "unsupported" >&6; } 4181else $as_nop 4182 if test "x$ac_cv_prog_cc_c99" = x 4183then : 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4185printf "%s\n" "none needed" >&6; } 4186else $as_nop 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4188printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4189 CC="$CC $ac_cv_prog_cc_c99" 4190fi 4191 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4192 ac_prog_cc_stdc=c99 4193fi 4194fi 4195if test x$ac_prog_cc_stdc = xno 4196then : 4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4198printf %s "checking for $CC option to enable C89 features... " >&6; } 4199if test ${ac_cv_prog_cc_c89+y} 4200then : 4201 printf %s "(cached) " >&6 4202else $as_nop 4203 ac_cv_prog_cc_c89=no 4204ac_save_CC=$CC 4205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4206/* end confdefs.h. */ 4207$ac_c_conftest_c89_program 4208_ACEOF 4209for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4210do 4211 CC="$ac_save_CC $ac_arg" 4212 if ac_fn_c_try_compile "$LINENO" 4213then : 4214 ac_cv_prog_cc_c89=$ac_arg 4215fi 4216rm -f core conftest.err conftest.$ac_objext conftest.beam 4217 test "x$ac_cv_prog_cc_c89" != "xno" && break 4218done 4219rm -f conftest.$ac_ext 4220CC=$ac_save_CC 4221fi 4222 4223if test "x$ac_cv_prog_cc_c89" = xno 4224then : 4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4226printf "%s\n" "unsupported" >&6; } 4227else $as_nop 4228 if test "x$ac_cv_prog_cc_c89" = x 4229then : 4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4231printf "%s\n" "none needed" >&6; } 4232else $as_nop 4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4234printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4235 CC="$CC $ac_cv_prog_cc_c89" 4236fi 4237 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4238 ac_prog_cc_stdc=c89 4239fi 4240fi 4241 4242ac_ext=c 4243ac_cpp='$CPP $CPPFLAGS' 4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4246ac_compiler_gnu=$ac_cv_c_compiler_gnu 4247 4248 4249 ac_ext=c 4250ac_cpp='$CPP $CPPFLAGS' 4251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4253ac_compiler_gnu=$ac_cv_c_compiler_gnu 4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4255printf %s "checking whether $CC understands -c and -o together... " >&6; } 4256if test ${am_cv_prog_cc_c_o+y} 4257then : 4258 printf %s "(cached) " >&6 4259else $as_nop 4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4261/* end confdefs.h. */ 4262 4263int 4264main (void) 4265{ 4266 4267 ; 4268 return 0; 4269} 4270_ACEOF 4271 # Make sure it works both with $CC and with simple cc. 4272 # Following AC_PROG_CC_C_O, we do the test twice because some 4273 # compilers refuse to overwrite an existing .o file with -o, 4274 # though they will create one. 4275 am_cv_prog_cc_c_o=yes 4276 for am_i in 1 2; do 4277 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4278 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4279 ac_status=$? 4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4281 (exit $ac_status); } \ 4282 && test -f conftest2.$ac_objext; then 4283 : OK 4284 else 4285 am_cv_prog_cc_c_o=no 4286 break 4287 fi 4288 done 4289 rm -f core conftest* 4290 unset am_i 4291fi 4292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4293printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4294if test "$am_cv_prog_cc_c_o" != yes; then 4295 # Losing compiler, so override with the script. 4296 # FIXME: It is wrong to rewrite CC. 4297 # But if we don't then we get into trouble of one sort or another. 4298 # A longer-term fix would be to have automake use am__CC in this case, 4299 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4300 CC="$am_aux_dir/compile $CC" 4301fi 4302ac_ext=c 4303ac_cpp='$CPP $CPPFLAGS' 4304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4306ac_compiler_gnu=$ac_cv_c_compiler_gnu 4307 4308 4309depcc="$CC" am_compiler_list= 4310 4311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4312printf %s "checking dependency style of $depcc... " >&6; } 4313if test ${am_cv_CC_dependencies_compiler_type+y} 4314then : 4315 printf %s "(cached) " >&6 4316else $as_nop 4317 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4318 # We make a subdir and do the tests there. Otherwise we can end up 4319 # making bogus files that we don't know about and never remove. For 4320 # instance it was reported that on HP-UX the gcc test will end up 4321 # making a dummy file named 'D' -- because '-MD' means "put the output 4322 # in D". 4323 rm -rf conftest.dir 4324 mkdir conftest.dir 4325 # Copy depcomp to subdir because otherwise we won't find it if we're 4326 # using a relative directory. 4327 cp "$am_depcomp" conftest.dir 4328 cd conftest.dir 4329 # We will build objects and dependencies in a subdirectory because 4330 # it helps to detect inapplicable dependency modes. For instance 4331 # both Tru64's cc and ICC support -MD to output dependencies as a 4332 # side effect of compilation, but ICC will put the dependencies in 4333 # the current directory while Tru64 will put them in the object 4334 # directory. 4335 mkdir sub 4336 4337 am_cv_CC_dependencies_compiler_type=none 4338 if test "$am_compiler_list" = ""; then 4339 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4340 fi 4341 am__universal=false 4342 case " $depcc " in #( 4343 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4344 esac 4345 4346 for depmode in $am_compiler_list; do 4347 # Setup a source with many dependencies, because some compilers 4348 # like to wrap large dependency lists on column 80 (with \), and 4349 # we should not choose a depcomp mode which is confused by this. 4350 # 4351 # We need to recreate these files for each test, as the compiler may 4352 # overwrite some of them when testing with obscure command lines. 4353 # This happens at least with the AIX C compiler. 4354 : > sub/conftest.c 4355 for i in 1 2 3 4 5 6; do 4356 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4357 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4358 # Solaris 10 /bin/sh. 4359 echo '/* dummy */' > sub/conftst$i.h 4360 done 4361 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4362 4363 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4364 # mode. It turns out that the SunPro C++ compiler does not properly 4365 # handle '-M -o', and we need to detect this. Also, some Intel 4366 # versions had trouble with output in subdirs. 4367 am__obj=sub/conftest.${OBJEXT-o} 4368 am__minus_obj="-o $am__obj" 4369 case $depmode in 4370 gcc) 4371 # This depmode causes a compiler race in universal mode. 4372 test "$am__universal" = false || continue 4373 ;; 4374 nosideeffect) 4375 # After this tag, mechanisms are not by side-effect, so they'll 4376 # only be used when explicitly requested. 4377 if test "x$enable_dependency_tracking" = xyes; then 4378 continue 4379 else 4380 break 4381 fi 4382 ;; 4383 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4384 # This compiler won't grok '-c -o', but also, the minuso test has 4385 # not run yet. These depmodes are late enough in the game, and 4386 # so weak that their functioning should not be impacted. 4387 am__obj=conftest.${OBJEXT-o} 4388 am__minus_obj= 4389 ;; 4390 none) break ;; 4391 esac 4392 if depmode=$depmode \ 4393 source=sub/conftest.c object=$am__obj \ 4394 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4395 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4396 >/dev/null 2>conftest.err && 4397 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4398 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4399 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4400 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4401 # icc doesn't choke on unknown options, it will just issue warnings 4402 # or remarks (even with -Werror). So we grep stderr for any message 4403 # that says an option was ignored or not supported. 4404 # When given -MP, icc 7.0 and 7.1 complain thusly: 4405 # icc: Command line warning: ignoring option '-M'; no argument required 4406 # The diagnosis changed in icc 8.0: 4407 # icc: Command line remark: option '-MP' not supported 4408 if (grep 'ignoring option' conftest.err || 4409 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4410 am_cv_CC_dependencies_compiler_type=$depmode 4411 break 4412 fi 4413 fi 4414 done 4415 4416 cd .. 4417 rm -rf conftest.dir 4418else 4419 am_cv_CC_dependencies_compiler_type=none 4420fi 4421 4422fi 4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4424printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4425CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4426 4427 if 4428 test "x$enable_dependency_tracking" != xno \ 4429 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4430 am__fastdepCC_TRUE= 4431 am__fastdepCC_FALSE='#' 4432else 4433 am__fastdepCC_TRUE='#' 4434 am__fastdepCC_FALSE= 4435fi 4436 4437 4438 4439 4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4441printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4442if test ${ac_cv_c_undeclared_builtin_options+y} 4443then : 4444 printf %s "(cached) " >&6 4445else $as_nop 4446 ac_save_CFLAGS=$CFLAGS 4447 ac_cv_c_undeclared_builtin_options='cannot detect' 4448 for ac_arg in '' -fno-builtin; do 4449 CFLAGS="$ac_save_CFLAGS $ac_arg" 4450 # This test program should *not* compile successfully. 4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4452/* end confdefs.h. */ 4453 4454int 4455main (void) 4456{ 4457(void) strchr; 4458 ; 4459 return 0; 4460} 4461_ACEOF 4462if ac_fn_c_try_compile "$LINENO" 4463then : 4464 4465else $as_nop 4466 # This test program should compile successfully. 4467 # No library function is consistently available on 4468 # freestanding implementations, so test against a dummy 4469 # declaration. Include always-available headers on the 4470 # off chance that they somehow elicit warnings. 4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4472/* end confdefs.h. */ 4473#include <float.h> 4474#include <limits.h> 4475#include <stdarg.h> 4476#include <stddef.h> 4477extern void ac_decl (int, char *); 4478 4479int 4480main (void) 4481{ 4482(void) ac_decl (0, (char *) 0); 4483 (void) ac_decl; 4484 4485 ; 4486 return 0; 4487} 4488_ACEOF 4489if ac_fn_c_try_compile "$LINENO" 4490then : 4491 if test x"$ac_arg" = x 4492then : 4493 ac_cv_c_undeclared_builtin_options='none needed' 4494else $as_nop 4495 ac_cv_c_undeclared_builtin_options=$ac_arg 4496fi 4497 break 4498fi 4499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4500fi 4501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4502 done 4503 CFLAGS=$ac_save_CFLAGS 4504 4505fi 4506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4507printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4508 case $ac_cv_c_undeclared_builtin_options in #( 4509 'cannot detect') : 4510 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4511printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4512as_fn_error $? "cannot make $CC report undeclared builtins 4513See \`config.log' for more details" "$LINENO" 5; } ;; #( 4514 'none needed') : 4515 ac_c_undeclared_builtin_options='' ;; #( 4516 *) : 4517 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4518esac 4519 4520ac_header= ac_cache= 4521for ac_item in $ac_header_c_list 4522do 4523 if test $ac_cache; then 4524 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4525 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4526 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4527 fi 4528 ac_header= ac_cache= 4529 elif test $ac_header; then 4530 ac_cache=$ac_item 4531 else 4532 ac_header=$ac_item 4533 fi 4534done 4535 4536 4537 4538 4539 4540 4541 4542 4543if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4544then : 4545 4546printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4547 4548fi 4549 4550 4551 4552 4553ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4554if test "x$ac_cv_have_decl___clang__" = xyes 4555then : 4556 CLANGCC="yes" 4557else $as_nop 4558 CLANGCC="no" 4559fi 4560ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4561if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4562then : 4563 INTELCC="yes" 4564else $as_nop 4565 INTELCC="no" 4566fi 4567ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4568if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4569then : 4570 SUNCC="yes" 4571else $as_nop 4572 SUNCC="no" 4573fi 4574 4575 4576 4577 4578 4579 4580 4581 4582if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4583 if test -n "$ac_tool_prefix"; then 4584 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4585set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4587printf %s "checking for $ac_word... " >&6; } 4588if test ${ac_cv_path_PKG_CONFIG+y} 4589then : 4590 printf %s "(cached) " >&6 4591else $as_nop 4592 case $PKG_CONFIG in 4593 [\\/]* | ?:[\\/]*) 4594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4595 ;; 4596 *) 4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4598for as_dir in $PATH 4599do 4600 IFS=$as_save_IFS 4601 case $as_dir in #((( 4602 '') as_dir=./ ;; 4603 */) ;; 4604 *) as_dir=$as_dir/ ;; 4605 esac 4606 for ac_exec_ext in '' $ac_executable_extensions; do 4607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4608 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4610 break 2 4611 fi 4612done 4613 done 4614IFS=$as_save_IFS 4615 4616 ;; 4617esac 4618fi 4619PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4620if test -n "$PKG_CONFIG"; then 4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4622printf "%s\n" "$PKG_CONFIG" >&6; } 4623else 4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4625printf "%s\n" "no" >&6; } 4626fi 4627 4628 4629fi 4630if test -z "$ac_cv_path_PKG_CONFIG"; then 4631 ac_pt_PKG_CONFIG=$PKG_CONFIG 4632 # Extract the first word of "pkg-config", so it can be a program name with args. 4633set dummy pkg-config; ac_word=$2 4634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4635printf %s "checking for $ac_word... " >&6; } 4636if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4637then : 4638 printf %s "(cached) " >&6 4639else $as_nop 4640 case $ac_pt_PKG_CONFIG in 4641 [\\/]* | ?:[\\/]*) 4642 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4643 ;; 4644 *) 4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4646for as_dir in $PATH 4647do 4648 IFS=$as_save_IFS 4649 case $as_dir in #((( 4650 '') as_dir=./ ;; 4651 */) ;; 4652 *) as_dir=$as_dir/ ;; 4653 esac 4654 for ac_exec_ext in '' $ac_executable_extensions; do 4655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4656 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4658 break 2 4659 fi 4660done 4661 done 4662IFS=$as_save_IFS 4663 4664 ;; 4665esac 4666fi 4667ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4668if test -n "$ac_pt_PKG_CONFIG"; then 4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4670printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4671else 4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4673printf "%s\n" "no" >&6; } 4674fi 4675 4676 if test "x$ac_pt_PKG_CONFIG" = x; then 4677 PKG_CONFIG="" 4678 else 4679 case $cross_compiling:$ac_tool_warned in 4680yes:) 4681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4683ac_tool_warned=yes ;; 4684esac 4685 PKG_CONFIG=$ac_pt_PKG_CONFIG 4686 fi 4687else 4688 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4689fi 4690 4691fi 4692if test -n "$PKG_CONFIG"; then 4693 _pkg_min_version=0.9.0 4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4695printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4696 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4698printf "%s\n" "yes" >&6; } 4699 else 4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4701printf "%s\n" "no" >&6; } 4702 PKG_CONFIG="" 4703 fi 4704fi 4705 4706 4707 # Make sure we can run config.sub. 4708$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4709 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4710 4711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4712printf %s "checking build system type... " >&6; } 4713if test ${ac_cv_build+y} 4714then : 4715 printf %s "(cached) " >&6 4716else $as_nop 4717 ac_build_alias=$build_alias 4718test "x$ac_build_alias" = x && 4719 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4720test "x$ac_build_alias" = x && 4721 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4722ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4723 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4724 4725fi 4726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4727printf "%s\n" "$ac_cv_build" >&6; } 4728case $ac_cv_build in 4729*-*-*) ;; 4730*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4731esac 4732build=$ac_cv_build 4733ac_save_IFS=$IFS; IFS='-' 4734set x $ac_cv_build 4735shift 4736build_cpu=$1 4737build_vendor=$2 4738shift; shift 4739# Remember, the first character of IFS is used to create $*, 4740# except with old shells: 4741build_os=$* 4742IFS=$ac_save_IFS 4743case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4744 4745 4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4747printf %s "checking host system type... " >&6; } 4748if test ${ac_cv_host+y} 4749then : 4750 printf %s "(cached) " >&6 4751else $as_nop 4752 if test "x$host_alias" = x; then 4753 ac_cv_host=$ac_cv_build 4754else 4755 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4756 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4757fi 4758 4759fi 4760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4761printf "%s\n" "$ac_cv_host" >&6; } 4762case $ac_cv_host in 4763*-*-*) ;; 4764*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4765esac 4766host=$ac_cv_host 4767ac_save_IFS=$IFS; IFS='-' 4768set x $ac_cv_host 4769shift 4770host_cpu=$1 4771host_vendor=$2 4772shift; shift 4773# Remember, the first character of IFS is used to create $*, 4774# except with old shells: 4775host_os=$* 4776IFS=$ac_save_IFS 4777case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4778 4779 4780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4781printf %s "checking for a sed that does not truncate output... " >&6; } 4782if test ${ac_cv_path_SED+y} 4783then : 4784 printf %s "(cached) " >&6 4785else $as_nop 4786 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4787 for ac_i in 1 2 3 4 5 6 7; do 4788 ac_script="$ac_script$as_nl$ac_script" 4789 done 4790 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4791 { ac_script=; unset ac_script;} 4792 if test -z "$SED"; then 4793 ac_path_SED_found=false 4794 # Loop through the user's path and test for each of PROGNAME-LIST 4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4796for as_dir in $PATH 4797do 4798 IFS=$as_save_IFS 4799 case $as_dir in #((( 4800 '') as_dir=./ ;; 4801 */) ;; 4802 *) as_dir=$as_dir/ ;; 4803 esac 4804 for ac_prog in sed gsed 4805 do 4806 for ac_exec_ext in '' $ac_executable_extensions; do 4807 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4808 as_fn_executable_p "$ac_path_SED" || continue 4809# Check for GNU ac_path_SED and select it if it is found. 4810 # Check for GNU $ac_path_SED 4811case `"$ac_path_SED" --version 2>&1` in 4812*GNU*) 4813 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4814*) 4815 ac_count=0 4816 printf %s 0123456789 >"conftest.in" 4817 while : 4818 do 4819 cat "conftest.in" "conftest.in" >"conftest.tmp" 4820 mv "conftest.tmp" "conftest.in" 4821 cp "conftest.in" "conftest.nl" 4822 printf "%s\n" '' >> "conftest.nl" 4823 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4825 as_fn_arith $ac_count + 1 && ac_count=$as_val 4826 if test $ac_count -gt ${ac_path_SED_max-0}; then 4827 # Best one so far, save it but keep looking for a better one 4828 ac_cv_path_SED="$ac_path_SED" 4829 ac_path_SED_max=$ac_count 4830 fi 4831 # 10*(2^10) chars as input seems more than enough 4832 test $ac_count -gt 10 && break 4833 done 4834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4835esac 4836 4837 $ac_path_SED_found && break 3 4838 done 4839 done 4840 done 4841IFS=$as_save_IFS 4842 if test -z "$ac_cv_path_SED"; then 4843 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4844 fi 4845else 4846 ac_cv_path_SED=$SED 4847fi 4848 4849fi 4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4851printf "%s\n" "$ac_cv_path_SED" >&6; } 4852 SED="$ac_cv_path_SED" 4853 rm -f conftest.sed 4854 4855 4856 4857 4858 4859 4860# Check whether --enable-selective-werror was given. 4861if test ${enable_selective_werror+y} 4862then : 4863 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4864else $as_nop 4865 SELECTIVE_WERROR=yes 4866fi 4867 4868 4869 4870 4871 4872# -v is too short to test reliably with XORG_TESTSET_CFLAG 4873if test "x$SUNCC" = "xyes"; then 4874 BASE_CFLAGS="-v" 4875else 4876 BASE_CFLAGS="" 4877fi 4878 4879# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893xorg_testset_save_CFLAGS="$CFLAGS" 4894 4895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4898printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4899if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4900then : 4901 printf %s "(cached) " >&6 4902else $as_nop 4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4904/* end confdefs.h. */ 4905int i; 4906_ACEOF 4907if ac_fn_c_try_compile "$LINENO" 4908then : 4909 xorg_cv_cc_flag_unknown_warning_option=yes 4910else $as_nop 4911 xorg_cv_cc_flag_unknown_warning_option=no 4912fi 4913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4914fi 4915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4916printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4918 CFLAGS="$xorg_testset_save_CFLAGS" 4919fi 4920 4921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4924 fi 4925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4927printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4928if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4929then : 4930 printf %s "(cached) " >&6 4931else $as_nop 4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4933/* end confdefs.h. */ 4934int i; 4935_ACEOF 4936if ac_fn_c_try_compile "$LINENO" 4937then : 4938 xorg_cv_cc_flag_unused_command_line_argument=yes 4939else $as_nop 4940 xorg_cv_cc_flag_unused_command_line_argument=no 4941fi 4942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4943fi 4944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4945printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4947 CFLAGS="$xorg_testset_save_CFLAGS" 4948fi 4949 4950found="no" 4951 4952 if test $found = "no" ; then 4953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4955 fi 4956 4957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4959 fi 4960 4961 CFLAGS="$CFLAGS -Wall" 4962 4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4964printf %s "checking if $CC supports -Wall... " >&6; } 4965 cacheid=xorg_cv_cc_flag__Wall 4966 if eval test \${$cacheid+y} 4967then : 4968 printf %s "(cached) " >&6 4969else $as_nop 4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971/* end confdefs.h. */ 4972int i; 4973int 4974main (void) 4975{ 4976 4977 ; 4978 return 0; 4979} 4980_ACEOF 4981if ac_fn_c_try_link "$LINENO" 4982then : 4983 eval $cacheid=yes 4984else $as_nop 4985 eval $cacheid=no 4986fi 4987rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4988 conftest$ac_exeext conftest.$ac_ext 4989fi 4990 4991 4992 CFLAGS="$xorg_testset_save_CFLAGS" 4993 4994 eval supported=\$$cacheid 4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4996printf "%s\n" "$supported" >&6; } 4997 if test "$supported" = "yes" ; then 4998 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4999 found="yes" 5000 fi 5001 fi 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017xorg_testset_save_CFLAGS="$CFLAGS" 5018 5019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5022printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5023if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5024then : 5025 printf %s "(cached) " >&6 5026else $as_nop 5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5028/* end confdefs.h. */ 5029int i; 5030_ACEOF 5031if ac_fn_c_try_compile "$LINENO" 5032then : 5033 xorg_cv_cc_flag_unknown_warning_option=yes 5034else $as_nop 5035 xorg_cv_cc_flag_unknown_warning_option=no 5036fi 5037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5038fi 5039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5042 CFLAGS="$xorg_testset_save_CFLAGS" 5043fi 5044 5045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5048 fi 5049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5052if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5053then : 5054 printf %s "(cached) " >&6 5055else $as_nop 5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5057/* end confdefs.h. */ 5058int i; 5059_ACEOF 5060if ac_fn_c_try_compile "$LINENO" 5061then : 5062 xorg_cv_cc_flag_unused_command_line_argument=yes 5063else $as_nop 5064 xorg_cv_cc_flag_unused_command_line_argument=no 5065fi 5066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5067fi 5068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5069printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5071 CFLAGS="$xorg_testset_save_CFLAGS" 5072fi 5073 5074found="no" 5075 5076 if test $found = "no" ; then 5077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5079 fi 5080 5081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5083 fi 5084 5085 CFLAGS="$CFLAGS -Wpointer-arith" 5086 5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5088printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5089 cacheid=xorg_cv_cc_flag__Wpointer_arith 5090 if eval test \${$cacheid+y} 5091then : 5092 printf %s "(cached) " >&6 5093else $as_nop 5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5095/* end confdefs.h. */ 5096int i; 5097int 5098main (void) 5099{ 5100 5101 ; 5102 return 0; 5103} 5104_ACEOF 5105if ac_fn_c_try_link "$LINENO" 5106then : 5107 eval $cacheid=yes 5108else $as_nop 5109 eval $cacheid=no 5110fi 5111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5112 conftest$ac_exeext conftest.$ac_ext 5113fi 5114 5115 5116 CFLAGS="$xorg_testset_save_CFLAGS" 5117 5118 eval supported=\$$cacheid 5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5120printf "%s\n" "$supported" >&6; } 5121 if test "$supported" = "yes" ; then 5122 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5123 found="yes" 5124 fi 5125 fi 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141xorg_testset_save_CFLAGS="$CFLAGS" 5142 5143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5147if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5148then : 5149 printf %s "(cached) " >&6 5150else $as_nop 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152/* end confdefs.h. */ 5153int i; 5154_ACEOF 5155if ac_fn_c_try_compile "$LINENO" 5156then : 5157 xorg_cv_cc_flag_unknown_warning_option=yes 5158else $as_nop 5159 xorg_cv_cc_flag_unknown_warning_option=no 5160fi 5161rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5162fi 5163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5164printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5166 CFLAGS="$xorg_testset_save_CFLAGS" 5167fi 5168 5169if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5171 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5172 fi 5173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5175printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5176if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5177then : 5178 printf %s "(cached) " >&6 5179else $as_nop 5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5181/* end confdefs.h. */ 5182int i; 5183_ACEOF 5184if ac_fn_c_try_compile "$LINENO" 5185then : 5186 xorg_cv_cc_flag_unused_command_line_argument=yes 5187else $as_nop 5188 xorg_cv_cc_flag_unused_command_line_argument=no 5189fi 5190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5191fi 5192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5193printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5195 CFLAGS="$xorg_testset_save_CFLAGS" 5196fi 5197 5198found="no" 5199 5200 if test $found = "no" ; then 5201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5203 fi 5204 5205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5207 fi 5208 5209 CFLAGS="$CFLAGS -Wmissing-declarations" 5210 5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5212printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5213 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5214 if eval test \${$cacheid+y} 5215then : 5216 printf %s "(cached) " >&6 5217else $as_nop 5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5219/* end confdefs.h. */ 5220int i; 5221int 5222main (void) 5223{ 5224 5225 ; 5226 return 0; 5227} 5228_ACEOF 5229if ac_fn_c_try_link "$LINENO" 5230then : 5231 eval $cacheid=yes 5232else $as_nop 5233 eval $cacheid=no 5234fi 5235rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5236 conftest$ac_exeext conftest.$ac_ext 5237fi 5238 5239 5240 CFLAGS="$xorg_testset_save_CFLAGS" 5241 5242 eval supported=\$$cacheid 5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5244printf "%s\n" "$supported" >&6; } 5245 if test "$supported" = "yes" ; then 5246 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5247 found="yes" 5248 fi 5249 fi 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265xorg_testset_save_CFLAGS="$CFLAGS" 5266 5267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5270printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5271if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5272then : 5273 printf %s "(cached) " >&6 5274else $as_nop 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277int i; 5278_ACEOF 5279if ac_fn_c_try_compile "$LINENO" 5280then : 5281 xorg_cv_cc_flag_unknown_warning_option=yes 5282else $as_nop 5283 xorg_cv_cc_flag_unknown_warning_option=no 5284fi 5285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5286fi 5287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5290 CFLAGS="$xorg_testset_save_CFLAGS" 5291fi 5292 5293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5296 fi 5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5300if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5301then : 5302 printf %s "(cached) " >&6 5303else $as_nop 5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5305/* end confdefs.h. */ 5306int i; 5307_ACEOF 5308if ac_fn_c_try_compile "$LINENO" 5309then : 5310 xorg_cv_cc_flag_unused_command_line_argument=yes 5311else $as_nop 5312 xorg_cv_cc_flag_unused_command_line_argument=no 5313fi 5314rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5315fi 5316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5317printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5319 CFLAGS="$xorg_testset_save_CFLAGS" 5320fi 5321 5322found="no" 5323 5324 if test $found = "no" ; then 5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327 fi 5328 5329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5331 fi 5332 5333 CFLAGS="$CFLAGS -Wformat=2" 5334 5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5336printf %s "checking if $CC supports -Wformat=2... " >&6; } 5337 cacheid=xorg_cv_cc_flag__Wformat_2 5338 if eval test \${$cacheid+y} 5339then : 5340 printf %s "(cached) " >&6 5341else $as_nop 5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5343/* end confdefs.h. */ 5344int i; 5345int 5346main (void) 5347{ 5348 5349 ; 5350 return 0; 5351} 5352_ACEOF 5353if ac_fn_c_try_link "$LINENO" 5354then : 5355 eval $cacheid=yes 5356else $as_nop 5357 eval $cacheid=no 5358fi 5359rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5360 conftest$ac_exeext conftest.$ac_ext 5361fi 5362 5363 5364 CFLAGS="$xorg_testset_save_CFLAGS" 5365 5366 eval supported=\$$cacheid 5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5368printf "%s\n" "$supported" >&6; } 5369 if test "$supported" = "yes" ; then 5370 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5371 found="yes" 5372 fi 5373 fi 5374 5375 if test $found = "no" ; then 5376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5378 fi 5379 5380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5382 fi 5383 5384 CFLAGS="$CFLAGS -Wformat" 5385 5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5387printf %s "checking if $CC supports -Wformat... " >&6; } 5388 cacheid=xorg_cv_cc_flag__Wformat 5389 if eval test \${$cacheid+y} 5390then : 5391 printf %s "(cached) " >&6 5392else $as_nop 5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5394/* end confdefs.h. */ 5395int i; 5396int 5397main (void) 5398{ 5399 5400 ; 5401 return 0; 5402} 5403_ACEOF 5404if ac_fn_c_try_link "$LINENO" 5405then : 5406 eval $cacheid=yes 5407else $as_nop 5408 eval $cacheid=no 5409fi 5410rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5411 conftest$ac_exeext conftest.$ac_ext 5412fi 5413 5414 5415 CFLAGS="$xorg_testset_save_CFLAGS" 5416 5417 eval supported=\$$cacheid 5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5419printf "%s\n" "$supported" >&6; } 5420 if test "$supported" = "yes" ; then 5421 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5422 found="yes" 5423 fi 5424 fi 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442xorg_testset_save_CFLAGS="$CFLAGS" 5443 5444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5447printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5448if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5449then : 5450 printf %s "(cached) " >&6 5451else $as_nop 5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5453/* end confdefs.h. */ 5454int i; 5455_ACEOF 5456if ac_fn_c_try_compile "$LINENO" 5457then : 5458 xorg_cv_cc_flag_unknown_warning_option=yes 5459else $as_nop 5460 xorg_cv_cc_flag_unknown_warning_option=no 5461fi 5462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5463fi 5464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5465printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5467 CFLAGS="$xorg_testset_save_CFLAGS" 5468fi 5469 5470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5473 fi 5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5476printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5477if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5478then : 5479 printf %s "(cached) " >&6 5480else $as_nop 5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482/* end confdefs.h. */ 5483int i; 5484_ACEOF 5485if ac_fn_c_try_compile "$LINENO" 5486then : 5487 xorg_cv_cc_flag_unused_command_line_argument=yes 5488else $as_nop 5489 xorg_cv_cc_flag_unused_command_line_argument=no 5490fi 5491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5492fi 5493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5494printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5496 CFLAGS="$xorg_testset_save_CFLAGS" 5497fi 5498 5499found="no" 5500 5501 if test $found = "no" ; then 5502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5504 fi 5505 5506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5508 fi 5509 5510 CFLAGS="$CFLAGS -Wstrict-prototypes" 5511 5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5513printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5514 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5515 if eval test \${$cacheid+y} 5516then : 5517 printf %s "(cached) " >&6 5518else $as_nop 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520/* end confdefs.h. */ 5521int i; 5522int 5523main (void) 5524{ 5525 5526 ; 5527 return 0; 5528} 5529_ACEOF 5530if ac_fn_c_try_link "$LINENO" 5531then : 5532 eval $cacheid=yes 5533else $as_nop 5534 eval $cacheid=no 5535fi 5536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5537 conftest$ac_exeext conftest.$ac_ext 5538fi 5539 5540 5541 CFLAGS="$xorg_testset_save_CFLAGS" 5542 5543 eval supported=\$$cacheid 5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5545printf "%s\n" "$supported" >&6; } 5546 if test "$supported" = "yes" ; then 5547 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5548 found="yes" 5549 fi 5550 fi 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566xorg_testset_save_CFLAGS="$CFLAGS" 5567 5568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5572if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5573then : 5574 printf %s "(cached) " >&6 5575else $as_nop 5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5577/* end confdefs.h. */ 5578int i; 5579_ACEOF 5580if ac_fn_c_try_compile "$LINENO" 5581then : 5582 xorg_cv_cc_flag_unknown_warning_option=yes 5583else $as_nop 5584 xorg_cv_cc_flag_unknown_warning_option=no 5585fi 5586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5587fi 5588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5589printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5591 CFLAGS="$xorg_testset_save_CFLAGS" 5592fi 5593 5594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5597 fi 5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5600printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5601if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5602then : 5603 printf %s "(cached) " >&6 5604else $as_nop 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607int i; 5608_ACEOF 5609if ac_fn_c_try_compile "$LINENO" 5610then : 5611 xorg_cv_cc_flag_unused_command_line_argument=yes 5612else $as_nop 5613 xorg_cv_cc_flag_unused_command_line_argument=no 5614fi 5615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5616fi 5617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5618printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5620 CFLAGS="$xorg_testset_save_CFLAGS" 5621fi 5622 5623found="no" 5624 5625 if test $found = "no" ; then 5626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5628 fi 5629 5630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5632 fi 5633 5634 CFLAGS="$CFLAGS -Wmissing-prototypes" 5635 5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5637printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5638 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5639 if eval test \${$cacheid+y} 5640then : 5641 printf %s "(cached) " >&6 5642else $as_nop 5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5644/* end confdefs.h. */ 5645int i; 5646int 5647main (void) 5648{ 5649 5650 ; 5651 return 0; 5652} 5653_ACEOF 5654if ac_fn_c_try_link "$LINENO" 5655then : 5656 eval $cacheid=yes 5657else $as_nop 5658 eval $cacheid=no 5659fi 5660rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5661 conftest$ac_exeext conftest.$ac_ext 5662fi 5663 5664 5665 CFLAGS="$xorg_testset_save_CFLAGS" 5666 5667 eval supported=\$$cacheid 5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5669printf "%s\n" "$supported" >&6; } 5670 if test "$supported" = "yes" ; then 5671 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5672 found="yes" 5673 fi 5674 fi 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690xorg_testset_save_CFLAGS="$CFLAGS" 5691 5692if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5695printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5696if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5697then : 5698 printf %s "(cached) " >&6 5699else $as_nop 5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5701/* end confdefs.h. */ 5702int i; 5703_ACEOF 5704if ac_fn_c_try_compile "$LINENO" 5705then : 5706 xorg_cv_cc_flag_unknown_warning_option=yes 5707else $as_nop 5708 xorg_cv_cc_flag_unknown_warning_option=no 5709fi 5710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5711fi 5712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5713printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5715 CFLAGS="$xorg_testset_save_CFLAGS" 5716fi 5717 5718if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5721 fi 5722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5724printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5725if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5726then : 5727 printf %s "(cached) " >&6 5728else $as_nop 5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5730/* end confdefs.h. */ 5731int i; 5732_ACEOF 5733if ac_fn_c_try_compile "$LINENO" 5734then : 5735 xorg_cv_cc_flag_unused_command_line_argument=yes 5736else $as_nop 5737 xorg_cv_cc_flag_unused_command_line_argument=no 5738fi 5739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5740fi 5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5742printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5744 CFLAGS="$xorg_testset_save_CFLAGS" 5745fi 5746 5747found="no" 5748 5749 if test $found = "no" ; then 5750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5752 fi 5753 5754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5756 fi 5757 5758 CFLAGS="$CFLAGS -Wnested-externs" 5759 5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5761printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5762 cacheid=xorg_cv_cc_flag__Wnested_externs 5763 if eval test \${$cacheid+y} 5764then : 5765 printf %s "(cached) " >&6 5766else $as_nop 5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5768/* end confdefs.h. */ 5769int i; 5770int 5771main (void) 5772{ 5773 5774 ; 5775 return 0; 5776} 5777_ACEOF 5778if ac_fn_c_try_link "$LINENO" 5779then : 5780 eval $cacheid=yes 5781else $as_nop 5782 eval $cacheid=no 5783fi 5784rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5785 conftest$ac_exeext conftest.$ac_ext 5786fi 5787 5788 5789 CFLAGS="$xorg_testset_save_CFLAGS" 5790 5791 eval supported=\$$cacheid 5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5793printf "%s\n" "$supported" >&6; } 5794 if test "$supported" = "yes" ; then 5795 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5796 found="yes" 5797 fi 5798 fi 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814xorg_testset_save_CFLAGS="$CFLAGS" 5815 5816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5820if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5821then : 5822 printf %s "(cached) " >&6 5823else $as_nop 5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5825/* end confdefs.h. */ 5826int i; 5827_ACEOF 5828if ac_fn_c_try_compile "$LINENO" 5829then : 5830 xorg_cv_cc_flag_unknown_warning_option=yes 5831else $as_nop 5832 xorg_cv_cc_flag_unknown_warning_option=no 5833fi 5834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5835fi 5836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5839 CFLAGS="$xorg_testset_save_CFLAGS" 5840fi 5841 5842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5845 fi 5846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5849if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5850then : 5851 printf %s "(cached) " >&6 5852else $as_nop 5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5854/* end confdefs.h. */ 5855int i; 5856_ACEOF 5857if ac_fn_c_try_compile "$LINENO" 5858then : 5859 xorg_cv_cc_flag_unused_command_line_argument=yes 5860else $as_nop 5861 xorg_cv_cc_flag_unused_command_line_argument=no 5862fi 5863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5864fi 5865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5866printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5868 CFLAGS="$xorg_testset_save_CFLAGS" 5869fi 5870 5871found="no" 5872 5873 if test $found = "no" ; then 5874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5876 fi 5877 5878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5880 fi 5881 5882 CFLAGS="$CFLAGS -Wbad-function-cast" 5883 5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5885printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5886 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5887 if eval test \${$cacheid+y} 5888then : 5889 printf %s "(cached) " >&6 5890else $as_nop 5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5892/* end confdefs.h. */ 5893int i; 5894int 5895main (void) 5896{ 5897 5898 ; 5899 return 0; 5900} 5901_ACEOF 5902if ac_fn_c_try_link "$LINENO" 5903then : 5904 eval $cacheid=yes 5905else $as_nop 5906 eval $cacheid=no 5907fi 5908rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5909 conftest$ac_exeext conftest.$ac_ext 5910fi 5911 5912 5913 CFLAGS="$xorg_testset_save_CFLAGS" 5914 5915 eval supported=\$$cacheid 5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5917printf "%s\n" "$supported" >&6; } 5918 if test "$supported" = "yes" ; then 5919 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5920 found="yes" 5921 fi 5922 fi 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938xorg_testset_save_CFLAGS="$CFLAGS" 5939 5940if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5943printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5944if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5945then : 5946 printf %s "(cached) " >&6 5947else $as_nop 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5949/* end confdefs.h. */ 5950int i; 5951_ACEOF 5952if ac_fn_c_try_compile "$LINENO" 5953then : 5954 xorg_cv_cc_flag_unknown_warning_option=yes 5955else $as_nop 5956 xorg_cv_cc_flag_unknown_warning_option=no 5957fi 5958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5959fi 5960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5963 CFLAGS="$xorg_testset_save_CFLAGS" 5964fi 5965 5966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5969 fi 5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5973if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5974then : 5975 printf %s "(cached) " >&6 5976else $as_nop 5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979int i; 5980_ACEOF 5981if ac_fn_c_try_compile "$LINENO" 5982then : 5983 xorg_cv_cc_flag_unused_command_line_argument=yes 5984else $as_nop 5985 xorg_cv_cc_flag_unused_command_line_argument=no 5986fi 5987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5988fi 5989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5990printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5992 CFLAGS="$xorg_testset_save_CFLAGS" 5993fi 5994 5995found="no" 5996 5997 if test $found = "no" ; then 5998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6000 fi 6001 6002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6004 fi 6005 6006 CFLAGS="$CFLAGS -Wold-style-definition" 6007 6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6009printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6010 cacheid=xorg_cv_cc_flag__Wold_style_definition 6011 if eval test \${$cacheid+y} 6012then : 6013 printf %s "(cached) " >&6 6014else $as_nop 6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6016/* end confdefs.h. */ 6017int i; 6018int 6019main (void) 6020{ 6021 6022 ; 6023 return 0; 6024} 6025_ACEOF 6026if ac_fn_c_try_link "$LINENO" 6027then : 6028 eval $cacheid=yes 6029else $as_nop 6030 eval $cacheid=no 6031fi 6032rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6033 conftest$ac_exeext conftest.$ac_ext 6034fi 6035 6036 6037 CFLAGS="$xorg_testset_save_CFLAGS" 6038 6039 eval supported=\$$cacheid 6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6041printf "%s\n" "$supported" >&6; } 6042 if test "$supported" = "yes" ; then 6043 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6044 found="yes" 6045 fi 6046 fi 6047 6048 if test $found = "no" ; then 6049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6051 fi 6052 6053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6055 fi 6056 6057 CFLAGS="$CFLAGS -fd" 6058 6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6060printf %s "checking if $CC supports -fd... " >&6; } 6061 cacheid=xorg_cv_cc_flag__fd 6062 if eval test \${$cacheid+y} 6063then : 6064 printf %s "(cached) " >&6 6065else $as_nop 6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6067/* end confdefs.h. */ 6068int i; 6069int 6070main (void) 6071{ 6072 6073 ; 6074 return 0; 6075} 6076_ACEOF 6077if ac_fn_c_try_link "$LINENO" 6078then : 6079 eval $cacheid=yes 6080else $as_nop 6081 eval $cacheid=no 6082fi 6083rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6084 conftest$ac_exeext conftest.$ac_ext 6085fi 6086 6087 6088 CFLAGS="$xorg_testset_save_CFLAGS" 6089 6090 eval supported=\$$cacheid 6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6092printf "%s\n" "$supported" >&6; } 6093 if test "$supported" = "yes" ; then 6094 BASE_CFLAGS="$BASE_CFLAGS -fd" 6095 found="yes" 6096 fi 6097 fi 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113xorg_testset_save_CFLAGS="$CFLAGS" 6114 6115if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6118printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6119if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6120then : 6121 printf %s "(cached) " >&6 6122else $as_nop 6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6124/* end confdefs.h. */ 6125int i; 6126_ACEOF 6127if ac_fn_c_try_compile "$LINENO" 6128then : 6129 xorg_cv_cc_flag_unknown_warning_option=yes 6130else $as_nop 6131 xorg_cv_cc_flag_unknown_warning_option=no 6132fi 6133rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6134fi 6135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6136printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6138 CFLAGS="$xorg_testset_save_CFLAGS" 6139fi 6140 6141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6144 fi 6145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6147printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6148if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6149then : 6150 printf %s "(cached) " >&6 6151else $as_nop 6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6153/* end confdefs.h. */ 6154int i; 6155_ACEOF 6156if ac_fn_c_try_compile "$LINENO" 6157then : 6158 xorg_cv_cc_flag_unused_command_line_argument=yes 6159else $as_nop 6160 xorg_cv_cc_flag_unused_command_line_argument=no 6161fi 6162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6163fi 6164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6165printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6167 CFLAGS="$xorg_testset_save_CFLAGS" 6168fi 6169 6170found="no" 6171 6172 if test $found = "no" ; then 6173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6175 fi 6176 6177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6179 fi 6180 6181 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6182 6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6184printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6185 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6186 if eval test \${$cacheid+y} 6187then : 6188 printf %s "(cached) " >&6 6189else $as_nop 6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6191/* end confdefs.h. */ 6192int i; 6193int 6194main (void) 6195{ 6196 6197 ; 6198 return 0; 6199} 6200_ACEOF 6201if ac_fn_c_try_link "$LINENO" 6202then : 6203 eval $cacheid=yes 6204else $as_nop 6205 eval $cacheid=no 6206fi 6207rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6208 conftest$ac_exeext conftest.$ac_ext 6209fi 6210 6211 6212 CFLAGS="$xorg_testset_save_CFLAGS" 6213 6214 eval supported=\$$cacheid 6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6216printf "%s\n" "$supported" >&6; } 6217 if test "$supported" = "yes" ; then 6218 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6219 found="yes" 6220 fi 6221 fi 6222 6223 6224 6225 6226 6227# This chunk adds additional warnings that could catch undesired effects. 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241xorg_testset_save_CFLAGS="$CFLAGS" 6242 6243if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6246printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6247if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6248then : 6249 printf %s "(cached) " >&6 6250else $as_nop 6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6252/* end confdefs.h. */ 6253int i; 6254_ACEOF 6255if ac_fn_c_try_compile "$LINENO" 6256then : 6257 xorg_cv_cc_flag_unknown_warning_option=yes 6258else $as_nop 6259 xorg_cv_cc_flag_unknown_warning_option=no 6260fi 6261rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6262fi 6263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6264printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6266 CFLAGS="$xorg_testset_save_CFLAGS" 6267fi 6268 6269if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6272 fi 6273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6275printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6276if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6277then : 6278 printf %s "(cached) " >&6 6279else $as_nop 6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6281/* end confdefs.h. */ 6282int i; 6283_ACEOF 6284if ac_fn_c_try_compile "$LINENO" 6285then : 6286 xorg_cv_cc_flag_unused_command_line_argument=yes 6287else $as_nop 6288 xorg_cv_cc_flag_unused_command_line_argument=no 6289fi 6290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6291fi 6292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6295 CFLAGS="$xorg_testset_save_CFLAGS" 6296fi 6297 6298found="no" 6299 6300 if test $found = "no" ; then 6301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6303 fi 6304 6305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6307 fi 6308 6309 CFLAGS="$CFLAGS -Wunused" 6310 6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6312printf %s "checking if $CC supports -Wunused... " >&6; } 6313 cacheid=xorg_cv_cc_flag__Wunused 6314 if eval test \${$cacheid+y} 6315then : 6316 printf %s "(cached) " >&6 6317else $as_nop 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319/* end confdefs.h. */ 6320int i; 6321int 6322main (void) 6323{ 6324 6325 ; 6326 return 0; 6327} 6328_ACEOF 6329if ac_fn_c_try_link "$LINENO" 6330then : 6331 eval $cacheid=yes 6332else $as_nop 6333 eval $cacheid=no 6334fi 6335rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6336 conftest$ac_exeext conftest.$ac_ext 6337fi 6338 6339 6340 CFLAGS="$xorg_testset_save_CFLAGS" 6341 6342 eval supported=\$$cacheid 6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6344printf "%s\n" "$supported" >&6; } 6345 if test "$supported" = "yes" ; then 6346 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6347 found="yes" 6348 fi 6349 fi 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365xorg_testset_save_CFLAGS="$CFLAGS" 6366 6367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6371if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6372then : 6373 printf %s "(cached) " >&6 6374else $as_nop 6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6376/* end confdefs.h. */ 6377int i; 6378_ACEOF 6379if ac_fn_c_try_compile "$LINENO" 6380then : 6381 xorg_cv_cc_flag_unknown_warning_option=yes 6382else $as_nop 6383 xorg_cv_cc_flag_unknown_warning_option=no 6384fi 6385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6386fi 6387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6390 CFLAGS="$xorg_testset_save_CFLAGS" 6391fi 6392 6393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6396 fi 6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6400if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6401then : 6402 printf %s "(cached) " >&6 6403else $as_nop 6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6405/* end confdefs.h. */ 6406int i; 6407_ACEOF 6408if ac_fn_c_try_compile "$LINENO" 6409then : 6410 xorg_cv_cc_flag_unused_command_line_argument=yes 6411else $as_nop 6412 xorg_cv_cc_flag_unused_command_line_argument=no 6413fi 6414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6415fi 6416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6417printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6419 CFLAGS="$xorg_testset_save_CFLAGS" 6420fi 6421 6422found="no" 6423 6424 if test $found = "no" ; then 6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6427 fi 6428 6429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6431 fi 6432 6433 CFLAGS="$CFLAGS -Wuninitialized" 6434 6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6436printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6437 cacheid=xorg_cv_cc_flag__Wuninitialized 6438 if eval test \${$cacheid+y} 6439then : 6440 printf %s "(cached) " >&6 6441else $as_nop 6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6443/* end confdefs.h. */ 6444int i; 6445int 6446main (void) 6447{ 6448 6449 ; 6450 return 0; 6451} 6452_ACEOF 6453if ac_fn_c_try_link "$LINENO" 6454then : 6455 eval $cacheid=yes 6456else $as_nop 6457 eval $cacheid=no 6458fi 6459rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6460 conftest$ac_exeext conftest.$ac_ext 6461fi 6462 6463 6464 CFLAGS="$xorg_testset_save_CFLAGS" 6465 6466 eval supported=\$$cacheid 6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6468printf "%s\n" "$supported" >&6; } 6469 if test "$supported" = "yes" ; then 6470 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6471 found="yes" 6472 fi 6473 fi 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489xorg_testset_save_CFLAGS="$CFLAGS" 6490 6491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6494printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6495if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6496then : 6497 printf %s "(cached) " >&6 6498else $as_nop 6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6500/* end confdefs.h. */ 6501int i; 6502_ACEOF 6503if ac_fn_c_try_compile "$LINENO" 6504then : 6505 xorg_cv_cc_flag_unknown_warning_option=yes 6506else $as_nop 6507 xorg_cv_cc_flag_unknown_warning_option=no 6508fi 6509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6510fi 6511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6512printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6514 CFLAGS="$xorg_testset_save_CFLAGS" 6515fi 6516 6517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6520 fi 6521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6523printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6524if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6525then : 6526 printf %s "(cached) " >&6 6527else $as_nop 6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6529/* end confdefs.h. */ 6530int i; 6531_ACEOF 6532if ac_fn_c_try_compile "$LINENO" 6533then : 6534 xorg_cv_cc_flag_unused_command_line_argument=yes 6535else $as_nop 6536 xorg_cv_cc_flag_unused_command_line_argument=no 6537fi 6538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6539fi 6540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6541printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6543 CFLAGS="$xorg_testset_save_CFLAGS" 6544fi 6545 6546found="no" 6547 6548 if test $found = "no" ; then 6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6551 fi 6552 6553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6555 fi 6556 6557 CFLAGS="$CFLAGS -Wshadow" 6558 6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6560printf %s "checking if $CC supports -Wshadow... " >&6; } 6561 cacheid=xorg_cv_cc_flag__Wshadow 6562 if eval test \${$cacheid+y} 6563then : 6564 printf %s "(cached) " >&6 6565else $as_nop 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6567/* end confdefs.h. */ 6568int i; 6569int 6570main (void) 6571{ 6572 6573 ; 6574 return 0; 6575} 6576_ACEOF 6577if ac_fn_c_try_link "$LINENO" 6578then : 6579 eval $cacheid=yes 6580else $as_nop 6581 eval $cacheid=no 6582fi 6583rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6584 conftest$ac_exeext conftest.$ac_ext 6585fi 6586 6587 6588 CFLAGS="$xorg_testset_save_CFLAGS" 6589 6590 eval supported=\$$cacheid 6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6592printf "%s\n" "$supported" >&6; } 6593 if test "$supported" = "yes" ; then 6594 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6595 found="yes" 6596 fi 6597 fi 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613xorg_testset_save_CFLAGS="$CFLAGS" 6614 6615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6619if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6620then : 6621 printf %s "(cached) " >&6 6622else $as_nop 6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6624/* end confdefs.h. */ 6625int i; 6626_ACEOF 6627if ac_fn_c_try_compile "$LINENO" 6628then : 6629 xorg_cv_cc_flag_unknown_warning_option=yes 6630else $as_nop 6631 xorg_cv_cc_flag_unknown_warning_option=no 6632fi 6633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6634fi 6635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6636printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6638 CFLAGS="$xorg_testset_save_CFLAGS" 6639fi 6640 6641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6644 fi 6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6647printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6648if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6649then : 6650 printf %s "(cached) " >&6 6651else $as_nop 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653/* end confdefs.h. */ 6654int i; 6655_ACEOF 6656if ac_fn_c_try_compile "$LINENO" 6657then : 6658 xorg_cv_cc_flag_unused_command_line_argument=yes 6659else $as_nop 6660 xorg_cv_cc_flag_unused_command_line_argument=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6663fi 6664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6665printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6667 CFLAGS="$xorg_testset_save_CFLAGS" 6668fi 6669 6670found="no" 6671 6672 if test $found = "no" ; then 6673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6675 fi 6676 6677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6679 fi 6680 6681 CFLAGS="$CFLAGS -Wmissing-noreturn" 6682 6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6684printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6685 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6686 if eval test \${$cacheid+y} 6687then : 6688 printf %s "(cached) " >&6 6689else $as_nop 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6691/* end confdefs.h. */ 6692int i; 6693int 6694main (void) 6695{ 6696 6697 ; 6698 return 0; 6699} 6700_ACEOF 6701if ac_fn_c_try_link "$LINENO" 6702then : 6703 eval $cacheid=yes 6704else $as_nop 6705 eval $cacheid=no 6706fi 6707rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6708 conftest$ac_exeext conftest.$ac_ext 6709fi 6710 6711 6712 CFLAGS="$xorg_testset_save_CFLAGS" 6713 6714 eval supported=\$$cacheid 6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6716printf "%s\n" "$supported" >&6; } 6717 if test "$supported" = "yes" ; then 6718 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6719 found="yes" 6720 fi 6721 fi 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737xorg_testset_save_CFLAGS="$CFLAGS" 6738 6739if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6742printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6743if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6744then : 6745 printf %s "(cached) " >&6 6746else $as_nop 6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6748/* end confdefs.h. */ 6749int i; 6750_ACEOF 6751if ac_fn_c_try_compile "$LINENO" 6752then : 6753 xorg_cv_cc_flag_unknown_warning_option=yes 6754else $as_nop 6755 xorg_cv_cc_flag_unknown_warning_option=no 6756fi 6757rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6758fi 6759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6760printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6762 CFLAGS="$xorg_testset_save_CFLAGS" 6763fi 6764 6765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6768 fi 6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6771printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6772if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6773then : 6774 printf %s "(cached) " >&6 6775else $as_nop 6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6777/* end confdefs.h. */ 6778int i; 6779_ACEOF 6780if ac_fn_c_try_compile "$LINENO" 6781then : 6782 xorg_cv_cc_flag_unused_command_line_argument=yes 6783else $as_nop 6784 xorg_cv_cc_flag_unused_command_line_argument=no 6785fi 6786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6787fi 6788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6789printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6791 CFLAGS="$xorg_testset_save_CFLAGS" 6792fi 6793 6794found="no" 6795 6796 if test $found = "no" ; then 6797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6799 fi 6800 6801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6803 fi 6804 6805 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6806 6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6808printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6809 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6810 if eval test \${$cacheid+y} 6811then : 6812 printf %s "(cached) " >&6 6813else $as_nop 6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6815/* end confdefs.h. */ 6816int i; 6817int 6818main (void) 6819{ 6820 6821 ; 6822 return 0; 6823} 6824_ACEOF 6825if ac_fn_c_try_link "$LINENO" 6826then : 6827 eval $cacheid=yes 6828else $as_nop 6829 eval $cacheid=no 6830fi 6831rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6832 conftest$ac_exeext conftest.$ac_ext 6833fi 6834 6835 6836 CFLAGS="$xorg_testset_save_CFLAGS" 6837 6838 eval supported=\$$cacheid 6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6840printf "%s\n" "$supported" >&6; } 6841 if test "$supported" = "yes" ; then 6842 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6843 found="yes" 6844 fi 6845 fi 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861xorg_testset_save_CFLAGS="$CFLAGS" 6862 6863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6867if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6868then : 6869 printf %s "(cached) " >&6 6870else $as_nop 6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6872/* end confdefs.h. */ 6873int i; 6874_ACEOF 6875if ac_fn_c_try_compile "$LINENO" 6876then : 6877 xorg_cv_cc_flag_unknown_warning_option=yes 6878else $as_nop 6879 xorg_cv_cc_flag_unknown_warning_option=no 6880fi 6881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6882fi 6883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6884printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6886 CFLAGS="$xorg_testset_save_CFLAGS" 6887fi 6888 6889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6892 fi 6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6895printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6896if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6897then : 6898 printf %s "(cached) " >&6 6899else $as_nop 6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6901/* end confdefs.h. */ 6902int i; 6903_ACEOF 6904if ac_fn_c_try_compile "$LINENO" 6905then : 6906 xorg_cv_cc_flag_unused_command_line_argument=yes 6907else $as_nop 6908 xorg_cv_cc_flag_unused_command_line_argument=no 6909fi 6910rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6911fi 6912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6913printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6915 CFLAGS="$xorg_testset_save_CFLAGS" 6916fi 6917 6918found="no" 6919 6920 if test $found = "no" ; then 6921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6923 fi 6924 6925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6927 fi 6928 6929 CFLAGS="$CFLAGS -Wredundant-decls" 6930 6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6932printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6933 cacheid=xorg_cv_cc_flag__Wredundant_decls 6934 if eval test \${$cacheid+y} 6935then : 6936 printf %s "(cached) " >&6 6937else $as_nop 6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6939/* end confdefs.h. */ 6940int i; 6941int 6942main (void) 6943{ 6944 6945 ; 6946 return 0; 6947} 6948_ACEOF 6949if ac_fn_c_try_link "$LINENO" 6950then : 6951 eval $cacheid=yes 6952else $as_nop 6953 eval $cacheid=no 6954fi 6955rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6956 conftest$ac_exeext conftest.$ac_ext 6957fi 6958 6959 6960 CFLAGS="$xorg_testset_save_CFLAGS" 6961 6962 eval supported=\$$cacheid 6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6964printf "%s\n" "$supported" >&6; } 6965 if test "$supported" = "yes" ; then 6966 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6967 found="yes" 6968 fi 6969 fi 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985xorg_testset_save_CFLAGS="$CFLAGS" 6986 6987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6990printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6991if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6992then : 6993 printf %s "(cached) " >&6 6994else $as_nop 6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6996/* end confdefs.h. */ 6997int i; 6998_ACEOF 6999if ac_fn_c_try_compile "$LINENO" 7000then : 7001 xorg_cv_cc_flag_unknown_warning_option=yes 7002else $as_nop 7003 xorg_cv_cc_flag_unknown_warning_option=no 7004fi 7005rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7006fi 7007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7008printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7010 CFLAGS="$xorg_testset_save_CFLAGS" 7011fi 7012 7013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7016 fi 7017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7019printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7020if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7021then : 7022 printf %s "(cached) " >&6 7023else $as_nop 7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025/* end confdefs.h. */ 7026int i; 7027_ACEOF 7028if ac_fn_c_try_compile "$LINENO" 7029then : 7030 xorg_cv_cc_flag_unused_command_line_argument=yes 7031else $as_nop 7032 xorg_cv_cc_flag_unused_command_line_argument=no 7033fi 7034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7035fi 7036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7039 CFLAGS="$xorg_testset_save_CFLAGS" 7040fi 7041 7042found="no" 7043 7044 if test $found = "no" ; then 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 fi 7048 7049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7051 fi 7052 7053 CFLAGS="$CFLAGS -Wlogical-op" 7054 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7056printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7057 cacheid=xorg_cv_cc_flag__Wlogical_op 7058 if eval test \${$cacheid+y} 7059then : 7060 printf %s "(cached) " >&6 7061else $as_nop 7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064int i; 7065int 7066main (void) 7067{ 7068 7069 ; 7070 return 0; 7071} 7072_ACEOF 7073if ac_fn_c_try_link "$LINENO" 7074then : 7075 eval $cacheid=yes 7076else $as_nop 7077 eval $cacheid=no 7078fi 7079rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7080 conftest$ac_exeext conftest.$ac_ext 7081fi 7082 7083 7084 CFLAGS="$xorg_testset_save_CFLAGS" 7085 7086 eval supported=\$$cacheid 7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7088printf "%s\n" "$supported" >&6; } 7089 if test "$supported" = "yes" ; then 7090 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7091 found="yes" 7092 fi 7093 fi 7094 7095 7096 7097# These are currently disabled because they are noisy. They will be enabled 7098# in the future once the codebase is sufficiently modernized to silence 7099# them. For now, I don't want them to drown out the other warnings. 7100# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7101# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7102# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7103 7104# Turn some warnings into errors, so we don't accidently get successful builds 7105# when there are problems that should be fixed. 7106 7107if test "x$SELECTIVE_WERROR" = "xyes" ; then 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121xorg_testset_save_CFLAGS="$CFLAGS" 7122 7123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7127if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7128then : 7129 printf %s "(cached) " >&6 7130else $as_nop 7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132/* end confdefs.h. */ 7133int i; 7134_ACEOF 7135if ac_fn_c_try_compile "$LINENO" 7136then : 7137 xorg_cv_cc_flag_unknown_warning_option=yes 7138else $as_nop 7139 xorg_cv_cc_flag_unknown_warning_option=no 7140fi 7141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7142fi 7143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7146 CFLAGS="$xorg_testset_save_CFLAGS" 7147fi 7148 7149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7152 fi 7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7156if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7157then : 7158 printf %s "(cached) " >&6 7159else $as_nop 7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7161/* end confdefs.h. */ 7162int i; 7163_ACEOF 7164if ac_fn_c_try_compile "$LINENO" 7165then : 7166 xorg_cv_cc_flag_unused_command_line_argument=yes 7167else $as_nop 7168 xorg_cv_cc_flag_unused_command_line_argument=no 7169fi 7170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7171fi 7172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7175 CFLAGS="$xorg_testset_save_CFLAGS" 7176fi 7177 7178found="no" 7179 7180 if test $found = "no" ; then 7181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7183 fi 7184 7185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7187 fi 7188 7189 CFLAGS="$CFLAGS -Werror=implicit" 7190 7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7192printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7193 cacheid=xorg_cv_cc_flag__Werror_implicit 7194 if eval test \${$cacheid+y} 7195then : 7196 printf %s "(cached) " >&6 7197else $as_nop 7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7199/* end confdefs.h. */ 7200int i; 7201int 7202main (void) 7203{ 7204 7205 ; 7206 return 0; 7207} 7208_ACEOF 7209if ac_fn_c_try_link "$LINENO" 7210then : 7211 eval $cacheid=yes 7212else $as_nop 7213 eval $cacheid=no 7214fi 7215rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7216 conftest$ac_exeext conftest.$ac_ext 7217fi 7218 7219 7220 CFLAGS="$xorg_testset_save_CFLAGS" 7221 7222 eval supported=\$$cacheid 7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7224printf "%s\n" "$supported" >&6; } 7225 if test "$supported" = "yes" ; then 7226 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7227 found="yes" 7228 fi 7229 fi 7230 7231 if test $found = "no" ; then 7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7234 fi 7235 7236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7238 fi 7239 7240 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7241 7242 { 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 7243printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7244 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7245 if eval test \${$cacheid+y} 7246then : 7247 printf %s "(cached) " >&6 7248else $as_nop 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251int i; 7252int 7253main (void) 7254{ 7255 7256 ; 7257 return 0; 7258} 7259_ACEOF 7260if ac_fn_c_try_link "$LINENO" 7261then : 7262 eval $cacheid=yes 7263else $as_nop 7264 eval $cacheid=no 7265fi 7266rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7267 conftest$ac_exeext conftest.$ac_ext 7268fi 7269 7270 7271 CFLAGS="$xorg_testset_save_CFLAGS" 7272 7273 eval supported=\$$cacheid 7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7275printf "%s\n" "$supported" >&6; } 7276 if test "$supported" = "yes" ; then 7277 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7278 found="yes" 7279 fi 7280 fi 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296xorg_testset_save_CFLAGS="$CFLAGS" 7297 7298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7302if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7303then : 7304 printf %s "(cached) " >&6 7305else $as_nop 7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7307/* end confdefs.h. */ 7308int i; 7309_ACEOF 7310if ac_fn_c_try_compile "$LINENO" 7311then : 7312 xorg_cv_cc_flag_unknown_warning_option=yes 7313else $as_nop 7314 xorg_cv_cc_flag_unknown_warning_option=no 7315fi 7316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7317fi 7318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7321 CFLAGS="$xorg_testset_save_CFLAGS" 7322fi 7323 7324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7327 fi 7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7331if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7332then : 7333 printf %s "(cached) " >&6 7334else $as_nop 7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7336/* end confdefs.h. */ 7337int i; 7338_ACEOF 7339if ac_fn_c_try_compile "$LINENO" 7340then : 7341 xorg_cv_cc_flag_unused_command_line_argument=yes 7342else $as_nop 7343 xorg_cv_cc_flag_unused_command_line_argument=no 7344fi 7345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7346fi 7347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7350 CFLAGS="$xorg_testset_save_CFLAGS" 7351fi 7352 7353found="no" 7354 7355 if test $found = "no" ; then 7356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7358 fi 7359 7360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7362 fi 7363 7364 CFLAGS="$CFLAGS -Werror=nonnull" 7365 7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7367printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7368 cacheid=xorg_cv_cc_flag__Werror_nonnull 7369 if eval test \${$cacheid+y} 7370then : 7371 printf %s "(cached) " >&6 7372else $as_nop 7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7374/* end confdefs.h. */ 7375int i; 7376int 7377main (void) 7378{ 7379 7380 ; 7381 return 0; 7382} 7383_ACEOF 7384if ac_fn_c_try_link "$LINENO" 7385then : 7386 eval $cacheid=yes 7387else $as_nop 7388 eval $cacheid=no 7389fi 7390rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7391 conftest$ac_exeext conftest.$ac_ext 7392fi 7393 7394 7395 CFLAGS="$xorg_testset_save_CFLAGS" 7396 7397 eval supported=\$$cacheid 7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7399printf "%s\n" "$supported" >&6; } 7400 if test "$supported" = "yes" ; then 7401 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7402 found="yes" 7403 fi 7404 fi 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420xorg_testset_save_CFLAGS="$CFLAGS" 7421 7422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7426if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7427then : 7428 printf %s "(cached) " >&6 7429else $as_nop 7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7431/* end confdefs.h. */ 7432int i; 7433_ACEOF 7434if ac_fn_c_try_compile "$LINENO" 7435then : 7436 xorg_cv_cc_flag_unknown_warning_option=yes 7437else $as_nop 7438 xorg_cv_cc_flag_unknown_warning_option=no 7439fi 7440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7441fi 7442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7445 CFLAGS="$xorg_testset_save_CFLAGS" 7446fi 7447 7448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7451 fi 7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7455if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7456then : 7457 printf %s "(cached) " >&6 7458else $as_nop 7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7460/* end confdefs.h. */ 7461int i; 7462_ACEOF 7463if ac_fn_c_try_compile "$LINENO" 7464then : 7465 xorg_cv_cc_flag_unused_command_line_argument=yes 7466else $as_nop 7467 xorg_cv_cc_flag_unused_command_line_argument=no 7468fi 7469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7470fi 7471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7474 CFLAGS="$xorg_testset_save_CFLAGS" 7475fi 7476 7477found="no" 7478 7479 if test $found = "no" ; then 7480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7482 fi 7483 7484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7486 fi 7487 7488 CFLAGS="$CFLAGS -Werror=init-self" 7489 7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7491printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7492 cacheid=xorg_cv_cc_flag__Werror_init_self 7493 if eval test \${$cacheid+y} 7494then : 7495 printf %s "(cached) " >&6 7496else $as_nop 7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7498/* end confdefs.h. */ 7499int i; 7500int 7501main (void) 7502{ 7503 7504 ; 7505 return 0; 7506} 7507_ACEOF 7508if ac_fn_c_try_link "$LINENO" 7509then : 7510 eval $cacheid=yes 7511else $as_nop 7512 eval $cacheid=no 7513fi 7514rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7515 conftest$ac_exeext conftest.$ac_ext 7516fi 7517 7518 7519 CFLAGS="$xorg_testset_save_CFLAGS" 7520 7521 eval supported=\$$cacheid 7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7523printf "%s\n" "$supported" >&6; } 7524 if test "$supported" = "yes" ; then 7525 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7526 found="yes" 7527 fi 7528 fi 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544xorg_testset_save_CFLAGS="$CFLAGS" 7545 7546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7550if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7551then : 7552 printf %s "(cached) " >&6 7553else $as_nop 7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7555/* end confdefs.h. */ 7556int i; 7557_ACEOF 7558if ac_fn_c_try_compile "$LINENO" 7559then : 7560 xorg_cv_cc_flag_unknown_warning_option=yes 7561else $as_nop 7562 xorg_cv_cc_flag_unknown_warning_option=no 7563fi 7564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7565fi 7566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7569 CFLAGS="$xorg_testset_save_CFLAGS" 7570fi 7571 7572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7575 fi 7576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7579if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7580then : 7581 printf %s "(cached) " >&6 7582else $as_nop 7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7584/* end confdefs.h. */ 7585int i; 7586_ACEOF 7587if ac_fn_c_try_compile "$LINENO" 7588then : 7589 xorg_cv_cc_flag_unused_command_line_argument=yes 7590else $as_nop 7591 xorg_cv_cc_flag_unused_command_line_argument=no 7592fi 7593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7594fi 7595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7598 CFLAGS="$xorg_testset_save_CFLAGS" 7599fi 7600 7601found="no" 7602 7603 if test $found = "no" ; then 7604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7606 fi 7607 7608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7610 fi 7611 7612 CFLAGS="$CFLAGS -Werror=main" 7613 7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7615printf %s "checking if $CC supports -Werror=main... " >&6; } 7616 cacheid=xorg_cv_cc_flag__Werror_main 7617 if eval test \${$cacheid+y} 7618then : 7619 printf %s "(cached) " >&6 7620else $as_nop 7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7622/* end confdefs.h. */ 7623int i; 7624int 7625main (void) 7626{ 7627 7628 ; 7629 return 0; 7630} 7631_ACEOF 7632if ac_fn_c_try_link "$LINENO" 7633then : 7634 eval $cacheid=yes 7635else $as_nop 7636 eval $cacheid=no 7637fi 7638rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7639 conftest$ac_exeext conftest.$ac_ext 7640fi 7641 7642 7643 CFLAGS="$xorg_testset_save_CFLAGS" 7644 7645 eval supported=\$$cacheid 7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7647printf "%s\n" "$supported" >&6; } 7648 if test "$supported" = "yes" ; then 7649 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7650 found="yes" 7651 fi 7652 fi 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668xorg_testset_save_CFLAGS="$CFLAGS" 7669 7670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7674if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7675then : 7676 printf %s "(cached) " >&6 7677else $as_nop 7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7679/* end confdefs.h. */ 7680int i; 7681_ACEOF 7682if ac_fn_c_try_compile "$LINENO" 7683then : 7684 xorg_cv_cc_flag_unknown_warning_option=yes 7685else $as_nop 7686 xorg_cv_cc_flag_unknown_warning_option=no 7687fi 7688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7689fi 7690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7693 CFLAGS="$xorg_testset_save_CFLAGS" 7694fi 7695 7696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7699 fi 7700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7703if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7704then : 7705 printf %s "(cached) " >&6 7706else $as_nop 7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7708/* end confdefs.h. */ 7709int i; 7710_ACEOF 7711if ac_fn_c_try_compile "$LINENO" 7712then : 7713 xorg_cv_cc_flag_unused_command_line_argument=yes 7714else $as_nop 7715 xorg_cv_cc_flag_unused_command_line_argument=no 7716fi 7717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7718fi 7719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7722 CFLAGS="$xorg_testset_save_CFLAGS" 7723fi 7724 7725found="no" 7726 7727 if test $found = "no" ; then 7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 fi 7731 7732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7734 fi 7735 7736 CFLAGS="$CFLAGS -Werror=missing-braces" 7737 7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7739printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7740 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7741 if eval test \${$cacheid+y} 7742then : 7743 printf %s "(cached) " >&6 7744else $as_nop 7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7746/* end confdefs.h. */ 7747int i; 7748int 7749main (void) 7750{ 7751 7752 ; 7753 return 0; 7754} 7755_ACEOF 7756if ac_fn_c_try_link "$LINENO" 7757then : 7758 eval $cacheid=yes 7759else $as_nop 7760 eval $cacheid=no 7761fi 7762rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7763 conftest$ac_exeext conftest.$ac_ext 7764fi 7765 7766 7767 CFLAGS="$xorg_testset_save_CFLAGS" 7768 7769 eval supported=\$$cacheid 7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7771printf "%s\n" "$supported" >&6; } 7772 if test "$supported" = "yes" ; then 7773 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7774 found="yes" 7775 fi 7776 fi 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792xorg_testset_save_CFLAGS="$CFLAGS" 7793 7794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7797printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7798if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7799then : 7800 printf %s "(cached) " >&6 7801else $as_nop 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803/* end confdefs.h. */ 7804int i; 7805_ACEOF 7806if ac_fn_c_try_compile "$LINENO" 7807then : 7808 xorg_cv_cc_flag_unknown_warning_option=yes 7809else $as_nop 7810 xorg_cv_cc_flag_unknown_warning_option=no 7811fi 7812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7813fi 7814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7815printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7817 CFLAGS="$xorg_testset_save_CFLAGS" 7818fi 7819 7820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7823 fi 7824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7826printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7827if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7828then : 7829 printf %s "(cached) " >&6 7830else $as_nop 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832/* end confdefs.h. */ 7833int i; 7834_ACEOF 7835if ac_fn_c_try_compile "$LINENO" 7836then : 7837 xorg_cv_cc_flag_unused_command_line_argument=yes 7838else $as_nop 7839 xorg_cv_cc_flag_unused_command_line_argument=no 7840fi 7841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7842fi 7843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7844printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7846 CFLAGS="$xorg_testset_save_CFLAGS" 7847fi 7848 7849found="no" 7850 7851 if test $found = "no" ; then 7852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7854 fi 7855 7856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7858 fi 7859 7860 CFLAGS="$CFLAGS -Werror=sequence-point" 7861 7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7863printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7864 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7865 if eval test \${$cacheid+y} 7866then : 7867 printf %s "(cached) " >&6 7868else $as_nop 7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7870/* end confdefs.h. */ 7871int i; 7872int 7873main (void) 7874{ 7875 7876 ; 7877 return 0; 7878} 7879_ACEOF 7880if ac_fn_c_try_link "$LINENO" 7881then : 7882 eval $cacheid=yes 7883else $as_nop 7884 eval $cacheid=no 7885fi 7886rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7887 conftest$ac_exeext conftest.$ac_ext 7888fi 7889 7890 7891 CFLAGS="$xorg_testset_save_CFLAGS" 7892 7893 eval supported=\$$cacheid 7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7895printf "%s\n" "$supported" >&6; } 7896 if test "$supported" = "yes" ; then 7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7898 found="yes" 7899 fi 7900 fi 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916xorg_testset_save_CFLAGS="$CFLAGS" 7917 7918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7921printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7922if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7923then : 7924 printf %s "(cached) " >&6 7925else $as_nop 7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7927/* end confdefs.h. */ 7928int i; 7929_ACEOF 7930if ac_fn_c_try_compile "$LINENO" 7931then : 7932 xorg_cv_cc_flag_unknown_warning_option=yes 7933else $as_nop 7934 xorg_cv_cc_flag_unknown_warning_option=no 7935fi 7936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7937fi 7938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7939printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7941 CFLAGS="$xorg_testset_save_CFLAGS" 7942fi 7943 7944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7947 fi 7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7950printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7951if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7952then : 7953 printf %s "(cached) " >&6 7954else $as_nop 7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956/* end confdefs.h. */ 7957int i; 7958_ACEOF 7959if ac_fn_c_try_compile "$LINENO" 7960then : 7961 xorg_cv_cc_flag_unused_command_line_argument=yes 7962else $as_nop 7963 xorg_cv_cc_flag_unused_command_line_argument=no 7964fi 7965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7966fi 7967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7968printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7970 CFLAGS="$xorg_testset_save_CFLAGS" 7971fi 7972 7973found="no" 7974 7975 if test $found = "no" ; then 7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7978 fi 7979 7980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7982 fi 7983 7984 CFLAGS="$CFLAGS -Werror=return-type" 7985 7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7987printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7988 cacheid=xorg_cv_cc_flag__Werror_return_type 7989 if eval test \${$cacheid+y} 7990then : 7991 printf %s "(cached) " >&6 7992else $as_nop 7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994/* end confdefs.h. */ 7995int i; 7996int 7997main (void) 7998{ 7999 8000 ; 8001 return 0; 8002} 8003_ACEOF 8004if ac_fn_c_try_link "$LINENO" 8005then : 8006 eval $cacheid=yes 8007else $as_nop 8008 eval $cacheid=no 8009fi 8010rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8011 conftest$ac_exeext conftest.$ac_ext 8012fi 8013 8014 8015 CFLAGS="$xorg_testset_save_CFLAGS" 8016 8017 eval supported=\$$cacheid 8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8019printf "%s\n" "$supported" >&6; } 8020 if test "$supported" = "yes" ; then 8021 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8022 found="yes" 8023 fi 8024 fi 8025 8026 if test $found = "no" ; then 8027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8029 fi 8030 8031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8033 fi 8034 8035 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8036 8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8038printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8039 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8040 if eval test \${$cacheid+y} 8041then : 8042 printf %s "(cached) " >&6 8043else $as_nop 8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8045/* end confdefs.h. */ 8046int i; 8047int 8048main (void) 8049{ 8050 8051 ; 8052 return 0; 8053} 8054_ACEOF 8055if ac_fn_c_try_link "$LINENO" 8056then : 8057 eval $cacheid=yes 8058else $as_nop 8059 eval $cacheid=no 8060fi 8061rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8062 conftest$ac_exeext conftest.$ac_ext 8063fi 8064 8065 8066 CFLAGS="$xorg_testset_save_CFLAGS" 8067 8068 eval supported=\$$cacheid 8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8070printf "%s\n" "$supported" >&6; } 8071 if test "$supported" = "yes" ; then 8072 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8073 found="yes" 8074 fi 8075 fi 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091xorg_testset_save_CFLAGS="$CFLAGS" 8092 8093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8097if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8098then : 8099 printf %s "(cached) " >&6 8100else $as_nop 8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8102/* end confdefs.h. */ 8103int i; 8104_ACEOF 8105if ac_fn_c_try_compile "$LINENO" 8106then : 8107 xorg_cv_cc_flag_unknown_warning_option=yes 8108else $as_nop 8109 xorg_cv_cc_flag_unknown_warning_option=no 8110fi 8111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8112fi 8113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8116 CFLAGS="$xorg_testset_save_CFLAGS" 8117fi 8118 8119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8122 fi 8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8126if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8127then : 8128 printf %s "(cached) " >&6 8129else $as_nop 8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8131/* end confdefs.h. */ 8132int i; 8133_ACEOF 8134if ac_fn_c_try_compile "$LINENO" 8135then : 8136 xorg_cv_cc_flag_unused_command_line_argument=yes 8137else $as_nop 8138 xorg_cv_cc_flag_unused_command_line_argument=no 8139fi 8140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8141fi 8142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8145 CFLAGS="$xorg_testset_save_CFLAGS" 8146fi 8147 8148found="no" 8149 8150 if test $found = "no" ; then 8151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8153 fi 8154 8155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8157 fi 8158 8159 CFLAGS="$CFLAGS -Werror=trigraphs" 8160 8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8162printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8163 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8164 if eval test \${$cacheid+y} 8165then : 8166 printf %s "(cached) " >&6 8167else $as_nop 8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8169/* end confdefs.h. */ 8170int i; 8171int 8172main (void) 8173{ 8174 8175 ; 8176 return 0; 8177} 8178_ACEOF 8179if ac_fn_c_try_link "$LINENO" 8180then : 8181 eval $cacheid=yes 8182else $as_nop 8183 eval $cacheid=no 8184fi 8185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8186 conftest$ac_exeext conftest.$ac_ext 8187fi 8188 8189 8190 CFLAGS="$xorg_testset_save_CFLAGS" 8191 8192 eval supported=\$$cacheid 8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8194printf "%s\n" "$supported" >&6; } 8195 if test "$supported" = "yes" ; then 8196 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8197 found="yes" 8198 fi 8199 fi 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215xorg_testset_save_CFLAGS="$CFLAGS" 8216 8217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8220printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8221if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8222then : 8223 printf %s "(cached) " >&6 8224else $as_nop 8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8226/* end confdefs.h. */ 8227int i; 8228_ACEOF 8229if ac_fn_c_try_compile "$LINENO" 8230then : 8231 xorg_cv_cc_flag_unknown_warning_option=yes 8232else $as_nop 8233 xorg_cv_cc_flag_unknown_warning_option=no 8234fi 8235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8236fi 8237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8238printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8240 CFLAGS="$xorg_testset_save_CFLAGS" 8241fi 8242 8243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8246 fi 8247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8249printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8250if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8251then : 8252 printf %s "(cached) " >&6 8253else $as_nop 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256int i; 8257_ACEOF 8258if ac_fn_c_try_compile "$LINENO" 8259then : 8260 xorg_cv_cc_flag_unused_command_line_argument=yes 8261else $as_nop 8262 xorg_cv_cc_flag_unused_command_line_argument=no 8263fi 8264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8265fi 8266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8267printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8269 CFLAGS="$xorg_testset_save_CFLAGS" 8270fi 8271 8272found="no" 8273 8274 if test $found = "no" ; then 8275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8277 fi 8278 8279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8281 fi 8282 8283 CFLAGS="$CFLAGS -Werror=array-bounds" 8284 8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8286printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8287 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8288 if eval test \${$cacheid+y} 8289then : 8290 printf %s "(cached) " >&6 8291else $as_nop 8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8293/* end confdefs.h. */ 8294int i; 8295int 8296main (void) 8297{ 8298 8299 ; 8300 return 0; 8301} 8302_ACEOF 8303if ac_fn_c_try_link "$LINENO" 8304then : 8305 eval $cacheid=yes 8306else $as_nop 8307 eval $cacheid=no 8308fi 8309rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8310 conftest$ac_exeext conftest.$ac_ext 8311fi 8312 8313 8314 CFLAGS="$xorg_testset_save_CFLAGS" 8315 8316 eval supported=\$$cacheid 8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8318printf "%s\n" "$supported" >&6; } 8319 if test "$supported" = "yes" ; then 8320 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8321 found="yes" 8322 fi 8323 fi 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339xorg_testset_save_CFLAGS="$CFLAGS" 8340 8341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8344printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8345if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8346then : 8347 printf %s "(cached) " >&6 8348else $as_nop 8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8350/* end confdefs.h. */ 8351int i; 8352_ACEOF 8353if ac_fn_c_try_compile "$LINENO" 8354then : 8355 xorg_cv_cc_flag_unknown_warning_option=yes 8356else $as_nop 8357 xorg_cv_cc_flag_unknown_warning_option=no 8358fi 8359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8360fi 8361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8362printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8364 CFLAGS="$xorg_testset_save_CFLAGS" 8365fi 8366 8367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8370 fi 8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8373printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8374if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8375then : 8376 printf %s "(cached) " >&6 8377else $as_nop 8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8379/* end confdefs.h. */ 8380int i; 8381_ACEOF 8382if ac_fn_c_try_compile "$LINENO" 8383then : 8384 xorg_cv_cc_flag_unused_command_line_argument=yes 8385else $as_nop 8386 xorg_cv_cc_flag_unused_command_line_argument=no 8387fi 8388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8389fi 8390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8391printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8393 CFLAGS="$xorg_testset_save_CFLAGS" 8394fi 8395 8396found="no" 8397 8398 if test $found = "no" ; then 8399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8401 fi 8402 8403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8405 fi 8406 8407 CFLAGS="$CFLAGS -Werror=write-strings" 8408 8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8410printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8411 cacheid=xorg_cv_cc_flag__Werror_write_strings 8412 if eval test \${$cacheid+y} 8413then : 8414 printf %s "(cached) " >&6 8415else $as_nop 8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417/* end confdefs.h. */ 8418int i; 8419int 8420main (void) 8421{ 8422 8423 ; 8424 return 0; 8425} 8426_ACEOF 8427if ac_fn_c_try_link "$LINENO" 8428then : 8429 eval $cacheid=yes 8430else $as_nop 8431 eval $cacheid=no 8432fi 8433rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8434 conftest$ac_exeext conftest.$ac_ext 8435fi 8436 8437 8438 CFLAGS="$xorg_testset_save_CFLAGS" 8439 8440 eval supported=\$$cacheid 8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8442printf "%s\n" "$supported" >&6; } 8443 if test "$supported" = "yes" ; then 8444 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8445 found="yes" 8446 fi 8447 fi 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463xorg_testset_save_CFLAGS="$CFLAGS" 8464 8465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8468printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8469if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8470then : 8471 printf %s "(cached) " >&6 8472else $as_nop 8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8474/* end confdefs.h. */ 8475int i; 8476_ACEOF 8477if ac_fn_c_try_compile "$LINENO" 8478then : 8479 xorg_cv_cc_flag_unknown_warning_option=yes 8480else $as_nop 8481 xorg_cv_cc_flag_unknown_warning_option=no 8482fi 8483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8484fi 8485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8486printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8488 CFLAGS="$xorg_testset_save_CFLAGS" 8489fi 8490 8491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8494 fi 8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8497printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8498if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8499then : 8500 printf %s "(cached) " >&6 8501else $as_nop 8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503/* end confdefs.h. */ 8504int i; 8505_ACEOF 8506if ac_fn_c_try_compile "$LINENO" 8507then : 8508 xorg_cv_cc_flag_unused_command_line_argument=yes 8509else $as_nop 8510 xorg_cv_cc_flag_unused_command_line_argument=no 8511fi 8512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8513fi 8514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8515printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8517 CFLAGS="$xorg_testset_save_CFLAGS" 8518fi 8519 8520found="no" 8521 8522 if test $found = "no" ; then 8523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8525 fi 8526 8527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8529 fi 8530 8531 CFLAGS="$CFLAGS -Werror=address" 8532 8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8534printf %s "checking if $CC supports -Werror=address... " >&6; } 8535 cacheid=xorg_cv_cc_flag__Werror_address 8536 if eval test \${$cacheid+y} 8537then : 8538 printf %s "(cached) " >&6 8539else $as_nop 8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8541/* end confdefs.h. */ 8542int i; 8543int 8544main (void) 8545{ 8546 8547 ; 8548 return 0; 8549} 8550_ACEOF 8551if ac_fn_c_try_link "$LINENO" 8552then : 8553 eval $cacheid=yes 8554else $as_nop 8555 eval $cacheid=no 8556fi 8557rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8558 conftest$ac_exeext conftest.$ac_ext 8559fi 8560 8561 8562 CFLAGS="$xorg_testset_save_CFLAGS" 8563 8564 eval supported=\$$cacheid 8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8566printf "%s\n" "$supported" >&6; } 8567 if test "$supported" = "yes" ; then 8568 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8569 found="yes" 8570 fi 8571 fi 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587xorg_testset_save_CFLAGS="$CFLAGS" 8588 8589if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8592printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8593if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8594then : 8595 printf %s "(cached) " >&6 8596else $as_nop 8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8598/* end confdefs.h. */ 8599int i; 8600_ACEOF 8601if ac_fn_c_try_compile "$LINENO" 8602then : 8603 xorg_cv_cc_flag_unknown_warning_option=yes 8604else $as_nop 8605 xorg_cv_cc_flag_unknown_warning_option=no 8606fi 8607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8608fi 8609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8610printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8612 CFLAGS="$xorg_testset_save_CFLAGS" 8613fi 8614 8615if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8618 fi 8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8621printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8622if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8623then : 8624 printf %s "(cached) " >&6 8625else $as_nop 8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8627/* end confdefs.h. */ 8628int i; 8629_ACEOF 8630if ac_fn_c_try_compile "$LINENO" 8631then : 8632 xorg_cv_cc_flag_unused_command_line_argument=yes 8633else $as_nop 8634 xorg_cv_cc_flag_unused_command_line_argument=no 8635fi 8636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8637fi 8638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8641 CFLAGS="$xorg_testset_save_CFLAGS" 8642fi 8643 8644found="no" 8645 8646 if test $found = "no" ; then 8647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8649 fi 8650 8651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8653 fi 8654 8655 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8656 8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8658printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8659 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8660 if eval test \${$cacheid+y} 8661then : 8662 printf %s "(cached) " >&6 8663else $as_nop 8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8665/* end confdefs.h. */ 8666int i; 8667int 8668main (void) 8669{ 8670 8671 ; 8672 return 0; 8673} 8674_ACEOF 8675if ac_fn_c_try_link "$LINENO" 8676then : 8677 eval $cacheid=yes 8678else $as_nop 8679 eval $cacheid=no 8680fi 8681rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8682 conftest$ac_exeext conftest.$ac_ext 8683fi 8684 8685 8686 CFLAGS="$xorg_testset_save_CFLAGS" 8687 8688 eval supported=\$$cacheid 8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8690printf "%s\n" "$supported" >&6; } 8691 if test "$supported" = "yes" ; then 8692 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8693 found="yes" 8694 fi 8695 fi 8696 8697 if test $found = "no" ; then 8698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8700 fi 8701 8702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8704 fi 8705 8706 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8707 8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8709printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8710 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8711 if eval test \${$cacheid+y} 8712then : 8713 printf %s "(cached) " >&6 8714else $as_nop 8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8716/* end confdefs.h. */ 8717int i; 8718int 8719main (void) 8720{ 8721 8722 ; 8723 return 0; 8724} 8725_ACEOF 8726if ac_fn_c_try_link "$LINENO" 8727then : 8728 eval $cacheid=yes 8729else $as_nop 8730 eval $cacheid=no 8731fi 8732rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8733 conftest$ac_exeext conftest.$ac_ext 8734fi 8735 8736 8737 CFLAGS="$xorg_testset_save_CFLAGS" 8738 8739 eval supported=\$$cacheid 8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8741printf "%s\n" "$supported" >&6; } 8742 if test "$supported" = "yes" ; then 8743 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8744 found="yes" 8745 fi 8746 fi 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762xorg_testset_save_CFLAGS="$CFLAGS" 8763 8764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8767printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8768if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8769then : 8770 printf %s "(cached) " >&6 8771else $as_nop 8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8773/* end confdefs.h. */ 8774int i; 8775_ACEOF 8776if ac_fn_c_try_compile "$LINENO" 8777then : 8778 xorg_cv_cc_flag_unknown_warning_option=yes 8779else $as_nop 8780 xorg_cv_cc_flag_unknown_warning_option=no 8781fi 8782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8783fi 8784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8785printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8787 CFLAGS="$xorg_testset_save_CFLAGS" 8788fi 8789 8790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8793 fi 8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8796printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8797if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8798then : 8799 printf %s "(cached) " >&6 8800else $as_nop 8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8802/* end confdefs.h. */ 8803int i; 8804_ACEOF 8805if ac_fn_c_try_compile "$LINENO" 8806then : 8807 xorg_cv_cc_flag_unused_command_line_argument=yes 8808else $as_nop 8809 xorg_cv_cc_flag_unused_command_line_argument=no 8810fi 8811rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8812fi 8813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8814printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817fi 8818 8819found="no" 8820 8821 if test $found = "no" ; then 8822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8823 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8824 fi 8825 8826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8828 fi 8829 8830 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8831 8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8833printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8834 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8835 if eval test \${$cacheid+y} 8836then : 8837 printf %s "(cached) " >&6 8838else $as_nop 8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840/* end confdefs.h. */ 8841int i; 8842int 8843main (void) 8844{ 8845 8846 ; 8847 return 0; 8848} 8849_ACEOF 8850if ac_fn_c_try_link "$LINENO" 8851then : 8852 eval $cacheid=yes 8853else $as_nop 8854 eval $cacheid=no 8855fi 8856rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8857 conftest$ac_exeext conftest.$ac_ext 8858fi 8859 8860 8861 CFLAGS="$xorg_testset_save_CFLAGS" 8862 8863 eval supported=\$$cacheid 8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8865printf "%s\n" "$supported" >&6; } 8866 if test "$supported" = "yes" ; then 8867 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8868 found="yes" 8869 fi 8870 fi 8871 8872 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8873else 8874{ 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 8875printf "%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;} 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889xorg_testset_save_CFLAGS="$CFLAGS" 8890 8891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8895if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8896then : 8897 printf %s "(cached) " >&6 8898else $as_nop 8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8900/* end confdefs.h. */ 8901int i; 8902_ACEOF 8903if ac_fn_c_try_compile "$LINENO" 8904then : 8905 xorg_cv_cc_flag_unknown_warning_option=yes 8906else $as_nop 8907 xorg_cv_cc_flag_unknown_warning_option=no 8908fi 8909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8910fi 8911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8912printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8914 CFLAGS="$xorg_testset_save_CFLAGS" 8915fi 8916 8917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8920 fi 8921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8923printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8924if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8925then : 8926 printf %s "(cached) " >&6 8927else $as_nop 8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8929/* end confdefs.h. */ 8930int i; 8931_ACEOF 8932if ac_fn_c_try_compile "$LINENO" 8933then : 8934 xorg_cv_cc_flag_unused_command_line_argument=yes 8935else $as_nop 8936 xorg_cv_cc_flag_unused_command_line_argument=no 8937fi 8938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8939fi 8940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8943 CFLAGS="$xorg_testset_save_CFLAGS" 8944fi 8945 8946found="no" 8947 8948 if test $found = "no" ; then 8949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8951 fi 8952 8953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8955 fi 8956 8957 CFLAGS="$CFLAGS -Wimplicit" 8958 8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8960printf %s "checking if $CC supports -Wimplicit... " >&6; } 8961 cacheid=xorg_cv_cc_flag__Wimplicit 8962 if eval test \${$cacheid+y} 8963then : 8964 printf %s "(cached) " >&6 8965else $as_nop 8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8967/* end confdefs.h. */ 8968int i; 8969int 8970main (void) 8971{ 8972 8973 ; 8974 return 0; 8975} 8976_ACEOF 8977if ac_fn_c_try_link "$LINENO" 8978then : 8979 eval $cacheid=yes 8980else $as_nop 8981 eval $cacheid=no 8982fi 8983rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8984 conftest$ac_exeext conftest.$ac_ext 8985fi 8986 8987 8988 CFLAGS="$xorg_testset_save_CFLAGS" 8989 8990 eval supported=\$$cacheid 8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8992printf "%s\n" "$supported" >&6; } 8993 if test "$supported" = "yes" ; then 8994 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8995 found="yes" 8996 fi 8997 fi 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013xorg_testset_save_CFLAGS="$CFLAGS" 9014 9015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9019if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9020then : 9021 printf %s "(cached) " >&6 9022else $as_nop 9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9024/* end confdefs.h. */ 9025int i; 9026_ACEOF 9027if ac_fn_c_try_compile "$LINENO" 9028then : 9029 xorg_cv_cc_flag_unknown_warning_option=yes 9030else $as_nop 9031 xorg_cv_cc_flag_unknown_warning_option=no 9032fi 9033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9034fi 9035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9036printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9038 CFLAGS="$xorg_testset_save_CFLAGS" 9039fi 9040 9041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9044 fi 9045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9047printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9048if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9049then : 9050 printf %s "(cached) " >&6 9051else $as_nop 9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054int i; 9055_ACEOF 9056if ac_fn_c_try_compile "$LINENO" 9057then : 9058 xorg_cv_cc_flag_unused_command_line_argument=yes 9059else $as_nop 9060 xorg_cv_cc_flag_unused_command_line_argument=no 9061fi 9062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9063fi 9064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9065printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9067 CFLAGS="$xorg_testset_save_CFLAGS" 9068fi 9069 9070found="no" 9071 9072 if test $found = "no" ; then 9073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9075 fi 9076 9077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9079 fi 9080 9081 CFLAGS="$CFLAGS -Wnonnull" 9082 9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9084printf %s "checking if $CC supports -Wnonnull... " >&6; } 9085 cacheid=xorg_cv_cc_flag__Wnonnull 9086 if eval test \${$cacheid+y} 9087then : 9088 printf %s "(cached) " >&6 9089else $as_nop 9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9091/* end confdefs.h. */ 9092int i; 9093int 9094main (void) 9095{ 9096 9097 ; 9098 return 0; 9099} 9100_ACEOF 9101if ac_fn_c_try_link "$LINENO" 9102then : 9103 eval $cacheid=yes 9104else $as_nop 9105 eval $cacheid=no 9106fi 9107rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9108 conftest$ac_exeext conftest.$ac_ext 9109fi 9110 9111 9112 CFLAGS="$xorg_testset_save_CFLAGS" 9113 9114 eval supported=\$$cacheid 9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9116printf "%s\n" "$supported" >&6; } 9117 if test "$supported" = "yes" ; then 9118 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9119 found="yes" 9120 fi 9121 fi 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137xorg_testset_save_CFLAGS="$CFLAGS" 9138 9139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9142printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9143if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9144then : 9145 printf %s "(cached) " >&6 9146else $as_nop 9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9148/* end confdefs.h. */ 9149int i; 9150_ACEOF 9151if ac_fn_c_try_compile "$LINENO" 9152then : 9153 xorg_cv_cc_flag_unknown_warning_option=yes 9154else $as_nop 9155 xorg_cv_cc_flag_unknown_warning_option=no 9156fi 9157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9158fi 9159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9160printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9162 CFLAGS="$xorg_testset_save_CFLAGS" 9163fi 9164 9165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9168 fi 9169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9171printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9172if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9173then : 9174 printf %s "(cached) " >&6 9175else $as_nop 9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9177/* end confdefs.h. */ 9178int i; 9179_ACEOF 9180if ac_fn_c_try_compile "$LINENO" 9181then : 9182 xorg_cv_cc_flag_unused_command_line_argument=yes 9183else $as_nop 9184 xorg_cv_cc_flag_unused_command_line_argument=no 9185fi 9186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9187fi 9188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9189printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9191 CFLAGS="$xorg_testset_save_CFLAGS" 9192fi 9193 9194found="no" 9195 9196 if test $found = "no" ; then 9197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9199 fi 9200 9201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9203 fi 9204 9205 CFLAGS="$CFLAGS -Winit-self" 9206 9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9208printf %s "checking if $CC supports -Winit-self... " >&6; } 9209 cacheid=xorg_cv_cc_flag__Winit_self 9210 if eval test \${$cacheid+y} 9211then : 9212 printf %s "(cached) " >&6 9213else $as_nop 9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9215/* end confdefs.h. */ 9216int i; 9217int 9218main (void) 9219{ 9220 9221 ; 9222 return 0; 9223} 9224_ACEOF 9225if ac_fn_c_try_link "$LINENO" 9226then : 9227 eval $cacheid=yes 9228else $as_nop 9229 eval $cacheid=no 9230fi 9231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9232 conftest$ac_exeext conftest.$ac_ext 9233fi 9234 9235 9236 CFLAGS="$xorg_testset_save_CFLAGS" 9237 9238 eval supported=\$$cacheid 9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9240printf "%s\n" "$supported" >&6; } 9241 if test "$supported" = "yes" ; then 9242 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9243 found="yes" 9244 fi 9245 fi 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261xorg_testset_save_CFLAGS="$CFLAGS" 9262 9263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9266printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9267if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9268then : 9269 printf %s "(cached) " >&6 9270else $as_nop 9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9272/* end confdefs.h. */ 9273int i; 9274_ACEOF 9275if ac_fn_c_try_compile "$LINENO" 9276then : 9277 xorg_cv_cc_flag_unknown_warning_option=yes 9278else $as_nop 9279 xorg_cv_cc_flag_unknown_warning_option=no 9280fi 9281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9282fi 9283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9286 CFLAGS="$xorg_testset_save_CFLAGS" 9287fi 9288 9289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9292 fi 9293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9296if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9297then : 9298 printf %s "(cached) " >&6 9299else $as_nop 9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9301/* end confdefs.h. */ 9302int i; 9303_ACEOF 9304if ac_fn_c_try_compile "$LINENO" 9305then : 9306 xorg_cv_cc_flag_unused_command_line_argument=yes 9307else $as_nop 9308 xorg_cv_cc_flag_unused_command_line_argument=no 9309fi 9310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9311fi 9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9313printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9315 CFLAGS="$xorg_testset_save_CFLAGS" 9316fi 9317 9318found="no" 9319 9320 if test $found = "no" ; then 9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 fi 9324 9325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9327 fi 9328 9329 CFLAGS="$CFLAGS -Wmain" 9330 9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9332printf %s "checking if $CC supports -Wmain... " >&6; } 9333 cacheid=xorg_cv_cc_flag__Wmain 9334 if eval test \${$cacheid+y} 9335then : 9336 printf %s "(cached) " >&6 9337else $as_nop 9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9339/* end confdefs.h. */ 9340int i; 9341int 9342main (void) 9343{ 9344 9345 ; 9346 return 0; 9347} 9348_ACEOF 9349if ac_fn_c_try_link "$LINENO" 9350then : 9351 eval $cacheid=yes 9352else $as_nop 9353 eval $cacheid=no 9354fi 9355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9356 conftest$ac_exeext conftest.$ac_ext 9357fi 9358 9359 9360 CFLAGS="$xorg_testset_save_CFLAGS" 9361 9362 eval supported=\$$cacheid 9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9364printf "%s\n" "$supported" >&6; } 9365 if test "$supported" = "yes" ; then 9366 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9367 found="yes" 9368 fi 9369 fi 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385xorg_testset_save_CFLAGS="$CFLAGS" 9386 9387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9391if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9392then : 9393 printf %s "(cached) " >&6 9394else $as_nop 9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9396/* end confdefs.h. */ 9397int i; 9398_ACEOF 9399if ac_fn_c_try_compile "$LINENO" 9400then : 9401 xorg_cv_cc_flag_unknown_warning_option=yes 9402else $as_nop 9403 xorg_cv_cc_flag_unknown_warning_option=no 9404fi 9405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9406fi 9407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9410 CFLAGS="$xorg_testset_save_CFLAGS" 9411fi 9412 9413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9416 fi 9417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9420if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9421then : 9422 printf %s "(cached) " >&6 9423else $as_nop 9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9425/* end confdefs.h. */ 9426int i; 9427_ACEOF 9428if ac_fn_c_try_compile "$LINENO" 9429then : 9430 xorg_cv_cc_flag_unused_command_line_argument=yes 9431else $as_nop 9432 xorg_cv_cc_flag_unused_command_line_argument=no 9433fi 9434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9435fi 9436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9439 CFLAGS="$xorg_testset_save_CFLAGS" 9440fi 9441 9442found="no" 9443 9444 if test $found = "no" ; then 9445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9447 fi 9448 9449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9451 fi 9452 9453 CFLAGS="$CFLAGS -Wmissing-braces" 9454 9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9456printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9457 cacheid=xorg_cv_cc_flag__Wmissing_braces 9458 if eval test \${$cacheid+y} 9459then : 9460 printf %s "(cached) " >&6 9461else $as_nop 9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9463/* end confdefs.h. */ 9464int i; 9465int 9466main (void) 9467{ 9468 9469 ; 9470 return 0; 9471} 9472_ACEOF 9473if ac_fn_c_try_link "$LINENO" 9474then : 9475 eval $cacheid=yes 9476else $as_nop 9477 eval $cacheid=no 9478fi 9479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9480 conftest$ac_exeext conftest.$ac_ext 9481fi 9482 9483 9484 CFLAGS="$xorg_testset_save_CFLAGS" 9485 9486 eval supported=\$$cacheid 9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9488printf "%s\n" "$supported" >&6; } 9489 if test "$supported" = "yes" ; then 9490 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9491 found="yes" 9492 fi 9493 fi 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509xorg_testset_save_CFLAGS="$CFLAGS" 9510 9511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9514printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9515if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9516then : 9517 printf %s "(cached) " >&6 9518else $as_nop 9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9520/* end confdefs.h. */ 9521int i; 9522_ACEOF 9523if ac_fn_c_try_compile "$LINENO" 9524then : 9525 xorg_cv_cc_flag_unknown_warning_option=yes 9526else $as_nop 9527 xorg_cv_cc_flag_unknown_warning_option=no 9528fi 9529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9530fi 9531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9532printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9534 CFLAGS="$xorg_testset_save_CFLAGS" 9535fi 9536 9537if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9540 fi 9541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9543printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9544if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9545then : 9546 printf %s "(cached) " >&6 9547else $as_nop 9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549/* end confdefs.h. */ 9550int i; 9551_ACEOF 9552if ac_fn_c_try_compile "$LINENO" 9553then : 9554 xorg_cv_cc_flag_unused_command_line_argument=yes 9555else $as_nop 9556 xorg_cv_cc_flag_unused_command_line_argument=no 9557fi 9558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9559fi 9560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9563 CFLAGS="$xorg_testset_save_CFLAGS" 9564fi 9565 9566found="no" 9567 9568 if test $found = "no" ; then 9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9571 fi 9572 9573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9575 fi 9576 9577 CFLAGS="$CFLAGS -Wsequence-point" 9578 9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9580printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9581 cacheid=xorg_cv_cc_flag__Wsequence_point 9582 if eval test \${$cacheid+y} 9583then : 9584 printf %s "(cached) " >&6 9585else $as_nop 9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9587/* end confdefs.h. */ 9588int i; 9589int 9590main (void) 9591{ 9592 9593 ; 9594 return 0; 9595} 9596_ACEOF 9597if ac_fn_c_try_link "$LINENO" 9598then : 9599 eval $cacheid=yes 9600else $as_nop 9601 eval $cacheid=no 9602fi 9603rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9604 conftest$ac_exeext conftest.$ac_ext 9605fi 9606 9607 9608 CFLAGS="$xorg_testset_save_CFLAGS" 9609 9610 eval supported=\$$cacheid 9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9612printf "%s\n" "$supported" >&6; } 9613 if test "$supported" = "yes" ; then 9614 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9615 found="yes" 9616 fi 9617 fi 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633xorg_testset_save_CFLAGS="$CFLAGS" 9634 9635if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9638printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9639if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9640then : 9641 printf %s "(cached) " >&6 9642else $as_nop 9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9644/* end confdefs.h. */ 9645int i; 9646_ACEOF 9647if ac_fn_c_try_compile "$LINENO" 9648then : 9649 xorg_cv_cc_flag_unknown_warning_option=yes 9650else $as_nop 9651 xorg_cv_cc_flag_unknown_warning_option=no 9652fi 9653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9654fi 9655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9656printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9658 CFLAGS="$xorg_testset_save_CFLAGS" 9659fi 9660 9661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 fi 9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9667printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9668if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9669then : 9670 printf %s "(cached) " >&6 9671else $as_nop 9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9673/* end confdefs.h. */ 9674int i; 9675_ACEOF 9676if ac_fn_c_try_compile "$LINENO" 9677then : 9678 xorg_cv_cc_flag_unused_command_line_argument=yes 9679else $as_nop 9680 xorg_cv_cc_flag_unused_command_line_argument=no 9681fi 9682rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9683fi 9684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9685printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9687 CFLAGS="$xorg_testset_save_CFLAGS" 9688fi 9689 9690found="no" 9691 9692 if test $found = "no" ; then 9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9695 fi 9696 9697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9699 fi 9700 9701 CFLAGS="$CFLAGS -Wreturn-type" 9702 9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9704printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9705 cacheid=xorg_cv_cc_flag__Wreturn_type 9706 if eval test \${$cacheid+y} 9707then : 9708 printf %s "(cached) " >&6 9709else $as_nop 9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9711/* end confdefs.h. */ 9712int i; 9713int 9714main (void) 9715{ 9716 9717 ; 9718 return 0; 9719} 9720_ACEOF 9721if ac_fn_c_try_link "$LINENO" 9722then : 9723 eval $cacheid=yes 9724else $as_nop 9725 eval $cacheid=no 9726fi 9727rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9728 conftest$ac_exeext conftest.$ac_ext 9729fi 9730 9731 9732 CFLAGS="$xorg_testset_save_CFLAGS" 9733 9734 eval supported=\$$cacheid 9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9736printf "%s\n" "$supported" >&6; } 9737 if test "$supported" = "yes" ; then 9738 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9739 found="yes" 9740 fi 9741 fi 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757xorg_testset_save_CFLAGS="$CFLAGS" 9758 9759if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9762printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9763if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9764then : 9765 printf %s "(cached) " >&6 9766else $as_nop 9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9768/* end confdefs.h. */ 9769int i; 9770_ACEOF 9771if ac_fn_c_try_compile "$LINENO" 9772then : 9773 xorg_cv_cc_flag_unknown_warning_option=yes 9774else $as_nop 9775 xorg_cv_cc_flag_unknown_warning_option=no 9776fi 9777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9778fi 9779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783fi 9784 9785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 fi 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9793then : 9794 printf %s "(cached) " >&6 9795else $as_nop 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798int i; 9799_ACEOF 9800if ac_fn_c_try_compile "$LINENO" 9801then : 9802 xorg_cv_cc_flag_unused_command_line_argument=yes 9803else $as_nop 9804 xorg_cv_cc_flag_unused_command_line_argument=no 9805fi 9806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9807fi 9808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9809printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9811 CFLAGS="$xorg_testset_save_CFLAGS" 9812fi 9813 9814found="no" 9815 9816 if test $found = "no" ; then 9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9819 fi 9820 9821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9823 fi 9824 9825 CFLAGS="$CFLAGS -Wtrigraphs" 9826 9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9828printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9829 cacheid=xorg_cv_cc_flag__Wtrigraphs 9830 if eval test \${$cacheid+y} 9831then : 9832 printf %s "(cached) " >&6 9833else $as_nop 9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9835/* end confdefs.h. */ 9836int i; 9837int 9838main (void) 9839{ 9840 9841 ; 9842 return 0; 9843} 9844_ACEOF 9845if ac_fn_c_try_link "$LINENO" 9846then : 9847 eval $cacheid=yes 9848else $as_nop 9849 eval $cacheid=no 9850fi 9851rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9852 conftest$ac_exeext conftest.$ac_ext 9853fi 9854 9855 9856 CFLAGS="$xorg_testset_save_CFLAGS" 9857 9858 eval supported=\$$cacheid 9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9860printf "%s\n" "$supported" >&6; } 9861 if test "$supported" = "yes" ; then 9862 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9863 found="yes" 9864 fi 9865 fi 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881xorg_testset_save_CFLAGS="$CFLAGS" 9882 9883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9887if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9888then : 9889 printf %s "(cached) " >&6 9890else $as_nop 9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892/* end confdefs.h. */ 9893int i; 9894_ACEOF 9895if ac_fn_c_try_compile "$LINENO" 9896then : 9897 xorg_cv_cc_flag_unknown_warning_option=yes 9898else $as_nop 9899 xorg_cv_cc_flag_unknown_warning_option=no 9900fi 9901rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9902fi 9903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9904printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9906 CFLAGS="$xorg_testset_save_CFLAGS" 9907fi 9908 9909if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9912 fi 9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9915printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9916if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9917then : 9918 printf %s "(cached) " >&6 9919else $as_nop 9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9921/* end confdefs.h. */ 9922int i; 9923_ACEOF 9924if ac_fn_c_try_compile "$LINENO" 9925then : 9926 xorg_cv_cc_flag_unused_command_line_argument=yes 9927else $as_nop 9928 xorg_cv_cc_flag_unused_command_line_argument=no 9929fi 9930rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9931fi 9932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9933printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9935 CFLAGS="$xorg_testset_save_CFLAGS" 9936fi 9937 9938found="no" 9939 9940 if test $found = "no" ; then 9941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9943 fi 9944 9945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9947 fi 9948 9949 CFLAGS="$CFLAGS -Warray-bounds" 9950 9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9952printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9953 cacheid=xorg_cv_cc_flag__Warray_bounds 9954 if eval test \${$cacheid+y} 9955then : 9956 printf %s "(cached) " >&6 9957else $as_nop 9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9959/* end confdefs.h. */ 9960int i; 9961int 9962main (void) 9963{ 9964 9965 ; 9966 return 0; 9967} 9968_ACEOF 9969if ac_fn_c_try_link "$LINENO" 9970then : 9971 eval $cacheid=yes 9972else $as_nop 9973 eval $cacheid=no 9974fi 9975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9976 conftest$ac_exeext conftest.$ac_ext 9977fi 9978 9979 9980 CFLAGS="$xorg_testset_save_CFLAGS" 9981 9982 eval supported=\$$cacheid 9983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9984printf "%s\n" "$supported" >&6; } 9985 if test "$supported" = "yes" ; then 9986 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9987 found="yes" 9988 fi 9989 fi 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005xorg_testset_save_CFLAGS="$CFLAGS" 10006 10007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10008 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10010printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10011if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10012then : 10013 printf %s "(cached) " >&6 10014else $as_nop 10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10016/* end confdefs.h. */ 10017int i; 10018_ACEOF 10019if ac_fn_c_try_compile "$LINENO" 10020then : 10021 xorg_cv_cc_flag_unknown_warning_option=yes 10022else $as_nop 10023 xorg_cv_cc_flag_unknown_warning_option=no 10024fi 10025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10026fi 10027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10030 CFLAGS="$xorg_testset_save_CFLAGS" 10031fi 10032 10033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10036 fi 10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10040if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10041then : 10042 printf %s "(cached) " >&6 10043else $as_nop 10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10045/* end confdefs.h. */ 10046int i; 10047_ACEOF 10048if ac_fn_c_try_compile "$LINENO" 10049then : 10050 xorg_cv_cc_flag_unused_command_line_argument=yes 10051else $as_nop 10052 xorg_cv_cc_flag_unused_command_line_argument=no 10053fi 10054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10055fi 10056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10057printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10059 CFLAGS="$xorg_testset_save_CFLAGS" 10060fi 10061 10062found="no" 10063 10064 if test $found = "no" ; then 10065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10067 fi 10068 10069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10071 fi 10072 10073 CFLAGS="$CFLAGS -Wwrite-strings" 10074 10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10076printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10077 cacheid=xorg_cv_cc_flag__Wwrite_strings 10078 if eval test \${$cacheid+y} 10079then : 10080 printf %s "(cached) " >&6 10081else $as_nop 10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10083/* end confdefs.h. */ 10084int i; 10085int 10086main (void) 10087{ 10088 10089 ; 10090 return 0; 10091} 10092_ACEOF 10093if ac_fn_c_try_link "$LINENO" 10094then : 10095 eval $cacheid=yes 10096else $as_nop 10097 eval $cacheid=no 10098fi 10099rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10100 conftest$ac_exeext conftest.$ac_ext 10101fi 10102 10103 10104 CFLAGS="$xorg_testset_save_CFLAGS" 10105 10106 eval supported=\$$cacheid 10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10108printf "%s\n" "$supported" >&6; } 10109 if test "$supported" = "yes" ; then 10110 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10111 found="yes" 10112 fi 10113 fi 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129xorg_testset_save_CFLAGS="$CFLAGS" 10130 10131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10135if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10136then : 10137 printf %s "(cached) " >&6 10138else $as_nop 10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10140/* end confdefs.h. */ 10141int i; 10142_ACEOF 10143if ac_fn_c_try_compile "$LINENO" 10144then : 10145 xorg_cv_cc_flag_unknown_warning_option=yes 10146else $as_nop 10147 xorg_cv_cc_flag_unknown_warning_option=no 10148fi 10149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10150fi 10151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10154 CFLAGS="$xorg_testset_save_CFLAGS" 10155fi 10156 10157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10160 fi 10161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10164if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10165then : 10166 printf %s "(cached) " >&6 10167else $as_nop 10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10169/* end confdefs.h. */ 10170int i; 10171_ACEOF 10172if ac_fn_c_try_compile "$LINENO" 10173then : 10174 xorg_cv_cc_flag_unused_command_line_argument=yes 10175else $as_nop 10176 xorg_cv_cc_flag_unused_command_line_argument=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10179fi 10180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10181printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184fi 10185 10186found="no" 10187 10188 if test $found = "no" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10195 fi 10196 10197 CFLAGS="$CFLAGS -Waddress" 10198 10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10200printf %s "checking if $CC supports -Waddress... " >&6; } 10201 cacheid=xorg_cv_cc_flag__Waddress 10202 if eval test \${$cacheid+y} 10203then : 10204 printf %s "(cached) " >&6 10205else $as_nop 10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10207/* end confdefs.h. */ 10208int i; 10209int 10210main (void) 10211{ 10212 10213 ; 10214 return 0; 10215} 10216_ACEOF 10217if ac_fn_c_try_link "$LINENO" 10218then : 10219 eval $cacheid=yes 10220else $as_nop 10221 eval $cacheid=no 10222fi 10223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10224 conftest$ac_exeext conftest.$ac_ext 10225fi 10226 10227 10228 CFLAGS="$xorg_testset_save_CFLAGS" 10229 10230 eval supported=\$$cacheid 10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10232printf "%s\n" "$supported" >&6; } 10233 if test "$supported" = "yes" ; then 10234 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10235 found="yes" 10236 fi 10237 fi 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253xorg_testset_save_CFLAGS="$CFLAGS" 10254 10255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10259if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10260then : 10261 printf %s "(cached) " >&6 10262else $as_nop 10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10264/* end confdefs.h. */ 10265int i; 10266_ACEOF 10267if ac_fn_c_try_compile "$LINENO" 10268then : 10269 xorg_cv_cc_flag_unknown_warning_option=yes 10270else $as_nop 10271 xorg_cv_cc_flag_unknown_warning_option=no 10272fi 10273rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10274fi 10275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10278 CFLAGS="$xorg_testset_save_CFLAGS" 10279fi 10280 10281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10283 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10284 fi 10285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10288if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10289then : 10290 printf %s "(cached) " >&6 10291else $as_nop 10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294int i; 10295_ACEOF 10296if ac_fn_c_try_compile "$LINENO" 10297then : 10298 xorg_cv_cc_flag_unused_command_line_argument=yes 10299else $as_nop 10300 xorg_cv_cc_flag_unused_command_line_argument=no 10301fi 10302rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10303fi 10304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10305printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308fi 10309 10310found="no" 10311 10312 if test $found = "no" ; then 10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10315 fi 10316 10317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10319 fi 10320 10321 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10322 10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10324printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10325 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10326 if eval test \${$cacheid+y} 10327then : 10328 printf %s "(cached) " >&6 10329else $as_nop 10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331/* end confdefs.h. */ 10332int i; 10333int 10334main (void) 10335{ 10336 10337 ; 10338 return 0; 10339} 10340_ACEOF 10341if ac_fn_c_try_link "$LINENO" 10342then : 10343 eval $cacheid=yes 10344else $as_nop 10345 eval $cacheid=no 10346fi 10347rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10348 conftest$ac_exeext conftest.$ac_ext 10349fi 10350 10351 10352 CFLAGS="$xorg_testset_save_CFLAGS" 10353 10354 eval supported=\$$cacheid 10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10356printf "%s\n" "$supported" >&6; } 10357 if test "$supported" = "yes" ; then 10358 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10359 found="yes" 10360 fi 10361 fi 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377xorg_testset_save_CFLAGS="$CFLAGS" 10378 10379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10383if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10384then : 10385 printf %s "(cached) " >&6 10386else $as_nop 10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10388/* end confdefs.h. */ 10389int i; 10390_ACEOF 10391if ac_fn_c_try_compile "$LINENO" 10392then : 10393 xorg_cv_cc_flag_unknown_warning_option=yes 10394else $as_nop 10395 xorg_cv_cc_flag_unknown_warning_option=no 10396fi 10397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10398fi 10399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10402 CFLAGS="$xorg_testset_save_CFLAGS" 10403fi 10404 10405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10408 fi 10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10412if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10413then : 10414 printf %s "(cached) " >&6 10415else $as_nop 10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418int i; 10419_ACEOF 10420if ac_fn_c_try_compile "$LINENO" 10421then : 10422 xorg_cv_cc_flag_unused_command_line_argument=yes 10423else $as_nop 10424 xorg_cv_cc_flag_unused_command_line_argument=no 10425fi 10426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10427fi 10428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10431 CFLAGS="$xorg_testset_save_CFLAGS" 10432fi 10433 10434found="no" 10435 10436 if test $found = "no" ; then 10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10439 fi 10440 10441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10443 fi 10444 10445 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10446 10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10448printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10449 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10450 if eval test \${$cacheid+y} 10451then : 10452 printf %s "(cached) " >&6 10453else $as_nop 10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10455/* end confdefs.h. */ 10456int i; 10457int 10458main (void) 10459{ 10460 10461 ; 10462 return 0; 10463} 10464_ACEOF 10465if ac_fn_c_try_link "$LINENO" 10466then : 10467 eval $cacheid=yes 10468else $as_nop 10469 eval $cacheid=no 10470fi 10471rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10472 conftest$ac_exeext conftest.$ac_ext 10473fi 10474 10475 10476 CFLAGS="$xorg_testset_save_CFLAGS" 10477 10478 eval supported=\$$cacheid 10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10480printf "%s\n" "$supported" >&6; } 10481 if test "$supported" = "yes" ; then 10482 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10483 found="yes" 10484 fi 10485 fi 10486 10487 10488fi 10489 10490 10491 10492 10493 10494 10495 10496 CWARNFLAGS="$BASE_CFLAGS" 10497 if test "x$GCC" = xyes ; then 10498 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10499 fi 10500 10501 10502 10503 10504 10505 10506 10507 10508# Check whether --enable-strict-compilation was given. 10509if test ${enable_strict_compilation+y} 10510then : 10511 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10512else $as_nop 10513 STRICT_COMPILE=no 10514fi 10515 10516 10517 10518 10519 10520 10521STRICT_CFLAGS="" 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535xorg_testset_save_CFLAGS="$CFLAGS" 10536 10537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10540printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10541if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10542then : 10543 printf %s "(cached) " >&6 10544else $as_nop 10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10546/* end confdefs.h. */ 10547int i; 10548_ACEOF 10549if ac_fn_c_try_compile "$LINENO" 10550then : 10551 xorg_cv_cc_flag_unknown_warning_option=yes 10552else $as_nop 10553 xorg_cv_cc_flag_unknown_warning_option=no 10554fi 10555rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10556fi 10557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10558printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10560 CFLAGS="$xorg_testset_save_CFLAGS" 10561fi 10562 10563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10566 fi 10567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10569printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10570if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10571then : 10572 printf %s "(cached) " >&6 10573else $as_nop 10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10575/* end confdefs.h. */ 10576int i; 10577_ACEOF 10578if ac_fn_c_try_compile "$LINENO" 10579then : 10580 xorg_cv_cc_flag_unused_command_line_argument=yes 10581else $as_nop 10582 xorg_cv_cc_flag_unused_command_line_argument=no 10583fi 10584rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10585fi 10586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10587printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10589 CFLAGS="$xorg_testset_save_CFLAGS" 10590fi 10591 10592found="no" 10593 10594 if test $found = "no" ; then 10595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10597 fi 10598 10599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10601 fi 10602 10603 CFLAGS="$CFLAGS -pedantic" 10604 10605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10606printf %s "checking if $CC supports -pedantic... " >&6; } 10607 cacheid=xorg_cv_cc_flag__pedantic 10608 if eval test \${$cacheid+y} 10609then : 10610 printf %s "(cached) " >&6 10611else $as_nop 10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10613/* end confdefs.h. */ 10614int i; 10615int 10616main (void) 10617{ 10618 10619 ; 10620 return 0; 10621} 10622_ACEOF 10623if ac_fn_c_try_link "$LINENO" 10624then : 10625 eval $cacheid=yes 10626else $as_nop 10627 eval $cacheid=no 10628fi 10629rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10630 conftest$ac_exeext conftest.$ac_ext 10631fi 10632 10633 10634 CFLAGS="$xorg_testset_save_CFLAGS" 10635 10636 eval supported=\$$cacheid 10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10638printf "%s\n" "$supported" >&6; } 10639 if test "$supported" = "yes" ; then 10640 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10641 found="yes" 10642 fi 10643 fi 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659xorg_testset_save_CFLAGS="$CFLAGS" 10660 10661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10664printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10665if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10666then : 10667 printf %s "(cached) " >&6 10668else $as_nop 10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10670/* end confdefs.h. */ 10671int i; 10672_ACEOF 10673if ac_fn_c_try_compile "$LINENO" 10674then : 10675 xorg_cv_cc_flag_unknown_warning_option=yes 10676else $as_nop 10677 xorg_cv_cc_flag_unknown_warning_option=no 10678fi 10679rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10680fi 10681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10682printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10684 CFLAGS="$xorg_testset_save_CFLAGS" 10685fi 10686 10687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10690 fi 10691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10693printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10694if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10695then : 10696 printf %s "(cached) " >&6 10697else $as_nop 10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10699/* end confdefs.h. */ 10700int i; 10701_ACEOF 10702if ac_fn_c_try_compile "$LINENO" 10703then : 10704 xorg_cv_cc_flag_unused_command_line_argument=yes 10705else $as_nop 10706 xorg_cv_cc_flag_unused_command_line_argument=no 10707fi 10708rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10709fi 10710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10711printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10713 CFLAGS="$xorg_testset_save_CFLAGS" 10714fi 10715 10716found="no" 10717 10718 if test $found = "no" ; then 10719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10721 fi 10722 10723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10725 fi 10726 10727 CFLAGS="$CFLAGS -Werror" 10728 10729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10730printf %s "checking if $CC supports -Werror... " >&6; } 10731 cacheid=xorg_cv_cc_flag__Werror 10732 if eval test \${$cacheid+y} 10733then : 10734 printf %s "(cached) " >&6 10735else $as_nop 10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10737/* end confdefs.h. */ 10738int i; 10739int 10740main (void) 10741{ 10742 10743 ; 10744 return 0; 10745} 10746_ACEOF 10747if ac_fn_c_try_link "$LINENO" 10748then : 10749 eval $cacheid=yes 10750else $as_nop 10751 eval $cacheid=no 10752fi 10753rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10754 conftest$ac_exeext conftest.$ac_ext 10755fi 10756 10757 10758 CFLAGS="$xorg_testset_save_CFLAGS" 10759 10760 eval supported=\$$cacheid 10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10762printf "%s\n" "$supported" >&6; } 10763 if test "$supported" = "yes" ; then 10764 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10765 found="yes" 10766 fi 10767 fi 10768 10769 if test $found = "no" ; then 10770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10772 fi 10773 10774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10776 fi 10777 10778 CFLAGS="$CFLAGS -errwarn" 10779 10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10781printf %s "checking if $CC supports -errwarn... " >&6; } 10782 cacheid=xorg_cv_cc_flag__errwarn 10783 if eval test \${$cacheid+y} 10784then : 10785 printf %s "(cached) " >&6 10786else $as_nop 10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10788/* end confdefs.h. */ 10789int i; 10790int 10791main (void) 10792{ 10793 10794 ; 10795 return 0; 10796} 10797_ACEOF 10798if ac_fn_c_try_link "$LINENO" 10799then : 10800 eval $cacheid=yes 10801else $as_nop 10802 eval $cacheid=no 10803fi 10804rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10805 conftest$ac_exeext conftest.$ac_ext 10806fi 10807 10808 10809 CFLAGS="$xorg_testset_save_CFLAGS" 10810 10811 eval supported=\$$cacheid 10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10813printf "%s\n" "$supported" >&6; } 10814 if test "$supported" = "yes" ; then 10815 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10816 found="yes" 10817 fi 10818 fi 10819 10820 10821 10822# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10823# activate it with -Werror, so we add it here explicitly. 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837xorg_testset_save_CFLAGS="$CFLAGS" 10838 10839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10840 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10842printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10843if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10844then : 10845 printf %s "(cached) " >&6 10846else $as_nop 10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10848/* end confdefs.h. */ 10849int i; 10850_ACEOF 10851if ac_fn_c_try_compile "$LINENO" 10852then : 10853 xorg_cv_cc_flag_unknown_warning_option=yes 10854else $as_nop 10855 xorg_cv_cc_flag_unknown_warning_option=no 10856fi 10857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10858fi 10859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10860printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10862 CFLAGS="$xorg_testset_save_CFLAGS" 10863fi 10864 10865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10867 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10868 fi 10869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10871printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10872if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10873then : 10874 printf %s "(cached) " >&6 10875else $as_nop 10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10877/* end confdefs.h. */ 10878int i; 10879_ACEOF 10880if ac_fn_c_try_compile "$LINENO" 10881then : 10882 xorg_cv_cc_flag_unused_command_line_argument=yes 10883else $as_nop 10884 xorg_cv_cc_flag_unused_command_line_argument=no 10885fi 10886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10887fi 10888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10889printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10891 CFLAGS="$xorg_testset_save_CFLAGS" 10892fi 10893 10894found="no" 10895 10896 if test $found = "no" ; then 10897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10899 fi 10900 10901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10903 fi 10904 10905 CFLAGS="$CFLAGS -Werror=attributes" 10906 10907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10908printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10909 cacheid=xorg_cv_cc_flag__Werror_attributes 10910 if eval test \${$cacheid+y} 10911then : 10912 printf %s "(cached) " >&6 10913else $as_nop 10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10915/* end confdefs.h. */ 10916int i; 10917int 10918main (void) 10919{ 10920 10921 ; 10922 return 0; 10923} 10924_ACEOF 10925if ac_fn_c_try_link "$LINENO" 10926then : 10927 eval $cacheid=yes 10928else $as_nop 10929 eval $cacheid=no 10930fi 10931rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10932 conftest$ac_exeext conftest.$ac_ext 10933fi 10934 10935 10936 CFLAGS="$xorg_testset_save_CFLAGS" 10937 10938 eval supported=\$$cacheid 10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10940printf "%s\n" "$supported" >&6; } 10941 if test "$supported" = "yes" ; then 10942 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10943 found="yes" 10944 fi 10945 fi 10946 10947 10948 10949if test "x$STRICT_COMPILE" = "xyes"; then 10950 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10951 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10952fi 10953 10954 10955 10956 10957 10958 10959cat >>confdefs.h <<_ACEOF 10960#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10961_ACEOF 10962 10963 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10964 if test "x$PVM" = "x"; then 10965 PVM="0" 10966 fi 10967 10968printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10969 10970 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10971 if test "x$PVP" = "x"; then 10972 PVP="0" 10973 fi 10974 10975printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10976 10977 10978 10979CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10980mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10981|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10982touch \$(top_srcdir)/ChangeLog; \ 10983echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10984 10985 10986 10987 10988macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10989INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10990mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10991|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 10992touch \$(top_srcdir)/INSTALL; \ 10993echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 10994 10995 10996 10997 10998 10999 11000case $host_os in 11001 solaris*) 11002 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11003 # check for a man page file found in later versions that use 11004 # traditional section numbers instead 11005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11006printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11007if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11008then : 11009 printf %s "(cached) " >&6 11010else $as_nop 11011 test "$cross_compiling" = yes && 11012 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11013if test -r "/usr/share/man/man7/attributes.7"; then 11014 ac_cv_file__usr_share_man_man7_attributes_7=yes 11015else 11016 ac_cv_file__usr_share_man_man7_attributes_7=no 11017fi 11018fi 11019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11020printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11021if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11022then : 11023 SYSV_MAN_SECTIONS=false 11024else $as_nop 11025 SYSV_MAN_SECTIONS=true 11026fi 11027 11028 ;; 11029 *) SYSV_MAN_SECTIONS=false ;; 11030esac 11031 11032if test x$APP_MAN_SUFFIX = x ; then 11033 APP_MAN_SUFFIX=1 11034fi 11035if test x$APP_MAN_DIR = x ; then 11036 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11037fi 11038 11039if test x$LIB_MAN_SUFFIX = x ; then 11040 LIB_MAN_SUFFIX=3 11041fi 11042if test x$LIB_MAN_DIR = x ; then 11043 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11044fi 11045 11046if test x$FILE_MAN_SUFFIX = x ; then 11047 case $SYSV_MAN_SECTIONS in 11048 true) FILE_MAN_SUFFIX=4 ;; 11049 *) FILE_MAN_SUFFIX=5 ;; 11050 esac 11051fi 11052if test x$FILE_MAN_DIR = x ; then 11053 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11054fi 11055 11056if test x$MISC_MAN_SUFFIX = x ; then 11057 case $SYSV_MAN_SECTIONS in 11058 true) MISC_MAN_SUFFIX=5 ;; 11059 *) MISC_MAN_SUFFIX=7 ;; 11060 esac 11061fi 11062if test x$MISC_MAN_DIR = x ; then 11063 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11064fi 11065 11066if test x$DRIVER_MAN_SUFFIX = x ; then 11067 case $SYSV_MAN_SECTIONS in 11068 true) DRIVER_MAN_SUFFIX=7 ;; 11069 *) DRIVER_MAN_SUFFIX=4 ;; 11070 esac 11071fi 11072if test x$DRIVER_MAN_DIR = x ; then 11073 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11074fi 11075 11076if test x$ADMIN_MAN_SUFFIX = x ; then 11077 case $SYSV_MAN_SECTIONS in 11078 true) ADMIN_MAN_SUFFIX=1m ;; 11079 *) ADMIN_MAN_SUFFIX=8 ;; 11080 esac 11081fi 11082if test x$ADMIN_MAN_DIR = x ; then 11083 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11084fi 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100XORG_MAN_PAGE="X Version 11" 11101 11102MAN_SUBSTS="\ 11103 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11104 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11105 -e 's|__xservername__|Xorg|g' \ 11106 -e 's|__xconfigfile__|xorg.conf|g' \ 11107 -e 's|__projectroot__|\$(prefix)|g' \ 11108 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11109 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11110 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11111 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11112 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11113 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11114 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11115 11116 11117 11118# Check whether --enable-silent-rules was given. 11119if test ${enable_silent_rules+y} 11120then : 11121 enableval=$enable_silent_rules; 11122fi 11123 11124case $enable_silent_rules in # ((( 11125 yes) AM_DEFAULT_VERBOSITY=0;; 11126 no) AM_DEFAULT_VERBOSITY=1;; 11127 *) AM_DEFAULT_VERBOSITY=0;; 11128esac 11129am_make=${MAKE-make} 11130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11131printf %s "checking whether $am_make supports nested variables... " >&6; } 11132if test ${am_cv_make_support_nested_variables+y} 11133then : 11134 printf %s "(cached) " >&6 11135else $as_nop 11136 if printf "%s\n" 'TRUE=$(BAR$(V)) 11137BAR0=false 11138BAR1=true 11139V=1 11140am__doit: 11141 @$(TRUE) 11142.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11143 am_cv_make_support_nested_variables=yes 11144else 11145 am_cv_make_support_nested_variables=no 11146fi 11147fi 11148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11149printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11150if test $am_cv_make_support_nested_variables = yes; then 11151 AM_V='$(V)' 11152 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11153else 11154 AM_V=$AM_DEFAULT_VERBOSITY 11155 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11156fi 11157AM_BACKSLASH='\' 11158 11159 11160 11161ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 11162if test "x$ac_cv_func_nanosleep" = xyes 11163then : 11164 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 11165 11166fi 11167ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 11168if test "x$ac_cv_func_poll" = xyes 11169then : 11170 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 11171 11172fi 11173ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 11174if test "x$ac_cv_func_select" = xyes 11175then : 11176 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h 11177 11178fi 11179 11180 11181# Math libraries & functions 11182# - some compilers use builtin inlines for floor 11183# - lrint() is a C99 addition not found on some older systems 11184# - must do the libm check first so that the lrint check will have it in $LIBS 11185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5 11186printf %s "checking for library containing floor... " >&6; } 11187if test ${ac_cv_search_floor+y} 11188then : 11189 printf %s "(cached) " >&6 11190else $as_nop 11191 ac_func_search_save_LIBS=$LIBS 11192cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11193/* end confdefs.h. */ 11194 11195/* Override any GCC internal prototype to avoid an error. 11196 Use char because int might match the return type of a GCC 11197 builtin and then its argument prototype would still apply. */ 11198char floor (); 11199int 11200main (void) 11201{ 11202return floor (); 11203 ; 11204 return 0; 11205} 11206_ACEOF 11207for ac_lib in '' m 11208do 11209 if test -z "$ac_lib"; then 11210 ac_res="none required" 11211 else 11212 ac_res=-l$ac_lib 11213 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11214 fi 11215 if ac_fn_c_try_link "$LINENO" 11216then : 11217 ac_cv_search_floor=$ac_res 11218fi 11219rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11220 conftest$ac_exeext 11221 if test ${ac_cv_search_floor+y} 11222then : 11223 break 11224fi 11225done 11226if test ${ac_cv_search_floor+y} 11227then : 11228 11229else $as_nop 11230 ac_cv_search_floor=no 11231fi 11232rm conftest.$ac_ext 11233LIBS=$ac_func_search_save_LIBS 11234fi 11235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5 11236printf "%s\n" "$ac_cv_search_floor" >&6; } 11237ac_res=$ac_cv_search_floor 11238if test "$ac_res" != no 11239then : 11240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11241 11242fi 11243 11244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5 11245printf %s "checking for library containing lrint... " >&6; } 11246if test ${ac_cv_search_lrint+y} 11247then : 11248 printf %s "(cached) " >&6 11249else $as_nop 11250 ac_func_search_save_LIBS=$LIBS 11251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11252/* end confdefs.h. */ 11253 11254/* Override any GCC internal prototype to avoid an error. 11255 Use char because int might match the return type of a GCC 11256 builtin and then its argument prototype would still apply. */ 11257char lrint (); 11258int 11259main (void) 11260{ 11261return lrint (); 11262 ; 11263 return 0; 11264} 11265_ACEOF 11266for ac_lib in '' m 11267do 11268 if test -z "$ac_lib"; then 11269 ac_res="none required" 11270 else 11271 ac_res=-l$ac_lib 11272 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11273 fi 11274 if ac_fn_c_try_link "$LINENO" 11275then : 11276 ac_cv_search_lrint=$ac_res 11277fi 11278rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11279 conftest$ac_exeext 11280 if test ${ac_cv_search_lrint+y} 11281then : 11282 break 11283fi 11284done 11285if test ${ac_cv_search_lrint+y} 11286then : 11287 11288else $as_nop 11289 ac_cv_search_lrint=no 11290fi 11291rm conftest.$ac_ext 11292LIBS=$ac_func_search_save_LIBS 11293fi 11294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5 11295printf "%s\n" "$ac_cv_search_lrint" >&6; } 11296ac_res=$ac_cv_search_lrint 11297if test "$ac_res" != no 11298then : 11299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11300 11301fi 11302 11303ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint" 11304if test "x$ac_cv_func_lrint" = xyes 11305then : 11306 printf "%s\n" "#define HAVE_LRINT 1" >>confdefs.h 11307 11308fi 11309 11310 11311# Checks for pkg-config packages 11312 11313pkg_failed=no 11314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMAG" >&5 11315printf %s "checking for XMAG... " >&6; } 11316 11317if test -n "$XMAG_CFLAGS"; then 11318 pkg_cv_XMAG_CFLAGS="$XMAG_CFLAGS" 11319 elif test -n "$PKG_CONFIG"; then 11320 if test -n "$PKG_CONFIG" && \ 11321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 11322 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 11323 ac_status=$? 11324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11325 test $ac_status = 0; }; then 11326 pkg_cv_XMAG_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null` 11327 test "x$?" != "x0" && pkg_failed=yes 11328else 11329 pkg_failed=yes 11330fi 11331 else 11332 pkg_failed=untried 11333fi 11334if test -n "$XMAG_LIBS"; then 11335 pkg_cv_XMAG_LIBS="$XMAG_LIBS" 11336 elif test -n "$PKG_CONFIG"; then 11337 if test -n "$PKG_CONFIG" && \ 11338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5 11339 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5 11340 ac_status=$? 11341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11342 test $ac_status = 0; }; then 11343 pkg_cv_XMAG_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null` 11344 test "x$?" != "x0" && pkg_failed=yes 11345else 11346 pkg_failed=yes 11347fi 11348 else 11349 pkg_failed=untried 11350fi 11351 11352 11353 11354if test $pkg_failed = yes; then 11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11356printf "%s\n" "no" >&6; } 11357 11358if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11359 _pkg_short_errors_supported=yes 11360else 11361 _pkg_short_errors_supported=no 11362fi 11363 if test $_pkg_short_errors_supported = yes; then 11364 XMAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1` 11365 else 11366 XMAG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1` 11367 fi 11368 # Put the nasty error message in config.log where it belongs 11369 echo "$XMAG_PKG_ERRORS" >&5 11370 11371 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met: 11372 11373$XMAG_PKG_ERRORS 11374 11375Consider adjusting the PKG_CONFIG_PATH environment variable if you 11376installed software in a non-standard prefix. 11377 11378Alternatively, you may set the environment variables XMAG_CFLAGS 11379and XMAG_LIBS to avoid the need to call pkg-config. 11380See the pkg-config man page for more details." "$LINENO" 5 11381elif test $pkg_failed = untried; then 11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11383printf "%s\n" "no" >&6; } 11384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11385printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11386as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11387is in your PATH or set the PKG_CONFIG environment variable to the full 11388path to pkg-config. 11389 11390Alternatively, you may set the environment variables XMAG_CFLAGS 11391and XMAG_LIBS to avoid the need to call pkg-config. 11392See the pkg-config man page for more details. 11393 11394To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11395See \`config.log' for more details" "$LINENO" 5; } 11396else 11397 XMAG_CFLAGS=$pkg_cv_XMAG_CFLAGS 11398 XMAG_LIBS=$pkg_cv_XMAG_LIBS 11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11400printf "%s\n" "yes" >&6; } 11401 11402fi 11403 11404xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11405 11406# Check whether --with-appdefaultdir was given. 11407if test ${with_appdefaultdir+y} 11408then : 11409 withval=$with_appdefaultdir; appdefaultdir="$withval" 11410else $as_nop 11411 appdefaultdir="${xt_appdefaultdir}" 11412fi 11413 11414 11415 11416 11417ac_config_files="$ac_config_files Makefile man/Makefile" 11418 11419cat >confcache <<\_ACEOF 11420# This file is a shell script that caches the results of configure 11421# tests run on this system so they can be shared between configure 11422# scripts and configure runs, see configure's option --config-cache. 11423# It is not useful on other systems. If it contains results you don't 11424# want to keep, you may remove or edit it. 11425# 11426# config.status only pays attention to the cache file if you give it 11427# the --recheck option to rerun configure. 11428# 11429# `ac_cv_env_foo' variables (set or unset) will be overridden when 11430# loading this file, other *unset* `ac_cv_foo' will be assigned the 11431# following values. 11432 11433_ACEOF 11434 11435# The following way of writing the cache mishandles newlines in values, 11436# but we know of no workaround that is simple, portable, and efficient. 11437# So, we kill variables containing newlines. 11438# Ultrix sh set writes to stderr and can't be redirected directly, 11439# and sets the high bit in the cache file unless we assign to the vars. 11440( 11441 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11442 eval ac_val=\$$ac_var 11443 case $ac_val in #( 11444 *${as_nl}*) 11445 case $ac_var in #( 11446 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11447printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11448 esac 11449 case $ac_var in #( 11450 _ | IFS | as_nl) ;; #( 11451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11452 *) { eval $ac_var=; unset $ac_var;} ;; 11453 esac ;; 11454 esac 11455 done 11456 11457 (set) 2>&1 | 11458 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11459 *${as_nl}ac_space=\ *) 11460 # `set' does not quote correctly, so add quotes: double-quote 11461 # substitution turns \\\\ into \\, and sed turns \\ into \. 11462 sed -n \ 11463 "s/'/'\\\\''/g; 11464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11465 ;; #( 11466 *) 11467 # `set' quotes correctly as required by POSIX, so do not add quotes. 11468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11469 ;; 11470 esac | 11471 sort 11472) | 11473 sed ' 11474 /^ac_cv_env_/b end 11475 t clear 11476 :clear 11477 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11478 t end 11479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11480 :end' >>confcache 11481if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11482 if test -w "$cache_file"; then 11483 if test "x$cache_file" != "x/dev/null"; then 11484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11485printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11486 if test ! -f "$cache_file" || test -h "$cache_file"; then 11487 cat confcache >"$cache_file" 11488 else 11489 case $cache_file in #( 11490 */* | ?:*) 11491 mv -f confcache "$cache_file"$$ && 11492 mv -f "$cache_file"$$ "$cache_file" ;; #( 11493 *) 11494 mv -f confcache "$cache_file" ;; 11495 esac 11496 fi 11497 fi 11498 else 11499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11500printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11501 fi 11502fi 11503rm -f confcache 11504 11505test "x$prefix" = xNONE && prefix=$ac_default_prefix 11506# Let make expand exec_prefix. 11507test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11508 11509DEFS=-DHAVE_CONFIG_H 11510 11511ac_libobjs= 11512ac_ltlibobjs= 11513U= 11514for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11515 # 1. Remove the extension, and $U if already installed. 11516 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11517 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11518 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11519 # will be set to the directory where LIBOBJS objects are built. 11520 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11521 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11522done 11523LIBOBJS=$ac_libobjs 11524 11525LTLIBOBJS=$ac_ltlibobjs 11526 11527 11528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11529printf %s "checking that generated files are newer than configure... " >&6; } 11530 if test -n "$am_sleep_pid"; then 11531 # Hide warnings about reused PIDs. 11532 wait $am_sleep_pid 2>/dev/null 11533 fi 11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11535printf "%s\n" "done" >&6; } 11536 if test -n "$EXEEXT"; then 11537 am__EXEEXT_TRUE= 11538 am__EXEEXT_FALSE='#' 11539else 11540 am__EXEEXT_TRUE='#' 11541 am__EXEEXT_FALSE= 11542fi 11543 11544if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11545 as_fn_error $? "conditional \"AMDEP\" was never defined. 11546Usually this means the macro was only invoked conditionally." "$LINENO" 5 11547fi 11548if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11549 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11550Usually this means the macro was only invoked conditionally." "$LINENO" 5 11551fi 11552 11553: "${CONFIG_STATUS=./config.status}" 11554ac_write_fail=0 11555ac_clean_files_save=$ac_clean_files 11556ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11558printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11559as_write_fail=0 11560cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11561#! $SHELL 11562# Generated by $as_me. 11563# Run this file to recreate the current configuration. 11564# Compiler output produced by configure, useful for debugging 11565# configure, is in config.log if it exists. 11566 11567debug=false 11568ac_cs_recheck=false 11569ac_cs_silent=false 11570 11571SHELL=\${CONFIG_SHELL-$SHELL} 11572export SHELL 11573_ASEOF 11574cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11575## -------------------- ## 11576## M4sh Initialization. ## 11577## -------------------- ## 11578 11579# Be more Bourne compatible 11580DUALCASE=1; export DUALCASE # for MKS sh 11581as_nop=: 11582if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11583then : 11584 emulate sh 11585 NULLCMD=: 11586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11587 # is contrary to our usage. Disable this feature. 11588 alias -g '${1+"$@"}'='"$@"' 11589 setopt NO_GLOB_SUBST 11590else $as_nop 11591 case `(set -o) 2>/dev/null` in #( 11592 *posix*) : 11593 set -o posix ;; #( 11594 *) : 11595 ;; 11596esac 11597fi 11598 11599 11600 11601# Reset variables that may have inherited troublesome values from 11602# the environment. 11603 11604# IFS needs to be set, to space, tab, and newline, in precisely that order. 11605# (If _AS_PATH_WALK were called with IFS unset, it would have the 11606# side effect of setting IFS to empty, thus disabling word splitting.) 11607# Quoting is to prevent editors from complaining about space-tab. 11608as_nl=' 11609' 11610export as_nl 11611IFS=" "" $as_nl" 11612 11613PS1='$ ' 11614PS2='> ' 11615PS4='+ ' 11616 11617# Ensure predictable behavior from utilities with locale-dependent output. 11618LC_ALL=C 11619export LC_ALL 11620LANGUAGE=C 11621export LANGUAGE 11622 11623# We cannot yet rely on "unset" to work, but we need these variables 11624# to be unset--not just set to an empty or harmless value--now, to 11625# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11626# also avoids known problems related to "unset" and subshell syntax 11627# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11628for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11629do eval test \${$as_var+y} \ 11630 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11631done 11632 11633# Ensure that fds 0, 1, and 2 are open. 11634if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11635if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11636if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11637 11638# The user is always right. 11639if ${PATH_SEPARATOR+false} :; then 11640 PATH_SEPARATOR=: 11641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11643 PATH_SEPARATOR=';' 11644 } 11645fi 11646 11647 11648# Find who we are. Look in the path if we contain no directory separator. 11649as_myself= 11650case $0 in #(( 11651 *[\\/]* ) as_myself=$0 ;; 11652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11653for as_dir in $PATH 11654do 11655 IFS=$as_save_IFS 11656 case $as_dir in #((( 11657 '') as_dir=./ ;; 11658 */) ;; 11659 *) as_dir=$as_dir/ ;; 11660 esac 11661 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11662 done 11663IFS=$as_save_IFS 11664 11665 ;; 11666esac 11667# We did not find ourselves, most probably we were run as `sh COMMAND' 11668# in which case we are not to be found in the path. 11669if test "x$as_myself" = x; then 11670 as_myself=$0 11671fi 11672if test ! -f "$as_myself"; then 11673 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11674 exit 1 11675fi 11676 11677 11678 11679# as_fn_error STATUS ERROR [LINENO LOG_FD] 11680# ---------------------------------------- 11681# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11682# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11683# script with STATUS, using 1 if that was 0. 11684as_fn_error () 11685{ 11686 as_status=$1; test $as_status -eq 0 && as_status=1 11687 if test "$4"; then 11688 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11690 fi 11691 printf "%s\n" "$as_me: error: $2" >&2 11692 as_fn_exit $as_status 11693} # as_fn_error 11694 11695 11696 11697# as_fn_set_status STATUS 11698# ----------------------- 11699# Set $? to STATUS, without forking. 11700as_fn_set_status () 11701{ 11702 return $1 11703} # as_fn_set_status 11704 11705# as_fn_exit STATUS 11706# ----------------- 11707# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11708as_fn_exit () 11709{ 11710 set +e 11711 as_fn_set_status $1 11712 exit $1 11713} # as_fn_exit 11714 11715# as_fn_unset VAR 11716# --------------- 11717# Portably unset VAR. 11718as_fn_unset () 11719{ 11720 { eval $1=; unset $1;} 11721} 11722as_unset=as_fn_unset 11723 11724# as_fn_append VAR VALUE 11725# ---------------------- 11726# Append the text in VALUE to the end of the definition contained in VAR. Take 11727# advantage of any shell optimizations that allow amortized linear growth over 11728# repeated appends, instead of the typical quadratic growth present in naive 11729# implementations. 11730if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11731then : 11732 eval 'as_fn_append () 11733 { 11734 eval $1+=\$2 11735 }' 11736else $as_nop 11737 as_fn_append () 11738 { 11739 eval $1=\$$1\$2 11740 } 11741fi # as_fn_append 11742 11743# as_fn_arith ARG... 11744# ------------------ 11745# Perform arithmetic evaluation on the ARGs, and store the result in the 11746# global $as_val. Take advantage of shells that can avoid forks. The arguments 11747# must be portable across $(()) and expr. 11748if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11749then : 11750 eval 'as_fn_arith () 11751 { 11752 as_val=$(( $* )) 11753 }' 11754else $as_nop 11755 as_fn_arith () 11756 { 11757 as_val=`expr "$@" || test $? -eq 1` 11758 } 11759fi # as_fn_arith 11760 11761 11762if expr a : '\(a\)' >/dev/null 2>&1 && 11763 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11764 as_expr=expr 11765else 11766 as_expr=false 11767fi 11768 11769if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11770 as_basename=basename 11771else 11772 as_basename=false 11773fi 11774 11775if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11776 as_dirname=dirname 11777else 11778 as_dirname=false 11779fi 11780 11781as_me=`$as_basename -- "$0" || 11782$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11783 X"$0" : 'X\(//\)$' \| \ 11784 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11785printf "%s\n" X/"$0" | 11786 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11787 s//\1/ 11788 q 11789 } 11790 /^X\/\(\/\/\)$/{ 11791 s//\1/ 11792 q 11793 } 11794 /^X\/\(\/\).*/{ 11795 s//\1/ 11796 q 11797 } 11798 s/.*/./; q'` 11799 11800# Avoid depending upon Character Ranges. 11801as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11802as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11803as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11804as_cr_digits='0123456789' 11805as_cr_alnum=$as_cr_Letters$as_cr_digits 11806 11807 11808# Determine whether it's possible to make 'echo' print without a newline. 11809# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11810# for compatibility with existing Makefiles. 11811ECHO_C= ECHO_N= ECHO_T= 11812case `echo -n x` in #((((( 11813-n*) 11814 case `echo 'xy\c'` in 11815 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11816 xy) ECHO_C='\c';; 11817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11818 ECHO_T=' ';; 11819 esac;; 11820*) 11821 ECHO_N='-n';; 11822esac 11823 11824# For backward compatibility with old third-party macros, we provide 11825# the shell variables $as_echo and $as_echo_n. New code should use 11826# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11827as_echo='printf %s\n' 11828as_echo_n='printf %s' 11829 11830rm -f conf$$ conf$$.exe conf$$.file 11831if test -d conf$$.dir; then 11832 rm -f conf$$.dir/conf$$.file 11833else 11834 rm -f conf$$.dir 11835 mkdir conf$$.dir 2>/dev/null 11836fi 11837if (echo >conf$$.file) 2>/dev/null; then 11838 if ln -s conf$$.file conf$$ 2>/dev/null; then 11839 as_ln_s='ln -s' 11840 # ... but there are two gotchas: 11841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11843 # In both cases, we have to default to `cp -pR'. 11844 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11845 as_ln_s='cp -pR' 11846 elif ln conf$$.file conf$$ 2>/dev/null; then 11847 as_ln_s=ln 11848 else 11849 as_ln_s='cp -pR' 11850 fi 11851else 11852 as_ln_s='cp -pR' 11853fi 11854rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11855rmdir conf$$.dir 2>/dev/null 11856 11857 11858# as_fn_mkdir_p 11859# ------------- 11860# Create "$as_dir" as a directory, including parents if necessary. 11861as_fn_mkdir_p () 11862{ 11863 11864 case $as_dir in #( 11865 -*) as_dir=./$as_dir;; 11866 esac 11867 test -d "$as_dir" || eval $as_mkdir_p || { 11868 as_dirs= 11869 while :; do 11870 case $as_dir in #( 11871 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11872 *) as_qdir=$as_dir;; 11873 esac 11874 as_dirs="'$as_qdir' $as_dirs" 11875 as_dir=`$as_dirname -- "$as_dir" || 11876$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11877 X"$as_dir" : 'X\(//\)[^/]' \| \ 11878 X"$as_dir" : 'X\(//\)$' \| \ 11879 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11880printf "%s\n" X"$as_dir" | 11881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11882 s//\1/ 11883 q 11884 } 11885 /^X\(\/\/\)[^/].*/{ 11886 s//\1/ 11887 q 11888 } 11889 /^X\(\/\/\)$/{ 11890 s//\1/ 11891 q 11892 } 11893 /^X\(\/\).*/{ 11894 s//\1/ 11895 q 11896 } 11897 s/.*/./; q'` 11898 test -d "$as_dir" && break 11899 done 11900 test -z "$as_dirs" || eval "mkdir $as_dirs" 11901 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11902 11903 11904} # as_fn_mkdir_p 11905if mkdir -p . 2>/dev/null; then 11906 as_mkdir_p='mkdir -p "$as_dir"' 11907else 11908 test -d ./-p && rmdir ./-p 11909 as_mkdir_p=false 11910fi 11911 11912 11913# as_fn_executable_p FILE 11914# ----------------------- 11915# Test if FILE is an executable regular file. 11916as_fn_executable_p () 11917{ 11918 test -f "$1" && test -x "$1" 11919} # as_fn_executable_p 11920as_test_x='test -x' 11921as_executable_p=as_fn_executable_p 11922 11923# Sed expression to map a string onto a valid CPP name. 11924as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11925 11926# Sed expression to map a string onto a valid variable name. 11927as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11928 11929 11930exec 6>&1 11931## ----------------------------------- ## 11932## Main body of $CONFIG_STATUS script. ## 11933## ----------------------------------- ## 11934_ASEOF 11935test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11936 11937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11938# Save the log message, to keep $0 and so on meaningful, and to 11939# report actual input values of CONFIG_FILES etc. instead of their 11940# values after options handling. 11941ac_log=" 11942This file was extended by xmag $as_me 1.0.7, which was 11943generated by GNU Autoconf 2.71. Invocation command line was 11944 11945 CONFIG_FILES = $CONFIG_FILES 11946 CONFIG_HEADERS = $CONFIG_HEADERS 11947 CONFIG_LINKS = $CONFIG_LINKS 11948 CONFIG_COMMANDS = $CONFIG_COMMANDS 11949 $ $0 $@ 11950 11951on `(hostname || uname -n) 2>/dev/null | sed 1q` 11952" 11953 11954_ACEOF 11955 11956case $ac_config_files in *" 11957"*) set x $ac_config_files; shift; ac_config_files=$*;; 11958esac 11959 11960case $ac_config_headers in *" 11961"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11962esac 11963 11964 11965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11966# Files that config.status was made for. 11967config_files="$ac_config_files" 11968config_headers="$ac_config_headers" 11969config_commands="$ac_config_commands" 11970 11971_ACEOF 11972 11973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11974ac_cs_usage="\ 11975\`$as_me' instantiates files and other configuration actions 11976from templates according to the current configuration. Unless the files 11977and actions are specified as TAGs, all are instantiated by default. 11978 11979Usage: $0 [OPTION]... [TAG]... 11980 11981 -h, --help print this help, then exit 11982 -V, --version print version number and configuration settings, then exit 11983 --config print configuration, then exit 11984 -q, --quiet, --silent 11985 do not print progress messages 11986 -d, --debug don't remove temporary files 11987 --recheck update $as_me by reconfiguring in the same conditions 11988 --file=FILE[:TEMPLATE] 11989 instantiate the configuration file FILE 11990 --header=FILE[:TEMPLATE] 11991 instantiate the configuration header FILE 11992 11993Configuration files: 11994$config_files 11995 11996Configuration headers: 11997$config_headers 11998 11999Configuration commands: 12000$config_commands 12001 12002Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/issues>." 12003 12004_ACEOF 12005ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12006ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12008ac_cs_config='$ac_cs_config_escaped' 12009ac_cs_version="\\ 12010xmag config.status 1.0.7 12011configured by $0, generated by GNU Autoconf 2.71, 12012 with options \\"\$ac_cs_config\\" 12013 12014Copyright (C) 2021 Free Software Foundation, Inc. 12015This config.status script is free software; the Free Software Foundation 12016gives unlimited permission to copy, distribute and modify it." 12017 12018ac_pwd='$ac_pwd' 12019srcdir='$srcdir' 12020INSTALL='$INSTALL' 12021MKDIR_P='$MKDIR_P' 12022AWK='$AWK' 12023test -n "\$AWK" || AWK=awk 12024_ACEOF 12025 12026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12027# The default lists apply if the user does not specify any file. 12028ac_need_defaults=: 12029while test $# != 0 12030do 12031 case $1 in 12032 --*=?*) 12033 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12035 ac_shift=: 12036 ;; 12037 --*=) 12038 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12039 ac_optarg= 12040 ac_shift=: 12041 ;; 12042 *) 12043 ac_option=$1 12044 ac_optarg=$2 12045 ac_shift=shift 12046 ;; 12047 esac 12048 12049 case $ac_option in 12050 # Handling of the options. 12051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12052 ac_cs_recheck=: ;; 12053 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12054 printf "%s\n" "$ac_cs_version"; exit ;; 12055 --config | --confi | --conf | --con | --co | --c ) 12056 printf "%s\n" "$ac_cs_config"; exit ;; 12057 --debug | --debu | --deb | --de | --d | -d ) 12058 debug=: ;; 12059 --file | --fil | --fi | --f ) 12060 $ac_shift 12061 case $ac_optarg in 12062 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12063 '') as_fn_error $? "missing file argument" ;; 12064 esac 12065 as_fn_append CONFIG_FILES " '$ac_optarg'" 12066 ac_need_defaults=false;; 12067 --header | --heade | --head | --hea ) 12068 $ac_shift 12069 case $ac_optarg in 12070 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12071 esac 12072 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12073 ac_need_defaults=false;; 12074 --he | --h) 12075 # Conflict between --help and --header 12076 as_fn_error $? "ambiguous option: \`$1' 12077Try \`$0 --help' for more information.";; 12078 --help | --hel | -h ) 12079 printf "%s\n" "$ac_cs_usage"; exit ;; 12080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12081 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12082 ac_cs_silent=: ;; 12083 12084 # This is an error. 12085 -*) as_fn_error $? "unrecognized option: \`$1' 12086Try \`$0 --help' for more information." ;; 12087 12088 *) as_fn_append ac_config_targets " $1" 12089 ac_need_defaults=false ;; 12090 12091 esac 12092 shift 12093done 12094 12095ac_configure_extra_args= 12096 12097if $ac_cs_silent; then 12098 exec 6>/dev/null 12099 ac_configure_extra_args="$ac_configure_extra_args --silent" 12100fi 12101 12102_ACEOF 12103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12104if \$ac_cs_recheck; then 12105 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12106 shift 12107 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12108 CONFIG_SHELL='$SHELL' 12109 export CONFIG_SHELL 12110 exec "\$@" 12111fi 12112 12113_ACEOF 12114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12115exec 5>>config.log 12116{ 12117 echo 12118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12119## Running $as_me. ## 12120_ASBOX 12121 printf "%s\n" "$ac_log" 12122} >&5 12123 12124_ACEOF 12125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12126# 12127# INIT-COMMANDS 12128# 12129AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12130 12131_ACEOF 12132 12133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12134 12135# Handling of arguments. 12136for ac_config_target in $ac_config_targets 12137do 12138 case $ac_config_target in 12139 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12140 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12141 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12142 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12143 12144 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12145 esac 12146done 12147 12148 12149# If the user did not use the arguments to specify the items to instantiate, 12150# then the envvar interface is used. Set only those that are not. 12151# We use the long form for the default assignment because of an extremely 12152# bizarre bug on SunOS 4.1.3. 12153if $ac_need_defaults; then 12154 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12155 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12156 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12157fi 12158 12159# Have a temporary directory for convenience. Make it in the build tree 12160# simply because there is no reason against having it here, and in addition, 12161# creating and moving files from /tmp can sometimes cause problems. 12162# Hook for its removal unless debugging. 12163# Note that there is a small window in which the directory will not be cleaned: 12164# after its creation but before its name has been assigned to `$tmp'. 12165$debug || 12166{ 12167 tmp= ac_tmp= 12168 trap 'exit_status=$? 12169 : "${ac_tmp:=$tmp}" 12170 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12171' 0 12172 trap 'as_fn_exit 1' 1 2 13 15 12173} 12174# Create a (secure) tmp directory for tmp files. 12175 12176{ 12177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12178 test -d "$tmp" 12179} || 12180{ 12181 tmp=./conf$$-$RANDOM 12182 (umask 077 && mkdir "$tmp") 12183} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12184ac_tmp=$tmp 12185 12186# Set up the scripts for CONFIG_FILES section. 12187# No need to generate them if there are no CONFIG_FILES. 12188# This happens for instance with `./config.status config.h'. 12189if test -n "$CONFIG_FILES"; then 12190 12191 12192ac_cr=`echo X | tr X '\015'` 12193# On cygwin, bash can eat \r inside `` if the user requested igncr. 12194# But we know of no other shell where ac_cr would be empty at this 12195# point, so we can use a bashism as a fallback. 12196if test "x$ac_cr" = x; then 12197 eval ac_cr=\$\'\\r\' 12198fi 12199ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12200if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12201 ac_cs_awk_cr='\\r' 12202else 12203 ac_cs_awk_cr=$ac_cr 12204fi 12205 12206echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12207_ACEOF 12208 12209 12210{ 12211 echo "cat >conf$$subs.awk <<_ACEOF" && 12212 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12213 echo "_ACEOF" 12214} >conf$$subs.sh || 12215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12216ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12217ac_delim='%!_!# ' 12218for ac_last_try in false false false false false :; do 12219 . ./conf$$subs.sh || 12220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12221 12222 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12223 if test $ac_delim_n = $ac_delim_num; then 12224 break 12225 elif $ac_last_try; then 12226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12227 else 12228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12229 fi 12230done 12231rm -f conf$$subs.sh 12232 12233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12234cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12235_ACEOF 12236sed -n ' 12237h 12238s/^/S["/; s/!.*/"]=/ 12239p 12240g 12241s/^[^!]*!// 12242:repl 12243t repl 12244s/'"$ac_delim"'$// 12245t delim 12246:nl 12247h 12248s/\(.\{148\}\)..*/\1/ 12249t more1 12250s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12251p 12252n 12253b repl 12254:more1 12255s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12256p 12257g 12258s/.\{148\}// 12259t nl 12260:delim 12261h 12262s/\(.\{148\}\)..*/\1/ 12263t more2 12264s/["\\]/\\&/g; s/^/"/; s/$/"/ 12265p 12266b 12267:more2 12268s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12269p 12270g 12271s/.\{148\}// 12272t delim 12273' <conf$$subs.awk | sed ' 12274/^[^""]/{ 12275 N 12276 s/\n// 12277} 12278' >>$CONFIG_STATUS || ac_write_fail=1 12279rm -f conf$$subs.awk 12280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12281_ACAWK 12282cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12283 for (key in S) S_is_set[key] = 1 12284 FS = "" 12285 12286} 12287{ 12288 line = $ 0 12289 nfields = split(line, field, "@") 12290 substed = 0 12291 len = length(field[1]) 12292 for (i = 2; i < nfields; i++) { 12293 key = field[i] 12294 keylen = length(key) 12295 if (S_is_set[key]) { 12296 value = S[key] 12297 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12298 len += length(value) + length(field[++i]) 12299 substed = 1 12300 } else 12301 len += 1 + keylen 12302 } 12303 12304 print line 12305} 12306 12307_ACAWK 12308_ACEOF 12309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12310if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12311 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12312else 12313 cat 12314fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12315 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12316_ACEOF 12317 12318# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12319# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12320# trailing colons and then remove the whole line if VPATH becomes empty 12321# (actually we leave an empty line to preserve line numbers). 12322if test "x$srcdir" = x.; then 12323 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12324h 12325s/// 12326s/^/:/ 12327s/[ ]*$/:/ 12328s/:\$(srcdir):/:/g 12329s/:\${srcdir}:/:/g 12330s/:@srcdir@:/:/g 12331s/^:*// 12332s/:*$// 12333x 12334s/\(=[ ]*\).*/\1/ 12335G 12336s/\n// 12337s/^[^=]*=[ ]*$// 12338}' 12339fi 12340 12341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12342fi # test -n "$CONFIG_FILES" 12343 12344# Set up the scripts for CONFIG_HEADERS section. 12345# No need to generate them if there are no CONFIG_HEADERS. 12346# This happens for instance with `./config.status Makefile'. 12347if test -n "$CONFIG_HEADERS"; then 12348cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12349BEGIN { 12350_ACEOF 12351 12352# Transform confdefs.h into an awk script `defines.awk', embedded as 12353# here-document in config.status, that substitutes the proper values into 12354# config.h.in to produce config.h. 12355 12356# Create a delimiter string that does not exist in confdefs.h, to ease 12357# handling of long lines. 12358ac_delim='%!_!# ' 12359for ac_last_try in false false :; do 12360 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12361 if test -z "$ac_tt"; then 12362 break 12363 elif $ac_last_try; then 12364 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12365 else 12366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12367 fi 12368done 12369 12370# For the awk script, D is an array of macro values keyed by name, 12371# likewise P contains macro parameters if any. Preserve backslash 12372# newline sequences. 12373 12374ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12375sed -n ' 12376s/.\{148\}/&'"$ac_delim"'/g 12377t rset 12378:rset 12379s/^[ ]*#[ ]*define[ ][ ]*/ / 12380t def 12381d 12382:def 12383s/\\$// 12384t bsnl 12385s/["\\]/\\&/g 12386s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12387D["\1"]=" \3"/p 12388s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12389d 12390:bsnl 12391s/["\\]/\\&/g 12392s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12393D["\1"]=" \3\\\\\\n"\\/p 12394t cont 12395s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12396t cont 12397d 12398:cont 12399n 12400s/.\{148\}/&'"$ac_delim"'/g 12401t clear 12402:clear 12403s/\\$// 12404t bsnlc 12405s/["\\]/\\&/g; s/^/"/; s/$/"/p 12406d 12407:bsnlc 12408s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12409b cont 12410' <confdefs.h | sed ' 12411s/'"$ac_delim"'/"\\\ 12412"/g' >>$CONFIG_STATUS || ac_write_fail=1 12413 12414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12415 for (key in D) D_is_set[key] = 1 12416 FS = "" 12417} 12418/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12419 line = \$ 0 12420 split(line, arg, " ") 12421 if (arg[1] == "#") { 12422 defundef = arg[2] 12423 mac1 = arg[3] 12424 } else { 12425 defundef = substr(arg[1], 2) 12426 mac1 = arg[2] 12427 } 12428 split(mac1, mac2, "(") #) 12429 macro = mac2[1] 12430 prefix = substr(line, 1, index(line, defundef) - 1) 12431 if (D_is_set[macro]) { 12432 # Preserve the white space surrounding the "#". 12433 print prefix "define", macro P[macro] D[macro] 12434 next 12435 } else { 12436 # Replace #undef with comments. This is necessary, for example, 12437 # in the case of _POSIX_SOURCE, which is predefined and required 12438 # on some systems where configure will not decide to define it. 12439 if (defundef == "undef") { 12440 print "/*", prefix defundef, macro, "*/" 12441 next 12442 } 12443 } 12444} 12445{ print } 12446_ACAWK 12447_ACEOF 12448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12449 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12450fi # test -n "$CONFIG_HEADERS" 12451 12452 12453eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12454shift 12455for ac_tag 12456do 12457 case $ac_tag in 12458 :[FHLC]) ac_mode=$ac_tag; continue;; 12459 esac 12460 case $ac_mode$ac_tag in 12461 :[FHL]*:*);; 12462 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12463 :[FH]-) ac_tag=-:-;; 12464 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12465 esac 12466 ac_save_IFS=$IFS 12467 IFS=: 12468 set x $ac_tag 12469 IFS=$ac_save_IFS 12470 shift 12471 ac_file=$1 12472 shift 12473 12474 case $ac_mode in 12475 :L) ac_source=$1;; 12476 :[FH]) 12477 ac_file_inputs= 12478 for ac_f 12479 do 12480 case $ac_f in 12481 -) ac_f="$ac_tmp/stdin";; 12482 *) # Look for the file first in the build tree, then in the source tree 12483 # (if the path is not absolute). The absolute path cannot be DOS-style, 12484 # because $ac_f cannot contain `:'. 12485 test -f "$ac_f" || 12486 case $ac_f in 12487 [\\/$]*) false;; 12488 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12489 esac || 12490 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12491 esac 12492 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12493 as_fn_append ac_file_inputs " '$ac_f'" 12494 done 12495 12496 # Let's still pretend it is `configure' which instantiates (i.e., don't 12497 # use $as_me), people would be surprised to read: 12498 # /* config.h. Generated by config.status. */ 12499 configure_input='Generated from '` 12500 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12501 `' by configure.' 12502 if test x"$ac_file" != x-; then 12503 configure_input="$ac_file. $configure_input" 12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12505printf "%s\n" "$as_me: creating $ac_file" >&6;} 12506 fi 12507 # Neutralize special characters interpreted by sed in replacement strings. 12508 case $configure_input in #( 12509 *\&* | *\|* | *\\* ) 12510 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12511 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12512 *) ac_sed_conf_input=$configure_input;; 12513 esac 12514 12515 case $ac_tag in 12516 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12518 esac 12519 ;; 12520 esac 12521 12522 ac_dir=`$as_dirname -- "$ac_file" || 12523$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12524 X"$ac_file" : 'X\(//\)[^/]' \| \ 12525 X"$ac_file" : 'X\(//\)$' \| \ 12526 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12527printf "%s\n" X"$ac_file" | 12528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12529 s//\1/ 12530 q 12531 } 12532 /^X\(\/\/\)[^/].*/{ 12533 s//\1/ 12534 q 12535 } 12536 /^X\(\/\/\)$/{ 12537 s//\1/ 12538 q 12539 } 12540 /^X\(\/\).*/{ 12541 s//\1/ 12542 q 12543 } 12544 s/.*/./; q'` 12545 as_dir="$ac_dir"; as_fn_mkdir_p 12546 ac_builddir=. 12547 12548case "$ac_dir" in 12549.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12550*) 12551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12552 # A ".." for each directory in $ac_dir_suffix. 12553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12554 case $ac_top_builddir_sub in 12555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12557 esac ;; 12558esac 12559ac_abs_top_builddir=$ac_pwd 12560ac_abs_builddir=$ac_pwd$ac_dir_suffix 12561# for backward compatibility: 12562ac_top_builddir=$ac_top_build_prefix 12563 12564case $srcdir in 12565 .) # We are building in place. 12566 ac_srcdir=. 12567 ac_top_srcdir=$ac_top_builddir_sub 12568 ac_abs_top_srcdir=$ac_pwd ;; 12569 [\\/]* | ?:[\\/]* ) # Absolute name. 12570 ac_srcdir=$srcdir$ac_dir_suffix; 12571 ac_top_srcdir=$srcdir 12572 ac_abs_top_srcdir=$srcdir ;; 12573 *) # Relative name. 12574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12575 ac_top_srcdir=$ac_top_build_prefix$srcdir 12576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12577esac 12578ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12579 12580 12581 case $ac_mode in 12582 :F) 12583 # 12584 # CONFIG_FILE 12585 # 12586 12587 case $INSTALL in 12588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12589 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12590 esac 12591 ac_MKDIR_P=$MKDIR_P 12592 case $MKDIR_P in 12593 [\\/$]* | ?:[\\/]* ) ;; 12594 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12595 esac 12596_ACEOF 12597 12598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12599# If the template does not know about datarootdir, expand it. 12600# FIXME: This hack should be removed a few years after 2.60. 12601ac_datarootdir_hack=; ac_datarootdir_seen= 12602ac_sed_dataroot=' 12603/datarootdir/ { 12604 p 12605 q 12606} 12607/@datadir@/p 12608/@docdir@/p 12609/@infodir@/p 12610/@localedir@/p 12611/@mandir@/p' 12612case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12613*datarootdir*) ac_datarootdir_seen=yes;; 12614*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12616printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12617_ACEOF 12618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12619 ac_datarootdir_hack=' 12620 s&@datadir@&$datadir&g 12621 s&@docdir@&$docdir&g 12622 s&@infodir@&$infodir&g 12623 s&@localedir@&$localedir&g 12624 s&@mandir@&$mandir&g 12625 s&\\\${datarootdir}&$datarootdir&g' ;; 12626esac 12627_ACEOF 12628 12629# Neutralize VPATH when `$srcdir' = `.'. 12630# Shell code in configure.ac might set extrasub. 12631# FIXME: do we really want to maintain this feature? 12632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12633ac_sed_extra="$ac_vpsub 12634$extrasub 12635_ACEOF 12636cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12637:t 12638/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12639s|@configure_input@|$ac_sed_conf_input|;t t 12640s&@top_builddir@&$ac_top_builddir_sub&;t t 12641s&@top_build_prefix@&$ac_top_build_prefix&;t t 12642s&@srcdir@&$ac_srcdir&;t t 12643s&@abs_srcdir@&$ac_abs_srcdir&;t t 12644s&@top_srcdir@&$ac_top_srcdir&;t t 12645s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12646s&@builddir@&$ac_builddir&;t t 12647s&@abs_builddir@&$ac_abs_builddir&;t t 12648s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12649s&@INSTALL@&$ac_INSTALL&;t t 12650s&@MKDIR_P@&$ac_MKDIR_P&;t t 12651$ac_datarootdir_hack 12652" 12653eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12654 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12655 12656test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12657 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12658 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12659 "$ac_tmp/out"`; test -z "$ac_out"; } && 12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12661which seems to be undefined. Please make sure it is defined" >&5 12662printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12663which seems to be undefined. Please make sure it is defined" >&2;} 12664 12665 rm -f "$ac_tmp/stdin" 12666 case $ac_file in 12667 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12668 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12669 esac \ 12670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12671 ;; 12672 :H) 12673 # 12674 # CONFIG_HEADER 12675 # 12676 if test x"$ac_file" != x-; then 12677 { 12678 printf "%s\n" "/* $configure_input */" >&1 \ 12679 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12680 } >"$ac_tmp/config.h" \ 12681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12682 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12684printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12685 else 12686 rm -f "$ac_file" 12687 mv "$ac_tmp/config.h" "$ac_file" \ 12688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12689 fi 12690 else 12691 printf "%s\n" "/* $configure_input */" >&1 \ 12692 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12693 || as_fn_error $? "could not create -" "$LINENO" 5 12694 fi 12695# Compute "$ac_file"'s index in $config_headers. 12696_am_arg="$ac_file" 12697_am_stamp_count=1 12698for _am_header in $config_headers :; do 12699 case $_am_header in 12700 $_am_arg | $_am_arg:* ) 12701 break ;; 12702 * ) 12703 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12704 esac 12705done 12706echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12707$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12708 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12709 X"$_am_arg" : 'X\(//\)$' \| \ 12710 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12711printf "%s\n" X"$_am_arg" | 12712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12713 s//\1/ 12714 q 12715 } 12716 /^X\(\/\/\)[^/].*/{ 12717 s//\1/ 12718 q 12719 } 12720 /^X\(\/\/\)$/{ 12721 s//\1/ 12722 q 12723 } 12724 /^X\(\/\).*/{ 12725 s//\1/ 12726 q 12727 } 12728 s/.*/./; q'`/stamp-h$_am_stamp_count 12729 ;; 12730 12731 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12732printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12733 ;; 12734 esac 12735 12736 12737 case $ac_file$ac_mode in 12738 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12739 # Older Autoconf quotes --file arguments for eval, but not when files 12740 # are listed without --file. Let's play safe and only enable the eval 12741 # if we detect the quoting. 12742 # TODO: see whether this extra hack can be removed once we start 12743 # requiring Autoconf 2.70 or later. 12744 case $CONFIG_FILES in #( 12745 *\'*) : 12746 eval set x "$CONFIG_FILES" ;; #( 12747 *) : 12748 set x $CONFIG_FILES ;; #( 12749 *) : 12750 ;; 12751esac 12752 shift 12753 # Used to flag and report bootstrapping failures. 12754 am_rc=0 12755 for am_mf 12756 do 12757 # Strip MF so we end up with the name of the file. 12758 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12759 # Check whether this is an Automake generated Makefile which includes 12760 # dependency-tracking related rules and includes. 12761 # Grep'ing the whole file directly is not great: AIX grep has a line 12762 # limit of 2048, but all sed's we know have understand at least 4000. 12763 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12764 || continue 12765 am_dirpart=`$as_dirname -- "$am_mf" || 12766$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12767 X"$am_mf" : 'X\(//\)[^/]' \| \ 12768 X"$am_mf" : 'X\(//\)$' \| \ 12769 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12770printf "%s\n" X"$am_mf" | 12771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12772 s//\1/ 12773 q 12774 } 12775 /^X\(\/\/\)[^/].*/{ 12776 s//\1/ 12777 q 12778 } 12779 /^X\(\/\/\)$/{ 12780 s//\1/ 12781 q 12782 } 12783 /^X\(\/\).*/{ 12784 s//\1/ 12785 q 12786 } 12787 s/.*/./; q'` 12788 am_filepart=`$as_basename -- "$am_mf" || 12789$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12790 X"$am_mf" : 'X\(//\)$' \| \ 12791 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12792printf "%s\n" X/"$am_mf" | 12793 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12794 s//\1/ 12795 q 12796 } 12797 /^X\/\(\/\/\)$/{ 12798 s//\1/ 12799 q 12800 } 12801 /^X\/\(\/\).*/{ 12802 s//\1/ 12803 q 12804 } 12805 s/.*/./; q'` 12806 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12807 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12808 | $MAKE -f - am--depfiles" >&5 12809 (cd "$am_dirpart" \ 12810 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12811 | $MAKE -f - am--depfiles) >&5 2>&5 12812 ac_status=$? 12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12814 (exit $ac_status); } || am_rc=$? 12815 done 12816 if test $am_rc -ne 0; then 12817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12818printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12819as_fn_error $? "Something went wrong bootstrapping makefile fragments 12820 for automatic dependency tracking. If GNU make was not used, consider 12821 re-running the configure script with MAKE=\"gmake\" (or whatever is 12822 necessary). You can also try re-running configure with the 12823 '--disable-dependency-tracking' option to at least be able to build 12824 the package (albeit without support for automatic dependency tracking). 12825See \`config.log' for more details" "$LINENO" 5; } 12826 fi 12827 { am_dirpart=; unset am_dirpart;} 12828 { am_filepart=; unset am_filepart;} 12829 { am_mf=; unset am_mf;} 12830 { am_rc=; unset am_rc;} 12831 rm -f conftest-deps.mk 12832} 12833 ;; 12834 12835 esac 12836done # for ac_tag 12837 12838 12839as_fn_exit 0 12840_ACEOF 12841ac_clean_files=$ac_clean_files_save 12842 12843test $ac_write_fail = 0 || 12844 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12845 12846 12847# configure is writing to config.log, and then calls config.status. 12848# config.status does its own redirection, appending to config.log. 12849# Unfortunately, on DOS this fails, as config.log is still kept open 12850# by configure, so config.status won't be able to write to it; its 12851# output is simply discarded. So we exec the FD to /dev/null, 12852# effectively closing config.log, so it can be properly (re)opened and 12853# appended to by config.status. When coming back to configure, we 12854# need to make the FD available again. 12855if test "$no_create" != yes; then 12856 ac_cs_success=: 12857 ac_config_status_args= 12858 test "$silent" = yes && 12859 ac_config_status_args="$ac_config_status_args --quiet" 12860 exec 5>/dev/null 12861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12862 exec 5>>config.log 12863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12864 # would make configure fail if this is the last instruction. 12865 $ac_cs_success || as_fn_exit 1 12866fi 12867if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12869printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12870fi 12871 12872 12873