1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xrefresh 1.1.0. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrefresh/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 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 case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187test \$(( 1 + 1 )) = 2 || exit 1" 188 if (eval "$as_required") 2>/dev/null 189then : 190 as_have_required=yes 191else case e in #( 192 e) as_have_required=no ;; 193esac 194fi 195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 196then : 197 198else case e in #( 199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 200as_found=false 201for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 202do 203 IFS=$as_save_IFS 204 case $as_dir in #((( 205 '') as_dir=./ ;; 206 */) ;; 207 *) as_dir=$as_dir/ ;; 208 esac 209 as_found=: 210 case $as_dir in #( 211 /*) 212 for as_base in sh bash ksh sh5; do 213 # Try only shells that exist, to save several forks. 214 as_shell=$as_dir$as_base 215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 217then : 218 CONFIG_SHELL=$as_shell as_have_required=yes 219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 220then : 221 break 2 222fi 223fi 224 done;; 225 esac 226 as_found=false 227done 228IFS=$as_save_IFS 229if $as_found 230then : 231 232else case e in #( 233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 235then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi ;; 238esac 239fi 240 241 242 if test "x$CONFIG_SHELL" != x 243then : 244 export CONFIG_SHELL 245 # We cannot yet assume a decent shell, so we have to provide a 246# neutralization value for shells without unset; and this also 247# works around shells that cannot unset nonexistent variables. 248# Preserve -v and -x to the replacement shell. 249BASH_ENV=/dev/null 250ENV=/dev/null 251(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252case $- in # (((( 253 *v*x* | *x*v* ) as_opts=-vx ;; 254 *v* ) as_opts=-v ;; 255 *x* ) as_opts=-x ;; 256 * ) as_opts= ;; 257esac 258exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 259# Admittedly, this is quite paranoid, since all the known shells bail 260# out after a failed 'exec'. 261printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 262exit 255 263fi 264 265 if test x$as_have_required = xno 266then : 267 printf "%s\n" "$0: This script requires a shell more modern than all" 268 printf "%s\n" "$0: the shells that I found on your system." 269 if test ${ZSH_VERSION+y} ; then 270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 272 else 273 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 274$0: https://gitlab.freedesktop.org/xorg/app/xrefresh/-/issues 275$0: about your system, including any error possibly output 276$0: before this message. Then install a modern shell, or 277$0: manually run the script under such a shell if you do 278$0: have one." 279 fi 280 exit 1 281fi ;; 282esac 283fi 284fi 285SHELL=${CONFIG_SHELL-/bin/sh} 286export SHELL 287# Unset more variables known to interfere with behavior of common tools. 288CLICOLOR_FORCE= GREP_OPTIONS= 289unset CLICOLOR_FORCE GREP_OPTIONS 290 291## --------------------- ## 292## M4sh Shell Functions. ## 293## --------------------- ## 294# as_fn_unset VAR 295# --------------- 296# Portably unset VAR. 297as_fn_unset () 298{ 299 { eval $1=; unset $1;} 300} 301as_unset=as_fn_unset 302 303 304# as_fn_set_status STATUS 305# ----------------------- 306# Set $? to STATUS, without forking. 307as_fn_set_status () 308{ 309 return $1 310} # as_fn_set_status 311 312# as_fn_exit STATUS 313# ----------------- 314# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 315as_fn_exit () 316{ 317 set +e 318 as_fn_set_status $1 319 exit $1 320} # as_fn_exit 321 322# as_fn_mkdir_p 323# ------------- 324# Create "$as_dir" as a directory, including parents if necessary. 325as_fn_mkdir_p () 326{ 327 328 case $as_dir in #( 329 -*) as_dir=./$as_dir;; 330 esac 331 test -d "$as_dir" || eval $as_mkdir_p || { 332 as_dirs= 333 while :; do 334 case $as_dir in #( 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 336 *) as_qdir=$as_dir;; 337 esac 338 as_dirs="'$as_qdir' $as_dirs" 339 as_dir=`$as_dirname -- "$as_dir" || 340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 341 X"$as_dir" : 'X\(//\)[^/]' \| \ 342 X"$as_dir" : 'X\(//\)$' \| \ 343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 344printf "%s\n" X"$as_dir" | 345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 346 s//\1/ 347 q 348 } 349 /^X\(\/\/\)[^/].*/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)$/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\).*/{ 358 s//\1/ 359 q 360 } 361 s/.*/./; q'` 362 test -d "$as_dir" && break 363 done 364 test -z "$as_dirs" || eval "mkdir $as_dirs" 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 366 367 368} # as_fn_mkdir_p 369 370# as_fn_executable_p FILE 371# ----------------------- 372# Test if FILE is an executable regular file. 373as_fn_executable_p () 374{ 375 test -f "$1" && test -x "$1" 376} # as_fn_executable_p 377# as_fn_append VAR VALUE 378# ---------------------- 379# Append the text in VALUE to the end of the definition contained in VAR. Take 380# advantage of any shell optimizations that allow amortized linear growth over 381# repeated appends, instead of the typical quadratic growth present in naive 382# implementations. 383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 384then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else case e in #( 390 e) as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } ;; 394esac 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 403then : 404 eval 'as_fn_arith () 405 { 406 as_val=$(( $* )) 407 }' 408else case e in #( 409 e) as_fn_arith () 410 { 411 as_val=`expr "$@" || test $? -eq 1` 412 } ;; 413esac 414fi # as_fn_arith 415 416 417# as_fn_error STATUS ERROR [LINENO LOG_FD] 418# ---------------------------------------- 419# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 420# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 421# script with STATUS, using 1 if that was 0. 422as_fn_error () 423{ 424 as_status=$1; test $as_status -eq 0 && as_status=1 425 if test "$4"; then 426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 428 fi 429 printf "%s\n" "$as_me: error: $2" >&2 430 as_fn_exit $as_status 431} # as_fn_error 432 433if expr a : '\(a\)' >/dev/null 2>&1 && 434 test "X`expr 00001 : '.*\(...\)'`" = X001; then 435 as_expr=expr 436else 437 as_expr=false 438fi 439 440if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 441 as_basename=basename 442else 443 as_basename=false 444fi 445 446if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 447 as_dirname=dirname 448else 449 as_dirname=false 450fi 451 452as_me=`$as_basename -- "$0" || 453$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 454 X"$0" : 'X\(//\)$' \| \ 455 X"$0" : 'X\(/\)' \| . 2>/dev/null || 456printf "%s\n" X/"$0" | 457 sed '/^.*\/\([^/][^/]*\)\/*$/{ 458 s//\1/ 459 q 460 } 461 /^X\/\(\/\/\)$/{ 462 s//\1/ 463 q 464 } 465 /^X\/\(\/\).*/{ 466 s//\1/ 467 q 468 } 469 s/.*/./; q'` 470 471# Avoid depending upon Character Ranges. 472as_cr_letters='abcdefghijklmnopqrstuvwxyz' 473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 474as_cr_Letters=$as_cr_letters$as_cr_LETTERS 475as_cr_digits='0123456789' 476as_cr_alnum=$as_cr_Letters$as_cr_digits 477 478 479 as_lineno_1=$LINENO as_lineno_1a=$LINENO 480 as_lineno_2=$LINENO as_lineno_2a=$LINENO 481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 484 sed -n ' 485 p 486 /[$]LINENO/= 487 ' <$as_myself | 488 sed ' 489 t clear 490 :clear 491 s/[$]LINENO.*/&-/ 492 t lineno 493 b 494 :lineno 495 N 496 :loop 497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 498 t loop 499 s/-\n.*// 500 ' >$as_me.lineno && 501 chmod +x "$as_me.lineno" || 502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 503 504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 505 # already done that, so ensure we don't try to do so again and fall 506 # in an infinite loop. This has already happened in practice. 507 _as_can_reexec=no; export _as_can_reexec 508 # Don't try to exec as it changes $[0], causing all sort of problems 509 # (the dirname of $[0] is not the place where we might find the 510 # original and so on. Autoconf is especially sensitive to this). 511 . "./$as_me.lineno" 512 # Exit status is that of the last command. 513 exit 514} 515 516 517# Determine whether it's possible to make 'echo' print without a newline. 518# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 519# for compatibility with existing Makefiles. 520ECHO_C= ECHO_N= ECHO_T= 521case `echo -n x` in #((((( 522-n*) 523 case `echo 'xy\c'` in 524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 525 xy) ECHO_C='\c';; 526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 527 ECHO_T=' ';; 528 esac;; 529*) 530 ECHO_N='-n';; 531esac 532 533# For backward compatibility with old third-party macros, we provide 534# the shell variables $as_echo and $as_echo_n. New code should use 535# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 536as_echo='printf %s\n' 537as_echo_n='printf %s' 538 539rm -f conf$$ conf$$.exe conf$$.file 540if test -d conf$$.dir; then 541 rm -f conf$$.dir/conf$$.file 542else 543 rm -f conf$$.dir 544 mkdir conf$$.dir 2>/dev/null 545fi 546if (echo >conf$$.file) 2>/dev/null; then 547 if ln -s conf$$.file conf$$ 2>/dev/null; then 548 as_ln_s='ln -s' 549 # ... but there are two gotchas: 550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 552 # In both cases, we have to default to 'cp -pR'. 553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 554 as_ln_s='cp -pR' 555 elif ln conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s=ln 557 else 558 as_ln_s='cp -pR' 559 fi 560else 561 as_ln_s='cp -pR' 562fi 563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 564rmdir conf$$.dir 2>/dev/null 565 566if mkdir -p . 2>/dev/null; then 567 as_mkdir_p='mkdir -p "$as_dir"' 568else 569 test -d ./-p && rmdir ./-p 570 as_mkdir_p=false 571fi 572 573as_test_x='test -x' 574as_executable_p=as_fn_executable_p 575 576# Sed expression to map a string onto a valid CPP name. 577as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 578as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 579 580# Sed expression to map a string onto a valid variable name. 581as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 582as_tr_sh="eval sed '$as_sed_sh'" # deprecated 583 584 585test -n "$DJDIR" || exec 7<&0 </dev/null 586exec 6>&1 587 588# Name of the host. 589# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 590# so uname gets run too. 591ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 592 593# 594# Initializations. 595# 596ac_default_prefix=/usr/local 597ac_clean_files= 598ac_config_libobj_dir=. 599LIBOBJS= 600cross_compiling=no 601subdirs= 602MFLAGS= 603MAKEFLAGS= 604 605# Identity of this package. 606PACKAGE_NAME='xrefresh' 607PACKAGE_TARNAME='xrefresh' 608PACKAGE_VERSION='1.1.0' 609PACKAGE_STRING='xrefresh 1.1.0' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xrefresh/-/issues' 611PACKAGE_URL='' 612 613ac_unique_file="Makefile.am" 614# Factoring default headers for most tests. 615ac_includes_default="\ 616#include <stddef.h> 617#ifdef HAVE_STDIO_H 618# include <stdio.h> 619#endif 620#ifdef HAVE_STDLIB_H 621# include <stdlib.h> 622#endif 623#ifdef HAVE_STRING_H 624# include <string.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_STRINGS_H 633# include <strings.h> 634#endif 635#ifdef HAVE_SYS_TYPES_H 636# include <sys/types.h> 637#endif 638#ifdef HAVE_SYS_STAT_H 639# include <sys/stat.h> 640#endif 641#ifdef HAVE_UNISTD_H 642# include <unistd.h> 643#endif" 644 645ac_header_c_list= 646ac_subst_vars='am__EXEEXT_FALSE 647am__EXEEXT_TRUE 648LTLIBOBJS 649LIBOBJS 650XREFRESH_LIBS 651XREFRESH_CFLAGS 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666SED 667host_os 668host_vendor 669host_cpu 670host 671build_os 672build_vendor 673build_cpu 674build 675INSTALL_CMD 676PKG_CONFIG_LIBDIR 677PKG_CONFIG_PATH 678PKG_CONFIG 679CHANGELOG_CMD 680STRICT_CFLAGS 681CWARNFLAGS 682BASE_CFLAGS 683AM_BACKSLASH 684AM_DEFAULT_VERBOSITY 685AM_DEFAULT_V 686AM_V 687CSCOPE 688ETAGS 689CTAGS 690am__fastdepCC_FALSE 691am__fastdepCC_TRUE 692CCDEPMODE 693am__nodep 694AMDEPBACKSLASH 695AMDEP_FALSE 696AMDEP_TRUE 697am__include 698DEPDIR 699am__untar 700am__tar 701AMTAR 702am__leading_dot 703SET_MAKE 704AWK 705mkdir_p 706MKDIR_P 707INSTALL_STRIP_PROGRAM 708STRIP 709install_sh 710MAKEINFO 711AUTOHEADER 712AUTOMAKE 713AUTOCONF 714ACLOCAL 715VERSION 716PACKAGE 717CYGPATH_W 718am__isrc 719INSTALL_DATA 720INSTALL_SCRIPT 721INSTALL_PROGRAM 722OBJEXT 723EXEEXT 724ac_ct_CC 725CPPFLAGS 726LDFLAGS 727CFLAGS 728CC 729target_alias 730host_alias 731build_alias 732LIBS 733ECHO_T 734ECHO_N 735ECHO_C 736DEFS 737mandir 738localedir 739libdir 740psdir 741pdfdir 742dvidir 743htmldir 744infodir 745docdir 746oldincludedir 747includedir 748runstatedir 749localstatedir 750sharedstatedir 751sysconfdir 752datadir 753datarootdir 754libexecdir 755sbindir 756bindir 757program_transform_name 758prefix 759exec_prefix 760PACKAGE_URL 761PACKAGE_BUGREPORT 762PACKAGE_STRING 763PACKAGE_VERSION 764PACKAGE_TARNAME 765PACKAGE_NAME 766PATH_SEPARATOR 767SHELL 768am__quote' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_dependency_tracking 773enable_silent_rules 774enable_selective_werror 775enable_strict_compilation 776' 777 ac_precious_vars='build_alias 778host_alias 779target_alias 780CC 781CFLAGS 782LDFLAGS 783LIBS 784CPPFLAGS 785PKG_CONFIG 786PKG_CONFIG_PATH 787PKG_CONFIG_LIBDIR 788XREFRESH_CFLAGS 789XREFRESH_LIBS' 790 791 792# Initialize some variables set by options. 793ac_init_help= 794ac_init_version=false 795ac_unrecognized_opts= 796ac_unrecognized_sep= 797# The variables have the same names as the options, with 798# dashes changed to underlines. 799cache_file=/dev/null 800exec_prefix=NONE 801no_create= 802no_recursion= 803prefix=NONE 804program_prefix=NONE 805program_suffix=NONE 806program_transform_name=s,x,x, 807silent= 808site= 809srcdir= 810verbose= 811x_includes=NONE 812x_libraries=NONE 813 814# Installation directory options. 815# These are left unexpanded so users can "make install exec_prefix=/foo" 816# and all the variables that are supposed to be based on exec_prefix 817# by default will actually change. 818# Use braces instead of parens because sh, perl, etc. also accept them. 819# (The list follows the same order as the GNU Coding Standards.) 820bindir='${exec_prefix}/bin' 821sbindir='${exec_prefix}/sbin' 822libexecdir='${exec_prefix}/libexec' 823datarootdir='${prefix}/share' 824datadir='${datarootdir}' 825sysconfdir='${prefix}/etc' 826sharedstatedir='${prefix}/com' 827localstatedir='${prefix}/var' 828runstatedir='${localstatedir}/run' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 case $ac_dashdash$ac_option in 859 --) 860 ac_dashdash=yes ;; 861 862 -bindir | --bindir | --bindi | --bind | --bin | --bi) 863 ac_prev=bindir ;; 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865 bindir=$ac_optarg ;; 866 867 -build | --build | --buil | --bui | --bu) 868 ac_prev=build_alias ;; 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870 build_alias=$ac_optarg ;; 871 872 -cache-file | --cache-file | --cache-fil | --cache-fi \ 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874 ac_prev=cache_file ;; 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877 cache_file=$ac_optarg ;; 878 879 --config-cache | -C) 880 cache_file=config.cache ;; 881 882 -datadir | --datadir | --datadi | --datad) 883 ac_prev=datadir ;; 884 -datadir=* | --datadir=* | --datadi=* | --datad=*) 885 datadir=$ac_optarg ;; 886 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888 | --dataroo | --dataro | --datar) 889 ac_prev=datarootdir ;; 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892 datarootdir=$ac_optarg ;; 893 894 -disable-* | --disable-*) 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896 # Reject names that are not valid shell variable names. 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 898 as_fn_error $? "invalid feature name: '$ac_useropt'" 899 ac_useropt_orig=$ac_useropt 900 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 901 case $ac_user_opts in 902 *" 903"enable_$ac_useropt" 904"*) ;; 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906 ac_unrecognized_sep=', ';; 907 esac 908 eval enable_$ac_useropt=no ;; 909 910 -docdir | --docdir | --docdi | --doc | --do) 911 ac_prev=docdir ;; 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913 docdir=$ac_optarg ;; 914 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916 ac_prev=dvidir ;; 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918 dvidir=$ac_optarg ;; 919 920 -enable-* | --enable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: '$ac_useropt'" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=\$ac_optarg ;; 935 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938 | --exec | --exe | --ex) 939 ac_prev=exec_prefix ;; 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942 | --exec=* | --exe=* | --ex=*) 943 exec_prefix=$ac_optarg ;; 944 945 -gas | --gas | --ga | --g) 946 # Obsolete; use --with-gas. 947 with_gas=yes ;; 948 949 -help | --help | --hel | --he | -h) 950 ac_init_help=long ;; 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952 ac_init_help=recursive ;; 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954 ac_init_help=short ;; 955 956 -host | --host | --hos | --ho) 957 ac_prev=host_alias ;; 958 -host=* | --host=* | --hos=* | --ho=*) 959 host_alias=$ac_optarg ;; 960 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962 ac_prev=htmldir ;; 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964 | --ht=*) 965 htmldir=$ac_optarg ;; 966 967 -includedir | --includedir | --includedi | --included | --include \ 968 | --includ | --inclu | --incl | --inc) 969 ac_prev=includedir ;; 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971 | --includ=* | --inclu=* | --incl=* | --inc=*) 972 includedir=$ac_optarg ;; 973 974 -infodir | --infodir | --infodi | --infod | --info | --inf) 975 ac_prev=infodir ;; 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977 infodir=$ac_optarg ;; 978 979 -libdir | --libdir | --libdi | --libd) 980 ac_prev=libdir ;; 981 -libdir=* | --libdir=* | --libdi=* | --libd=*) 982 libdir=$ac_optarg ;; 983 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985 | --libexe | --libex | --libe) 986 ac_prev=libexecdir ;; 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988 | --libexe=* | --libex=* | --libe=*) 989 libexecdir=$ac_optarg ;; 990 991 -localedir | --localedir | --localedi | --localed | --locale) 992 ac_prev=localedir ;; 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994 localedir=$ac_optarg ;; 995 996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 997 | --localstate | --localstat | --localsta | --localst | --locals) 998 ac_prev=localstatedir ;; 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001 localstatedir=$ac_optarg ;; 1002 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004 ac_prev=mandir ;; 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006 mandir=$ac_optarg ;; 1007 1008 -nfp | --nfp | --nf) 1009 # Obsolete; use --without-fp. 1010 with_fp=no ;; 1011 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013 | --no-cr | --no-c | -n) 1014 no_create=yes ;; 1015 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018 no_recursion=yes ;; 1019 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022 | --oldin | --oldi | --old | --ol | --o) 1023 ac_prev=oldincludedir ;; 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027 oldincludedir=$ac_optarg ;; 1028 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030 ac_prev=prefix ;; 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032 prefix=$ac_optarg ;; 1033 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035 | --program-pre | --program-pr | --program-p) 1036 ac_prev=program_prefix ;; 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039 program_prefix=$ac_optarg ;; 1040 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042 | --program-suf | --program-su | --program-s) 1043 ac_prev=program_suffix ;; 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046 program_suffix=$ac_optarg ;; 1047 1048 -program-transform-name | --program-transform-name \ 1049 | --program-transform-nam | --program-transform-na \ 1050 | --program-transform-n | --program-transform- \ 1051 | --program-transform | --program-transfor \ 1052 | --program-transfo | --program-transf \ 1053 | --program-trans | --program-tran \ 1054 | --progr-tra | --program-tr | --program-t) 1055 ac_prev=program_transform_name ;; 1056 -program-transform-name=* | --program-transform-name=* \ 1057 | --program-transform-nam=* | --program-transform-na=* \ 1058 | --program-transform-n=* | --program-transform-=* \ 1059 | --program-transform=* | --program-transfor=* \ 1060 | --program-transfo=* | --program-transf=* \ 1061 | --program-trans=* | --program-tran=* \ 1062 | --progr-tra=* | --program-tr=* | --program-t=*) 1063 program_transform_name=$ac_optarg ;; 1064 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066 ac_prev=pdfdir ;; 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068 pdfdir=$ac_optarg ;; 1069 1070 -psdir | --psdir | --psdi | --psd | --ps) 1071 ac_prev=psdir ;; 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073 psdir=$ac_optarg ;; 1074 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076 | -silent | --silent | --silen | --sile | --sil) 1077 silent=yes ;; 1078 1079 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1080 | --runstate | --runstat | --runsta | --runst | --runs \ 1081 | --run | --ru | --r) 1082 ac_prev=runstatedir ;; 1083 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1084 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1085 | --run=* | --ru=* | --r=*) 1086 runstatedir=$ac_optarg ;; 1087 1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1089 ac_prev=sbindir ;; 1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1091 | --sbi=* | --sb=*) 1092 sbindir=$ac_optarg ;; 1093 1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1096 | --sharedst | --shareds | --shared | --share | --shar \ 1097 | --sha | --sh) 1098 ac_prev=sharedstatedir ;; 1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1102 | --sha=* | --sh=*) 1103 sharedstatedir=$ac_optarg ;; 1104 1105 -site | --site | --sit) 1106 ac_prev=site ;; 1107 -site=* | --site=* | --sit=*) 1108 site=$ac_optarg ;; 1109 1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1111 ac_prev=srcdir ;; 1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1113 srcdir=$ac_optarg ;; 1114 1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1116 | --syscon | --sysco | --sysc | --sys | --sy) 1117 ac_prev=sysconfdir ;; 1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1120 sysconfdir=$ac_optarg ;; 1121 1122 -target | --target | --targe | --targ | --tar | --ta | --t) 1123 ac_prev=target_alias ;; 1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1125 target_alias=$ac_optarg ;; 1126 1127 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1128 verbose=yes ;; 1129 1130 -version | --version | --versio | --versi | --vers | -V) 1131 ac_init_version=: ;; 1132 1133 -with-* | --with-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: '$ac_useropt'" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=\$ac_optarg ;; 1148 1149 -without-* | --without-*) 1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1151 # Reject names that are not valid shell variable names. 1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1153 as_fn_error $? "invalid package name: '$ac_useropt'" 1154 ac_useropt_orig=$ac_useropt 1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1156 case $ac_user_opts in 1157 *" 1158"with_$ac_useropt" 1159"*) ;; 1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1161 ac_unrecognized_sep=', ';; 1162 esac 1163 eval with_$ac_useropt=no ;; 1164 1165 --x) 1166 # Obsolete; use --with-x. 1167 with_x=yes ;; 1168 1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1170 | --x-incl | --x-inc | --x-in | --x-i) 1171 ac_prev=x_includes ;; 1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1174 x_includes=$ac_optarg ;; 1175 1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1178 ac_prev=x_libraries ;; 1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1181 x_libraries=$ac_optarg ;; 1182 1183 -*) as_fn_error $? "unrecognized option: '$ac_option' 1184Try '$0 --help' for more information" 1185 ;; 1186 1187 *=*) 1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1189 # Reject names that are not valid shell variable names. 1190 case $ac_envvar in #( 1191 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1192 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1193 esac 1194 eval $ac_envvar=\$ac_optarg 1195 export $ac_envvar ;; 1196 1197 *) 1198 # FIXME: should be removed in autoconf 3.0. 1199 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1201 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1203 ;; 1204 1205 esac 1206done 1207 1208if test -n "$ac_prev"; then 1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1210 as_fn_error $? "missing argument to $ac_option" 1211fi 1212 1213if test -n "$ac_unrecognized_opts"; then 1214 case $enable_option_checking in 1215 no) ;; 1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1217 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1218 esac 1219fi 1220 1221# Check all directory arguments for consistency. 1222for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1223 datadir sysconfdir sharedstatedir localstatedir includedir \ 1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1225 libdir localedir mandir runstatedir 1226do 1227 eval ac_val=\$$ac_var 1228 # Remove trailing slashes. 1229 case $ac_val in 1230 */ ) 1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1232 eval $ac_var=\$ac_val;; 1233 esac 1234 # Be sure to have absolute directory names. 1235 case $ac_val in 1236 [\\/$]* | ?:[\\/]* ) continue;; 1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1238 esac 1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1240done 1241 1242# There might be people who depend on the old broken behavior: '$host' 1243# used to hold the argument of --host etc. 1244# FIXME: To remove some day. 1245build=$build_alias 1246host=$host_alias 1247target=$target_alias 1248 1249# FIXME: To remove some day. 1250if test "x$host_alias" != x; then 1251 if test "x$build_alias" = x; then 1252 cross_compiling=maybe 1253 elif test "x$build_alias" != "x$host_alias"; then 1254 cross_compiling=yes 1255 fi 1256fi 1257 1258ac_tool_prefix= 1259test -n "$host_alias" && ac_tool_prefix=$host_alias- 1260 1261test "$silent" = yes && exec 6>/dev/null 1262 1263 1264ac_pwd=`pwd` && test -n "$ac_pwd" && 1265ac_ls_di=`ls -di .` && 1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1267 as_fn_error $? "working directory cannot be determined" 1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1269 as_fn_error $? "pwd does not report name of working directory" 1270 1271 1272# Find the source files, if location was not specified. 1273if test -z "$srcdir"; then 1274 ac_srcdir_defaulted=yes 1275 # Try the directory containing this script, then the parent directory. 1276 ac_confdir=`$as_dirname -- "$as_myself" || 1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1278 X"$as_myself" : 'X\(//\)[^/]' \| \ 1279 X"$as_myself" : 'X\(//\)$' \| \ 1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1281printf "%s\n" X"$as_myself" | 1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1283 s//\1/ 1284 q 1285 } 1286 /^X\(\/\/\)[^/].*/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)$/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\).*/{ 1295 s//\1/ 1296 q 1297 } 1298 s/.*/./; q'` 1299 srcdir=$ac_confdir 1300 if test ! -r "$srcdir/$ac_unique_file"; then 1301 srcdir=.. 1302 fi 1303else 1304 ac_srcdir_defaulted=no 1305fi 1306if test ! -r "$srcdir/$ac_unique_file"; then 1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1309fi 1310ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1311ac_abs_confdir=`( 1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1313 pwd)` 1314# When building in place, set srcdir=. 1315if test "$ac_abs_confdir" = "$ac_pwd"; then 1316 srcdir=. 1317fi 1318# Remove unnecessary trailing slashes from srcdir. 1319# Double slashes in file names in object file debugging info 1320# mess up M-x gdb in Emacs. 1321case $srcdir in 1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1323esac 1324for ac_var in $ac_precious_vars; do 1325 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1326 eval ac_env_${ac_var}_value=\$${ac_var} 1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1329done 1330 1331# 1332# Report the --help message. 1333# 1334if test "$ac_init_help" = "long"; then 1335 # Omit some internal or obsolete options to make the list less imposing. 1336 # This message is too long to be a string in the A/UX 3.1 sh. 1337 cat <<_ACEOF 1338'configure' configures xrefresh 1.1.0 to adapt to many kinds of systems. 1339 1340Usage: $0 [OPTION]... [VAR=VALUE]... 1341 1342To assign environment variables (e.g., CC, CFLAGS...), specify them as 1343VAR=VALUE. See below for descriptions of some of the useful variables. 1344 1345Defaults for the options are specified in brackets. 1346 1347Configuration: 1348 -h, --help display this help and exit 1349 --help=short display options specific to this package 1350 --help=recursive display the short help of all the included packages 1351 -V, --version display version information and exit 1352 -q, --quiet, --silent do not print 'checking ...' messages 1353 --cache-file=FILE cache test results in FILE [disabled] 1354 -C, --config-cache alias for '--cache-file=config.cache' 1355 -n, --no-create do not create output files 1356 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1357 1358Installation directories: 1359 --prefix=PREFIX install architecture-independent files in PREFIX 1360 [$ac_default_prefix] 1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1362 [PREFIX] 1363 1364By default, 'make install' will install all the files in 1365'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1366an installation prefix other than '$ac_default_prefix' using '--prefix', 1367for instance '--prefix=\$HOME'. 1368 1369For better control, use the options below. 1370 1371Fine tuning of the installation directories: 1372 --bindir=DIR user executables [EPREFIX/bin] 1373 --sbindir=DIR system admin executables [EPREFIX/sbin] 1374 --libexecdir=DIR program executables [EPREFIX/libexec] 1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1378 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1379 --libdir=DIR object code libraries [EPREFIX/lib] 1380 --includedir=DIR C header files [PREFIX/include] 1381 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1384 --infodir=DIR info documentation [DATAROOTDIR/info] 1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1386 --mandir=DIR man documentation [DATAROOTDIR/man] 1387 --docdir=DIR documentation root [DATAROOTDIR/doc/xrefresh] 1388 --htmldir=DIR html documentation [DOCDIR] 1389 --dvidir=DIR dvi documentation [DOCDIR] 1390 --pdfdir=DIR pdf documentation [DOCDIR] 1391 --psdir=DIR ps documentation [DOCDIR] 1392_ACEOF 1393 1394 cat <<\_ACEOF 1395 1396Program names: 1397 --program-prefix=PREFIX prepend PREFIX to installed program names 1398 --program-suffix=SUFFIX append SUFFIX to installed program names 1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1400 1401System types: 1402 --build=BUILD configure for building on BUILD [guessed] 1403 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1404_ACEOF 1405fi 1406 1407if test -n "$ac_init_help"; then 1408 case $ac_init_help in 1409 short | recursive ) echo "Configuration of xrefresh 1.1.0:";; 1410 esac 1411 cat <<\_ACEOF 1412 1413Optional Features: 1414 --disable-option-checking ignore unrecognized --enable/--with options 1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1417 --enable-dependency-tracking 1418 do not reject slow dependency extractors 1419 --disable-dependency-tracking 1420 speeds up one-time build 1421 --enable-silent-rules less verbose build output (undo: "make V=1") 1422 --disable-silent-rules verbose build output (undo: "make V=0") 1423 --disable-selective-werror 1424 Turn off selective compiler errors. (default: 1425 enabled) 1426 --enable-strict-compilation 1427 Enable all warnings from compiler and make them 1428 errors (default: disabled) 1429 1430Some influential environment variables: 1431 CC C compiler command 1432 CFLAGS C compiler flags 1433 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1434 nonstandard directory <lib dir> 1435 LIBS libraries to pass to the linker, e.g. -l<library> 1436 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1437 you have headers in a nonstandard directory <include dir> 1438 PKG_CONFIG path to pkg-config utility 1439 PKG_CONFIG_PATH 1440 directories to add to pkg-config's search path 1441 PKG_CONFIG_LIBDIR 1442 path overriding pkg-config's built-in search path 1443 XREFRESH_CFLAGS 1444 C compiler flags for XREFRESH, overriding pkg-config 1445 XREFRESH_LIBS 1446 linker flags for XREFRESH, overriding pkg-config 1447 1448Use these variables to override the choices made by 'configure' or to help 1449it to find libraries and programs with nonstandard names/locations. 1450 1451Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrefresh/-/issues>. 1452_ACEOF 1453ac_status=$? 1454fi 1455 1456if test "$ac_init_help" = "recursive"; then 1457 # If there are subdirs, report their specific --help. 1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1459 test -d "$ac_dir" || 1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1461 continue 1462 ac_builddir=. 1463 1464case "$ac_dir" in 1465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1466*) 1467 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1468 # A ".." for each directory in $ac_dir_suffix. 1469 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1470 case $ac_top_builddir_sub in 1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1473 esac ;; 1474esac 1475ac_abs_top_builddir=$ac_pwd 1476ac_abs_builddir=$ac_pwd$ac_dir_suffix 1477# for backward compatibility: 1478ac_top_builddir=$ac_top_build_prefix 1479 1480case $srcdir in 1481 .) # We are building in place. 1482 ac_srcdir=. 1483 ac_top_srcdir=$ac_top_builddir_sub 1484 ac_abs_top_srcdir=$ac_pwd ;; 1485 [\\/]* | ?:[\\/]* ) # Absolute name. 1486 ac_srcdir=$srcdir$ac_dir_suffix; 1487 ac_top_srcdir=$srcdir 1488 ac_abs_top_srcdir=$srcdir ;; 1489 *) # Relative name. 1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1491 ac_top_srcdir=$ac_top_build_prefix$srcdir 1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1493esac 1494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1495 1496 cd "$ac_dir" || { ac_status=$?; continue; } 1497 # Check for configure.gnu first; this name is used for a wrapper for 1498 # Metaconfig's "Configure" on case-insensitive file systems. 1499 if test -f "$ac_srcdir/configure.gnu"; then 1500 echo && 1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1502 elif test -f "$ac_srcdir/configure"; then 1503 echo && 1504 $SHELL "$ac_srcdir/configure" --help=recursive 1505 else 1506 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1507 fi || ac_status=$? 1508 cd "$ac_pwd" || { ac_status=$?; break; } 1509 done 1510fi 1511 1512test -n "$ac_init_help" && exit $ac_status 1513if $ac_init_version; then 1514 cat <<\_ACEOF 1515xrefresh configure 1.1.0 1516generated by GNU Autoconf 2.72 1517 1518Copyright (C) 2023 Free Software Foundation, Inc. 1519This configure script is free software; the Free Software Foundation 1520gives unlimited permission to copy, distribute and modify it. 1521_ACEOF 1522 exit 1523fi 1524 1525## ------------------------ ## 1526## Autoconf initialization. ## 1527## ------------------------ ## 1528 1529# ac_fn_c_try_compile LINENO 1530# -------------------------- 1531# Try to compile conftest.$ac_ext, and return whether this succeeded. 1532ac_fn_c_try_compile () 1533{ 1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1535 rm -f conftest.$ac_objext conftest.beam 1536 if { { ac_try="$ac_compile" 1537case "(($ac_try" in 1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1539 *) ac_try_echo=$ac_try;; 1540esac 1541eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1542printf "%s\n" "$ac_try_echo"; } >&5 1543 (eval "$ac_compile") 2>conftest.err 1544 ac_status=$? 1545 if test -s conftest.err; then 1546 grep -v '^ *+' conftest.err >conftest.er1 1547 cat conftest.er1 >&5 1548 mv -f conftest.er1 conftest.err 1549 fi 1550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1551 test $ac_status = 0; } && { 1552 test -z "$ac_c_werror_flag" || 1553 test ! -s conftest.err 1554 } && test -s conftest.$ac_objext 1555then : 1556 ac_retval=0 1557else case e in #( 1558 e) printf "%s\n" "$as_me: failed program was:" >&5 1559sed 's/^/| /' conftest.$ac_ext >&5 1560 1561 ac_retval=1 ;; 1562esac 1563fi 1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1565 as_fn_set_status $ac_retval 1566 1567} # ac_fn_c_try_compile 1568 1569# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1570# ------------------------------------------------------- 1571# Tests whether HEADER exists and can be compiled using the include files in 1572# INCLUDES, setting the cache variable VAR accordingly. 1573ac_fn_c_check_header_compile () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1577printf %s "checking for $2... " >&6; } 1578if eval test \${$3+y} 1579then : 1580 printf %s "(cached) " >&6 1581else case e in #( 1582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1583/* end confdefs.h. */ 1584$4 1585#include <$2> 1586_ACEOF 1587if ac_fn_c_try_compile "$LINENO" 1588then : 1589 eval "$3=yes" 1590else case e in #( 1591 e) eval "$3=no" ;; 1592esac 1593fi 1594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1595esac 1596fi 1597eval ac_res=\$$3 1598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1599printf "%s\n" "$ac_res" >&6; } 1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1601 1602} # ac_fn_c_check_header_compile 1603 1604# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1605# ------------------------------------------------------------------ 1606# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1607# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1608ac_fn_check_decl () 1609{ 1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1611 as_decl_name=`echo $2|sed 's/ *(.*//'` 1612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1613printf %s "checking whether $as_decl_name is declared... " >&6; } 1614if eval test \${$3+y} 1615then : 1616 printf %s "(cached) " >&6 1617else case e in #( 1618 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1619 eval ac_save_FLAGS=\$$6 1620 as_fn_append $6 " $5" 1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1622/* end confdefs.h. */ 1623$4 1624int 1625main (void) 1626{ 1627#ifndef $as_decl_name 1628#ifdef __cplusplus 1629 (void) $as_decl_use; 1630#else 1631 (void) $as_decl_name; 1632#endif 1633#endif 1634 1635 ; 1636 return 0; 1637} 1638_ACEOF 1639if ac_fn_c_try_compile "$LINENO" 1640then : 1641 eval "$3=yes" 1642else case e in #( 1643 e) eval "$3=no" ;; 1644esac 1645fi 1646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1647 eval $6=\$ac_save_FLAGS 1648 ;; 1649esac 1650fi 1651eval ac_res=\$$3 1652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1653printf "%s\n" "$ac_res" >&6; } 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 1656} # ac_fn_check_decl 1657 1658# ac_fn_c_try_link LINENO 1659# ----------------------- 1660# Try to link conftest.$ac_ext, and return whether this succeeded. 1661ac_fn_c_try_link () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1665 if { { ac_try="$ac_link" 1666case "(($ac_try" in 1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1668 *) ac_try_echo=$ac_try;; 1669esac 1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1671printf "%s\n" "$ac_try_echo"; } >&5 1672 (eval "$ac_link") 2>conftest.err 1673 ac_status=$? 1674 if test -s conftest.err; then 1675 grep -v '^ *+' conftest.err >conftest.er1 1676 cat conftest.er1 >&5 1677 mv -f conftest.er1 conftest.err 1678 fi 1679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1680 test $ac_status = 0; } && { 1681 test -z "$ac_c_werror_flag" || 1682 test ! -s conftest.err 1683 } && test -s conftest$ac_exeext && { 1684 test "$cross_compiling" = yes || 1685 test -x conftest$ac_exeext 1686 } 1687then : 1688 ac_retval=0 1689else case e in #( 1690 e) printf "%s\n" "$as_me: failed program was:" >&5 1691sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=1 ;; 1694esac 1695fi 1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1698 # interfere with the next link command; also delete a directory that is 1699 # left behind by Apple's compiler. We do this before executing the actions. 1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702 as_fn_set_status $ac_retval 1703 1704} # ac_fn_c_try_link 1705 1706# ac_fn_c_check_func LINENO FUNC VAR 1707# ---------------------------------- 1708# Tests whether FUNC exists, setting the cache variable VAR accordingly 1709ac_fn_c_check_func () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1713printf %s "checking for $2... " >&6; } 1714if eval test \${$3+y} 1715then : 1716 printf %s "(cached) " >&6 1717else case e in #( 1718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1719/* end confdefs.h. */ 1720/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1721 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1722#define $2 innocuous_$2 1723 1724/* System header to define __stub macros and hopefully few prototypes, 1725 which can conflict with char $2 (void); below. */ 1726 1727#include <limits.h> 1728#undef $2 1729 1730/* Override any GCC internal prototype to avoid an error. 1731 Use char because int might match the return type of a GCC 1732 builtin and then its argument prototype would still apply. */ 1733#ifdef __cplusplus 1734extern "C" 1735#endif 1736char $2 (void); 1737/* The GNU C library defines this for functions which it implements 1738 to always fail with ENOSYS. Some functions are actually named 1739 something starting with __ and the normal name is an alias. */ 1740#if defined __stub_$2 || defined __stub___$2 1741choke me 1742#endif 1743 1744int 1745main (void) 1746{ 1747return $2 (); 1748 ; 1749 return 0; 1750} 1751_ACEOF 1752if ac_fn_c_try_link "$LINENO" 1753then : 1754 eval "$3=yes" 1755else case e in #( 1756 e) eval "$3=no" ;; 1757esac 1758fi 1759rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1760 conftest$ac_exeext conftest.$ac_ext ;; 1761esac 1762fi 1763eval ac_res=\$$3 1764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1765printf "%s\n" "$ac_res" >&6; } 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 1768} # ac_fn_c_check_func 1769ac_configure_args_raw= 1770for ac_arg 1771do 1772 case $ac_arg in 1773 *\'*) 1774 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1775 esac 1776 as_fn_append ac_configure_args_raw " '$ac_arg'" 1777done 1778 1779case $ac_configure_args_raw in 1780 *$as_nl*) 1781 ac_safe_unquote= ;; 1782 *) 1783 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1784 ac_unsafe_a="$ac_unsafe_z#~" 1785 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1786 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1787esac 1788 1789cat >config.log <<_ACEOF 1790This file contains any messages produced by compilers while 1791running configure, to aid debugging if configure makes a mistake. 1792 1793It was created by xrefresh $as_me 1.1.0, which was 1794generated by GNU Autoconf 2.72. Invocation command line was 1795 1796 $ $0$ac_configure_args_raw 1797 1798_ACEOF 1799exec 5>>config.log 1800{ 1801cat <<_ASUNAME 1802## --------- ## 1803## Platform. ## 1804## --------- ## 1805 1806hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1807uname -m = `(uname -m) 2>/dev/null || echo unknown` 1808uname -r = `(uname -r) 2>/dev/null || echo unknown` 1809uname -s = `(uname -s) 2>/dev/null || echo unknown` 1810uname -v = `(uname -v) 2>/dev/null || echo unknown` 1811 1812/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1813/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1814 1815/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1816/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1817/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1818/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1819/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1820/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1821/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1822 1823_ASUNAME 1824 1825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1826for as_dir in $PATH 1827do 1828 IFS=$as_save_IFS 1829 case $as_dir in #((( 1830 '') as_dir=./ ;; 1831 */) ;; 1832 *) as_dir=$as_dir/ ;; 1833 esac 1834 printf "%s\n" "PATH: $as_dir" 1835 done 1836IFS=$as_save_IFS 1837 1838} >&5 1839 1840cat >&5 <<_ACEOF 1841 1842 1843## ----------- ## 1844## Core tests. ## 1845## ----------- ## 1846 1847_ACEOF 1848 1849 1850# Keep a trace of the command line. 1851# Strip out --no-create and --no-recursion so they do not pile up. 1852# Strip out --silent because we don't want to record it for future runs. 1853# Also quote any args containing shell meta-characters. 1854# Make two passes to allow for proper duplicate-argument suppression. 1855ac_configure_args= 1856ac_configure_args0= 1857ac_configure_args1= 1858ac_must_keep_next=false 1859for ac_pass in 1 2 1860do 1861 for ac_arg 1862 do 1863 case $ac_arg in 1864 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1866 | -silent | --silent | --silen | --sile | --sil) 1867 continue ;; 1868 *\'*) 1869 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1870 esac 1871 case $ac_pass in 1872 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1873 2) 1874 as_fn_append ac_configure_args1 " '$ac_arg'" 1875 if test $ac_must_keep_next = true; then 1876 ac_must_keep_next=false # Got value, back to normal. 1877 else 1878 case $ac_arg in 1879 *=* | --config-cache | -C | -disable-* | --disable-* \ 1880 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1881 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1882 | -with-* | --with-* | -without-* | --without-* | --x) 1883 case "$ac_configure_args0 " in 1884 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1885 esac 1886 ;; 1887 -* ) ac_must_keep_next=true ;; 1888 esac 1889 fi 1890 as_fn_append ac_configure_args " '$ac_arg'" 1891 ;; 1892 esac 1893 done 1894done 1895{ ac_configure_args0=; unset ac_configure_args0;} 1896{ ac_configure_args1=; unset ac_configure_args1;} 1897 1898# When interrupted or exit'd, cleanup temporary files, and complete 1899# config.log. We remove comments because anyway the quotes in there 1900# would cause problems or look ugly. 1901# WARNING: Use '\'' to represent an apostrophe within the trap. 1902# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1903trap 'exit_status=$? 1904 # Sanitize IFS. 1905 IFS=" "" $as_nl" 1906 # Save into config.log some information that might help in debugging. 1907 { 1908 echo 1909 1910 printf "%s\n" "## ---------------- ## 1911## Cache variables. ## 1912## ---------------- ##" 1913 echo 1914 # The following way of writing the cache mishandles newlines in values, 1915( 1916 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1917 eval ac_val=\$$ac_var 1918 case $ac_val in #( 1919 *${as_nl}*) 1920 case $ac_var in #( 1921 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1922printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1923 esac 1924 case $ac_var in #( 1925 _ | IFS | as_nl) ;; #( 1926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1927 *) { eval $ac_var=; unset $ac_var;} ;; 1928 esac ;; 1929 esac 1930 done 1931 (set) 2>&1 | 1932 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1933 *${as_nl}ac_space=\ *) 1934 sed -n \ 1935 "s/'\''/'\''\\\\'\'''\''/g; 1936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1937 ;; #( 1938 *) 1939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1940 ;; 1941 esac | 1942 sort 1943) 1944 echo 1945 1946 printf "%s\n" "## ----------------- ## 1947## Output variables. ## 1948## ----------------- ##" 1949 echo 1950 for ac_var in $ac_subst_vars 1951 do 1952 eval ac_val=\$$ac_var 1953 case $ac_val in 1954 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1955 esac 1956 printf "%s\n" "$ac_var='\''$ac_val'\''" 1957 done | sort 1958 echo 1959 1960 if test -n "$ac_subst_files"; then 1961 printf "%s\n" "## ------------------- ## 1962## File substitutions. ## 1963## ------------------- ##" 1964 echo 1965 for ac_var in $ac_subst_files 1966 do 1967 eval ac_val=\$$ac_var 1968 case $ac_val in 1969 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1970 esac 1971 printf "%s\n" "$ac_var='\''$ac_val'\''" 1972 done | sort 1973 echo 1974 fi 1975 1976 if test -s confdefs.h; then 1977 printf "%s\n" "## ----------- ## 1978## confdefs.h. ## 1979## ----------- ##" 1980 echo 1981 cat confdefs.h 1982 echo 1983 fi 1984 test "$ac_signal" != 0 && 1985 printf "%s\n" "$as_me: caught signal $ac_signal" 1986 printf "%s\n" "$as_me: exit $exit_status" 1987 } >&5 1988 rm -f core *.core core.conftest.* && 1989 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1990 exit $exit_status 1991' 0 1992for ac_signal in 1 2 13 15; do 1993 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1994done 1995ac_signal=0 1996 1997# confdefs.h avoids OS command line length limits that DEFS can exceed. 1998rm -f -r conftest* confdefs.h 1999 2000printf "%s\n" "/* confdefs.h */" > confdefs.h 2001 2002# Predefined preprocessor variables. 2003 2004printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2005 2006printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2007 2008printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2009 2010printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2011 2012printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2013 2014printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2015 2016 2017# Let the site file select an alternate cache file if it wants to. 2018# Prefer an explicitly selected file to automatically selected ones. 2019if test -n "$CONFIG_SITE"; then 2020 ac_site_files="$CONFIG_SITE" 2021elif test "x$prefix" != xNONE; then 2022 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2023else 2024 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2025fi 2026 2027for ac_site_file in $ac_site_files 2028do 2029 case $ac_site_file in #( 2030 */*) : 2031 ;; #( 2032 *) : 2033 ac_site_file=./$ac_site_file ;; 2034esac 2035 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2037printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2038 sed 's/^/| /' "$ac_site_file" >&5 2039 . "$ac_site_file" \ 2040 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2041printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2042as_fn_error $? "failed to load site script $ac_site_file 2043See 'config.log' for more details" "$LINENO" 5; } 2044 fi 2045done 2046 2047if test -r "$cache_file"; then 2048 # Some versions of bash will fail to source /dev/null (special files 2049 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2050 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2052printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2053 case $cache_file in 2054 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2055 *) . "./$cache_file";; 2056 esac 2057 fi 2058else 2059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2060printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2061 >$cache_file 2062fi 2063 2064as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2065# Test code for whether the C compiler supports C89 (global declarations) 2066ac_c_conftest_c89_globals=' 2067/* Does the compiler advertise C89 conformance? 2068 Do not test the value of __STDC__, because some compilers set it to 0 2069 while being otherwise adequately conformant. */ 2070#if !defined __STDC__ 2071# error "Compiler does not advertise C89 conformance" 2072#endif 2073 2074#include <stddef.h> 2075#include <stdarg.h> 2076struct stat; 2077/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2078struct buf { int x; }; 2079struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2080static char *e (char **p, int i) 2081{ 2082 return p[i]; 2083} 2084static char *f (char * (*g) (char **, int), char **p, ...) 2085{ 2086 char *s; 2087 va_list v; 2088 va_start (v,p); 2089 s = g (p, va_arg (v,int)); 2090 va_end (v); 2091 return s; 2092} 2093 2094/* C89 style stringification. */ 2095#define noexpand_stringify(a) #a 2096const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2097 2098/* C89 style token pasting. Exercises some of the corner cases that 2099 e.g. old MSVC gets wrong, but not very hard. */ 2100#define noexpand_concat(a,b) a##b 2101#define expand_concat(a,b) noexpand_concat(a,b) 2102extern int vA; 2103extern int vbee; 2104#define aye A 2105#define bee B 2106int *pvA = &expand_concat(v,aye); 2107int *pvbee = &noexpand_concat(v,bee); 2108 2109/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2110 function prototypes and stuff, but not \xHH hex character constants. 2111 These do not provoke an error unfortunately, instead are silently treated 2112 as an "x". The following induces an error, until -std is added to get 2113 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2114 array size at least. It is necessary to write \x00 == 0 to get something 2115 that is true only with -std. */ 2116int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2117 2118/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2119 inside strings and character constants. */ 2120#define FOO(x) '\''x'\'' 2121int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2122 2123int test (int i, double x); 2124struct s1 {int (*f) (int a);}; 2125struct s2 {int (*f) (double a);}; 2126int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2127 int, int);' 2128 2129# Test code for whether the C compiler supports C89 (body of main). 2130ac_c_conftest_c89_main=' 2131ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2132' 2133 2134# Test code for whether the C compiler supports C99 (global declarations) 2135ac_c_conftest_c99_globals=' 2136/* Does the compiler advertise C99 conformance? */ 2137#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2138# error "Compiler does not advertise C99 conformance" 2139#endif 2140 2141// See if C++-style comments work. 2142 2143#include <stdbool.h> 2144extern int puts (const char *); 2145extern int printf (const char *, ...); 2146extern int dprintf (int, const char *, ...); 2147extern void *malloc (size_t); 2148extern void free (void *); 2149 2150// Check varargs macros. These examples are taken from C99 6.10.3.5. 2151// dprintf is used instead of fprintf to avoid needing to declare 2152// FILE and stderr. 2153#define debug(...) dprintf (2, __VA_ARGS__) 2154#define showlist(...) puts (#__VA_ARGS__) 2155#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2156static void 2157test_varargs_macros (void) 2158{ 2159 int x = 1234; 2160 int y = 5678; 2161 debug ("Flag"); 2162 debug ("X = %d\n", x); 2163 showlist (The first, second, and third items.); 2164 report (x>y, "x is %d but y is %d", x, y); 2165} 2166 2167// Check long long types. 2168#define BIG64 18446744073709551615ull 2169#define BIG32 4294967295ul 2170#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2171#if !BIG_OK 2172 #error "your preprocessor is broken" 2173#endif 2174#if BIG_OK 2175#else 2176 #error "your preprocessor is broken" 2177#endif 2178static long long int bignum = -9223372036854775807LL; 2179static unsigned long long int ubignum = BIG64; 2180 2181struct incomplete_array 2182{ 2183 int datasize; 2184 double data[]; 2185}; 2186 2187struct named_init { 2188 int number; 2189 const wchar_t *name; 2190 double average; 2191}; 2192 2193typedef const char *ccp; 2194 2195static inline int 2196test_restrict (ccp restrict text) 2197{ 2198 // Iterate through items via the restricted pointer. 2199 // Also check for declarations in for loops. 2200 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2201 continue; 2202 return 0; 2203} 2204 2205// Check varargs and va_copy. 2206static bool 2207test_varargs (const char *format, ...) 2208{ 2209 va_list args; 2210 va_start (args, format); 2211 va_list args_copy; 2212 va_copy (args_copy, args); 2213 2214 const char *str = ""; 2215 int number = 0; 2216 float fnumber = 0; 2217 2218 while (*format) 2219 { 2220 switch (*format++) 2221 { 2222 case '\''s'\'': // string 2223 str = va_arg (args_copy, const char *); 2224 break; 2225 case '\''d'\'': // int 2226 number = va_arg (args_copy, int); 2227 break; 2228 case '\''f'\'': // float 2229 fnumber = va_arg (args_copy, double); 2230 break; 2231 default: 2232 break; 2233 } 2234 } 2235 va_end (args_copy); 2236 va_end (args); 2237 2238 return *str && number && fnumber; 2239} 2240' 2241 2242# Test code for whether the C compiler supports C99 (body of main). 2243ac_c_conftest_c99_main=' 2244 // Check bool. 2245 _Bool success = false; 2246 success |= (argc != 0); 2247 2248 // Check restrict. 2249 if (test_restrict ("String literal") == 0) 2250 success = true; 2251 char *restrict newvar = "Another string"; 2252 2253 // Check varargs. 2254 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2255 test_varargs_macros (); 2256 2257 // Check flexible array members. 2258 struct incomplete_array *ia = 2259 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2260 ia->datasize = 10; 2261 for (int i = 0; i < ia->datasize; ++i) 2262 ia->data[i] = i * 1.234; 2263 // Work around memory leak warnings. 2264 free (ia); 2265 2266 // Check named initializers. 2267 struct named_init ni = { 2268 .number = 34, 2269 .name = L"Test wide string", 2270 .average = 543.34343, 2271 }; 2272 2273 ni.number = 58; 2274 2275 int dynamic_array[ni.number]; 2276 dynamic_array[0] = argv[0][0]; 2277 dynamic_array[ni.number - 1] = 543; 2278 2279 // work around unused variable warnings 2280 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2281 || dynamic_array[ni.number - 1] != 543); 2282' 2283 2284# Test code for whether the C compiler supports C11 (global declarations) 2285ac_c_conftest_c11_globals=' 2286/* Does the compiler advertise C11 conformance? */ 2287#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2288# error "Compiler does not advertise C11 conformance" 2289#endif 2290 2291// Check _Alignas. 2292char _Alignas (double) aligned_as_double; 2293char _Alignas (0) no_special_alignment; 2294extern char aligned_as_int; 2295char _Alignas (0) _Alignas (int) aligned_as_int; 2296 2297// Check _Alignof. 2298enum 2299{ 2300 int_alignment = _Alignof (int), 2301 int_array_alignment = _Alignof (int[100]), 2302 char_alignment = _Alignof (char) 2303}; 2304_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2305 2306// Check _Noreturn. 2307int _Noreturn does_not_return (void) { for (;;) continue; } 2308 2309// Check _Static_assert. 2310struct test_static_assert 2311{ 2312 int x; 2313 _Static_assert (sizeof (int) <= sizeof (long int), 2314 "_Static_assert does not work in struct"); 2315 long int y; 2316}; 2317 2318// Check UTF-8 literals. 2319#define u8 syntax error! 2320char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2321 2322// Check duplicate typedefs. 2323typedef long *long_ptr; 2324typedef long int *long_ptr; 2325typedef long_ptr long_ptr; 2326 2327// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2328struct anonymous 2329{ 2330 union { 2331 struct { int i; int j; }; 2332 struct { int k; long int l; } w; 2333 }; 2334 int m; 2335} v1; 2336' 2337 2338# Test code for whether the C compiler supports C11 (body of main). 2339ac_c_conftest_c11_main=' 2340 _Static_assert ((offsetof (struct anonymous, i) 2341 == offsetof (struct anonymous, w.k)), 2342 "Anonymous union alignment botch"); 2343 v1.i = 2; 2344 v1.w.k = 5; 2345 ok |= v1.i != 5; 2346' 2347 2348# Test code for whether the C compiler supports C11 (complete). 2349ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2350${ac_c_conftest_c99_globals} 2351${ac_c_conftest_c11_globals} 2352 2353int 2354main (int argc, char **argv) 2355{ 2356 int ok = 0; 2357 ${ac_c_conftest_c89_main} 2358 ${ac_c_conftest_c99_main} 2359 ${ac_c_conftest_c11_main} 2360 return ok; 2361} 2362" 2363 2364# Test code for whether the C compiler supports C99 (complete). 2365ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2366${ac_c_conftest_c99_globals} 2367 2368int 2369main (int argc, char **argv) 2370{ 2371 int ok = 0; 2372 ${ac_c_conftest_c89_main} 2373 ${ac_c_conftest_c99_main} 2374 return ok; 2375} 2376" 2377 2378# Test code for whether the C compiler supports C89 (complete). 2379ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2380 2381int 2382main (int argc, char **argv) 2383{ 2384 int ok = 0; 2385 ${ac_c_conftest_c89_main} 2386 return ok; 2387} 2388" 2389 2390as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2391as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2392as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2393as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2394as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2395as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2396as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2397as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2398as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2399as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2400 2401# Auxiliary files required by this configure script. 2402ac_aux_files="config.guess config.sub missing install-sh compile" 2403 2404# Locations in which to look for auxiliary files. 2405ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2406 2407# Search for a directory containing all of the required auxiliary files, 2408# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2409# If we don't find one directory that contains all the files we need, 2410# we report the set of missing files from the *first* directory in 2411# $ac_aux_dir_candidates and give up. 2412ac_missing_aux_files="" 2413ac_first_candidate=: 2414printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2416as_found=false 2417for as_dir in $ac_aux_dir_candidates 2418do 2419 IFS=$as_save_IFS 2420 case $as_dir in #((( 2421 '') as_dir=./ ;; 2422 */) ;; 2423 *) as_dir=$as_dir/ ;; 2424 esac 2425 as_found=: 2426 2427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2428 ac_aux_dir_found=yes 2429 ac_install_sh= 2430 for ac_aux in $ac_aux_files 2431 do 2432 # As a special case, if "install-sh" is required, that requirement 2433 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2434 # and $ac_install_sh is set appropriately for whichever one is found. 2435 if test x"$ac_aux" = x"install-sh" 2436 then 2437 if test -f "${as_dir}install-sh"; then 2438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2439 ac_install_sh="${as_dir}install-sh -c" 2440 elif test -f "${as_dir}install.sh"; then 2441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2442 ac_install_sh="${as_dir}install.sh -c" 2443 elif test -f "${as_dir}shtool"; then 2444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2445 ac_install_sh="${as_dir}shtool install -c" 2446 else 2447 ac_aux_dir_found=no 2448 if $ac_first_candidate; then 2449 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2450 else 2451 break 2452 fi 2453 fi 2454 else 2455 if test -f "${as_dir}${ac_aux}"; then 2456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2457 else 2458 ac_aux_dir_found=no 2459 if $ac_first_candidate; then 2460 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2461 else 2462 break 2463 fi 2464 fi 2465 fi 2466 done 2467 if test "$ac_aux_dir_found" = yes; then 2468 ac_aux_dir="$as_dir" 2469 break 2470 fi 2471 ac_first_candidate=false 2472 2473 as_found=false 2474done 2475IFS=$as_save_IFS 2476if $as_found 2477then : 2478 2479else case e in #( 2480 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2481esac 2482fi 2483 2484 2485# These three variables are undocumented and unsupported, 2486# and are intended to be withdrawn in a future Autoconf release. 2487# They can cause serious problems if a builder's source tree is in a directory 2488# whose full name contains unusual characters. 2489if test -f "${ac_aux_dir}config.guess"; then 2490 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2491fi 2492if test -f "${ac_aux_dir}config.sub"; then 2493 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2494fi 2495if test -f "$ac_aux_dir/configure"; then 2496 ac_configure="$SHELL ${ac_aux_dir}configure" 2497fi 2498 2499# Check that the precious variables saved in the cache have kept the same 2500# value. 2501ac_cache_corrupted=false 2502for ac_var in $ac_precious_vars; do 2503 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2504 eval ac_new_set=\$ac_env_${ac_var}_set 2505 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2506 eval ac_new_val=\$ac_env_${ac_var}_value 2507 case $ac_old_set,$ac_new_set in 2508 set,) 2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2510printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2511 ac_cache_corrupted=: ;; 2512 ,set) 2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2514printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2515 ac_cache_corrupted=: ;; 2516 ,);; 2517 *) 2518 if test "x$ac_old_val" != "x$ac_new_val"; then 2519 # differences in whitespace do not lead to failure. 2520 ac_old_val_w=`echo x $ac_old_val` 2521 ac_new_val_w=`echo x $ac_new_val` 2522 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2524printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2525 ac_cache_corrupted=: 2526 else 2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2528printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2529 eval $ac_var=\$ac_old_val 2530 fi 2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2532printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2534printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2535 fi;; 2536 esac 2537 # Pass precious variables to config.status. 2538 if test "$ac_new_set" = set; then 2539 case $ac_new_val in 2540 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2541 *) ac_arg=$ac_var=$ac_new_val ;; 2542 esac 2543 case " $ac_configure_args " in 2544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2545 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2546 esac 2547 fi 2548done 2549if $ac_cache_corrupted; then 2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2551printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2553printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2554 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2555 and start over" "$LINENO" 5 2556fi 2557## -------------------- ## 2558## Main body of script. ## 2559## -------------------- ## 2560 2561ac_ext=c 2562ac_cpp='$CPP $CPPFLAGS' 2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2565ac_compiler_gnu=$ac_cv_c_compiler_gnu 2566 2567 2568 2569ac_config_headers="$ac_config_headers config.h" 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582# Expand $ac_aux_dir to an absolute path. 2583am_aux_dir=`cd "$ac_aux_dir" && pwd` 2584 2585ac_ext=c 2586ac_cpp='$CPP $CPPFLAGS' 2587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2589ac_compiler_gnu=$ac_cv_c_compiler_gnu 2590if test -n "$ac_tool_prefix"; then 2591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2592set dummy ${ac_tool_prefix}gcc; ac_word=$2 2593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2594printf %s "checking for $ac_word... " >&6; } 2595if test ${ac_cv_prog_CC+y} 2596then : 2597 printf %s "(cached) " >&6 2598else case e in #( 2599 e) if test -n "$CC"; then 2600 ac_cv_prog_CC="$CC" # Let the user override the test. 2601else 2602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2603for as_dir in $PATH 2604do 2605 IFS=$as_save_IFS 2606 case $as_dir in #((( 2607 '') as_dir=./ ;; 2608 */) ;; 2609 *) as_dir=$as_dir/ ;; 2610 esac 2611 for ac_exec_ext in '' $ac_executable_extensions; do 2612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2613 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2615 break 2 2616 fi 2617done 2618 done 2619IFS=$as_save_IFS 2620 2621fi ;; 2622esac 2623fi 2624CC=$ac_cv_prog_CC 2625if test -n "$CC"; then 2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2627printf "%s\n" "$CC" >&6; } 2628else 2629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2630printf "%s\n" "no" >&6; } 2631fi 2632 2633 2634fi 2635if test -z "$ac_cv_prog_CC"; then 2636 ac_ct_CC=$CC 2637 # Extract the first word of "gcc", so it can be a program name with args. 2638set dummy gcc; ac_word=$2 2639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2640printf %s "checking for $ac_word... " >&6; } 2641if test ${ac_cv_prog_ac_ct_CC+y} 2642then : 2643 printf %s "(cached) " >&6 2644else case e in #( 2645 e) if test -n "$ac_ct_CC"; then 2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2647else 2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2649for as_dir in $PATH 2650do 2651 IFS=$as_save_IFS 2652 case $as_dir in #((( 2653 '') as_dir=./ ;; 2654 */) ;; 2655 *) as_dir=$as_dir/ ;; 2656 esac 2657 for ac_exec_ext in '' $ac_executable_extensions; do 2658 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2659 ac_cv_prog_ac_ct_CC="gcc" 2660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2661 break 2 2662 fi 2663done 2664 done 2665IFS=$as_save_IFS 2666 2667fi ;; 2668esac 2669fi 2670ac_ct_CC=$ac_cv_prog_ac_ct_CC 2671if test -n "$ac_ct_CC"; then 2672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2673printf "%s\n" "$ac_ct_CC" >&6; } 2674else 2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2676printf "%s\n" "no" >&6; } 2677fi 2678 2679 if test "x$ac_ct_CC" = x; then 2680 CC="" 2681 else 2682 case $cross_compiling:$ac_tool_warned in 2683yes:) 2684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2685printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2686ac_tool_warned=yes ;; 2687esac 2688 CC=$ac_ct_CC 2689 fi 2690else 2691 CC="$ac_cv_prog_CC" 2692fi 2693 2694if test -z "$CC"; then 2695 if test -n "$ac_tool_prefix"; then 2696 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2697set dummy ${ac_tool_prefix}cc; ac_word=$2 2698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2699printf %s "checking for $ac_word... " >&6; } 2700if test ${ac_cv_prog_CC+y} 2701then : 2702 printf %s "(cached) " >&6 2703else case e in #( 2704 e) if test -n "$CC"; then 2705 ac_cv_prog_CC="$CC" # Let the user override the test. 2706else 2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2708for as_dir in $PATH 2709do 2710 IFS=$as_save_IFS 2711 case $as_dir in #((( 2712 '') as_dir=./ ;; 2713 */) ;; 2714 *) as_dir=$as_dir/ ;; 2715 esac 2716 for ac_exec_ext in '' $ac_executable_extensions; do 2717 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2718 ac_cv_prog_CC="${ac_tool_prefix}cc" 2719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2720 break 2 2721 fi 2722done 2723 done 2724IFS=$as_save_IFS 2725 2726fi ;; 2727esac 2728fi 2729CC=$ac_cv_prog_CC 2730if test -n "$CC"; then 2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2732printf "%s\n" "$CC" >&6; } 2733else 2734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2735printf "%s\n" "no" >&6; } 2736fi 2737 2738 2739 fi 2740fi 2741if test -z "$CC"; then 2742 # Extract the first word of "cc", so it can be a program name with args. 2743set dummy cc; ac_word=$2 2744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2745printf %s "checking for $ac_word... " >&6; } 2746if test ${ac_cv_prog_CC+y} 2747then : 2748 printf %s "(cached) " >&6 2749else case e in #( 2750 e) if test -n "$CC"; then 2751 ac_cv_prog_CC="$CC" # Let the user override the test. 2752else 2753 ac_prog_rejected=no 2754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755for as_dir in $PATH 2756do 2757 IFS=$as_save_IFS 2758 case $as_dir in #((( 2759 '') as_dir=./ ;; 2760 */) ;; 2761 *) as_dir=$as_dir/ ;; 2762 esac 2763 for ac_exec_ext in '' $ac_executable_extensions; do 2764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2765 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2766 ac_prog_rejected=yes 2767 continue 2768 fi 2769 ac_cv_prog_CC="cc" 2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2771 break 2 2772 fi 2773done 2774 done 2775IFS=$as_save_IFS 2776 2777if test $ac_prog_rejected = yes; then 2778 # We found a bogon in the path, so make sure we never use it. 2779 set dummy $ac_cv_prog_CC 2780 shift 2781 if test $# != 0; then 2782 # We chose a different compiler from the bogus one. 2783 # However, it has the same basename, so the bogon will be chosen 2784 # first if we set CC to just the basename; use the full file name. 2785 shift 2786 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2787 fi 2788fi 2789fi ;; 2790esac 2791fi 2792CC=$ac_cv_prog_CC 2793if test -n "$CC"; then 2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2795printf "%s\n" "$CC" >&6; } 2796else 2797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2798printf "%s\n" "no" >&6; } 2799fi 2800 2801 2802fi 2803if test -z "$CC"; then 2804 if test -n "$ac_tool_prefix"; then 2805 for ac_prog in cl.exe 2806 do 2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2808set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2810printf %s "checking for $ac_word... " >&6; } 2811if test ${ac_cv_prog_CC+y} 2812then : 2813 printf %s "(cached) " >&6 2814else case e in #( 2815 e) if test -n "$CC"; then 2816 ac_cv_prog_CC="$CC" # Let the user override the test. 2817else 2818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2819for as_dir in $PATH 2820do 2821 IFS=$as_save_IFS 2822 case $as_dir in #((( 2823 '') as_dir=./ ;; 2824 */) ;; 2825 *) as_dir=$as_dir/ ;; 2826 esac 2827 for ac_exec_ext in '' $ac_executable_extensions; do 2828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2829 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2831 break 2 2832 fi 2833done 2834 done 2835IFS=$as_save_IFS 2836 2837fi ;; 2838esac 2839fi 2840CC=$ac_cv_prog_CC 2841if test -n "$CC"; then 2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2843printf "%s\n" "$CC" >&6; } 2844else 2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846printf "%s\n" "no" >&6; } 2847fi 2848 2849 2850 test -n "$CC" && break 2851 done 2852fi 2853if test -z "$CC"; then 2854 ac_ct_CC=$CC 2855 for ac_prog in cl.exe 2856do 2857 # Extract the first word of "$ac_prog", so it can be a program name with args. 2858set dummy $ac_prog; ac_word=$2 2859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2860printf %s "checking for $ac_word... " >&6; } 2861if test ${ac_cv_prog_ac_ct_CC+y} 2862then : 2863 printf %s "(cached) " >&6 2864else case e in #( 2865 e) if test -n "$ac_ct_CC"; then 2866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2867else 2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869for as_dir in $PATH 2870do 2871 IFS=$as_save_IFS 2872 case $as_dir in #((( 2873 '') as_dir=./ ;; 2874 */) ;; 2875 *) as_dir=$as_dir/ ;; 2876 esac 2877 for ac_exec_ext in '' $ac_executable_extensions; do 2878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2879 ac_cv_prog_ac_ct_CC="$ac_prog" 2880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2881 break 2 2882 fi 2883done 2884 done 2885IFS=$as_save_IFS 2886 2887fi ;; 2888esac 2889fi 2890ac_ct_CC=$ac_cv_prog_ac_ct_CC 2891if test -n "$ac_ct_CC"; then 2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2893printf "%s\n" "$ac_ct_CC" >&6; } 2894else 2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2896printf "%s\n" "no" >&6; } 2897fi 2898 2899 2900 test -n "$ac_ct_CC" && break 2901done 2902 2903 if test "x$ac_ct_CC" = x; then 2904 CC="" 2905 else 2906 case $cross_compiling:$ac_tool_warned in 2907yes:) 2908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2909printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2910ac_tool_warned=yes ;; 2911esac 2912 CC=$ac_ct_CC 2913 fi 2914fi 2915 2916fi 2917if test -z "$CC"; then 2918 if test -n "$ac_tool_prefix"; then 2919 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2920set dummy ${ac_tool_prefix}clang; ac_word=$2 2921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922printf %s "checking for $ac_word... " >&6; } 2923if test ${ac_cv_prog_CC+y} 2924then : 2925 printf %s "(cached) " >&6 2926else case e in #( 2927 e) if test -n "$CC"; then 2928 ac_cv_prog_CC="$CC" # Let the user override the test. 2929else 2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 case $as_dir in #((( 2935 '') as_dir=./ ;; 2936 */) ;; 2937 *) as_dir=$as_dir/ ;; 2938 esac 2939 for ac_exec_ext in '' $ac_executable_extensions; do 2940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2941 ac_cv_prog_CC="${ac_tool_prefix}clang" 2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949fi ;; 2950esac 2951fi 2952CC=$ac_cv_prog_CC 2953if test -n "$CC"; then 2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2955printf "%s\n" "$CC" >&6; } 2956else 2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2958printf "%s\n" "no" >&6; } 2959fi 2960 2961 2962fi 2963if test -z "$ac_cv_prog_CC"; then 2964 ac_ct_CC=$CC 2965 # Extract the first word of "clang", so it can be a program name with args. 2966set dummy clang; ac_word=$2 2967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2968printf %s "checking for $ac_word... " >&6; } 2969if test ${ac_cv_prog_ac_ct_CC+y} 2970then : 2971 printf %s "(cached) " >&6 2972else case e in #( 2973 e) if test -n "$ac_ct_CC"; then 2974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2975else 2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977for as_dir in $PATH 2978do 2979 IFS=$as_save_IFS 2980 case $as_dir in #((( 2981 '') as_dir=./ ;; 2982 */) ;; 2983 *) as_dir=$as_dir/ ;; 2984 esac 2985 for ac_exec_ext in '' $ac_executable_extensions; do 2986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2987 ac_cv_prog_ac_ct_CC="clang" 2988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2989 break 2 2990 fi 2991done 2992 done 2993IFS=$as_save_IFS 2994 2995fi ;; 2996esac 2997fi 2998ac_ct_CC=$ac_cv_prog_ac_ct_CC 2999if test -n "$ac_ct_CC"; then 3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3001printf "%s\n" "$ac_ct_CC" >&6; } 3002else 3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3004printf "%s\n" "no" >&6; } 3005fi 3006 3007 if test "x$ac_ct_CC" = x; then 3008 CC="" 3009 else 3010 case $cross_compiling:$ac_tool_warned in 3011yes:) 3012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3013printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3014ac_tool_warned=yes ;; 3015esac 3016 CC=$ac_ct_CC 3017 fi 3018else 3019 CC="$ac_cv_prog_CC" 3020fi 3021 3022fi 3023 3024 3025test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3026printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3027as_fn_error $? "no acceptable C compiler found in \$PATH 3028See 'config.log' for more details" "$LINENO" 5; } 3029 3030# Provide some information about the compiler. 3031printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3032set X $ac_compile 3033ac_compiler=$2 3034for ac_option in --version -v -V -qversion -version; do 3035 { { ac_try="$ac_compiler $ac_option >&5" 3036case "(($ac_try" in 3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3038 *) ac_try_echo=$ac_try;; 3039esac 3040eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3041printf "%s\n" "$ac_try_echo"; } >&5 3042 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3043 ac_status=$? 3044 if test -s conftest.err; then 3045 sed '10a\ 3046... rest of stderr output deleted ... 3047 10q' conftest.err >conftest.er1 3048 cat conftest.er1 >&5 3049 fi 3050 rm -f conftest.er1 conftest.err 3051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3052 test $ac_status = 0; } 3053done 3054 3055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3056/* end confdefs.h. */ 3057 3058int 3059main (void) 3060{ 3061 3062 ; 3063 return 0; 3064} 3065_ACEOF 3066ac_clean_files_save=$ac_clean_files 3067ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3068# Try to create an executable without -o first, disregard a.out. 3069# It will help us diagnose broken compilers, and finding out an intuition 3070# of exeext. 3071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3072printf %s "checking whether the C compiler works... " >&6; } 3073ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3074 3075# The possible output files: 3076ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3077 3078ac_rmfiles= 3079for ac_file in $ac_files 3080do 3081 case $ac_file in 3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3083 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3084 esac 3085done 3086rm -f $ac_rmfiles 3087 3088if { { ac_try="$ac_link_default" 3089case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092esac 3093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3094printf "%s\n" "$ac_try_echo"; } >&5 3095 (eval "$ac_link_default") 2>&5 3096 ac_status=$? 3097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3098 test $ac_status = 0; } 3099then : 3100 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3101# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3102# in a Makefile. We should not override ac_cv_exeext if it was cached, 3103# so that the user can short-circuit this test for compilers unknown to 3104# Autoconf. 3105for ac_file in $ac_files '' 3106do 3107 test -f "$ac_file" || continue 3108 case $ac_file in 3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3110 ;; 3111 [ab].out ) 3112 # We found the default executable, but exeext='' is most 3113 # certainly right. 3114 break;; 3115 *.* ) 3116 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3117 then :; else 3118 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3119 fi 3120 # We set ac_cv_exeext here because the later test for it is not 3121 # safe: cross compilers may not add the suffix if given an '-o' 3122 # argument, so we may need to know it at that point already. 3123 # Even if this section looks crufty: it has the advantage of 3124 # actually working. 3125 break;; 3126 * ) 3127 break;; 3128 esac 3129done 3130test "$ac_cv_exeext" = no && ac_cv_exeext= 3131 3132else case e in #( 3133 e) ac_file='' ;; 3134esac 3135fi 3136if test -z "$ac_file" 3137then : 3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3139printf "%s\n" "no" >&6; } 3140printf "%s\n" "$as_me: failed program was:" >&5 3141sed 's/^/| /' conftest.$ac_ext >&5 3142 3143{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3144printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3145as_fn_error 77 "C compiler cannot create executables 3146See 'config.log' for more details" "$LINENO" 5; } 3147else case e in #( 3148 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3149printf "%s\n" "yes" >&6; } ;; 3150esac 3151fi 3152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3153printf %s "checking for C compiler default output file name... " >&6; } 3154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3155printf "%s\n" "$ac_file" >&6; } 3156ac_exeext=$ac_cv_exeext 3157 3158rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3159ac_clean_files=$ac_clean_files_save 3160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3161printf %s "checking for suffix of executables... " >&6; } 3162if { { ac_try="$ac_link" 3163case "(($ac_try" in 3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3165 *) ac_try_echo=$ac_try;; 3166esac 3167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3168printf "%s\n" "$ac_try_echo"; } >&5 3169 (eval "$ac_link") 2>&5 3170 ac_status=$? 3171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3172 test $ac_status = 0; } 3173then : 3174 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3175# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3176# work properly (i.e., refer to 'conftest.exe'), while it won't with 3177# 'rm'. 3178for ac_file in conftest.exe conftest conftest.*; do 3179 test -f "$ac_file" || continue 3180 case $ac_file in 3181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3182 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3183 break;; 3184 * ) break;; 3185 esac 3186done 3187else case e in #( 3188 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3189printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3190as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3191See 'config.log' for more details" "$LINENO" 5; } ;; 3192esac 3193fi 3194rm -f conftest conftest$ac_cv_exeext 3195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3196printf "%s\n" "$ac_cv_exeext" >&6; } 3197 3198rm -f conftest.$ac_ext 3199EXEEXT=$ac_cv_exeext 3200ac_exeext=$EXEEXT 3201cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3202/* end confdefs.h. */ 3203#include <stdio.h> 3204int 3205main (void) 3206{ 3207FILE *f = fopen ("conftest.out", "w"); 3208 if (!f) 3209 return 1; 3210 return ferror (f) || fclose (f) != 0; 3211 3212 ; 3213 return 0; 3214} 3215_ACEOF 3216ac_clean_files="$ac_clean_files conftest.out" 3217# Check that the compiler produces executables we can run. If not, either 3218# the compiler is broken, or we cross compile. 3219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3220printf %s "checking whether we are cross compiling... " >&6; } 3221if test "$cross_compiling" != yes; then 3222 { { ac_try="$ac_link" 3223case "(($ac_try" in 3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3225 *) ac_try_echo=$ac_try;; 3226esac 3227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3228printf "%s\n" "$ac_try_echo"; } >&5 3229 (eval "$ac_link") 2>&5 3230 ac_status=$? 3231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3232 test $ac_status = 0; } 3233 if { ac_try='./conftest$ac_cv_exeext' 3234 { { case "(($ac_try" in 3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3236 *) ac_try_echo=$ac_try;; 3237esac 3238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3239printf "%s\n" "$ac_try_echo"; } >&5 3240 (eval "$ac_try") 2>&5 3241 ac_status=$? 3242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3243 test $ac_status = 0; }; }; then 3244 cross_compiling=no 3245 else 3246 if test "$cross_compiling" = maybe; then 3247 cross_compiling=yes 3248 else 3249 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3250printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3251as_fn_error 77 "cannot run C compiled programs. 3252If you meant to cross compile, use '--host'. 3253See 'config.log' for more details" "$LINENO" 5; } 3254 fi 3255 fi 3256fi 3257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3258printf "%s\n" "$cross_compiling" >&6; } 3259 3260rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 3261 conftest.o conftest.obj conftest.out 3262ac_clean_files=$ac_clean_files_save 3263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3264printf %s "checking for suffix of object files... " >&6; } 3265if test ${ac_cv_objext+y} 3266then : 3267 printf %s "(cached) " >&6 3268else case e in #( 3269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3270/* end confdefs.h. */ 3271 3272int 3273main (void) 3274{ 3275 3276 ; 3277 return 0; 3278} 3279_ACEOF 3280rm -f conftest.o conftest.obj 3281if { { ac_try="$ac_compile" 3282case "(($ac_try" in 3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3284 *) ac_try_echo=$ac_try;; 3285esac 3286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3287printf "%s\n" "$ac_try_echo"; } >&5 3288 (eval "$ac_compile") 2>&5 3289 ac_status=$? 3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3291 test $ac_status = 0; } 3292then : 3293 for ac_file in conftest.o conftest.obj conftest.*; do 3294 test -f "$ac_file" || continue; 3295 case $ac_file in 3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3298 break;; 3299 esac 3300done 3301else case e in #( 3302 e) printf "%s\n" "$as_me: failed program was:" >&5 3303sed 's/^/| /' conftest.$ac_ext >&5 3304 3305{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3306printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3307as_fn_error $? "cannot compute suffix of object files: cannot compile 3308See 'config.log' for more details" "$LINENO" 5; } ;; 3309esac 3310fi 3311rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 3312esac 3313fi 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3315printf "%s\n" "$ac_cv_objext" >&6; } 3316OBJEXT=$ac_cv_objext 3317ac_objext=$OBJEXT 3318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3319printf %s "checking whether the compiler supports GNU C... " >&6; } 3320if test ${ac_cv_c_compiler_gnu+y} 3321then : 3322 printf %s "(cached) " >&6 3323else case e in #( 3324 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3325/* end confdefs.h. */ 3326 3327int 3328main (void) 3329{ 3330#ifndef __GNUC__ 3331 choke me 3332#endif 3333 3334 ; 3335 return 0; 3336} 3337_ACEOF 3338if ac_fn_c_try_compile "$LINENO" 3339then : 3340 ac_compiler_gnu=yes 3341else case e in #( 3342 e) ac_compiler_gnu=no ;; 3343esac 3344fi 3345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3346ac_cv_c_compiler_gnu=$ac_compiler_gnu 3347 ;; 3348esac 3349fi 3350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3351printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3352ac_compiler_gnu=$ac_cv_c_compiler_gnu 3353 3354if test $ac_compiler_gnu = yes; then 3355 GCC=yes 3356else 3357 GCC= 3358fi 3359ac_test_CFLAGS=${CFLAGS+y} 3360ac_save_CFLAGS=$CFLAGS 3361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3362printf %s "checking whether $CC accepts -g... " >&6; } 3363if test ${ac_cv_prog_cc_g+y} 3364then : 3365 printf %s "(cached) " >&6 3366else case e in #( 3367 e) ac_save_c_werror_flag=$ac_c_werror_flag 3368 ac_c_werror_flag=yes 3369 ac_cv_prog_cc_g=no 3370 CFLAGS="-g" 3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3372/* end confdefs.h. */ 3373 3374int 3375main (void) 3376{ 3377 3378 ; 3379 return 0; 3380} 3381_ACEOF 3382if ac_fn_c_try_compile "$LINENO" 3383then : 3384 ac_cv_prog_cc_g=yes 3385else case e in #( 3386 e) CFLAGS="" 3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3388/* end confdefs.h. */ 3389 3390int 3391main (void) 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398if ac_fn_c_try_compile "$LINENO" 3399then : 3400 3401else case e in #( 3402 e) ac_c_werror_flag=$ac_save_c_werror_flag 3403 CFLAGS="-g" 3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3405/* end confdefs.h. */ 3406 3407int 3408main (void) 3409{ 3410 3411 ; 3412 return 0; 3413} 3414_ACEOF 3415if ac_fn_c_try_compile "$LINENO" 3416then : 3417 ac_cv_prog_cc_g=yes 3418fi 3419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3420esac 3421fi 3422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3423esac 3424fi 3425rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3426 ac_c_werror_flag=$ac_save_c_werror_flag ;; 3427esac 3428fi 3429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3430printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3431if test $ac_test_CFLAGS; then 3432 CFLAGS=$ac_save_CFLAGS 3433elif test $ac_cv_prog_cc_g = yes; then 3434 if test "$GCC" = yes; then 3435 CFLAGS="-g -O2" 3436 else 3437 CFLAGS="-g" 3438 fi 3439else 3440 if test "$GCC" = yes; then 3441 CFLAGS="-O2" 3442 else 3443 CFLAGS= 3444 fi 3445fi 3446ac_prog_cc_stdc=no 3447if test x$ac_prog_cc_stdc = xno 3448then : 3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3450printf %s "checking for $CC option to enable C11 features... " >&6; } 3451if test ${ac_cv_prog_cc_c11+y} 3452then : 3453 printf %s "(cached) " >&6 3454else case e in #( 3455 e) ac_cv_prog_cc_c11=no 3456ac_save_CC=$CC 3457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3458/* end confdefs.h. */ 3459$ac_c_conftest_c11_program 3460_ACEOF 3461for ac_arg in '' -std=gnu11 3462do 3463 CC="$ac_save_CC $ac_arg" 3464 if ac_fn_c_try_compile "$LINENO" 3465then : 3466 ac_cv_prog_cc_c11=$ac_arg 3467fi 3468rm -f core conftest.err conftest.$ac_objext conftest.beam 3469 test "x$ac_cv_prog_cc_c11" != "xno" && break 3470done 3471rm -f conftest.$ac_ext 3472CC=$ac_save_CC ;; 3473esac 3474fi 3475 3476if test "x$ac_cv_prog_cc_c11" = xno 3477then : 3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3479printf "%s\n" "unsupported" >&6; } 3480else case e in #( 3481 e) if test "x$ac_cv_prog_cc_c11" = x 3482then : 3483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3484printf "%s\n" "none needed" >&6; } 3485else case e in #( 3486 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3487printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3488 CC="$CC $ac_cv_prog_cc_c11" ;; 3489esac 3490fi 3491 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3492 ac_prog_cc_stdc=c11 ;; 3493esac 3494fi 3495fi 3496if test x$ac_prog_cc_stdc = xno 3497then : 3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3499printf %s "checking for $CC option to enable C99 features... " >&6; } 3500if test ${ac_cv_prog_cc_c99+y} 3501then : 3502 printf %s "(cached) " >&6 3503else case e in #( 3504 e) ac_cv_prog_cc_c99=no 3505ac_save_CC=$CC 3506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508$ac_c_conftest_c99_program 3509_ACEOF 3510for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3511do 3512 CC="$ac_save_CC $ac_arg" 3513 if ac_fn_c_try_compile "$LINENO" 3514then : 3515 ac_cv_prog_cc_c99=$ac_arg 3516fi 3517rm -f core conftest.err conftest.$ac_objext conftest.beam 3518 test "x$ac_cv_prog_cc_c99" != "xno" && break 3519done 3520rm -f conftest.$ac_ext 3521CC=$ac_save_CC ;; 3522esac 3523fi 3524 3525if test "x$ac_cv_prog_cc_c99" = xno 3526then : 3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3528printf "%s\n" "unsupported" >&6; } 3529else case e in #( 3530 e) if test "x$ac_cv_prog_cc_c99" = x 3531then : 3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3533printf "%s\n" "none needed" >&6; } 3534else case e in #( 3535 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3536printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3537 CC="$CC $ac_cv_prog_cc_c99" ;; 3538esac 3539fi 3540 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3541 ac_prog_cc_stdc=c99 ;; 3542esac 3543fi 3544fi 3545if test x$ac_prog_cc_stdc = xno 3546then : 3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3548printf %s "checking for $CC option to enable C89 features... " >&6; } 3549if test ${ac_cv_prog_cc_c89+y} 3550then : 3551 printf %s "(cached) " >&6 3552else case e in #( 3553 e) ac_cv_prog_cc_c89=no 3554ac_save_CC=$CC 3555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556/* end confdefs.h. */ 3557$ac_c_conftest_c89_program 3558_ACEOF 3559for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3560do 3561 CC="$ac_save_CC $ac_arg" 3562 if ac_fn_c_try_compile "$LINENO" 3563then : 3564 ac_cv_prog_cc_c89=$ac_arg 3565fi 3566rm -f core conftest.err conftest.$ac_objext conftest.beam 3567 test "x$ac_cv_prog_cc_c89" != "xno" && break 3568done 3569rm -f conftest.$ac_ext 3570CC=$ac_save_CC ;; 3571esac 3572fi 3573 3574if test "x$ac_cv_prog_cc_c89" = xno 3575then : 3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3577printf "%s\n" "unsupported" >&6; } 3578else case e in #( 3579 e) if test "x$ac_cv_prog_cc_c89" = x 3580then : 3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3582printf "%s\n" "none needed" >&6; } 3583else case e in #( 3584 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3585printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3586 CC="$CC $ac_cv_prog_cc_c89" ;; 3587esac 3588fi 3589 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3590 ac_prog_cc_stdc=c89 ;; 3591esac 3592fi 3593fi 3594 3595ac_ext=c 3596ac_cpp='$CPP $CPPFLAGS' 3597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3599ac_compiler_gnu=$ac_cv_c_compiler_gnu 3600 3601 3602 ac_ext=c 3603ac_cpp='$CPP $CPPFLAGS' 3604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3606ac_compiler_gnu=$ac_cv_c_compiler_gnu 3607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3608printf %s "checking whether $CC understands -c and -o together... " >&6; } 3609if test ${am_cv_prog_cc_c_o+y} 3610then : 3611 printf %s "(cached) " >&6 3612else case e in #( 3613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3614/* end confdefs.h. */ 3615 3616int 3617main (void) 3618{ 3619 3620 ; 3621 return 0; 3622} 3623_ACEOF 3624 # Make sure it works both with $CC and with simple cc. 3625 # Following AC_PROG_CC_C_O, we do the test twice because some 3626 # compilers refuse to overwrite an existing .o file with -o, 3627 # though they will create one. 3628 am_cv_prog_cc_c_o=yes 3629 for am_i in 1 2; do 3630 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3631 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3632 ac_status=$? 3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3634 (exit $ac_status); } \ 3635 && test -f conftest2.$ac_objext; then 3636 : OK 3637 else 3638 am_cv_prog_cc_c_o=no 3639 break 3640 fi 3641 done 3642 rm -f core conftest* 3643 unset am_i ;; 3644esac 3645fi 3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3647printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 3648if test "$am_cv_prog_cc_c_o" != yes; then 3649 # Losing compiler, so override with the script. 3650 # FIXME: It is wrong to rewrite CC. 3651 # But if we don't then we get into trouble of one sort or another. 3652 # A longer-term fix would be to have automake use am__CC in this case, 3653 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3654 CC="$am_aux_dir/compile $CC" 3655fi 3656ac_ext=c 3657ac_cpp='$CPP $CPPFLAGS' 3658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3660ac_compiler_gnu=$ac_cv_c_compiler_gnu 3661 3662 3663 3664ac_header= ac_cache= 3665for ac_item in $ac_header_c_list 3666do 3667 if test $ac_cache; then 3668 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3669 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3670 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3671 fi 3672 ac_header= ac_cache= 3673 elif test $ac_header; then 3674 ac_cache=$ac_item 3675 else 3676 ac_header=$ac_item 3677 fi 3678done 3679 3680 3681 3682 3683 3684 3685 3686 3687if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3688then : 3689 3690printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3691 3692fi 3693 3694 3695 3696 3697 3698 3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3700printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3701if test ${ac_cv_safe_to_define___extensions__+y} 3702then : 3703 printf %s "(cached) " >&6 3704else case e in #( 3705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3706/* end confdefs.h. */ 3707 3708# define __EXTENSIONS__ 1 3709 $ac_includes_default 3710int 3711main (void) 3712{ 3713 3714 ; 3715 return 0; 3716} 3717_ACEOF 3718if ac_fn_c_try_compile "$LINENO" 3719then : 3720 ac_cv_safe_to_define___extensions__=yes 3721else case e in #( 3722 e) ac_cv_safe_to_define___extensions__=no ;; 3723esac 3724fi 3725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3726esac 3727fi 3728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3729printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 3730 3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 3732printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 3733if test ${ac_cv_should_define__xopen_source+y} 3734then : 3735 printf %s "(cached) " >&6 3736else case e in #( 3737 e) ac_cv_should_define__xopen_source=no 3738 if test $ac_cv_header_wchar_h = yes 3739then : 3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742 3743 #include <wchar.h> 3744 mbstate_t x; 3745int 3746main (void) 3747{ 3748 3749 ; 3750 return 0; 3751} 3752_ACEOF 3753if ac_fn_c_try_compile "$LINENO" 3754then : 3755 3756else case e in #( 3757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3758/* end confdefs.h. */ 3759 3760 #define _XOPEN_SOURCE 500 3761 #include <wchar.h> 3762 mbstate_t x; 3763int 3764main (void) 3765{ 3766 3767 ; 3768 return 0; 3769} 3770_ACEOF 3771if ac_fn_c_try_compile "$LINENO" 3772then : 3773 ac_cv_should_define__xopen_source=yes 3774fi 3775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 3776esac 3777fi 3778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3779fi ;; 3780esac 3781fi 3782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 3783printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 3784 3785 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 3786 3787 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3788 3789 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 3790 3791 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 3792 3793 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3794 3795 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 3796 3797 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3798 3799 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 3800 3801 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 3802 3803 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 3804 3805 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 3806 3807 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 3808 3809 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 3810 3811 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 3812 3813 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 3814 3815 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 3816 3817 if test $ac_cv_header_minix_config_h = yes 3818then : 3819 MINIX=yes 3820 printf "%s\n" "#define _MINIX 1" >>confdefs.h 3821 3822 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 3823 3824 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 3825 3826else case e in #( 3827 e) MINIX= ;; 3828esac 3829fi 3830 if test $ac_cv_safe_to_define___extensions__ = yes 3831then : 3832 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 3833 3834fi 3835 if test $ac_cv_should_define__xopen_source = yes 3836then : 3837 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 3838 3839fi 3840 3841 3842# Initialize Automake 3843am__api_version='1.16' 3844 3845 3846 # Find a good install program. We prefer a C program (faster), 3847# so one script is as good as another. But avoid the broken or 3848# incompatible versions: 3849# SysV /etc/install, /usr/sbin/install 3850# SunOS /usr/etc/install 3851# IRIX /sbin/install 3852# AIX /bin/install 3853# AmigaOS /C/install, which installs bootblocks on floppy discs 3854# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3855# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3856# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3857# OS/2's system install, which has a completely different semantic 3858# ./install, which can be erroneously created by make from ./install.sh. 3859# Reject install programs that cannot install multiple files. 3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3861printf %s "checking for a BSD-compatible install... " >&6; } 3862if test -z "$INSTALL"; then 3863if test ${ac_cv_path_install+y} 3864then : 3865 printf %s "(cached) " >&6 3866else case e in #( 3867 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3868for as_dir in $PATH 3869do 3870 IFS=$as_save_IFS 3871 case $as_dir in #((( 3872 '') as_dir=./ ;; 3873 */) ;; 3874 *) as_dir=$as_dir/ ;; 3875 esac 3876 # Account for fact that we put trailing slashes in our PATH walk. 3877case $as_dir in #(( 3878 ./ | /[cC]/* | \ 3879 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3880 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3881 /usr/ucb/* ) ;; 3882 *) 3883 # OSF1 and SCO ODT 3.0 have their own names for install. 3884 # Don't use installbsd from OSF since it installs stuff as root 3885 # by default. 3886 for ac_prog in ginstall scoinst install; do 3887 for ac_exec_ext in '' $ac_executable_extensions; do 3888 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 3889 if test $ac_prog = install && 3890 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3891 # AIX install. It has an incompatible calling convention. 3892 : 3893 elif test $ac_prog = install && 3894 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3895 # program-specific install script used by HP pwplus--don't use. 3896 : 3897 else 3898 rm -rf conftest.one conftest.two conftest.dir 3899 echo one > conftest.one 3900 echo two > conftest.two 3901 mkdir conftest.dir 3902 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3903 test -s conftest.one && test -s conftest.two && 3904 test -s conftest.dir/conftest.one && 3905 test -s conftest.dir/conftest.two 3906 then 3907 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3908 break 3 3909 fi 3910 fi 3911 fi 3912 done 3913 done 3914 ;; 3915esac 3916 3917 done 3918IFS=$as_save_IFS 3919 3920rm -rf conftest.one conftest.two conftest.dir 3921 ;; 3922esac 3923fi 3924 if test ${ac_cv_path_install+y}; then 3925 INSTALL=$ac_cv_path_install 3926 else 3927 # As a last resort, use the slow shell script. Don't cache a 3928 # value for INSTALL within a source directory, because that will 3929 # break other packages using the cache if that directory is 3930 # removed, or if the value is a relative name. 3931 INSTALL=$ac_install_sh 3932 fi 3933fi 3934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3935printf "%s\n" "$INSTALL" >&6; } 3936 3937# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3938# It thinks the first close brace ends the variable substitution. 3939test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3940 3941test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3942 3943test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3944 3945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3946printf %s "checking whether build environment is sane... " >&6; } 3947# Reject unsafe characters in $srcdir or the absolute working directory 3948# name. Accept space and tab only in the latter. 3949am_lf=' 3950' 3951case `pwd` in 3952 *[\\\"\#\$\&\'\`$am_lf]*) 3953 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3954esac 3955case $srcdir in 3956 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3957 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3958esac 3959 3960# Do 'set' in a subshell so we don't clobber the current shell's 3961# arguments. Must try -L first in case configure is actually a 3962# symlink; some systems play weird games with the mod time of symlinks 3963# (eg FreeBSD returns the mod time of the symlink's containing 3964# directory). 3965if ( 3966 am_has_slept=no 3967 for am_try in 1 2; do 3968 echo "timestamp, slept: $am_has_slept" > conftest.file 3969 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3970 if test "$*" = "X"; then 3971 # -L didn't work. 3972 set X `ls -t "$srcdir/configure" conftest.file` 3973 fi 3974 if test "$*" != "X $srcdir/configure conftest.file" \ 3975 && test "$*" != "X conftest.file $srcdir/configure"; then 3976 3977 # If neither matched, then we have a broken ls. This can happen 3978 # if, for instance, CONFIG_SHELL is bash and it inherits a 3979 # broken ls alias from the environment. This has actually 3980 # happened. Such a system could not be considered "sane". 3981 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3982 alias in your environment" "$LINENO" 5 3983 fi 3984 if test "$2" = conftest.file || test $am_try -eq 2; then 3985 break 3986 fi 3987 # Just in case. 3988 sleep 1 3989 am_has_slept=yes 3990 done 3991 test "$2" = conftest.file 3992 ) 3993then 3994 # Ok. 3995 : 3996else 3997 as_fn_error $? "newly created file is older than distributed files! 3998Check your system clock" "$LINENO" 5 3999fi 4000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4001printf "%s\n" "yes" >&6; } 4002# If we didn't sleep, we still need to ensure time stamps of config.status and 4003# generated files are strictly newer. 4004am_sleep_pid= 4005if grep 'slept: no' conftest.file >/dev/null 2>&1; then 4006 ( sleep 1 ) & 4007 am_sleep_pid=$! 4008fi 4009 4010rm -f conftest.file 4011 4012test "$program_prefix" != NONE && 4013 program_transform_name="s&^&$program_prefix&;$program_transform_name" 4014# Use a double $ so make ignores it. 4015test "$program_suffix" != NONE && 4016 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 4017# Double any \ or $. 4018# By default was 's,x,x', remove it if useless. 4019ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 4020program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 4021 4022 4023 if test x"${MISSING+set}" != xset; then 4024 MISSING="\${SHELL} '$am_aux_dir/missing'" 4025fi 4026# Use eval to expand $SHELL 4027if eval "$MISSING --is-lightweight"; then 4028 am_missing_run="$MISSING " 4029else 4030 am_missing_run= 4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 4032printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 4033fi 4034 4035if test x"${install_sh+set}" != xset; then 4036 case $am_aux_dir in 4037 *\ * | *\ *) 4038 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4039 *) 4040 install_sh="\${SHELL} $am_aux_dir/install-sh" 4041 esac 4042fi 4043 4044# Installed binaries are usually stripped using 'strip' when the user 4045# run "make install-strip". However 'strip' might not be the right 4046# tool to use in cross-compilation environments, therefore Automake 4047# will honor the 'STRIP' environment variable to overrule this program. 4048if test "$cross_compiling" != no; then 4049 if test -n "$ac_tool_prefix"; then 4050 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4051set dummy ${ac_tool_prefix}strip; ac_word=$2 4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4053printf %s "checking for $ac_word... " >&6; } 4054if test ${ac_cv_prog_STRIP+y} 4055then : 4056 printf %s "(cached) " >&6 4057else case e in #( 4058 e) if test -n "$STRIP"; then 4059 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4060else 4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4062for as_dir in $PATH 4063do 4064 IFS=$as_save_IFS 4065 case $as_dir in #((( 4066 '') as_dir=./ ;; 4067 */) ;; 4068 *) as_dir=$as_dir/ ;; 4069 esac 4070 for ac_exec_ext in '' $ac_executable_extensions; do 4071 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4072 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4074 break 2 4075 fi 4076done 4077 done 4078IFS=$as_save_IFS 4079 4080fi ;; 4081esac 4082fi 4083STRIP=$ac_cv_prog_STRIP 4084if test -n "$STRIP"; then 4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4086printf "%s\n" "$STRIP" >&6; } 4087else 4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4089printf "%s\n" "no" >&6; } 4090fi 4091 4092 4093fi 4094if test -z "$ac_cv_prog_STRIP"; then 4095 ac_ct_STRIP=$STRIP 4096 # Extract the first word of "strip", so it can be a program name with args. 4097set dummy strip; ac_word=$2 4098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4099printf %s "checking for $ac_word... " >&6; } 4100if test ${ac_cv_prog_ac_ct_STRIP+y} 4101then : 4102 printf %s "(cached) " >&6 4103else case e in #( 4104 e) if test -n "$ac_ct_STRIP"; then 4105 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4106else 4107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4108for as_dir in $PATH 4109do 4110 IFS=$as_save_IFS 4111 case $as_dir in #((( 4112 '') as_dir=./ ;; 4113 */) ;; 4114 *) as_dir=$as_dir/ ;; 4115 esac 4116 for ac_exec_ext in '' $ac_executable_extensions; do 4117 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4118 ac_cv_prog_ac_ct_STRIP="strip" 4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4120 break 2 4121 fi 4122done 4123 done 4124IFS=$as_save_IFS 4125 4126fi ;; 4127esac 4128fi 4129ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4130if test -n "$ac_ct_STRIP"; then 4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4132printf "%s\n" "$ac_ct_STRIP" >&6; } 4133else 4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4135printf "%s\n" "no" >&6; } 4136fi 4137 4138 if test "x$ac_ct_STRIP" = x; then 4139 STRIP=":" 4140 else 4141 case $cross_compiling:$ac_tool_warned in 4142yes:) 4143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4144printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4145ac_tool_warned=yes ;; 4146esac 4147 STRIP=$ac_ct_STRIP 4148 fi 4149else 4150 STRIP="$ac_cv_prog_STRIP" 4151fi 4152 4153fi 4154INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4155 4156 4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 4158printf %s "checking for a race-free mkdir -p... " >&6; } 4159if test -z "$MKDIR_P"; then 4160 if test ${ac_cv_path_mkdir+y} 4161then : 4162 printf %s "(cached) " >&6 4163else case e in #( 4164 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4165for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4166do 4167 IFS=$as_save_IFS 4168 case $as_dir in #((( 4169 '') as_dir=./ ;; 4170 */) ;; 4171 *) as_dir=$as_dir/ ;; 4172 esac 4173 for ac_prog in mkdir gmkdir; do 4174 for ac_exec_ext in '' $ac_executable_extensions; do 4175 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 4176 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 4177 'mkdir ('*'coreutils) '* | \ 4178 *'BusyBox '* | \ 4179 'mkdir (fileutils) '4.1*) 4180 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 4181 break 3;; 4182 esac 4183 done 4184 done 4185 done 4186IFS=$as_save_IFS 4187 ;; 4188esac 4189fi 4190 4191 test -d ./--version && rmdir ./--version 4192 if test ${ac_cv_path_mkdir+y}; then 4193 MKDIR_P="$ac_cv_path_mkdir -p" 4194 else 4195 # As a last resort, use plain mkdir -p, 4196 # in the hope it doesn't have the bugs of ancient mkdir. 4197 MKDIR_P='mkdir -p' 4198 fi 4199fi 4200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4201printf "%s\n" "$MKDIR_P" >&6; } 4202 4203for ac_prog in gawk mawk nawk awk 4204do 4205 # Extract the first word of "$ac_prog", so it can be a program name with args. 4206set dummy $ac_prog; ac_word=$2 4207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4208printf %s "checking for $ac_word... " >&6; } 4209if test ${ac_cv_prog_AWK+y} 4210then : 4211 printf %s "(cached) " >&6 4212else case e in #( 4213 e) if test -n "$AWK"; then 4214 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4215else 4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4217for as_dir in $PATH 4218do 4219 IFS=$as_save_IFS 4220 case $as_dir in #((( 4221 '') as_dir=./ ;; 4222 */) ;; 4223 *) as_dir=$as_dir/ ;; 4224 esac 4225 for ac_exec_ext in '' $ac_executable_extensions; do 4226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4227 ac_cv_prog_AWK="$ac_prog" 4228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4229 break 2 4230 fi 4231done 4232 done 4233IFS=$as_save_IFS 4234 4235fi ;; 4236esac 4237fi 4238AWK=$ac_cv_prog_AWK 4239if test -n "$AWK"; then 4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4241printf "%s\n" "$AWK" >&6; } 4242else 4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4244printf "%s\n" "no" >&6; } 4245fi 4246 4247 4248 test -n "$AWK" && break 4249done 4250 4251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4252printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4253set x ${MAKE-make} 4254ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4255if eval test \${ac_cv_prog_make_${ac_make}_set+y} 4256then : 4257 printf %s "(cached) " >&6 4258else case e in #( 4259 e) cat >conftest.make <<\_ACEOF 4260SHELL = /bin/sh 4261all: 4262 @echo '@@@%%%=$(MAKE)=@@@%%%' 4263_ACEOF 4264# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4265case `${MAKE-make} -f conftest.make 2>/dev/null` in 4266 *@@@%%%=?*=@@@%%%*) 4267 eval ac_cv_prog_make_${ac_make}_set=yes;; 4268 *) 4269 eval ac_cv_prog_make_${ac_make}_set=no;; 4270esac 4271rm -f conftest.make ;; 4272esac 4273fi 4274if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4276printf "%s\n" "yes" >&6; } 4277 SET_MAKE= 4278else 4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4280printf "%s\n" "no" >&6; } 4281 SET_MAKE="MAKE=${MAKE-make}" 4282fi 4283 4284rm -rf .tst 2>/dev/null 4285mkdir .tst 2>/dev/null 4286if test -d .tst; then 4287 am__leading_dot=. 4288else 4289 am__leading_dot=_ 4290fi 4291rmdir .tst 2>/dev/null 4292 4293DEPDIR="${am__leading_dot}deps" 4294 4295ac_config_commands="$ac_config_commands depfiles" 4296 4297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4298printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 4299cat > confinc.mk << 'END' 4300am__doit: 4301 @echo this is the am__doit target >confinc.out 4302.PHONY: am__doit 4303END 4304am__include="#" 4305am__quote= 4306# BSD make does it like this. 4307echo '.include "confinc.mk" # ignored' > confmf.BSD 4308# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4309echo 'include confinc.mk # ignored' > confmf.GNU 4310_am_result=no 4311for s in GNU BSD; do 4312 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4313 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4314 ac_status=$? 4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4316 (exit $ac_status); } 4317 case $?:`cat confinc.out 2>/dev/null` in #( 4318 '0:this is the am__doit target') : 4319 case $s in #( 4320 BSD) : 4321 am__include='.include' am__quote='"' ;; #( 4322 *) : 4323 am__include='include' am__quote='' ;; 4324esac ;; #( 4325 *) : 4326 ;; 4327esac 4328 if test "$am__include" != "#"; then 4329 _am_result="yes ($s style)" 4330 break 4331 fi 4332done 4333rm -f confinc.* confmf.* 4334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4335printf "%s\n" "${_am_result}" >&6; } 4336 4337# Check whether --enable-dependency-tracking was given. 4338if test ${enable_dependency_tracking+y} 4339then : 4340 enableval=$enable_dependency_tracking; 4341fi 4342 4343if test "x$enable_dependency_tracking" != xno; then 4344 am_depcomp="$ac_aux_dir/depcomp" 4345 AMDEPBACKSLASH='\' 4346 am__nodep='_no' 4347fi 4348 if test "x$enable_dependency_tracking" != xno; then 4349 AMDEP_TRUE= 4350 AMDEP_FALSE='#' 4351else 4352 AMDEP_TRUE='#' 4353 AMDEP_FALSE= 4354fi 4355 4356 4357# Check whether --enable-silent-rules was given. 4358if test ${enable_silent_rules+y} 4359then : 4360 enableval=$enable_silent_rules; 4361fi 4362 4363case $enable_silent_rules in # ((( 4364 yes) AM_DEFAULT_VERBOSITY=0;; 4365 no) AM_DEFAULT_VERBOSITY=1;; 4366 *) AM_DEFAULT_VERBOSITY=1;; 4367esac 4368am_make=${MAKE-make} 4369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4370printf %s "checking whether $am_make supports nested variables... " >&6; } 4371if test ${am_cv_make_support_nested_variables+y} 4372then : 4373 printf %s "(cached) " >&6 4374else case e in #( 4375 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 4376BAR0=false 4377BAR1=true 4378V=1 4379am__doit: 4380 @$(TRUE) 4381.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4382 am_cv_make_support_nested_variables=yes 4383else 4384 am_cv_make_support_nested_variables=no 4385fi ;; 4386esac 4387fi 4388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4389printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 4390if test $am_cv_make_support_nested_variables = yes; then 4391 AM_V='$(V)' 4392 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4393else 4394 AM_V=$AM_DEFAULT_VERBOSITY 4395 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4396fi 4397AM_BACKSLASH='\' 4398 4399if test "`cd $srcdir && pwd`" != "`pwd`"; then 4400 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4401 # is not polluted with repeated "-I." 4402 am__isrc=' -I$(srcdir)' 4403 # test to see if srcdir already configured 4404 if test -f $srcdir/config.status; then 4405 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4406 fi 4407fi 4408 4409# test whether we have cygpath 4410if test -z "$CYGPATH_W"; then 4411 if (cygpath --version) >/dev/null 2>/dev/null; then 4412 CYGPATH_W='cygpath -w' 4413 else 4414 CYGPATH_W=echo 4415 fi 4416fi 4417 4418 4419# Define the identity of the package. 4420 PACKAGE='xrefresh' 4421 VERSION='1.1.0' 4422 4423 4424printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 4425 4426 4427printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 4428 4429# Some tools Automake needs. 4430 4431ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4432 4433 4434AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4435 4436 4437AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4438 4439 4440AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4441 4442 4443MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4444 4445# For better backward compatibility. To be removed once Automake 1.9.x 4446# dies out for good. For more background, see: 4447# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4448# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4449mkdir_p='$(MKDIR_P)' 4450 4451# We need awk for the "check" target (and possibly the TAP driver). The 4452# system "awk" is bad on some platforms. 4453# Always define AMTAR for backward compatibility. Yes, it's still used 4454# in the wild :-( We should find a proper way to deprecate it ... 4455AMTAR='$${TAR-tar}' 4456 4457 4458# We'll loop over all known methods to create a tar archive until one works. 4459_am_tools='gnutar pax cpio none' 4460 4461am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4462 4463 4464 4465 4466 4467depcc="$CC" am_compiler_list= 4468 4469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4470printf %s "checking dependency style of $depcc... " >&6; } 4471if test ${am_cv_CC_dependencies_compiler_type+y} 4472then : 4473 printf %s "(cached) " >&6 4474else case e in #( 4475 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4476 # We make a subdir and do the tests there. Otherwise we can end up 4477 # making bogus files that we don't know about and never remove. For 4478 # instance it was reported that on HP-UX the gcc test will end up 4479 # making a dummy file named 'D' -- because '-MD' means "put the output 4480 # in D". 4481 rm -rf conftest.dir 4482 mkdir conftest.dir 4483 # Copy depcomp to subdir because otherwise we won't find it if we're 4484 # using a relative directory. 4485 cp "$am_depcomp" conftest.dir 4486 cd conftest.dir 4487 # We will build objects and dependencies in a subdirectory because 4488 # it helps to detect inapplicable dependency modes. For instance 4489 # both Tru64's cc and ICC support -MD to output dependencies as a 4490 # side effect of compilation, but ICC will put the dependencies in 4491 # the current directory while Tru64 will put them in the object 4492 # directory. 4493 mkdir sub 4494 4495 am_cv_CC_dependencies_compiler_type=none 4496 if test "$am_compiler_list" = ""; then 4497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4498 fi 4499 am__universal=false 4500 case " $depcc " in #( 4501 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4502 esac 4503 4504 for depmode in $am_compiler_list; do 4505 # Setup a source with many dependencies, because some compilers 4506 # like to wrap large dependency lists on column 80 (with \), and 4507 # we should not choose a depcomp mode which is confused by this. 4508 # 4509 # We need to recreate these files for each test, as the compiler may 4510 # overwrite some of them when testing with obscure command lines. 4511 # This happens at least with the AIX C compiler. 4512 : > sub/conftest.c 4513 for i in 1 2 3 4 5 6; do 4514 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4515 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4516 # Solaris 10 /bin/sh. 4517 echo '/* dummy */' > sub/conftst$i.h 4518 done 4519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4520 4521 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4522 # mode. It turns out that the SunPro C++ compiler does not properly 4523 # handle '-M -o', and we need to detect this. Also, some Intel 4524 # versions had trouble with output in subdirs. 4525 am__obj=sub/conftest.${OBJEXT-o} 4526 am__minus_obj="-o $am__obj" 4527 case $depmode in 4528 gcc) 4529 # This depmode causes a compiler race in universal mode. 4530 test "$am__universal" = false || continue 4531 ;; 4532 nosideeffect) 4533 # After this tag, mechanisms are not by side-effect, so they'll 4534 # only be used when explicitly requested. 4535 if test "x$enable_dependency_tracking" = xyes; then 4536 continue 4537 else 4538 break 4539 fi 4540 ;; 4541 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4542 # This compiler won't grok '-c -o', but also, the minuso test has 4543 # not run yet. These depmodes are late enough in the game, and 4544 # so weak that their functioning should not be impacted. 4545 am__obj=conftest.${OBJEXT-o} 4546 am__minus_obj= 4547 ;; 4548 none) break ;; 4549 esac 4550 if depmode=$depmode \ 4551 source=sub/conftest.c object=$am__obj \ 4552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4553 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4554 >/dev/null 2>conftest.err && 4555 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4557 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4559 # icc doesn't choke on unknown options, it will just issue warnings 4560 # or remarks (even with -Werror). So we grep stderr for any message 4561 # that says an option was ignored or not supported. 4562 # When given -MP, icc 7.0 and 7.1 complain thusly: 4563 # icc: Command line warning: ignoring option '-M'; no argument required 4564 # The diagnosis changed in icc 8.0: 4565 # icc: Command line remark: option '-MP' not supported 4566 if (grep 'ignoring option' conftest.err || 4567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4568 am_cv_CC_dependencies_compiler_type=$depmode 4569 break 4570 fi 4571 fi 4572 done 4573 4574 cd .. 4575 rm -rf conftest.dir 4576else 4577 am_cv_CC_dependencies_compiler_type=none 4578fi 4579 ;; 4580esac 4581fi 4582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4583printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4584CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4585 4586 if 4587 test "x$enable_dependency_tracking" != xno \ 4588 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4589 am__fastdepCC_TRUE= 4590 am__fastdepCC_FALSE='#' 4591else 4592 am__fastdepCC_TRUE='#' 4593 am__fastdepCC_FALSE= 4594fi 4595 4596 4597# Variables for tags utilities; see am/tags.am 4598if test -z "$CTAGS"; then 4599 CTAGS=ctags 4600fi 4601 4602if test -z "$ETAGS"; then 4603 ETAGS=etags 4604fi 4605 4606if test -z "$CSCOPE"; then 4607 CSCOPE=cscope 4608fi 4609 4610 4611 4612# POSIX will say in a future version that running "rm -f" with no argument 4613# is OK; and we want to be able to make that assumption in our Makefile 4614# recipes. So use an aggressive probe to check that the usage we want is 4615# actually supported "in the wild" to an acceptable degree. 4616# See automake bug#10828. 4617# To make any issue more visible, cause the running configure to be aborted 4618# by default if the 'rm' program in use doesn't match our expectations; the 4619# user can still override this though. 4620if rm -f && rm -fr && rm -rf; then : OK; else 4621 cat >&2 <<'END' 4622Oops! 4623 4624Your 'rm' program seems unable to run without file operands specified 4625on the command line, even when the '-f' option is present. This is contrary 4626to the behaviour of most rm programs out there, and not conforming with 4627the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4628 4629Please tell bug-automake@gnu.org about your system, including the value 4630of your $PATH and any error possibly output before this message. This 4631can help us improve future automake versions. 4632 4633END 4634 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4635 echo 'Configuration will proceed anyway, since you have set the' >&2 4636 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4637 echo >&2 4638 else 4639 cat >&2 <<'END' 4640Aborting the configuration process, to ensure you take notice of the issue. 4641 4642You can download and install GNU coreutils to get an 'rm' implementation 4643that behaves properly: <https://www.gnu.org/software/coreutils/>. 4644 4645If you want to complete the configuration process using your problematic 4646'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4647to "yes", and re-run configure. 4648 4649END 4650 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4651 fi 4652fi 4653 4654 4655# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4668printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4669if test ${ac_cv_c_undeclared_builtin_options+y} 4670then : 4671 printf %s "(cached) " >&6 4672else case e in #( 4673 e) ac_save_CFLAGS=$CFLAGS 4674 ac_cv_c_undeclared_builtin_options='cannot detect' 4675 for ac_arg in '' -fno-builtin; do 4676 CFLAGS="$ac_save_CFLAGS $ac_arg" 4677 # This test program should *not* compile successfully. 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4679/* end confdefs.h. */ 4680 4681int 4682main (void) 4683{ 4684(void) strchr; 4685 ; 4686 return 0; 4687} 4688_ACEOF 4689if ac_fn_c_try_compile "$LINENO" 4690then : 4691 4692else case e in #( 4693 e) # This test program should compile successfully. 4694 # No library function is consistently available on 4695 # freestanding implementations, so test against a dummy 4696 # declaration. Include always-available headers on the 4697 # off chance that they somehow elicit warnings. 4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4699/* end confdefs.h. */ 4700#include <float.h> 4701#include <limits.h> 4702#include <stdarg.h> 4703#include <stddef.h> 4704extern void ac_decl (int, char *); 4705 4706int 4707main (void) 4708{ 4709(void) ac_decl (0, (char *) 0); 4710 (void) ac_decl; 4711 4712 ; 4713 return 0; 4714} 4715_ACEOF 4716if ac_fn_c_try_compile "$LINENO" 4717then : 4718 if test x"$ac_arg" = x 4719then : 4720 ac_cv_c_undeclared_builtin_options='none needed' 4721else case e in #( 4722 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4723esac 4724fi 4725 break 4726fi 4727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4728esac 4729fi 4730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4731 done 4732 CFLAGS=$ac_save_CFLAGS 4733 ;; 4734esac 4735fi 4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4737printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4738 case $ac_cv_c_undeclared_builtin_options in #( 4739 'cannot detect') : 4740 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4741printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4742as_fn_error $? "cannot make $CC report undeclared builtins 4743See 'config.log' for more details" "$LINENO" 5; } ;; #( 4744 'none needed') : 4745 ac_c_undeclared_builtin_options='' ;; #( 4746 *) : 4747 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4748esac 4749 4750 4751 4752 4753 4754ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4755if test "x$ac_cv_have_decl___clang__" = xyes 4756then : 4757 CLANGCC="yes" 4758else case e in #( 4759 e) CLANGCC="no" ;; 4760esac 4761fi 4762ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4763if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4764then : 4765 INTELCC="yes" 4766else case e in #( 4767 e) INTELCC="no" ;; 4768esac 4769fi 4770ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4771if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4772then : 4773 SUNCC="yes" 4774else case e in #( 4775 e) SUNCC="no" ;; 4776esac 4777fi 4778 4779 4780 4781 4782 4783 4784 4785 4786if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4787 if test -n "$ac_tool_prefix"; then 4788 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4789set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4791printf %s "checking for $ac_word... " >&6; } 4792if test ${ac_cv_path_PKG_CONFIG+y} 4793then : 4794 printf %s "(cached) " >&6 4795else case e in #( 4796 e) case $PKG_CONFIG in 4797 [\\/]* | ?:[\\/]*) 4798 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4799 ;; 4800 *) 4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4802for as_dir in $PATH 4803do 4804 IFS=$as_save_IFS 4805 case $as_dir in #((( 4806 '') as_dir=./ ;; 4807 */) ;; 4808 *) as_dir=$as_dir/ ;; 4809 esac 4810 for ac_exec_ext in '' $ac_executable_extensions; do 4811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4812 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4814 break 2 4815 fi 4816done 4817 done 4818IFS=$as_save_IFS 4819 4820 ;; 4821esac ;; 4822esac 4823fi 4824PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4825if test -n "$PKG_CONFIG"; then 4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4827printf "%s\n" "$PKG_CONFIG" >&6; } 4828else 4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4830printf "%s\n" "no" >&6; } 4831fi 4832 4833 4834fi 4835if test -z "$ac_cv_path_PKG_CONFIG"; then 4836 ac_pt_PKG_CONFIG=$PKG_CONFIG 4837 # Extract the first word of "pkg-config", so it can be a program name with args. 4838set dummy pkg-config; ac_word=$2 4839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4840printf %s "checking for $ac_word... " >&6; } 4841if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4842then : 4843 printf %s "(cached) " >&6 4844else case e in #( 4845 e) case $ac_pt_PKG_CONFIG in 4846 [\\/]* | ?:[\\/]*) 4847 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4848 ;; 4849 *) 4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4851for as_dir in $PATH 4852do 4853 IFS=$as_save_IFS 4854 case $as_dir in #((( 4855 '') as_dir=./ ;; 4856 */) ;; 4857 *) as_dir=$as_dir/ ;; 4858 esac 4859 for ac_exec_ext in '' $ac_executable_extensions; do 4860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4861 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4863 break 2 4864 fi 4865done 4866 done 4867IFS=$as_save_IFS 4868 4869 ;; 4870esac ;; 4871esac 4872fi 4873ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4874if test -n "$ac_pt_PKG_CONFIG"; then 4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4876printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4877else 4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4879printf "%s\n" "no" >&6; } 4880fi 4881 4882 if test "x$ac_pt_PKG_CONFIG" = x; then 4883 PKG_CONFIG="" 4884 else 4885 case $cross_compiling:$ac_tool_warned in 4886yes:) 4887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4888printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4889ac_tool_warned=yes ;; 4890esac 4891 PKG_CONFIG=$ac_pt_PKG_CONFIG 4892 fi 4893else 4894 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4895fi 4896 4897fi 4898if test -n "$PKG_CONFIG"; then 4899 _pkg_min_version=0.9.0 4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4901printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4902 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4904printf "%s\n" "yes" >&6; } 4905 else 4906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4907printf "%s\n" "no" >&6; } 4908 PKG_CONFIG="" 4909 fi 4910fi 4911 4912 4913 # Make sure we can run config.sub. 4914$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4915 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4916 4917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4918printf %s "checking build system type... " >&6; } 4919if test ${ac_cv_build+y} 4920then : 4921 printf %s "(cached) " >&6 4922else case e in #( 4923 e) ac_build_alias=$build_alias 4924test "x$ac_build_alias" = x && 4925 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4926test "x$ac_build_alias" = x && 4927 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4928ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4929 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4930 ;; 4931esac 4932fi 4933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4934printf "%s\n" "$ac_cv_build" >&6; } 4935case $ac_cv_build in 4936*-*-*) ;; 4937*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4938esac 4939build=$ac_cv_build 4940ac_save_IFS=$IFS; IFS='-' 4941set x $ac_cv_build 4942shift 4943build_cpu=$1 4944build_vendor=$2 4945shift; shift 4946# Remember, the first character of IFS is used to create $*, 4947# except with old shells: 4948build_os=$* 4949IFS=$ac_save_IFS 4950case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4951 4952 4953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4954printf %s "checking host system type... " >&6; } 4955if test ${ac_cv_host+y} 4956then : 4957 printf %s "(cached) " >&6 4958else case e in #( 4959 e) if test "x$host_alias" = x; then 4960 ac_cv_host=$ac_cv_build 4961else 4962 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4963 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4964fi 4965 ;; 4966esac 4967fi 4968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4969printf "%s\n" "$ac_cv_host" >&6; } 4970case $ac_cv_host in 4971*-*-*) ;; 4972*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4973esac 4974host=$ac_cv_host 4975ac_save_IFS=$IFS; IFS='-' 4976set x $ac_cv_host 4977shift 4978host_cpu=$1 4979host_vendor=$2 4980shift; shift 4981# Remember, the first character of IFS is used to create $*, 4982# except with old shells: 4983host_os=$* 4984IFS=$ac_save_IFS 4985case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4986 4987 4988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4989printf %s "checking for a sed that does not truncate output... " >&6; } 4990if test ${ac_cv_path_SED+y} 4991then : 4992 printf %s "(cached) " >&6 4993else case e in #( 4994 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4995 for ac_i in 1 2 3 4 5 6 7; do 4996 ac_script="$ac_script$as_nl$ac_script" 4997 done 4998 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4999 { ac_script=; unset ac_script;} 5000 if test -z "$SED"; then 5001 ac_path_SED_found=false 5002 # Loop through the user's path and test for each of PROGNAME-LIST 5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5004for as_dir in $PATH 5005do 5006 IFS=$as_save_IFS 5007 case $as_dir in #((( 5008 '') as_dir=./ ;; 5009 */) ;; 5010 *) as_dir=$as_dir/ ;; 5011 esac 5012 for ac_prog in sed gsed 5013 do 5014 for ac_exec_ext in '' $ac_executable_extensions; do 5015 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5016 as_fn_executable_p "$ac_path_SED" || continue 5017# Check for GNU ac_path_SED and select it if it is found. 5018 # Check for GNU $ac_path_SED 5019case `"$ac_path_SED" --version 2>&1` in #( 5020*GNU*) 5021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5022#( 5023*) 5024 ac_count=0 5025 printf %s 0123456789 >"conftest.in" 5026 while : 5027 do 5028 cat "conftest.in" "conftest.in" >"conftest.tmp" 5029 mv "conftest.tmp" "conftest.in" 5030 cp "conftest.in" "conftest.nl" 5031 printf "%s\n" '' >> "conftest.nl" 5032 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5034 as_fn_arith $ac_count + 1 && ac_count=$as_val 5035 if test $ac_count -gt ${ac_path_SED_max-0}; then 5036 # Best one so far, save it but keep looking for a better one 5037 ac_cv_path_SED="$ac_path_SED" 5038 ac_path_SED_max=$ac_count 5039 fi 5040 # 10*(2^10) chars as input seems more than enough 5041 test $ac_count -gt 10 && break 5042 done 5043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5044esac 5045 5046 $ac_path_SED_found && break 3 5047 done 5048 done 5049 done 5050IFS=$as_save_IFS 5051 if test -z "$ac_cv_path_SED"; then 5052 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5053 fi 5054else 5055 ac_cv_path_SED=$SED 5056fi 5057 ;; 5058esac 5059fi 5060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5061printf "%s\n" "$ac_cv_path_SED" >&6; } 5062 SED="$ac_cv_path_SED" 5063 rm -f conftest.sed 5064 5065 5066 5067 5068 5069 5070# Check whether --enable-selective-werror was given. 5071if test ${enable_selective_werror+y} 5072then : 5073 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5074else case e in #( 5075 e) SELECTIVE_WERROR=yes ;; 5076esac 5077fi 5078 5079 5080 5081 5082 5083# -v is too short to test reliably with XORG_TESTSET_CFLAG 5084if test "x$SUNCC" = "xyes"; then 5085 BASE_CFLAGS="-v" 5086else 5087 BASE_CFLAGS="" 5088fi 5089 5090# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104xorg_testset_save_CFLAGS="$CFLAGS" 5105 5106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5109printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5110if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5111then : 5112 printf %s "(cached) " >&6 5113else case e in #( 5114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115/* end confdefs.h. */ 5116int i; 5117_ACEOF 5118if ac_fn_c_try_compile "$LINENO" 5119then : 5120 xorg_cv_cc_flag_unknown_warning_option=yes 5121else case e in #( 5122 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5123esac 5124fi 5125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5126esac 5127fi 5128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5129printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5130 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5131 CFLAGS="$xorg_testset_save_CFLAGS" 5132fi 5133 5134if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5137 fi 5138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5140printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5141if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5142then : 5143 printf %s "(cached) " >&6 5144else case e in #( 5145 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5146/* end confdefs.h. */ 5147int i; 5148_ACEOF 5149if ac_fn_c_try_compile "$LINENO" 5150then : 5151 xorg_cv_cc_flag_unused_command_line_argument=yes 5152else case e in #( 5153 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5154esac 5155fi 5156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5157esac 5158fi 5159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5160printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5162 CFLAGS="$xorg_testset_save_CFLAGS" 5163fi 5164 5165found="no" 5166 5167 if test $found = "no" ; then 5168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5170 fi 5171 5172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5174 fi 5175 5176 CFLAGS="$CFLAGS -Wall" 5177 5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5179printf %s "checking if $CC supports -Wall... " >&6; } 5180 cacheid=xorg_cv_cc_flag__Wall 5181 if eval test \${$cacheid+y} 5182then : 5183 printf %s "(cached) " >&6 5184else case e in #( 5185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5186/* end confdefs.h. */ 5187int i; 5188int 5189main (void) 5190{ 5191 5192 ; 5193 return 0; 5194} 5195_ACEOF 5196if ac_fn_c_try_link "$LINENO" 5197then : 5198 eval $cacheid=yes 5199else case e in #( 5200 e) eval $cacheid=no ;; 5201esac 5202fi 5203rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5204 conftest$ac_exeext conftest.$ac_ext ;; 5205esac 5206fi 5207 5208 5209 CFLAGS="$xorg_testset_save_CFLAGS" 5210 5211 eval supported=\$$cacheid 5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5213printf "%s\n" "$supported" >&6; } 5214 if test "$supported" = "yes" ; then 5215 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5216 found="yes" 5217 fi 5218 fi 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234xorg_testset_save_CFLAGS="$CFLAGS" 5235 5236if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5239printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5240if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5241then : 5242 printf %s "(cached) " >&6 5243else case e in #( 5244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5245/* end confdefs.h. */ 5246int i; 5247_ACEOF 5248if ac_fn_c_try_compile "$LINENO" 5249then : 5250 xorg_cv_cc_flag_unknown_warning_option=yes 5251else case e in #( 5252 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5253esac 5254fi 5255rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5256esac 5257fi 5258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5259printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5261 CFLAGS="$xorg_testset_save_CFLAGS" 5262fi 5263 5264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5267 fi 5268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5270printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5271if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5272then : 5273 printf %s "(cached) " >&6 5274else case e in #( 5275 e) 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_unused_command_line_argument=yes 5282else case e in #( 5283 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5284esac 5285fi 5286rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5287esac 5288fi 5289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5290printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5291 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5292 CFLAGS="$xorg_testset_save_CFLAGS" 5293fi 5294 5295found="no" 5296 5297 if test $found = "no" ; then 5298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5300 fi 5301 5302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5304 fi 5305 5306 CFLAGS="$CFLAGS -Wpointer-arith" 5307 5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5309printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5310 cacheid=xorg_cv_cc_flag__Wpointer_arith 5311 if eval test \${$cacheid+y} 5312then : 5313 printf %s "(cached) " >&6 5314else case e in #( 5315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5316/* end confdefs.h. */ 5317int i; 5318int 5319main (void) 5320{ 5321 5322 ; 5323 return 0; 5324} 5325_ACEOF 5326if ac_fn_c_try_link "$LINENO" 5327then : 5328 eval $cacheid=yes 5329else case e in #( 5330 e) eval $cacheid=no ;; 5331esac 5332fi 5333rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5334 conftest$ac_exeext conftest.$ac_ext ;; 5335esac 5336fi 5337 5338 5339 CFLAGS="$xorg_testset_save_CFLAGS" 5340 5341 eval supported=\$$cacheid 5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5343printf "%s\n" "$supported" >&6; } 5344 if test "$supported" = "yes" ; then 5345 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5346 found="yes" 5347 fi 5348 fi 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364xorg_testset_save_CFLAGS="$CFLAGS" 5365 5366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5369printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5370if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5371then : 5372 printf %s "(cached) " >&6 5373else case e in #( 5374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5375/* end confdefs.h. */ 5376int i; 5377_ACEOF 5378if ac_fn_c_try_compile "$LINENO" 5379then : 5380 xorg_cv_cc_flag_unknown_warning_option=yes 5381else case e in #( 5382 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5383esac 5384fi 5385rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5386esac 5387fi 5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5391 CFLAGS="$xorg_testset_save_CFLAGS" 5392fi 5393 5394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5397 fi 5398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5401if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5402then : 5403 printf %s "(cached) " >&6 5404else case e in #( 5405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5406/* end confdefs.h. */ 5407int i; 5408_ACEOF 5409if ac_fn_c_try_compile "$LINENO" 5410then : 5411 xorg_cv_cc_flag_unused_command_line_argument=yes 5412else case e in #( 5413 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5414esac 5415fi 5416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5417esac 5418fi 5419{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5420printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5421 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5422 CFLAGS="$xorg_testset_save_CFLAGS" 5423fi 5424 5425found="no" 5426 5427 if test $found = "no" ; then 5428 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5429 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5430 fi 5431 5432 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5434 fi 5435 5436 CFLAGS="$CFLAGS -Wmissing-declarations" 5437 5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5439printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5440 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5441 if eval test \${$cacheid+y} 5442then : 5443 printf %s "(cached) " >&6 5444else case e in #( 5445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446/* end confdefs.h. */ 5447int i; 5448int 5449main (void) 5450{ 5451 5452 ; 5453 return 0; 5454} 5455_ACEOF 5456if ac_fn_c_try_link "$LINENO" 5457then : 5458 eval $cacheid=yes 5459else case e in #( 5460 e) eval $cacheid=no ;; 5461esac 5462fi 5463rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5464 conftest$ac_exeext conftest.$ac_ext ;; 5465esac 5466fi 5467 5468 5469 CFLAGS="$xorg_testset_save_CFLAGS" 5470 5471 eval supported=\$$cacheid 5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5473printf "%s\n" "$supported" >&6; } 5474 if test "$supported" = "yes" ; then 5475 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5476 found="yes" 5477 fi 5478 fi 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494xorg_testset_save_CFLAGS="$CFLAGS" 5495 5496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5500if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5501then : 5502 printf %s "(cached) " >&6 5503else case e in #( 5504 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5505/* end confdefs.h. */ 5506int i; 5507_ACEOF 5508if ac_fn_c_try_compile "$LINENO" 5509then : 5510 xorg_cv_cc_flag_unknown_warning_option=yes 5511else case e in #( 5512 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5513esac 5514fi 5515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5516esac 5517fi 5518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5519printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5521 CFLAGS="$xorg_testset_save_CFLAGS" 5522fi 5523 5524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5527 fi 5528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5530printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5531if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5532then : 5533 printf %s "(cached) " >&6 5534else case e in #( 5535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536/* end confdefs.h. */ 5537int i; 5538_ACEOF 5539if ac_fn_c_try_compile "$LINENO" 5540then : 5541 xorg_cv_cc_flag_unused_command_line_argument=yes 5542else case e in #( 5543 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5544esac 5545fi 5546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5547esac 5548fi 5549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5550printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5551 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5552 CFLAGS="$xorg_testset_save_CFLAGS" 5553fi 5554 5555found="no" 5556 5557 if test $found = "no" ; then 5558 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5560 fi 5561 5562 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5564 fi 5565 5566 CFLAGS="$CFLAGS -Wformat=2" 5567 5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5569printf %s "checking if $CC supports -Wformat=2... " >&6; } 5570 cacheid=xorg_cv_cc_flag__Wformat_2 5571 if eval test \${$cacheid+y} 5572then : 5573 printf %s "(cached) " >&6 5574else case e in #( 5575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5576/* end confdefs.h. */ 5577int i; 5578int 5579main (void) 5580{ 5581 5582 ; 5583 return 0; 5584} 5585_ACEOF 5586if ac_fn_c_try_link "$LINENO" 5587then : 5588 eval $cacheid=yes 5589else case e in #( 5590 e) eval $cacheid=no ;; 5591esac 5592fi 5593rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5594 conftest$ac_exeext conftest.$ac_ext ;; 5595esac 5596fi 5597 5598 5599 CFLAGS="$xorg_testset_save_CFLAGS" 5600 5601 eval supported=\$$cacheid 5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5603printf "%s\n" "$supported" >&6; } 5604 if test "$supported" = "yes" ; then 5605 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5606 found="yes" 5607 fi 5608 fi 5609 5610 if test $found = "no" ; then 5611 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5613 fi 5614 5615 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5617 fi 5618 5619 CFLAGS="$CFLAGS -Wformat" 5620 5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5622printf %s "checking if $CC supports -Wformat... " >&6; } 5623 cacheid=xorg_cv_cc_flag__Wformat 5624 if eval test \${$cacheid+y} 5625then : 5626 printf %s "(cached) " >&6 5627else case e in #( 5628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5629/* end confdefs.h. */ 5630int i; 5631int 5632main (void) 5633{ 5634 5635 ; 5636 return 0; 5637} 5638_ACEOF 5639if ac_fn_c_try_link "$LINENO" 5640then : 5641 eval $cacheid=yes 5642else case e in #( 5643 e) eval $cacheid=no ;; 5644esac 5645fi 5646rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5647 conftest$ac_exeext conftest.$ac_ext ;; 5648esac 5649fi 5650 5651 5652 CFLAGS="$xorg_testset_save_CFLAGS" 5653 5654 eval supported=\$$cacheid 5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5656printf "%s\n" "$supported" >&6; } 5657 if test "$supported" = "yes" ; then 5658 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5659 found="yes" 5660 fi 5661 fi 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679xorg_testset_save_CFLAGS="$CFLAGS" 5680 5681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5684printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5685if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5686then : 5687 printf %s "(cached) " >&6 5688else case e in #( 5689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5690/* end confdefs.h. */ 5691int i; 5692_ACEOF 5693if ac_fn_c_try_compile "$LINENO" 5694then : 5695 xorg_cv_cc_flag_unknown_warning_option=yes 5696else case e in #( 5697 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5698esac 5699fi 5700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5701esac 5702fi 5703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5704printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5706 CFLAGS="$xorg_testset_save_CFLAGS" 5707fi 5708 5709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5712 fi 5713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5715printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5716if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5717then : 5718 printf %s "(cached) " >&6 5719else case e in #( 5720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5721/* end confdefs.h. */ 5722int i; 5723_ACEOF 5724if ac_fn_c_try_compile "$LINENO" 5725then : 5726 xorg_cv_cc_flag_unused_command_line_argument=yes 5727else case e in #( 5728 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5729esac 5730fi 5731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5732esac 5733fi 5734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5736 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5737 CFLAGS="$xorg_testset_save_CFLAGS" 5738fi 5739 5740found="no" 5741 5742 if test $found = "no" ; then 5743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5745 fi 5746 5747 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5749 fi 5750 5751 CFLAGS="$CFLAGS -Wstrict-prototypes" 5752 5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5754printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5755 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5756 if eval test \${$cacheid+y} 5757then : 5758 printf %s "(cached) " >&6 5759else case e in #( 5760 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5761/* end confdefs.h. */ 5762int i; 5763int 5764main (void) 5765{ 5766 5767 ; 5768 return 0; 5769} 5770_ACEOF 5771if ac_fn_c_try_link "$LINENO" 5772then : 5773 eval $cacheid=yes 5774else case e in #( 5775 e) eval $cacheid=no ;; 5776esac 5777fi 5778rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5779 conftest$ac_exeext conftest.$ac_ext ;; 5780esac 5781fi 5782 5783 5784 CFLAGS="$xorg_testset_save_CFLAGS" 5785 5786 eval supported=\$$cacheid 5787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5788printf "%s\n" "$supported" >&6; } 5789 if test "$supported" = "yes" ; then 5790 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5791 found="yes" 5792 fi 5793 fi 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809xorg_testset_save_CFLAGS="$CFLAGS" 5810 5811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5814printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5815if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5816then : 5817 printf %s "(cached) " >&6 5818else case e in #( 5819 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5820/* end confdefs.h. */ 5821int i; 5822_ACEOF 5823if ac_fn_c_try_compile "$LINENO" 5824then : 5825 xorg_cv_cc_flag_unknown_warning_option=yes 5826else case e in #( 5827 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5828esac 5829fi 5830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5831esac 5832fi 5833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5836 CFLAGS="$xorg_testset_save_CFLAGS" 5837fi 5838 5839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5842 fi 5843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5846if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5847then : 5848 printf %s "(cached) " >&6 5849else case e in #( 5850 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5851/* end confdefs.h. */ 5852int i; 5853_ACEOF 5854if ac_fn_c_try_compile "$LINENO" 5855then : 5856 xorg_cv_cc_flag_unused_command_line_argument=yes 5857else case e in #( 5858 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5859esac 5860fi 5861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5862esac 5863fi 5864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5865printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5866 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5867 CFLAGS="$xorg_testset_save_CFLAGS" 5868fi 5869 5870found="no" 5871 5872 if test $found = "no" ; then 5873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5875 fi 5876 5877 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5879 fi 5880 5881 CFLAGS="$CFLAGS -Wmissing-prototypes" 5882 5883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5884printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5885 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5886 if eval test \${$cacheid+y} 5887then : 5888 printf %s "(cached) " >&6 5889else case e in #( 5890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5891/* end confdefs.h. */ 5892int i; 5893int 5894main (void) 5895{ 5896 5897 ; 5898 return 0; 5899} 5900_ACEOF 5901if ac_fn_c_try_link "$LINENO" 5902then : 5903 eval $cacheid=yes 5904else case e in #( 5905 e) eval $cacheid=no ;; 5906esac 5907fi 5908rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5909 conftest$ac_exeext conftest.$ac_ext ;; 5910esac 5911fi 5912 5913 5914 CFLAGS="$xorg_testset_save_CFLAGS" 5915 5916 eval supported=\$$cacheid 5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5918printf "%s\n" "$supported" >&6; } 5919 if test "$supported" = "yes" ; then 5920 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5921 found="yes" 5922 fi 5923 fi 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939xorg_testset_save_CFLAGS="$CFLAGS" 5940 5941if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5944printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5945if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5946then : 5947 printf %s "(cached) " >&6 5948else case e in #( 5949 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5950/* end confdefs.h. */ 5951int i; 5952_ACEOF 5953if ac_fn_c_try_compile "$LINENO" 5954then : 5955 xorg_cv_cc_flag_unknown_warning_option=yes 5956else case e in #( 5957 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5958esac 5959fi 5960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5961esac 5962fi 5963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5964printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5966 CFLAGS="$xorg_testset_save_CFLAGS" 5967fi 5968 5969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5972 fi 5973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5975printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5976if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5977then : 5978 printf %s "(cached) " >&6 5979else case e in #( 5980 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5981/* end confdefs.h. */ 5982int i; 5983_ACEOF 5984if ac_fn_c_try_compile "$LINENO" 5985then : 5986 xorg_cv_cc_flag_unused_command_line_argument=yes 5987else case e in #( 5988 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5989esac 5990fi 5991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5992esac 5993fi 5994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5997 CFLAGS="$xorg_testset_save_CFLAGS" 5998fi 5999 6000found="no" 6001 6002 if test $found = "no" ; then 6003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6005 fi 6006 6007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6009 fi 6010 6011 CFLAGS="$CFLAGS -Wnested-externs" 6012 6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 6014printf %s "checking if $CC supports -Wnested-externs... " >&6; } 6015 cacheid=xorg_cv_cc_flag__Wnested_externs 6016 if eval test \${$cacheid+y} 6017then : 6018 printf %s "(cached) " >&6 6019else case e in #( 6020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6021/* end confdefs.h. */ 6022int i; 6023int 6024main (void) 6025{ 6026 6027 ; 6028 return 0; 6029} 6030_ACEOF 6031if ac_fn_c_try_link "$LINENO" 6032then : 6033 eval $cacheid=yes 6034else case e in #( 6035 e) eval $cacheid=no ;; 6036esac 6037fi 6038rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6039 conftest$ac_exeext conftest.$ac_ext ;; 6040esac 6041fi 6042 6043 6044 CFLAGS="$xorg_testset_save_CFLAGS" 6045 6046 eval supported=\$$cacheid 6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6048printf "%s\n" "$supported" >&6; } 6049 if test "$supported" = "yes" ; then 6050 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 6051 found="yes" 6052 fi 6053 fi 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069xorg_testset_save_CFLAGS="$CFLAGS" 6070 6071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6074printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6075if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6076then : 6077 printf %s "(cached) " >&6 6078else case e in #( 6079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6080/* end confdefs.h. */ 6081int i; 6082_ACEOF 6083if ac_fn_c_try_compile "$LINENO" 6084then : 6085 xorg_cv_cc_flag_unknown_warning_option=yes 6086else case e in #( 6087 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6088esac 6089fi 6090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6091esac 6092fi 6093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6094printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6096 CFLAGS="$xorg_testset_save_CFLAGS" 6097fi 6098 6099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 fi 6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6105printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6106if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6107then : 6108 printf %s "(cached) " >&6 6109else case e in #( 6110 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6111/* end confdefs.h. */ 6112int i; 6113_ACEOF 6114if ac_fn_c_try_compile "$LINENO" 6115then : 6116 xorg_cv_cc_flag_unused_command_line_argument=yes 6117else case e in #( 6118 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6119esac 6120fi 6121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6122esac 6123fi 6124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6125printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6127 CFLAGS="$xorg_testset_save_CFLAGS" 6128fi 6129 6130found="no" 6131 6132 if test $found = "no" ; then 6133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6135 fi 6136 6137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6139 fi 6140 6141 CFLAGS="$CFLAGS -Wbad-function-cast" 6142 6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6144printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6145 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6146 if eval test \${$cacheid+y} 6147then : 6148 printf %s "(cached) " >&6 6149else case e in #( 6150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6151/* end confdefs.h. */ 6152int i; 6153int 6154main (void) 6155{ 6156 6157 ; 6158 return 0; 6159} 6160_ACEOF 6161if ac_fn_c_try_link "$LINENO" 6162then : 6163 eval $cacheid=yes 6164else case e in #( 6165 e) eval $cacheid=no ;; 6166esac 6167fi 6168rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6169 conftest$ac_exeext conftest.$ac_ext ;; 6170esac 6171fi 6172 6173 6174 CFLAGS="$xorg_testset_save_CFLAGS" 6175 6176 eval supported=\$$cacheid 6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6178printf "%s\n" "$supported" >&6; } 6179 if test "$supported" = "yes" ; then 6180 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6181 found="yes" 6182 fi 6183 fi 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199xorg_testset_save_CFLAGS="$CFLAGS" 6200 6201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6205if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6206then : 6207 printf %s "(cached) " >&6 6208else case e in #( 6209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6210/* end confdefs.h. */ 6211int i; 6212_ACEOF 6213if ac_fn_c_try_compile "$LINENO" 6214then : 6215 xorg_cv_cc_flag_unknown_warning_option=yes 6216else case e in #( 6217 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6218esac 6219fi 6220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6221esac 6222fi 6223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6224printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6226 CFLAGS="$xorg_testset_save_CFLAGS" 6227fi 6228 6229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6232 fi 6233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6235printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6236if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6237then : 6238 printf %s "(cached) " >&6 6239else case e in #( 6240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6241/* end confdefs.h. */ 6242int i; 6243_ACEOF 6244if ac_fn_c_try_compile "$LINENO" 6245then : 6246 xorg_cv_cc_flag_unused_command_line_argument=yes 6247else case e in #( 6248 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6249esac 6250fi 6251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6252esac 6253fi 6254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6256 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6257 CFLAGS="$xorg_testset_save_CFLAGS" 6258fi 6259 6260found="no" 6261 6262 if test $found = "no" ; then 6263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6265 fi 6266 6267 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6269 fi 6270 6271 CFLAGS="$CFLAGS -Wold-style-definition" 6272 6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6274printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6275 cacheid=xorg_cv_cc_flag__Wold_style_definition 6276 if eval test \${$cacheid+y} 6277then : 6278 printf %s "(cached) " >&6 6279else case e in #( 6280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6281/* end confdefs.h. */ 6282int i; 6283int 6284main (void) 6285{ 6286 6287 ; 6288 return 0; 6289} 6290_ACEOF 6291if ac_fn_c_try_link "$LINENO" 6292then : 6293 eval $cacheid=yes 6294else case e in #( 6295 e) eval $cacheid=no ;; 6296esac 6297fi 6298rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6299 conftest$ac_exeext conftest.$ac_ext ;; 6300esac 6301fi 6302 6303 6304 CFLAGS="$xorg_testset_save_CFLAGS" 6305 6306 eval supported=\$$cacheid 6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6308printf "%s\n" "$supported" >&6; } 6309 if test "$supported" = "yes" ; then 6310 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6311 found="yes" 6312 fi 6313 fi 6314 6315 if test $found = "no" ; then 6316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6318 fi 6319 6320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6322 fi 6323 6324 CFLAGS="$CFLAGS -fd" 6325 6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6327printf %s "checking if $CC supports -fd... " >&6; } 6328 cacheid=xorg_cv_cc_flag__fd 6329 if eval test \${$cacheid+y} 6330then : 6331 printf %s "(cached) " >&6 6332else case e in #( 6333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334/* end confdefs.h. */ 6335int i; 6336int 6337main (void) 6338{ 6339 6340 ; 6341 return 0; 6342} 6343_ACEOF 6344if ac_fn_c_try_link "$LINENO" 6345then : 6346 eval $cacheid=yes 6347else case e in #( 6348 e) eval $cacheid=no ;; 6349esac 6350fi 6351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6352 conftest$ac_exeext conftest.$ac_ext ;; 6353esac 6354fi 6355 6356 6357 CFLAGS="$xorg_testset_save_CFLAGS" 6358 6359 eval supported=\$$cacheid 6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6361printf "%s\n" "$supported" >&6; } 6362 if test "$supported" = "yes" ; then 6363 BASE_CFLAGS="$BASE_CFLAGS -fd" 6364 found="yes" 6365 fi 6366 fi 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382xorg_testset_save_CFLAGS="$CFLAGS" 6383 6384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6387printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6388if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6389then : 6390 printf %s "(cached) " >&6 6391else case e in #( 6392 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6393/* end confdefs.h. */ 6394int i; 6395_ACEOF 6396if ac_fn_c_try_compile "$LINENO" 6397then : 6398 xorg_cv_cc_flag_unknown_warning_option=yes 6399else case e in #( 6400 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6401esac 6402fi 6403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6404esac 6405fi 6406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6407printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6409 CFLAGS="$xorg_testset_save_CFLAGS" 6410fi 6411 6412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6415 fi 6416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6418printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6419if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6420then : 6421 printf %s "(cached) " >&6 6422else case e in #( 6423 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6424/* end confdefs.h. */ 6425int i; 6426_ACEOF 6427if ac_fn_c_try_compile "$LINENO" 6428then : 6429 xorg_cv_cc_flag_unused_command_line_argument=yes 6430else case e in #( 6431 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6432esac 6433fi 6434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6435esac 6436fi 6437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6438printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6440 CFLAGS="$xorg_testset_save_CFLAGS" 6441fi 6442 6443found="no" 6444 6445 if test $found = "no" ; then 6446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6448 fi 6449 6450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6452 fi 6453 6454 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6455 6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6457printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6458 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6459 if eval test \${$cacheid+y} 6460then : 6461 printf %s "(cached) " >&6 6462else case e in #( 6463 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6464/* end confdefs.h. */ 6465int i; 6466int 6467main (void) 6468{ 6469 6470 ; 6471 return 0; 6472} 6473_ACEOF 6474if ac_fn_c_try_link "$LINENO" 6475then : 6476 eval $cacheid=yes 6477else case e in #( 6478 e) eval $cacheid=no ;; 6479esac 6480fi 6481rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6482 conftest$ac_exeext conftest.$ac_ext ;; 6483esac 6484fi 6485 6486 6487 CFLAGS="$xorg_testset_save_CFLAGS" 6488 6489 eval supported=\$$cacheid 6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6491printf "%s\n" "$supported" >&6; } 6492 if test "$supported" = "yes" ; then 6493 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6494 found="yes" 6495 fi 6496 fi 6497 6498 6499 6500 6501 6502# This chunk adds additional warnings that could catch undesired effects. 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516xorg_testset_save_CFLAGS="$CFLAGS" 6517 6518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6522if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6523then : 6524 printf %s "(cached) " >&6 6525else case e in #( 6526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6527/* end confdefs.h. */ 6528int i; 6529_ACEOF 6530if ac_fn_c_try_compile "$LINENO" 6531then : 6532 xorg_cv_cc_flag_unknown_warning_option=yes 6533else case e in #( 6534 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6535esac 6536fi 6537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6538esac 6539fi 6540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6541printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6543 CFLAGS="$xorg_testset_save_CFLAGS" 6544fi 6545 6546if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6549 fi 6550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6552printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6553if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6554then : 6555 printf %s "(cached) " >&6 6556else case e in #( 6557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6558/* end confdefs.h. */ 6559int i; 6560_ACEOF 6561if ac_fn_c_try_compile "$LINENO" 6562then : 6563 xorg_cv_cc_flag_unused_command_line_argument=yes 6564else case e in #( 6565 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6566esac 6567fi 6568rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6569esac 6570fi 6571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6572printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6574 CFLAGS="$xorg_testset_save_CFLAGS" 6575fi 6576 6577found="no" 6578 6579 if test $found = "no" ; then 6580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6582 fi 6583 6584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6586 fi 6587 6588 CFLAGS="$CFLAGS -Wunused" 6589 6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6591printf %s "checking if $CC supports -Wunused... " >&6; } 6592 cacheid=xorg_cv_cc_flag__Wunused 6593 if eval test \${$cacheid+y} 6594then : 6595 printf %s "(cached) " >&6 6596else case e in #( 6597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6598/* end confdefs.h. */ 6599int i; 6600int 6601main (void) 6602{ 6603 6604 ; 6605 return 0; 6606} 6607_ACEOF 6608if ac_fn_c_try_link "$LINENO" 6609then : 6610 eval $cacheid=yes 6611else case e in #( 6612 e) eval $cacheid=no ;; 6613esac 6614fi 6615rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6616 conftest$ac_exeext conftest.$ac_ext ;; 6617esac 6618fi 6619 6620 6621 CFLAGS="$xorg_testset_save_CFLAGS" 6622 6623 eval supported=\$$cacheid 6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6625printf "%s\n" "$supported" >&6; } 6626 if test "$supported" = "yes" ; then 6627 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6628 found="yes" 6629 fi 6630 fi 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646xorg_testset_save_CFLAGS="$CFLAGS" 6647 6648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6651printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6652if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6653then : 6654 printf %s "(cached) " >&6 6655else case e in #( 6656 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6657/* end confdefs.h. */ 6658int i; 6659_ACEOF 6660if ac_fn_c_try_compile "$LINENO" 6661then : 6662 xorg_cv_cc_flag_unknown_warning_option=yes 6663else case e in #( 6664 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6665esac 6666fi 6667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6668esac 6669fi 6670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6671printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6673 CFLAGS="$xorg_testset_save_CFLAGS" 6674fi 6675 6676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6679 fi 6680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6682printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6683if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6684then : 6685 printf %s "(cached) " >&6 6686else case e in #( 6687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6688/* end confdefs.h. */ 6689int i; 6690_ACEOF 6691if ac_fn_c_try_compile "$LINENO" 6692then : 6693 xorg_cv_cc_flag_unused_command_line_argument=yes 6694else case e in #( 6695 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6696esac 6697fi 6698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6699esac 6700fi 6701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6702printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6704 CFLAGS="$xorg_testset_save_CFLAGS" 6705fi 6706 6707found="no" 6708 6709 if test $found = "no" ; then 6710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6712 fi 6713 6714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6716 fi 6717 6718 CFLAGS="$CFLAGS -Wuninitialized" 6719 6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6721printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6722 cacheid=xorg_cv_cc_flag__Wuninitialized 6723 if eval test \${$cacheid+y} 6724then : 6725 printf %s "(cached) " >&6 6726else case e in #( 6727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6728/* end confdefs.h. */ 6729int i; 6730int 6731main (void) 6732{ 6733 6734 ; 6735 return 0; 6736} 6737_ACEOF 6738if ac_fn_c_try_link "$LINENO" 6739then : 6740 eval $cacheid=yes 6741else case e in #( 6742 e) eval $cacheid=no ;; 6743esac 6744fi 6745rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6746 conftest$ac_exeext conftest.$ac_ext ;; 6747esac 6748fi 6749 6750 6751 CFLAGS="$xorg_testset_save_CFLAGS" 6752 6753 eval supported=\$$cacheid 6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6755printf "%s\n" "$supported" >&6; } 6756 if test "$supported" = "yes" ; then 6757 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6758 found="yes" 6759 fi 6760 fi 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776xorg_testset_save_CFLAGS="$CFLAGS" 6777 6778if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6781printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6782if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6783then : 6784 printf %s "(cached) " >&6 6785else case e in #( 6786 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6787/* end confdefs.h. */ 6788int i; 6789_ACEOF 6790if ac_fn_c_try_compile "$LINENO" 6791then : 6792 xorg_cv_cc_flag_unknown_warning_option=yes 6793else case e in #( 6794 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6795esac 6796fi 6797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6798esac 6799fi 6800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6801printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6803 CFLAGS="$xorg_testset_save_CFLAGS" 6804fi 6805 6806if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6809 fi 6810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6812printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6813if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6814then : 6815 printf %s "(cached) " >&6 6816else case e in #( 6817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6818/* end confdefs.h. */ 6819int i; 6820_ACEOF 6821if ac_fn_c_try_compile "$LINENO" 6822then : 6823 xorg_cv_cc_flag_unused_command_line_argument=yes 6824else case e in #( 6825 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6826esac 6827fi 6828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6829esac 6830fi 6831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6832printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6834 CFLAGS="$xorg_testset_save_CFLAGS" 6835fi 6836 6837found="no" 6838 6839 if test $found = "no" ; then 6840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6841 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6842 fi 6843 6844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6846 fi 6847 6848 CFLAGS="$CFLAGS -Wshadow" 6849 6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6851printf %s "checking if $CC supports -Wshadow... " >&6; } 6852 cacheid=xorg_cv_cc_flag__Wshadow 6853 if eval test \${$cacheid+y} 6854then : 6855 printf %s "(cached) " >&6 6856else case e in #( 6857 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858/* end confdefs.h. */ 6859int i; 6860int 6861main (void) 6862{ 6863 6864 ; 6865 return 0; 6866} 6867_ACEOF 6868if ac_fn_c_try_link "$LINENO" 6869then : 6870 eval $cacheid=yes 6871else case e in #( 6872 e) eval $cacheid=no ;; 6873esac 6874fi 6875rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6876 conftest$ac_exeext conftest.$ac_ext ;; 6877esac 6878fi 6879 6880 6881 CFLAGS="$xorg_testset_save_CFLAGS" 6882 6883 eval supported=\$$cacheid 6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6885printf "%s\n" "$supported" >&6; } 6886 if test "$supported" = "yes" ; then 6887 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6888 found="yes" 6889 fi 6890 fi 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906xorg_testset_save_CFLAGS="$CFLAGS" 6907 6908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6911printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6912if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6913then : 6914 printf %s "(cached) " >&6 6915else case e in #( 6916 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6917/* end confdefs.h. */ 6918int i; 6919_ACEOF 6920if ac_fn_c_try_compile "$LINENO" 6921then : 6922 xorg_cv_cc_flag_unknown_warning_option=yes 6923else case e in #( 6924 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6925esac 6926fi 6927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6928esac 6929fi 6930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6931printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6933 CFLAGS="$xorg_testset_save_CFLAGS" 6934fi 6935 6936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6939 fi 6940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6942printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6943if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6944then : 6945 printf %s "(cached) " >&6 6946else case e in #( 6947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6948/* end confdefs.h. */ 6949int i; 6950_ACEOF 6951if ac_fn_c_try_compile "$LINENO" 6952then : 6953 xorg_cv_cc_flag_unused_command_line_argument=yes 6954else case e in #( 6955 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6956esac 6957fi 6958rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6959esac 6960fi 6961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6962printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6964 CFLAGS="$xorg_testset_save_CFLAGS" 6965fi 6966 6967found="no" 6968 6969 if test $found = "no" ; then 6970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6972 fi 6973 6974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6976 fi 6977 6978 CFLAGS="$CFLAGS -Wmissing-noreturn" 6979 6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6981printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6982 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6983 if eval test \${$cacheid+y} 6984then : 6985 printf %s "(cached) " >&6 6986else case e in #( 6987 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6988/* end confdefs.h. */ 6989int i; 6990int 6991main (void) 6992{ 6993 6994 ; 6995 return 0; 6996} 6997_ACEOF 6998if ac_fn_c_try_link "$LINENO" 6999then : 7000 eval $cacheid=yes 7001else case e in #( 7002 e) eval $cacheid=no ;; 7003esac 7004fi 7005rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7006 conftest$ac_exeext conftest.$ac_ext ;; 7007esac 7008fi 7009 7010 7011 CFLAGS="$xorg_testset_save_CFLAGS" 7012 7013 eval supported=\$$cacheid 7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7015printf "%s\n" "$supported" >&6; } 7016 if test "$supported" = "yes" ; then 7017 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 7018 found="yes" 7019 fi 7020 fi 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036xorg_testset_save_CFLAGS="$CFLAGS" 7037 7038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7041printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7042if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7043then : 7044 printf %s "(cached) " >&6 7045else case e in #( 7046 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7047/* end confdefs.h. */ 7048int i; 7049_ACEOF 7050if ac_fn_c_try_compile "$LINENO" 7051then : 7052 xorg_cv_cc_flag_unknown_warning_option=yes 7053else case e in #( 7054 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7055esac 7056fi 7057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7058esac 7059fi 7060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7061printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7063 CFLAGS="$xorg_testset_save_CFLAGS" 7064fi 7065 7066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7069 fi 7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7072printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7073if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7074then : 7075 printf %s "(cached) " >&6 7076else case e in #( 7077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7078/* end confdefs.h. */ 7079int i; 7080_ACEOF 7081if ac_fn_c_try_compile "$LINENO" 7082then : 7083 xorg_cv_cc_flag_unused_command_line_argument=yes 7084else case e in #( 7085 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7086esac 7087fi 7088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7089esac 7090fi 7091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7092printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7094 CFLAGS="$xorg_testset_save_CFLAGS" 7095fi 7096 7097found="no" 7098 7099 if test $found = "no" ; then 7100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7102 fi 7103 7104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7106 fi 7107 7108 CFLAGS="$CFLAGS -Wmissing-format-attribute" 7109 7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 7111printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 7112 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 7113 if eval test \${$cacheid+y} 7114then : 7115 printf %s "(cached) " >&6 7116else case e in #( 7117 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119int i; 7120int 7121main (void) 7122{ 7123 7124 ; 7125 return 0; 7126} 7127_ACEOF 7128if ac_fn_c_try_link "$LINENO" 7129then : 7130 eval $cacheid=yes 7131else case e in #( 7132 e) eval $cacheid=no ;; 7133esac 7134fi 7135rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7136 conftest$ac_exeext conftest.$ac_ext ;; 7137esac 7138fi 7139 7140 7141 CFLAGS="$xorg_testset_save_CFLAGS" 7142 7143 eval supported=\$$cacheid 7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7145printf "%s\n" "$supported" >&6; } 7146 if test "$supported" = "yes" ; then 7147 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 7148 found="yes" 7149 fi 7150 fi 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166xorg_testset_save_CFLAGS="$CFLAGS" 7167 7168if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7169 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7171printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7172if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7173then : 7174 printf %s "(cached) " >&6 7175else case e in #( 7176 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177/* end confdefs.h. */ 7178int i; 7179_ACEOF 7180if ac_fn_c_try_compile "$LINENO" 7181then : 7182 xorg_cv_cc_flag_unknown_warning_option=yes 7183else case e in #( 7184 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7185esac 7186fi 7187rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7188esac 7189fi 7190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7191printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7193 CFLAGS="$xorg_testset_save_CFLAGS" 7194fi 7195 7196if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7199 fi 7200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7202printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7203if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7204then : 7205 printf %s "(cached) " >&6 7206else case e in #( 7207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7208/* end confdefs.h. */ 7209int i; 7210_ACEOF 7211if ac_fn_c_try_compile "$LINENO" 7212then : 7213 xorg_cv_cc_flag_unused_command_line_argument=yes 7214else case e in #( 7215 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7216esac 7217fi 7218rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7219esac 7220fi 7221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7224 CFLAGS="$xorg_testset_save_CFLAGS" 7225fi 7226 7227found="no" 7228 7229 if test $found = "no" ; then 7230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7232 fi 7233 7234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7236 fi 7237 7238 CFLAGS="$CFLAGS -Wredundant-decls" 7239 7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7241printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7242 cacheid=xorg_cv_cc_flag__Wredundant_decls 7243 if eval test \${$cacheid+y} 7244then : 7245 printf %s "(cached) " >&6 7246else case e in #( 7247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7248/* end confdefs.h. */ 7249int i; 7250int 7251main (void) 7252{ 7253 7254 ; 7255 return 0; 7256} 7257_ACEOF 7258if ac_fn_c_try_link "$LINENO" 7259then : 7260 eval $cacheid=yes 7261else case e in #( 7262 e) eval $cacheid=no ;; 7263esac 7264fi 7265rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7266 conftest$ac_exeext conftest.$ac_ext ;; 7267esac 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 -Wredundant-decls" 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 case e in #( 7306 e) 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 case e in #( 7314 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7315esac 7316fi 7317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7318esac 7319fi 7320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7321printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7322 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7323 CFLAGS="$xorg_testset_save_CFLAGS" 7324fi 7325 7326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7328 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7329 fi 7330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7332printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7333if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7334then : 7335 printf %s "(cached) " >&6 7336else case e in #( 7337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7338/* end confdefs.h. */ 7339int i; 7340_ACEOF 7341if ac_fn_c_try_compile "$LINENO" 7342then : 7343 xorg_cv_cc_flag_unused_command_line_argument=yes 7344else case e in #( 7345 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7346esac 7347fi 7348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7349esac 7350fi 7351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7352printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7353 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7354 CFLAGS="$xorg_testset_save_CFLAGS" 7355fi 7356 7357found="no" 7358 7359 if test $found = "no" ; then 7360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7362 fi 7363 7364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7366 fi 7367 7368 CFLAGS="$CFLAGS -Wlogical-op" 7369 7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7371printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7372 cacheid=xorg_cv_cc_flag__Wlogical_op 7373 if eval test \${$cacheid+y} 7374then : 7375 printf %s "(cached) " >&6 7376else case e in #( 7377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379int i; 7380int 7381main (void) 7382{ 7383 7384 ; 7385 return 0; 7386} 7387_ACEOF 7388if ac_fn_c_try_link "$LINENO" 7389then : 7390 eval $cacheid=yes 7391else case e in #( 7392 e) eval $cacheid=no ;; 7393esac 7394fi 7395rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7396 conftest$ac_exeext conftest.$ac_ext ;; 7397esac 7398fi 7399 7400 7401 CFLAGS="$xorg_testset_save_CFLAGS" 7402 7403 eval supported=\$$cacheid 7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7405printf "%s\n" "$supported" >&6; } 7406 if test "$supported" = "yes" ; then 7407 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7408 found="yes" 7409 fi 7410 fi 7411 7412 7413 7414# These are currently disabled because they are noisy. They will be enabled 7415# in the future once the codebase is sufficiently modernized to silence 7416# them. For now, I don't want them to drown out the other warnings. 7417# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7418# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7419# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7420 7421# Turn some warnings into errors, so we don't accidentally get successful builds 7422# when there are problems that should be fixed. 7423 7424if test "x$SELECTIVE_WERROR" = "xyes" ; then 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438xorg_testset_save_CFLAGS="$CFLAGS" 7439 7440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7443printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7444if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7445then : 7446 printf %s "(cached) " >&6 7447else case e in #( 7448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7449/* end confdefs.h. */ 7450int i; 7451_ACEOF 7452if ac_fn_c_try_compile "$LINENO" 7453then : 7454 xorg_cv_cc_flag_unknown_warning_option=yes 7455else case e in #( 7456 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7457esac 7458fi 7459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7460esac 7461fi 7462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7463printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7465 CFLAGS="$xorg_testset_save_CFLAGS" 7466fi 7467 7468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7471 fi 7472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7474printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7475if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7476then : 7477 printf %s "(cached) " >&6 7478else case e in #( 7479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7480/* end confdefs.h. */ 7481int i; 7482_ACEOF 7483if ac_fn_c_try_compile "$LINENO" 7484then : 7485 xorg_cv_cc_flag_unused_command_line_argument=yes 7486else case e in #( 7487 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7488esac 7489fi 7490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7491esac 7492fi 7493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7494printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7496 CFLAGS="$xorg_testset_save_CFLAGS" 7497fi 7498 7499found="no" 7500 7501 if test $found = "no" ; then 7502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7504 fi 7505 7506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7508 fi 7509 7510 CFLAGS="$CFLAGS -Werror=implicit" 7511 7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7513printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7514 cacheid=xorg_cv_cc_flag__Werror_implicit 7515 if eval test \${$cacheid+y} 7516then : 7517 printf %s "(cached) " >&6 7518else case e in #( 7519 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7520/* end confdefs.h. */ 7521int i; 7522int 7523main (void) 7524{ 7525 7526 ; 7527 return 0; 7528} 7529_ACEOF 7530if ac_fn_c_try_link "$LINENO" 7531then : 7532 eval $cacheid=yes 7533else case e in #( 7534 e) eval $cacheid=no ;; 7535esac 7536fi 7537rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7538 conftest$ac_exeext conftest.$ac_ext ;; 7539esac 7540fi 7541 7542 7543 CFLAGS="$xorg_testset_save_CFLAGS" 7544 7545 eval supported=\$$cacheid 7546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7547printf "%s\n" "$supported" >&6; } 7548 if test "$supported" = "yes" ; then 7549 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7550 found="yes" 7551 fi 7552 fi 7553 7554 if test $found = "no" ; then 7555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7557 fi 7558 7559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7561 fi 7562 7563 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7564 7565 { 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 7566printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7567 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7568 if eval test \${$cacheid+y} 7569then : 7570 printf %s "(cached) " >&6 7571else case e in #( 7572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7573/* end confdefs.h. */ 7574int i; 7575int 7576main (void) 7577{ 7578 7579 ; 7580 return 0; 7581} 7582_ACEOF 7583if ac_fn_c_try_link "$LINENO" 7584then : 7585 eval $cacheid=yes 7586else case e in #( 7587 e) eval $cacheid=no ;; 7588esac 7589fi 7590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7591 conftest$ac_exeext conftest.$ac_ext ;; 7592esac 7593fi 7594 7595 7596 CFLAGS="$xorg_testset_save_CFLAGS" 7597 7598 eval supported=\$$cacheid 7599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7600printf "%s\n" "$supported" >&6; } 7601 if test "$supported" = "yes" ; then 7602 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7603 found="yes" 7604 fi 7605 fi 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621xorg_testset_save_CFLAGS="$CFLAGS" 7622 7623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7627if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7628then : 7629 printf %s "(cached) " >&6 7630else case e in #( 7631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633int i; 7634_ACEOF 7635if ac_fn_c_try_compile "$LINENO" 7636then : 7637 xorg_cv_cc_flag_unknown_warning_option=yes 7638else case e in #( 7639 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7640esac 7641fi 7642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7643esac 7644fi 7645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7648 CFLAGS="$xorg_testset_save_CFLAGS" 7649fi 7650 7651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7654 fi 7655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7658if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7659then : 7660 printf %s "(cached) " >&6 7661else case e in #( 7662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664int i; 7665_ACEOF 7666if ac_fn_c_try_compile "$LINENO" 7667then : 7668 xorg_cv_cc_flag_unused_command_line_argument=yes 7669else case e in #( 7670 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7671esac 7672fi 7673rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7674esac 7675fi 7676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7679 CFLAGS="$xorg_testset_save_CFLAGS" 7680fi 7681 7682found="no" 7683 7684 if test $found = "no" ; then 7685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7687 fi 7688 7689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7691 fi 7692 7693 CFLAGS="$CFLAGS -Werror=nonnull" 7694 7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7696printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7697 cacheid=xorg_cv_cc_flag__Werror_nonnull 7698 if eval test \${$cacheid+y} 7699then : 7700 printf %s "(cached) " >&6 7701else case e in #( 7702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7703/* end confdefs.h. */ 7704int i; 7705int 7706main (void) 7707{ 7708 7709 ; 7710 return 0; 7711} 7712_ACEOF 7713if ac_fn_c_try_link "$LINENO" 7714then : 7715 eval $cacheid=yes 7716else case e in #( 7717 e) eval $cacheid=no ;; 7718esac 7719fi 7720rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7721 conftest$ac_exeext conftest.$ac_ext ;; 7722esac 7723fi 7724 7725 7726 CFLAGS="$xorg_testset_save_CFLAGS" 7727 7728 eval supported=\$$cacheid 7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7730printf "%s\n" "$supported" >&6; } 7731 if test "$supported" = "yes" ; then 7732 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7733 found="yes" 7734 fi 7735 fi 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751xorg_testset_save_CFLAGS="$CFLAGS" 7752 7753if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7754 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7756printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7757if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7758then : 7759 printf %s "(cached) " >&6 7760else case e in #( 7761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7762/* end confdefs.h. */ 7763int i; 7764_ACEOF 7765if ac_fn_c_try_compile "$LINENO" 7766then : 7767 xorg_cv_cc_flag_unknown_warning_option=yes 7768else case e in #( 7769 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7770esac 7771fi 7772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7773esac 7774fi 7775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7776printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7777 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7778 CFLAGS="$xorg_testset_save_CFLAGS" 7779fi 7780 7781if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7784 fi 7785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7787printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7788if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7789then : 7790 printf %s "(cached) " >&6 7791else case e in #( 7792 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7793/* end confdefs.h. */ 7794int i; 7795_ACEOF 7796if ac_fn_c_try_compile "$LINENO" 7797then : 7798 xorg_cv_cc_flag_unused_command_line_argument=yes 7799else case e in #( 7800 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7801esac 7802fi 7803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7804esac 7805fi 7806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7807printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7809 CFLAGS="$xorg_testset_save_CFLAGS" 7810fi 7811 7812found="no" 7813 7814 if test $found = "no" ; then 7815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7817 fi 7818 7819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7821 fi 7822 7823 CFLAGS="$CFLAGS -Werror=init-self" 7824 7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7826printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7827 cacheid=xorg_cv_cc_flag__Werror_init_self 7828 if eval test \${$cacheid+y} 7829then : 7830 printf %s "(cached) " >&6 7831else case e in #( 7832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7833/* end confdefs.h. */ 7834int i; 7835int 7836main (void) 7837{ 7838 7839 ; 7840 return 0; 7841} 7842_ACEOF 7843if ac_fn_c_try_link "$LINENO" 7844then : 7845 eval $cacheid=yes 7846else case e in #( 7847 e) eval $cacheid=no ;; 7848esac 7849fi 7850rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7851 conftest$ac_exeext conftest.$ac_ext ;; 7852esac 7853fi 7854 7855 7856 CFLAGS="$xorg_testset_save_CFLAGS" 7857 7858 eval supported=\$$cacheid 7859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7860printf "%s\n" "$supported" >&6; } 7861 if test "$supported" = "yes" ; then 7862 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7863 found="yes" 7864 fi 7865 fi 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881xorg_testset_save_CFLAGS="$CFLAGS" 7882 7883if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7886printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7887if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7888then : 7889 printf %s "(cached) " >&6 7890else case e in #( 7891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7892/* end confdefs.h. */ 7893int i; 7894_ACEOF 7895if ac_fn_c_try_compile "$LINENO" 7896then : 7897 xorg_cv_cc_flag_unknown_warning_option=yes 7898else case e in #( 7899 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7900esac 7901fi 7902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7903esac 7904fi 7905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7906printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7908 CFLAGS="$xorg_testset_save_CFLAGS" 7909fi 7910 7911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7914 fi 7915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7917printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7918if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7919then : 7920 printf %s "(cached) " >&6 7921else case e in #( 7922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7923/* end confdefs.h. */ 7924int i; 7925_ACEOF 7926if ac_fn_c_try_compile "$LINENO" 7927then : 7928 xorg_cv_cc_flag_unused_command_line_argument=yes 7929else case e in #( 7930 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7931esac 7932fi 7933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7934esac 7935fi 7936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7937printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7939 CFLAGS="$xorg_testset_save_CFLAGS" 7940fi 7941 7942found="no" 7943 7944 if test $found = "no" ; then 7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7947 fi 7948 7949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7951 fi 7952 7953 CFLAGS="$CFLAGS -Werror=main" 7954 7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7956printf %s "checking if $CC supports -Werror=main... " >&6; } 7957 cacheid=xorg_cv_cc_flag__Werror_main 7958 if eval test \${$cacheid+y} 7959then : 7960 printf %s "(cached) " >&6 7961else case e in #( 7962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7963/* end confdefs.h. */ 7964int i; 7965int 7966main (void) 7967{ 7968 7969 ; 7970 return 0; 7971} 7972_ACEOF 7973if ac_fn_c_try_link "$LINENO" 7974then : 7975 eval $cacheid=yes 7976else case e in #( 7977 e) eval $cacheid=no ;; 7978esac 7979fi 7980rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7981 conftest$ac_exeext conftest.$ac_ext ;; 7982esac 7983fi 7984 7985 7986 CFLAGS="$xorg_testset_save_CFLAGS" 7987 7988 eval supported=\$$cacheid 7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7990printf "%s\n" "$supported" >&6; } 7991 if test "$supported" = "yes" ; then 7992 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7993 found="yes" 7994 fi 7995 fi 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011xorg_testset_save_CFLAGS="$CFLAGS" 8012 8013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8016printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8017if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8018then : 8019 printf %s "(cached) " >&6 8020else case e in #( 8021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8022/* end confdefs.h. */ 8023int i; 8024_ACEOF 8025if ac_fn_c_try_compile "$LINENO" 8026then : 8027 xorg_cv_cc_flag_unknown_warning_option=yes 8028else case e in #( 8029 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8030esac 8031fi 8032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8033esac 8034fi 8035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8036printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8038 CFLAGS="$xorg_testset_save_CFLAGS" 8039fi 8040 8041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8044 fi 8045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8047printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8048if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8049then : 8050 printf %s "(cached) " >&6 8051else case e in #( 8052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053/* end confdefs.h. */ 8054int i; 8055_ACEOF 8056if ac_fn_c_try_compile "$LINENO" 8057then : 8058 xorg_cv_cc_flag_unused_command_line_argument=yes 8059else case e in #( 8060 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8061esac 8062fi 8063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8064esac 8065fi 8066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8067printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8069 CFLAGS="$xorg_testset_save_CFLAGS" 8070fi 8071 8072found="no" 8073 8074 if test $found = "no" ; then 8075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8077 fi 8078 8079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8081 fi 8082 8083 CFLAGS="$CFLAGS -Werror=missing-braces" 8084 8085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 8086printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 8087 cacheid=xorg_cv_cc_flag__Werror_missing_braces 8088 if eval test \${$cacheid+y} 8089then : 8090 printf %s "(cached) " >&6 8091else case e in #( 8092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093/* end confdefs.h. */ 8094int i; 8095int 8096main (void) 8097{ 8098 8099 ; 8100 return 0; 8101} 8102_ACEOF 8103if ac_fn_c_try_link "$LINENO" 8104then : 8105 eval $cacheid=yes 8106else case e in #( 8107 e) eval $cacheid=no ;; 8108esac 8109fi 8110rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8111 conftest$ac_exeext conftest.$ac_ext ;; 8112esac 8113fi 8114 8115 8116 CFLAGS="$xorg_testset_save_CFLAGS" 8117 8118 eval supported=\$$cacheid 8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8120printf "%s\n" "$supported" >&6; } 8121 if test "$supported" = "yes" ; then 8122 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 8123 found="yes" 8124 fi 8125 fi 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141xorg_testset_save_CFLAGS="$CFLAGS" 8142 8143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8146printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8147if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8148then : 8149 printf %s "(cached) " >&6 8150else case e in #( 8151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8152/* end confdefs.h. */ 8153int i; 8154_ACEOF 8155if ac_fn_c_try_compile "$LINENO" 8156then : 8157 xorg_cv_cc_flag_unknown_warning_option=yes 8158else case e in #( 8159 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8160esac 8161fi 8162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8163esac 8164fi 8165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8166printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8168 CFLAGS="$xorg_testset_save_CFLAGS" 8169fi 8170 8171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8173 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8174 fi 8175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8177printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8178if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8179then : 8180 printf %s "(cached) " >&6 8181else case e in #( 8182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8183/* end confdefs.h. */ 8184int i; 8185_ACEOF 8186if ac_fn_c_try_compile "$LINENO" 8187then : 8188 xorg_cv_cc_flag_unused_command_line_argument=yes 8189else case e in #( 8190 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8191esac 8192fi 8193rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8194esac 8195fi 8196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8199 CFLAGS="$xorg_testset_save_CFLAGS" 8200fi 8201 8202found="no" 8203 8204 if test $found = "no" ; then 8205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8207 fi 8208 8209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8211 fi 8212 8213 CFLAGS="$CFLAGS -Werror=sequence-point" 8214 8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8216printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8217 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8218 if eval test \${$cacheid+y} 8219then : 8220 printf %s "(cached) " >&6 8221else case e in #( 8222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8223/* end confdefs.h. */ 8224int i; 8225int 8226main (void) 8227{ 8228 8229 ; 8230 return 0; 8231} 8232_ACEOF 8233if ac_fn_c_try_link "$LINENO" 8234then : 8235 eval $cacheid=yes 8236else case e in #( 8237 e) eval $cacheid=no ;; 8238esac 8239fi 8240rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8241 conftest$ac_exeext conftest.$ac_ext ;; 8242esac 8243fi 8244 8245 8246 CFLAGS="$xorg_testset_save_CFLAGS" 8247 8248 eval supported=\$$cacheid 8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8250printf "%s\n" "$supported" >&6; } 8251 if test "$supported" = "yes" ; then 8252 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8253 found="yes" 8254 fi 8255 fi 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271xorg_testset_save_CFLAGS="$CFLAGS" 8272 8273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8276printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8277if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8278then : 8279 printf %s "(cached) " >&6 8280else case e in #( 8281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8282/* end confdefs.h. */ 8283int i; 8284_ACEOF 8285if ac_fn_c_try_compile "$LINENO" 8286then : 8287 xorg_cv_cc_flag_unknown_warning_option=yes 8288else case e in #( 8289 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8290esac 8291fi 8292rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8293esac 8294fi 8295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8298 CFLAGS="$xorg_testset_save_CFLAGS" 8299fi 8300 8301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8304 fi 8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8308if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8309then : 8310 printf %s "(cached) " >&6 8311else case e in #( 8312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8313/* end confdefs.h. */ 8314int i; 8315_ACEOF 8316if ac_fn_c_try_compile "$LINENO" 8317then : 8318 xorg_cv_cc_flag_unused_command_line_argument=yes 8319else case e in #( 8320 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8321esac 8322fi 8323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8324esac 8325fi 8326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8327printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8329 CFLAGS="$xorg_testset_save_CFLAGS" 8330fi 8331 8332found="no" 8333 8334 if test $found = "no" ; then 8335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8336 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8337 fi 8338 8339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8341 fi 8342 8343 CFLAGS="$CFLAGS -Werror=return-type" 8344 8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8346printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8347 cacheid=xorg_cv_cc_flag__Werror_return_type 8348 if eval test \${$cacheid+y} 8349then : 8350 printf %s "(cached) " >&6 8351else case e in #( 8352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8353/* end confdefs.h. */ 8354int i; 8355int 8356main (void) 8357{ 8358 8359 ; 8360 return 0; 8361} 8362_ACEOF 8363if ac_fn_c_try_link "$LINENO" 8364then : 8365 eval $cacheid=yes 8366else case e in #( 8367 e) eval $cacheid=no ;; 8368esac 8369fi 8370rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8371 conftest$ac_exeext conftest.$ac_ext ;; 8372esac 8373fi 8374 8375 8376 CFLAGS="$xorg_testset_save_CFLAGS" 8377 8378 eval supported=\$$cacheid 8379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8380printf "%s\n" "$supported" >&6; } 8381 if test "$supported" = "yes" ; then 8382 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8383 found="yes" 8384 fi 8385 fi 8386 8387 if test $found = "no" ; then 8388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8390 fi 8391 8392 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8394 fi 8395 8396 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8397 8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8399printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8400 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8401 if eval test \${$cacheid+y} 8402then : 8403 printf %s "(cached) " >&6 8404else case e in #( 8405 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8406/* end confdefs.h. */ 8407int i; 8408int 8409main (void) 8410{ 8411 8412 ; 8413 return 0; 8414} 8415_ACEOF 8416if ac_fn_c_try_link "$LINENO" 8417then : 8418 eval $cacheid=yes 8419else case e in #( 8420 e) eval $cacheid=no ;; 8421esac 8422fi 8423rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8424 conftest$ac_exeext conftest.$ac_ext ;; 8425esac 8426fi 8427 8428 8429 CFLAGS="$xorg_testset_save_CFLAGS" 8430 8431 eval supported=\$$cacheid 8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8433printf "%s\n" "$supported" >&6; } 8434 if test "$supported" = "yes" ; then 8435 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8436 found="yes" 8437 fi 8438 fi 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454xorg_testset_save_CFLAGS="$CFLAGS" 8455 8456if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8459printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8460if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8461then : 8462 printf %s "(cached) " >&6 8463else case e in #( 8464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8465/* end confdefs.h. */ 8466int i; 8467_ACEOF 8468if ac_fn_c_try_compile "$LINENO" 8469then : 8470 xorg_cv_cc_flag_unknown_warning_option=yes 8471else case e in #( 8472 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8473esac 8474fi 8475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8476esac 8477fi 8478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8479printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8480 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8481 CFLAGS="$xorg_testset_save_CFLAGS" 8482fi 8483 8484if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8487 fi 8488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8490printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8491if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8492then : 8493 printf %s "(cached) " >&6 8494else case e in #( 8495 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8496/* end confdefs.h. */ 8497int i; 8498_ACEOF 8499if ac_fn_c_try_compile "$LINENO" 8500then : 8501 xorg_cv_cc_flag_unused_command_line_argument=yes 8502else case e in #( 8503 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8504esac 8505fi 8506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8507esac 8508fi 8509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8512 CFLAGS="$xorg_testset_save_CFLAGS" 8513fi 8514 8515found="no" 8516 8517 if test $found = "no" ; then 8518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8520 fi 8521 8522 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8524 fi 8525 8526 CFLAGS="$CFLAGS -Werror=trigraphs" 8527 8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8529printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8530 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8531 if eval test \${$cacheid+y} 8532then : 8533 printf %s "(cached) " >&6 8534else case e in #( 8535 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8536/* end confdefs.h. */ 8537int i; 8538int 8539main (void) 8540{ 8541 8542 ; 8543 return 0; 8544} 8545_ACEOF 8546if ac_fn_c_try_link "$LINENO" 8547then : 8548 eval $cacheid=yes 8549else case e in #( 8550 e) eval $cacheid=no ;; 8551esac 8552fi 8553rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8554 conftest$ac_exeext conftest.$ac_ext ;; 8555esac 8556fi 8557 8558 8559 CFLAGS="$xorg_testset_save_CFLAGS" 8560 8561 eval supported=\$$cacheid 8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8563printf "%s\n" "$supported" >&6; } 8564 if test "$supported" = "yes" ; then 8565 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8566 found="yes" 8567 fi 8568 fi 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584xorg_testset_save_CFLAGS="$CFLAGS" 8585 8586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8587 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8589printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8590if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8591then : 8592 printf %s "(cached) " >&6 8593else case e in #( 8594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8595/* end confdefs.h. */ 8596int i; 8597_ACEOF 8598if ac_fn_c_try_compile "$LINENO" 8599then : 8600 xorg_cv_cc_flag_unknown_warning_option=yes 8601else case e in #( 8602 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8603esac 8604fi 8605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8606esac 8607fi 8608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8609printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8610 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8611 CFLAGS="$xorg_testset_save_CFLAGS" 8612fi 8613 8614if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8616 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8617 fi 8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8620printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8621if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8622then : 8623 printf %s "(cached) " >&6 8624else case e in #( 8625 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8626/* end confdefs.h. */ 8627int i; 8628_ACEOF 8629if ac_fn_c_try_compile "$LINENO" 8630then : 8631 xorg_cv_cc_flag_unused_command_line_argument=yes 8632else case e in #( 8633 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8634esac 8635fi 8636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8637esac 8638fi 8639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8640printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8642 CFLAGS="$xorg_testset_save_CFLAGS" 8643fi 8644 8645found="no" 8646 8647 if test $found = "no" ; then 8648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8650 fi 8651 8652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8654 fi 8655 8656 CFLAGS="$CFLAGS -Werror=array-bounds" 8657 8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8659printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8660 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8661 if eval test \${$cacheid+y} 8662then : 8663 printf %s "(cached) " >&6 8664else case e in #( 8665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8666/* end confdefs.h. */ 8667int i; 8668int 8669main (void) 8670{ 8671 8672 ; 8673 return 0; 8674} 8675_ACEOF 8676if ac_fn_c_try_link "$LINENO" 8677then : 8678 eval $cacheid=yes 8679else case e in #( 8680 e) eval $cacheid=no ;; 8681esac 8682fi 8683rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8684 conftest$ac_exeext conftest.$ac_ext ;; 8685esac 8686fi 8687 8688 8689 CFLAGS="$xorg_testset_save_CFLAGS" 8690 8691 eval supported=\$$cacheid 8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8693printf "%s\n" "$supported" >&6; } 8694 if test "$supported" = "yes" ; then 8695 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8696 found="yes" 8697 fi 8698 fi 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714xorg_testset_save_CFLAGS="$CFLAGS" 8715 8716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8720if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8721then : 8722 printf %s "(cached) " >&6 8723else case e in #( 8724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8725/* end confdefs.h. */ 8726int i; 8727_ACEOF 8728if ac_fn_c_try_compile "$LINENO" 8729then : 8730 xorg_cv_cc_flag_unknown_warning_option=yes 8731else case e in #( 8732 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8733esac 8734fi 8735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8736esac 8737fi 8738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8741 CFLAGS="$xorg_testset_save_CFLAGS" 8742fi 8743 8744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8747 fi 8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8751if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8752then : 8753 printf %s "(cached) " >&6 8754else case e in #( 8755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8756/* end confdefs.h. */ 8757int i; 8758_ACEOF 8759if ac_fn_c_try_compile "$LINENO" 8760then : 8761 xorg_cv_cc_flag_unused_command_line_argument=yes 8762else case e in #( 8763 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8764esac 8765fi 8766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8767esac 8768fi 8769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8772 CFLAGS="$xorg_testset_save_CFLAGS" 8773fi 8774 8775found="no" 8776 8777 if test $found = "no" ; then 8778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8780 fi 8781 8782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8784 fi 8785 8786 CFLAGS="$CFLAGS -Werror=write-strings" 8787 8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8789printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8790 cacheid=xorg_cv_cc_flag__Werror_write_strings 8791 if eval test \${$cacheid+y} 8792then : 8793 printf %s "(cached) " >&6 8794else case e in #( 8795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8796/* end confdefs.h. */ 8797int i; 8798int 8799main (void) 8800{ 8801 8802 ; 8803 return 0; 8804} 8805_ACEOF 8806if ac_fn_c_try_link "$LINENO" 8807then : 8808 eval $cacheid=yes 8809else case e in #( 8810 e) eval $cacheid=no ;; 8811esac 8812fi 8813rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8814 conftest$ac_exeext conftest.$ac_ext ;; 8815esac 8816fi 8817 8818 8819 CFLAGS="$xorg_testset_save_CFLAGS" 8820 8821 eval supported=\$$cacheid 8822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8823printf "%s\n" "$supported" >&6; } 8824 if test "$supported" = "yes" ; then 8825 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8826 found="yes" 8827 fi 8828 fi 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844xorg_testset_save_CFLAGS="$CFLAGS" 8845 8846if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8849printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8850if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8851then : 8852 printf %s "(cached) " >&6 8853else case e in #( 8854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8855/* end confdefs.h. */ 8856int i; 8857_ACEOF 8858if ac_fn_c_try_compile "$LINENO" 8859then : 8860 xorg_cv_cc_flag_unknown_warning_option=yes 8861else case e in #( 8862 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8863esac 8864fi 8865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8866esac 8867fi 8868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8869printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8871 CFLAGS="$xorg_testset_save_CFLAGS" 8872fi 8873 8874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8877 fi 8878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8880printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8881if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8882then : 8883 printf %s "(cached) " >&6 8884else case e in #( 8885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8886/* end confdefs.h. */ 8887int i; 8888_ACEOF 8889if ac_fn_c_try_compile "$LINENO" 8890then : 8891 xorg_cv_cc_flag_unused_command_line_argument=yes 8892else case e in #( 8893 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8894esac 8895fi 8896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8897esac 8898fi 8899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8900printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8902 CFLAGS="$xorg_testset_save_CFLAGS" 8903fi 8904 8905found="no" 8906 8907 if test $found = "no" ; then 8908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8910 fi 8911 8912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8914 fi 8915 8916 CFLAGS="$CFLAGS -Werror=address" 8917 8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8919printf %s "checking if $CC supports -Werror=address... " >&6; } 8920 cacheid=xorg_cv_cc_flag__Werror_address 8921 if eval test \${$cacheid+y} 8922then : 8923 printf %s "(cached) " >&6 8924else case e in #( 8925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8926/* end confdefs.h. */ 8927int i; 8928int 8929main (void) 8930{ 8931 8932 ; 8933 return 0; 8934} 8935_ACEOF 8936if ac_fn_c_try_link "$LINENO" 8937then : 8938 eval $cacheid=yes 8939else case e in #( 8940 e) eval $cacheid=no ;; 8941esac 8942fi 8943rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8944 conftest$ac_exeext conftest.$ac_ext ;; 8945esac 8946fi 8947 8948 8949 CFLAGS="$xorg_testset_save_CFLAGS" 8950 8951 eval supported=\$$cacheid 8952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8953printf "%s\n" "$supported" >&6; } 8954 if test "$supported" = "yes" ; then 8955 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8956 found="yes" 8957 fi 8958 fi 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974xorg_testset_save_CFLAGS="$CFLAGS" 8975 8976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8980if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8981then : 8982 printf %s "(cached) " >&6 8983else case e in #( 8984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8985/* end confdefs.h. */ 8986int i; 8987_ACEOF 8988if ac_fn_c_try_compile "$LINENO" 8989then : 8990 xorg_cv_cc_flag_unknown_warning_option=yes 8991else case e in #( 8992 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8993esac 8994fi 8995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8996esac 8997fi 8998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8999printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9000 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9001 CFLAGS="$xorg_testset_save_CFLAGS" 9002fi 9003 9004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9007 fi 9008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9010printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9011if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9012then : 9013 printf %s "(cached) " >&6 9014else case e in #( 9015 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9016/* end confdefs.h. */ 9017int i; 9018_ACEOF 9019if ac_fn_c_try_compile "$LINENO" 9020then : 9021 xorg_cv_cc_flag_unused_command_line_argument=yes 9022else case e in #( 9023 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9024esac 9025fi 9026rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9027esac 9028fi 9029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9030printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9031 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9032 CFLAGS="$xorg_testset_save_CFLAGS" 9033fi 9034 9035found="no" 9036 9037 if test $found = "no" ; then 9038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9040 fi 9041 9042 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9044 fi 9045 9046 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 9047 9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 9049printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 9050 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 9051 if eval test \${$cacheid+y} 9052then : 9053 printf %s "(cached) " >&6 9054else case e in #( 9055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9056/* end confdefs.h. */ 9057int i; 9058int 9059main (void) 9060{ 9061 9062 ; 9063 return 0; 9064} 9065_ACEOF 9066if ac_fn_c_try_link "$LINENO" 9067then : 9068 eval $cacheid=yes 9069else case e in #( 9070 e) eval $cacheid=no ;; 9071esac 9072fi 9073rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9074 conftest$ac_exeext conftest.$ac_ext ;; 9075esac 9076fi 9077 9078 9079 CFLAGS="$xorg_testset_save_CFLAGS" 9080 9081 eval supported=\$$cacheid 9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9083printf "%s\n" "$supported" >&6; } 9084 if test "$supported" = "yes" ; then 9085 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 9086 found="yes" 9087 fi 9088 fi 9089 9090 if test $found = "no" ; then 9091 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9092 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9093 fi 9094 9095 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9097 fi 9098 9099 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9100 9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 9102printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 9103 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 9104 if eval test \${$cacheid+y} 9105then : 9106 printf %s "(cached) " >&6 9107else case e in #( 9108 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9109/* end confdefs.h. */ 9110int i; 9111int 9112main (void) 9113{ 9114 9115 ; 9116 return 0; 9117} 9118_ACEOF 9119if ac_fn_c_try_link "$LINENO" 9120then : 9121 eval $cacheid=yes 9122else case e in #( 9123 e) eval $cacheid=no ;; 9124esac 9125fi 9126rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9127 conftest$ac_exeext conftest.$ac_ext ;; 9128esac 9129fi 9130 9131 9132 CFLAGS="$xorg_testset_save_CFLAGS" 9133 9134 eval supported=\$$cacheid 9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9136printf "%s\n" "$supported" >&6; } 9137 if test "$supported" = "yes" ; then 9138 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 9139 found="yes" 9140 fi 9141 fi 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157xorg_testset_save_CFLAGS="$CFLAGS" 9158 9159if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9162printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9163if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9164then : 9165 printf %s "(cached) " >&6 9166else case e in #( 9167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9168/* end confdefs.h. */ 9169int i; 9170_ACEOF 9171if ac_fn_c_try_compile "$LINENO" 9172then : 9173 xorg_cv_cc_flag_unknown_warning_option=yes 9174else case e in #( 9175 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9176esac 9177fi 9178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9179esac 9180fi 9181{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9182printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9184 CFLAGS="$xorg_testset_save_CFLAGS" 9185fi 9186 9187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9190 fi 9191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9193printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9194if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9195then : 9196 printf %s "(cached) " >&6 9197else case e in #( 9198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9199/* end confdefs.h. */ 9200int i; 9201_ACEOF 9202if ac_fn_c_try_compile "$LINENO" 9203then : 9204 xorg_cv_cc_flag_unused_command_line_argument=yes 9205else case e in #( 9206 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9207esac 9208fi 9209rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9210esac 9211fi 9212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9214 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9215 CFLAGS="$xorg_testset_save_CFLAGS" 9216fi 9217 9218found="no" 9219 9220 if test $found = "no" ; then 9221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9223 fi 9224 9225 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9227 fi 9228 9229 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9230 9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9232printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9233 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9234 if eval test \${$cacheid+y} 9235then : 9236 printf %s "(cached) " >&6 9237else case e in #( 9238 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240int i; 9241int 9242main (void) 9243{ 9244 9245 ; 9246 return 0; 9247} 9248_ACEOF 9249if ac_fn_c_try_link "$LINENO" 9250then : 9251 eval $cacheid=yes 9252else case e in #( 9253 e) eval $cacheid=no ;; 9254esac 9255fi 9256rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9257 conftest$ac_exeext conftest.$ac_ext ;; 9258esac 9259fi 9260 9261 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263 9264 eval supported=\$$cacheid 9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9266printf "%s\n" "$supported" >&6; } 9267 if test "$supported" = "yes" ; then 9268 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9269 found="yes" 9270 fi 9271 fi 9272 9273 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9274else 9275{ 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 9276printf "%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;} 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290xorg_testset_save_CFLAGS="$CFLAGS" 9291 9292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9295printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9296if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9297then : 9298 printf %s "(cached) " >&6 9299else case e in #( 9300 e) 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_unknown_warning_option=yes 9307else case e in #( 9308 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9309esac 9310fi 9311rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9312esac 9313fi 9314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9315printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9317 CFLAGS="$xorg_testset_save_CFLAGS" 9318fi 9319 9320if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 fi 9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9326printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9327if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9328then : 9329 printf %s "(cached) " >&6 9330else case e in #( 9331 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9332/* end confdefs.h. */ 9333int i; 9334_ACEOF 9335if ac_fn_c_try_compile "$LINENO" 9336then : 9337 xorg_cv_cc_flag_unused_command_line_argument=yes 9338else case e in #( 9339 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9340esac 9341fi 9342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9343esac 9344fi 9345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9346printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9348 CFLAGS="$xorg_testset_save_CFLAGS" 9349fi 9350 9351found="no" 9352 9353 if test $found = "no" ; then 9354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9356 fi 9357 9358 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9360 fi 9361 9362 CFLAGS="$CFLAGS -Wimplicit" 9363 9364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9365printf %s "checking if $CC supports -Wimplicit... " >&6; } 9366 cacheid=xorg_cv_cc_flag__Wimplicit 9367 if eval test \${$cacheid+y} 9368then : 9369 printf %s "(cached) " >&6 9370else case e in #( 9371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9372/* end confdefs.h. */ 9373int i; 9374int 9375main (void) 9376{ 9377 9378 ; 9379 return 0; 9380} 9381_ACEOF 9382if ac_fn_c_try_link "$LINENO" 9383then : 9384 eval $cacheid=yes 9385else case e in #( 9386 e) eval $cacheid=no ;; 9387esac 9388fi 9389rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9390 conftest$ac_exeext conftest.$ac_ext ;; 9391esac 9392fi 9393 9394 9395 CFLAGS="$xorg_testset_save_CFLAGS" 9396 9397 eval supported=\$$cacheid 9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9399printf "%s\n" "$supported" >&6; } 9400 if test "$supported" = "yes" ; then 9401 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9402 found="yes" 9403 fi 9404 fi 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420xorg_testset_save_CFLAGS="$CFLAGS" 9421 9422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9426if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9427then : 9428 printf %s "(cached) " >&6 9429else case e in #( 9430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9431/* end confdefs.h. */ 9432int i; 9433_ACEOF 9434if ac_fn_c_try_compile "$LINENO" 9435then : 9436 xorg_cv_cc_flag_unknown_warning_option=yes 9437else case e in #( 9438 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9439esac 9440fi 9441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9442esac 9443fi 9444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9445printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9446 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9447 CFLAGS="$xorg_testset_save_CFLAGS" 9448fi 9449 9450if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9451 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9453 fi 9454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9456printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9457if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9458then : 9459 printf %s "(cached) " >&6 9460else case e in #( 9461 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9462/* end confdefs.h. */ 9463int i; 9464_ACEOF 9465if ac_fn_c_try_compile "$LINENO" 9466then : 9467 xorg_cv_cc_flag_unused_command_line_argument=yes 9468else case e in #( 9469 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9470esac 9471fi 9472rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9473esac 9474fi 9475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9476printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9478 CFLAGS="$xorg_testset_save_CFLAGS" 9479fi 9480 9481found="no" 9482 9483 if test $found = "no" ; then 9484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9486 fi 9487 9488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9490 fi 9491 9492 CFLAGS="$CFLAGS -Wnonnull" 9493 9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9495printf %s "checking if $CC supports -Wnonnull... " >&6; } 9496 cacheid=xorg_cv_cc_flag__Wnonnull 9497 if eval test \${$cacheid+y} 9498then : 9499 printf %s "(cached) " >&6 9500else case e in #( 9501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9502/* end confdefs.h. */ 9503int i; 9504int 9505main (void) 9506{ 9507 9508 ; 9509 return 0; 9510} 9511_ACEOF 9512if ac_fn_c_try_link "$LINENO" 9513then : 9514 eval $cacheid=yes 9515else case e in #( 9516 e) eval $cacheid=no ;; 9517esac 9518fi 9519rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9520 conftest$ac_exeext conftest.$ac_ext ;; 9521esac 9522fi 9523 9524 9525 CFLAGS="$xorg_testset_save_CFLAGS" 9526 9527 eval supported=\$$cacheid 9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9529printf "%s\n" "$supported" >&6; } 9530 if test "$supported" = "yes" ; then 9531 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9532 found="yes" 9533 fi 9534 fi 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550xorg_testset_save_CFLAGS="$CFLAGS" 9551 9552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9553 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9555printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9556if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9557then : 9558 printf %s "(cached) " >&6 9559else case e in #( 9560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9561/* end confdefs.h. */ 9562int i; 9563_ACEOF 9564if ac_fn_c_try_compile "$LINENO" 9565then : 9566 xorg_cv_cc_flag_unknown_warning_option=yes 9567else case e in #( 9568 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9569esac 9570fi 9571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9572esac 9573fi 9574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9577 CFLAGS="$xorg_testset_save_CFLAGS" 9578fi 9579 9580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9583 fi 9584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9587if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9588then : 9589 printf %s "(cached) " >&6 9590else case e in #( 9591 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9592/* end confdefs.h. */ 9593int i; 9594_ACEOF 9595if ac_fn_c_try_compile "$LINENO" 9596then : 9597 xorg_cv_cc_flag_unused_command_line_argument=yes 9598else case e in #( 9599 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9600esac 9601fi 9602rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9603esac 9604fi 9605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9606printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9607 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9608 CFLAGS="$xorg_testset_save_CFLAGS" 9609fi 9610 9611found="no" 9612 9613 if test $found = "no" ; then 9614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9616 fi 9617 9618 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9620 fi 9621 9622 CFLAGS="$CFLAGS -Winit-self" 9623 9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9625printf %s "checking if $CC supports -Winit-self... " >&6; } 9626 cacheid=xorg_cv_cc_flag__Winit_self 9627 if eval test \${$cacheid+y} 9628then : 9629 printf %s "(cached) " >&6 9630else case e in #( 9631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9632/* end confdefs.h. */ 9633int i; 9634int 9635main (void) 9636{ 9637 9638 ; 9639 return 0; 9640} 9641_ACEOF 9642if ac_fn_c_try_link "$LINENO" 9643then : 9644 eval $cacheid=yes 9645else case e in #( 9646 e) eval $cacheid=no ;; 9647esac 9648fi 9649rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9650 conftest$ac_exeext conftest.$ac_ext ;; 9651esac 9652fi 9653 9654 9655 CFLAGS="$xorg_testset_save_CFLAGS" 9656 9657 eval supported=\$$cacheid 9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9659printf "%s\n" "$supported" >&6; } 9660 if test "$supported" = "yes" ; then 9661 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9662 found="yes" 9663 fi 9664 fi 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680xorg_testset_save_CFLAGS="$CFLAGS" 9681 9682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9685printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9686if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9687then : 9688 printf %s "(cached) " >&6 9689else case e in #( 9690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9691/* end confdefs.h. */ 9692int i; 9693_ACEOF 9694if ac_fn_c_try_compile "$LINENO" 9695then : 9696 xorg_cv_cc_flag_unknown_warning_option=yes 9697else case e in #( 9698 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9699esac 9700fi 9701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9702esac 9703fi 9704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9705printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9707 CFLAGS="$xorg_testset_save_CFLAGS" 9708fi 9709 9710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9713 fi 9714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9716printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9717if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9718then : 9719 printf %s "(cached) " >&6 9720else case e in #( 9721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723int i; 9724_ACEOF 9725if ac_fn_c_try_compile "$LINENO" 9726then : 9727 xorg_cv_cc_flag_unused_command_line_argument=yes 9728else case e in #( 9729 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9730esac 9731fi 9732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9733esac 9734fi 9735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9736printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9738 CFLAGS="$xorg_testset_save_CFLAGS" 9739fi 9740 9741found="no" 9742 9743 if test $found = "no" ; then 9744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9746 fi 9747 9748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9750 fi 9751 9752 CFLAGS="$CFLAGS -Wmain" 9753 9754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9755printf %s "checking if $CC supports -Wmain... " >&6; } 9756 cacheid=xorg_cv_cc_flag__Wmain 9757 if eval test \${$cacheid+y} 9758then : 9759 printf %s "(cached) " >&6 9760else case e in #( 9761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9762/* end confdefs.h. */ 9763int i; 9764int 9765main (void) 9766{ 9767 9768 ; 9769 return 0; 9770} 9771_ACEOF 9772if ac_fn_c_try_link "$LINENO" 9773then : 9774 eval $cacheid=yes 9775else case e in #( 9776 e) eval $cacheid=no ;; 9777esac 9778fi 9779rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9780 conftest$ac_exeext conftest.$ac_ext ;; 9781esac 9782fi 9783 9784 9785 CFLAGS="$xorg_testset_save_CFLAGS" 9786 9787 eval supported=\$$cacheid 9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9789printf "%s\n" "$supported" >&6; } 9790 if test "$supported" = "yes" ; then 9791 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9792 found="yes" 9793 fi 9794 fi 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810xorg_testset_save_CFLAGS="$CFLAGS" 9811 9812if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9815printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9816if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9817then : 9818 printf %s "(cached) " >&6 9819else case e in #( 9820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9821/* end confdefs.h. */ 9822int i; 9823_ACEOF 9824if ac_fn_c_try_compile "$LINENO" 9825then : 9826 xorg_cv_cc_flag_unknown_warning_option=yes 9827else case e in #( 9828 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9829esac 9830fi 9831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9832esac 9833fi 9834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9835printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9836 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9837 CFLAGS="$xorg_testset_save_CFLAGS" 9838fi 9839 9840if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9843 fi 9844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9846printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9847if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9848then : 9849 printf %s "(cached) " >&6 9850else case e in #( 9851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853int i; 9854_ACEOF 9855if ac_fn_c_try_compile "$LINENO" 9856then : 9857 xorg_cv_cc_flag_unused_command_line_argument=yes 9858else case e in #( 9859 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9860esac 9861fi 9862rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9863esac 9864fi 9865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9866printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9868 CFLAGS="$xorg_testset_save_CFLAGS" 9869fi 9870 9871found="no" 9872 9873 if test $found = "no" ; then 9874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9876 fi 9877 9878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9880 fi 9881 9882 CFLAGS="$CFLAGS -Wmissing-braces" 9883 9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9885printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9886 cacheid=xorg_cv_cc_flag__Wmissing_braces 9887 if eval test \${$cacheid+y} 9888then : 9889 printf %s "(cached) " >&6 9890else case e in #( 9891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9892/* end confdefs.h. */ 9893int i; 9894int 9895main (void) 9896{ 9897 9898 ; 9899 return 0; 9900} 9901_ACEOF 9902if ac_fn_c_try_link "$LINENO" 9903then : 9904 eval $cacheid=yes 9905else case e in #( 9906 e) eval $cacheid=no ;; 9907esac 9908fi 9909rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9910 conftest$ac_exeext conftest.$ac_ext ;; 9911esac 9912fi 9913 9914 9915 CFLAGS="$xorg_testset_save_CFLAGS" 9916 9917 eval supported=\$$cacheid 9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9919printf "%s\n" "$supported" >&6; } 9920 if test "$supported" = "yes" ; then 9921 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9922 found="yes" 9923 fi 9924 fi 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940xorg_testset_save_CFLAGS="$CFLAGS" 9941 9942if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9945printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9946if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9947then : 9948 printf %s "(cached) " >&6 9949else case e in #( 9950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9951/* end confdefs.h. */ 9952int i; 9953_ACEOF 9954if ac_fn_c_try_compile "$LINENO" 9955then : 9956 xorg_cv_cc_flag_unknown_warning_option=yes 9957else case e in #( 9958 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9959esac 9960fi 9961rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9962esac 9963fi 9964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9965printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9966 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9967 CFLAGS="$xorg_testset_save_CFLAGS" 9968fi 9969 9970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9972 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9973 fi 9974 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9976printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9977if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9978then : 9979 printf %s "(cached) " >&6 9980else case e in #( 9981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9982/* end confdefs.h. */ 9983int i; 9984_ACEOF 9985if ac_fn_c_try_compile "$LINENO" 9986then : 9987 xorg_cv_cc_flag_unused_command_line_argument=yes 9988else case e in #( 9989 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9990esac 9991fi 9992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9993esac 9994fi 9995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9996printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9998 CFLAGS="$xorg_testset_save_CFLAGS" 9999fi 10000 10001found="no" 10002 10003 if test $found = "no" ; then 10004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10006 fi 10007 10008 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10010 fi 10011 10012 CFLAGS="$CFLAGS -Wsequence-point" 10013 10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 10015printf %s "checking if $CC supports -Wsequence-point... " >&6; } 10016 cacheid=xorg_cv_cc_flag__Wsequence_point 10017 if eval test \${$cacheid+y} 10018then : 10019 printf %s "(cached) " >&6 10020else case e in #( 10021 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10022/* end confdefs.h. */ 10023int i; 10024int 10025main (void) 10026{ 10027 10028 ; 10029 return 0; 10030} 10031_ACEOF 10032if ac_fn_c_try_link "$LINENO" 10033then : 10034 eval $cacheid=yes 10035else case e in #( 10036 e) eval $cacheid=no ;; 10037esac 10038fi 10039rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10040 conftest$ac_exeext conftest.$ac_ext ;; 10041esac 10042fi 10043 10044 10045 CFLAGS="$xorg_testset_save_CFLAGS" 10046 10047 eval supported=\$$cacheid 10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10049printf "%s\n" "$supported" >&6; } 10050 if test "$supported" = "yes" ; then 10051 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 10052 found="yes" 10053 fi 10054 fi 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070xorg_testset_save_CFLAGS="$CFLAGS" 10071 10072if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10075printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10076if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10077then : 10078 printf %s "(cached) " >&6 10079else case e in #( 10080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10081/* end confdefs.h. */ 10082int i; 10083_ACEOF 10084if ac_fn_c_try_compile "$LINENO" 10085then : 10086 xorg_cv_cc_flag_unknown_warning_option=yes 10087else case e in #( 10088 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10089esac 10090fi 10091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10092esac 10093fi 10094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10095printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10097 CFLAGS="$xorg_testset_save_CFLAGS" 10098fi 10099 10100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10103 fi 10104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10106printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10107if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10108then : 10109 printf %s "(cached) " >&6 10110else case e in #( 10111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10112/* end confdefs.h. */ 10113int i; 10114_ACEOF 10115if ac_fn_c_try_compile "$LINENO" 10116then : 10117 xorg_cv_cc_flag_unused_command_line_argument=yes 10118else case e in #( 10119 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10120esac 10121fi 10122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10123esac 10124fi 10125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10126printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10128 CFLAGS="$xorg_testset_save_CFLAGS" 10129fi 10130 10131found="no" 10132 10133 if test $found = "no" ; then 10134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10136 fi 10137 10138 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10140 fi 10141 10142 CFLAGS="$CFLAGS -Wreturn-type" 10143 10144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 10145printf %s "checking if $CC supports -Wreturn-type... " >&6; } 10146 cacheid=xorg_cv_cc_flag__Wreturn_type 10147 if eval test \${$cacheid+y} 10148then : 10149 printf %s "(cached) " >&6 10150else case e in #( 10151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10152/* end confdefs.h. */ 10153int i; 10154int 10155main (void) 10156{ 10157 10158 ; 10159 return 0; 10160} 10161_ACEOF 10162if ac_fn_c_try_link "$LINENO" 10163then : 10164 eval $cacheid=yes 10165else case e in #( 10166 e) eval $cacheid=no ;; 10167esac 10168fi 10169rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10170 conftest$ac_exeext conftest.$ac_ext ;; 10171esac 10172fi 10173 10174 10175 CFLAGS="$xorg_testset_save_CFLAGS" 10176 10177 eval supported=\$$cacheid 10178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10179printf "%s\n" "$supported" >&6; } 10180 if test "$supported" = "yes" ; then 10181 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 10182 found="yes" 10183 fi 10184 fi 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200xorg_testset_save_CFLAGS="$CFLAGS" 10201 10202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10206if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10207then : 10208 printf %s "(cached) " >&6 10209else case e in #( 10210 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10211/* end confdefs.h. */ 10212int i; 10213_ACEOF 10214if ac_fn_c_try_compile "$LINENO" 10215then : 10216 xorg_cv_cc_flag_unknown_warning_option=yes 10217else case e in #( 10218 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10219esac 10220fi 10221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10222esac 10223fi 10224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10226 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10227 CFLAGS="$xorg_testset_save_CFLAGS" 10228fi 10229 10230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10232 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10233 fi 10234 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10237if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10238then : 10239 printf %s "(cached) " >&6 10240else case e in #( 10241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10242/* end confdefs.h. */ 10243int i; 10244_ACEOF 10245if ac_fn_c_try_compile "$LINENO" 10246then : 10247 xorg_cv_cc_flag_unused_command_line_argument=yes 10248else case e in #( 10249 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10250esac 10251fi 10252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10253esac 10254fi 10255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10256printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10258 CFLAGS="$xorg_testset_save_CFLAGS" 10259fi 10260 10261found="no" 10262 10263 if test $found = "no" ; then 10264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10266 fi 10267 10268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10270 fi 10271 10272 CFLAGS="$CFLAGS -Wtrigraphs" 10273 10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10275printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10276 cacheid=xorg_cv_cc_flag__Wtrigraphs 10277 if eval test \${$cacheid+y} 10278then : 10279 printf %s "(cached) " >&6 10280else case e in #( 10281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10282/* end confdefs.h. */ 10283int i; 10284int 10285main (void) 10286{ 10287 10288 ; 10289 return 0; 10290} 10291_ACEOF 10292if ac_fn_c_try_link "$LINENO" 10293then : 10294 eval $cacheid=yes 10295else case e in #( 10296 e) eval $cacheid=no ;; 10297esac 10298fi 10299rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10300 conftest$ac_exeext conftest.$ac_ext ;; 10301esac 10302fi 10303 10304 10305 CFLAGS="$xorg_testset_save_CFLAGS" 10306 10307 eval supported=\$$cacheid 10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10309printf "%s\n" "$supported" >&6; } 10310 if test "$supported" = "yes" ; then 10311 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10312 found="yes" 10313 fi 10314 fi 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330xorg_testset_save_CFLAGS="$CFLAGS" 10331 10332if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10335printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10336if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10337then : 10338 printf %s "(cached) " >&6 10339else case e in #( 10340 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10341/* end confdefs.h. */ 10342int i; 10343_ACEOF 10344if ac_fn_c_try_compile "$LINENO" 10345then : 10346 xorg_cv_cc_flag_unknown_warning_option=yes 10347else case e in #( 10348 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10349esac 10350fi 10351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10352esac 10353fi 10354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10355printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10356 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10357 CFLAGS="$xorg_testset_save_CFLAGS" 10358fi 10359 10360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10363 fi 10364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10366printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10367if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10368then : 10369 printf %s "(cached) " >&6 10370else case e in #( 10371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10372/* end confdefs.h. */ 10373int i; 10374_ACEOF 10375if ac_fn_c_try_compile "$LINENO" 10376then : 10377 xorg_cv_cc_flag_unused_command_line_argument=yes 10378else case e in #( 10379 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10380esac 10381fi 10382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10383esac 10384fi 10385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10386printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10387 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10388 CFLAGS="$xorg_testset_save_CFLAGS" 10389fi 10390 10391found="no" 10392 10393 if test $found = "no" ; then 10394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10395 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10396 fi 10397 10398 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10400 fi 10401 10402 CFLAGS="$CFLAGS -Warray-bounds" 10403 10404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10405printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10406 cacheid=xorg_cv_cc_flag__Warray_bounds 10407 if eval test \${$cacheid+y} 10408then : 10409 printf %s "(cached) " >&6 10410else case e in #( 10411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10412/* end confdefs.h. */ 10413int i; 10414int 10415main (void) 10416{ 10417 10418 ; 10419 return 0; 10420} 10421_ACEOF 10422if ac_fn_c_try_link "$LINENO" 10423then : 10424 eval $cacheid=yes 10425else case e in #( 10426 e) eval $cacheid=no ;; 10427esac 10428fi 10429rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10430 conftest$ac_exeext conftest.$ac_ext ;; 10431esac 10432fi 10433 10434 10435 CFLAGS="$xorg_testset_save_CFLAGS" 10436 10437 eval supported=\$$cacheid 10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10439printf "%s\n" "$supported" >&6; } 10440 if test "$supported" = "yes" ; then 10441 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10442 found="yes" 10443 fi 10444 fi 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460xorg_testset_save_CFLAGS="$CFLAGS" 10461 10462if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10463 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10465printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10466if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10467then : 10468 printf %s "(cached) " >&6 10469else case e in #( 10470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10471/* end confdefs.h. */ 10472int i; 10473_ACEOF 10474if ac_fn_c_try_compile "$LINENO" 10475then : 10476 xorg_cv_cc_flag_unknown_warning_option=yes 10477else case e in #( 10478 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10479esac 10480fi 10481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10482esac 10483fi 10484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10485printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10487 CFLAGS="$xorg_testset_save_CFLAGS" 10488fi 10489 10490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10493 fi 10494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10496printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10497if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10498then : 10499 printf %s "(cached) " >&6 10500else case e in #( 10501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10502/* end confdefs.h. */ 10503int i; 10504_ACEOF 10505if ac_fn_c_try_compile "$LINENO" 10506then : 10507 xorg_cv_cc_flag_unused_command_line_argument=yes 10508else case e in #( 10509 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10510esac 10511fi 10512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10513esac 10514fi 10515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10516printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10518 CFLAGS="$xorg_testset_save_CFLAGS" 10519fi 10520 10521found="no" 10522 10523 if test $found = "no" ; then 10524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10526 fi 10527 10528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10530 fi 10531 10532 CFLAGS="$CFLAGS -Wwrite-strings" 10533 10534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10535printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10536 cacheid=xorg_cv_cc_flag__Wwrite_strings 10537 if eval test \${$cacheid+y} 10538then : 10539 printf %s "(cached) " >&6 10540else case e in #( 10541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10542/* end confdefs.h. */ 10543int i; 10544int 10545main (void) 10546{ 10547 10548 ; 10549 return 0; 10550} 10551_ACEOF 10552if ac_fn_c_try_link "$LINENO" 10553then : 10554 eval $cacheid=yes 10555else case e in #( 10556 e) eval $cacheid=no ;; 10557esac 10558fi 10559rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10560 conftest$ac_exeext conftest.$ac_ext ;; 10561esac 10562fi 10563 10564 10565 CFLAGS="$xorg_testset_save_CFLAGS" 10566 10567 eval supported=\$$cacheid 10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10569printf "%s\n" "$supported" >&6; } 10570 if test "$supported" = "yes" ; then 10571 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10572 found="yes" 10573 fi 10574 fi 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590xorg_testset_save_CFLAGS="$CFLAGS" 10591 10592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10596if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10597then : 10598 printf %s "(cached) " >&6 10599else case e in #( 10600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10601/* end confdefs.h. */ 10602int i; 10603_ACEOF 10604if ac_fn_c_try_compile "$LINENO" 10605then : 10606 xorg_cv_cc_flag_unknown_warning_option=yes 10607else case e in #( 10608 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10609esac 10610fi 10611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10612esac 10613fi 10614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10615printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10617 CFLAGS="$xorg_testset_save_CFLAGS" 10618fi 10619 10620if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10623 fi 10624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10626printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10627if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10628then : 10629 printf %s "(cached) " >&6 10630else case e in #( 10631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10632/* end confdefs.h. */ 10633int i; 10634_ACEOF 10635if ac_fn_c_try_compile "$LINENO" 10636then : 10637 xorg_cv_cc_flag_unused_command_line_argument=yes 10638else case e in #( 10639 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10640esac 10641fi 10642rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10643esac 10644fi 10645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10646printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10647 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10648 CFLAGS="$xorg_testset_save_CFLAGS" 10649fi 10650 10651found="no" 10652 10653 if test $found = "no" ; then 10654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10656 fi 10657 10658 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10660 fi 10661 10662 CFLAGS="$CFLAGS -Waddress" 10663 10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10665printf %s "checking if $CC supports -Waddress... " >&6; } 10666 cacheid=xorg_cv_cc_flag__Waddress 10667 if eval test \${$cacheid+y} 10668then : 10669 printf %s "(cached) " >&6 10670else case e in #( 10671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10672/* end confdefs.h. */ 10673int i; 10674int 10675main (void) 10676{ 10677 10678 ; 10679 return 0; 10680} 10681_ACEOF 10682if ac_fn_c_try_link "$LINENO" 10683then : 10684 eval $cacheid=yes 10685else case e in #( 10686 e) eval $cacheid=no ;; 10687esac 10688fi 10689rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10690 conftest$ac_exeext conftest.$ac_ext ;; 10691esac 10692fi 10693 10694 10695 CFLAGS="$xorg_testset_save_CFLAGS" 10696 10697 eval supported=\$$cacheid 10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10699printf "%s\n" "$supported" >&6; } 10700 if test "$supported" = "yes" ; then 10701 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10702 found="yes" 10703 fi 10704 fi 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720xorg_testset_save_CFLAGS="$CFLAGS" 10721 10722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10723 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10725printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10726if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10727then : 10728 printf %s "(cached) " >&6 10729else case e in #( 10730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10731/* end confdefs.h. */ 10732int i; 10733_ACEOF 10734if ac_fn_c_try_compile "$LINENO" 10735then : 10736 xorg_cv_cc_flag_unknown_warning_option=yes 10737else case e in #( 10738 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10739esac 10740fi 10741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10742esac 10743fi 10744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10745printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10747 CFLAGS="$xorg_testset_save_CFLAGS" 10748fi 10749 10750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10752 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10753 fi 10754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10756printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10757if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10758then : 10759 printf %s "(cached) " >&6 10760else case e in #( 10761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10762/* end confdefs.h. */ 10763int i; 10764_ACEOF 10765if ac_fn_c_try_compile "$LINENO" 10766then : 10767 xorg_cv_cc_flag_unused_command_line_argument=yes 10768else case e in #( 10769 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10770esac 10771fi 10772rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10773esac 10774fi 10775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10776printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10777 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10778 CFLAGS="$xorg_testset_save_CFLAGS" 10779fi 10780 10781found="no" 10782 10783 if test $found = "no" ; then 10784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10785 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10786 fi 10787 10788 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10790 fi 10791 10792 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10793 10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10795printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10796 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10797 if eval test \${$cacheid+y} 10798then : 10799 printf %s "(cached) " >&6 10800else case e in #( 10801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802/* end confdefs.h. */ 10803int i; 10804int 10805main (void) 10806{ 10807 10808 ; 10809 return 0; 10810} 10811_ACEOF 10812if ac_fn_c_try_link "$LINENO" 10813then : 10814 eval $cacheid=yes 10815else case e in #( 10816 e) eval $cacheid=no ;; 10817esac 10818fi 10819rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10820 conftest$ac_exeext conftest.$ac_ext ;; 10821esac 10822fi 10823 10824 10825 CFLAGS="$xorg_testset_save_CFLAGS" 10826 10827 eval supported=\$$cacheid 10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10829printf "%s\n" "$supported" >&6; } 10830 if test "$supported" = "yes" ; then 10831 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10832 found="yes" 10833 fi 10834 fi 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850xorg_testset_save_CFLAGS="$CFLAGS" 10851 10852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10855printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10856if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10857then : 10858 printf %s "(cached) " >&6 10859else case e in #( 10860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10861/* end confdefs.h. */ 10862int i; 10863_ACEOF 10864if ac_fn_c_try_compile "$LINENO" 10865then : 10866 xorg_cv_cc_flag_unknown_warning_option=yes 10867else case e in #( 10868 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10869esac 10870fi 10871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10872esac 10873fi 10874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10875printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10876 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10877 CFLAGS="$xorg_testset_save_CFLAGS" 10878fi 10879 10880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10882 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10883 fi 10884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10886printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10887if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10888then : 10889 printf %s "(cached) " >&6 10890else case e in #( 10891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10892/* end confdefs.h. */ 10893int i; 10894_ACEOF 10895if ac_fn_c_try_compile "$LINENO" 10896then : 10897 xorg_cv_cc_flag_unused_command_line_argument=yes 10898else case e in #( 10899 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10900esac 10901fi 10902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10903esac 10904fi 10905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10906printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10908 CFLAGS="$xorg_testset_save_CFLAGS" 10909fi 10910 10911found="no" 10912 10913 if test $found = "no" ; then 10914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10915 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10916 fi 10917 10918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10920 fi 10921 10922 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10923 10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10925printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10926 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10927 if eval test \${$cacheid+y} 10928then : 10929 printf %s "(cached) " >&6 10930else case e in #( 10931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10932/* end confdefs.h. */ 10933int i; 10934int 10935main (void) 10936{ 10937 10938 ; 10939 return 0; 10940} 10941_ACEOF 10942if ac_fn_c_try_link "$LINENO" 10943then : 10944 eval $cacheid=yes 10945else case e in #( 10946 e) eval $cacheid=no ;; 10947esac 10948fi 10949rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10950 conftest$ac_exeext conftest.$ac_ext ;; 10951esac 10952fi 10953 10954 10955 CFLAGS="$xorg_testset_save_CFLAGS" 10956 10957 eval supported=\$$cacheid 10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10959printf "%s\n" "$supported" >&6; } 10960 if test "$supported" = "yes" ; then 10961 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10962 found="yes" 10963 fi 10964 fi 10965 10966 10967fi 10968 10969 10970 10971 10972 10973 10974 10975 CWARNFLAGS="$BASE_CFLAGS" 10976 if test "x$GCC" = xyes ; then 10977 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10978 fi 10979 10980 10981 10982 10983 10984 10985 10986 10987# Check whether --enable-strict-compilation was given. 10988if test ${enable_strict_compilation+y} 10989then : 10990 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10991else case e in #( 10992 e) STRICT_COMPILE=no ;; 10993esac 10994fi 10995 10996 10997 10998 10999 11000 11001STRICT_CFLAGS="" 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015xorg_testset_save_CFLAGS="$CFLAGS" 11016 11017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11021if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11022then : 11023 printf %s "(cached) " >&6 11024else case e in #( 11025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11026/* end confdefs.h. */ 11027int i; 11028_ACEOF 11029if ac_fn_c_try_compile "$LINENO" 11030then : 11031 xorg_cv_cc_flag_unknown_warning_option=yes 11032else case e in #( 11033 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11034esac 11035fi 11036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11037esac 11038fi 11039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11042 CFLAGS="$xorg_testset_save_CFLAGS" 11043fi 11044 11045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11048 fi 11049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11052if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11053then : 11054 printf %s "(cached) " >&6 11055else case e in #( 11056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11057/* end confdefs.h. */ 11058int i; 11059_ACEOF 11060if ac_fn_c_try_compile "$LINENO" 11061then : 11062 xorg_cv_cc_flag_unused_command_line_argument=yes 11063else case e in #( 11064 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11065esac 11066fi 11067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11068esac 11069fi 11070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11073 CFLAGS="$xorg_testset_save_CFLAGS" 11074fi 11075 11076found="no" 11077 11078 if test $found = "no" ; then 11079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11081 fi 11082 11083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11085 fi 11086 11087 CFLAGS="$CFLAGS -pedantic" 11088 11089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 11090printf %s "checking if $CC supports -pedantic... " >&6; } 11091 cacheid=xorg_cv_cc_flag__pedantic 11092 if eval test \${$cacheid+y} 11093then : 11094 printf %s "(cached) " >&6 11095else case e in #( 11096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11097/* end confdefs.h. */ 11098int i; 11099int 11100main (void) 11101{ 11102 11103 ; 11104 return 0; 11105} 11106_ACEOF 11107if ac_fn_c_try_link "$LINENO" 11108then : 11109 eval $cacheid=yes 11110else case e in #( 11111 e) eval $cacheid=no ;; 11112esac 11113fi 11114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11115 conftest$ac_exeext conftest.$ac_ext ;; 11116esac 11117fi 11118 11119 11120 CFLAGS="$xorg_testset_save_CFLAGS" 11121 11122 eval supported=\$$cacheid 11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11124printf "%s\n" "$supported" >&6; } 11125 if test "$supported" = "yes" ; then 11126 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 11127 found="yes" 11128 fi 11129 fi 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145xorg_testset_save_CFLAGS="$CFLAGS" 11146 11147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11152then : 11153 printf %s "(cached) " >&6 11154else case e in #( 11155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11156/* end confdefs.h. */ 11157int i; 11158_ACEOF 11159if ac_fn_c_try_compile "$LINENO" 11160then : 11161 xorg_cv_cc_flag_unknown_warning_option=yes 11162else case e in #( 11163 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11164esac 11165fi 11166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11167esac 11168fi 11169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11172 CFLAGS="$xorg_testset_save_CFLAGS" 11173fi 11174 11175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11178 fi 11179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11182if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11183then : 11184 printf %s "(cached) " >&6 11185else case e in #( 11186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11187/* end confdefs.h. */ 11188int i; 11189_ACEOF 11190if ac_fn_c_try_compile "$LINENO" 11191then : 11192 xorg_cv_cc_flag_unused_command_line_argument=yes 11193else case e in #( 11194 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11195esac 11196fi 11197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11198esac 11199fi 11200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11203 CFLAGS="$xorg_testset_save_CFLAGS" 11204fi 11205 11206found="no" 11207 11208 if test $found = "no" ; then 11209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11211 fi 11212 11213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11215 fi 11216 11217 CFLAGS="$CFLAGS -Werror" 11218 11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11220printf %s "checking if $CC supports -Werror... " >&6; } 11221 cacheid=xorg_cv_cc_flag__Werror 11222 if eval test \${$cacheid+y} 11223then : 11224 printf %s "(cached) " >&6 11225else case e in #( 11226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11227/* end confdefs.h. */ 11228int i; 11229int 11230main (void) 11231{ 11232 11233 ; 11234 return 0; 11235} 11236_ACEOF 11237if ac_fn_c_try_link "$LINENO" 11238then : 11239 eval $cacheid=yes 11240else case e in #( 11241 e) eval $cacheid=no ;; 11242esac 11243fi 11244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11245 conftest$ac_exeext conftest.$ac_ext ;; 11246esac 11247fi 11248 11249 11250 CFLAGS="$xorg_testset_save_CFLAGS" 11251 11252 eval supported=\$$cacheid 11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11254printf "%s\n" "$supported" >&6; } 11255 if test "$supported" = "yes" ; then 11256 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11257 found="yes" 11258 fi 11259 fi 11260 11261 if test $found = "no" ; then 11262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11264 fi 11265 11266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11268 fi 11269 11270 CFLAGS="$CFLAGS -errwarn" 11271 11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11273printf %s "checking if $CC supports -errwarn... " >&6; } 11274 cacheid=xorg_cv_cc_flag__errwarn 11275 if eval test \${$cacheid+y} 11276then : 11277 printf %s "(cached) " >&6 11278else case e in #( 11279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11280/* end confdefs.h. */ 11281int i; 11282int 11283main (void) 11284{ 11285 11286 ; 11287 return 0; 11288} 11289_ACEOF 11290if ac_fn_c_try_link "$LINENO" 11291then : 11292 eval $cacheid=yes 11293else case e in #( 11294 e) eval $cacheid=no ;; 11295esac 11296fi 11297rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11298 conftest$ac_exeext conftest.$ac_ext ;; 11299esac 11300fi 11301 11302 11303 CFLAGS="$xorg_testset_save_CFLAGS" 11304 11305 eval supported=\$$cacheid 11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11307printf "%s\n" "$supported" >&6; } 11308 if test "$supported" = "yes" ; then 11309 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11310 found="yes" 11311 fi 11312 fi 11313 11314 11315 11316# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11317# activate it with -Werror, so we add it here explicitly. 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331xorg_testset_save_CFLAGS="$CFLAGS" 11332 11333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11337if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11338then : 11339 printf %s "(cached) " >&6 11340else case e in #( 11341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11342/* end confdefs.h. */ 11343int i; 11344_ACEOF 11345if ac_fn_c_try_compile "$LINENO" 11346then : 11347 xorg_cv_cc_flag_unknown_warning_option=yes 11348else case e in #( 11349 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11350esac 11351fi 11352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11353esac 11354fi 11355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11358 CFLAGS="$xorg_testset_save_CFLAGS" 11359fi 11360 11361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11364 fi 11365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11368if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11369then : 11370 printf %s "(cached) " >&6 11371else case e in #( 11372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11373/* end confdefs.h. */ 11374int i; 11375_ACEOF 11376if ac_fn_c_try_compile "$LINENO" 11377then : 11378 xorg_cv_cc_flag_unused_command_line_argument=yes 11379else case e in #( 11380 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11381esac 11382fi 11383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11384esac 11385fi 11386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11389 CFLAGS="$xorg_testset_save_CFLAGS" 11390fi 11391 11392found="no" 11393 11394 if test $found = "no" ; then 11395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11397 fi 11398 11399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11401 fi 11402 11403 CFLAGS="$CFLAGS -Werror=attributes" 11404 11405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11406printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11407 cacheid=xorg_cv_cc_flag__Werror_attributes 11408 if eval test \${$cacheid+y} 11409then : 11410 printf %s "(cached) " >&6 11411else case e in #( 11412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11413/* end confdefs.h. */ 11414int i; 11415int 11416main (void) 11417{ 11418 11419 ; 11420 return 0; 11421} 11422_ACEOF 11423if ac_fn_c_try_link "$LINENO" 11424then : 11425 eval $cacheid=yes 11426else case e in #( 11427 e) eval $cacheid=no ;; 11428esac 11429fi 11430rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11431 conftest$ac_exeext conftest.$ac_ext ;; 11432esac 11433fi 11434 11435 11436 CFLAGS="$xorg_testset_save_CFLAGS" 11437 11438 eval supported=\$$cacheid 11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11440printf "%s\n" "$supported" >&6; } 11441 if test "$supported" = "yes" ; then 11442 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11443 found="yes" 11444 fi 11445 fi 11446 11447 11448 11449if test "x$STRICT_COMPILE" = "xyes"; then 11450 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11451 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11452fi 11453 11454 11455 11456 11457 11458 11459 11460 11461cat >>confdefs.h <<_ACEOF 11462#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11463_ACEOF 11464 11465 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11466 if test "x$PVM" = "x"; then 11467 PVM="0" 11468 fi 11469 11470printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11471 11472 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11473 if test "x$PVP" = "x"; then 11474 PVP="0" 11475 fi 11476 11477printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11478 11479 11480 11481CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11482mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11483|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11484touch \$(top_srcdir)/ChangeLog; \ 11485echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11486 11487 11488 11489 11490macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11491INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11492mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11493|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11494touch \$(top_srcdir)/INSTALL; \ 11495echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11496 11497 11498 11499 11500 11501 11502case $host_os in 11503 solaris*) 11504 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11505 # check for a man page file found in later versions that use 11506 # traditional section numbers instead 11507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11508printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11509if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11510then : 11511 printf %s "(cached) " >&6 11512else case e in #( 11513 e) test "$cross_compiling" = yes && 11514 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11515if test -r "/usr/share/man/man7/attributes.7"; then 11516 ac_cv_file__usr_share_man_man7_attributes_7=yes 11517else 11518 ac_cv_file__usr_share_man_man7_attributes_7=no 11519fi ;; 11520esac 11521fi 11522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11523printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11524if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11525then : 11526 SYSV_MAN_SECTIONS=false 11527else case e in #( 11528 e) SYSV_MAN_SECTIONS=true ;; 11529esac 11530fi 11531 11532 ;; 11533 *) SYSV_MAN_SECTIONS=false ;; 11534esac 11535 11536if test x$APP_MAN_SUFFIX = x ; then 11537 APP_MAN_SUFFIX=1 11538fi 11539if test x$APP_MAN_DIR = x ; then 11540 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11541fi 11542 11543if test x$LIB_MAN_SUFFIX = x ; then 11544 LIB_MAN_SUFFIX=3 11545fi 11546if test x$LIB_MAN_DIR = x ; then 11547 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11548fi 11549 11550if test x$FILE_MAN_SUFFIX = x ; then 11551 case $SYSV_MAN_SECTIONS in 11552 true) FILE_MAN_SUFFIX=4 ;; 11553 *) FILE_MAN_SUFFIX=5 ;; 11554 esac 11555fi 11556if test x$FILE_MAN_DIR = x ; then 11557 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11558fi 11559 11560if test x$MISC_MAN_SUFFIX = x ; then 11561 case $SYSV_MAN_SECTIONS in 11562 true) MISC_MAN_SUFFIX=5 ;; 11563 *) MISC_MAN_SUFFIX=7 ;; 11564 esac 11565fi 11566if test x$MISC_MAN_DIR = x ; then 11567 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11568fi 11569 11570if test x$DRIVER_MAN_SUFFIX = x ; then 11571 case $SYSV_MAN_SECTIONS in 11572 true) DRIVER_MAN_SUFFIX=7 ;; 11573 *) DRIVER_MAN_SUFFIX=4 ;; 11574 esac 11575fi 11576if test x$DRIVER_MAN_DIR = x ; then 11577 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11578fi 11579 11580if test x$ADMIN_MAN_SUFFIX = x ; then 11581 case $SYSV_MAN_SECTIONS in 11582 true) ADMIN_MAN_SUFFIX=1m ;; 11583 *) ADMIN_MAN_SUFFIX=8 ;; 11584 esac 11585fi 11586if test x$ADMIN_MAN_DIR = x ; then 11587 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11588fi 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604XORG_MAN_PAGE="X Version 11" 11605 11606MAN_SUBSTS="\ 11607 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11608 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11609 -e 's|__xservername__|Xorg|g' \ 11610 -e 's|__xconfigfile__|xorg.conf|g' \ 11611 -e 's|__projectroot__|\$(prefix)|g' \ 11612 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11613 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11614 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11615 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11616 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11617 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11618 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11619 11620 11621 11622# Check whether --enable-silent-rules was given. 11623if test ${enable_silent_rules+y} 11624then : 11625 enableval=$enable_silent_rules; 11626fi 11627 11628case $enable_silent_rules in # ((( 11629 yes) AM_DEFAULT_VERBOSITY=0;; 11630 no) AM_DEFAULT_VERBOSITY=1;; 11631 *) AM_DEFAULT_VERBOSITY=0;; 11632esac 11633am_make=${MAKE-make} 11634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11635printf %s "checking whether $am_make supports nested variables... " >&6; } 11636if test ${am_cv_make_support_nested_variables+y} 11637then : 11638 printf %s "(cached) " >&6 11639else case e in #( 11640 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 11641BAR0=false 11642BAR1=true 11643V=1 11644am__doit: 11645 @$(TRUE) 11646.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11647 am_cv_make_support_nested_variables=yes 11648else 11649 am_cv_make_support_nested_variables=no 11650fi ;; 11651esac 11652fi 11653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11654printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11655if test $am_cv_make_support_nested_variables = yes; then 11656 AM_V='$(V)' 11657 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11658else 11659 AM_V=$AM_DEFAULT_VERBOSITY 11660 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11661fi 11662AM_BACKSLASH='\' 11663 11664 11665 11666 11667ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 11668if test "x$ac_cv_func_strcasecmp" = xyes 11669then : 11670 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h 11671 11672fi 11673 11674 11675# Checks for pkg-config packages 11676 11677pkg_failed=no 11678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XREFRESH" >&5 11679printf %s "checking for XREFRESH... " >&6; } 11680 11681if test -n "$XREFRESH_CFLAGS"; then 11682 pkg_cv_XREFRESH_CFLAGS="$XREFRESH_CFLAGS" 11683 elif test -n "$PKG_CONFIG"; then 11684 if test -n "$PKG_CONFIG" && \ 11685 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 11686 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 11687 ac_status=$? 11688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11689 test $ac_status = 0; }; then 11690 pkg_cv_XREFRESH_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null` 11691 test "x$?" != "x0" && pkg_failed=yes 11692else 11693 pkg_failed=yes 11694fi 11695 else 11696 pkg_failed=untried 11697fi 11698if test -n "$XREFRESH_LIBS"; then 11699 pkg_cv_XREFRESH_LIBS="$XREFRESH_LIBS" 11700 elif test -n "$PKG_CONFIG"; then 11701 if test -n "$PKG_CONFIG" && \ 11702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 11703 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 11704 ac_status=$? 11705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11706 test $ac_status = 0; }; then 11707 pkg_cv_XREFRESH_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null` 11708 test "x$?" != "x0" && pkg_failed=yes 11709else 11710 pkg_failed=yes 11711fi 11712 else 11713 pkg_failed=untried 11714fi 11715 11716 11717 11718if test $pkg_failed = yes; then 11719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11720printf "%s\n" "no" >&6; } 11721 11722if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11723 _pkg_short_errors_supported=yes 11724else 11725 _pkg_short_errors_supported=no 11726fi 11727 if test $_pkg_short_errors_supported = yes; then 11728 XREFRESH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 11729 else 11730 XREFRESH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 11731 fi 11732 # Put the nasty error message in config.log where it belongs 11733 echo "$XREFRESH_PKG_ERRORS" >&5 11734 11735 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met: 11736 11737$XREFRESH_PKG_ERRORS 11738 11739Consider adjusting the PKG_CONFIG_PATH environment variable if you 11740installed software in a non-standard prefix. 11741 11742Alternatively, you may set the environment variables XREFRESH_CFLAGS 11743and XREFRESH_LIBS to avoid the need to call pkg-config. 11744See the pkg-config man page for more details." "$LINENO" 5 11745elif test $pkg_failed = untried; then 11746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11747printf "%s\n" "no" >&6; } 11748 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11749printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11750as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11751is in your PATH or set the PKG_CONFIG environment variable to the full 11752path to pkg-config. 11753 11754Alternatively, you may set the environment variables XREFRESH_CFLAGS 11755and XREFRESH_LIBS to avoid the need to call pkg-config. 11756See the pkg-config man page for more details. 11757 11758To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11759See 'config.log' for more details" "$LINENO" 5; } 11760else 11761 XREFRESH_CFLAGS=$pkg_cv_XREFRESH_CFLAGS 11762 XREFRESH_LIBS=$pkg_cv_XREFRESH_LIBS 11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11764printf "%s\n" "yes" >&6; } 11765 11766fi 11767 11768ac_config_files="$ac_config_files Makefile man/Makefile" 11769 11770cat >confcache <<\_ACEOF 11771# This file is a shell script that caches the results of configure 11772# tests run on this system so they can be shared between configure 11773# scripts and configure runs, see configure's option --config-cache. 11774# It is not useful on other systems. If it contains results you don't 11775# want to keep, you may remove or edit it. 11776# 11777# config.status only pays attention to the cache file if you give it 11778# the --recheck option to rerun configure. 11779# 11780# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11781# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11782# following values. 11783 11784_ACEOF 11785 11786# The following way of writing the cache mishandles newlines in values, 11787# but we know of no workaround that is simple, portable, and efficient. 11788# So, we kill variables containing newlines. 11789# Ultrix sh set writes to stderr and can't be redirected directly, 11790# and sets the high bit in the cache file unless we assign to the vars. 11791( 11792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11793 eval ac_val=\$$ac_var 11794 case $ac_val in #( 11795 *${as_nl}*) 11796 case $ac_var in #( 11797 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11798printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11799 esac 11800 case $ac_var in #( 11801 _ | IFS | as_nl) ;; #( 11802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11803 *) { eval $ac_var=; unset $ac_var;} ;; 11804 esac ;; 11805 esac 11806 done 11807 11808 (set) 2>&1 | 11809 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11810 *${as_nl}ac_space=\ *) 11811 # 'set' does not quote correctly, so add quotes: double-quote 11812 # substitution turns \\\\ into \\, and sed turns \\ into \. 11813 sed -n \ 11814 "s/'/'\\\\''/g; 11815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11816 ;; #( 11817 *) 11818 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11820 ;; 11821 esac | 11822 sort 11823) | 11824 sed ' 11825 /^ac_cv_env_/b end 11826 t clear 11827 :clear 11828 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11829 t end 11830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11831 :end' >>confcache 11832if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11833 if test -w "$cache_file"; then 11834 if test "x$cache_file" != "x/dev/null"; then 11835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11836printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11837 if test ! -f "$cache_file" || test -h "$cache_file"; then 11838 cat confcache >"$cache_file" 11839 else 11840 case $cache_file in #( 11841 */* | ?:*) 11842 mv -f confcache "$cache_file"$$ && 11843 mv -f "$cache_file"$$ "$cache_file" ;; #( 11844 *) 11845 mv -f confcache "$cache_file" ;; 11846 esac 11847 fi 11848 fi 11849 else 11850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11851printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11852 fi 11853fi 11854rm -f confcache 11855 11856test "x$prefix" = xNONE && prefix=$ac_default_prefix 11857# Let make expand exec_prefix. 11858test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11859 11860DEFS=-DHAVE_CONFIG_H 11861 11862ac_libobjs= 11863ac_ltlibobjs= 11864U= 11865for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11866 # 1. Remove the extension, and $U if already installed. 11867 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11868 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11869 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11870 # will be set to the directory where LIBOBJS objects are built. 11871 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11872 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11873done 11874LIBOBJS=$ac_libobjs 11875 11876LTLIBOBJS=$ac_ltlibobjs 11877 11878 11879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11880printf %s "checking that generated files are newer than configure... " >&6; } 11881 if test -n "$am_sleep_pid"; then 11882 # Hide warnings about reused PIDs. 11883 wait $am_sleep_pid 2>/dev/null 11884 fi 11885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11886printf "%s\n" "done" >&6; } 11887if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11888 as_fn_error $? "conditional \"AMDEP\" was never defined. 11889Usually this means the macro was only invoked conditionally." "$LINENO" 5 11890fi 11891if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11892 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11893Usually this means the macro was only invoked conditionally." "$LINENO" 5 11894fi 11895 if test -n "$EXEEXT"; then 11896 am__EXEEXT_TRUE= 11897 am__EXEEXT_FALSE='#' 11898else 11899 am__EXEEXT_TRUE='#' 11900 am__EXEEXT_FALSE= 11901fi 11902 11903 11904: "${CONFIG_STATUS=./config.status}" 11905ac_write_fail=0 11906ac_clean_files_save=$ac_clean_files 11907ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11909printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11910as_write_fail=0 11911cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11912#! $SHELL 11913# Generated by $as_me. 11914# Run this file to recreate the current configuration. 11915# Compiler output produced by configure, useful for debugging 11916# configure, is in config.log if it exists. 11917 11918debug=false 11919ac_cs_recheck=false 11920ac_cs_silent=false 11921 11922SHELL=\${CONFIG_SHELL-$SHELL} 11923export SHELL 11924_ASEOF 11925cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11926## -------------------- ## 11927## M4sh Initialization. ## 11928## -------------------- ## 11929 11930# Be more Bourne compatible 11931DUALCASE=1; export DUALCASE # for MKS sh 11932if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11933then : 11934 emulate sh 11935 NULLCMD=: 11936 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11937 # is contrary to our usage. Disable this feature. 11938 alias -g '${1+"$@"}'='"$@"' 11939 setopt NO_GLOB_SUBST 11940else case e in #( 11941 e) case `(set -o) 2>/dev/null` in #( 11942 *posix*) : 11943 set -o posix ;; #( 11944 *) : 11945 ;; 11946esac ;; 11947esac 11948fi 11949 11950 11951 11952# Reset variables that may have inherited troublesome values from 11953# the environment. 11954 11955# IFS needs to be set, to space, tab, and newline, in precisely that order. 11956# (If _AS_PATH_WALK were called with IFS unset, it would have the 11957# side effect of setting IFS to empty, thus disabling word splitting.) 11958# Quoting is to prevent editors from complaining about space-tab. 11959as_nl=' 11960' 11961export as_nl 11962IFS=" "" $as_nl" 11963 11964PS1='$ ' 11965PS2='> ' 11966PS4='+ ' 11967 11968# Ensure predictable behavior from utilities with locale-dependent output. 11969LC_ALL=C 11970export LC_ALL 11971LANGUAGE=C 11972export LANGUAGE 11973 11974# We cannot yet rely on "unset" to work, but we need these variables 11975# to be unset--not just set to an empty or harmless value--now, to 11976# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11977# also avoids known problems related to "unset" and subshell syntax 11978# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11979for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11980do eval test \${$as_var+y} \ 11981 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11982done 11983 11984# Ensure that fds 0, 1, and 2 are open. 11985if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11986if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11987if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11988 11989# The user is always right. 11990if ${PATH_SEPARATOR+false} :; then 11991 PATH_SEPARATOR=: 11992 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11993 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11994 PATH_SEPARATOR=';' 11995 } 11996fi 11997 11998 11999# Find who we are. Look in the path if we contain no directory separator. 12000as_myself= 12001case $0 in #(( 12002 *[\\/]* ) as_myself=$0 ;; 12003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12004for as_dir in $PATH 12005do 12006 IFS=$as_save_IFS 12007 case $as_dir in #((( 12008 '') as_dir=./ ;; 12009 */) ;; 12010 *) as_dir=$as_dir/ ;; 12011 esac 12012 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 12013 done 12014IFS=$as_save_IFS 12015 12016 ;; 12017esac 12018# We did not find ourselves, most probably we were run as 'sh COMMAND' 12019# in which case we are not to be found in the path. 12020if test "x$as_myself" = x; then 12021 as_myself=$0 12022fi 12023if test ! -f "$as_myself"; then 12024 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12025 exit 1 12026fi 12027 12028 12029 12030# as_fn_error STATUS ERROR [LINENO LOG_FD] 12031# ---------------------------------------- 12032# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12033# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12034# script with STATUS, using 1 if that was 0. 12035as_fn_error () 12036{ 12037 as_status=$1; test $as_status -eq 0 && as_status=1 12038 if test "$4"; then 12039 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12041 fi 12042 printf "%s\n" "$as_me: error: $2" >&2 12043 as_fn_exit $as_status 12044} # as_fn_error 12045 12046 12047# as_fn_set_status STATUS 12048# ----------------------- 12049# Set $? to STATUS, without forking. 12050as_fn_set_status () 12051{ 12052 return $1 12053} # as_fn_set_status 12054 12055# as_fn_exit STATUS 12056# ----------------- 12057# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12058as_fn_exit () 12059{ 12060 set +e 12061 as_fn_set_status $1 12062 exit $1 12063} # as_fn_exit 12064 12065# as_fn_unset VAR 12066# --------------- 12067# Portably unset VAR. 12068as_fn_unset () 12069{ 12070 { eval $1=; unset $1;} 12071} 12072as_unset=as_fn_unset 12073 12074# as_fn_append VAR VALUE 12075# ---------------------- 12076# Append the text in VALUE to the end of the definition contained in VAR. Take 12077# advantage of any shell optimizations that allow amortized linear growth over 12078# repeated appends, instead of the typical quadratic growth present in naive 12079# implementations. 12080if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 12081then : 12082 eval 'as_fn_append () 12083 { 12084 eval $1+=\$2 12085 }' 12086else case e in #( 12087 e) as_fn_append () 12088 { 12089 eval $1=\$$1\$2 12090 } ;; 12091esac 12092fi # as_fn_append 12093 12094# as_fn_arith ARG... 12095# ------------------ 12096# Perform arithmetic evaluation on the ARGs, and store the result in the 12097# global $as_val. Take advantage of shells that can avoid forks. The arguments 12098# must be portable across $(()) and expr. 12099if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12100then : 12101 eval 'as_fn_arith () 12102 { 12103 as_val=$(( $* )) 12104 }' 12105else case e in #( 12106 e) as_fn_arith () 12107 { 12108 as_val=`expr "$@" || test $? -eq 1` 12109 } ;; 12110esac 12111fi # as_fn_arith 12112 12113 12114if expr a : '\(a\)' >/dev/null 2>&1 && 12115 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12116 as_expr=expr 12117else 12118 as_expr=false 12119fi 12120 12121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12122 as_basename=basename 12123else 12124 as_basename=false 12125fi 12126 12127if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12128 as_dirname=dirname 12129else 12130 as_dirname=false 12131fi 12132 12133as_me=`$as_basename -- "$0" || 12134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12135 X"$0" : 'X\(//\)$' \| \ 12136 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12137printf "%s\n" X/"$0" | 12138 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12139 s//\1/ 12140 q 12141 } 12142 /^X\/\(\/\/\)$/{ 12143 s//\1/ 12144 q 12145 } 12146 /^X\/\(\/\).*/{ 12147 s//\1/ 12148 q 12149 } 12150 s/.*/./; q'` 12151 12152# Avoid depending upon Character Ranges. 12153as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12154as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12155as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12156as_cr_digits='0123456789' 12157as_cr_alnum=$as_cr_Letters$as_cr_digits 12158 12159 12160# Determine whether it's possible to make 'echo' print without a newline. 12161# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12162# for compatibility with existing Makefiles. 12163ECHO_C= ECHO_N= ECHO_T= 12164case `echo -n x` in #((((( 12165-n*) 12166 case `echo 'xy\c'` in 12167 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12168 xy) ECHO_C='\c';; 12169 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12170 ECHO_T=' ';; 12171 esac;; 12172*) 12173 ECHO_N='-n';; 12174esac 12175 12176# For backward compatibility with old third-party macros, we provide 12177# the shell variables $as_echo and $as_echo_n. New code should use 12178# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12179as_echo='printf %s\n' 12180as_echo_n='printf %s' 12181 12182rm -f conf$$ conf$$.exe conf$$.file 12183if test -d conf$$.dir; then 12184 rm -f conf$$.dir/conf$$.file 12185else 12186 rm -f conf$$.dir 12187 mkdir conf$$.dir 2>/dev/null 12188fi 12189if (echo >conf$$.file) 2>/dev/null; then 12190 if ln -s conf$$.file conf$$ 2>/dev/null; then 12191 as_ln_s='ln -s' 12192 # ... but there are two gotchas: 12193 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12194 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12195 # In both cases, we have to default to 'cp -pR'. 12196 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12197 as_ln_s='cp -pR' 12198 elif ln conf$$.file conf$$ 2>/dev/null; then 12199 as_ln_s=ln 12200 else 12201 as_ln_s='cp -pR' 12202 fi 12203else 12204 as_ln_s='cp -pR' 12205fi 12206rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12207rmdir conf$$.dir 2>/dev/null 12208 12209 12210# as_fn_mkdir_p 12211# ------------- 12212# Create "$as_dir" as a directory, including parents if necessary. 12213as_fn_mkdir_p () 12214{ 12215 12216 case $as_dir in #( 12217 -*) as_dir=./$as_dir;; 12218 esac 12219 test -d "$as_dir" || eval $as_mkdir_p || { 12220 as_dirs= 12221 while :; do 12222 case $as_dir in #( 12223 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12224 *) as_qdir=$as_dir;; 12225 esac 12226 as_dirs="'$as_qdir' $as_dirs" 12227 as_dir=`$as_dirname -- "$as_dir" || 12228$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12229 X"$as_dir" : 'X\(//\)[^/]' \| \ 12230 X"$as_dir" : 'X\(//\)$' \| \ 12231 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12232printf "%s\n" X"$as_dir" | 12233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12234 s//\1/ 12235 q 12236 } 12237 /^X\(\/\/\)[^/].*/{ 12238 s//\1/ 12239 q 12240 } 12241 /^X\(\/\/\)$/{ 12242 s//\1/ 12243 q 12244 } 12245 /^X\(\/\).*/{ 12246 s//\1/ 12247 q 12248 } 12249 s/.*/./; q'` 12250 test -d "$as_dir" && break 12251 done 12252 test -z "$as_dirs" || eval "mkdir $as_dirs" 12253 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12254 12255 12256} # as_fn_mkdir_p 12257if mkdir -p . 2>/dev/null; then 12258 as_mkdir_p='mkdir -p "$as_dir"' 12259else 12260 test -d ./-p && rmdir ./-p 12261 as_mkdir_p=false 12262fi 12263 12264 12265# as_fn_executable_p FILE 12266# ----------------------- 12267# Test if FILE is an executable regular file. 12268as_fn_executable_p () 12269{ 12270 test -f "$1" && test -x "$1" 12271} # as_fn_executable_p 12272as_test_x='test -x' 12273as_executable_p=as_fn_executable_p 12274 12275# Sed expression to map a string onto a valid CPP name. 12276as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12277as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12278 12279# Sed expression to map a string onto a valid variable name. 12280as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12281as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12282 12283 12284exec 6>&1 12285## ----------------------------------- ## 12286## Main body of $CONFIG_STATUS script. ## 12287## ----------------------------------- ## 12288_ASEOF 12289test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12290 12291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12292# Save the log message, to keep $0 and so on meaningful, and to 12293# report actual input values of CONFIG_FILES etc. instead of their 12294# values after options handling. 12295ac_log=" 12296This file was extended by xrefresh $as_me 1.1.0, which was 12297generated by GNU Autoconf 2.72. Invocation command line was 12298 12299 CONFIG_FILES = $CONFIG_FILES 12300 CONFIG_HEADERS = $CONFIG_HEADERS 12301 CONFIG_LINKS = $CONFIG_LINKS 12302 CONFIG_COMMANDS = $CONFIG_COMMANDS 12303 $ $0 $@ 12304 12305on `(hostname || uname -n) 2>/dev/null | sed 1q` 12306" 12307 12308_ACEOF 12309 12310case $ac_config_files in *" 12311"*) set x $ac_config_files; shift; ac_config_files=$*;; 12312esac 12313 12314case $ac_config_headers in *" 12315"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12316esac 12317 12318 12319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12320# Files that config.status was made for. 12321config_files="$ac_config_files" 12322config_headers="$ac_config_headers" 12323config_commands="$ac_config_commands" 12324 12325_ACEOF 12326 12327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12328ac_cs_usage="\ 12329'$as_me' instantiates files and other configuration actions 12330from templates according to the current configuration. Unless the files 12331and actions are specified as TAGs, all are instantiated by default. 12332 12333Usage: $0 [OPTION]... [TAG]... 12334 12335 -h, --help print this help, then exit 12336 -V, --version print version number and configuration settings, then exit 12337 --config print configuration, then exit 12338 -q, --quiet, --silent 12339 do not print progress messages 12340 -d, --debug don't remove temporary files 12341 --recheck update $as_me by reconfiguring in the same conditions 12342 --file=FILE[:TEMPLATE] 12343 instantiate the configuration file FILE 12344 --header=FILE[:TEMPLATE] 12345 instantiate the configuration header FILE 12346 12347Configuration files: 12348$config_files 12349 12350Configuration headers: 12351$config_headers 12352 12353Configuration commands: 12354$config_commands 12355 12356Report bugs to <https://gitlab.freedesktop.org/xorg/app/xrefresh/-/issues>." 12357 12358_ACEOF 12359ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12360ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12362ac_cs_config='$ac_cs_config_escaped' 12363ac_cs_version="\\ 12364xrefresh config.status 1.1.0 12365configured by $0, generated by GNU Autoconf 2.72, 12366 with options \\"\$ac_cs_config\\" 12367 12368Copyright (C) 2023 Free Software Foundation, Inc. 12369This config.status script is free software; the Free Software Foundation 12370gives unlimited permission to copy, distribute and modify it." 12371 12372ac_pwd='$ac_pwd' 12373srcdir='$srcdir' 12374INSTALL='$INSTALL' 12375MKDIR_P='$MKDIR_P' 12376AWK='$AWK' 12377test -n "\$AWK" || AWK=awk 12378_ACEOF 12379 12380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12381# The default lists apply if the user does not specify any file. 12382ac_need_defaults=: 12383while test $# != 0 12384do 12385 case $1 in 12386 --*=?*) 12387 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12388 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12389 ac_shift=: 12390 ;; 12391 --*=) 12392 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12393 ac_optarg= 12394 ac_shift=: 12395 ;; 12396 *) 12397 ac_option=$1 12398 ac_optarg=$2 12399 ac_shift=shift 12400 ;; 12401 esac 12402 12403 case $ac_option in 12404 # Handling of the options. 12405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12406 ac_cs_recheck=: ;; 12407 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12408 printf "%s\n" "$ac_cs_version"; exit ;; 12409 --config | --confi | --conf | --con | --co | --c ) 12410 printf "%s\n" "$ac_cs_config"; exit ;; 12411 --debug | --debu | --deb | --de | --d | -d ) 12412 debug=: ;; 12413 --file | --fil | --fi | --f ) 12414 $ac_shift 12415 case $ac_optarg in 12416 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12417 '') as_fn_error $? "missing file argument" ;; 12418 esac 12419 as_fn_append CONFIG_FILES " '$ac_optarg'" 12420 ac_need_defaults=false;; 12421 --header | --heade | --head | --hea ) 12422 $ac_shift 12423 case $ac_optarg in 12424 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12425 esac 12426 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12427 ac_need_defaults=false;; 12428 --he | --h) 12429 # Conflict between --help and --header 12430 as_fn_error $? "ambiguous option: '$1' 12431Try '$0 --help' for more information.";; 12432 --help | --hel | -h ) 12433 printf "%s\n" "$ac_cs_usage"; exit ;; 12434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12435 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12436 ac_cs_silent=: ;; 12437 12438 # This is an error. 12439 -*) as_fn_error $? "unrecognized option: '$1' 12440Try '$0 --help' for more information." ;; 12441 12442 *) as_fn_append ac_config_targets " $1" 12443 ac_need_defaults=false ;; 12444 12445 esac 12446 shift 12447done 12448 12449ac_configure_extra_args= 12450 12451if $ac_cs_silent; then 12452 exec 6>/dev/null 12453 ac_configure_extra_args="$ac_configure_extra_args --silent" 12454fi 12455 12456_ACEOF 12457cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12458if \$ac_cs_recheck; then 12459 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12460 shift 12461 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12462 CONFIG_SHELL='$SHELL' 12463 export CONFIG_SHELL 12464 exec "\$@" 12465fi 12466 12467_ACEOF 12468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12469exec 5>>config.log 12470{ 12471 echo 12472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12473## Running $as_me. ## 12474_ASBOX 12475 printf "%s\n" "$ac_log" 12476} >&5 12477 12478_ACEOF 12479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12480# 12481# INIT-COMMANDS 12482# 12483AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12484 12485_ACEOF 12486 12487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12488 12489# Handling of arguments. 12490for ac_config_target in $ac_config_targets 12491do 12492 case $ac_config_target in 12493 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12494 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12495 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12496 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12497 12498 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12499 esac 12500done 12501 12502 12503# If the user did not use the arguments to specify the items to instantiate, 12504# then the envvar interface is used. Set only those that are not. 12505# We use the long form for the default assignment because of an extremely 12506# bizarre bug on SunOS 4.1.3. 12507if $ac_need_defaults; then 12508 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12509 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12510 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12511fi 12512 12513# Have a temporary directory for convenience. Make it in the build tree 12514# simply because there is no reason against having it here, and in addition, 12515# creating and moving files from /tmp can sometimes cause problems. 12516# Hook for its removal unless debugging. 12517# Note that there is a small window in which the directory will not be cleaned: 12518# after its creation but before its name has been assigned to '$tmp'. 12519$debug || 12520{ 12521 tmp= ac_tmp= 12522 trap 'exit_status=$? 12523 : "${ac_tmp:=$tmp}" 12524 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12525' 0 12526 trap 'as_fn_exit 1' 1 2 13 15 12527} 12528# Create a (secure) tmp directory for tmp files. 12529 12530{ 12531 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12532 test -d "$tmp" 12533} || 12534{ 12535 tmp=./conf$$-$RANDOM 12536 (umask 077 && mkdir "$tmp") 12537} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12538ac_tmp=$tmp 12539 12540# Set up the scripts for CONFIG_FILES section. 12541# No need to generate them if there are no CONFIG_FILES. 12542# This happens for instance with './config.status config.h'. 12543if test -n "$CONFIG_FILES"; then 12544 12545 12546ac_cr=`echo X | tr X '\015'` 12547# On cygwin, bash can eat \r inside `` if the user requested igncr. 12548# But we know of no other shell where ac_cr would be empty at this 12549# point, so we can use a bashism as a fallback. 12550if test "x$ac_cr" = x; then 12551 eval ac_cr=\$\'\\r\' 12552fi 12553ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12554if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12555 ac_cs_awk_cr='\\r' 12556else 12557 ac_cs_awk_cr=$ac_cr 12558fi 12559 12560echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12561_ACEOF 12562 12563 12564{ 12565 echo "cat >conf$$subs.awk <<_ACEOF" && 12566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12567 echo "_ACEOF" 12568} >conf$$subs.sh || 12569 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12570ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12571ac_delim='%!_!# ' 12572for ac_last_try in false false false false false :; do 12573 . ./conf$$subs.sh || 12574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12575 12576 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12577 if test $ac_delim_n = $ac_delim_num; then 12578 break 12579 elif $ac_last_try; then 12580 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12581 else 12582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12583 fi 12584done 12585rm -f conf$$subs.sh 12586 12587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12588cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12589_ACEOF 12590sed -n ' 12591h 12592s/^/S["/; s/!.*/"]=/ 12593p 12594g 12595s/^[^!]*!// 12596:repl 12597t repl 12598s/'"$ac_delim"'$// 12599t delim 12600:nl 12601h 12602s/\(.\{148\}\)..*/\1/ 12603t more1 12604s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12605p 12606n 12607b repl 12608:more1 12609s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12610p 12611g 12612s/.\{148\}// 12613t nl 12614:delim 12615h 12616s/\(.\{148\}\)..*/\1/ 12617t more2 12618s/["\\]/\\&/g; s/^/"/; s/$/"/ 12619p 12620b 12621:more2 12622s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12623p 12624g 12625s/.\{148\}// 12626t delim 12627' <conf$$subs.awk | sed ' 12628/^[^""]/{ 12629 N 12630 s/\n// 12631} 12632' >>$CONFIG_STATUS || ac_write_fail=1 12633rm -f conf$$subs.awk 12634cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12635_ACAWK 12636cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12637 for (key in S) S_is_set[key] = 1 12638 FS = "" 12639 12640} 12641{ 12642 line = $ 0 12643 nfields = split(line, field, "@") 12644 substed = 0 12645 len = length(field[1]) 12646 for (i = 2; i < nfields; i++) { 12647 key = field[i] 12648 keylen = length(key) 12649 if (S_is_set[key]) { 12650 value = S[key] 12651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12652 len += length(value) + length(field[++i]) 12653 substed = 1 12654 } else 12655 len += 1 + keylen 12656 } 12657 12658 print line 12659} 12660 12661_ACAWK 12662_ACEOF 12663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12664if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12665 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12666else 12667 cat 12668fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12669 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12670_ACEOF 12671 12672# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12673# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12674# trailing colons and then remove the whole line if VPATH becomes empty 12675# (actually we leave an empty line to preserve line numbers). 12676if test "x$srcdir" = x.; then 12677 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12678h 12679s/// 12680s/^/:/ 12681s/[ ]*$/:/ 12682s/:\$(srcdir):/:/g 12683s/:\${srcdir}:/:/g 12684s/:@srcdir@:/:/g 12685s/^:*// 12686s/:*$// 12687x 12688s/\(=[ ]*\).*/\1/ 12689G 12690s/\n// 12691s/^[^=]*=[ ]*$// 12692}' 12693fi 12694 12695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12696fi # test -n "$CONFIG_FILES" 12697 12698# Set up the scripts for CONFIG_HEADERS section. 12699# No need to generate them if there are no CONFIG_HEADERS. 12700# This happens for instance with './config.status Makefile'. 12701if test -n "$CONFIG_HEADERS"; then 12702cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12703BEGIN { 12704_ACEOF 12705 12706# Transform confdefs.h into an awk script 'defines.awk', embedded as 12707# here-document in config.status, that substitutes the proper values into 12708# config.h.in to produce config.h. 12709 12710# Create a delimiter string that does not exist in confdefs.h, to ease 12711# handling of long lines. 12712ac_delim='%!_!# ' 12713for ac_last_try in false false :; do 12714 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12715 if test -z "$ac_tt"; then 12716 break 12717 elif $ac_last_try; then 12718 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12719 else 12720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12721 fi 12722done 12723 12724# For the awk script, D is an array of macro values keyed by name, 12725# likewise P contains macro parameters if any. Preserve backslash 12726# newline sequences. 12727 12728ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12729sed -n ' 12730s/.\{148\}/&'"$ac_delim"'/g 12731t rset 12732:rset 12733s/^[ ]*#[ ]*define[ ][ ]*/ / 12734t def 12735d 12736:def 12737s/\\$// 12738t bsnl 12739s/["\\]/\\&/g 12740s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12741D["\1"]=" \3"/p 12742s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12743d 12744:bsnl 12745s/["\\]/\\&/g 12746s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12747D["\1"]=" \3\\\\\\n"\\/p 12748t cont 12749s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12750t cont 12751d 12752:cont 12753n 12754s/.\{148\}/&'"$ac_delim"'/g 12755t clear 12756:clear 12757s/\\$// 12758t bsnlc 12759s/["\\]/\\&/g; s/^/"/; s/$/"/p 12760d 12761:bsnlc 12762s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12763b cont 12764' <confdefs.h | sed ' 12765s/'"$ac_delim"'/"\\\ 12766"/g' >>$CONFIG_STATUS || ac_write_fail=1 12767 12768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12769 for (key in D) D_is_set[key] = 1 12770 FS = "" 12771} 12772/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12773 line = \$ 0 12774 split(line, arg, " ") 12775 if (arg[1] == "#") { 12776 defundef = arg[2] 12777 mac1 = arg[3] 12778 } else { 12779 defundef = substr(arg[1], 2) 12780 mac1 = arg[2] 12781 } 12782 split(mac1, mac2, "(") #) 12783 macro = mac2[1] 12784 prefix = substr(line, 1, index(line, defundef) - 1) 12785 if (D_is_set[macro]) { 12786 # Preserve the white space surrounding the "#". 12787 print prefix "define", macro P[macro] D[macro] 12788 next 12789 } else { 12790 # Replace #undef with comments. This is necessary, for example, 12791 # in the case of _POSIX_SOURCE, which is predefined and required 12792 # on some systems where configure will not decide to define it. 12793 if (defundef == "undef") { 12794 print "/*", prefix defundef, macro, "*/" 12795 next 12796 } 12797 } 12798} 12799{ print } 12800_ACAWK 12801_ACEOF 12802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12803 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12804fi # test -n "$CONFIG_HEADERS" 12805 12806 12807eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12808shift 12809for ac_tag 12810do 12811 case $ac_tag in 12812 :[FHLC]) ac_mode=$ac_tag; continue;; 12813 esac 12814 case $ac_mode$ac_tag in 12815 :[FHL]*:*);; 12816 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12817 :[FH]-) ac_tag=-:-;; 12818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12819 esac 12820 ac_save_IFS=$IFS 12821 IFS=: 12822 set x $ac_tag 12823 IFS=$ac_save_IFS 12824 shift 12825 ac_file=$1 12826 shift 12827 12828 case $ac_mode in 12829 :L) ac_source=$1;; 12830 :[FH]) 12831 ac_file_inputs= 12832 for ac_f 12833 do 12834 case $ac_f in 12835 -) ac_f="$ac_tmp/stdin";; 12836 *) # Look for the file first in the build tree, then in the source tree 12837 # (if the path is not absolute). The absolute path cannot be DOS-style, 12838 # because $ac_f cannot contain ':'. 12839 test -f "$ac_f" || 12840 case $ac_f in 12841 [\\/$]*) false;; 12842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12843 esac || 12844 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12845 esac 12846 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12847 as_fn_append ac_file_inputs " '$ac_f'" 12848 done 12849 12850 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12851 # use $as_me), people would be surprised to read: 12852 # /* config.h. Generated by config.status. */ 12853 configure_input='Generated from '` 12854 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12855 `' by configure.' 12856 if test x"$ac_file" != x-; then 12857 configure_input="$ac_file. $configure_input" 12858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12859printf "%s\n" "$as_me: creating $ac_file" >&6;} 12860 fi 12861 # Neutralize special characters interpreted by sed in replacement strings. 12862 case $configure_input in #( 12863 *\&* | *\|* | *\\* ) 12864 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12865 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12866 *) ac_sed_conf_input=$configure_input;; 12867 esac 12868 12869 case $ac_tag in 12870 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12872 esac 12873 ;; 12874 esac 12875 12876 ac_dir=`$as_dirname -- "$ac_file" || 12877$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12878 X"$ac_file" : 'X\(//\)[^/]' \| \ 12879 X"$ac_file" : 'X\(//\)$' \| \ 12880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12881printf "%s\n" X"$ac_file" | 12882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12883 s//\1/ 12884 q 12885 } 12886 /^X\(\/\/\)[^/].*/{ 12887 s//\1/ 12888 q 12889 } 12890 /^X\(\/\/\)$/{ 12891 s//\1/ 12892 q 12893 } 12894 /^X\(\/\).*/{ 12895 s//\1/ 12896 q 12897 } 12898 s/.*/./; q'` 12899 as_dir="$ac_dir"; as_fn_mkdir_p 12900 ac_builddir=. 12901 12902case "$ac_dir" in 12903.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12904*) 12905 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12906 # A ".." for each directory in $ac_dir_suffix. 12907 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12908 case $ac_top_builddir_sub in 12909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12911 esac ;; 12912esac 12913ac_abs_top_builddir=$ac_pwd 12914ac_abs_builddir=$ac_pwd$ac_dir_suffix 12915# for backward compatibility: 12916ac_top_builddir=$ac_top_build_prefix 12917 12918case $srcdir in 12919 .) # We are building in place. 12920 ac_srcdir=. 12921 ac_top_srcdir=$ac_top_builddir_sub 12922 ac_abs_top_srcdir=$ac_pwd ;; 12923 [\\/]* | ?:[\\/]* ) # Absolute name. 12924 ac_srcdir=$srcdir$ac_dir_suffix; 12925 ac_top_srcdir=$srcdir 12926 ac_abs_top_srcdir=$srcdir ;; 12927 *) # Relative name. 12928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12929 ac_top_srcdir=$ac_top_build_prefix$srcdir 12930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12931esac 12932ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12933 12934 12935 case $ac_mode in 12936 :F) 12937 # 12938 # CONFIG_FILE 12939 # 12940 12941 case $INSTALL in 12942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12943 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12944 esac 12945 ac_MKDIR_P=$MKDIR_P 12946 case $MKDIR_P in 12947 [\\/$]* | ?:[\\/]* ) ;; 12948 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12949 esac 12950_ACEOF 12951 12952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12953# If the template does not know about datarootdir, expand it. 12954# FIXME: This hack should be removed a few years after 2.60. 12955ac_datarootdir_hack=; ac_datarootdir_seen= 12956ac_sed_dataroot=' 12957/datarootdir/ { 12958 p 12959 q 12960} 12961/@datadir@/p 12962/@docdir@/p 12963/@infodir@/p 12964/@localedir@/p 12965/@mandir@/p' 12966case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12967*datarootdir*) ac_datarootdir_seen=yes;; 12968*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12970printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12971_ACEOF 12972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12973 ac_datarootdir_hack=' 12974 s&@datadir@&$datadir&g 12975 s&@docdir@&$docdir&g 12976 s&@infodir@&$infodir&g 12977 s&@localedir@&$localedir&g 12978 s&@mandir@&$mandir&g 12979 s&\\\${datarootdir}&$datarootdir&g' ;; 12980esac 12981_ACEOF 12982 12983# Neutralize VPATH when '$srcdir' = '.'. 12984# Shell code in configure.ac might set extrasub. 12985# FIXME: do we really want to maintain this feature? 12986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12987ac_sed_extra="$ac_vpsub 12988$extrasub 12989_ACEOF 12990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12991:t 12992/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12993s|@configure_input@|$ac_sed_conf_input|;t t 12994s&@top_builddir@&$ac_top_builddir_sub&;t t 12995s&@top_build_prefix@&$ac_top_build_prefix&;t t 12996s&@srcdir@&$ac_srcdir&;t t 12997s&@abs_srcdir@&$ac_abs_srcdir&;t t 12998s&@top_srcdir@&$ac_top_srcdir&;t t 12999s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13000s&@builddir@&$ac_builddir&;t t 13001s&@abs_builddir@&$ac_abs_builddir&;t t 13002s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13003s&@INSTALL@&$ac_INSTALL&;t t 13004s&@MKDIR_P@&$ac_MKDIR_P&;t t 13005$ac_datarootdir_hack 13006" 13007eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13008 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13009 13010test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13011 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13013 "$ac_tmp/out"`; test -z "$ac_out"; } && 13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13015which seems to be undefined. Please make sure it is defined" >&5 13016printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 13017which seems to be undefined. Please make sure it is defined" >&2;} 13018 13019 rm -f "$ac_tmp/stdin" 13020 case $ac_file in 13021 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13022 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13023 esac \ 13024 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13025 ;; 13026 :H) 13027 # 13028 # CONFIG_HEADER 13029 # 13030 if test x"$ac_file" != x-; then 13031 { 13032 printf "%s\n" "/* $configure_input */" >&1 \ 13033 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13034 } >"$ac_tmp/config.h" \ 13035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13036 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13038printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 13039 else 13040 rm -f "$ac_file" 13041 mv "$ac_tmp/config.h" "$ac_file" \ 13042 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13043 fi 13044 else 13045 printf "%s\n" "/* $configure_input */" >&1 \ 13046 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13047 || as_fn_error $? "could not create -" "$LINENO" 5 13048 fi 13049# Compute "$ac_file"'s index in $config_headers. 13050_am_arg="$ac_file" 13051_am_stamp_count=1 13052for _am_header in $config_headers :; do 13053 case $_am_header in 13054 $_am_arg | $_am_arg:* ) 13055 break ;; 13056 * ) 13057 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13058 esac 13059done 13060echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13061$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13062 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13063 X"$_am_arg" : 'X\(//\)$' \| \ 13064 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13065printf "%s\n" X"$_am_arg" | 13066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13067 s//\1/ 13068 q 13069 } 13070 /^X\(\/\/\)[^/].*/{ 13071 s//\1/ 13072 q 13073 } 13074 /^X\(\/\/\)$/{ 13075 s//\1/ 13076 q 13077 } 13078 /^X\(\/\).*/{ 13079 s//\1/ 13080 q 13081 } 13082 s/.*/./; q'`/stamp-h$_am_stamp_count 13083 ;; 13084 13085 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13086printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13087 ;; 13088 esac 13089 13090 13091 case $ac_file$ac_mode in 13092 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13093 # Older Autoconf quotes --file arguments for eval, but not when files 13094 # are listed without --file. Let's play safe and only enable the eval 13095 # if we detect the quoting. 13096 # TODO: see whether this extra hack can be removed once we start 13097 # requiring Autoconf 2.70 or later. 13098 case $CONFIG_FILES in #( 13099 *\'*) : 13100 eval set x "$CONFIG_FILES" ;; #( 13101 *) : 13102 set x $CONFIG_FILES ;; #( 13103 *) : 13104 ;; 13105esac 13106 shift 13107 # Used to flag and report bootstrapping failures. 13108 am_rc=0 13109 for am_mf 13110 do 13111 # Strip MF so we end up with the name of the file. 13112 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13113 # Check whether this is an Automake generated Makefile which includes 13114 # dependency-tracking related rules and includes. 13115 # Grep'ing the whole file directly is not great: AIX grep has a line 13116 # limit of 2048, but all sed's we know have understand at least 4000. 13117 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13118 || continue 13119 am_dirpart=`$as_dirname -- "$am_mf" || 13120$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13121 X"$am_mf" : 'X\(//\)[^/]' \| \ 13122 X"$am_mf" : 'X\(//\)$' \| \ 13123 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13124printf "%s\n" X"$am_mf" | 13125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13126 s//\1/ 13127 q 13128 } 13129 /^X\(\/\/\)[^/].*/{ 13130 s//\1/ 13131 q 13132 } 13133 /^X\(\/\/\)$/{ 13134 s//\1/ 13135 q 13136 } 13137 /^X\(\/\).*/{ 13138 s//\1/ 13139 q 13140 } 13141 s/.*/./; q'` 13142 am_filepart=`$as_basename -- "$am_mf" || 13143$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13144 X"$am_mf" : 'X\(//\)$' \| \ 13145 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13146printf "%s\n" X/"$am_mf" | 13147 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13148 s//\1/ 13149 q 13150 } 13151 /^X\/\(\/\/\)$/{ 13152 s//\1/ 13153 q 13154 } 13155 /^X\/\(\/\).*/{ 13156 s//\1/ 13157 q 13158 } 13159 s/.*/./; q'` 13160 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13161 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13162 | $MAKE -f - am--depfiles" >&5 13163 (cd "$am_dirpart" \ 13164 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13165 | $MAKE -f - am--depfiles) >&5 2>&5 13166 ac_status=$? 13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13168 (exit $ac_status); } || am_rc=$? 13169 done 13170 if test $am_rc -ne 0; then 13171 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13172printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13173as_fn_error $? "Something went wrong bootstrapping makefile fragments 13174 for automatic dependency tracking. If GNU make was not used, consider 13175 re-running the configure script with MAKE=\"gmake\" (or whatever is 13176 necessary). You can also try re-running configure with the 13177 '--disable-dependency-tracking' option to at least be able to build 13178 the package (albeit without support for automatic dependency tracking). 13179See 'config.log' for more details" "$LINENO" 5; } 13180 fi 13181 { am_dirpart=; unset am_dirpart;} 13182 { am_filepart=; unset am_filepart;} 13183 { am_mf=; unset am_mf;} 13184 { am_rc=; unset am_rc;} 13185 rm -f conftest-deps.mk 13186} 13187 ;; 13188 13189 esac 13190done # for ac_tag 13191 13192 13193as_fn_exit 0 13194_ACEOF 13195ac_clean_files=$ac_clean_files_save 13196 13197test $ac_write_fail = 0 || 13198 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13199 13200 13201# configure is writing to config.log, and then calls config.status. 13202# config.status does its own redirection, appending to config.log. 13203# Unfortunately, on DOS this fails, as config.log is still kept open 13204# by configure, so config.status won't be able to write to it; its 13205# output is simply discarded. So we exec the FD to /dev/null, 13206# effectively closing config.log, so it can be properly (re)opened and 13207# appended to by config.status. When coming back to configure, we 13208# need to make the FD available again. 13209if test "$no_create" != yes; then 13210 ac_cs_success=: 13211 ac_config_status_args= 13212 test "$silent" = yes && 13213 ac_config_status_args="$ac_config_status_args --quiet" 13214 exec 5>/dev/null 13215 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13216 exec 5>>config.log 13217 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13218 # would make configure fail if this is the last instruction. 13219 $ac_cs_success || as_fn_exit 1 13220fi 13221if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13223printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13224fi 13225 13226 13227