1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.72 for xprop 1.2.8. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/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/xprop/-/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='xprop' 607PACKAGE_TARNAME='xprop' 608PACKAGE_VERSION='1.2.8' 609PACKAGE_STRING='xprop 1.2.8' 610PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xprop/-/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 650LINT_FALSE 651LINT_TRUE 652LINT_FLAGS 653LINT 654XPROP_LIBS 655XPROP_CFLAGS 656MAN_SUBSTS 657XORG_MAN_PAGE 658ADMIN_MAN_DIR 659DRIVER_MAN_DIR 660MISC_MAN_DIR 661FILE_MAN_DIR 662LIB_MAN_DIR 663APP_MAN_DIR 664ADMIN_MAN_SUFFIX 665DRIVER_MAN_SUFFIX 666MISC_MAN_SUFFIX 667FILE_MAN_SUFFIX 668LIB_MAN_SUFFIX 669APP_MAN_SUFFIX 670SED 671host_os 672host_vendor 673host_cpu 674host 675build_os 676build_vendor 677build_cpu 678build 679INSTALL_CMD 680PKG_CONFIG_LIBDIR 681PKG_CONFIG_PATH 682PKG_CONFIG 683CHANGELOG_CMD 684STRICT_CFLAGS 685CWARNFLAGS 686BASE_CFLAGS 687am__fastdepCC_FALSE 688am__fastdepCC_TRUE 689CCDEPMODE 690am__nodep 691AMDEPBACKSLASH 692AMDEP_FALSE 693AMDEP_TRUE 694am__include 695DEPDIR 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703am__xargs_n 704am__rm_f_notfound 705AM_BACKSLASH 706AM_DEFAULT_VERBOSITY 707AM_DEFAULT_V 708AM_V 709CSCOPE 710ETAGS 711CTAGS 712am__untar 713am__tar 714AMTAR 715am__leading_dot 716SET_MAKE 717AWK 718mkdir_p 719MKDIR_P 720INSTALL_STRIP_PROGRAM 721STRIP 722install_sh 723MAKEINFO 724AUTOHEADER 725AUTOMAKE 726AUTOCONF 727ACLOCAL 728VERSION 729PACKAGE 730CYGPATH_W 731am__isrc 732INSTALL_DATA 733INSTALL_SCRIPT 734INSTALL_PROGRAM 735target_alias 736host_alias 737build_alias 738LIBS 739ECHO_T 740ECHO_N 741ECHO_C 742DEFS 743mandir 744localedir 745libdir 746psdir 747pdfdir 748dvidir 749htmldir 750infodir 751docdir 752oldincludedir 753includedir 754runstatedir 755localstatedir 756sharedstatedir 757sysconfdir 758datadir 759datarootdir 760libexecdir 761sbindir 762bindir 763program_transform_name 764prefix 765exec_prefix 766PACKAGE_URL 767PACKAGE_BUGREPORT 768PACKAGE_STRING 769PACKAGE_VERSION 770PACKAGE_TARNAME 771PACKAGE_NAME 772PATH_SEPARATOR 773SHELL 774am__quote' 775ac_subst_files='' 776ac_user_opts=' 777enable_option_checking 778enable_silent_rules 779enable_dependency_tracking 780enable_selective_werror 781enable_strict_compilation 782with_lint 783' 784 ac_precious_vars='build_alias 785host_alias 786target_alias 787CC 788CFLAGS 789LDFLAGS 790LIBS 791CPPFLAGS 792PKG_CONFIG 793PKG_CONFIG_PATH 794PKG_CONFIG_LIBDIR 795XPROP_CFLAGS 796XPROP_LIBS 797LINT 798LINT_FLAGS' 799 800 801# Initialize some variables set by options. 802ac_init_help= 803ac_init_version=false 804ac_unrecognized_opts= 805ac_unrecognized_sep= 806# The variables have the same names as the options, with 807# dashes changed to underlines. 808cache_file=/dev/null 809exec_prefix=NONE 810no_create= 811no_recursion= 812prefix=NONE 813program_prefix=NONE 814program_suffix=NONE 815program_transform_name=s,x,x, 816silent= 817site= 818srcdir= 819verbose= 820x_includes=NONE 821x_libraries=NONE 822 823# Installation directory options. 824# These are left unexpanded so users can "make install exec_prefix=/foo" 825# and all the variables that are supposed to be based on exec_prefix 826# by default will actually change. 827# Use braces instead of parens because sh, perl, etc. also accept them. 828# (The list follows the same order as the GNU Coding Standards.) 829bindir='${exec_prefix}/bin' 830sbindir='${exec_prefix}/sbin' 831libexecdir='${exec_prefix}/libexec' 832datarootdir='${prefix}/share' 833datadir='${datarootdir}' 834sysconfdir='${prefix}/etc' 835sharedstatedir='${prefix}/com' 836localstatedir='${prefix}/var' 837runstatedir='${localstatedir}/run' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 case $ac_dashdash$ac_option in 868 --) 869 ac_dashdash=yes ;; 870 871 -bindir | --bindir | --bindi | --bind | --bin | --bi) 872 ac_prev=bindir ;; 873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 874 bindir=$ac_optarg ;; 875 876 -build | --build | --buil | --bui | --bu) 877 ac_prev=build_alias ;; 878 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 879 build_alias=$ac_optarg ;; 880 881 -cache-file | --cache-file | --cache-fil | --cache-fi \ 882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 883 ac_prev=cache_file ;; 884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 886 cache_file=$ac_optarg ;; 887 888 --config-cache | -C) 889 cache_file=config.cache ;; 890 891 -datadir | --datadir | --datadi | --datad) 892 ac_prev=datadir ;; 893 -datadir=* | --datadir=* | --datadi=* | --datad=*) 894 datadir=$ac_optarg ;; 895 896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 897 | --dataroo | --dataro | --datar) 898 ac_prev=datarootdir ;; 899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 901 datarootdir=$ac_optarg ;; 902 903 -disable-* | --disable-*) 904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 905 # Reject names that are not valid shell variable names. 906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 907 as_fn_error $? "invalid feature name: '$ac_useropt'" 908 ac_useropt_orig=$ac_useropt 909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 910 case $ac_user_opts in 911 *" 912"enable_$ac_useropt" 913"*) ;; 914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 915 ac_unrecognized_sep=', ';; 916 esac 917 eval enable_$ac_useropt=no ;; 918 919 -docdir | --docdir | --docdi | --doc | --do) 920 ac_prev=docdir ;; 921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 922 docdir=$ac_optarg ;; 923 924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 925 ac_prev=dvidir ;; 926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 927 dvidir=$ac_optarg ;; 928 929 -enable-* | --enable-*) 930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 931 # Reject names that are not valid shell variable names. 932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 933 as_fn_error $? "invalid feature name: '$ac_useropt'" 934 ac_useropt_orig=$ac_useropt 935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 936 case $ac_user_opts in 937 *" 938"enable_$ac_useropt" 939"*) ;; 940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 941 ac_unrecognized_sep=', ';; 942 esac 943 eval enable_$ac_useropt=\$ac_optarg ;; 944 945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 947 | --exec | --exe | --ex) 948 ac_prev=exec_prefix ;; 949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 951 | --exec=* | --exe=* | --ex=*) 952 exec_prefix=$ac_optarg ;; 953 954 -gas | --gas | --ga | --g) 955 # Obsolete; use --with-gas. 956 with_gas=yes ;; 957 958 -help | --help | --hel | --he | -h) 959 ac_init_help=long ;; 960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 961 ac_init_help=recursive ;; 962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 963 ac_init_help=short ;; 964 965 -host | --host | --hos | --ho) 966 ac_prev=host_alias ;; 967 -host=* | --host=* | --hos=* | --ho=*) 968 host_alias=$ac_optarg ;; 969 970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 971 ac_prev=htmldir ;; 972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 973 | --ht=*) 974 htmldir=$ac_optarg ;; 975 976 -includedir | --includedir | --includedi | --included | --include \ 977 | --includ | --inclu | --incl | --inc) 978 ac_prev=includedir ;; 979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 980 | --includ=* | --inclu=* | --incl=* | --inc=*) 981 includedir=$ac_optarg ;; 982 983 -infodir | --infodir | --infodi | --infod | --info | --inf) 984 ac_prev=infodir ;; 985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 986 infodir=$ac_optarg ;; 987 988 -libdir | --libdir | --libdi | --libd) 989 ac_prev=libdir ;; 990 -libdir=* | --libdir=* | --libdi=* | --libd=*) 991 libdir=$ac_optarg ;; 992 993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 994 | --libexe | --libex | --libe) 995 ac_prev=libexecdir ;; 996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 997 | --libexe=* | --libex=* | --libe=*) 998 libexecdir=$ac_optarg ;; 999 1000 -localedir | --localedir | --localedi | --localed | --locale) 1001 ac_prev=localedir ;; 1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1003 localedir=$ac_optarg ;; 1004 1005 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1006 | --localstate | --localstat | --localsta | --localst | --locals) 1007 ac_prev=localstatedir ;; 1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1010 localstatedir=$ac_optarg ;; 1011 1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1013 ac_prev=mandir ;; 1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1015 mandir=$ac_optarg ;; 1016 1017 -nfp | --nfp | --nf) 1018 # Obsolete; use --without-fp. 1019 with_fp=no ;; 1020 1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1022 | --no-cr | --no-c | -n) 1023 no_create=yes ;; 1024 1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1027 no_recursion=yes ;; 1028 1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1031 | --oldin | --oldi | --old | --ol | --o) 1032 ac_prev=oldincludedir ;; 1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1036 oldincludedir=$ac_optarg ;; 1037 1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1039 ac_prev=prefix ;; 1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1041 prefix=$ac_optarg ;; 1042 1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1044 | --program-pre | --program-pr | --program-p) 1045 ac_prev=program_prefix ;; 1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1048 program_prefix=$ac_optarg ;; 1049 1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1051 | --program-suf | --program-su | --program-s) 1052 ac_prev=program_suffix ;; 1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1055 program_suffix=$ac_optarg ;; 1056 1057 -program-transform-name | --program-transform-name \ 1058 | --program-transform-nam | --program-transform-na \ 1059 | --program-transform-n | --program-transform- \ 1060 | --program-transform | --program-transfor \ 1061 | --program-transfo | --program-transf \ 1062 | --program-trans | --program-tran \ 1063 | --progr-tra | --program-tr | --program-t) 1064 ac_prev=program_transform_name ;; 1065 -program-transform-name=* | --program-transform-name=* \ 1066 | --program-transform-nam=* | --program-transform-na=* \ 1067 | --program-transform-n=* | --program-transform-=* \ 1068 | --program-transform=* | --program-transfor=* \ 1069 | --program-transfo=* | --program-transf=* \ 1070 | --program-trans=* | --program-tran=* \ 1071 | --progr-tra=* | --program-tr=* | --program-t=*) 1072 program_transform_name=$ac_optarg ;; 1073 1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1075 ac_prev=pdfdir ;; 1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1077 pdfdir=$ac_optarg ;; 1078 1079 -psdir | --psdir | --psdi | --psd | --ps) 1080 ac_prev=psdir ;; 1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1082 psdir=$ac_optarg ;; 1083 1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1085 | -silent | --silent | --silen | --sile | --sil) 1086 silent=yes ;; 1087 1088 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1089 | --runstate | --runstat | --runsta | --runst | --runs \ 1090 | --run | --ru | --r) 1091 ac_prev=runstatedir ;; 1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1094 | --run=* | --ru=* | --r=*) 1095 runstatedir=$ac_optarg ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: '$ac_useropt'" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: '$ac_useropt'" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: '$ac_option' 1193Try '$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir runstatedir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: '$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265fi 1266 1267ac_tool_prefix= 1268test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270test "$silent" = yes && exec 6>/dev/null 1271 1272 1273ac_pwd=`pwd` && test -n "$ac_pwd" && 1274ac_ls_di=`ls -di .` && 1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281# Find the source files, if location was not specified. 1282if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290printf "%s\n" X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312else 1313 ac_srcdir_defaulted=no 1314fi 1315if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318fi 1319ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1320ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323# When building in place, set srcdir=. 1324if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326fi 1327# Remove unnecessary trailing slashes from srcdir. 1328# Double slashes in file names in object file debugging info 1329# mess up M-x gdb in Emacs. 1330case $srcdir in 1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332esac 1333for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338done 1339 1340# 1341# Report the --help message. 1342# 1343if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347'configure' configures xprop 1.2.8 to adapt to many kinds of systems. 1348 1349Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354Defaults for the options are specified in brackets. 1355 1356Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print 'checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for '--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1366 1367Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373By default, 'make install' will install all the files in 1374'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1375an installation prefix other than '$ac_default_prefix' using '--prefix', 1376for instance '--prefix=\$HOME'. 1377 1378For better control, use the options below. 1379 1380Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1388 --libdir=DIR object code libraries [EPREFIX/lib] 1389 --includedir=DIR C header files [PREFIX/include] 1390 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1393 --infodir=DIR info documentation [DATAROOTDIR/info] 1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1395 --mandir=DIR man documentation [DATAROOTDIR/man] 1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xprop] 1397 --htmldir=DIR html documentation [DOCDIR] 1398 --dvidir=DIR dvi documentation [DOCDIR] 1399 --pdfdir=DIR pdf documentation [DOCDIR] 1400 --psdir=DIR ps documentation [DOCDIR] 1401_ACEOF 1402 1403 cat <<\_ACEOF 1404 1405Program names: 1406 --program-prefix=PREFIX prepend PREFIX to installed program names 1407 --program-suffix=SUFFIX append SUFFIX to installed program names 1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1409 1410System types: 1411 --build=BUILD configure for building on BUILD [guessed] 1412 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1413_ACEOF 1414fi 1415 1416if test -n "$ac_init_help"; then 1417 case $ac_init_help in 1418 short | recursive ) echo "Configuration of xprop 1.2.8:";; 1419 esac 1420 cat <<\_ACEOF 1421 1422Optional Features: 1423 --disable-option-checking ignore unrecognized --enable/--with options 1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1426 --enable-silent-rules less verbose build output (undo: "make V=1") 1427 --disable-silent-rules verbose build output (undo: "make V=0") 1428 --enable-dependency-tracking 1429 do not reject slow dependency extractors 1430 --disable-dependency-tracking 1431 speeds up one-time build 1432 --disable-selective-werror 1433 Turn off selective compiler errors. (default: 1434 enabled) 1435 --enable-strict-compilation 1436 Enable all warnings from compiler and make them 1437 errors (default: disabled) 1438 1439Optional Packages: 1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --with-lint Use a lint-style source code checker (default: 1443 disabled) 1444 1445Some influential environment variables: 1446 CC C compiler command 1447 CFLAGS C compiler flags 1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1449 nonstandard directory <lib dir> 1450 LIBS libraries to pass to the linker, e.g. -l<library> 1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1452 you have headers in a nonstandard directory <include dir> 1453 PKG_CONFIG path to pkg-config utility 1454 PKG_CONFIG_PATH 1455 directories to add to pkg-config's search path 1456 PKG_CONFIG_LIBDIR 1457 path overriding pkg-config's built-in search path 1458 XPROP_CFLAGS 1459 C compiler flags for XPROP, overriding pkg-config 1460 XPROP_LIBS linker flags for XPROP, overriding pkg-config 1461 LINT Path to a lint-style command 1462 LINT_FLAGS Flags for the lint-style command 1463 1464Use these variables to override the choices made by 'configure' or to help 1465it to find libraries and programs with nonstandard names/locations. 1466 1467Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/issues>. 1468_ACEOF 1469ac_status=$? 1470fi 1471 1472if test "$ac_init_help" = "recursive"; then 1473 # If there are subdirs, report their specific --help. 1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1475 test -d "$ac_dir" || 1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1477 continue 1478 ac_builddir=. 1479 1480case "$ac_dir" in 1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482*) 1483 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1484 # A ".." for each directory in $ac_dir_suffix. 1485 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1486 case $ac_top_builddir_sub in 1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1489 esac ;; 1490esac 1491ac_abs_top_builddir=$ac_pwd 1492ac_abs_builddir=$ac_pwd$ac_dir_suffix 1493# for backward compatibility: 1494ac_top_builddir=$ac_top_build_prefix 1495 1496case $srcdir in 1497 .) # We are building in place. 1498 ac_srcdir=. 1499 ac_top_srcdir=$ac_top_builddir_sub 1500 ac_abs_top_srcdir=$ac_pwd ;; 1501 [\\/]* | ?:[\\/]* ) # Absolute name. 1502 ac_srcdir=$srcdir$ac_dir_suffix; 1503 ac_top_srcdir=$srcdir 1504 ac_abs_top_srcdir=$srcdir ;; 1505 *) # Relative name. 1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1507 ac_top_srcdir=$ac_top_build_prefix$srcdir 1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1509esac 1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1511 1512 cd "$ac_dir" || { ac_status=$?; continue; } 1513 # Check for configure.gnu first; this name is used for a wrapper for 1514 # Metaconfig's "Configure" on case-insensitive file systems. 1515 if test -f "$ac_srcdir/configure.gnu"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1518 elif test -f "$ac_srcdir/configure"; then 1519 echo && 1520 $SHELL "$ac_srcdir/configure" --help=recursive 1521 else 1522 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1523 fi || ac_status=$? 1524 cd "$ac_pwd" || { ac_status=$?; break; } 1525 done 1526fi 1527 1528test -n "$ac_init_help" && exit $ac_status 1529if $ac_init_version; then 1530 cat <<\_ACEOF 1531xprop configure 1.2.8 1532generated by GNU Autoconf 2.72 1533 1534Copyright (C) 2023 Free Software Foundation, Inc. 1535This configure script is free software; the Free Software Foundation 1536gives unlimited permission to copy, distribute and modify it. 1537_ACEOF 1538 exit 1539fi 1540 1541## ------------------------ ## 1542## Autoconf initialization. ## 1543## ------------------------ ## 1544 1545# ac_fn_c_try_compile LINENO 1546# -------------------------- 1547# Try to compile conftest.$ac_ext, and return whether this succeeded. 1548ac_fn_c_try_compile () 1549{ 1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1551 rm -f conftest.$ac_objext conftest.beam 1552 if { { ac_try="$ac_compile" 1553case "(($ac_try" in 1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1555 *) ac_try_echo=$ac_try;; 1556esac 1557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1558printf "%s\n" "$ac_try_echo"; } >&5 1559 (eval "$ac_compile") 2>conftest.err 1560 ac_status=$? 1561 if test -s conftest.err; then 1562 grep -v '^ *+' conftest.err >conftest.er1 1563 cat conftest.er1 >&5 1564 mv -f conftest.er1 conftest.err 1565 fi 1566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1567 test $ac_status = 0; } && { 1568 test -z "$ac_c_werror_flag" || 1569 test ! -s conftest.err 1570 } && test -s conftest.$ac_objext 1571then : 1572 ac_retval=0 1573else case e in #( 1574 e) printf "%s\n" "$as_me: failed program was:" >&5 1575sed 's/^/| /' conftest.$ac_ext >&5 1576 1577 ac_retval=1 ;; 1578esac 1579fi 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581 as_fn_set_status $ac_retval 1582 1583} # ac_fn_c_try_compile 1584 1585# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1586# ------------------------------------------------------------------ 1587# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1588# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1589ac_fn_check_decl () 1590{ 1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1592 as_decl_name=`echo $2|sed 's/ *(.*//'` 1593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1594printf %s "checking whether $as_decl_name is declared... " >&6; } 1595if eval test \${$3+y} 1596then : 1597 printf %s "(cached) " >&6 1598else case e in #( 1599 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1600 eval ac_save_FLAGS=\$$6 1601 as_fn_append $6 " $5" 1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1603/* end confdefs.h. */ 1604$4 1605int 1606main (void) 1607{ 1608#ifndef $as_decl_name 1609#ifdef __cplusplus 1610 (void) $as_decl_use; 1611#else 1612 (void) $as_decl_name; 1613#endif 1614#endif 1615 1616 ; 1617 return 0; 1618} 1619_ACEOF 1620if ac_fn_c_try_compile "$LINENO" 1621then : 1622 eval "$3=yes" 1623else case e in #( 1624 e) eval "$3=no" ;; 1625esac 1626fi 1627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1628 eval $6=\$ac_save_FLAGS 1629 ;; 1630esac 1631fi 1632eval ac_res=\$$3 1633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1634printf "%s\n" "$ac_res" >&6; } 1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1636 1637} # ac_fn_check_decl 1638 1639# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1640# ------------------------------------------------------- 1641# Tests whether HEADER exists and can be compiled using the include files in 1642# INCLUDES, setting the cache variable VAR accordingly. 1643ac_fn_c_check_header_compile () 1644{ 1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1647printf %s "checking for $2... " >&6; } 1648if eval test \${$3+y} 1649then : 1650 printf %s "(cached) " >&6 1651else case e in #( 1652 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1653/* end confdefs.h. */ 1654$4 1655#include <$2> 1656_ACEOF 1657if ac_fn_c_try_compile "$LINENO" 1658then : 1659 eval "$3=yes" 1660else case e in #( 1661 e) eval "$3=no" ;; 1662esac 1663fi 1664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1665esac 1666fi 1667eval ac_res=\$$3 1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1669printf "%s\n" "$ac_res" >&6; } 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 1672} # ac_fn_c_check_header_compile 1673 1674# ac_fn_c_try_link LINENO 1675# ----------------------- 1676# Try to link conftest.$ac_ext, and return whether this succeeded. 1677ac_fn_c_try_link () 1678{ 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1681 if { { ac_try="$ac_link" 1682case "(($ac_try" in 1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1684 *) ac_try_echo=$ac_try;; 1685esac 1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1687printf "%s\n" "$ac_try_echo"; } >&5 1688 (eval "$ac_link") 2>conftest.err 1689 ac_status=$? 1690 if test -s conftest.err; then 1691 grep -v '^ *+' conftest.err >conftest.er1 1692 cat conftest.er1 >&5 1693 mv -f conftest.er1 conftest.err 1694 fi 1695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; } && { 1697 test -z "$ac_c_werror_flag" || 1698 test ! -s conftest.err 1699 } && test -s conftest$ac_exeext && { 1700 test "$cross_compiling" = yes || 1701 test -x conftest$ac_exeext 1702 } 1703then : 1704 ac_retval=0 1705else case e in #( 1706 e) printf "%s\n" "$as_me: failed program was:" >&5 1707sed 's/^/| /' conftest.$ac_ext >&5 1708 1709 ac_retval=1 ;; 1710esac 1711fi 1712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1714 # interfere with the next link command; also delete a directory that is 1715 # left behind by Apple's compiler. We do this before executing the actions. 1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_link 1721ac_configure_args_raw= 1722for ac_arg 1723do 1724 case $ac_arg in 1725 *\'*) 1726 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1727 esac 1728 as_fn_append ac_configure_args_raw " '$ac_arg'" 1729done 1730 1731case $ac_configure_args_raw in 1732 *$as_nl*) 1733 ac_safe_unquote= ;; 1734 *) 1735 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1736 ac_unsafe_a="$ac_unsafe_z#~" 1737 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1738 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1739esac 1740 1741cat >config.log <<_ACEOF 1742This file contains any messages produced by compilers while 1743running configure, to aid debugging if configure makes a mistake. 1744 1745It was created by xprop $as_me 1.2.8, which was 1746generated by GNU Autoconf 2.72. Invocation command line was 1747 1748 $ $0$ac_configure_args_raw 1749 1750_ACEOF 1751exec 5>>config.log 1752{ 1753cat <<_ASUNAME 1754## --------- ## 1755## Platform. ## 1756## --------- ## 1757 1758hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1759uname -m = `(uname -m) 2>/dev/null || echo unknown` 1760uname -r = `(uname -r) 2>/dev/null || echo unknown` 1761uname -s = `(uname -s) 2>/dev/null || echo unknown` 1762uname -v = `(uname -v) 2>/dev/null || echo unknown` 1763 1764/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1765/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1766 1767/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1768/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1769/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1770/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1771/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1772/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1773/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1774 1775_ASUNAME 1776 1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1778for as_dir in $PATH 1779do 1780 IFS=$as_save_IFS 1781 case $as_dir in #((( 1782 '') as_dir=./ ;; 1783 */) ;; 1784 *) as_dir=$as_dir/ ;; 1785 esac 1786 printf "%s\n" "PATH: $as_dir" 1787 done 1788IFS=$as_save_IFS 1789 1790} >&5 1791 1792cat >&5 <<_ACEOF 1793 1794 1795## ----------- ## 1796## Core tests. ## 1797## ----------- ## 1798 1799_ACEOF 1800 1801 1802# Keep a trace of the command line. 1803# Strip out --no-create and --no-recursion so they do not pile up. 1804# Strip out --silent because we don't want to record it for future runs. 1805# Also quote any args containing shell meta-characters. 1806# Make two passes to allow for proper duplicate-argument suppression. 1807ac_configure_args= 1808ac_configure_args0= 1809ac_configure_args1= 1810ac_must_keep_next=false 1811for ac_pass in 1 2 1812do 1813 for ac_arg 1814 do 1815 case $ac_arg in 1816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1818 | -silent | --silent | --silen | --sile | --sil) 1819 continue ;; 1820 *\'*) 1821 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1822 esac 1823 case $ac_pass in 1824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1825 2) 1826 as_fn_append ac_configure_args1 " '$ac_arg'" 1827 if test $ac_must_keep_next = true; then 1828 ac_must_keep_next=false # Got value, back to normal. 1829 else 1830 case $ac_arg in 1831 *=* | --config-cache | -C | -disable-* | --disable-* \ 1832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1834 | -with-* | --with-* | -without-* | --without-* | --x) 1835 case "$ac_configure_args0 " in 1836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1837 esac 1838 ;; 1839 -* ) ac_must_keep_next=true ;; 1840 esac 1841 fi 1842 as_fn_append ac_configure_args " '$ac_arg'" 1843 ;; 1844 esac 1845 done 1846done 1847{ ac_configure_args0=; unset ac_configure_args0;} 1848{ ac_configure_args1=; unset ac_configure_args1;} 1849 1850# When interrupted or exit'd, cleanup temporary files, and complete 1851# config.log. We remove comments because anyway the quotes in there 1852# would cause problems or look ugly. 1853# WARNING: Use '\'' to represent an apostrophe within the trap. 1854# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1855trap 'exit_status=$? 1856 # Sanitize IFS. 1857 IFS=" "" $as_nl" 1858 # Save into config.log some information that might help in debugging. 1859 { 1860 echo 1861 1862 printf "%s\n" "## ---------------- ## 1863## Cache variables. ## 1864## ---------------- ##" 1865 echo 1866 # The following way of writing the cache mishandles newlines in values, 1867( 1868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1869 eval ac_val=\$$ac_var 1870 case $ac_val in #( 1871 *${as_nl}*) 1872 case $ac_var in #( 1873 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1874printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1875 esac 1876 case $ac_var in #( 1877 _ | IFS | as_nl) ;; #( 1878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1879 *) { eval $ac_var=; unset $ac_var;} ;; 1880 esac ;; 1881 esac 1882 done 1883 (set) 2>&1 | 1884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1885 *${as_nl}ac_space=\ *) 1886 sed -n \ 1887 "s/'\''/'\''\\\\'\'''\''/g; 1888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1889 ;; #( 1890 *) 1891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1892 ;; 1893 esac | 1894 sort 1895) 1896 echo 1897 1898 printf "%s\n" "## ----------------- ## 1899## Output variables. ## 1900## ----------------- ##" 1901 echo 1902 for ac_var in $ac_subst_vars 1903 do 1904 eval ac_val=\$$ac_var 1905 case $ac_val in 1906 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1907 esac 1908 printf "%s\n" "$ac_var='\''$ac_val'\''" 1909 done | sort 1910 echo 1911 1912 if test -n "$ac_subst_files"; then 1913 printf "%s\n" "## ------------------- ## 1914## File substitutions. ## 1915## ------------------- ##" 1916 echo 1917 for ac_var in $ac_subst_files 1918 do 1919 eval ac_val=\$$ac_var 1920 case $ac_val in 1921 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1922 esac 1923 printf "%s\n" "$ac_var='\''$ac_val'\''" 1924 done | sort 1925 echo 1926 fi 1927 1928 if test -s confdefs.h; then 1929 printf "%s\n" "## ----------- ## 1930## confdefs.h. ## 1931## ----------- ##" 1932 echo 1933 cat confdefs.h 1934 echo 1935 fi 1936 test "$ac_signal" != 0 && 1937 printf "%s\n" "$as_me: caught signal $ac_signal" 1938 printf "%s\n" "$as_me: exit $exit_status" 1939 } >&5 1940 rm -f core *.core core.conftest.* && 1941 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1942 exit $exit_status 1943' 0 1944for ac_signal in 1 2 13 15; do 1945 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1946done 1947ac_signal=0 1948 1949# confdefs.h avoids OS command line length limits that DEFS can exceed. 1950rm -f -r conftest* confdefs.h 1951 1952printf "%s\n" "/* confdefs.h */" > confdefs.h 1953 1954# Predefined preprocessor variables. 1955 1956printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1957 1958printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1959 1960printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1961 1962printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1963 1964printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 1965 1966printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 1967 1968 1969# Let the site file select an alternate cache file if it wants to. 1970# Prefer an explicitly selected file to automatically selected ones. 1971if test -n "$CONFIG_SITE"; then 1972 ac_site_files="$CONFIG_SITE" 1973elif test "x$prefix" != xNONE; then 1974 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 1975else 1976 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1977fi 1978 1979for ac_site_file in $ac_site_files 1980do 1981 case $ac_site_file in #( 1982 */*) : 1983 ;; #( 1984 *) : 1985 ac_site_file=./$ac_site_file ;; 1986esac 1987 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1989printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 1990 sed 's/^/| /' "$ac_site_file" >&5 1991 . "$ac_site_file" \ 1992 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 1993printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 1994as_fn_error $? "failed to load site script $ac_site_file 1995See 'config.log' for more details" "$LINENO" 5; } 1996 fi 1997done 1998 1999if test -r "$cache_file"; then 2000 # Some versions of bash will fail to source /dev/null (special files 2001 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2002 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2004printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2005 case $cache_file in 2006 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2007 *) . "./$cache_file";; 2008 esac 2009 fi 2010else 2011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2012printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2013 >$cache_file 2014fi 2015 2016# Test code for whether the C compiler supports C89 (global declarations) 2017ac_c_conftest_c89_globals=' 2018/* Does the compiler advertise C89 conformance? 2019 Do not test the value of __STDC__, because some compilers set it to 0 2020 while being otherwise adequately conformant. */ 2021#if !defined __STDC__ 2022# error "Compiler does not advertise C89 conformance" 2023#endif 2024 2025#include <stddef.h> 2026#include <stdarg.h> 2027struct stat; 2028/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2029struct buf { int x; }; 2030struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2031static char *e (char **p, int i) 2032{ 2033 return p[i]; 2034} 2035static char *f (char * (*g) (char **, int), char **p, ...) 2036{ 2037 char *s; 2038 va_list v; 2039 va_start (v,p); 2040 s = g (p, va_arg (v,int)); 2041 va_end (v); 2042 return s; 2043} 2044 2045/* C89 style stringification. */ 2046#define noexpand_stringify(a) #a 2047const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2048 2049/* C89 style token pasting. Exercises some of the corner cases that 2050 e.g. old MSVC gets wrong, but not very hard. */ 2051#define noexpand_concat(a,b) a##b 2052#define expand_concat(a,b) noexpand_concat(a,b) 2053extern int vA; 2054extern int vbee; 2055#define aye A 2056#define bee B 2057int *pvA = &expand_concat(v,aye); 2058int *pvbee = &noexpand_concat(v,bee); 2059 2060/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2061 function prototypes and stuff, but not \xHH hex character constants. 2062 These do not provoke an error unfortunately, instead are silently treated 2063 as an "x". The following induces an error, until -std is added to get 2064 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2065 array size at least. It is necessary to write \x00 == 0 to get something 2066 that is true only with -std. */ 2067int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2068 2069/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2070 inside strings and character constants. */ 2071#define FOO(x) '\''x'\'' 2072int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2073 2074int test (int i, double x); 2075struct s1 {int (*f) (int a);}; 2076struct s2 {int (*f) (double a);}; 2077int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2078 int, int);' 2079 2080# Test code for whether the C compiler supports C89 (body of main). 2081ac_c_conftest_c89_main=' 2082ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2083' 2084 2085# Test code for whether the C compiler supports C99 (global declarations) 2086ac_c_conftest_c99_globals=' 2087/* Does the compiler advertise C99 conformance? */ 2088#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2089# error "Compiler does not advertise C99 conformance" 2090#endif 2091 2092// See if C++-style comments work. 2093 2094#include <stdbool.h> 2095extern int puts (const char *); 2096extern int printf (const char *, ...); 2097extern int dprintf (int, const char *, ...); 2098extern void *malloc (size_t); 2099extern void free (void *); 2100 2101// Check varargs macros. These examples are taken from C99 6.10.3.5. 2102// dprintf is used instead of fprintf to avoid needing to declare 2103// FILE and stderr. 2104#define debug(...) dprintf (2, __VA_ARGS__) 2105#define showlist(...) puts (#__VA_ARGS__) 2106#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2107static void 2108test_varargs_macros (void) 2109{ 2110 int x = 1234; 2111 int y = 5678; 2112 debug ("Flag"); 2113 debug ("X = %d\n", x); 2114 showlist (The first, second, and third items.); 2115 report (x>y, "x is %d but y is %d", x, y); 2116} 2117 2118// Check long long types. 2119#define BIG64 18446744073709551615ull 2120#define BIG32 4294967295ul 2121#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2122#if !BIG_OK 2123 #error "your preprocessor is broken" 2124#endif 2125#if BIG_OK 2126#else 2127 #error "your preprocessor is broken" 2128#endif 2129static long long int bignum = -9223372036854775807LL; 2130static unsigned long long int ubignum = BIG64; 2131 2132struct incomplete_array 2133{ 2134 int datasize; 2135 double data[]; 2136}; 2137 2138struct named_init { 2139 int number; 2140 const wchar_t *name; 2141 double average; 2142}; 2143 2144typedef const char *ccp; 2145 2146static inline int 2147test_restrict (ccp restrict text) 2148{ 2149 // Iterate through items via the restricted pointer. 2150 // Also check for declarations in for loops. 2151 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2152 continue; 2153 return 0; 2154} 2155 2156// Check varargs and va_copy. 2157static bool 2158test_varargs (const char *format, ...) 2159{ 2160 va_list args; 2161 va_start (args, format); 2162 va_list args_copy; 2163 va_copy (args_copy, args); 2164 2165 const char *str = ""; 2166 int number = 0; 2167 float fnumber = 0; 2168 2169 while (*format) 2170 { 2171 switch (*format++) 2172 { 2173 case '\''s'\'': // string 2174 str = va_arg (args_copy, const char *); 2175 break; 2176 case '\''d'\'': // int 2177 number = va_arg (args_copy, int); 2178 break; 2179 case '\''f'\'': // float 2180 fnumber = va_arg (args_copy, double); 2181 break; 2182 default: 2183 break; 2184 } 2185 } 2186 va_end (args_copy); 2187 va_end (args); 2188 2189 return *str && number && fnumber; 2190} 2191' 2192 2193# Test code for whether the C compiler supports C99 (body of main). 2194ac_c_conftest_c99_main=' 2195 // Check bool. 2196 _Bool success = false; 2197 success |= (argc != 0); 2198 2199 // Check restrict. 2200 if (test_restrict ("String literal") == 0) 2201 success = true; 2202 char *restrict newvar = "Another string"; 2203 2204 // Check varargs. 2205 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2206 test_varargs_macros (); 2207 2208 // Check flexible array members. 2209 struct incomplete_array *ia = 2210 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2211 ia->datasize = 10; 2212 for (int i = 0; i < ia->datasize; ++i) 2213 ia->data[i] = i * 1.234; 2214 // Work around memory leak warnings. 2215 free (ia); 2216 2217 // Check named initializers. 2218 struct named_init ni = { 2219 .number = 34, 2220 .name = L"Test wide string", 2221 .average = 543.34343, 2222 }; 2223 2224 ni.number = 58; 2225 2226 int dynamic_array[ni.number]; 2227 dynamic_array[0] = argv[0][0]; 2228 dynamic_array[ni.number - 1] = 543; 2229 2230 // work around unused variable warnings 2231 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2232 || dynamic_array[ni.number - 1] != 543); 2233' 2234 2235# Test code for whether the C compiler supports C11 (global declarations) 2236ac_c_conftest_c11_globals=' 2237/* Does the compiler advertise C11 conformance? */ 2238#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2239# error "Compiler does not advertise C11 conformance" 2240#endif 2241 2242// Check _Alignas. 2243char _Alignas (double) aligned_as_double; 2244char _Alignas (0) no_special_alignment; 2245extern char aligned_as_int; 2246char _Alignas (0) _Alignas (int) aligned_as_int; 2247 2248// Check _Alignof. 2249enum 2250{ 2251 int_alignment = _Alignof (int), 2252 int_array_alignment = _Alignof (int[100]), 2253 char_alignment = _Alignof (char) 2254}; 2255_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2256 2257// Check _Noreturn. 2258int _Noreturn does_not_return (void) { for (;;) continue; } 2259 2260// Check _Static_assert. 2261struct test_static_assert 2262{ 2263 int x; 2264 _Static_assert (sizeof (int) <= sizeof (long int), 2265 "_Static_assert does not work in struct"); 2266 long int y; 2267}; 2268 2269// Check UTF-8 literals. 2270#define u8 syntax error! 2271char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2272 2273// Check duplicate typedefs. 2274typedef long *long_ptr; 2275typedef long int *long_ptr; 2276typedef long_ptr long_ptr; 2277 2278// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2279struct anonymous 2280{ 2281 union { 2282 struct { int i; int j; }; 2283 struct { int k; long int l; } w; 2284 }; 2285 int m; 2286} v1; 2287' 2288 2289# Test code for whether the C compiler supports C11 (body of main). 2290ac_c_conftest_c11_main=' 2291 _Static_assert ((offsetof (struct anonymous, i) 2292 == offsetof (struct anonymous, w.k)), 2293 "Anonymous union alignment botch"); 2294 v1.i = 2; 2295 v1.w.k = 5; 2296 ok |= v1.i != 5; 2297' 2298 2299# Test code for whether the C compiler supports C11 (complete). 2300ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2301${ac_c_conftest_c99_globals} 2302${ac_c_conftest_c11_globals} 2303 2304int 2305main (int argc, char **argv) 2306{ 2307 int ok = 0; 2308 ${ac_c_conftest_c89_main} 2309 ${ac_c_conftest_c99_main} 2310 ${ac_c_conftest_c11_main} 2311 return ok; 2312} 2313" 2314 2315# Test code for whether the C compiler supports C99 (complete). 2316ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2317${ac_c_conftest_c99_globals} 2318 2319int 2320main (int argc, char **argv) 2321{ 2322 int ok = 0; 2323 ${ac_c_conftest_c89_main} 2324 ${ac_c_conftest_c99_main} 2325 return ok; 2326} 2327" 2328 2329# Test code for whether the C compiler supports C89 (complete). 2330ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2331 2332int 2333main (int argc, char **argv) 2334{ 2335 int ok = 0; 2336 ${ac_c_conftest_c89_main} 2337 return ok; 2338} 2339" 2340 2341as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2342as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2343as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2344as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2345as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2346as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2347as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2348as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2349as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2350 2351# Auxiliary files required by this configure script. 2352ac_aux_files="config.guess config.sub compile missing install-sh" 2353 2354# Locations in which to look for auxiliary files. 2355ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2356 2357# Search for a directory containing all of the required auxiliary files, 2358# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2359# If we don't find one directory that contains all the files we need, 2360# we report the set of missing files from the *first* directory in 2361# $ac_aux_dir_candidates and give up. 2362ac_missing_aux_files="" 2363ac_first_candidate=: 2364printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2366as_found=false 2367for as_dir in $ac_aux_dir_candidates 2368do 2369 IFS=$as_save_IFS 2370 case $as_dir in #((( 2371 '') as_dir=./ ;; 2372 */) ;; 2373 *) as_dir=$as_dir/ ;; 2374 esac 2375 as_found=: 2376 2377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2378 ac_aux_dir_found=yes 2379 ac_install_sh= 2380 for ac_aux in $ac_aux_files 2381 do 2382 # As a special case, if "install-sh" is required, that requirement 2383 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2384 # and $ac_install_sh is set appropriately for whichever one is found. 2385 if test x"$ac_aux" = x"install-sh" 2386 then 2387 if test -f "${as_dir}install-sh"; then 2388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2389 ac_install_sh="${as_dir}install-sh -c" 2390 elif test -f "${as_dir}install.sh"; then 2391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2392 ac_install_sh="${as_dir}install.sh -c" 2393 elif test -f "${as_dir}shtool"; then 2394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2395 ac_install_sh="${as_dir}shtool install -c" 2396 else 2397 ac_aux_dir_found=no 2398 if $ac_first_candidate; then 2399 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2400 else 2401 break 2402 fi 2403 fi 2404 else 2405 if test -f "${as_dir}${ac_aux}"; then 2406 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2407 else 2408 ac_aux_dir_found=no 2409 if $ac_first_candidate; then 2410 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2411 else 2412 break 2413 fi 2414 fi 2415 fi 2416 done 2417 if test "$ac_aux_dir_found" = yes; then 2418 ac_aux_dir="$as_dir" 2419 break 2420 fi 2421 ac_first_candidate=false 2422 2423 as_found=false 2424done 2425IFS=$as_save_IFS 2426if $as_found 2427then : 2428 2429else case e in #( 2430 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2431esac 2432fi 2433 2434 2435# These three variables are undocumented and unsupported, 2436# and are intended to be withdrawn in a future Autoconf release. 2437# They can cause serious problems if a builder's source tree is in a directory 2438# whose full name contains unusual characters. 2439if test -f "${ac_aux_dir}config.guess"; then 2440 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2441fi 2442if test -f "${ac_aux_dir}config.sub"; then 2443 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2444fi 2445if test -f "$ac_aux_dir/configure"; then 2446 ac_configure="$SHELL ${ac_aux_dir}configure" 2447fi 2448 2449# Check that the precious variables saved in the cache have kept the same 2450# value. 2451ac_cache_corrupted=false 2452for ac_var in $ac_precious_vars; do 2453 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2454 eval ac_new_set=\$ac_env_${ac_var}_set 2455 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2456 eval ac_new_val=\$ac_env_${ac_var}_value 2457 case $ac_old_set,$ac_new_set in 2458 set,) 2459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2460printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2461 ac_cache_corrupted=: ;; 2462 ,set) 2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2464printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2465 ac_cache_corrupted=: ;; 2466 ,);; 2467 *) 2468 if test "x$ac_old_val" != "x$ac_new_val"; then 2469 # differences in whitespace do not lead to failure. 2470 ac_old_val_w=`echo x $ac_old_val` 2471 ac_new_val_w=`echo x $ac_new_val` 2472 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2474printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2475 ac_cache_corrupted=: 2476 else 2477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2478printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2479 eval $ac_var=\$ac_old_val 2480 fi 2481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2482printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2484printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2485 fi;; 2486 esac 2487 # Pass precious variables to config.status. 2488 if test "$ac_new_set" = set; then 2489 case $ac_new_val in 2490 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2491 *) ac_arg=$ac_var=$ac_new_val ;; 2492 esac 2493 case " $ac_configure_args " in 2494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2495 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2496 esac 2497 fi 2498done 2499if $ac_cache_corrupted; then 2500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2501printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2503printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2504 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2505 and start over" "$LINENO" 5 2506fi 2507## -------------------- ## 2508## Main body of script. ## 2509## -------------------- ## 2510 2511ac_ext=c 2512ac_cpp='$CPP $CPPFLAGS' 2513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2515ac_compiler_gnu=$ac_cv_c_compiler_gnu 2516 2517 2518 2519ac_config_headers="$ac_config_headers config.h" 2520 2521 2522# Initialize Automake 2523am__api_version='1.17' 2524 2525 2526 2527 # Find a good install program. We prefer a C program (faster), 2528# so one script is as good as another. But avoid the broken or 2529# incompatible versions: 2530# SysV /etc/install, /usr/sbin/install 2531# SunOS /usr/etc/install 2532# IRIX /sbin/install 2533# AIX /bin/install 2534# AmigaOS /C/install, which installs bootblocks on floppy discs 2535# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2536# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2537# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2538# OS/2's system install, which has a completely different semantic 2539# ./install, which can be erroneously created by make from ./install.sh. 2540# Reject install programs that cannot install multiple files. 2541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2542printf %s "checking for a BSD-compatible install... " >&6; } 2543if test -z "$INSTALL"; then 2544if test ${ac_cv_path_install+y} 2545then : 2546 printf %s "(cached) " >&6 2547else case e in #( 2548 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2549for as_dir in $PATH 2550do 2551 IFS=$as_save_IFS 2552 case $as_dir in #((( 2553 '') as_dir=./ ;; 2554 */) ;; 2555 *) as_dir=$as_dir/ ;; 2556 esac 2557 # Account for fact that we put trailing slashes in our PATH walk. 2558case $as_dir in #(( 2559 ./ | /[cC]/* | \ 2560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2561 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2562 /usr/ucb/* ) ;; 2563 *) 2564 # OSF1 and SCO ODT 3.0 have their own names for install. 2565 # Don't use installbsd from OSF since it installs stuff as root 2566 # by default. 2567 for ac_prog in ginstall scoinst install; do 2568 for ac_exec_ext in '' $ac_executable_extensions; do 2569 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2570 if test $ac_prog = install && 2571 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2572 # AIX install. It has an incompatible calling convention. 2573 : 2574 elif test $ac_prog = install && 2575 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2576 # program-specific install script used by HP pwplus--don't use. 2577 : 2578 else 2579 rm -rf conftest.one conftest.two conftest.dir 2580 echo one > conftest.one 2581 echo two > conftest.two 2582 mkdir conftest.dir 2583 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2584 test -s conftest.one && test -s conftest.two && 2585 test -s conftest.dir/conftest.one && 2586 test -s conftest.dir/conftest.two 2587 then 2588 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2589 break 3 2590 fi 2591 fi 2592 fi 2593 done 2594 done 2595 ;; 2596esac 2597 2598 done 2599IFS=$as_save_IFS 2600 2601rm -rf conftest.one conftest.two conftest.dir 2602 ;; 2603esac 2604fi 2605 if test ${ac_cv_path_install+y}; then 2606 INSTALL=$ac_cv_path_install 2607 else 2608 # As a last resort, use the slow shell script. Don't cache a 2609 # value for INSTALL within a source directory, because that will 2610 # break other packages using the cache if that directory is 2611 # removed, or if the value is a relative name. 2612 INSTALL=$ac_install_sh 2613 fi 2614fi 2615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2616printf "%s\n" "$INSTALL" >&6; } 2617 2618# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2619# It thinks the first close brace ends the variable substitution. 2620test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2621 2622test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2623 2624test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2625 2626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 2627printf %s "checking whether sleep supports fractional seconds... " >&6; } 2628if test ${am_cv_sleep_fractional_seconds+y} 2629then : 2630 printf %s "(cached) " >&6 2631else case e in #( 2632 e) if sleep 0.001 2>/dev/null 2633then : 2634 am_cv_sleep_fractional_seconds=yes 2635else case e in #( 2636 e) am_cv_sleep_fractional_seconds=no ;; 2637esac 2638fi 2639 ;; 2640esac 2641fi 2642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 2643printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 2644 2645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 2646printf %s "checking filesystem timestamp resolution... " >&6; } 2647if test ${am_cv_filesystem_timestamp_resolution+y} 2648then : 2649 printf %s "(cached) " >&6 2650else case e in #( 2651 e) # Default to the worst case. 2652am_cv_filesystem_timestamp_resolution=2 2653 2654# Only try to go finer than 1 sec if sleep can do it. 2655# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 2656# - 1 sec is not much of a win compared to 2 sec, and 2657# - it takes 2 seconds to perform the test whether 1 sec works. 2658# 2659# Instead, just use the default 2s on platforms that have 1s resolution, 2660# accept the extra 1s delay when using $sleep in the Automake tests, in 2661# exchange for not incurring the 2s delay for running the test for all 2662# packages. 2663# 2664am_try_resolutions= 2665if test "$am_cv_sleep_fractional_seconds" = yes; then 2666 # Even a millisecond often causes a bunch of false positives, 2667 # so just try a hundredth of a second. The time saved between .001 and 2668 # .01 is not terribly consequential. 2669 am_try_resolutions="0.01 0.1 $am_try_resolutions" 2670fi 2671 2672# In order to catch current-generation FAT out, we must *modify* files 2673# that already exist; the *creation* timestamp is finer. Use names 2674# that make ls -t sort them differently when they have equal 2675# timestamps than when they have distinct timestamps, keeping 2676# in mind that ls -t prints the *newest* file first. 2677rm -f conftest.ts? 2678: > conftest.ts1 2679: > conftest.ts2 2680: > conftest.ts3 2681 2682# Make sure ls -t actually works. Do 'set' in a subshell so we don't 2683# clobber the current shell's arguments. (Outer-level square brackets 2684# are removed by m4; they're present so that m4 does not expand 2685# <dollar><star>; be careful, easy to get confused.) 2686if ( 2687 set X `ls -t conftest.ts[12]` && 2688 { 2689 test "$*" != "X conftest.ts1 conftest.ts2" || 2690 test "$*" != "X conftest.ts2 conftest.ts1"; 2691 } 2692); then :; else 2693 # If neither matched, then we have a broken ls. This can happen 2694 # if, for instance, CONFIG_SHELL is bash and it inherits a 2695 # broken ls alias from the environment. This has actually 2696 # happened. Such a system could not be considered "sane". 2697 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 2698 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2699printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2700as_fn_error $? "ls -t produces unexpected output. 2701Make sure there is not a broken ls alias in your environment. 2702See 'config.log' for more details" "$LINENO" 5; } 2703fi 2704 2705for am_try_res in $am_try_resolutions; do 2706 # Any one fine-grained sleep might happen to cross the boundary 2707 # between two values of a coarser actual resolution, but if we do 2708 # two fine-grained sleeps in a row, at least one of them will fall 2709 # entirely within a coarse interval. 2710 echo alpha > conftest.ts1 2711 sleep $am_try_res 2712 echo beta > conftest.ts2 2713 sleep $am_try_res 2714 echo gamma > conftest.ts3 2715 2716 # We assume that 'ls -t' will make use of high-resolution 2717 # timestamps if the operating system supports them at all. 2718 if (set X `ls -t conftest.ts?` && 2719 test "$2" = conftest.ts3 && 2720 test "$3" = conftest.ts2 && 2721 test "$4" = conftest.ts1); then 2722 # 2723 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 2724 # because we don't need to test make. 2725 make_ok=true 2726 if test $am_try_res != 1; then 2727 # But if we've succeeded so far with a subsecond resolution, we 2728 # have one more thing to check: make. It can happen that 2729 # everything else supports the subsecond mtimes, but make doesn't; 2730 # notably on macOS, which ships make 3.81 from 2006 (the last one 2731 # released under GPLv2). https://bugs.gnu.org/68808 2732 # 2733 # We test $MAKE if it is defined in the environment, else "make". 2734 # It might get overridden later, but our hope is that in practice 2735 # it does not matter: it is the system "make" which is (by far) 2736 # the most likely to be broken, whereas if the user overrides it, 2737 # probably they did so with a better, or at least not worse, make. 2738 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 2739 # 2740 # Create a Makefile (real tab character here): 2741 rm -f conftest.mk 2742 echo 'conftest.ts1: conftest.ts2' >conftest.mk 2743 echo ' touch conftest.ts2' >>conftest.mk 2744 # 2745 # Now, running 2746 # touch conftest.ts1; touch conftest.ts2; make 2747 # should touch ts1 because ts2 is newer. This could happen by luck, 2748 # but most often, it will fail if make's support is insufficient. So 2749 # test for several consecutive successes. 2750 # 2751 # (We reuse conftest.ts[12] because we still want to modify existing 2752 # files, not create new ones, per above.) 2753 n=0 2754 make=${MAKE-make} 2755 until test $n -eq 3; do 2756 echo one > conftest.ts1 2757 sleep $am_try_res 2758 echo two > conftest.ts2 # ts2 should now be newer than ts1 2759 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 2760 make_ok=false 2761 break # out of $n loop 2762 fi 2763 n=`expr $n + 1` 2764 done 2765 fi 2766 # 2767 if $make_ok; then 2768 # Everything we know to check worked out, so call this resolution good. 2769 am_cv_filesystem_timestamp_resolution=$am_try_res 2770 break # out of $am_try_res loop 2771 fi 2772 # Otherwise, we'll go on to check the next resolution. 2773 fi 2774done 2775rm -f conftest.ts? 2776# (end _am_filesystem_timestamp_resolution) 2777 ;; 2778esac 2779fi 2780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 2781printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 2782 2783# This check should not be cached, as it may vary across builds of 2784# different projects. 2785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2786printf %s "checking whether build environment is sane... " >&6; } 2787# Reject unsafe characters in $srcdir or the absolute working directory 2788# name. Accept space and tab only in the latter. 2789am_lf=' 2790' 2791case `pwd` in 2792 *[\\\"\#\$\&\'\`$am_lf]*) 2793 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2794esac 2795case $srcdir in 2796 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2797 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2798esac 2799 2800# Do 'set' in a subshell so we don't clobber the current shell's 2801# arguments. Must try -L first in case configure is actually a 2802# symlink; some systems play weird games with the mod time of symlinks 2803# (eg FreeBSD returns the mod time of the symlink's containing 2804# directory). 2805am_build_env_is_sane=no 2806am_has_slept=no 2807rm -f conftest.file 2808for am_try in 1 2; do 2809 echo "timestamp, slept: $am_has_slept" > conftest.file 2810 if ( 2811 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2812 if test "$*" = "X"; then 2813 # -L didn't work. 2814 set X `ls -t "$srcdir/configure" conftest.file` 2815 fi 2816 test "$2" = conftest.file 2817 ); then 2818 am_build_env_is_sane=yes 2819 break 2820 fi 2821 # Just in case. 2822 sleep "$am_cv_filesystem_timestamp_resolution" 2823 am_has_slept=yes 2824done 2825 2826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 2827printf "%s\n" "$am_build_env_is_sane" >&6; } 2828if test "$am_build_env_is_sane" = no; then 2829 as_fn_error $? "newly created file is older than distributed files! 2830Check your system clock" "$LINENO" 5 2831fi 2832 2833# If we didn't sleep, we still need to ensure time stamps of config.status and 2834# generated files are strictly newer. 2835am_sleep_pid= 2836if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 2837then : 2838 2839else case e in #( 2840 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 2841 am_sleep_pid=$! 2842 ;; 2843esac 2844fi 2845 2846rm -f conftest.file 2847 2848test "$program_prefix" != NONE && 2849 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2850# Use a double $ so make ignores it. 2851test "$program_suffix" != NONE && 2852 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2853# Double any \ or $. 2854# By default was 's,x,x', remove it if useless. 2855ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2856program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2857 2858 2859# Expand $ac_aux_dir to an absolute path. 2860am_aux_dir=`cd "$ac_aux_dir" && pwd` 2861 2862 2863 if test x"${MISSING+set}" != xset; then 2864 MISSING="\${SHELL} '$am_aux_dir/missing'" 2865fi 2866# Use eval to expand $SHELL 2867if eval "$MISSING --is-lightweight"; then 2868 am_missing_run="$MISSING " 2869else 2870 am_missing_run= 2871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2872printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2873fi 2874 2875if test x"${install_sh+set}" != xset; then 2876 case $am_aux_dir in 2877 *\ * | *\ *) 2878 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2879 *) 2880 install_sh="\${SHELL} $am_aux_dir/install-sh" 2881 esac 2882fi 2883 2884# Installed binaries are usually stripped using 'strip' when the user 2885# run "make install-strip". However 'strip' might not be the right 2886# tool to use in cross-compilation environments, therefore Automake 2887# will honor the 'STRIP' environment variable to overrule this program. 2888if test "$cross_compiling" != no; then 2889 if test -n "$ac_tool_prefix"; then 2890 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2891set dummy ${ac_tool_prefix}strip; ac_word=$2 2892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2893printf %s "checking for $ac_word... " >&6; } 2894if test ${ac_cv_prog_STRIP+y} 2895then : 2896 printf %s "(cached) " >&6 2897else case e in #( 2898 e) if test -n "$STRIP"; then 2899 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2900else 2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2902for as_dir in $PATH 2903do 2904 IFS=$as_save_IFS 2905 case $as_dir in #((( 2906 '') as_dir=./ ;; 2907 */) ;; 2908 *) as_dir=$as_dir/ ;; 2909 esac 2910 for ac_exec_ext in '' $ac_executable_extensions; do 2911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2912 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2914 break 2 2915 fi 2916done 2917 done 2918IFS=$as_save_IFS 2919 2920fi ;; 2921esac 2922fi 2923STRIP=$ac_cv_prog_STRIP 2924if test -n "$STRIP"; then 2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2926printf "%s\n" "$STRIP" >&6; } 2927else 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2929printf "%s\n" "no" >&6; } 2930fi 2931 2932 2933fi 2934if test -z "$ac_cv_prog_STRIP"; then 2935 ac_ct_STRIP=$STRIP 2936 # Extract the first word of "strip", so it can be a program name with args. 2937set dummy strip; ac_word=$2 2938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939printf %s "checking for $ac_word... " >&6; } 2940if test ${ac_cv_prog_ac_ct_STRIP+y} 2941then : 2942 printf %s "(cached) " >&6 2943else case e in #( 2944 e) if test -n "$ac_ct_STRIP"; then 2945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2946else 2947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948for as_dir in $PATH 2949do 2950 IFS=$as_save_IFS 2951 case $as_dir in #((( 2952 '') as_dir=./ ;; 2953 */) ;; 2954 *) as_dir=$as_dir/ ;; 2955 esac 2956 for ac_exec_ext in '' $ac_executable_extensions; do 2957 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2958 ac_cv_prog_ac_ct_STRIP="strip" 2959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2960 break 2 2961 fi 2962done 2963 done 2964IFS=$as_save_IFS 2965 2966fi ;; 2967esac 2968fi 2969ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2970if test -n "$ac_ct_STRIP"; then 2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2972printf "%s\n" "$ac_ct_STRIP" >&6; } 2973else 2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2975printf "%s\n" "no" >&6; } 2976fi 2977 2978 if test "x$ac_ct_STRIP" = x; then 2979 STRIP=":" 2980 else 2981 case $cross_compiling:$ac_tool_warned in 2982yes:) 2983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2984printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2985ac_tool_warned=yes ;; 2986esac 2987 STRIP=$ac_ct_STRIP 2988 fi 2989else 2990 STRIP="$ac_cv_prog_STRIP" 2991fi 2992 2993fi 2994INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2995 2996 2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2998printf %s "checking for a race-free mkdir -p... " >&6; } 2999if test -z "$MKDIR_P"; then 3000 if test ${ac_cv_path_mkdir+y} 3001then : 3002 printf %s "(cached) " >&6 3003else case e in #( 3004 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3006do 3007 IFS=$as_save_IFS 3008 case $as_dir in #((( 3009 '') as_dir=./ ;; 3010 */) ;; 3011 *) as_dir=$as_dir/ ;; 3012 esac 3013 for ac_prog in mkdir gmkdir; do 3014 for ac_exec_ext in '' $ac_executable_extensions; do 3015 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3016 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3017 'mkdir ('*'coreutils) '* | \ 3018 *'BusyBox '* | \ 3019 'mkdir (fileutils) '4.1*) 3020 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3021 break 3;; 3022 esac 3023 done 3024 done 3025 done 3026IFS=$as_save_IFS 3027 ;; 3028esac 3029fi 3030 3031 test -d ./--version && rmdir ./--version 3032 if test ${ac_cv_path_mkdir+y}; then 3033 MKDIR_P="$ac_cv_path_mkdir -p" 3034 else 3035 # As a last resort, use plain mkdir -p, 3036 # in the hope it doesn't have the bugs of ancient mkdir. 3037 MKDIR_P='mkdir -p' 3038 fi 3039fi 3040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3041printf "%s\n" "$MKDIR_P" >&6; } 3042 3043for ac_prog in gawk mawk nawk awk 3044do 3045 # Extract the first word of "$ac_prog", so it can be a program name with args. 3046set dummy $ac_prog; ac_word=$2 3047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3048printf %s "checking for $ac_word... " >&6; } 3049if test ${ac_cv_prog_AWK+y} 3050then : 3051 printf %s "(cached) " >&6 3052else case e in #( 3053 e) if test -n "$AWK"; then 3054 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3055else 3056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3057for as_dir in $PATH 3058do 3059 IFS=$as_save_IFS 3060 case $as_dir in #((( 3061 '') as_dir=./ ;; 3062 */) ;; 3063 *) as_dir=$as_dir/ ;; 3064 esac 3065 for ac_exec_ext in '' $ac_executable_extensions; do 3066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3067 ac_cv_prog_AWK="$ac_prog" 3068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3069 break 2 3070 fi 3071done 3072 done 3073IFS=$as_save_IFS 3074 3075fi ;; 3076esac 3077fi 3078AWK=$ac_cv_prog_AWK 3079if test -n "$AWK"; then 3080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3081printf "%s\n" "$AWK" >&6; } 3082else 3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3084printf "%s\n" "no" >&6; } 3085fi 3086 3087 3088 test -n "$AWK" && break 3089done 3090 3091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3092printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3093set x ${MAKE-make} 3094ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3095if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3096then : 3097 printf %s "(cached) " >&6 3098else case e in #( 3099 e) cat >conftest.make <<\_ACEOF 3100SHELL = /bin/sh 3101all: 3102 @echo '@@@%%%=$(MAKE)=@@@%%%' 3103_ACEOF 3104# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3105case `${MAKE-make} -f conftest.make 2>/dev/null` in 3106 *@@@%%%=?*=@@@%%%*) 3107 eval ac_cv_prog_make_${ac_make}_set=yes;; 3108 *) 3109 eval ac_cv_prog_make_${ac_make}_set=no;; 3110esac 3111rm -f conftest.make ;; 3112esac 3113fi 3114if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3116printf "%s\n" "yes" >&6; } 3117 SET_MAKE= 3118else 3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3120printf "%s\n" "no" >&6; } 3121 SET_MAKE="MAKE=${MAKE-make}" 3122fi 3123 3124rm -rf .tst 2>/dev/null 3125mkdir .tst 2>/dev/null 3126if test -d .tst; then 3127 am__leading_dot=. 3128else 3129 am__leading_dot=_ 3130fi 3131rmdir .tst 2>/dev/null 3132 3133AM_DEFAULT_VERBOSITY=1 3134# Check whether --enable-silent-rules was given. 3135if test ${enable_silent_rules+y} 3136then : 3137 enableval=$enable_silent_rules; 3138fi 3139 3140am_make=${MAKE-make} 3141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3142printf %s "checking whether $am_make supports nested variables... " >&6; } 3143if test ${am_cv_make_support_nested_variables+y} 3144then : 3145 printf %s "(cached) " >&6 3146else case e in #( 3147 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3148BAR0=false 3149BAR1=true 3150V=1 3151am__doit: 3152 @$(TRUE) 3153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3154 am_cv_make_support_nested_variables=yes 3155else 3156 am_cv_make_support_nested_variables=no 3157fi ;; 3158esac 3159fi 3160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3161printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3162AM_BACKSLASH='\' 3163 3164am__rm_f_notfound= 3165if (rm -f && rm -fr && rm -rf) 2>/dev/null 3166then : 3167 3168else case e in #( 3169 e) am__rm_f_notfound='""' ;; 3170esac 3171fi 3172 3173 3174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3175printf %s "checking xargs -n works... " >&6; } 3176if test ${am_cv_xargs_n_works+y} 3177then : 3178 printf %s "(cached) " >&6 3179else case e in #( 3180 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 31813" 3182then : 3183 am_cv_xargs_n_works=yes 3184else case e in #( 3185 e) am_cv_xargs_n_works=no ;; 3186esac 3187fi ;; 3188esac 3189fi 3190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3191printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3192if test "$am_cv_xargs_n_works" = yes 3193then : 3194 am__xargs_n='xargs -n' 3195else case e in #( 3196 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3197 ;; 3198esac 3199fi 3200 3201if test "`cd $srcdir && pwd`" != "`pwd`"; then 3202 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3203 # is not polluted with repeated "-I." 3204 am__isrc=' -I$(srcdir)' 3205 # test to see if srcdir already configured 3206 if test -f $srcdir/config.status; then 3207 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3208 fi 3209fi 3210 3211# test whether we have cygpath 3212if test -z "$CYGPATH_W"; then 3213 if (cygpath --version) >/dev/null 2>/dev/null; then 3214 CYGPATH_W='cygpath -w' 3215 else 3216 CYGPATH_W=echo 3217 fi 3218fi 3219 3220 3221# Define the identity of the package. 3222 PACKAGE='xprop' 3223 VERSION='1.2.8' 3224 3225 3226printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3227 3228 3229printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3230 3231# Some tools Automake needs. 3232 3233ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3234 3235 3236AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3237 3238 3239AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3240 3241 3242AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3243 3244 3245MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3246 3247# For better backward compatibility. To be removed once Automake 1.9.x 3248# dies out for good. For more background, see: 3249# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3250# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3251mkdir_p='$(MKDIR_P)' 3252 3253# We need awk for the "check" target (and possibly the TAP driver). The 3254# system "awk" is bad on some platforms. 3255# Always define AMTAR for backward compatibility. Yes, it's still used 3256# in the wild :-( We should find a proper way to deprecate it ... 3257AMTAR='$${TAR-tar}' 3258 3259 3260# We'll loop over all known methods to create a tar archive until one works. 3261_am_tools='gnutar pax cpio none' 3262 3263am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3264 3265 3266 3267 3268 3269# Variables for tags utilities; see am/tags.am 3270if test -z "$CTAGS"; then 3271 CTAGS=ctags 3272fi 3273 3274if test -z "$ETAGS"; then 3275 ETAGS=etags 3276fi 3277 3278if test -z "$CSCOPE"; then 3279 CSCOPE=cscope 3280fi 3281 3282 3283 3284 3285 3286 3287 3288 3289# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310DEPDIR="${am__leading_dot}deps" 3311 3312ac_config_commands="$ac_config_commands depfiles" 3313 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3315printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3316cat > confinc.mk << 'END' 3317am__doit: 3318 @echo this is the am__doit target >confinc.out 3319.PHONY: am__doit 3320END 3321am__include="#" 3322am__quote= 3323# BSD make does it like this. 3324echo '.include "confinc.mk" # ignored' > confmf.BSD 3325# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3326echo 'include confinc.mk # ignored' > confmf.GNU 3327_am_result=no 3328for s in GNU BSD; do 3329 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3330 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3331 ac_status=$? 3332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3333 (exit $ac_status); } 3334 case $?:`cat confinc.out 2>/dev/null` in #( 3335 '0:this is the am__doit target') : 3336 case $s in #( 3337 BSD) : 3338 am__include='.include' am__quote='"' ;; #( 3339 *) : 3340 am__include='include' am__quote='' ;; 3341esac ;; #( 3342 *) : 3343 ;; 3344esac 3345 if test "$am__include" != "#"; then 3346 _am_result="yes ($s style)" 3347 break 3348 fi 3349done 3350rm -f confinc.* confmf.* 3351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3352printf "%s\n" "${_am_result}" >&6; } 3353 3354# Check whether --enable-dependency-tracking was given. 3355if test ${enable_dependency_tracking+y} 3356then : 3357 enableval=$enable_dependency_tracking; 3358fi 3359 3360if test "x$enable_dependency_tracking" != xno; then 3361 am_depcomp="$ac_aux_dir/depcomp" 3362 AMDEPBACKSLASH='\' 3363 am__nodep='_no' 3364fi 3365 if test "x$enable_dependency_tracking" != xno; then 3366 AMDEP_TRUE= 3367 AMDEP_FALSE='#' 3368else 3369 AMDEP_TRUE='#' 3370 AMDEP_FALSE= 3371fi 3372 3373 3374ac_ext=c 3375ac_cpp='$CPP $CPPFLAGS' 3376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3378ac_compiler_gnu=$ac_cv_c_compiler_gnu 3379if test -n "$ac_tool_prefix"; then 3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3381set dummy ${ac_tool_prefix}gcc; ac_word=$2 3382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3383printf %s "checking for $ac_word... " >&6; } 3384if test ${ac_cv_prog_CC+y} 3385then : 3386 printf %s "(cached) " >&6 3387else case e in #( 3388 e) if test -n "$CC"; then 3389 ac_cv_prog_CC="$CC" # Let the user override the test. 3390else 3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3392for as_dir in $PATH 3393do 3394 IFS=$as_save_IFS 3395 case $as_dir in #((( 3396 '') as_dir=./ ;; 3397 */) ;; 3398 *) as_dir=$as_dir/ ;; 3399 esac 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3402 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3404 break 2 3405 fi 3406done 3407 done 3408IFS=$as_save_IFS 3409 3410fi ;; 3411esac 3412fi 3413CC=$ac_cv_prog_CC 3414if test -n "$CC"; then 3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3416printf "%s\n" "$CC" >&6; } 3417else 3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3419printf "%s\n" "no" >&6; } 3420fi 3421 3422 3423fi 3424if test -z "$ac_cv_prog_CC"; then 3425 ac_ct_CC=$CC 3426 # Extract the first word of "gcc", so it can be a program name with args. 3427set dummy gcc; ac_word=$2 3428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3429printf %s "checking for $ac_word... " >&6; } 3430if test ${ac_cv_prog_ac_ct_CC+y} 3431then : 3432 printf %s "(cached) " >&6 3433else case e in #( 3434 e) if test -n "$ac_ct_CC"; then 3435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3436else 3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 case $as_dir in #((( 3442 '') as_dir=./ ;; 3443 */) ;; 3444 *) as_dir=$as_dir/ ;; 3445 esac 3446 for ac_exec_ext in '' $ac_executable_extensions; do 3447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3448 ac_cv_prog_ac_ct_CC="gcc" 3449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3450 break 2 3451 fi 3452done 3453 done 3454IFS=$as_save_IFS 3455 3456fi ;; 3457esac 3458fi 3459ac_ct_CC=$ac_cv_prog_ac_ct_CC 3460if test -n "$ac_ct_CC"; then 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3462printf "%s\n" "$ac_ct_CC" >&6; } 3463else 3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3465printf "%s\n" "no" >&6; } 3466fi 3467 3468 if test "x$ac_ct_CC" = x; then 3469 CC="" 3470 else 3471 case $cross_compiling:$ac_tool_warned in 3472yes:) 3473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3474printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3475ac_tool_warned=yes ;; 3476esac 3477 CC=$ac_ct_CC 3478 fi 3479else 3480 CC="$ac_cv_prog_CC" 3481fi 3482 3483if test -z "$CC"; then 3484 if test -n "$ac_tool_prefix"; then 3485 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3486set dummy ${ac_tool_prefix}cc; ac_word=$2 3487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3488printf %s "checking for $ac_word... " >&6; } 3489if test ${ac_cv_prog_CC+y} 3490then : 3491 printf %s "(cached) " >&6 3492else case e in #( 3493 e) if test -n "$CC"; then 3494 ac_cv_prog_CC="$CC" # Let the user override the test. 3495else 3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3497for as_dir in $PATH 3498do 3499 IFS=$as_save_IFS 3500 case $as_dir in #((( 3501 '') as_dir=./ ;; 3502 */) ;; 3503 *) as_dir=$as_dir/ ;; 3504 esac 3505 for ac_exec_ext in '' $ac_executable_extensions; do 3506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3507 ac_cv_prog_CC="${ac_tool_prefix}cc" 3508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3509 break 2 3510 fi 3511done 3512 done 3513IFS=$as_save_IFS 3514 3515fi ;; 3516esac 3517fi 3518CC=$ac_cv_prog_CC 3519if test -n "$CC"; then 3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3521printf "%s\n" "$CC" >&6; } 3522else 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3524printf "%s\n" "no" >&6; } 3525fi 3526 3527 3528 fi 3529fi 3530if test -z "$CC"; then 3531 # Extract the first word of "cc", so it can be a program name with args. 3532set dummy cc; ac_word=$2 3533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3534printf %s "checking for $ac_word... " >&6; } 3535if test ${ac_cv_prog_CC+y} 3536then : 3537 printf %s "(cached) " >&6 3538else case e in #( 3539 e) if test -n "$CC"; then 3540 ac_cv_prog_CC="$CC" # Let the user override the test. 3541else 3542 ac_prog_rejected=no 3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3544for as_dir in $PATH 3545do 3546 IFS=$as_save_IFS 3547 case $as_dir in #((( 3548 '') as_dir=./ ;; 3549 */) ;; 3550 *) as_dir=$as_dir/ ;; 3551 esac 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3554 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3555 ac_prog_rejected=yes 3556 continue 3557 fi 3558 ac_cv_prog_CC="cc" 3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3560 break 2 3561 fi 3562done 3563 done 3564IFS=$as_save_IFS 3565 3566if test $ac_prog_rejected = yes; then 3567 # We found a bogon in the path, so make sure we never use it. 3568 set dummy $ac_cv_prog_CC 3569 shift 3570 if test $# != 0; then 3571 # We chose a different compiler from the bogus one. 3572 # However, it has the same basename, so the bogon will be chosen 3573 # first if we set CC to just the basename; use the full file name. 3574 shift 3575 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3576 fi 3577fi 3578fi ;; 3579esac 3580fi 3581CC=$ac_cv_prog_CC 3582if test -n "$CC"; then 3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3584printf "%s\n" "$CC" >&6; } 3585else 3586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587printf "%s\n" "no" >&6; } 3588fi 3589 3590 3591fi 3592if test -z "$CC"; then 3593 if test -n "$ac_tool_prefix"; then 3594 for ac_prog in cl.exe 3595 do 3596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3597set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3599printf %s "checking for $ac_word... " >&6; } 3600if test ${ac_cv_prog_CC+y} 3601then : 3602 printf %s "(cached) " >&6 3603else case e in #( 3604 e) if test -n "$CC"; then 3605 ac_cv_prog_CC="$CC" # Let the user override the test. 3606else 3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3608for as_dir in $PATH 3609do 3610 IFS=$as_save_IFS 3611 case $as_dir in #((( 3612 '') as_dir=./ ;; 3613 */) ;; 3614 *) as_dir=$as_dir/ ;; 3615 esac 3616 for ac_exec_ext in '' $ac_executable_extensions; do 3617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3620 break 2 3621 fi 3622done 3623 done 3624IFS=$as_save_IFS 3625 3626fi ;; 3627esac 3628fi 3629CC=$ac_cv_prog_CC 3630if test -n "$CC"; then 3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3632printf "%s\n" "$CC" >&6; } 3633else 3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3635printf "%s\n" "no" >&6; } 3636fi 3637 3638 3639 test -n "$CC" && break 3640 done 3641fi 3642if test -z "$CC"; then 3643 ac_ct_CC=$CC 3644 for ac_prog in cl.exe 3645do 3646 # Extract the first word of "$ac_prog", so it can be a program name with args. 3647set dummy $ac_prog; ac_word=$2 3648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3649printf %s "checking for $ac_word... " >&6; } 3650if test ${ac_cv_prog_ac_ct_CC+y} 3651then : 3652 printf %s "(cached) " >&6 3653else case e in #( 3654 e) if test -n "$ac_ct_CC"; then 3655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3656else 3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3658for as_dir in $PATH 3659do 3660 IFS=$as_save_IFS 3661 case $as_dir in #((( 3662 '') as_dir=./ ;; 3663 */) ;; 3664 *) as_dir=$as_dir/ ;; 3665 esac 3666 for ac_exec_ext in '' $ac_executable_extensions; do 3667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3668 ac_cv_prog_ac_ct_CC="$ac_prog" 3669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3670 break 2 3671 fi 3672done 3673 done 3674IFS=$as_save_IFS 3675 3676fi ;; 3677esac 3678fi 3679ac_ct_CC=$ac_cv_prog_ac_ct_CC 3680if test -n "$ac_ct_CC"; then 3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3682printf "%s\n" "$ac_ct_CC" >&6; } 3683else 3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3685printf "%s\n" "no" >&6; } 3686fi 3687 3688 3689 test -n "$ac_ct_CC" && break 3690done 3691 3692 if test "x$ac_ct_CC" = x; then 3693 CC="" 3694 else 3695 case $cross_compiling:$ac_tool_warned in 3696yes:) 3697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3698printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3699ac_tool_warned=yes ;; 3700esac 3701 CC=$ac_ct_CC 3702 fi 3703fi 3704 3705fi 3706if test -z "$CC"; then 3707 if test -n "$ac_tool_prefix"; then 3708 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3709set dummy ${ac_tool_prefix}clang; ac_word=$2 3710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3711printf %s "checking for $ac_word... " >&6; } 3712if test ${ac_cv_prog_CC+y} 3713then : 3714 printf %s "(cached) " >&6 3715else case e in #( 3716 e) if test -n "$CC"; then 3717 ac_cv_prog_CC="$CC" # Let the user override the test. 3718else 3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3720for as_dir in $PATH 3721do 3722 IFS=$as_save_IFS 3723 case $as_dir in #((( 3724 '') as_dir=./ ;; 3725 */) ;; 3726 *) as_dir=$as_dir/ ;; 3727 esac 3728 for ac_exec_ext in '' $ac_executable_extensions; do 3729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3730 ac_cv_prog_CC="${ac_tool_prefix}clang" 3731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3732 break 2 3733 fi 3734done 3735 done 3736IFS=$as_save_IFS 3737 3738fi ;; 3739esac 3740fi 3741CC=$ac_cv_prog_CC 3742if test -n "$CC"; then 3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3744printf "%s\n" "$CC" >&6; } 3745else 3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3747printf "%s\n" "no" >&6; } 3748fi 3749 3750 3751fi 3752if test -z "$ac_cv_prog_CC"; then 3753 ac_ct_CC=$CC 3754 # Extract the first word of "clang", so it can be a program name with args. 3755set dummy clang; ac_word=$2 3756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3757printf %s "checking for $ac_word... " >&6; } 3758if test ${ac_cv_prog_ac_ct_CC+y} 3759then : 3760 printf %s "(cached) " >&6 3761else case e in #( 3762 e) if test -n "$ac_ct_CC"; then 3763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3764else 3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3766for as_dir in $PATH 3767do 3768 IFS=$as_save_IFS 3769 case $as_dir in #((( 3770 '') as_dir=./ ;; 3771 */) ;; 3772 *) as_dir=$as_dir/ ;; 3773 esac 3774 for ac_exec_ext in '' $ac_executable_extensions; do 3775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3776 ac_cv_prog_ac_ct_CC="clang" 3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3778 break 2 3779 fi 3780done 3781 done 3782IFS=$as_save_IFS 3783 3784fi ;; 3785esac 3786fi 3787ac_ct_CC=$ac_cv_prog_ac_ct_CC 3788if test -n "$ac_ct_CC"; then 3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3790printf "%s\n" "$ac_ct_CC" >&6; } 3791else 3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3793printf "%s\n" "no" >&6; } 3794fi 3795 3796 if test "x$ac_ct_CC" = x; then 3797 CC="" 3798 else 3799 case $cross_compiling:$ac_tool_warned in 3800yes:) 3801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3802printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3803ac_tool_warned=yes ;; 3804esac 3805 CC=$ac_ct_CC 3806 fi 3807else 3808 CC="$ac_cv_prog_CC" 3809fi 3810 3811fi 3812 3813 3814test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3815printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3816as_fn_error $? "no acceptable C compiler found in \$PATH 3817See 'config.log' for more details" "$LINENO" 5; } 3818 3819# Provide some information about the compiler. 3820printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3821set X $ac_compile 3822ac_compiler=$2 3823for ac_option in --version -v -V -qversion -version; do 3824 { { ac_try="$ac_compiler $ac_option >&5" 3825case "(($ac_try" in 3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3827 *) ac_try_echo=$ac_try;; 3828esac 3829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3830printf "%s\n" "$ac_try_echo"; } >&5 3831 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3832 ac_status=$? 3833 if test -s conftest.err; then 3834 sed '10a\ 3835... rest of stderr output deleted ... 3836 10q' conftest.err >conftest.er1 3837 cat conftest.er1 >&5 3838 fi 3839 rm -f conftest.er1 conftest.err 3840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3841 test $ac_status = 0; } 3842done 3843 3844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846 3847int 3848main (void) 3849{ 3850 3851 ; 3852 return 0; 3853} 3854_ACEOF 3855ac_clean_files_save=$ac_clean_files 3856ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3857# Try to create an executable without -o first, disregard a.out. 3858# It will help us diagnose broken compilers, and finding out an intuition 3859# of exeext. 3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3861printf %s "checking whether the C compiler works... " >&6; } 3862ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3863 3864# The possible output files: 3865ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3866 3867ac_rmfiles= 3868for ac_file in $ac_files 3869do 3870 case $ac_file in 3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3872 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3873 esac 3874done 3875rm -f $ac_rmfiles 3876 3877if { { ac_try="$ac_link_default" 3878case "(($ac_try" in 3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3880 *) ac_try_echo=$ac_try;; 3881esac 3882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3883printf "%s\n" "$ac_try_echo"; } >&5 3884 (eval "$ac_link_default") 2>&5 3885 ac_status=$? 3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3887 test $ac_status = 0; } 3888then : 3889 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 3890# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 3891# in a Makefile. We should not override ac_cv_exeext if it was cached, 3892# so that the user can short-circuit this test for compilers unknown to 3893# Autoconf. 3894for ac_file in $ac_files '' 3895do 3896 test -f "$ac_file" || continue 3897 case $ac_file in 3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3899 ;; 3900 [ab].out ) 3901 # We found the default executable, but exeext='' is most 3902 # certainly right. 3903 break;; 3904 *.* ) 3905 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3906 then :; else 3907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3908 fi 3909 # We set ac_cv_exeext here because the later test for it is not 3910 # safe: cross compilers may not add the suffix if given an '-o' 3911 # argument, so we may need to know it at that point already. 3912 # Even if this section looks crufty: it has the advantage of 3913 # actually working. 3914 break;; 3915 * ) 3916 break;; 3917 esac 3918done 3919test "$ac_cv_exeext" = no && ac_cv_exeext= 3920 3921else case e in #( 3922 e) ac_file='' ;; 3923esac 3924fi 3925if test -z "$ac_file" 3926then : 3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3928printf "%s\n" "no" >&6; } 3929printf "%s\n" "$as_me: failed program was:" >&5 3930sed 's/^/| /' conftest.$ac_ext >&5 3931 3932{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3933printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3934as_fn_error 77 "C compiler cannot create executables 3935See 'config.log' for more details" "$LINENO" 5; } 3936else case e in #( 3937 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3938printf "%s\n" "yes" >&6; } ;; 3939esac 3940fi 3941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3942printf %s "checking for C compiler default output file name... " >&6; } 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3944printf "%s\n" "$ac_file" >&6; } 3945ac_exeext=$ac_cv_exeext 3946 3947rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3948ac_clean_files=$ac_clean_files_save 3949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3950printf %s "checking for suffix of executables... " >&6; } 3951if { { ac_try="$ac_link" 3952case "(($ac_try" in 3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3954 *) ac_try_echo=$ac_try;; 3955esac 3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3957printf "%s\n" "$ac_try_echo"; } >&5 3958 (eval "$ac_link") 2>&5 3959 ac_status=$? 3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3961 test $ac_status = 0; } 3962then : 3963 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 3964# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 3965# work properly (i.e., refer to 'conftest.exe'), while it won't with 3966# 'rm'. 3967for ac_file in conftest.exe conftest conftest.*; do 3968 test -f "$ac_file" || continue 3969 case $ac_file in 3970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3972 break;; 3973 * ) break;; 3974 esac 3975done 3976else case e in #( 3977 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3978printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3979as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3980See 'config.log' for more details" "$LINENO" 5; } ;; 3981esac 3982fi 3983rm -f conftest conftest$ac_cv_exeext 3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3985printf "%s\n" "$ac_cv_exeext" >&6; } 3986 3987rm -f conftest.$ac_ext 3988EXEEXT=$ac_cv_exeext 3989ac_exeext=$EXEEXT 3990cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3991/* end confdefs.h. */ 3992#include <stdio.h> 3993int 3994main (void) 3995{ 3996FILE *f = fopen ("conftest.out", "w"); 3997 if (!f) 3998 return 1; 3999 return ferror (f) || fclose (f) != 0; 4000 4001 ; 4002 return 0; 4003} 4004_ACEOF 4005ac_clean_files="$ac_clean_files conftest.out" 4006# Check that the compiler produces executables we can run. If not, either 4007# the compiler is broken, or we cross compile. 4008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4009printf %s "checking whether we are cross compiling... " >&6; } 4010if test "$cross_compiling" != yes; then 4011 { { ac_try="$ac_link" 4012case "(($ac_try" in 4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4014 *) ac_try_echo=$ac_try;; 4015esac 4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4017printf "%s\n" "$ac_try_echo"; } >&5 4018 (eval "$ac_link") 2>&5 4019 ac_status=$? 4020 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4021 test $ac_status = 0; } 4022 if { ac_try='./conftest$ac_cv_exeext' 4023 { { case "(($ac_try" in 4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4025 *) ac_try_echo=$ac_try;; 4026esac 4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4028printf "%s\n" "$ac_try_echo"; } >&5 4029 (eval "$ac_try") 2>&5 4030 ac_status=$? 4031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4032 test $ac_status = 0; }; }; then 4033 cross_compiling=no 4034 else 4035 if test "$cross_compiling" = maybe; then 4036 cross_compiling=yes 4037 else 4038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4039printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4040as_fn_error 77 "cannot run C compiled programs. 4041If you meant to cross compile, use '--host'. 4042See 'config.log' for more details" "$LINENO" 5; } 4043 fi 4044 fi 4045fi 4046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4047printf "%s\n" "$cross_compiling" >&6; } 4048 4049rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4050 conftest.o conftest.obj conftest.out 4051ac_clean_files=$ac_clean_files_save 4052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4053printf %s "checking for suffix of object files... " >&6; } 4054if test ${ac_cv_objext+y} 4055then : 4056 printf %s "(cached) " >&6 4057else case e in #( 4058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4059/* end confdefs.h. */ 4060 4061int 4062main (void) 4063{ 4064 4065 ; 4066 return 0; 4067} 4068_ACEOF 4069rm -f conftest.o conftest.obj 4070if { { ac_try="$ac_compile" 4071case "(($ac_try" in 4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4073 *) ac_try_echo=$ac_try;; 4074esac 4075eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4076printf "%s\n" "$ac_try_echo"; } >&5 4077 (eval "$ac_compile") 2>&5 4078 ac_status=$? 4079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4080 test $ac_status = 0; } 4081then : 4082 for ac_file in conftest.o conftest.obj conftest.*; do 4083 test -f "$ac_file" || continue; 4084 case $ac_file in 4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4086 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4087 break;; 4088 esac 4089done 4090else case e in #( 4091 e) printf "%s\n" "$as_me: failed program was:" >&5 4092sed 's/^/| /' conftest.$ac_ext >&5 4093 4094{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4095printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4096as_fn_error $? "cannot compute suffix of object files: cannot compile 4097See 'config.log' for more details" "$LINENO" 5; } ;; 4098esac 4099fi 4100rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4101esac 4102fi 4103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4104printf "%s\n" "$ac_cv_objext" >&6; } 4105OBJEXT=$ac_cv_objext 4106ac_objext=$OBJEXT 4107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4108printf %s "checking whether the compiler supports GNU C... " >&6; } 4109if test ${ac_cv_c_compiler_gnu+y} 4110then : 4111 printf %s "(cached) " >&6 4112else case e in #( 4113 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4114/* end confdefs.h. */ 4115 4116int 4117main (void) 4118{ 4119#ifndef __GNUC__ 4120 choke me 4121#endif 4122 4123 ; 4124 return 0; 4125} 4126_ACEOF 4127if ac_fn_c_try_compile "$LINENO" 4128then : 4129 ac_compiler_gnu=yes 4130else case e in #( 4131 e) ac_compiler_gnu=no ;; 4132esac 4133fi 4134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4135ac_cv_c_compiler_gnu=$ac_compiler_gnu 4136 ;; 4137esac 4138fi 4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4140printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4141ac_compiler_gnu=$ac_cv_c_compiler_gnu 4142 4143if test $ac_compiler_gnu = yes; then 4144 GCC=yes 4145else 4146 GCC= 4147fi 4148ac_test_CFLAGS=${CFLAGS+y} 4149ac_save_CFLAGS=$CFLAGS 4150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4151printf %s "checking whether $CC accepts -g... " >&6; } 4152if test ${ac_cv_prog_cc_g+y} 4153then : 4154 printf %s "(cached) " >&6 4155else case e in #( 4156 e) ac_save_c_werror_flag=$ac_c_werror_flag 4157 ac_c_werror_flag=yes 4158 ac_cv_prog_cc_g=no 4159 CFLAGS="-g" 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162 4163int 4164main (void) 4165{ 4166 4167 ; 4168 return 0; 4169} 4170_ACEOF 4171if ac_fn_c_try_compile "$LINENO" 4172then : 4173 ac_cv_prog_cc_g=yes 4174else case e in #( 4175 e) CFLAGS="" 4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4177/* end confdefs.h. */ 4178 4179int 4180main (void) 4181{ 4182 4183 ; 4184 return 0; 4185} 4186_ACEOF 4187if ac_fn_c_try_compile "$LINENO" 4188then : 4189 4190else case e in #( 4191 e) ac_c_werror_flag=$ac_save_c_werror_flag 4192 CFLAGS="-g" 4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4194/* end confdefs.h. */ 4195 4196int 4197main (void) 4198{ 4199 4200 ; 4201 return 0; 4202} 4203_ACEOF 4204if ac_fn_c_try_compile "$LINENO" 4205then : 4206 ac_cv_prog_cc_g=yes 4207fi 4208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4209esac 4210fi 4211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4212esac 4213fi 4214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4215 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4216esac 4217fi 4218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4219printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4220if test $ac_test_CFLAGS; then 4221 CFLAGS=$ac_save_CFLAGS 4222elif test $ac_cv_prog_cc_g = yes; then 4223 if test "$GCC" = yes; then 4224 CFLAGS="-g -O2" 4225 else 4226 CFLAGS="-g" 4227 fi 4228else 4229 if test "$GCC" = yes; then 4230 CFLAGS="-O2" 4231 else 4232 CFLAGS= 4233 fi 4234fi 4235ac_prog_cc_stdc=no 4236if test x$ac_prog_cc_stdc = xno 4237then : 4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4239printf %s "checking for $CC option to enable C11 features... " >&6; } 4240if test ${ac_cv_prog_cc_c11+y} 4241then : 4242 printf %s "(cached) " >&6 4243else case e in #( 4244 e) ac_cv_prog_cc_c11=no 4245ac_save_CC=$CC 4246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248$ac_c_conftest_c11_program 4249_ACEOF 4250for ac_arg in '' -std=gnu11 4251do 4252 CC="$ac_save_CC $ac_arg" 4253 if ac_fn_c_try_compile "$LINENO" 4254then : 4255 ac_cv_prog_cc_c11=$ac_arg 4256fi 4257rm -f core conftest.err conftest.$ac_objext conftest.beam 4258 test "x$ac_cv_prog_cc_c11" != "xno" && break 4259done 4260rm -f conftest.$ac_ext 4261CC=$ac_save_CC ;; 4262esac 4263fi 4264 4265if test "x$ac_cv_prog_cc_c11" = xno 4266then : 4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4268printf "%s\n" "unsupported" >&6; } 4269else case e in #( 4270 e) if test "x$ac_cv_prog_cc_c11" = x 4271then : 4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4273printf "%s\n" "none needed" >&6; } 4274else case e in #( 4275 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4276printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4277 CC="$CC $ac_cv_prog_cc_c11" ;; 4278esac 4279fi 4280 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4281 ac_prog_cc_stdc=c11 ;; 4282esac 4283fi 4284fi 4285if test x$ac_prog_cc_stdc = xno 4286then : 4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4288printf %s "checking for $CC option to enable C99 features... " >&6; } 4289if test ${ac_cv_prog_cc_c99+y} 4290then : 4291 printf %s "(cached) " >&6 4292else case e in #( 4293 e) ac_cv_prog_cc_c99=no 4294ac_save_CC=$CC 4295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4296/* end confdefs.h. */ 4297$ac_c_conftest_c99_program 4298_ACEOF 4299for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4300do 4301 CC="$ac_save_CC $ac_arg" 4302 if ac_fn_c_try_compile "$LINENO" 4303then : 4304 ac_cv_prog_cc_c99=$ac_arg 4305fi 4306rm -f core conftest.err conftest.$ac_objext conftest.beam 4307 test "x$ac_cv_prog_cc_c99" != "xno" && break 4308done 4309rm -f conftest.$ac_ext 4310CC=$ac_save_CC ;; 4311esac 4312fi 4313 4314if test "x$ac_cv_prog_cc_c99" = xno 4315then : 4316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4317printf "%s\n" "unsupported" >&6; } 4318else case e in #( 4319 e) if test "x$ac_cv_prog_cc_c99" = x 4320then : 4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4322printf "%s\n" "none needed" >&6; } 4323else case e in #( 4324 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4325printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4326 CC="$CC $ac_cv_prog_cc_c99" ;; 4327esac 4328fi 4329 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4330 ac_prog_cc_stdc=c99 ;; 4331esac 4332fi 4333fi 4334if test x$ac_prog_cc_stdc = xno 4335then : 4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4337printf %s "checking for $CC option to enable C89 features... " >&6; } 4338if test ${ac_cv_prog_cc_c89+y} 4339then : 4340 printf %s "(cached) " >&6 4341else case e in #( 4342 e) ac_cv_prog_cc_c89=no 4343ac_save_CC=$CC 4344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4345/* end confdefs.h. */ 4346$ac_c_conftest_c89_program 4347_ACEOF 4348for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4349do 4350 CC="$ac_save_CC $ac_arg" 4351 if ac_fn_c_try_compile "$LINENO" 4352then : 4353 ac_cv_prog_cc_c89=$ac_arg 4354fi 4355rm -f core conftest.err conftest.$ac_objext conftest.beam 4356 test "x$ac_cv_prog_cc_c89" != "xno" && break 4357done 4358rm -f conftest.$ac_ext 4359CC=$ac_save_CC ;; 4360esac 4361fi 4362 4363if test "x$ac_cv_prog_cc_c89" = xno 4364then : 4365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4366printf "%s\n" "unsupported" >&6; } 4367else case e in #( 4368 e) if test "x$ac_cv_prog_cc_c89" = x 4369then : 4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4371printf "%s\n" "none needed" >&6; } 4372else case e in #( 4373 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4374printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4375 CC="$CC $ac_cv_prog_cc_c89" ;; 4376esac 4377fi 4378 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4379 ac_prog_cc_stdc=c89 ;; 4380esac 4381fi 4382fi 4383 4384ac_ext=c 4385ac_cpp='$CPP $CPPFLAGS' 4386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4388ac_compiler_gnu=$ac_cv_c_compiler_gnu 4389 4390 4391 ac_ext=c 4392ac_cpp='$CPP $CPPFLAGS' 4393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4395ac_compiler_gnu=$ac_cv_c_compiler_gnu 4396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4397printf %s "checking whether $CC understands -c and -o together... " >&6; } 4398if test ${am_cv_prog_cc_c_o+y} 4399then : 4400 printf %s "(cached) " >&6 4401else case e in #( 4402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4403/* end confdefs.h. */ 4404 4405int 4406main (void) 4407{ 4408 4409 ; 4410 return 0; 4411} 4412_ACEOF 4413 # Make sure it works both with $CC and with simple cc. 4414 # Following AC_PROG_CC_C_O, we do the test twice because some 4415 # compilers refuse to overwrite an existing .o file with -o, 4416 # though they will create one. 4417 am_cv_prog_cc_c_o=yes 4418 for am_i in 1 2; do 4419 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4420 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4421 ac_status=$? 4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4423 (exit $ac_status); } \ 4424 && test -f conftest2.$ac_objext; then 4425 : OK 4426 else 4427 am_cv_prog_cc_c_o=no 4428 break 4429 fi 4430 done 4431 rm -f core conftest* 4432 unset am_i ;; 4433esac 4434fi 4435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4436printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4437if test "$am_cv_prog_cc_c_o" != yes; then 4438 # Losing compiler, so override with the script. 4439 # FIXME: It is wrong to rewrite CC. 4440 # But if we don't then we get into trouble of one sort or another. 4441 # A longer-term fix would be to have automake use am__CC in this case, 4442 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4443 CC="$am_aux_dir/compile $CC" 4444fi 4445ac_ext=c 4446ac_cpp='$CPP $CPPFLAGS' 4447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4449ac_compiler_gnu=$ac_cv_c_compiler_gnu 4450 4451 4452depcc="$CC" am_compiler_list= 4453 4454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4455printf %s "checking dependency style of $depcc... " >&6; } 4456if test ${am_cv_CC_dependencies_compiler_type+y} 4457then : 4458 printf %s "(cached) " >&6 4459else case e in #( 4460 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4461 # We make a subdir and do the tests there. Otherwise we can end up 4462 # making bogus files that we don't know about and never remove. For 4463 # instance it was reported that on HP-UX the gcc test will end up 4464 # making a dummy file named 'D' -- because '-MD' means "put the output 4465 # in D". 4466 rm -rf conftest.dir 4467 mkdir conftest.dir 4468 # Copy depcomp to subdir because otherwise we won't find it if we're 4469 # using a relative directory. 4470 cp "$am_depcomp" conftest.dir 4471 cd conftest.dir 4472 # We will build objects and dependencies in a subdirectory because 4473 # it helps to detect inapplicable dependency modes. For instance 4474 # both Tru64's cc and ICC support -MD to output dependencies as a 4475 # side effect of compilation, but ICC will put the dependencies in 4476 # the current directory while Tru64 will put them in the object 4477 # directory. 4478 mkdir sub 4479 4480 am_cv_CC_dependencies_compiler_type=none 4481 if test "$am_compiler_list" = ""; then 4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4483 fi 4484 am__universal=false 4485 case " $depcc " in #( 4486 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4487 esac 4488 4489 for depmode in $am_compiler_list; do 4490 # Setup a source with many dependencies, because some compilers 4491 # like to wrap large dependency lists on column 80 (with \), and 4492 # we should not choose a depcomp mode which is confused by this. 4493 # 4494 # We need to recreate these files for each test, as the compiler may 4495 # overwrite some of them when testing with obscure command lines. 4496 # This happens at least with the AIX C compiler. 4497 : > sub/conftest.c 4498 for i in 1 2 3 4 5 6; do 4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4501 # Solaris 10 /bin/sh. 4502 echo '/* dummy */' > sub/conftst$i.h 4503 done 4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4505 4506 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4507 # mode. It turns out that the SunPro C++ compiler does not properly 4508 # handle '-M -o', and we need to detect this. Also, some Intel 4509 # versions had trouble with output in subdirs. 4510 am__obj=sub/conftest.${OBJEXT-o} 4511 am__minus_obj="-o $am__obj" 4512 case $depmode in 4513 gcc) 4514 # This depmode causes a compiler race in universal mode. 4515 test "$am__universal" = false || continue 4516 ;; 4517 nosideeffect) 4518 # After this tag, mechanisms are not by side-effect, so they'll 4519 # only be used when explicitly requested. 4520 if test "x$enable_dependency_tracking" = xyes; then 4521 continue 4522 else 4523 break 4524 fi 4525 ;; 4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4527 # This compiler won't grok '-c -o', but also, the minuso test has 4528 # not run yet. These depmodes are late enough in the game, and 4529 # so weak that their functioning should not be impacted. 4530 am__obj=conftest.${OBJEXT-o} 4531 am__minus_obj= 4532 ;; 4533 none) break ;; 4534 esac 4535 if depmode=$depmode \ 4536 source=sub/conftest.c object=$am__obj \ 4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4539 >/dev/null 2>conftest.err && 4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4544 # icc doesn't choke on unknown options, it will just issue warnings 4545 # or remarks (even with -Werror). So we grep stderr for any message 4546 # that says an option was ignored or not supported. 4547 # When given -MP, icc 7.0 and 7.1 complain thus: 4548 # icc: Command line warning: ignoring option '-M'; no argument required 4549 # The diagnosis changed in icc 8.0: 4550 # icc: Command line remark: option '-MP' not supported 4551 if (grep 'ignoring option' conftest.err || 4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4553 am_cv_CC_dependencies_compiler_type=$depmode 4554 break 4555 fi 4556 fi 4557 done 4558 4559 cd .. 4560 rm -rf conftest.dir 4561else 4562 am_cv_CC_dependencies_compiler_type=none 4563fi 4564 ;; 4565esac 4566fi 4567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4568printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4569CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4570 4571 if 4572 test "x$enable_dependency_tracking" != xno \ 4573 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4574 am__fastdepCC_TRUE= 4575 am__fastdepCC_FALSE='#' 4576else 4577 am__fastdepCC_TRUE='#' 4578 am__fastdepCC_FALSE= 4579fi 4580 4581 4582 4583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4584printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4585if test ${ac_cv_c_undeclared_builtin_options+y} 4586then : 4587 printf %s "(cached) " >&6 4588else case e in #( 4589 e) ac_save_CFLAGS=$CFLAGS 4590 ac_cv_c_undeclared_builtin_options='cannot detect' 4591 for ac_arg in '' -fno-builtin; do 4592 CFLAGS="$ac_save_CFLAGS $ac_arg" 4593 # This test program should *not* compile successfully. 4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4595/* end confdefs.h. */ 4596 4597int 4598main (void) 4599{ 4600(void) strchr; 4601 ; 4602 return 0; 4603} 4604_ACEOF 4605if ac_fn_c_try_compile "$LINENO" 4606then : 4607 4608else case e in #( 4609 e) # This test program should compile successfully. 4610 # No library function is consistently available on 4611 # freestanding implementations, so test against a dummy 4612 # declaration. Include always-available headers on the 4613 # off chance that they somehow elicit warnings. 4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4615/* end confdefs.h. */ 4616#include <float.h> 4617#include <limits.h> 4618#include <stdarg.h> 4619#include <stddef.h> 4620extern void ac_decl (int, char *); 4621 4622int 4623main (void) 4624{ 4625(void) ac_decl (0, (char *) 0); 4626 (void) ac_decl; 4627 4628 ; 4629 return 0; 4630} 4631_ACEOF 4632if ac_fn_c_try_compile "$LINENO" 4633then : 4634 if test x"$ac_arg" = x 4635then : 4636 ac_cv_c_undeclared_builtin_options='none needed' 4637else case e in #( 4638 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 4639esac 4640fi 4641 break 4642fi 4643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4644esac 4645fi 4646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4647 done 4648 CFLAGS=$ac_save_CFLAGS 4649 ;; 4650esac 4651fi 4652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4653printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4654 case $ac_cv_c_undeclared_builtin_options in #( 4655 'cannot detect') : 4656 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4657printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4658as_fn_error $? "cannot make $CC report undeclared builtins 4659See 'config.log' for more details" "$LINENO" 5; } ;; #( 4660 'none needed') : 4661 ac_c_undeclared_builtin_options='' ;; #( 4662 *) : 4663 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4664esac 4665 4666ac_header= ac_cache= 4667for ac_item in $ac_header_c_list 4668do 4669 if test $ac_cache; then 4670 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4671 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4672 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4673 fi 4674 ac_header= ac_cache= 4675 elif test $ac_header; then 4676 ac_cache=$ac_item 4677 else 4678 ac_header=$ac_item 4679 fi 4680done 4681 4682 4683 4684 4685 4686 4687 4688 4689if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4690then : 4691 4692printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4693 4694fi 4695 4696 4697 4698 4699ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4700if test "x$ac_cv_have_decl___clang__" = xyes 4701then : 4702 CLANGCC="yes" 4703else case e in #( 4704 e) CLANGCC="no" ;; 4705esac 4706fi 4707ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4708if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4709then : 4710 INTELCC="yes" 4711else case e in #( 4712 e) INTELCC="no" ;; 4713esac 4714fi 4715ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4716if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4717then : 4718 SUNCC="yes" 4719else case e in #( 4720 e) SUNCC="no" ;; 4721esac 4722fi 4723 4724 4725 4726 4727 4728 4729 4730 4731if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4732 if test -n "$ac_tool_prefix"; then 4733 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4734set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4736printf %s "checking for $ac_word... " >&6; } 4737if test ${ac_cv_path_PKG_CONFIG+y} 4738then : 4739 printf %s "(cached) " >&6 4740else case e in #( 4741 e) case $PKG_CONFIG in 4742 [\\/]* | ?:[\\/]*) 4743 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4744 ;; 4745 *) 4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4747for as_dir in $PATH 4748do 4749 IFS=$as_save_IFS 4750 case $as_dir in #((( 4751 '') as_dir=./ ;; 4752 */) ;; 4753 *) as_dir=$as_dir/ ;; 4754 esac 4755 for ac_exec_ext in '' $ac_executable_extensions; do 4756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4757 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4759 break 2 4760 fi 4761done 4762 done 4763IFS=$as_save_IFS 4764 4765 ;; 4766esac ;; 4767esac 4768fi 4769PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4770if test -n "$PKG_CONFIG"; then 4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4772printf "%s\n" "$PKG_CONFIG" >&6; } 4773else 4774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4775printf "%s\n" "no" >&6; } 4776fi 4777 4778 4779fi 4780if test -z "$ac_cv_path_PKG_CONFIG"; then 4781 ac_pt_PKG_CONFIG=$PKG_CONFIG 4782 # Extract the first word of "pkg-config", so it can be a program name with args. 4783set dummy pkg-config; ac_word=$2 4784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4785printf %s "checking for $ac_word... " >&6; } 4786if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4787then : 4788 printf %s "(cached) " >&6 4789else case e in #( 4790 e) case $ac_pt_PKG_CONFIG in 4791 [\\/]* | ?:[\\/]*) 4792 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4793 ;; 4794 *) 4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4796for as_dir in $PATH 4797do 4798 IFS=$as_save_IFS 4799 case $as_dir in #((( 4800 '') as_dir=./ ;; 4801 */) ;; 4802 *) as_dir=$as_dir/ ;; 4803 esac 4804 for ac_exec_ext in '' $ac_executable_extensions; do 4805 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4806 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4808 break 2 4809 fi 4810done 4811 done 4812IFS=$as_save_IFS 4813 4814 ;; 4815esac ;; 4816esac 4817fi 4818ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4819if test -n "$ac_pt_PKG_CONFIG"; then 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4821printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4822else 4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4824printf "%s\n" "no" >&6; } 4825fi 4826 4827 if test "x$ac_pt_PKG_CONFIG" = x; then 4828 PKG_CONFIG="" 4829 else 4830 case $cross_compiling:$ac_tool_warned in 4831yes:) 4832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4833printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4834ac_tool_warned=yes ;; 4835esac 4836 PKG_CONFIG=$ac_pt_PKG_CONFIG 4837 fi 4838else 4839 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4840fi 4841 4842fi 4843if test -n "$PKG_CONFIG"; then 4844 _pkg_min_version=0.9.0 4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4846printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4847 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4849printf "%s\n" "yes" >&6; } 4850 else 4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4852printf "%s\n" "no" >&6; } 4853 PKG_CONFIG="" 4854 fi 4855fi 4856 4857 4858 # Make sure we can run config.sub. 4859$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4860 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4861 4862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4863printf %s "checking build system type... " >&6; } 4864if test ${ac_cv_build+y} 4865then : 4866 printf %s "(cached) " >&6 4867else case e in #( 4868 e) ac_build_alias=$build_alias 4869test "x$ac_build_alias" = x && 4870 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4871test "x$ac_build_alias" = x && 4872 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4873ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4874 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4875 ;; 4876esac 4877fi 4878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4879printf "%s\n" "$ac_cv_build" >&6; } 4880case $ac_cv_build in 4881*-*-*) ;; 4882*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4883esac 4884build=$ac_cv_build 4885ac_save_IFS=$IFS; IFS='-' 4886set x $ac_cv_build 4887shift 4888build_cpu=$1 4889build_vendor=$2 4890shift; shift 4891# Remember, the first character of IFS is used to create $*, 4892# except with old shells: 4893build_os=$* 4894IFS=$ac_save_IFS 4895case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4896 4897 4898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4899printf %s "checking host system type... " >&6; } 4900if test ${ac_cv_host+y} 4901then : 4902 printf %s "(cached) " >&6 4903else case e in #( 4904 e) if test "x$host_alias" = x; then 4905 ac_cv_host=$ac_cv_build 4906else 4907 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4908 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4909fi 4910 ;; 4911esac 4912fi 4913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4914printf "%s\n" "$ac_cv_host" >&6; } 4915case $ac_cv_host in 4916*-*-*) ;; 4917*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4918esac 4919host=$ac_cv_host 4920ac_save_IFS=$IFS; IFS='-' 4921set x $ac_cv_host 4922shift 4923host_cpu=$1 4924host_vendor=$2 4925shift; shift 4926# Remember, the first character of IFS is used to create $*, 4927# except with old shells: 4928host_os=$* 4929IFS=$ac_save_IFS 4930case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4931 4932 4933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4934printf %s "checking for a sed that does not truncate output... " >&6; } 4935if test ${ac_cv_path_SED+y} 4936then : 4937 printf %s "(cached) " >&6 4938else case e in #( 4939 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4940 for ac_i in 1 2 3 4 5 6 7; do 4941 ac_script="$ac_script$as_nl$ac_script" 4942 done 4943 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4944 { ac_script=; unset ac_script;} 4945 if test -z "$SED"; then 4946 ac_path_SED_found=false 4947 # Loop through the user's path and test for each of PROGNAME-LIST 4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4949for as_dir in $PATH 4950do 4951 IFS=$as_save_IFS 4952 case $as_dir in #((( 4953 '') as_dir=./ ;; 4954 */) ;; 4955 *) as_dir=$as_dir/ ;; 4956 esac 4957 for ac_prog in sed gsed 4958 do 4959 for ac_exec_ext in '' $ac_executable_extensions; do 4960 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4961 as_fn_executable_p "$ac_path_SED" || continue 4962# Check for GNU ac_path_SED and select it if it is found. 4963 # Check for GNU $ac_path_SED 4964case `"$ac_path_SED" --version 2>&1` in #( 4965*GNU*) 4966 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4967#( 4968*) 4969 ac_count=0 4970 printf %s 0123456789 >"conftest.in" 4971 while : 4972 do 4973 cat "conftest.in" "conftest.in" >"conftest.tmp" 4974 mv "conftest.tmp" "conftest.in" 4975 cp "conftest.in" "conftest.nl" 4976 printf "%s\n" '' >> "conftest.nl" 4977 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4979 as_fn_arith $ac_count + 1 && ac_count=$as_val 4980 if test $ac_count -gt ${ac_path_SED_max-0}; then 4981 # Best one so far, save it but keep looking for a better one 4982 ac_cv_path_SED="$ac_path_SED" 4983 ac_path_SED_max=$ac_count 4984 fi 4985 # 10*(2^10) chars as input seems more than enough 4986 test $ac_count -gt 10 && break 4987 done 4988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4989esac 4990 4991 $ac_path_SED_found && break 3 4992 done 4993 done 4994 done 4995IFS=$as_save_IFS 4996 if test -z "$ac_cv_path_SED"; then 4997 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4998 fi 4999else 5000 ac_cv_path_SED=$SED 5001fi 5002 ;; 5003esac 5004fi 5005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5006printf "%s\n" "$ac_cv_path_SED" >&6; } 5007 SED="$ac_cv_path_SED" 5008 rm -f conftest.sed 5009 5010 5011 5012 5013 5014 5015# Check whether --enable-selective-werror was given. 5016if test ${enable_selective_werror+y} 5017then : 5018 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 5019else case e in #( 5020 e) SELECTIVE_WERROR=yes ;; 5021esac 5022fi 5023 5024 5025 5026 5027 5028# -v is too short to test reliably with XORG_TESTSET_CFLAG 5029if test "x$SUNCC" = "xyes"; then 5030 BASE_CFLAGS="-v" 5031else 5032 BASE_CFLAGS="" 5033fi 5034 5035# This chunk of warnings were those that existed in the legacy CWARNFLAGS 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049xorg_testset_save_CFLAGS="$CFLAGS" 5050 5051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5054printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5055if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5056then : 5057 printf %s "(cached) " >&6 5058else case e in #( 5059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5060/* end confdefs.h. */ 5061int i; 5062_ACEOF 5063if ac_fn_c_try_compile "$LINENO" 5064then : 5065 xorg_cv_cc_flag_unknown_warning_option=yes 5066else case e in #( 5067 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5068esac 5069fi 5070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5071esac 5072fi 5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5074printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5076 CFLAGS="$xorg_testset_save_CFLAGS" 5077fi 5078 5079if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5081 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5082 fi 5083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5085printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5086if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5087then : 5088 printf %s "(cached) " >&6 5089else case e in #( 5090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5091/* end confdefs.h. */ 5092int i; 5093_ACEOF 5094if ac_fn_c_try_compile "$LINENO" 5095then : 5096 xorg_cv_cc_flag_unused_command_line_argument=yes 5097else case e in #( 5098 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5099esac 5100fi 5101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5102esac 5103fi 5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5105printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5107 CFLAGS="$xorg_testset_save_CFLAGS" 5108fi 5109 5110found="no" 5111 5112 if test $found = "no" ; then 5113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5115 fi 5116 5117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5119 fi 5120 5121 CFLAGS="$CFLAGS -Wall" 5122 5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 5124printf %s "checking if $CC supports -Wall... " >&6; } 5125 cacheid=xorg_cv_cc_flag__Wall 5126 if eval test \${$cacheid+y} 5127then : 5128 printf %s "(cached) " >&6 5129else case e in #( 5130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132int i; 5133int 5134main (void) 5135{ 5136 5137 ; 5138 return 0; 5139} 5140_ACEOF 5141if ac_fn_c_try_link "$LINENO" 5142then : 5143 eval $cacheid=yes 5144else case e in #( 5145 e) eval $cacheid=no ;; 5146esac 5147fi 5148rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5149 conftest$ac_exeext conftest.$ac_ext ;; 5150esac 5151fi 5152 5153 5154 CFLAGS="$xorg_testset_save_CFLAGS" 5155 5156 eval supported=\$$cacheid 5157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5158printf "%s\n" "$supported" >&6; } 5159 if test "$supported" = "yes" ; then 5160 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5161 found="yes" 5162 fi 5163 fi 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179xorg_testset_save_CFLAGS="$CFLAGS" 5180 5181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5184printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5185if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5186then : 5187 printf %s "(cached) " >&6 5188else case e in #( 5189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5190/* end confdefs.h. */ 5191int i; 5192_ACEOF 5193if ac_fn_c_try_compile "$LINENO" 5194then : 5195 xorg_cv_cc_flag_unknown_warning_option=yes 5196else case e in #( 5197 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5198esac 5199fi 5200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5201esac 5202fi 5203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5204printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5206 CFLAGS="$xorg_testset_save_CFLAGS" 5207fi 5208 5209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5212 fi 5213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5215printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5216if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5217then : 5218 printf %s "(cached) " >&6 5219else case e in #( 5220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5221/* end confdefs.h. */ 5222int i; 5223_ACEOF 5224if ac_fn_c_try_compile "$LINENO" 5225then : 5226 xorg_cv_cc_flag_unused_command_line_argument=yes 5227else case e in #( 5228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5229esac 5230fi 5231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5232esac 5233fi 5234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5237 CFLAGS="$xorg_testset_save_CFLAGS" 5238fi 5239 5240found="no" 5241 5242 if test $found = "no" ; then 5243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5244 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5245 fi 5246 5247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5249 fi 5250 5251 CFLAGS="$CFLAGS -Wpointer-arith" 5252 5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5254printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5255 cacheid=xorg_cv_cc_flag__Wpointer_arith 5256 if eval test \${$cacheid+y} 5257then : 5258 printf %s "(cached) " >&6 5259else case e in #( 5260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5261/* end confdefs.h. */ 5262int i; 5263int 5264main (void) 5265{ 5266 5267 ; 5268 return 0; 5269} 5270_ACEOF 5271if ac_fn_c_try_link "$LINENO" 5272then : 5273 eval $cacheid=yes 5274else case e in #( 5275 e) eval $cacheid=no ;; 5276esac 5277fi 5278rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5279 conftest$ac_exeext conftest.$ac_ext ;; 5280esac 5281fi 5282 5283 5284 CFLAGS="$xorg_testset_save_CFLAGS" 5285 5286 eval supported=\$$cacheid 5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5288printf "%s\n" "$supported" >&6; } 5289 if test "$supported" = "yes" ; then 5290 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5291 found="yes" 5292 fi 5293 fi 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309xorg_testset_save_CFLAGS="$CFLAGS" 5310 5311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5314printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5315if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5316then : 5317 printf %s "(cached) " >&6 5318else case e in #( 5319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321int i; 5322_ACEOF 5323if ac_fn_c_try_compile "$LINENO" 5324then : 5325 xorg_cv_cc_flag_unknown_warning_option=yes 5326else case e in #( 5327 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5328esac 5329fi 5330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5331esac 5332fi 5333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5336 CFLAGS="$xorg_testset_save_CFLAGS" 5337fi 5338 5339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5342 fi 5343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5346if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5347then : 5348 printf %s "(cached) " >&6 5349else case e in #( 5350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5351/* end confdefs.h. */ 5352int i; 5353_ACEOF 5354if ac_fn_c_try_compile "$LINENO" 5355then : 5356 xorg_cv_cc_flag_unused_command_line_argument=yes 5357else case e in #( 5358 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5359esac 5360fi 5361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5362esac 5363fi 5364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5365printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5367 CFLAGS="$xorg_testset_save_CFLAGS" 5368fi 5369 5370found="no" 5371 5372 if test $found = "no" ; then 5373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5375 fi 5376 5377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5379 fi 5380 5381 CFLAGS="$CFLAGS -Wmissing-declarations" 5382 5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5384printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5385 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5386 if eval test \${$cacheid+y} 5387then : 5388 printf %s "(cached) " >&6 5389else case e in #( 5390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391/* end confdefs.h. */ 5392int i; 5393int 5394main (void) 5395{ 5396 5397 ; 5398 return 0; 5399} 5400_ACEOF 5401if ac_fn_c_try_link "$LINENO" 5402then : 5403 eval $cacheid=yes 5404else case e in #( 5405 e) eval $cacheid=no ;; 5406esac 5407fi 5408rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5409 conftest$ac_exeext conftest.$ac_ext ;; 5410esac 5411fi 5412 5413 5414 CFLAGS="$xorg_testset_save_CFLAGS" 5415 5416 eval supported=\$$cacheid 5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5418printf "%s\n" "$supported" >&6; } 5419 if test "$supported" = "yes" ; then 5420 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5421 found="yes" 5422 fi 5423 fi 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439xorg_testset_save_CFLAGS="$CFLAGS" 5440 5441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5442 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5445if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5446then : 5447 printf %s "(cached) " >&6 5448else case e in #( 5449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5450/* end confdefs.h. */ 5451int i; 5452_ACEOF 5453if ac_fn_c_try_compile "$LINENO" 5454then : 5455 xorg_cv_cc_flag_unknown_warning_option=yes 5456else case e in #( 5457 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5458esac 5459fi 5460rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5461esac 5462fi 5463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5464printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5466 CFLAGS="$xorg_testset_save_CFLAGS" 5467fi 5468 5469if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5471 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5472 fi 5473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5475printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5476if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5477then : 5478 printf %s "(cached) " >&6 5479else case e in #( 5480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482int i; 5483_ACEOF 5484if ac_fn_c_try_compile "$LINENO" 5485then : 5486 xorg_cv_cc_flag_unused_command_line_argument=yes 5487else case e in #( 5488 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5489esac 5490fi 5491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5492esac 5493fi 5494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5495printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5497 CFLAGS="$xorg_testset_save_CFLAGS" 5498fi 5499 5500found="no" 5501 5502 if test $found = "no" ; then 5503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5505 fi 5506 5507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5509 fi 5510 5511 CFLAGS="$CFLAGS -Wformat=2" 5512 5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5514printf %s "checking if $CC supports -Wformat=2... " >&6; } 5515 cacheid=xorg_cv_cc_flag__Wformat_2 5516 if eval test \${$cacheid+y} 5517then : 5518 printf %s "(cached) " >&6 5519else case e in #( 5520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5521/* end confdefs.h. */ 5522int i; 5523int 5524main (void) 5525{ 5526 5527 ; 5528 return 0; 5529} 5530_ACEOF 5531if ac_fn_c_try_link "$LINENO" 5532then : 5533 eval $cacheid=yes 5534else case e in #( 5535 e) eval $cacheid=no ;; 5536esac 5537fi 5538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5539 conftest$ac_exeext conftest.$ac_ext ;; 5540esac 5541fi 5542 5543 5544 CFLAGS="$xorg_testset_save_CFLAGS" 5545 5546 eval supported=\$$cacheid 5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5548printf "%s\n" "$supported" >&6; } 5549 if test "$supported" = "yes" ; then 5550 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5551 found="yes" 5552 fi 5553 fi 5554 5555 if test $found = "no" ; then 5556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5558 fi 5559 5560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5562 fi 5563 5564 CFLAGS="$CFLAGS -Wformat" 5565 5566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5567printf %s "checking if $CC supports -Wformat... " >&6; } 5568 cacheid=xorg_cv_cc_flag__Wformat 5569 if eval test \${$cacheid+y} 5570then : 5571 printf %s "(cached) " >&6 5572else case e in #( 5573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574/* end confdefs.h. */ 5575int i; 5576int 5577main (void) 5578{ 5579 5580 ; 5581 return 0; 5582} 5583_ACEOF 5584if ac_fn_c_try_link "$LINENO" 5585then : 5586 eval $cacheid=yes 5587else case e in #( 5588 e) eval $cacheid=no ;; 5589esac 5590fi 5591rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5592 conftest$ac_exeext conftest.$ac_ext ;; 5593esac 5594fi 5595 5596 5597 CFLAGS="$xorg_testset_save_CFLAGS" 5598 5599 eval supported=\$$cacheid 5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5601printf "%s\n" "$supported" >&6; } 5602 if test "$supported" = "yes" ; then 5603 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5604 found="yes" 5605 fi 5606 fi 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624xorg_testset_save_CFLAGS="$CFLAGS" 5625 5626if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5629printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5630if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5631then : 5632 printf %s "(cached) " >&6 5633else case e in #( 5634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5635/* end confdefs.h. */ 5636int i; 5637_ACEOF 5638if ac_fn_c_try_compile "$LINENO" 5639then : 5640 xorg_cv_cc_flag_unknown_warning_option=yes 5641else case e in #( 5642 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5643esac 5644fi 5645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5646esac 5647fi 5648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5649printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5651 CFLAGS="$xorg_testset_save_CFLAGS" 5652fi 5653 5654if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5657 fi 5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5660printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5661if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5662then : 5663 printf %s "(cached) " >&6 5664else case e in #( 5665 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5666/* end confdefs.h. */ 5667int i; 5668_ACEOF 5669if ac_fn_c_try_compile "$LINENO" 5670then : 5671 xorg_cv_cc_flag_unused_command_line_argument=yes 5672else case e in #( 5673 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5674esac 5675fi 5676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5677esac 5678fi 5679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5680printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5681 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5682 CFLAGS="$xorg_testset_save_CFLAGS" 5683fi 5684 5685found="no" 5686 5687 if test $found = "no" ; then 5688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5690 fi 5691 5692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5694 fi 5695 5696 CFLAGS="$CFLAGS -Wstrict-prototypes" 5697 5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5699printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5700 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5701 if eval test \${$cacheid+y} 5702then : 5703 printf %s "(cached) " >&6 5704else case e in #( 5705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5706/* end confdefs.h. */ 5707int i; 5708int 5709main (void) 5710{ 5711 5712 ; 5713 return 0; 5714} 5715_ACEOF 5716if ac_fn_c_try_link "$LINENO" 5717then : 5718 eval $cacheid=yes 5719else case e in #( 5720 e) eval $cacheid=no ;; 5721esac 5722fi 5723rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5724 conftest$ac_exeext conftest.$ac_ext ;; 5725esac 5726fi 5727 5728 5729 CFLAGS="$xorg_testset_save_CFLAGS" 5730 5731 eval supported=\$$cacheid 5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5733printf "%s\n" "$supported" >&6; } 5734 if test "$supported" = "yes" ; then 5735 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5736 found="yes" 5737 fi 5738 fi 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754xorg_testset_save_CFLAGS="$CFLAGS" 5755 5756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5757 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5759printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5760if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5761then : 5762 printf %s "(cached) " >&6 5763else case e in #( 5764 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5765/* end confdefs.h. */ 5766int i; 5767_ACEOF 5768if ac_fn_c_try_compile "$LINENO" 5769then : 5770 xorg_cv_cc_flag_unknown_warning_option=yes 5771else case e in #( 5772 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5773esac 5774fi 5775rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5776esac 5777fi 5778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5779printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5780 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5781 CFLAGS="$xorg_testset_save_CFLAGS" 5782fi 5783 5784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5787 fi 5788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5790printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5791if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5792then : 5793 printf %s "(cached) " >&6 5794else case e in #( 5795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5796/* end confdefs.h. */ 5797int i; 5798_ACEOF 5799if ac_fn_c_try_compile "$LINENO" 5800then : 5801 xorg_cv_cc_flag_unused_command_line_argument=yes 5802else case e in #( 5803 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5804esac 5805fi 5806rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5807esac 5808fi 5809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5810printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5812 CFLAGS="$xorg_testset_save_CFLAGS" 5813fi 5814 5815found="no" 5816 5817 if test $found = "no" ; then 5818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5820 fi 5821 5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5824 fi 5825 5826 CFLAGS="$CFLAGS -Wmissing-prototypes" 5827 5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5829printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5830 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5831 if eval test \${$cacheid+y} 5832then : 5833 printf %s "(cached) " >&6 5834else case e in #( 5835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5836/* end confdefs.h. */ 5837int i; 5838int 5839main (void) 5840{ 5841 5842 ; 5843 return 0; 5844} 5845_ACEOF 5846if ac_fn_c_try_link "$LINENO" 5847then : 5848 eval $cacheid=yes 5849else case e in #( 5850 e) eval $cacheid=no ;; 5851esac 5852fi 5853rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5854 conftest$ac_exeext conftest.$ac_ext ;; 5855esac 5856fi 5857 5858 5859 CFLAGS="$xorg_testset_save_CFLAGS" 5860 5861 eval supported=\$$cacheid 5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5863printf "%s\n" "$supported" >&6; } 5864 if test "$supported" = "yes" ; then 5865 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5866 found="yes" 5867 fi 5868 fi 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884xorg_testset_save_CFLAGS="$CFLAGS" 5885 5886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5889printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5890if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5891then : 5892 printf %s "(cached) " >&6 5893else case e in #( 5894 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5895/* end confdefs.h. */ 5896int i; 5897_ACEOF 5898if ac_fn_c_try_compile "$LINENO" 5899then : 5900 xorg_cv_cc_flag_unknown_warning_option=yes 5901else case e in #( 5902 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 5903esac 5904fi 5905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5906esac 5907fi 5908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5909printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5911 CFLAGS="$xorg_testset_save_CFLAGS" 5912fi 5913 5914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5917 fi 5918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5920printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5921if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5922then : 5923 printf %s "(cached) " >&6 5924else case e in #( 5925 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5926/* end confdefs.h. */ 5927int i; 5928_ACEOF 5929if ac_fn_c_try_compile "$LINENO" 5930then : 5931 xorg_cv_cc_flag_unused_command_line_argument=yes 5932else case e in #( 5933 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 5934esac 5935fi 5936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5937esac 5938fi 5939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5940printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5941 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5942 CFLAGS="$xorg_testset_save_CFLAGS" 5943fi 5944 5945found="no" 5946 5947 if test $found = "no" ; then 5948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5950 fi 5951 5952 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5954 fi 5955 5956 CFLAGS="$CFLAGS -Wnested-externs" 5957 5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5959printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5960 cacheid=xorg_cv_cc_flag__Wnested_externs 5961 if eval test \${$cacheid+y} 5962then : 5963 printf %s "(cached) " >&6 5964else case e in #( 5965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967int i; 5968int 5969main (void) 5970{ 5971 5972 ; 5973 return 0; 5974} 5975_ACEOF 5976if ac_fn_c_try_link "$LINENO" 5977then : 5978 eval $cacheid=yes 5979else case e in #( 5980 e) eval $cacheid=no ;; 5981esac 5982fi 5983rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5984 conftest$ac_exeext conftest.$ac_ext ;; 5985esac 5986fi 5987 5988 5989 CFLAGS="$xorg_testset_save_CFLAGS" 5990 5991 eval supported=\$$cacheid 5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5993printf "%s\n" "$supported" >&6; } 5994 if test "$supported" = "yes" ; then 5995 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5996 found="yes" 5997 fi 5998 fi 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014xorg_testset_save_CFLAGS="$CFLAGS" 6015 6016if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6019printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6020if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6021then : 6022 printf %s "(cached) " >&6 6023else case e in #( 6024 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6025/* end confdefs.h. */ 6026int i; 6027_ACEOF 6028if ac_fn_c_try_compile "$LINENO" 6029then : 6030 xorg_cv_cc_flag_unknown_warning_option=yes 6031else case e in #( 6032 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6033esac 6034fi 6035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6036esac 6037fi 6038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6039printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6041 CFLAGS="$xorg_testset_save_CFLAGS" 6042fi 6043 6044if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6047 fi 6048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6050printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6051if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6052then : 6053 printf %s "(cached) " >&6 6054else case e in #( 6055 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6056/* end confdefs.h. */ 6057int i; 6058_ACEOF 6059if ac_fn_c_try_compile "$LINENO" 6060then : 6061 xorg_cv_cc_flag_unused_command_line_argument=yes 6062else case e in #( 6063 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6064esac 6065fi 6066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6067esac 6068fi 6069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6070printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6072 CFLAGS="$xorg_testset_save_CFLAGS" 6073fi 6074 6075found="no" 6076 6077 if test $found = "no" ; then 6078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6080 fi 6081 6082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6084 fi 6085 6086 CFLAGS="$CFLAGS -Wbad-function-cast" 6087 6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 6089printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 6090 cacheid=xorg_cv_cc_flag__Wbad_function_cast 6091 if eval test \${$cacheid+y} 6092then : 6093 printf %s "(cached) " >&6 6094else case e in #( 6095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6096/* end confdefs.h. */ 6097int i; 6098int 6099main (void) 6100{ 6101 6102 ; 6103 return 0; 6104} 6105_ACEOF 6106if ac_fn_c_try_link "$LINENO" 6107then : 6108 eval $cacheid=yes 6109else case e in #( 6110 e) eval $cacheid=no ;; 6111esac 6112fi 6113rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6114 conftest$ac_exeext conftest.$ac_ext ;; 6115esac 6116fi 6117 6118 6119 CFLAGS="$xorg_testset_save_CFLAGS" 6120 6121 eval supported=\$$cacheid 6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6123printf "%s\n" "$supported" >&6; } 6124 if test "$supported" = "yes" ; then 6125 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 6126 found="yes" 6127 fi 6128 fi 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144xorg_testset_save_CFLAGS="$CFLAGS" 6145 6146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6149printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6150if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6151then : 6152 printf %s "(cached) " >&6 6153else case e in #( 6154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6155/* end confdefs.h. */ 6156int i; 6157_ACEOF 6158if ac_fn_c_try_compile "$LINENO" 6159then : 6160 xorg_cv_cc_flag_unknown_warning_option=yes 6161else case e in #( 6162 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6163esac 6164fi 6165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6166esac 6167fi 6168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6169printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6171 CFLAGS="$xorg_testset_save_CFLAGS" 6172fi 6173 6174if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6177 fi 6178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6180printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6181if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6182then : 6183 printf %s "(cached) " >&6 6184else case e in #( 6185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6186/* end confdefs.h. */ 6187int i; 6188_ACEOF 6189if ac_fn_c_try_compile "$LINENO" 6190then : 6191 xorg_cv_cc_flag_unused_command_line_argument=yes 6192else case e in #( 6193 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6194esac 6195fi 6196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6197esac 6198fi 6199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6200printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6201 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6202 CFLAGS="$xorg_testset_save_CFLAGS" 6203fi 6204 6205found="no" 6206 6207 if test $found = "no" ; then 6208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6210 fi 6211 6212 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6214 fi 6215 6216 CFLAGS="$CFLAGS -Wold-style-definition" 6217 6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6219printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6220 cacheid=xorg_cv_cc_flag__Wold_style_definition 6221 if eval test \${$cacheid+y} 6222then : 6223 printf %s "(cached) " >&6 6224else case e in #( 6225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6226/* end confdefs.h. */ 6227int i; 6228int 6229main (void) 6230{ 6231 6232 ; 6233 return 0; 6234} 6235_ACEOF 6236if ac_fn_c_try_link "$LINENO" 6237then : 6238 eval $cacheid=yes 6239else case e in #( 6240 e) eval $cacheid=no ;; 6241esac 6242fi 6243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6244 conftest$ac_exeext conftest.$ac_ext ;; 6245esac 6246fi 6247 6248 6249 CFLAGS="$xorg_testset_save_CFLAGS" 6250 6251 eval supported=\$$cacheid 6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6253printf "%s\n" "$supported" >&6; } 6254 if test "$supported" = "yes" ; then 6255 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6256 found="yes" 6257 fi 6258 fi 6259 6260 if test $found = "no" ; then 6261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6262 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6263 fi 6264 6265 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6267 fi 6268 6269 CFLAGS="$CFLAGS -fd" 6270 6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6272printf %s "checking if $CC supports -fd... " >&6; } 6273 cacheid=xorg_cv_cc_flag__fd 6274 if eval test \${$cacheid+y} 6275then : 6276 printf %s "(cached) " >&6 6277else case e in #( 6278 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279/* end confdefs.h. */ 6280int i; 6281int 6282main (void) 6283{ 6284 6285 ; 6286 return 0; 6287} 6288_ACEOF 6289if ac_fn_c_try_link "$LINENO" 6290then : 6291 eval $cacheid=yes 6292else case e in #( 6293 e) eval $cacheid=no ;; 6294esac 6295fi 6296rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6297 conftest$ac_exeext conftest.$ac_ext ;; 6298esac 6299fi 6300 6301 6302 CFLAGS="$xorg_testset_save_CFLAGS" 6303 6304 eval supported=\$$cacheid 6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6306printf "%s\n" "$supported" >&6; } 6307 if test "$supported" = "yes" ; then 6308 BASE_CFLAGS="$BASE_CFLAGS -fd" 6309 found="yes" 6310 fi 6311 fi 6312 6313 6314 6315 6316 6317# This chunk adds additional warnings that could catch undesired effects. 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331xorg_testset_save_CFLAGS="$CFLAGS" 6332 6333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6337if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6338then : 6339 printf %s "(cached) " >&6 6340else case e in #( 6341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6342/* end confdefs.h. */ 6343int i; 6344_ACEOF 6345if ac_fn_c_try_compile "$LINENO" 6346then : 6347 xorg_cv_cc_flag_unknown_warning_option=yes 6348else case e in #( 6349 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6350esac 6351fi 6352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6353esac 6354fi 6355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6356printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6357 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6358 CFLAGS="$xorg_testset_save_CFLAGS" 6359fi 6360 6361if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6362 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6363 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6364 fi 6365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6367printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6368if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6369then : 6370 printf %s "(cached) " >&6 6371else case e in #( 6372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6373/* end confdefs.h. */ 6374int i; 6375_ACEOF 6376if ac_fn_c_try_compile "$LINENO" 6377then : 6378 xorg_cv_cc_flag_unused_command_line_argument=yes 6379else case e in #( 6380 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6381esac 6382fi 6383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6384esac 6385fi 6386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6389 CFLAGS="$xorg_testset_save_CFLAGS" 6390fi 6391 6392found="no" 6393 6394 if test $found = "no" ; then 6395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6397 fi 6398 6399 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6401 fi 6402 6403 CFLAGS="$CFLAGS -Wunused" 6404 6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6406printf %s "checking if $CC supports -Wunused... " >&6; } 6407 cacheid=xorg_cv_cc_flag__Wunused 6408 if eval test \${$cacheid+y} 6409then : 6410 printf %s "(cached) " >&6 6411else case e in #( 6412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414int i; 6415int 6416main (void) 6417{ 6418 6419 ; 6420 return 0; 6421} 6422_ACEOF 6423if ac_fn_c_try_link "$LINENO" 6424then : 6425 eval $cacheid=yes 6426else case e in #( 6427 e) eval $cacheid=no ;; 6428esac 6429fi 6430rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6431 conftest$ac_exeext conftest.$ac_ext ;; 6432esac 6433fi 6434 6435 6436 CFLAGS="$xorg_testset_save_CFLAGS" 6437 6438 eval supported=\$$cacheid 6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6440printf "%s\n" "$supported" >&6; } 6441 if test "$supported" = "yes" ; then 6442 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6443 found="yes" 6444 fi 6445 fi 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461xorg_testset_save_CFLAGS="$CFLAGS" 6462 6463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6466printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6467if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6468then : 6469 printf %s "(cached) " >&6 6470else case e in #( 6471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6472/* end confdefs.h. */ 6473int i; 6474_ACEOF 6475if ac_fn_c_try_compile "$LINENO" 6476then : 6477 xorg_cv_cc_flag_unknown_warning_option=yes 6478else case e in #( 6479 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6480esac 6481fi 6482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6483esac 6484fi 6485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6486printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6488 CFLAGS="$xorg_testset_save_CFLAGS" 6489fi 6490 6491if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6494 fi 6495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6497printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6498if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6499then : 6500 printf %s "(cached) " >&6 6501else case e in #( 6502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504int i; 6505_ACEOF 6506if ac_fn_c_try_compile "$LINENO" 6507then : 6508 xorg_cv_cc_flag_unused_command_line_argument=yes 6509else case e in #( 6510 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6511esac 6512fi 6513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6514esac 6515fi 6516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6517printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6518 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6519 CFLAGS="$xorg_testset_save_CFLAGS" 6520fi 6521 6522found="no" 6523 6524 if test $found = "no" ; then 6525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6527 fi 6528 6529 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6531 fi 6532 6533 CFLAGS="$CFLAGS -Wuninitialized" 6534 6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6536printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6537 cacheid=xorg_cv_cc_flag__Wuninitialized 6538 if eval test \${$cacheid+y} 6539then : 6540 printf %s "(cached) " >&6 6541else case e in #( 6542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543/* end confdefs.h. */ 6544int i; 6545int 6546main (void) 6547{ 6548 6549 ; 6550 return 0; 6551} 6552_ACEOF 6553if ac_fn_c_try_link "$LINENO" 6554then : 6555 eval $cacheid=yes 6556else case e in #( 6557 e) eval $cacheid=no ;; 6558esac 6559fi 6560rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6561 conftest$ac_exeext conftest.$ac_ext ;; 6562esac 6563fi 6564 6565 6566 CFLAGS="$xorg_testset_save_CFLAGS" 6567 6568 eval supported=\$$cacheid 6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6570printf "%s\n" "$supported" >&6; } 6571 if test "$supported" = "yes" ; then 6572 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6573 found="yes" 6574 fi 6575 fi 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591xorg_testset_save_CFLAGS="$CFLAGS" 6592 6593if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6596printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6597if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6598then : 6599 printf %s "(cached) " >&6 6600else case e in #( 6601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6602/* end confdefs.h. */ 6603int i; 6604_ACEOF 6605if ac_fn_c_try_compile "$LINENO" 6606then : 6607 xorg_cv_cc_flag_unknown_warning_option=yes 6608else case e in #( 6609 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6610esac 6611fi 6612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6613esac 6614fi 6615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6616printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6618 CFLAGS="$xorg_testset_save_CFLAGS" 6619fi 6620 6621if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6624 fi 6625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6627printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6628if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6629then : 6630 printf %s "(cached) " >&6 6631else case e in #( 6632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6633/* end confdefs.h. */ 6634int i; 6635_ACEOF 6636if ac_fn_c_try_compile "$LINENO" 6637then : 6638 xorg_cv_cc_flag_unused_command_line_argument=yes 6639else case e in #( 6640 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6641esac 6642fi 6643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6644esac 6645fi 6646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6647printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6649 CFLAGS="$xorg_testset_save_CFLAGS" 6650fi 6651 6652found="no" 6653 6654 if test $found = "no" ; then 6655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6657 fi 6658 6659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6661 fi 6662 6663 CFLAGS="$CFLAGS -Wshadow" 6664 6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6666printf %s "checking if $CC supports -Wshadow... " >&6; } 6667 cacheid=xorg_cv_cc_flag__Wshadow 6668 if eval test \${$cacheid+y} 6669then : 6670 printf %s "(cached) " >&6 6671else case e in #( 6672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673/* end confdefs.h. */ 6674int i; 6675int 6676main (void) 6677{ 6678 6679 ; 6680 return 0; 6681} 6682_ACEOF 6683if ac_fn_c_try_link "$LINENO" 6684then : 6685 eval $cacheid=yes 6686else case e in #( 6687 e) eval $cacheid=no ;; 6688esac 6689fi 6690rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6691 conftest$ac_exeext conftest.$ac_ext ;; 6692esac 6693fi 6694 6695 6696 CFLAGS="$xorg_testset_save_CFLAGS" 6697 6698 eval supported=\$$cacheid 6699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6700printf "%s\n" "$supported" >&6; } 6701 if test "$supported" = "yes" ; then 6702 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6703 found="yes" 6704 fi 6705 fi 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721xorg_testset_save_CFLAGS="$CFLAGS" 6722 6723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6726printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6727if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6728then : 6729 printf %s "(cached) " >&6 6730else case e in #( 6731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6732/* end confdefs.h. */ 6733int i; 6734_ACEOF 6735if ac_fn_c_try_compile "$LINENO" 6736then : 6737 xorg_cv_cc_flag_unknown_warning_option=yes 6738else case e in #( 6739 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6740esac 6741fi 6742rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6743esac 6744fi 6745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6746printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6748 CFLAGS="$xorg_testset_save_CFLAGS" 6749fi 6750 6751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6753 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6754 fi 6755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6757printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6758if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6759then : 6760 printf %s "(cached) " >&6 6761else case e in #( 6762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6763/* end confdefs.h. */ 6764int i; 6765_ACEOF 6766if ac_fn_c_try_compile "$LINENO" 6767then : 6768 xorg_cv_cc_flag_unused_command_line_argument=yes 6769else case e in #( 6770 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6771esac 6772fi 6773rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6774esac 6775fi 6776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6777printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6779 CFLAGS="$xorg_testset_save_CFLAGS" 6780fi 6781 6782found="no" 6783 6784 if test $found = "no" ; then 6785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6787 fi 6788 6789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6791 fi 6792 6793 CFLAGS="$CFLAGS -Wmissing-noreturn" 6794 6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6796printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6797 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6798 if eval test \${$cacheid+y} 6799then : 6800 printf %s "(cached) " >&6 6801else case e in #( 6802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6803/* end confdefs.h. */ 6804int i; 6805int 6806main (void) 6807{ 6808 6809 ; 6810 return 0; 6811} 6812_ACEOF 6813if ac_fn_c_try_link "$LINENO" 6814then : 6815 eval $cacheid=yes 6816else case e in #( 6817 e) eval $cacheid=no ;; 6818esac 6819fi 6820rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6821 conftest$ac_exeext conftest.$ac_ext ;; 6822esac 6823fi 6824 6825 6826 CFLAGS="$xorg_testset_save_CFLAGS" 6827 6828 eval supported=\$$cacheid 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6830printf "%s\n" "$supported" >&6; } 6831 if test "$supported" = "yes" ; then 6832 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6833 found="yes" 6834 fi 6835 fi 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851xorg_testset_save_CFLAGS="$CFLAGS" 6852 6853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6856printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6857if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6858then : 6859 printf %s "(cached) " >&6 6860else case e in #( 6861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6862/* end confdefs.h. */ 6863int i; 6864_ACEOF 6865if ac_fn_c_try_compile "$LINENO" 6866then : 6867 xorg_cv_cc_flag_unknown_warning_option=yes 6868else case e in #( 6869 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 6870esac 6871fi 6872rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6873esac 6874fi 6875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6876printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6878 CFLAGS="$xorg_testset_save_CFLAGS" 6879fi 6880 6881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6884 fi 6885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6887printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6888if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6889then : 6890 printf %s "(cached) " >&6 6891else case e in #( 6892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6893/* end confdefs.h. */ 6894int i; 6895_ACEOF 6896if ac_fn_c_try_compile "$LINENO" 6897then : 6898 xorg_cv_cc_flag_unused_command_line_argument=yes 6899else case e in #( 6900 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 6901esac 6902fi 6903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 6904esac 6905fi 6906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6907printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6909 CFLAGS="$xorg_testset_save_CFLAGS" 6910fi 6911 6912found="no" 6913 6914 if test $found = "no" ; then 6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6917 fi 6918 6919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6921 fi 6922 6923 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6924 6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6926printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6927 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6928 if eval test \${$cacheid+y} 6929then : 6930 printf %s "(cached) " >&6 6931else case e in #( 6932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6933/* end confdefs.h. */ 6934int i; 6935int 6936main (void) 6937{ 6938 6939 ; 6940 return 0; 6941} 6942_ACEOF 6943if ac_fn_c_try_link "$LINENO" 6944then : 6945 eval $cacheid=yes 6946else case e in #( 6947 e) eval $cacheid=no ;; 6948esac 6949fi 6950rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6951 conftest$ac_exeext conftest.$ac_ext ;; 6952esac 6953fi 6954 6955 6956 CFLAGS="$xorg_testset_save_CFLAGS" 6957 6958 eval supported=\$$cacheid 6959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6960printf "%s\n" "$supported" >&6; } 6961 if test "$supported" = "yes" ; then 6962 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6963 found="yes" 6964 fi 6965 fi 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981xorg_testset_save_CFLAGS="$CFLAGS" 6982 6983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6986printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6987if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6988then : 6989 printf %s "(cached) " >&6 6990else case e in #( 6991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6992/* end confdefs.h. */ 6993int i; 6994_ACEOF 6995if ac_fn_c_try_compile "$LINENO" 6996then : 6997 xorg_cv_cc_flag_unknown_warning_option=yes 6998else case e in #( 6999 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7000esac 7001fi 7002rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7003esac 7004fi 7005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7006printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7007 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7008 CFLAGS="$xorg_testset_save_CFLAGS" 7009fi 7010 7011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7014 fi 7015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7017printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7018if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7019then : 7020 printf %s "(cached) " >&6 7021else case e in #( 7022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024int i; 7025_ACEOF 7026if ac_fn_c_try_compile "$LINENO" 7027then : 7028 xorg_cv_cc_flag_unused_command_line_argument=yes 7029else case e in #( 7030 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7031esac 7032fi 7033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7034esac 7035fi 7036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7037printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7039 CFLAGS="$xorg_testset_save_CFLAGS" 7040fi 7041 7042found="no" 7043 7044 if test $found = "no" ; then 7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7047 fi 7048 7049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7051 fi 7052 7053 CFLAGS="$CFLAGS -Wredundant-decls" 7054 7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 7056printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 7057 cacheid=xorg_cv_cc_flag__Wredundant_decls 7058 if eval test \${$cacheid+y} 7059then : 7060 printf %s "(cached) " >&6 7061else case e in #( 7062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7063/* end confdefs.h. */ 7064int i; 7065int 7066main (void) 7067{ 7068 7069 ; 7070 return 0; 7071} 7072_ACEOF 7073if ac_fn_c_try_link "$LINENO" 7074then : 7075 eval $cacheid=yes 7076else case e in #( 7077 e) eval $cacheid=no ;; 7078esac 7079fi 7080rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7081 conftest$ac_exeext conftest.$ac_ext ;; 7082esac 7083fi 7084 7085 7086 CFLAGS="$xorg_testset_save_CFLAGS" 7087 7088 eval supported=\$$cacheid 7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7090printf "%s\n" "$supported" >&6; } 7091 if test "$supported" = "yes" ; then 7092 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 7093 found="yes" 7094 fi 7095 fi 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111xorg_testset_save_CFLAGS="$CFLAGS" 7112 7113if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7116printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7117if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7118then : 7119 printf %s "(cached) " >&6 7120else case e in #( 7121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7122/* end confdefs.h. */ 7123int i; 7124_ACEOF 7125if ac_fn_c_try_compile "$LINENO" 7126then : 7127 xorg_cv_cc_flag_unknown_warning_option=yes 7128else case e in #( 7129 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7130esac 7131fi 7132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7133esac 7134fi 7135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7136printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7138 CFLAGS="$xorg_testset_save_CFLAGS" 7139fi 7140 7141if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7144 fi 7145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7147printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7148if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7149then : 7150 printf %s "(cached) " >&6 7151else case e in #( 7152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7153/* end confdefs.h. */ 7154int i; 7155_ACEOF 7156if ac_fn_c_try_compile "$LINENO" 7157then : 7158 xorg_cv_cc_flag_unused_command_line_argument=yes 7159else case e in #( 7160 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7161esac 7162fi 7163rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7164esac 7165fi 7166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7167printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7169 CFLAGS="$xorg_testset_save_CFLAGS" 7170fi 7171 7172found="no" 7173 7174 if test $found = "no" ; then 7175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7176 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7177 fi 7178 7179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7181 fi 7182 7183 CFLAGS="$CFLAGS -Wlogical-op" 7184 7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7186printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7187 cacheid=xorg_cv_cc_flag__Wlogical_op 7188 if eval test \${$cacheid+y} 7189then : 7190 printf %s "(cached) " >&6 7191else case e in #( 7192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7193/* end confdefs.h. */ 7194int i; 7195int 7196main (void) 7197{ 7198 7199 ; 7200 return 0; 7201} 7202_ACEOF 7203if ac_fn_c_try_link "$LINENO" 7204then : 7205 eval $cacheid=yes 7206else case e in #( 7207 e) eval $cacheid=no ;; 7208esac 7209fi 7210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7211 conftest$ac_exeext conftest.$ac_ext ;; 7212esac 7213fi 7214 7215 7216 CFLAGS="$xorg_testset_save_CFLAGS" 7217 7218 eval supported=\$$cacheid 7219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7220printf "%s\n" "$supported" >&6; } 7221 if test "$supported" = "yes" ; then 7222 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7223 found="yes" 7224 fi 7225 fi 7226 7227 7228 7229# These are currently disabled because they are noisy. They will be enabled 7230# in the future once the codebase is sufficiently modernized to silence 7231# them. For now, I don't want them to drown out the other warnings. 7232# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7233# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7234# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7235 7236# Turn some warnings into errors, so we don't accidentally get successful builds 7237# when there are problems that should be fixed. 7238 7239if test "x$SELECTIVE_WERROR" = "xyes" ; then 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253xorg_testset_save_CFLAGS="$CFLAGS" 7254 7255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7258printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7259if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7260then : 7261 printf %s "(cached) " >&6 7262else case e in #( 7263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7264/* end confdefs.h. */ 7265int i; 7266_ACEOF 7267if ac_fn_c_try_compile "$LINENO" 7268then : 7269 xorg_cv_cc_flag_unknown_warning_option=yes 7270else case e in #( 7271 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7272esac 7273fi 7274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7275esac 7276fi 7277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7278printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7280 CFLAGS="$xorg_testset_save_CFLAGS" 7281fi 7282 7283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7286 fi 7287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7289printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7290if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7291then : 7292 printf %s "(cached) " >&6 7293else case e in #( 7294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7295/* end confdefs.h. */ 7296int i; 7297_ACEOF 7298if ac_fn_c_try_compile "$LINENO" 7299then : 7300 xorg_cv_cc_flag_unused_command_line_argument=yes 7301else case e in #( 7302 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7303esac 7304fi 7305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7306esac 7307fi 7308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7309printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7311 CFLAGS="$xorg_testset_save_CFLAGS" 7312fi 7313 7314found="no" 7315 7316 if test $found = "no" ; then 7317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7318 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7319 fi 7320 7321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7323 fi 7324 7325 CFLAGS="$CFLAGS -Werror=implicit" 7326 7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7328printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7329 cacheid=xorg_cv_cc_flag__Werror_implicit 7330 if eval test \${$cacheid+y} 7331then : 7332 printf %s "(cached) " >&6 7333else case e in #( 7334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336int i; 7337int 7338main (void) 7339{ 7340 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345if ac_fn_c_try_link "$LINENO" 7346then : 7347 eval $cacheid=yes 7348else case e in #( 7349 e) eval $cacheid=no ;; 7350esac 7351fi 7352rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7353 conftest$ac_exeext conftest.$ac_ext ;; 7354esac 7355fi 7356 7357 7358 CFLAGS="$xorg_testset_save_CFLAGS" 7359 7360 eval supported=\$$cacheid 7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7362printf "%s\n" "$supported" >&6; } 7363 if test "$supported" = "yes" ; then 7364 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7365 found="yes" 7366 fi 7367 fi 7368 7369 if test $found = "no" ; then 7370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7372 fi 7373 7374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7376 fi 7377 7378 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7379 7380 { 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 7381printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7382 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7383 if eval test \${$cacheid+y} 7384then : 7385 printf %s "(cached) " >&6 7386else case e in #( 7387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388/* end confdefs.h. */ 7389int i; 7390int 7391main (void) 7392{ 7393 7394 ; 7395 return 0; 7396} 7397_ACEOF 7398if ac_fn_c_try_link "$LINENO" 7399then : 7400 eval $cacheid=yes 7401else case e in #( 7402 e) eval $cacheid=no ;; 7403esac 7404fi 7405rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7406 conftest$ac_exeext conftest.$ac_ext ;; 7407esac 7408fi 7409 7410 7411 CFLAGS="$xorg_testset_save_CFLAGS" 7412 7413 eval supported=\$$cacheid 7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7415printf "%s\n" "$supported" >&6; } 7416 if test "$supported" = "yes" ; then 7417 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7418 found="yes" 7419 fi 7420 fi 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436xorg_testset_save_CFLAGS="$CFLAGS" 7437 7438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7441printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7442if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7443then : 7444 printf %s "(cached) " >&6 7445else case e in #( 7446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447/* end confdefs.h. */ 7448int i; 7449_ACEOF 7450if ac_fn_c_try_compile "$LINENO" 7451then : 7452 xorg_cv_cc_flag_unknown_warning_option=yes 7453else case e in #( 7454 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7455esac 7456fi 7457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7458esac 7459fi 7460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7461printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7462 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7463 CFLAGS="$xorg_testset_save_CFLAGS" 7464fi 7465 7466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7469 fi 7470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7472printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7473if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7474then : 7475 printf %s "(cached) " >&6 7476else case e in #( 7477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7478/* end confdefs.h. */ 7479int i; 7480_ACEOF 7481if ac_fn_c_try_compile "$LINENO" 7482then : 7483 xorg_cv_cc_flag_unused_command_line_argument=yes 7484else case e in #( 7485 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7486esac 7487fi 7488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7489esac 7490fi 7491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7492printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7494 CFLAGS="$xorg_testset_save_CFLAGS" 7495fi 7496 7497found="no" 7498 7499 if test $found = "no" ; then 7500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7502 fi 7503 7504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7506 fi 7507 7508 CFLAGS="$CFLAGS -Werror=nonnull" 7509 7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7511printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7512 cacheid=xorg_cv_cc_flag__Werror_nonnull 7513 if eval test \${$cacheid+y} 7514then : 7515 printf %s "(cached) " >&6 7516else case e in #( 7517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7518/* end confdefs.h. */ 7519int i; 7520int 7521main (void) 7522{ 7523 7524 ; 7525 return 0; 7526} 7527_ACEOF 7528if ac_fn_c_try_link "$LINENO" 7529then : 7530 eval $cacheid=yes 7531else case e in #( 7532 e) eval $cacheid=no ;; 7533esac 7534fi 7535rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7536 conftest$ac_exeext conftest.$ac_ext ;; 7537esac 7538fi 7539 7540 7541 CFLAGS="$xorg_testset_save_CFLAGS" 7542 7543 eval supported=\$$cacheid 7544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7545printf "%s\n" "$supported" >&6; } 7546 if test "$supported" = "yes" ; then 7547 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7548 found="yes" 7549 fi 7550 fi 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566xorg_testset_save_CFLAGS="$CFLAGS" 7567 7568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7571printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7572if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7573then : 7574 printf %s "(cached) " >&6 7575else case e in #( 7576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7577/* end confdefs.h. */ 7578int i; 7579_ACEOF 7580if ac_fn_c_try_compile "$LINENO" 7581then : 7582 xorg_cv_cc_flag_unknown_warning_option=yes 7583else case e in #( 7584 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7585esac 7586fi 7587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7588esac 7589fi 7590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7591printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7593 CFLAGS="$xorg_testset_save_CFLAGS" 7594fi 7595 7596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7599 fi 7600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7602printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7603if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7604then : 7605 printf %s "(cached) " >&6 7606else case e in #( 7607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7608/* end confdefs.h. */ 7609int i; 7610_ACEOF 7611if ac_fn_c_try_compile "$LINENO" 7612then : 7613 xorg_cv_cc_flag_unused_command_line_argument=yes 7614else case e in #( 7615 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7616esac 7617fi 7618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7619esac 7620fi 7621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7622printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7624 CFLAGS="$xorg_testset_save_CFLAGS" 7625fi 7626 7627found="no" 7628 7629 if test $found = "no" ; then 7630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7632 fi 7633 7634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7636 fi 7637 7638 CFLAGS="$CFLAGS -Werror=init-self" 7639 7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7641printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7642 cacheid=xorg_cv_cc_flag__Werror_init_self 7643 if eval test \${$cacheid+y} 7644then : 7645 printf %s "(cached) " >&6 7646else case e in #( 7647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7648/* end confdefs.h. */ 7649int i; 7650int 7651main (void) 7652{ 7653 7654 ; 7655 return 0; 7656} 7657_ACEOF 7658if ac_fn_c_try_link "$LINENO" 7659then : 7660 eval $cacheid=yes 7661else case e in #( 7662 e) eval $cacheid=no ;; 7663esac 7664fi 7665rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7666 conftest$ac_exeext conftest.$ac_ext ;; 7667esac 7668fi 7669 7670 7671 CFLAGS="$xorg_testset_save_CFLAGS" 7672 7673 eval supported=\$$cacheid 7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7675printf "%s\n" "$supported" >&6; } 7676 if test "$supported" = "yes" ; then 7677 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7678 found="yes" 7679 fi 7680 fi 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696xorg_testset_save_CFLAGS="$CFLAGS" 7697 7698if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7699 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7701printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7702if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7703then : 7704 printf %s "(cached) " >&6 7705else case e in #( 7706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7707/* end confdefs.h. */ 7708int i; 7709_ACEOF 7710if ac_fn_c_try_compile "$LINENO" 7711then : 7712 xorg_cv_cc_flag_unknown_warning_option=yes 7713else case e in #( 7714 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7715esac 7716fi 7717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7718esac 7719fi 7720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7723 CFLAGS="$xorg_testset_save_CFLAGS" 7724fi 7725 7726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7729 fi 7730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7733if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7734then : 7735 printf %s "(cached) " >&6 7736else case e in #( 7737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7738/* end confdefs.h. */ 7739int i; 7740_ACEOF 7741if ac_fn_c_try_compile "$LINENO" 7742then : 7743 xorg_cv_cc_flag_unused_command_line_argument=yes 7744else case e in #( 7745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7746esac 7747fi 7748rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7749esac 7750fi 7751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7752printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7754 CFLAGS="$xorg_testset_save_CFLAGS" 7755fi 7756 7757found="no" 7758 7759 if test $found = "no" ; then 7760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762 fi 7763 7764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7766 fi 7767 7768 CFLAGS="$CFLAGS -Werror=main" 7769 7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7771printf %s "checking if $CC supports -Werror=main... " >&6; } 7772 cacheid=xorg_cv_cc_flag__Werror_main 7773 if eval test \${$cacheid+y} 7774then : 7775 printf %s "(cached) " >&6 7776else case e in #( 7777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779int i; 7780int 7781main (void) 7782{ 7783 7784 ; 7785 return 0; 7786} 7787_ACEOF 7788if ac_fn_c_try_link "$LINENO" 7789then : 7790 eval $cacheid=yes 7791else case e in #( 7792 e) eval $cacheid=no ;; 7793esac 7794fi 7795rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7796 conftest$ac_exeext conftest.$ac_ext ;; 7797esac 7798fi 7799 7800 7801 CFLAGS="$xorg_testset_save_CFLAGS" 7802 7803 eval supported=\$$cacheid 7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7805printf "%s\n" "$supported" >&6; } 7806 if test "$supported" = "yes" ; then 7807 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7808 found="yes" 7809 fi 7810 fi 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826xorg_testset_save_CFLAGS="$CFLAGS" 7827 7828if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7831printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7832if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7833then : 7834 printf %s "(cached) " >&6 7835else case e in #( 7836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7837/* end confdefs.h. */ 7838int i; 7839_ACEOF 7840if ac_fn_c_try_compile "$LINENO" 7841then : 7842 xorg_cv_cc_flag_unknown_warning_option=yes 7843else case e in #( 7844 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7845esac 7846fi 7847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7848esac 7849fi 7850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7853 CFLAGS="$xorg_testset_save_CFLAGS" 7854fi 7855 7856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7859 fi 7860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7863if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7864then : 7865 printf %s "(cached) " >&6 7866else case e in #( 7867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7868/* end confdefs.h. */ 7869int i; 7870_ACEOF 7871if ac_fn_c_try_compile "$LINENO" 7872then : 7873 xorg_cv_cc_flag_unused_command_line_argument=yes 7874else case e in #( 7875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 7876esac 7877fi 7878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7879esac 7880fi 7881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7882printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7884 CFLAGS="$xorg_testset_save_CFLAGS" 7885fi 7886 7887found="no" 7888 7889 if test $found = "no" ; then 7890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7892 fi 7893 7894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7896 fi 7897 7898 CFLAGS="$CFLAGS -Werror=missing-braces" 7899 7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7901printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7902 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7903 if eval test \${$cacheid+y} 7904then : 7905 printf %s "(cached) " >&6 7906else case e in #( 7907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909int i; 7910int 7911main (void) 7912{ 7913 7914 ; 7915 return 0; 7916} 7917_ACEOF 7918if ac_fn_c_try_link "$LINENO" 7919then : 7920 eval $cacheid=yes 7921else case e in #( 7922 e) eval $cacheid=no ;; 7923esac 7924fi 7925rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7926 conftest$ac_exeext conftest.$ac_ext ;; 7927esac 7928fi 7929 7930 7931 CFLAGS="$xorg_testset_save_CFLAGS" 7932 7933 eval supported=\$$cacheid 7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7935printf "%s\n" "$supported" >&6; } 7936 if test "$supported" = "yes" ; then 7937 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7938 found="yes" 7939 fi 7940 fi 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956xorg_testset_save_CFLAGS="$CFLAGS" 7957 7958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7961printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7962if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7963then : 7964 printf %s "(cached) " >&6 7965else case e in #( 7966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7967/* end confdefs.h. */ 7968int i; 7969_ACEOF 7970if ac_fn_c_try_compile "$LINENO" 7971then : 7972 xorg_cv_cc_flag_unknown_warning_option=yes 7973else case e in #( 7974 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 7975esac 7976fi 7977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 7978esac 7979fi 7980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7981printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7983 CFLAGS="$xorg_testset_save_CFLAGS" 7984fi 7985 7986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7989 fi 7990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7992printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7993if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7994then : 7995 printf %s "(cached) " >&6 7996else case e in #( 7997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7998/* end confdefs.h. */ 7999int i; 8000_ACEOF 8001if ac_fn_c_try_compile "$LINENO" 8002then : 8003 xorg_cv_cc_flag_unused_command_line_argument=yes 8004else case e in #( 8005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8006esac 8007fi 8008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8009esac 8010fi 8011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8012printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8014 CFLAGS="$xorg_testset_save_CFLAGS" 8015fi 8016 8017found="no" 8018 8019 if test $found = "no" ; then 8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8022 fi 8023 8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8026 fi 8027 8028 CFLAGS="$CFLAGS -Werror=sequence-point" 8029 8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 8031printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 8032 cacheid=xorg_cv_cc_flag__Werror_sequence_point 8033 if eval test \${$cacheid+y} 8034then : 8035 printf %s "(cached) " >&6 8036else case e in #( 8037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8038/* end confdefs.h. */ 8039int i; 8040int 8041main (void) 8042{ 8043 8044 ; 8045 return 0; 8046} 8047_ACEOF 8048if ac_fn_c_try_link "$LINENO" 8049then : 8050 eval $cacheid=yes 8051else case e in #( 8052 e) eval $cacheid=no ;; 8053esac 8054fi 8055rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8056 conftest$ac_exeext conftest.$ac_ext ;; 8057esac 8058fi 8059 8060 8061 CFLAGS="$xorg_testset_save_CFLAGS" 8062 8063 eval supported=\$$cacheid 8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8065printf "%s\n" "$supported" >&6; } 8066 if test "$supported" = "yes" ; then 8067 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 8068 found="yes" 8069 fi 8070 fi 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086xorg_testset_save_CFLAGS="$CFLAGS" 8087 8088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8092if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8093then : 8094 printf %s "(cached) " >&6 8095else case e in #( 8096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8097/* end confdefs.h. */ 8098int i; 8099_ACEOF 8100if ac_fn_c_try_compile "$LINENO" 8101then : 8102 xorg_cv_cc_flag_unknown_warning_option=yes 8103else case e in #( 8104 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8105esac 8106fi 8107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8108esac 8109fi 8110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8111printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8113 CFLAGS="$xorg_testset_save_CFLAGS" 8114fi 8115 8116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8119 fi 8120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8122printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8123if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8124then : 8125 printf %s "(cached) " >&6 8126else case e in #( 8127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8128/* end confdefs.h. */ 8129int i; 8130_ACEOF 8131if ac_fn_c_try_compile "$LINENO" 8132then : 8133 xorg_cv_cc_flag_unused_command_line_argument=yes 8134else case e in #( 8135 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8136esac 8137fi 8138rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8139esac 8140fi 8141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8142printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8143 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8144 CFLAGS="$xorg_testset_save_CFLAGS" 8145fi 8146 8147found="no" 8148 8149 if test $found = "no" ; then 8150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8152 fi 8153 8154 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8156 fi 8157 8158 CFLAGS="$CFLAGS -Werror=return-type" 8159 8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 8161printf %s "checking if $CC supports -Werror=return-type... " >&6; } 8162 cacheid=xorg_cv_cc_flag__Werror_return_type 8163 if eval test \${$cacheid+y} 8164then : 8165 printf %s "(cached) " >&6 8166else case e in #( 8167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168/* end confdefs.h. */ 8169int i; 8170int 8171main (void) 8172{ 8173 8174 ; 8175 return 0; 8176} 8177_ACEOF 8178if ac_fn_c_try_link "$LINENO" 8179then : 8180 eval $cacheid=yes 8181else case e in #( 8182 e) eval $cacheid=no ;; 8183esac 8184fi 8185rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8186 conftest$ac_exeext conftest.$ac_ext ;; 8187esac 8188fi 8189 8190 8191 CFLAGS="$xorg_testset_save_CFLAGS" 8192 8193 eval supported=\$$cacheid 8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8195printf "%s\n" "$supported" >&6; } 8196 if test "$supported" = "yes" ; then 8197 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8198 found="yes" 8199 fi 8200 fi 8201 8202 if test $found = "no" ; then 8203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8205 fi 8206 8207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8209 fi 8210 8211 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8212 8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8214printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8215 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8216 if eval test \${$cacheid+y} 8217then : 8218 printf %s "(cached) " >&6 8219else case e in #( 8220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8221/* end confdefs.h. */ 8222int i; 8223int 8224main (void) 8225{ 8226 8227 ; 8228 return 0; 8229} 8230_ACEOF 8231if ac_fn_c_try_link "$LINENO" 8232then : 8233 eval $cacheid=yes 8234else case e in #( 8235 e) eval $cacheid=no ;; 8236esac 8237fi 8238rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8239 conftest$ac_exeext conftest.$ac_ext ;; 8240esac 8241fi 8242 8243 8244 CFLAGS="$xorg_testset_save_CFLAGS" 8245 8246 eval supported=\$$cacheid 8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8248printf "%s\n" "$supported" >&6; } 8249 if test "$supported" = "yes" ; then 8250 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8251 found="yes" 8252 fi 8253 fi 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269xorg_testset_save_CFLAGS="$CFLAGS" 8270 8271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8275if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8276then : 8277 printf %s "(cached) " >&6 8278else case e in #( 8279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8280/* end confdefs.h. */ 8281int i; 8282_ACEOF 8283if ac_fn_c_try_compile "$LINENO" 8284then : 8285 xorg_cv_cc_flag_unknown_warning_option=yes 8286else case e in #( 8287 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8288esac 8289fi 8290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8291esac 8292fi 8293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8294printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8296 CFLAGS="$xorg_testset_save_CFLAGS" 8297fi 8298 8299if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8302 fi 8303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8305printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8306if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8307then : 8308 printf %s "(cached) " >&6 8309else case e in #( 8310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8311/* end confdefs.h. */ 8312int i; 8313_ACEOF 8314if ac_fn_c_try_compile "$LINENO" 8315then : 8316 xorg_cv_cc_flag_unused_command_line_argument=yes 8317else case e in #( 8318 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8319esac 8320fi 8321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8322esac 8323fi 8324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8327 CFLAGS="$xorg_testset_save_CFLAGS" 8328fi 8329 8330found="no" 8331 8332 if test $found = "no" ; then 8333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8335 fi 8336 8337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8339 fi 8340 8341 CFLAGS="$CFLAGS -Werror=trigraphs" 8342 8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8344printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8345 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8346 if eval test \${$cacheid+y} 8347then : 8348 printf %s "(cached) " >&6 8349else case e in #( 8350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8351/* end confdefs.h. */ 8352int i; 8353int 8354main (void) 8355{ 8356 8357 ; 8358 return 0; 8359} 8360_ACEOF 8361if ac_fn_c_try_link "$LINENO" 8362then : 8363 eval $cacheid=yes 8364else case e in #( 8365 e) eval $cacheid=no ;; 8366esac 8367fi 8368rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8369 conftest$ac_exeext conftest.$ac_ext ;; 8370esac 8371fi 8372 8373 8374 CFLAGS="$xorg_testset_save_CFLAGS" 8375 8376 eval supported=\$$cacheid 8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8378printf "%s\n" "$supported" >&6; } 8379 if test "$supported" = "yes" ; then 8380 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8381 found="yes" 8382 fi 8383 fi 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399xorg_testset_save_CFLAGS="$CFLAGS" 8400 8401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8404printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8405if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8406then : 8407 printf %s "(cached) " >&6 8408else case e in #( 8409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8410/* end confdefs.h. */ 8411int i; 8412_ACEOF 8413if ac_fn_c_try_compile "$LINENO" 8414then : 8415 xorg_cv_cc_flag_unknown_warning_option=yes 8416else case e in #( 8417 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8418esac 8419fi 8420rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8421esac 8422fi 8423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8424printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8426 CFLAGS="$xorg_testset_save_CFLAGS" 8427fi 8428 8429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8432 fi 8433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8435printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8436if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8437then : 8438 printf %s "(cached) " >&6 8439else case e in #( 8440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8441/* end confdefs.h. */ 8442int i; 8443_ACEOF 8444if ac_fn_c_try_compile "$LINENO" 8445then : 8446 xorg_cv_cc_flag_unused_command_line_argument=yes 8447else case e in #( 8448 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8449esac 8450fi 8451rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8452esac 8453fi 8454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8455printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8457 CFLAGS="$xorg_testset_save_CFLAGS" 8458fi 8459 8460found="no" 8461 8462 if test $found = "no" ; then 8463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8465 fi 8466 8467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8469 fi 8470 8471 CFLAGS="$CFLAGS -Werror=array-bounds" 8472 8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8474printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8475 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8476 if eval test \${$cacheid+y} 8477then : 8478 printf %s "(cached) " >&6 8479else case e in #( 8480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8481/* end confdefs.h. */ 8482int i; 8483int 8484main (void) 8485{ 8486 8487 ; 8488 return 0; 8489} 8490_ACEOF 8491if ac_fn_c_try_link "$LINENO" 8492then : 8493 eval $cacheid=yes 8494else case e in #( 8495 e) eval $cacheid=no ;; 8496esac 8497fi 8498rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8499 conftest$ac_exeext conftest.$ac_ext ;; 8500esac 8501fi 8502 8503 8504 CFLAGS="$xorg_testset_save_CFLAGS" 8505 8506 eval supported=\$$cacheid 8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8508printf "%s\n" "$supported" >&6; } 8509 if test "$supported" = "yes" ; then 8510 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8511 found="yes" 8512 fi 8513 fi 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529xorg_testset_save_CFLAGS="$CFLAGS" 8530 8531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8535if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8536then : 8537 printf %s "(cached) " >&6 8538else case e in #( 8539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540/* end confdefs.h. */ 8541int i; 8542_ACEOF 8543if ac_fn_c_try_compile "$LINENO" 8544then : 8545 xorg_cv_cc_flag_unknown_warning_option=yes 8546else case e in #( 8547 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8548esac 8549fi 8550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8551esac 8552fi 8553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8554printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8556 CFLAGS="$xorg_testset_save_CFLAGS" 8557fi 8558 8559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8562 fi 8563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8565printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8566if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8567then : 8568 printf %s "(cached) " >&6 8569else case e in #( 8570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8571/* end confdefs.h. */ 8572int i; 8573_ACEOF 8574if ac_fn_c_try_compile "$LINENO" 8575then : 8576 xorg_cv_cc_flag_unused_command_line_argument=yes 8577else case e in #( 8578 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8579esac 8580fi 8581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8582esac 8583fi 8584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8587 CFLAGS="$xorg_testset_save_CFLAGS" 8588fi 8589 8590found="no" 8591 8592 if test $found = "no" ; then 8593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8595 fi 8596 8597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8599 fi 8600 8601 CFLAGS="$CFLAGS -Werror=write-strings" 8602 8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8604printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8605 cacheid=xorg_cv_cc_flag__Werror_write_strings 8606 if eval test \${$cacheid+y} 8607then : 8608 printf %s "(cached) " >&6 8609else case e in #( 8610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8611/* end confdefs.h. */ 8612int i; 8613int 8614main (void) 8615{ 8616 8617 ; 8618 return 0; 8619} 8620_ACEOF 8621if ac_fn_c_try_link "$LINENO" 8622then : 8623 eval $cacheid=yes 8624else case e in #( 8625 e) eval $cacheid=no ;; 8626esac 8627fi 8628rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8629 conftest$ac_exeext conftest.$ac_ext ;; 8630esac 8631fi 8632 8633 8634 CFLAGS="$xorg_testset_save_CFLAGS" 8635 8636 eval supported=\$$cacheid 8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8638printf "%s\n" "$supported" >&6; } 8639 if test "$supported" = "yes" ; then 8640 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8641 found="yes" 8642 fi 8643 fi 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659xorg_testset_save_CFLAGS="$CFLAGS" 8660 8661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8664printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8665if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8666then : 8667 printf %s "(cached) " >&6 8668else case e in #( 8669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8670/* end confdefs.h. */ 8671int i; 8672_ACEOF 8673if ac_fn_c_try_compile "$LINENO" 8674then : 8675 xorg_cv_cc_flag_unknown_warning_option=yes 8676else case e in #( 8677 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8678esac 8679fi 8680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8681esac 8682fi 8683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8686 CFLAGS="$xorg_testset_save_CFLAGS" 8687fi 8688 8689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8692 fi 8693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8696if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8697then : 8698 printf %s "(cached) " >&6 8699else case e in #( 8700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8701/* end confdefs.h. */ 8702int i; 8703_ACEOF 8704if ac_fn_c_try_compile "$LINENO" 8705then : 8706 xorg_cv_cc_flag_unused_command_line_argument=yes 8707else case e in #( 8708 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8709esac 8710fi 8711rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8712esac 8713fi 8714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8715printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8717 CFLAGS="$xorg_testset_save_CFLAGS" 8718fi 8719 8720found="no" 8721 8722 if test $found = "no" ; then 8723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8725 fi 8726 8727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8729 fi 8730 8731 CFLAGS="$CFLAGS -Werror=address" 8732 8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8734printf %s "checking if $CC supports -Werror=address... " >&6; } 8735 cacheid=xorg_cv_cc_flag__Werror_address 8736 if eval test \${$cacheid+y} 8737then : 8738 printf %s "(cached) " >&6 8739else case e in #( 8740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742int i; 8743int 8744main (void) 8745{ 8746 8747 ; 8748 return 0; 8749} 8750_ACEOF 8751if ac_fn_c_try_link "$LINENO" 8752then : 8753 eval $cacheid=yes 8754else case e in #( 8755 e) eval $cacheid=no ;; 8756esac 8757fi 8758rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8759 conftest$ac_exeext conftest.$ac_ext ;; 8760esac 8761fi 8762 8763 8764 CFLAGS="$xorg_testset_save_CFLAGS" 8765 8766 eval supported=\$$cacheid 8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8768printf "%s\n" "$supported" >&6; } 8769 if test "$supported" = "yes" ; then 8770 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8771 found="yes" 8772 fi 8773 fi 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789xorg_testset_save_CFLAGS="$CFLAGS" 8790 8791if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8794printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8795if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8796then : 8797 printf %s "(cached) " >&6 8798else case e in #( 8799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8800/* end confdefs.h. */ 8801int i; 8802_ACEOF 8803if ac_fn_c_try_compile "$LINENO" 8804then : 8805 xorg_cv_cc_flag_unknown_warning_option=yes 8806else case e in #( 8807 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8808esac 8809fi 8810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8811esac 8812fi 8813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8814printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8816 CFLAGS="$xorg_testset_save_CFLAGS" 8817fi 8818 8819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8822 fi 8823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8825printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8826if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8827then : 8828 printf %s "(cached) " >&6 8829else case e in #( 8830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8831/* end confdefs.h. */ 8832int i; 8833_ACEOF 8834if ac_fn_c_try_compile "$LINENO" 8835then : 8836 xorg_cv_cc_flag_unused_command_line_argument=yes 8837else case e in #( 8838 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 8839esac 8840fi 8841rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8842esac 8843fi 8844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8845printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8847 CFLAGS="$xorg_testset_save_CFLAGS" 8848fi 8849 8850found="no" 8851 8852 if test $found = "no" ; then 8853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8855 fi 8856 8857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8859 fi 8860 8861 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8862 8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8864printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8865 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8866 if eval test \${$cacheid+y} 8867then : 8868 printf %s "(cached) " >&6 8869else case e in #( 8870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8871/* end confdefs.h. */ 8872int i; 8873int 8874main (void) 8875{ 8876 8877 ; 8878 return 0; 8879} 8880_ACEOF 8881if ac_fn_c_try_link "$LINENO" 8882then : 8883 eval $cacheid=yes 8884else case e in #( 8885 e) eval $cacheid=no ;; 8886esac 8887fi 8888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8889 conftest$ac_exeext conftest.$ac_ext ;; 8890esac 8891fi 8892 8893 8894 CFLAGS="$xorg_testset_save_CFLAGS" 8895 8896 eval supported=\$$cacheid 8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8898printf "%s\n" "$supported" >&6; } 8899 if test "$supported" = "yes" ; then 8900 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8901 found="yes" 8902 fi 8903 fi 8904 8905 if test $found = "no" ; then 8906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8908 fi 8909 8910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8912 fi 8913 8914 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8915 8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8917printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8918 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8919 if eval test \${$cacheid+y} 8920then : 8921 printf %s "(cached) " >&6 8922else case e in #( 8923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8924/* end confdefs.h. */ 8925int i; 8926int 8927main (void) 8928{ 8929 8930 ; 8931 return 0; 8932} 8933_ACEOF 8934if ac_fn_c_try_link "$LINENO" 8935then : 8936 eval $cacheid=yes 8937else case e in #( 8938 e) eval $cacheid=no ;; 8939esac 8940fi 8941rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8942 conftest$ac_exeext conftest.$ac_ext ;; 8943esac 8944fi 8945 8946 8947 CFLAGS="$xorg_testset_save_CFLAGS" 8948 8949 eval supported=\$$cacheid 8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8951printf "%s\n" "$supported" >&6; } 8952 if test "$supported" = "yes" ; then 8953 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8954 found="yes" 8955 fi 8956 fi 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972xorg_testset_save_CFLAGS="$CFLAGS" 8973 8974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8975 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8977printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8978if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8979then : 8980 printf %s "(cached) " >&6 8981else case e in #( 8982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8983/* end confdefs.h. */ 8984int i; 8985_ACEOF 8986if ac_fn_c_try_compile "$LINENO" 8987then : 8988 xorg_cv_cc_flag_unknown_warning_option=yes 8989else case e in #( 8990 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 8991esac 8992fi 8993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 8994esac 8995fi 8996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8999 CFLAGS="$xorg_testset_save_CFLAGS" 9000fi 9001 9002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9004 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9005 fi 9006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9009if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9010then : 9011 printf %s "(cached) " >&6 9012else case e in #( 9013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015int i; 9016_ACEOF 9017if ac_fn_c_try_compile "$LINENO" 9018then : 9019 xorg_cv_cc_flag_unused_command_line_argument=yes 9020else case e in #( 9021 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9022esac 9023fi 9024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9025esac 9026fi 9027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9028printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9030 CFLAGS="$xorg_testset_save_CFLAGS" 9031fi 9032 9033found="no" 9034 9035 if test $found = "no" ; then 9036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9037 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9038 fi 9039 9040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9042 fi 9043 9044 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 9045 9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 9047printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 9048 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 9049 if eval test \${$cacheid+y} 9050then : 9051 printf %s "(cached) " >&6 9052else case e in #( 9053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9054/* end confdefs.h. */ 9055int i; 9056int 9057main (void) 9058{ 9059 9060 ; 9061 return 0; 9062} 9063_ACEOF 9064if ac_fn_c_try_link "$LINENO" 9065then : 9066 eval $cacheid=yes 9067else case e in #( 9068 e) eval $cacheid=no ;; 9069esac 9070fi 9071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9072 conftest$ac_exeext conftest.$ac_ext ;; 9073esac 9074fi 9075 9076 9077 CFLAGS="$xorg_testset_save_CFLAGS" 9078 9079 eval supported=\$$cacheid 9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9081printf "%s\n" "$supported" >&6; } 9082 if test "$supported" = "yes" ; then 9083 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 9084 found="yes" 9085 fi 9086 fi 9087 9088 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 9089else 9090{ 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 9091printf "%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;} 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105xorg_testset_save_CFLAGS="$CFLAGS" 9106 9107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9108 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9110printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9111if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9112then : 9113 printf %s "(cached) " >&6 9114else case e in #( 9115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9116/* end confdefs.h. */ 9117int i; 9118_ACEOF 9119if ac_fn_c_try_compile "$LINENO" 9120then : 9121 xorg_cv_cc_flag_unknown_warning_option=yes 9122else case e in #( 9123 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9124esac 9125fi 9126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9127esac 9128fi 9129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9130printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9132 CFLAGS="$xorg_testset_save_CFLAGS" 9133fi 9134 9135if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9137 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9138 fi 9139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9141printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9142if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9143then : 9144 printf %s "(cached) " >&6 9145else case e in #( 9146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9147/* end confdefs.h. */ 9148int i; 9149_ACEOF 9150if ac_fn_c_try_compile "$LINENO" 9151then : 9152 xorg_cv_cc_flag_unused_command_line_argument=yes 9153else case e in #( 9154 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9155esac 9156fi 9157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9158esac 9159fi 9160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9161printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9163 CFLAGS="$xorg_testset_save_CFLAGS" 9164fi 9165 9166found="no" 9167 9168 if test $found = "no" ; then 9169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9171 fi 9172 9173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9175 fi 9176 9177 CFLAGS="$CFLAGS -Wimplicit" 9178 9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 9180printf %s "checking if $CC supports -Wimplicit... " >&6; } 9181 cacheid=xorg_cv_cc_flag__Wimplicit 9182 if eval test \${$cacheid+y} 9183then : 9184 printf %s "(cached) " >&6 9185else case e in #( 9186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9187/* end confdefs.h. */ 9188int i; 9189int 9190main (void) 9191{ 9192 9193 ; 9194 return 0; 9195} 9196_ACEOF 9197if ac_fn_c_try_link "$LINENO" 9198then : 9199 eval $cacheid=yes 9200else case e in #( 9201 e) eval $cacheid=no ;; 9202esac 9203fi 9204rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9205 conftest$ac_exeext conftest.$ac_ext ;; 9206esac 9207fi 9208 9209 9210 CFLAGS="$xorg_testset_save_CFLAGS" 9211 9212 eval supported=\$$cacheid 9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9214printf "%s\n" "$supported" >&6; } 9215 if test "$supported" = "yes" ; then 9216 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9217 found="yes" 9218 fi 9219 fi 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235xorg_testset_save_CFLAGS="$CFLAGS" 9236 9237if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9238 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9240printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9241if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9242then : 9243 printf %s "(cached) " >&6 9244else case e in #( 9245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9246/* end confdefs.h. */ 9247int i; 9248_ACEOF 9249if ac_fn_c_try_compile "$LINENO" 9250then : 9251 xorg_cv_cc_flag_unknown_warning_option=yes 9252else case e in #( 9253 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9254esac 9255fi 9256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9257esac 9258fi 9259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9260printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9262 CFLAGS="$xorg_testset_save_CFLAGS" 9263fi 9264 9265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9268 fi 9269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9271printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9272if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9273then : 9274 printf %s "(cached) " >&6 9275else case e in #( 9276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9277/* end confdefs.h. */ 9278int i; 9279_ACEOF 9280if ac_fn_c_try_compile "$LINENO" 9281then : 9282 xorg_cv_cc_flag_unused_command_line_argument=yes 9283else case e in #( 9284 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9285esac 9286fi 9287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9288esac 9289fi 9290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9291printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9293 CFLAGS="$xorg_testset_save_CFLAGS" 9294fi 9295 9296found="no" 9297 9298 if test $found = "no" ; then 9299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9301 fi 9302 9303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9305 fi 9306 9307 CFLAGS="$CFLAGS -Wnonnull" 9308 9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9310printf %s "checking if $CC supports -Wnonnull... " >&6; } 9311 cacheid=xorg_cv_cc_flag__Wnonnull 9312 if eval test \${$cacheid+y} 9313then : 9314 printf %s "(cached) " >&6 9315else case e in #( 9316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318int i; 9319int 9320main (void) 9321{ 9322 9323 ; 9324 return 0; 9325} 9326_ACEOF 9327if ac_fn_c_try_link "$LINENO" 9328then : 9329 eval $cacheid=yes 9330else case e in #( 9331 e) eval $cacheid=no ;; 9332esac 9333fi 9334rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9335 conftest$ac_exeext conftest.$ac_ext ;; 9336esac 9337fi 9338 9339 9340 CFLAGS="$xorg_testset_save_CFLAGS" 9341 9342 eval supported=\$$cacheid 9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9344printf "%s\n" "$supported" >&6; } 9345 if test "$supported" = "yes" ; then 9346 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9347 found="yes" 9348 fi 9349 fi 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365xorg_testset_save_CFLAGS="$CFLAGS" 9366 9367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9370printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9371if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9372then : 9373 printf %s "(cached) " >&6 9374else case e in #( 9375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9376/* end confdefs.h. */ 9377int i; 9378_ACEOF 9379if ac_fn_c_try_compile "$LINENO" 9380then : 9381 xorg_cv_cc_flag_unknown_warning_option=yes 9382else case e in #( 9383 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9384esac 9385fi 9386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9387esac 9388fi 9389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9390printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9392 CFLAGS="$xorg_testset_save_CFLAGS" 9393fi 9394 9395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9398 fi 9399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9401printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9402if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9403then : 9404 printf %s "(cached) " >&6 9405else case e in #( 9406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9407/* end confdefs.h. */ 9408int i; 9409_ACEOF 9410if ac_fn_c_try_compile "$LINENO" 9411then : 9412 xorg_cv_cc_flag_unused_command_line_argument=yes 9413else case e in #( 9414 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9415esac 9416fi 9417rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9418esac 9419fi 9420{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9421printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9422 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9423 CFLAGS="$xorg_testset_save_CFLAGS" 9424fi 9425 9426found="no" 9427 9428 if test $found = "no" ; then 9429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9431 fi 9432 9433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9435 fi 9436 9437 CFLAGS="$CFLAGS -Winit-self" 9438 9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9440printf %s "checking if $CC supports -Winit-self... " >&6; } 9441 cacheid=xorg_cv_cc_flag__Winit_self 9442 if eval test \${$cacheid+y} 9443then : 9444 printf %s "(cached) " >&6 9445else case e in #( 9446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447/* end confdefs.h. */ 9448int i; 9449int 9450main (void) 9451{ 9452 9453 ; 9454 return 0; 9455} 9456_ACEOF 9457if ac_fn_c_try_link "$LINENO" 9458then : 9459 eval $cacheid=yes 9460else case e in #( 9461 e) eval $cacheid=no ;; 9462esac 9463fi 9464rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9465 conftest$ac_exeext conftest.$ac_ext ;; 9466esac 9467fi 9468 9469 9470 CFLAGS="$xorg_testset_save_CFLAGS" 9471 9472 eval supported=\$$cacheid 9473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9474printf "%s\n" "$supported" >&6; } 9475 if test "$supported" = "yes" ; then 9476 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9477 found="yes" 9478 fi 9479 fi 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495xorg_testset_save_CFLAGS="$CFLAGS" 9496 9497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9498 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9500printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9501if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9502then : 9503 printf %s "(cached) " >&6 9504else case e in #( 9505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9506/* end confdefs.h. */ 9507int i; 9508_ACEOF 9509if ac_fn_c_try_compile "$LINENO" 9510then : 9511 xorg_cv_cc_flag_unknown_warning_option=yes 9512else case e in #( 9513 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9514esac 9515fi 9516rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9517esac 9518fi 9519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9522 CFLAGS="$xorg_testset_save_CFLAGS" 9523fi 9524 9525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9528 fi 9529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9532if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9533then : 9534 printf %s "(cached) " >&6 9535else case e in #( 9536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9537/* end confdefs.h. */ 9538int i; 9539_ACEOF 9540if ac_fn_c_try_compile "$LINENO" 9541then : 9542 xorg_cv_cc_flag_unused_command_line_argument=yes 9543else case e in #( 9544 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9545esac 9546fi 9547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9548esac 9549fi 9550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9552 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9553 CFLAGS="$xorg_testset_save_CFLAGS" 9554fi 9555 9556found="no" 9557 9558 if test $found = "no" ; then 9559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9561 fi 9562 9563 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9565 fi 9566 9567 CFLAGS="$CFLAGS -Wmain" 9568 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9570printf %s "checking if $CC supports -Wmain... " >&6; } 9571 cacheid=xorg_cv_cc_flag__Wmain 9572 if eval test \${$cacheid+y} 9573then : 9574 printf %s "(cached) " >&6 9575else case e in #( 9576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9577/* end confdefs.h. */ 9578int i; 9579int 9580main (void) 9581{ 9582 9583 ; 9584 return 0; 9585} 9586_ACEOF 9587if ac_fn_c_try_link "$LINENO" 9588then : 9589 eval $cacheid=yes 9590else case e in #( 9591 e) eval $cacheid=no ;; 9592esac 9593fi 9594rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9595 conftest$ac_exeext conftest.$ac_ext ;; 9596esac 9597fi 9598 9599 9600 CFLAGS="$xorg_testset_save_CFLAGS" 9601 9602 eval supported=\$$cacheid 9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9604printf "%s\n" "$supported" >&6; } 9605 if test "$supported" = "yes" ; then 9606 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9607 found="yes" 9608 fi 9609 fi 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625xorg_testset_save_CFLAGS="$CFLAGS" 9626 9627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9631if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9632then : 9633 printf %s "(cached) " >&6 9634else case e in #( 9635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9636/* end confdefs.h. */ 9637int i; 9638_ACEOF 9639if ac_fn_c_try_compile "$LINENO" 9640then : 9641 xorg_cv_cc_flag_unknown_warning_option=yes 9642else case e in #( 9643 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9644esac 9645fi 9646rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9647esac 9648fi 9649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9650printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9652 CFLAGS="$xorg_testset_save_CFLAGS" 9653fi 9654 9655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9658 fi 9659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9661printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9662if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9663then : 9664 printf %s "(cached) " >&6 9665else case e in #( 9666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667/* end confdefs.h. */ 9668int i; 9669_ACEOF 9670if ac_fn_c_try_compile "$LINENO" 9671then : 9672 xorg_cv_cc_flag_unused_command_line_argument=yes 9673else case e in #( 9674 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9675esac 9676fi 9677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9678esac 9679fi 9680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9681printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9682 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9683 CFLAGS="$xorg_testset_save_CFLAGS" 9684fi 9685 9686found="no" 9687 9688 if test $found = "no" ; then 9689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9691 fi 9692 9693 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9695 fi 9696 9697 CFLAGS="$CFLAGS -Wmissing-braces" 9698 9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9700printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9701 cacheid=xorg_cv_cc_flag__Wmissing_braces 9702 if eval test \${$cacheid+y} 9703then : 9704 printf %s "(cached) " >&6 9705else case e in #( 9706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9707/* end confdefs.h. */ 9708int i; 9709int 9710main (void) 9711{ 9712 9713 ; 9714 return 0; 9715} 9716_ACEOF 9717if ac_fn_c_try_link "$LINENO" 9718then : 9719 eval $cacheid=yes 9720else case e in #( 9721 e) eval $cacheid=no ;; 9722esac 9723fi 9724rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9725 conftest$ac_exeext conftest.$ac_ext ;; 9726esac 9727fi 9728 9729 9730 CFLAGS="$xorg_testset_save_CFLAGS" 9731 9732 eval supported=\$$cacheid 9733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9734printf "%s\n" "$supported" >&6; } 9735 if test "$supported" = "yes" ; then 9736 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9737 found="yes" 9738 fi 9739 fi 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755xorg_testset_save_CFLAGS="$CFLAGS" 9756 9757if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9760printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9761if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9762then : 9763 printf %s "(cached) " >&6 9764else case e in #( 9765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9766/* end confdefs.h. */ 9767int i; 9768_ACEOF 9769if ac_fn_c_try_compile "$LINENO" 9770then : 9771 xorg_cv_cc_flag_unknown_warning_option=yes 9772else case e in #( 9773 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9774esac 9775fi 9776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9777esac 9778fi 9779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9780printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9782 CFLAGS="$xorg_testset_save_CFLAGS" 9783fi 9784 9785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9788 fi 9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9791printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9792if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9793then : 9794 printf %s "(cached) " >&6 9795else case e in #( 9796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798int i; 9799_ACEOF 9800if ac_fn_c_try_compile "$LINENO" 9801then : 9802 xorg_cv_cc_flag_unused_command_line_argument=yes 9803else case e in #( 9804 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9805esac 9806fi 9807rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9808esac 9809fi 9810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9811printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9812 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9813 CFLAGS="$xorg_testset_save_CFLAGS" 9814fi 9815 9816found="no" 9817 9818 if test $found = "no" ; then 9819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9821 fi 9822 9823 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9825 fi 9826 9827 CFLAGS="$CFLAGS -Wsequence-point" 9828 9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9830printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9831 cacheid=xorg_cv_cc_flag__Wsequence_point 9832 if eval test \${$cacheid+y} 9833then : 9834 printf %s "(cached) " >&6 9835else case e in #( 9836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9837/* end confdefs.h. */ 9838int i; 9839int 9840main (void) 9841{ 9842 9843 ; 9844 return 0; 9845} 9846_ACEOF 9847if ac_fn_c_try_link "$LINENO" 9848then : 9849 eval $cacheid=yes 9850else case e in #( 9851 e) eval $cacheid=no ;; 9852esac 9853fi 9854rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9855 conftest$ac_exeext conftest.$ac_ext ;; 9856esac 9857fi 9858 9859 9860 CFLAGS="$xorg_testset_save_CFLAGS" 9861 9862 eval supported=\$$cacheid 9863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9864printf "%s\n" "$supported" >&6; } 9865 if test "$supported" = "yes" ; then 9866 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9867 found="yes" 9868 fi 9869 fi 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885xorg_testset_save_CFLAGS="$CFLAGS" 9886 9887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9890printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9891if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9892then : 9893 printf %s "(cached) " >&6 9894else case e in #( 9895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9896/* end confdefs.h. */ 9897int i; 9898_ACEOF 9899if ac_fn_c_try_compile "$LINENO" 9900then : 9901 xorg_cv_cc_flag_unknown_warning_option=yes 9902else case e in #( 9903 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 9904esac 9905fi 9906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9907esac 9908fi 9909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9910printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9912 CFLAGS="$xorg_testset_save_CFLAGS" 9913fi 9914 9915if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9918 fi 9919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9921printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9922if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9923then : 9924 printf %s "(cached) " >&6 9925else case e in #( 9926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9927/* end confdefs.h. */ 9928int i; 9929_ACEOF 9930if ac_fn_c_try_compile "$LINENO" 9931then : 9932 xorg_cv_cc_flag_unused_command_line_argument=yes 9933else case e in #( 9934 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 9935esac 9936fi 9937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 9938esac 9939fi 9940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9941printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9943 CFLAGS="$xorg_testset_save_CFLAGS" 9944fi 9945 9946found="no" 9947 9948 if test $found = "no" ; then 9949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9951 fi 9952 9953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9955 fi 9956 9957 CFLAGS="$CFLAGS -Wreturn-type" 9958 9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9960printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9961 cacheid=xorg_cv_cc_flag__Wreturn_type 9962 if eval test \${$cacheid+y} 9963then : 9964 printf %s "(cached) " >&6 9965else case e in #( 9966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9967/* end confdefs.h. */ 9968int i; 9969int 9970main (void) 9971{ 9972 9973 ; 9974 return 0; 9975} 9976_ACEOF 9977if ac_fn_c_try_link "$LINENO" 9978then : 9979 eval $cacheid=yes 9980else case e in #( 9981 e) eval $cacheid=no ;; 9982esac 9983fi 9984rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9985 conftest$ac_exeext conftest.$ac_ext ;; 9986esac 9987fi 9988 9989 9990 CFLAGS="$xorg_testset_save_CFLAGS" 9991 9992 eval supported=\$$cacheid 9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9994printf "%s\n" "$supported" >&6; } 9995 if test "$supported" = "yes" ; then 9996 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9997 found="yes" 9998 fi 9999 fi 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015xorg_testset_save_CFLAGS="$CFLAGS" 10016 10017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10020printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10021if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10022then : 10023 printf %s "(cached) " >&6 10024else case e in #( 10025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10026/* end confdefs.h. */ 10027int i; 10028_ACEOF 10029if ac_fn_c_try_compile "$LINENO" 10030then : 10031 xorg_cv_cc_flag_unknown_warning_option=yes 10032else case e in #( 10033 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10034esac 10035fi 10036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10037esac 10038fi 10039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10040printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10042 CFLAGS="$xorg_testset_save_CFLAGS" 10043fi 10044 10045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10048 fi 10049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10051printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10052if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10053then : 10054 printf %s "(cached) " >&6 10055else case e in #( 10056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10057/* end confdefs.h. */ 10058int i; 10059_ACEOF 10060if ac_fn_c_try_compile "$LINENO" 10061then : 10062 xorg_cv_cc_flag_unused_command_line_argument=yes 10063else case e in #( 10064 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10065esac 10066fi 10067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10068esac 10069fi 10070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10072 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10073 CFLAGS="$xorg_testset_save_CFLAGS" 10074fi 10075 10076found="no" 10077 10078 if test $found = "no" ; then 10079 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10080 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10081 fi 10082 10083 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10085 fi 10086 10087 CFLAGS="$CFLAGS -Wtrigraphs" 10088 10089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 10090printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 10091 cacheid=xorg_cv_cc_flag__Wtrigraphs 10092 if eval test \${$cacheid+y} 10093then : 10094 printf %s "(cached) " >&6 10095else case e in #( 10096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10097/* end confdefs.h. */ 10098int i; 10099int 10100main (void) 10101{ 10102 10103 ; 10104 return 0; 10105} 10106_ACEOF 10107if ac_fn_c_try_link "$LINENO" 10108then : 10109 eval $cacheid=yes 10110else case e in #( 10111 e) eval $cacheid=no ;; 10112esac 10113fi 10114rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10115 conftest$ac_exeext conftest.$ac_ext ;; 10116esac 10117fi 10118 10119 10120 CFLAGS="$xorg_testset_save_CFLAGS" 10121 10122 eval supported=\$$cacheid 10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10124printf "%s\n" "$supported" >&6; } 10125 if test "$supported" = "yes" ; then 10126 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 10127 found="yes" 10128 fi 10129 fi 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145xorg_testset_save_CFLAGS="$CFLAGS" 10146 10147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10152then : 10153 printf %s "(cached) " >&6 10154else case e in #( 10155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10156/* end confdefs.h. */ 10157int i; 10158_ACEOF 10159if ac_fn_c_try_compile "$LINENO" 10160then : 10161 xorg_cv_cc_flag_unknown_warning_option=yes 10162else case e in #( 10163 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10164esac 10165fi 10166rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10167esac 10168fi 10169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10170printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10171 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10172 CFLAGS="$xorg_testset_save_CFLAGS" 10173fi 10174 10175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10178 fi 10179 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10181printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10182if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10183then : 10184 printf %s "(cached) " >&6 10185else case e in #( 10186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10187/* end confdefs.h. */ 10188int i; 10189_ACEOF 10190if ac_fn_c_try_compile "$LINENO" 10191then : 10192 xorg_cv_cc_flag_unused_command_line_argument=yes 10193else case e in #( 10194 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10195esac 10196fi 10197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10198esac 10199fi 10200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10203 CFLAGS="$xorg_testset_save_CFLAGS" 10204fi 10205 10206found="no" 10207 10208 if test $found = "no" ; then 10209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10211 fi 10212 10213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10215 fi 10216 10217 CFLAGS="$CFLAGS -Warray-bounds" 10218 10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 10220printf %s "checking if $CC supports -Warray-bounds... " >&6; } 10221 cacheid=xorg_cv_cc_flag__Warray_bounds 10222 if eval test \${$cacheid+y} 10223then : 10224 printf %s "(cached) " >&6 10225else case e in #( 10226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228int i; 10229int 10230main (void) 10231{ 10232 10233 ; 10234 return 0; 10235} 10236_ACEOF 10237if ac_fn_c_try_link "$LINENO" 10238then : 10239 eval $cacheid=yes 10240else case e in #( 10241 e) eval $cacheid=no ;; 10242esac 10243fi 10244rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10245 conftest$ac_exeext conftest.$ac_ext ;; 10246esac 10247fi 10248 10249 10250 CFLAGS="$xorg_testset_save_CFLAGS" 10251 10252 eval supported=\$$cacheid 10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10254printf "%s\n" "$supported" >&6; } 10255 if test "$supported" = "yes" ; then 10256 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 10257 found="yes" 10258 fi 10259 fi 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275xorg_testset_save_CFLAGS="$CFLAGS" 10276 10277if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10278 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10280printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10281if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10282then : 10283 printf %s "(cached) " >&6 10284else case e in #( 10285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286/* end confdefs.h. */ 10287int i; 10288_ACEOF 10289if ac_fn_c_try_compile "$LINENO" 10290then : 10291 xorg_cv_cc_flag_unknown_warning_option=yes 10292else case e in #( 10293 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10294esac 10295fi 10296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10297esac 10298fi 10299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10300printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10301 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10302 CFLAGS="$xorg_testset_save_CFLAGS" 10303fi 10304 10305if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10308 fi 10309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10311printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10312if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10313then : 10314 printf %s "(cached) " >&6 10315else case e in #( 10316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10317/* end confdefs.h. */ 10318int i; 10319_ACEOF 10320if ac_fn_c_try_compile "$LINENO" 10321then : 10322 xorg_cv_cc_flag_unused_command_line_argument=yes 10323else case e in #( 10324 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10325esac 10326fi 10327rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10328esac 10329fi 10330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10331printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10332 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10333 CFLAGS="$xorg_testset_save_CFLAGS" 10334fi 10335 10336found="no" 10337 10338 if test $found = "no" ; then 10339 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10341 fi 10342 10343 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10345 fi 10346 10347 CFLAGS="$CFLAGS -Wwrite-strings" 10348 10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10350printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10351 cacheid=xorg_cv_cc_flag__Wwrite_strings 10352 if eval test \${$cacheid+y} 10353then : 10354 printf %s "(cached) " >&6 10355else case e in #( 10356 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10357/* end confdefs.h. */ 10358int i; 10359int 10360main (void) 10361{ 10362 10363 ; 10364 return 0; 10365} 10366_ACEOF 10367if ac_fn_c_try_link "$LINENO" 10368then : 10369 eval $cacheid=yes 10370else case e in #( 10371 e) eval $cacheid=no ;; 10372esac 10373fi 10374rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10375 conftest$ac_exeext conftest.$ac_ext ;; 10376esac 10377fi 10378 10379 10380 CFLAGS="$xorg_testset_save_CFLAGS" 10381 10382 eval supported=\$$cacheid 10383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10384printf "%s\n" "$supported" >&6; } 10385 if test "$supported" = "yes" ; then 10386 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10387 found="yes" 10388 fi 10389 fi 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405xorg_testset_save_CFLAGS="$CFLAGS" 10406 10407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10410printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10411if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10412then : 10413 printf %s "(cached) " >&6 10414else case e in #( 10415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416/* end confdefs.h. */ 10417int i; 10418_ACEOF 10419if ac_fn_c_try_compile "$LINENO" 10420then : 10421 xorg_cv_cc_flag_unknown_warning_option=yes 10422else case e in #( 10423 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10424esac 10425fi 10426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10427esac 10428fi 10429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10430printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10432 CFLAGS="$xorg_testset_save_CFLAGS" 10433fi 10434 10435if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10438 fi 10439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10441printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10442if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10443then : 10444 printf %s "(cached) " >&6 10445else case e in #( 10446 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10447/* end confdefs.h. */ 10448int i; 10449_ACEOF 10450if ac_fn_c_try_compile "$LINENO" 10451then : 10452 xorg_cv_cc_flag_unused_command_line_argument=yes 10453else case e in #( 10454 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10455esac 10456fi 10457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10458esac 10459fi 10460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10461printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10463 CFLAGS="$xorg_testset_save_CFLAGS" 10464fi 10465 10466found="no" 10467 10468 if test $found = "no" ; then 10469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10471 fi 10472 10473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10475 fi 10476 10477 CFLAGS="$CFLAGS -Waddress" 10478 10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10480printf %s "checking if $CC supports -Waddress... " >&6; } 10481 cacheid=xorg_cv_cc_flag__Waddress 10482 if eval test \${$cacheid+y} 10483then : 10484 printf %s "(cached) " >&6 10485else case e in #( 10486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10487/* end confdefs.h. */ 10488int i; 10489int 10490main (void) 10491{ 10492 10493 ; 10494 return 0; 10495} 10496_ACEOF 10497if ac_fn_c_try_link "$LINENO" 10498then : 10499 eval $cacheid=yes 10500else case e in #( 10501 e) eval $cacheid=no ;; 10502esac 10503fi 10504rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10505 conftest$ac_exeext conftest.$ac_ext ;; 10506esac 10507fi 10508 10509 10510 CFLAGS="$xorg_testset_save_CFLAGS" 10511 10512 eval supported=\$$cacheid 10513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10514printf "%s\n" "$supported" >&6; } 10515 if test "$supported" = "yes" ; then 10516 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10517 found="yes" 10518 fi 10519 fi 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535xorg_testset_save_CFLAGS="$CFLAGS" 10536 10537if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10538 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10540printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10541if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10542then : 10543 printf %s "(cached) " >&6 10544else case e in #( 10545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10546/* end confdefs.h. */ 10547int i; 10548_ACEOF 10549if ac_fn_c_try_compile "$LINENO" 10550then : 10551 xorg_cv_cc_flag_unknown_warning_option=yes 10552else case e in #( 10553 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10554esac 10555fi 10556rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10557esac 10558fi 10559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10560printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10562 CFLAGS="$xorg_testset_save_CFLAGS" 10563fi 10564 10565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10568 fi 10569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10571printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10572if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10573then : 10574 printf %s "(cached) " >&6 10575else case e in #( 10576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10577/* end confdefs.h. */ 10578int i; 10579_ACEOF 10580if ac_fn_c_try_compile "$LINENO" 10581then : 10582 xorg_cv_cc_flag_unused_command_line_argument=yes 10583else case e in #( 10584 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10585esac 10586fi 10587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10588esac 10589fi 10590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10591printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10593 CFLAGS="$xorg_testset_save_CFLAGS" 10594fi 10595 10596found="no" 10597 10598 if test $found = "no" ; then 10599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10601 fi 10602 10603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10605 fi 10606 10607 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10608 10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10610printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10611 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10612 if eval test \${$cacheid+y} 10613then : 10614 printf %s "(cached) " >&6 10615else case e in #( 10616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10617/* end confdefs.h. */ 10618int i; 10619int 10620main (void) 10621{ 10622 10623 ; 10624 return 0; 10625} 10626_ACEOF 10627if ac_fn_c_try_link "$LINENO" 10628then : 10629 eval $cacheid=yes 10630else case e in #( 10631 e) eval $cacheid=no ;; 10632esac 10633fi 10634rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10635 conftest$ac_exeext conftest.$ac_ext ;; 10636esac 10637fi 10638 10639 10640 CFLAGS="$xorg_testset_save_CFLAGS" 10641 10642 eval supported=\$$cacheid 10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10644printf "%s\n" "$supported" >&6; } 10645 if test "$supported" = "yes" ; then 10646 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10647 found="yes" 10648 fi 10649 fi 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665xorg_testset_save_CFLAGS="$CFLAGS" 10666 10667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10668 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10670printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10671if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10672then : 10673 printf %s "(cached) " >&6 10674else case e in #( 10675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10676/* end confdefs.h. */ 10677int i; 10678_ACEOF 10679if ac_fn_c_try_compile "$LINENO" 10680then : 10681 xorg_cv_cc_flag_unknown_warning_option=yes 10682else case e in #( 10683 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10684esac 10685fi 10686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10687esac 10688fi 10689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10690printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10691 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10692 CFLAGS="$xorg_testset_save_CFLAGS" 10693fi 10694 10695if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10697 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10698 fi 10699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10701printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10702if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10703then : 10704 printf %s "(cached) " >&6 10705else case e in #( 10706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10707/* end confdefs.h. */ 10708int i; 10709_ACEOF 10710if ac_fn_c_try_compile "$LINENO" 10711then : 10712 xorg_cv_cc_flag_unused_command_line_argument=yes 10713else case e in #( 10714 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10715esac 10716fi 10717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10718esac 10719fi 10720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10723 CFLAGS="$xorg_testset_save_CFLAGS" 10724fi 10725 10726found="no" 10727 10728 if test $found = "no" ; then 10729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10730 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10731 fi 10732 10733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10735 fi 10736 10737 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10738 10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10740printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10741 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10742 if eval test \${$cacheid+y} 10743then : 10744 printf %s "(cached) " >&6 10745else case e in #( 10746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10747/* end confdefs.h. */ 10748int i; 10749int 10750main (void) 10751{ 10752 10753 ; 10754 return 0; 10755} 10756_ACEOF 10757if ac_fn_c_try_link "$LINENO" 10758then : 10759 eval $cacheid=yes 10760else case e in #( 10761 e) eval $cacheid=no ;; 10762esac 10763fi 10764rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10765 conftest$ac_exeext conftest.$ac_ext ;; 10766esac 10767fi 10768 10769 10770 CFLAGS="$xorg_testset_save_CFLAGS" 10771 10772 eval supported=\$$cacheid 10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10774printf "%s\n" "$supported" >&6; } 10775 if test "$supported" = "yes" ; then 10776 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10777 found="yes" 10778 fi 10779 fi 10780 10781 10782fi 10783 10784 10785 10786 10787 10788 10789 10790 CWARNFLAGS="$BASE_CFLAGS" 10791 if test "x$GCC" = xyes ; then 10792 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10793 fi 10794 10795 10796 10797 10798 10799 10800 10801 10802# Check whether --enable-strict-compilation was given. 10803if test ${enable_strict_compilation+y} 10804then : 10805 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10806else case e in #( 10807 e) STRICT_COMPILE=no ;; 10808esac 10809fi 10810 10811 10812 10813 10814 10815 10816STRICT_CFLAGS="" 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830xorg_testset_save_CFLAGS="$CFLAGS" 10831 10832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10835printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10836if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10837then : 10838 printf %s "(cached) " >&6 10839else case e in #( 10840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10841/* end confdefs.h. */ 10842int i; 10843_ACEOF 10844if ac_fn_c_try_compile "$LINENO" 10845then : 10846 xorg_cv_cc_flag_unknown_warning_option=yes 10847else case e in #( 10848 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10849esac 10850fi 10851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10852esac 10853fi 10854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10857 CFLAGS="$xorg_testset_save_CFLAGS" 10858fi 10859 10860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10863 fi 10864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10867if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10868then : 10869 printf %s "(cached) " >&6 10870else case e in #( 10871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10872/* end confdefs.h. */ 10873int i; 10874_ACEOF 10875if ac_fn_c_try_compile "$LINENO" 10876then : 10877 xorg_cv_cc_flag_unused_command_line_argument=yes 10878else case e in #( 10879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 10880esac 10881fi 10882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10883esac 10884fi 10885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10886printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10888 CFLAGS="$xorg_testset_save_CFLAGS" 10889fi 10890 10891found="no" 10892 10893 if test $found = "no" ; then 10894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10895 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10896 fi 10897 10898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10900 fi 10901 10902 CFLAGS="$CFLAGS -pedantic" 10903 10904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10905printf %s "checking if $CC supports -pedantic... " >&6; } 10906 cacheid=xorg_cv_cc_flag__pedantic 10907 if eval test \${$cacheid+y} 10908then : 10909 printf %s "(cached) " >&6 10910else case e in #( 10911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10912/* end confdefs.h. */ 10913int i; 10914int 10915main (void) 10916{ 10917 10918 ; 10919 return 0; 10920} 10921_ACEOF 10922if ac_fn_c_try_link "$LINENO" 10923then : 10924 eval $cacheid=yes 10925else case e in #( 10926 e) eval $cacheid=no ;; 10927esac 10928fi 10929rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10930 conftest$ac_exeext conftest.$ac_ext ;; 10931esac 10932fi 10933 10934 10935 CFLAGS="$xorg_testset_save_CFLAGS" 10936 10937 eval supported=\$$cacheid 10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10939printf "%s\n" "$supported" >&6; } 10940 if test "$supported" = "yes" ; then 10941 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10942 found="yes" 10943 fi 10944 fi 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960xorg_testset_save_CFLAGS="$CFLAGS" 10961 10962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10965printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10966if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10967then : 10968 printf %s "(cached) " >&6 10969else case e in #( 10970 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10971/* end confdefs.h. */ 10972int i; 10973_ACEOF 10974if ac_fn_c_try_compile "$LINENO" 10975then : 10976 xorg_cv_cc_flag_unknown_warning_option=yes 10977else case e in #( 10978 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 10979esac 10980fi 10981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 10982esac 10983fi 10984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10986 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10987 CFLAGS="$xorg_testset_save_CFLAGS" 10988fi 10989 10990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10991 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10993 fi 10994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10997if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10998then : 10999 printf %s "(cached) " >&6 11000else case e in #( 11001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11002/* end confdefs.h. */ 11003int i; 11004_ACEOF 11005if ac_fn_c_try_compile "$LINENO" 11006then : 11007 xorg_cv_cc_flag_unused_command_line_argument=yes 11008else case e in #( 11009 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11010esac 11011fi 11012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11013esac 11014fi 11015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11016printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11018 CFLAGS="$xorg_testset_save_CFLAGS" 11019fi 11020 11021found="no" 11022 11023 if test $found = "no" ; then 11024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11026 fi 11027 11028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11030 fi 11031 11032 CFLAGS="$CFLAGS -Werror" 11033 11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 11035printf %s "checking if $CC supports -Werror... " >&6; } 11036 cacheid=xorg_cv_cc_flag__Werror 11037 if eval test \${$cacheid+y} 11038then : 11039 printf %s "(cached) " >&6 11040else case e in #( 11041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11042/* end confdefs.h. */ 11043int i; 11044int 11045main (void) 11046{ 11047 11048 ; 11049 return 0; 11050} 11051_ACEOF 11052if ac_fn_c_try_link "$LINENO" 11053then : 11054 eval $cacheid=yes 11055else case e in #( 11056 e) eval $cacheid=no ;; 11057esac 11058fi 11059rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11060 conftest$ac_exeext conftest.$ac_ext ;; 11061esac 11062fi 11063 11064 11065 CFLAGS="$xorg_testset_save_CFLAGS" 11066 11067 eval supported=\$$cacheid 11068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11069printf "%s\n" "$supported" >&6; } 11070 if test "$supported" = "yes" ; then 11071 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 11072 found="yes" 11073 fi 11074 fi 11075 11076 if test $found = "no" ; then 11077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11079 fi 11080 11081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11083 fi 11084 11085 CFLAGS="$CFLAGS -errwarn" 11086 11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 11088printf %s "checking if $CC supports -errwarn... " >&6; } 11089 cacheid=xorg_cv_cc_flag__errwarn 11090 if eval test \${$cacheid+y} 11091then : 11092 printf %s "(cached) " >&6 11093else case e in #( 11094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11095/* end confdefs.h. */ 11096int i; 11097int 11098main (void) 11099{ 11100 11101 ; 11102 return 0; 11103} 11104_ACEOF 11105if ac_fn_c_try_link "$LINENO" 11106then : 11107 eval $cacheid=yes 11108else case e in #( 11109 e) eval $cacheid=no ;; 11110esac 11111fi 11112rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11113 conftest$ac_exeext conftest.$ac_ext ;; 11114esac 11115fi 11116 11117 11118 CFLAGS="$xorg_testset_save_CFLAGS" 11119 11120 eval supported=\$$cacheid 11121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11122printf "%s\n" "$supported" >&6; } 11123 if test "$supported" = "yes" ; then 11124 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 11125 found="yes" 11126 fi 11127 fi 11128 11129 11130 11131# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 11132# activate it with -Werror, so we add it here explicitly. 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146xorg_testset_save_CFLAGS="$CFLAGS" 11147 11148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 11149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 11151printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 11152if test ${xorg_cv_cc_flag_unknown_warning_option+y} 11153then : 11154 printf %s "(cached) " >&6 11155else case e in #( 11156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11157/* end confdefs.h. */ 11158int i; 11159_ACEOF 11160if ac_fn_c_try_compile "$LINENO" 11161then : 11162 xorg_cv_cc_flag_unknown_warning_option=yes 11163else case e in #( 11164 e) xorg_cv_cc_flag_unknown_warning_option=no ;; 11165esac 11166fi 11167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11168esac 11169fi 11170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 11171printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 11172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 11173 CFLAGS="$xorg_testset_save_CFLAGS" 11174fi 11175 11176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 11177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11179 fi 11180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 11182printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 11183if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 11184then : 11185 printf %s "(cached) " >&6 11186else case e in #( 11187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11188/* end confdefs.h. */ 11189int i; 11190_ACEOF 11191if ac_fn_c_try_compile "$LINENO" 11192then : 11193 xorg_cv_cc_flag_unused_command_line_argument=yes 11194else case e in #( 11195 e) xorg_cv_cc_flag_unused_command_line_argument=no ;; 11196esac 11197fi 11198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 11199esac 11200fi 11201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 11202printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 11203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 11204 CFLAGS="$xorg_testset_save_CFLAGS" 11205fi 11206 11207found="no" 11208 11209 if test $found = "no" ; then 11210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 11211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 11212 fi 11213 11214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 11215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 11216 fi 11217 11218 CFLAGS="$CFLAGS -Werror=attributes" 11219 11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11221printf %s "checking if $CC supports -Werror=attributes... " >&6; } 11222 cacheid=xorg_cv_cc_flag__Werror_attributes 11223 if eval test \${$cacheid+y} 11224then : 11225 printf %s "(cached) " >&6 11226else case e in #( 11227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228/* end confdefs.h. */ 11229int i; 11230int 11231main (void) 11232{ 11233 11234 ; 11235 return 0; 11236} 11237_ACEOF 11238if ac_fn_c_try_link "$LINENO" 11239then : 11240 eval $cacheid=yes 11241else case e in #( 11242 e) eval $cacheid=no ;; 11243esac 11244fi 11245rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11246 conftest$ac_exeext conftest.$ac_ext ;; 11247esac 11248fi 11249 11250 11251 CFLAGS="$xorg_testset_save_CFLAGS" 11252 11253 eval supported=\$$cacheid 11254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 11255printf "%s\n" "$supported" >&6; } 11256 if test "$supported" = "yes" ; then 11257 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11258 found="yes" 11259 fi 11260 fi 11261 11262 11263 11264if test "x$STRICT_COMPILE" = "xyes"; then 11265 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 11266 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11267fi 11268 11269 11270 11271 11272 11273 11274 11275 11276cat >>confdefs.h <<_ACEOF 11277#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11278_ACEOF 11279 11280 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11281 if test "x$PVM" = "x"; then 11282 PVM="0" 11283 fi 11284 11285printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 11286 11287 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11288 if test "x$PVP" = "x"; then 11289 PVP="0" 11290 fi 11291 11292printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 11293 11294 11295 11296CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 11297mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11298|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 11299touch \$(top_srcdir)/ChangeLog; \ 11300echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 11301 11302 11303 11304 11305macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11306INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11307mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11308|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11309touch \$(top_srcdir)/INSTALL; \ 11310echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11311 11312 11313 11314 11315 11316 11317case $host_os in 11318 solaris*) 11319 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11320 # check for a man page file found in later versions that use 11321 # traditional section numbers instead 11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11323printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11324if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11325then : 11326 printf %s "(cached) " >&6 11327else case e in #( 11328 e) test "$cross_compiling" = yes && 11329 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11330if test -r "/usr/share/man/man7/attributes.7"; then 11331 ac_cv_file__usr_share_man_man7_attributes_7=yes 11332else 11333 ac_cv_file__usr_share_man_man7_attributes_7=no 11334fi ;; 11335esac 11336fi 11337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11338printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11339if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11340then : 11341 SYSV_MAN_SECTIONS=false 11342else case e in #( 11343 e) SYSV_MAN_SECTIONS=true ;; 11344esac 11345fi 11346 11347 ;; 11348 *) SYSV_MAN_SECTIONS=false ;; 11349esac 11350 11351if test x$APP_MAN_SUFFIX = x ; then 11352 APP_MAN_SUFFIX=1 11353fi 11354if test x$APP_MAN_DIR = x ; then 11355 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11356fi 11357 11358if test x$LIB_MAN_SUFFIX = x ; then 11359 LIB_MAN_SUFFIX=3 11360fi 11361if test x$LIB_MAN_DIR = x ; then 11362 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11363fi 11364 11365if test x$FILE_MAN_SUFFIX = x ; then 11366 case $SYSV_MAN_SECTIONS in 11367 true) FILE_MAN_SUFFIX=4 ;; 11368 *) FILE_MAN_SUFFIX=5 ;; 11369 esac 11370fi 11371if test x$FILE_MAN_DIR = x ; then 11372 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11373fi 11374 11375if test x$MISC_MAN_SUFFIX = x ; then 11376 case $SYSV_MAN_SECTIONS in 11377 true) MISC_MAN_SUFFIX=5 ;; 11378 *) MISC_MAN_SUFFIX=7 ;; 11379 esac 11380fi 11381if test x$MISC_MAN_DIR = x ; then 11382 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11383fi 11384 11385if test x$DRIVER_MAN_SUFFIX = x ; then 11386 case $SYSV_MAN_SECTIONS in 11387 true) DRIVER_MAN_SUFFIX=7 ;; 11388 *) DRIVER_MAN_SUFFIX=4 ;; 11389 esac 11390fi 11391if test x$DRIVER_MAN_DIR = x ; then 11392 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11393fi 11394 11395if test x$ADMIN_MAN_SUFFIX = x ; then 11396 case $SYSV_MAN_SECTIONS in 11397 true) ADMIN_MAN_SUFFIX=1m ;; 11398 *) ADMIN_MAN_SUFFIX=8 ;; 11399 esac 11400fi 11401if test x$ADMIN_MAN_DIR = x ; then 11402 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11403fi 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419XORG_MAN_PAGE="X Version 11" 11420 11421MAN_SUBSTS="\ 11422 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11423 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11424 -e 's|__xservername__|Xorg|g' \ 11425 -e 's|__xconfigfile__|xorg.conf|g' \ 11426 -e 's|__projectroot__|\$(prefix)|g' \ 11427 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11428 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11429 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11430 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11431 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11432 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11433 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11434 11435 11436 11437 11438AM_DEFAULT_VERBOSITY=0 11439 11440 11441 11442ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 11443if test "x$ac_cv_header_wchar_h" = xyes 11444then : 11445 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 11446 11447fi 11448ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" 11449if test "x$ac_cv_header_wctype_h" = xyes 11450then : 11451 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h 11452 11453fi 11454ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 11455if test "x$ac_cv_header_langinfo_h" = xyes 11456then : 11457 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h 11458 11459fi 11460 11461 11462# Checks for pkg-config packages 11463 11464pkg_failed=no 11465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROP" >&5 11466printf %s "checking for XPROP... " >&6; } 11467 11468if test -n "$XPROP_CFLAGS"; then 11469 pkg_cv_XPROP_CFLAGS="$XPROP_CFLAGS" 11470 elif test -n "$PKG_CONFIG"; then 11471 if test -n "$PKG_CONFIG" && \ 11472 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 11473 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 11474 ac_status=$? 11475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11476 test $ac_status = 0; }; then 11477 pkg_cv_XPROP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null` 11478 test "x$?" != "x0" && pkg_failed=yes 11479else 11480 pkg_failed=yes 11481fi 11482 else 11483 pkg_failed=untried 11484fi 11485if test -n "$XPROP_LIBS"; then 11486 pkg_cv_XPROP_LIBS="$XPROP_LIBS" 11487 elif test -n "$PKG_CONFIG"; then 11488 if test -n "$PKG_CONFIG" && \ 11489 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5 11490 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5 11491 ac_status=$? 11492 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11493 test $ac_status = 0; }; then 11494 pkg_cv_XPROP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null` 11495 test "x$?" != "x0" && pkg_failed=yes 11496else 11497 pkg_failed=yes 11498fi 11499 else 11500 pkg_failed=untried 11501fi 11502 11503 11504 11505if test $pkg_failed = yes; then 11506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11507printf "%s\n" "no" >&6; } 11508 11509if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11510 _pkg_short_errors_supported=yes 11511else 11512 _pkg_short_errors_supported=no 11513fi 11514 if test $_pkg_short_errors_supported = yes; then 11515 XPROP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 11516 else 11517 XPROP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1` 11518 fi 11519 # Put the nasty error message in config.log where it belongs 11520 echo "$XPROP_PKG_ERRORS" >&5 11521 11522 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met: 11523 11524$XPROP_PKG_ERRORS 11525 11526Consider adjusting the PKG_CONFIG_PATH environment variable if you 11527installed software in a non-standard prefix. 11528 11529Alternatively, you may set the environment variables XPROP_CFLAGS 11530and XPROP_LIBS to avoid the need to call pkg-config. 11531See the pkg-config man page for more details." "$LINENO" 5 11532elif test $pkg_failed = untried; then 11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11534printf "%s\n" "no" >&6; } 11535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 11536printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 11537as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11538is in your PATH or set the PKG_CONFIG environment variable to the full 11539path to pkg-config. 11540 11541Alternatively, you may set the environment variables XPROP_CFLAGS 11542and XPROP_LIBS to avoid the need to call pkg-config. 11543See the pkg-config man page for more details. 11544 11545To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11546See 'config.log' for more details" "$LINENO" 5; } 11547else 11548 XPROP_CFLAGS=$pkg_cv_XPROP_CFLAGS 11549 XPROP_LIBS=$pkg_cv_XPROP_LIBS 11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11551printf "%s\n" "yes" >&6; } 11552 11553fi 11554 11555 11556 11557 11558 11559 11560# Check whether --with-lint was given. 11561if test ${with_lint+y} 11562then : 11563 withval=$with_lint; use_lint=$withval 11564else case e in #( 11565 e) use_lint=no ;; 11566esac 11567fi 11568 11569 11570# Obtain platform specific info like program name and options 11571# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11572case $host_os in 11573 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11574 lint_name=splint 11575 lint_options="-badflag" 11576 ;; 11577 *freebsd* | *netbsd*) 11578 lint_name=lint 11579 lint_options="-u -b" 11580 ;; 11581 *solaris*) 11582 lint_name=lint 11583 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11584 ;; 11585esac 11586 11587# Test for the presence of the program (either guessed by the code or spelled out by the user) 11588if test "x$use_lint" = x"yes" ; then 11589 # Extract the first word of "$lint_name", so it can be a program name with args. 11590set dummy $lint_name; ac_word=$2 11591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11592printf %s "checking for $ac_word... " >&6; } 11593if test ${ac_cv_path_LINT+y} 11594then : 11595 printf %s "(cached) " >&6 11596else case e in #( 11597 e) case $LINT in 11598 [\\/]* | ?:[\\/]*) 11599 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11600 ;; 11601 *) 11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11603for as_dir in $PATH 11604do 11605 IFS=$as_save_IFS 11606 case $as_dir in #((( 11607 '') as_dir=./ ;; 11608 */) ;; 11609 *) as_dir=$as_dir/ ;; 11610 esac 11611 for ac_exec_ext in '' $ac_executable_extensions; do 11612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 11613 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext" 11614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 11615 break 2 11616 fi 11617done 11618 done 11619IFS=$as_save_IFS 11620 11621 ;; 11622esac ;; 11623esac 11624fi 11625LINT=$ac_cv_path_LINT 11626if test -n "$LINT"; then 11627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11628printf "%s\n" "$LINT" >&6; } 11629else 11630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11631printf "%s\n" "no" >&6; } 11632fi 11633 11634 11635 if test "x$LINT" = "x"; then 11636 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11637 fi 11638elif test "x$use_lint" = x"no" ; then 11639 if test "x$LINT" != "x"; then 11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11641printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11642 fi 11643else 11644 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11645fi 11646 11647# User supplied flags override default flags 11648if test "x$LINT_FLAGS" != "x"; then 11649 lint_options=$LINT_FLAGS 11650fi 11651 11652LINT_FLAGS=$lint_options 11653 11654 if test "x$LINT" != x; then 11655 LINT_TRUE= 11656 LINT_FALSE='#' 11657else 11658 LINT_TRUE='#' 11659 LINT_FALSE= 11660fi 11661 11662 11663 11664 11665ac_config_files="$ac_config_files Makefile man/Makefile" 11666 11667cat >confcache <<\_ACEOF 11668# This file is a shell script that caches the results of configure 11669# tests run on this system so they can be shared between configure 11670# scripts and configure runs, see configure's option --config-cache. 11671# It is not useful on other systems. If it contains results you don't 11672# want to keep, you may remove or edit it. 11673# 11674# config.status only pays attention to the cache file if you give it 11675# the --recheck option to rerun configure. 11676# 11677# 'ac_cv_env_foo' variables (set or unset) will be overridden when 11678# loading this file, other *unset* 'ac_cv_foo' will be assigned the 11679# following values. 11680 11681_ACEOF 11682 11683# The following way of writing the cache mishandles newlines in values, 11684# but we know of no workaround that is simple, portable, and efficient. 11685# So, we kill variables containing newlines. 11686# Ultrix sh set writes to stderr and can't be redirected directly, 11687# and sets the high bit in the cache file unless we assign to the vars. 11688( 11689 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11690 eval ac_val=\$$ac_var 11691 case $ac_val in #( 11692 *${as_nl}*) 11693 case $ac_var in #( 11694 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11695printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11696 esac 11697 case $ac_var in #( 11698 _ | IFS | as_nl) ;; #( 11699 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11700 *) { eval $ac_var=; unset $ac_var;} ;; 11701 esac ;; 11702 esac 11703 done 11704 11705 (set) 2>&1 | 11706 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11707 *${as_nl}ac_space=\ *) 11708 # 'set' does not quote correctly, so add quotes: double-quote 11709 # substitution turns \\\\ into \\, and sed turns \\ into \. 11710 sed -n \ 11711 "s/'/'\\\\''/g; 11712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11713 ;; #( 11714 *) 11715 # 'set' quotes correctly as required by POSIX, so do not add quotes. 11716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11717 ;; 11718 esac | 11719 sort 11720) | 11721 sed ' 11722 /^ac_cv_env_/b end 11723 t clear 11724 :clear 11725 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11726 t end 11727 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11728 :end' >>confcache 11729if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11730 if test -w "$cache_file"; then 11731 if test "x$cache_file" != "x/dev/null"; then 11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11733printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11734 if test ! -f "$cache_file" || test -h "$cache_file"; then 11735 cat confcache >"$cache_file" 11736 else 11737 case $cache_file in #( 11738 */* | ?:*) 11739 mv -f confcache "$cache_file"$$ && 11740 mv -f "$cache_file"$$ "$cache_file" ;; #( 11741 *) 11742 mv -f confcache "$cache_file" ;; 11743 esac 11744 fi 11745 fi 11746 else 11747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11748printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11749 fi 11750fi 11751rm -f confcache 11752 11753test "x$prefix" = xNONE && prefix=$ac_default_prefix 11754# Let make expand exec_prefix. 11755test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11756 11757DEFS=-DHAVE_CONFIG_H 11758 11759ac_libobjs= 11760ac_ltlibobjs= 11761U= 11762for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11763 # 1. Remove the extension, and $U if already installed. 11764 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11765 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11766 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11767 # will be set to the directory where LIBOBJS objects are built. 11768 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11769 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11770done 11771LIBOBJS=$ac_libobjs 11772 11773LTLIBOBJS=$ac_ltlibobjs 11774 11775 11776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11777printf %s "checking that generated files are newer than configure... " >&6; } 11778 if test -n "$am_sleep_pid"; then 11779 # Hide warnings about reused PIDs. 11780 wait $am_sleep_pid 2>/dev/null 11781 fi 11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11783printf "%s\n" "done" >&6; } 11784case $enable_silent_rules in # ((( 11785 yes) AM_DEFAULT_VERBOSITY=0;; 11786 no) AM_DEFAULT_VERBOSITY=1;; 11787esac 11788if test $am_cv_make_support_nested_variables = yes; then 11789 AM_V='$(V)' 11790 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11791else 11792 AM_V=$AM_DEFAULT_VERBOSITY 11793 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11794fi 11795 11796 if test -n "$EXEEXT"; then 11797 am__EXEEXT_TRUE= 11798 am__EXEEXT_FALSE='#' 11799else 11800 am__EXEEXT_TRUE='#' 11801 am__EXEEXT_FALSE= 11802fi 11803 11804if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11805 as_fn_error $? "conditional \"AMDEP\" was never defined. 11806Usually this means the macro was only invoked conditionally." "$LINENO" 5 11807fi 11808if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11809 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11810Usually this means the macro was only invoked conditionally." "$LINENO" 5 11811fi 11812if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 11813 as_fn_error $? "conditional \"LINT\" was never defined. 11814Usually this means the macro was only invoked conditionally." "$LINENO" 5 11815fi 11816 11817: "${CONFIG_STATUS=./config.status}" 11818ac_write_fail=0 11819ac_clean_files_save=$ac_clean_files 11820ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11822printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11823as_write_fail=0 11824cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11825#! $SHELL 11826# Generated by $as_me. 11827# Run this file to recreate the current configuration. 11828# Compiler output produced by configure, useful for debugging 11829# configure, is in config.log if it exists. 11830 11831debug=false 11832ac_cs_recheck=false 11833ac_cs_silent=false 11834 11835SHELL=\${CONFIG_SHELL-$SHELL} 11836export SHELL 11837_ASEOF 11838cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11839## -------------------- ## 11840## M4sh Initialization. ## 11841## -------------------- ## 11842 11843# Be more Bourne compatible 11844DUALCASE=1; export DUALCASE # for MKS sh 11845if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11846then : 11847 emulate sh 11848 NULLCMD=: 11849 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11850 # is contrary to our usage. Disable this feature. 11851 alias -g '${1+"$@"}'='"$@"' 11852 setopt NO_GLOB_SUBST 11853else case e in #( 11854 e) case `(set -o) 2>/dev/null` in #( 11855 *posix*) : 11856 set -o posix ;; #( 11857 *) : 11858 ;; 11859esac ;; 11860esac 11861fi 11862 11863 11864 11865# Reset variables that may have inherited troublesome values from 11866# the environment. 11867 11868# IFS needs to be set, to space, tab, and newline, in precisely that order. 11869# (If _AS_PATH_WALK were called with IFS unset, it would have the 11870# side effect of setting IFS to empty, thus disabling word splitting.) 11871# Quoting is to prevent editors from complaining about space-tab. 11872as_nl=' 11873' 11874export as_nl 11875IFS=" "" $as_nl" 11876 11877PS1='$ ' 11878PS2='> ' 11879PS4='+ ' 11880 11881# Ensure predictable behavior from utilities with locale-dependent output. 11882LC_ALL=C 11883export LC_ALL 11884LANGUAGE=C 11885export LANGUAGE 11886 11887# We cannot yet rely on "unset" to work, but we need these variables 11888# to be unset--not just set to an empty or harmless value--now, to 11889# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11890# also avoids known problems related to "unset" and subshell syntax 11891# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11892for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11893do eval test \${$as_var+y} \ 11894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11895done 11896 11897# Ensure that fds 0, 1, and 2 are open. 11898if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11899if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11900if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11901 11902# The user is always right. 11903if ${PATH_SEPARATOR+false} :; then 11904 PATH_SEPARATOR=: 11905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11907 PATH_SEPARATOR=';' 11908 } 11909fi 11910 11911 11912# Find who we are. Look in the path if we contain no directory separator. 11913as_myself= 11914case $0 in #(( 11915 *[\\/]* ) as_myself=$0 ;; 11916 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11917for as_dir in $PATH 11918do 11919 IFS=$as_save_IFS 11920 case $as_dir in #((( 11921 '') as_dir=./ ;; 11922 */) ;; 11923 *) as_dir=$as_dir/ ;; 11924 esac 11925 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11926 done 11927IFS=$as_save_IFS 11928 11929 ;; 11930esac 11931# We did not find ourselves, most probably we were run as 'sh COMMAND' 11932# in which case we are not to be found in the path. 11933if test "x$as_myself" = x; then 11934 as_myself=$0 11935fi 11936if test ! -f "$as_myself"; then 11937 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11938 exit 1 11939fi 11940 11941 11942 11943# as_fn_error STATUS ERROR [LINENO LOG_FD] 11944# ---------------------------------------- 11945# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11946# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11947# script with STATUS, using 1 if that was 0. 11948as_fn_error () 11949{ 11950 as_status=$1; test $as_status -eq 0 && as_status=1 11951 if test "$4"; then 11952 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11954 fi 11955 printf "%s\n" "$as_me: error: $2" >&2 11956 as_fn_exit $as_status 11957} # as_fn_error 11958 11959 11960# as_fn_set_status STATUS 11961# ----------------------- 11962# Set $? to STATUS, without forking. 11963as_fn_set_status () 11964{ 11965 return $1 11966} # as_fn_set_status 11967 11968# as_fn_exit STATUS 11969# ----------------- 11970# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11971as_fn_exit () 11972{ 11973 set +e 11974 as_fn_set_status $1 11975 exit $1 11976} # as_fn_exit 11977 11978# as_fn_unset VAR 11979# --------------- 11980# Portably unset VAR. 11981as_fn_unset () 11982{ 11983 { eval $1=; unset $1;} 11984} 11985as_unset=as_fn_unset 11986 11987# as_fn_append VAR VALUE 11988# ---------------------- 11989# Append the text in VALUE to the end of the definition contained in VAR. Take 11990# advantage of any shell optimizations that allow amortized linear growth over 11991# repeated appends, instead of the typical quadratic growth present in naive 11992# implementations. 11993if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11994then : 11995 eval 'as_fn_append () 11996 { 11997 eval $1+=\$2 11998 }' 11999else case e in #( 12000 e) as_fn_append () 12001 { 12002 eval $1=\$$1\$2 12003 } ;; 12004esac 12005fi # as_fn_append 12006 12007# as_fn_arith ARG... 12008# ------------------ 12009# Perform arithmetic evaluation on the ARGs, and store the result in the 12010# global $as_val. Take advantage of shells that can avoid forks. The arguments 12011# must be portable across $(()) and expr. 12012if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 12013then : 12014 eval 'as_fn_arith () 12015 { 12016 as_val=$(( $* )) 12017 }' 12018else case e in #( 12019 e) as_fn_arith () 12020 { 12021 as_val=`expr "$@" || test $? -eq 1` 12022 } ;; 12023esac 12024fi # as_fn_arith 12025 12026 12027if expr a : '\(a\)' >/dev/null 2>&1 && 12028 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12029 as_expr=expr 12030else 12031 as_expr=false 12032fi 12033 12034if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12035 as_basename=basename 12036else 12037 as_basename=false 12038fi 12039 12040if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12041 as_dirname=dirname 12042else 12043 as_dirname=false 12044fi 12045 12046as_me=`$as_basename -- "$0" || 12047$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12048 X"$0" : 'X\(//\)$' \| \ 12049 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12050printf "%s\n" X/"$0" | 12051 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12052 s//\1/ 12053 q 12054 } 12055 /^X\/\(\/\/\)$/{ 12056 s//\1/ 12057 q 12058 } 12059 /^X\/\(\/\).*/{ 12060 s//\1/ 12061 q 12062 } 12063 s/.*/./; q'` 12064 12065# Avoid depending upon Character Ranges. 12066as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12067as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12068as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12069as_cr_digits='0123456789' 12070as_cr_alnum=$as_cr_Letters$as_cr_digits 12071 12072 12073# Determine whether it's possible to make 'echo' print without a newline. 12074# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 12075# for compatibility with existing Makefiles. 12076ECHO_C= ECHO_N= ECHO_T= 12077case `echo -n x` in #((((( 12078-n*) 12079 case `echo 'xy\c'` in 12080 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12081 xy) ECHO_C='\c';; 12082 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12083 ECHO_T=' ';; 12084 esac;; 12085*) 12086 ECHO_N='-n';; 12087esac 12088 12089# For backward compatibility with old third-party macros, we provide 12090# the shell variables $as_echo and $as_echo_n. New code should use 12091# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 12092as_echo='printf %s\n' 12093as_echo_n='printf %s' 12094 12095rm -f conf$$ conf$$.exe conf$$.file 12096if test -d conf$$.dir; then 12097 rm -f conf$$.dir/conf$$.file 12098else 12099 rm -f conf$$.dir 12100 mkdir conf$$.dir 2>/dev/null 12101fi 12102if (echo >conf$$.file) 2>/dev/null; then 12103 if ln -s conf$$.file conf$$ 2>/dev/null; then 12104 as_ln_s='ln -s' 12105 # ... but there are two gotchas: 12106 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 12107 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 12108 # In both cases, we have to default to 'cp -pR'. 12109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12110 as_ln_s='cp -pR' 12111 elif ln conf$$.file conf$$ 2>/dev/null; then 12112 as_ln_s=ln 12113 else 12114 as_ln_s='cp -pR' 12115 fi 12116else 12117 as_ln_s='cp -pR' 12118fi 12119rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12120rmdir conf$$.dir 2>/dev/null 12121 12122 12123# as_fn_mkdir_p 12124# ------------- 12125# Create "$as_dir" as a directory, including parents if necessary. 12126as_fn_mkdir_p () 12127{ 12128 12129 case $as_dir in #( 12130 -*) as_dir=./$as_dir;; 12131 esac 12132 test -d "$as_dir" || eval $as_mkdir_p || { 12133 as_dirs= 12134 while :; do 12135 case $as_dir in #( 12136 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12137 *) as_qdir=$as_dir;; 12138 esac 12139 as_dirs="'$as_qdir' $as_dirs" 12140 as_dir=`$as_dirname -- "$as_dir" || 12141$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12142 X"$as_dir" : 'X\(//\)[^/]' \| \ 12143 X"$as_dir" : 'X\(//\)$' \| \ 12144 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12145printf "%s\n" X"$as_dir" | 12146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12147 s//\1/ 12148 q 12149 } 12150 /^X\(\/\/\)[^/].*/{ 12151 s//\1/ 12152 q 12153 } 12154 /^X\(\/\/\)$/{ 12155 s//\1/ 12156 q 12157 } 12158 /^X\(\/\).*/{ 12159 s//\1/ 12160 q 12161 } 12162 s/.*/./; q'` 12163 test -d "$as_dir" && break 12164 done 12165 test -z "$as_dirs" || eval "mkdir $as_dirs" 12166 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12167 12168 12169} # as_fn_mkdir_p 12170if mkdir -p . 2>/dev/null; then 12171 as_mkdir_p='mkdir -p "$as_dir"' 12172else 12173 test -d ./-p && rmdir ./-p 12174 as_mkdir_p=false 12175fi 12176 12177 12178# as_fn_executable_p FILE 12179# ----------------------- 12180# Test if FILE is an executable regular file. 12181as_fn_executable_p () 12182{ 12183 test -f "$1" && test -x "$1" 12184} # as_fn_executable_p 12185as_test_x='test -x' 12186as_executable_p=as_fn_executable_p 12187 12188# Sed expression to map a string onto a valid CPP name. 12189as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 12190as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 12191 12192# Sed expression to map a string onto a valid variable name. 12193as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 12194as_tr_sh="eval sed '$as_sed_sh'" # deprecated 12195 12196 12197exec 6>&1 12198## ----------------------------------- ## 12199## Main body of $CONFIG_STATUS script. ## 12200## ----------------------------------- ## 12201_ASEOF 12202test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12203 12204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12205# Save the log message, to keep $0 and so on meaningful, and to 12206# report actual input values of CONFIG_FILES etc. instead of their 12207# values after options handling. 12208ac_log=" 12209This file was extended by xprop $as_me 1.2.8, which was 12210generated by GNU Autoconf 2.72. Invocation command line was 12211 12212 CONFIG_FILES = $CONFIG_FILES 12213 CONFIG_HEADERS = $CONFIG_HEADERS 12214 CONFIG_LINKS = $CONFIG_LINKS 12215 CONFIG_COMMANDS = $CONFIG_COMMANDS 12216 $ $0 $@ 12217 12218on `(hostname || uname -n) 2>/dev/null | sed 1q` 12219" 12220 12221_ACEOF 12222 12223case $ac_config_files in *" 12224"*) set x $ac_config_files; shift; ac_config_files=$*;; 12225esac 12226 12227case $ac_config_headers in *" 12228"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12229esac 12230 12231 12232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12233# Files that config.status was made for. 12234config_files="$ac_config_files" 12235config_headers="$ac_config_headers" 12236config_commands="$ac_config_commands" 12237 12238_ACEOF 12239 12240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12241ac_cs_usage="\ 12242'$as_me' instantiates files and other configuration actions 12243from templates according to the current configuration. Unless the files 12244and actions are specified as TAGs, all are instantiated by default. 12245 12246Usage: $0 [OPTION]... [TAG]... 12247 12248 -h, --help print this help, then exit 12249 -V, --version print version number and configuration settings, then exit 12250 --config print configuration, then exit 12251 -q, --quiet, --silent 12252 do not print progress messages 12253 -d, --debug don't remove temporary files 12254 --recheck update $as_me by reconfiguring in the same conditions 12255 --file=FILE[:TEMPLATE] 12256 instantiate the configuration file FILE 12257 --header=FILE[:TEMPLATE] 12258 instantiate the configuration header FILE 12259 12260Configuration files: 12261$config_files 12262 12263Configuration headers: 12264$config_headers 12265 12266Configuration commands: 12267$config_commands 12268 12269Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/issues>." 12270 12271_ACEOF 12272ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 12273ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 12274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12275ac_cs_config='$ac_cs_config_escaped' 12276ac_cs_version="\\ 12277xprop config.status 1.2.8 12278configured by $0, generated by GNU Autoconf 2.72, 12279 with options \\"\$ac_cs_config\\" 12280 12281Copyright (C) 2023 Free Software Foundation, Inc. 12282This config.status script is free software; the Free Software Foundation 12283gives unlimited permission to copy, distribute and modify it." 12284 12285ac_pwd='$ac_pwd' 12286srcdir='$srcdir' 12287INSTALL='$INSTALL' 12288MKDIR_P='$MKDIR_P' 12289AWK='$AWK' 12290test -n "\$AWK" || AWK=awk 12291_ACEOF 12292 12293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12294# The default lists apply if the user does not specify any file. 12295ac_need_defaults=: 12296while test $# != 0 12297do 12298 case $1 in 12299 --*=?*) 12300 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12301 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12302 ac_shift=: 12303 ;; 12304 --*=) 12305 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12306 ac_optarg= 12307 ac_shift=: 12308 ;; 12309 *) 12310 ac_option=$1 12311 ac_optarg=$2 12312 ac_shift=shift 12313 ;; 12314 esac 12315 12316 case $ac_option in 12317 # Handling of the options. 12318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12319 ac_cs_recheck=: ;; 12320 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12321 printf "%s\n" "$ac_cs_version"; exit ;; 12322 --config | --confi | --conf | --con | --co | --c ) 12323 printf "%s\n" "$ac_cs_config"; exit ;; 12324 --debug | --debu | --deb | --de | --d | -d ) 12325 debug=: ;; 12326 --file | --fil | --fi | --f ) 12327 $ac_shift 12328 case $ac_optarg in 12329 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12330 '') as_fn_error $? "missing file argument" ;; 12331 esac 12332 as_fn_append CONFIG_FILES " '$ac_optarg'" 12333 ac_need_defaults=false;; 12334 --header | --heade | --head | --hea ) 12335 $ac_shift 12336 case $ac_optarg in 12337 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12338 esac 12339 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12340 ac_need_defaults=false;; 12341 --he | --h) 12342 # Conflict between --help and --header 12343 as_fn_error $? "ambiguous option: '$1' 12344Try '$0 --help' for more information.";; 12345 --help | --hel | -h ) 12346 printf "%s\n" "$ac_cs_usage"; exit ;; 12347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12348 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12349 ac_cs_silent=: ;; 12350 12351 # This is an error. 12352 -*) as_fn_error $? "unrecognized option: '$1' 12353Try '$0 --help' for more information." ;; 12354 12355 *) as_fn_append ac_config_targets " $1" 12356 ac_need_defaults=false ;; 12357 12358 esac 12359 shift 12360done 12361 12362ac_configure_extra_args= 12363 12364if $ac_cs_silent; then 12365 exec 6>/dev/null 12366 ac_configure_extra_args="$ac_configure_extra_args --silent" 12367fi 12368 12369_ACEOF 12370cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12371if \$ac_cs_recheck; then 12372 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12373 shift 12374 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12375 CONFIG_SHELL='$SHELL' 12376 export CONFIG_SHELL 12377 exec "\$@" 12378fi 12379 12380_ACEOF 12381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12382exec 5>>config.log 12383{ 12384 echo 12385 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12386## Running $as_me. ## 12387_ASBOX 12388 printf "%s\n" "$ac_log" 12389} >&5 12390 12391_ACEOF 12392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12393# 12394# INIT-COMMANDS 12395# 12396AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12397 12398_ACEOF 12399 12400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12401 12402# Handling of arguments. 12403for ac_config_target in $ac_config_targets 12404do 12405 case $ac_config_target in 12406 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12407 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12408 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12409 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12410 12411 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 12412 esac 12413done 12414 12415 12416# If the user did not use the arguments to specify the items to instantiate, 12417# then the envvar interface is used. Set only those that are not. 12418# We use the long form for the default assignment because of an extremely 12419# bizarre bug on SunOS 4.1.3. 12420if $ac_need_defaults; then 12421 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12422 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12423 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12424fi 12425 12426# Have a temporary directory for convenience. Make it in the build tree 12427# simply because there is no reason against having it here, and in addition, 12428# creating and moving files from /tmp can sometimes cause problems. 12429# Hook for its removal unless debugging. 12430# Note that there is a small window in which the directory will not be cleaned: 12431# after its creation but before its name has been assigned to '$tmp'. 12432$debug || 12433{ 12434 tmp= ac_tmp= 12435 trap 'exit_status=$? 12436 : "${ac_tmp:=$tmp}" 12437 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12438' 0 12439 trap 'as_fn_exit 1' 1 2 13 15 12440} 12441# Create a (secure) tmp directory for tmp files. 12442 12443{ 12444 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12445 test -d "$tmp" 12446} || 12447{ 12448 tmp=./conf$$-$RANDOM 12449 (umask 077 && mkdir "$tmp") 12450} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12451ac_tmp=$tmp 12452 12453# Set up the scripts for CONFIG_FILES section. 12454# No need to generate them if there are no CONFIG_FILES. 12455# This happens for instance with './config.status config.h'. 12456if test -n "$CONFIG_FILES"; then 12457 12458 12459ac_cr=`echo X | tr X '\015'` 12460# On cygwin, bash can eat \r inside `` if the user requested igncr. 12461# But we know of no other shell where ac_cr would be empty at this 12462# point, so we can use a bashism as a fallback. 12463if test "x$ac_cr" = x; then 12464 eval ac_cr=\$\'\\r\' 12465fi 12466ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12467if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12468 ac_cs_awk_cr='\\r' 12469else 12470 ac_cs_awk_cr=$ac_cr 12471fi 12472 12473echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12474_ACEOF 12475 12476 12477{ 12478 echo "cat >conf$$subs.awk <<_ACEOF" && 12479 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12480 echo "_ACEOF" 12481} >conf$$subs.sh || 12482 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12483ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12484ac_delim='%!_!# ' 12485for ac_last_try in false false false false false :; do 12486 . ./conf$$subs.sh || 12487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12488 12489 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12490 if test $ac_delim_n = $ac_delim_num; then 12491 break 12492 elif $ac_last_try; then 12493 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12494 else 12495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12496 fi 12497done 12498rm -f conf$$subs.sh 12499 12500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12501cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12502_ACEOF 12503sed -n ' 12504h 12505s/^/S["/; s/!.*/"]=/ 12506p 12507g 12508s/^[^!]*!// 12509:repl 12510t repl 12511s/'"$ac_delim"'$// 12512t delim 12513:nl 12514h 12515s/\(.\{148\}\)..*/\1/ 12516t more1 12517s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12518p 12519n 12520b repl 12521:more1 12522s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12523p 12524g 12525s/.\{148\}// 12526t nl 12527:delim 12528h 12529s/\(.\{148\}\)..*/\1/ 12530t more2 12531s/["\\]/\\&/g; s/^/"/; s/$/"/ 12532p 12533b 12534:more2 12535s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12536p 12537g 12538s/.\{148\}// 12539t delim 12540' <conf$$subs.awk | sed ' 12541/^[^""]/{ 12542 N 12543 s/\n// 12544} 12545' >>$CONFIG_STATUS || ac_write_fail=1 12546rm -f conf$$subs.awk 12547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12548_ACAWK 12549cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12550 for (key in S) S_is_set[key] = 1 12551 FS = "" 12552 12553} 12554{ 12555 line = $ 0 12556 nfields = split(line, field, "@") 12557 substed = 0 12558 len = length(field[1]) 12559 for (i = 2; i < nfields; i++) { 12560 key = field[i] 12561 keylen = length(key) 12562 if (S_is_set[key]) { 12563 value = S[key] 12564 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12565 len += length(value) + length(field[++i]) 12566 substed = 1 12567 } else 12568 len += 1 + keylen 12569 } 12570 12571 print line 12572} 12573 12574_ACAWK 12575_ACEOF 12576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12577if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12578 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12579else 12580 cat 12581fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12582 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12583_ACEOF 12584 12585# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12586# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12587# trailing colons and then remove the whole line if VPATH becomes empty 12588# (actually we leave an empty line to preserve line numbers). 12589if test "x$srcdir" = x.; then 12590 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12591h 12592s/// 12593s/^/:/ 12594s/[ ]*$/:/ 12595s/:\$(srcdir):/:/g 12596s/:\${srcdir}:/:/g 12597s/:@srcdir@:/:/g 12598s/^:*// 12599s/:*$// 12600x 12601s/\(=[ ]*\).*/\1/ 12602G 12603s/\n// 12604s/^[^=]*=[ ]*$// 12605}' 12606fi 12607 12608cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12609fi # test -n "$CONFIG_FILES" 12610 12611# Set up the scripts for CONFIG_HEADERS section. 12612# No need to generate them if there are no CONFIG_HEADERS. 12613# This happens for instance with './config.status Makefile'. 12614if test -n "$CONFIG_HEADERS"; then 12615cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12616BEGIN { 12617_ACEOF 12618 12619# Transform confdefs.h into an awk script 'defines.awk', embedded as 12620# here-document in config.status, that substitutes the proper values into 12621# config.h.in to produce config.h. 12622 12623# Create a delimiter string that does not exist in confdefs.h, to ease 12624# handling of long lines. 12625ac_delim='%!_!# ' 12626for ac_last_try in false false :; do 12627 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12628 if test -z "$ac_tt"; then 12629 break 12630 elif $ac_last_try; then 12631 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12632 else 12633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12634 fi 12635done 12636 12637# For the awk script, D is an array of macro values keyed by name, 12638# likewise P contains macro parameters if any. Preserve backslash 12639# newline sequences. 12640 12641ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12642sed -n ' 12643s/.\{148\}/&'"$ac_delim"'/g 12644t rset 12645:rset 12646s/^[ ]*#[ ]*define[ ][ ]*/ / 12647t def 12648d 12649:def 12650s/\\$// 12651t bsnl 12652s/["\\]/\\&/g 12653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12654D["\1"]=" \3"/p 12655s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12656d 12657:bsnl 12658s/["\\]/\\&/g 12659s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12660D["\1"]=" \3\\\\\\n"\\/p 12661t cont 12662s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12663t cont 12664d 12665:cont 12666n 12667s/.\{148\}/&'"$ac_delim"'/g 12668t clear 12669:clear 12670s/\\$// 12671t bsnlc 12672s/["\\]/\\&/g; s/^/"/; s/$/"/p 12673d 12674:bsnlc 12675s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12676b cont 12677' <confdefs.h | sed ' 12678s/'"$ac_delim"'/"\\\ 12679"/g' >>$CONFIG_STATUS || ac_write_fail=1 12680 12681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12682 for (key in D) D_is_set[key] = 1 12683 FS = "" 12684} 12685/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12686 line = \$ 0 12687 split(line, arg, " ") 12688 if (arg[1] == "#") { 12689 defundef = arg[2] 12690 mac1 = arg[3] 12691 } else { 12692 defundef = substr(arg[1], 2) 12693 mac1 = arg[2] 12694 } 12695 split(mac1, mac2, "(") #) 12696 macro = mac2[1] 12697 prefix = substr(line, 1, index(line, defundef) - 1) 12698 if (D_is_set[macro]) { 12699 # Preserve the white space surrounding the "#". 12700 print prefix "define", macro P[macro] D[macro] 12701 next 12702 } else { 12703 # Replace #undef with comments. This is necessary, for example, 12704 # in the case of _POSIX_SOURCE, which is predefined and required 12705 # on some systems where configure will not decide to define it. 12706 if (defundef == "undef") { 12707 print "/*", prefix defundef, macro, "*/" 12708 next 12709 } 12710 } 12711} 12712{ print } 12713_ACAWK 12714_ACEOF 12715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12716 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12717fi # test -n "$CONFIG_HEADERS" 12718 12719 12720eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12721shift 12722for ac_tag 12723do 12724 case $ac_tag in 12725 :[FHLC]) ac_mode=$ac_tag; continue;; 12726 esac 12727 case $ac_mode$ac_tag in 12728 :[FHL]*:*);; 12729 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 12730 :[FH]-) ac_tag=-:-;; 12731 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12732 esac 12733 ac_save_IFS=$IFS 12734 IFS=: 12735 set x $ac_tag 12736 IFS=$ac_save_IFS 12737 shift 12738 ac_file=$1 12739 shift 12740 12741 case $ac_mode in 12742 :L) ac_source=$1;; 12743 :[FH]) 12744 ac_file_inputs= 12745 for ac_f 12746 do 12747 case $ac_f in 12748 -) ac_f="$ac_tmp/stdin";; 12749 *) # Look for the file first in the build tree, then in the source tree 12750 # (if the path is not absolute). The absolute path cannot be DOS-style, 12751 # because $ac_f cannot contain ':'. 12752 test -f "$ac_f" || 12753 case $ac_f in 12754 [\\/$]*) false;; 12755 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12756 esac || 12757 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 12758 esac 12759 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12760 as_fn_append ac_file_inputs " '$ac_f'" 12761 done 12762 12763 # Let's still pretend it is 'configure' which instantiates (i.e., don't 12764 # use $as_me), people would be surprised to read: 12765 # /* config.h. Generated by config.status. */ 12766 configure_input='Generated from '` 12767 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12768 `' by configure.' 12769 if test x"$ac_file" != x-; then 12770 configure_input="$ac_file. $configure_input" 12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12772printf "%s\n" "$as_me: creating $ac_file" >&6;} 12773 fi 12774 # Neutralize special characters interpreted by sed in replacement strings. 12775 case $configure_input in #( 12776 *\&* | *\|* | *\\* ) 12777 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12778 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12779 *) ac_sed_conf_input=$configure_input;; 12780 esac 12781 12782 case $ac_tag in 12783 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12784 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12785 esac 12786 ;; 12787 esac 12788 12789 ac_dir=`$as_dirname -- "$ac_file" || 12790$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12791 X"$ac_file" : 'X\(//\)[^/]' \| \ 12792 X"$ac_file" : 'X\(//\)$' \| \ 12793 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12794printf "%s\n" X"$ac_file" | 12795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12796 s//\1/ 12797 q 12798 } 12799 /^X\(\/\/\)[^/].*/{ 12800 s//\1/ 12801 q 12802 } 12803 /^X\(\/\/\)$/{ 12804 s//\1/ 12805 q 12806 } 12807 /^X\(\/\).*/{ 12808 s//\1/ 12809 q 12810 } 12811 s/.*/./; q'` 12812 as_dir="$ac_dir"; as_fn_mkdir_p 12813 ac_builddir=. 12814 12815case "$ac_dir" in 12816.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12817*) 12818 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12819 # A ".." for each directory in $ac_dir_suffix. 12820 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12821 case $ac_top_builddir_sub in 12822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12824 esac ;; 12825esac 12826ac_abs_top_builddir=$ac_pwd 12827ac_abs_builddir=$ac_pwd$ac_dir_suffix 12828# for backward compatibility: 12829ac_top_builddir=$ac_top_build_prefix 12830 12831case $srcdir in 12832 .) # We are building in place. 12833 ac_srcdir=. 12834 ac_top_srcdir=$ac_top_builddir_sub 12835 ac_abs_top_srcdir=$ac_pwd ;; 12836 [\\/]* | ?:[\\/]* ) # Absolute name. 12837 ac_srcdir=$srcdir$ac_dir_suffix; 12838 ac_top_srcdir=$srcdir 12839 ac_abs_top_srcdir=$srcdir ;; 12840 *) # Relative name. 12841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12842 ac_top_srcdir=$ac_top_build_prefix$srcdir 12843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12844esac 12845ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12846 12847 12848 case $ac_mode in 12849 :F) 12850 # 12851 # CONFIG_FILE 12852 # 12853 12854 case $INSTALL in 12855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12857 esac 12858 ac_MKDIR_P=$MKDIR_P 12859 case $MKDIR_P in 12860 [\\/$]* | ?:[\\/]* ) ;; 12861 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12862 esac 12863_ACEOF 12864 12865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12866# If the template does not know about datarootdir, expand it. 12867# FIXME: This hack should be removed a few years after 2.60. 12868ac_datarootdir_hack=; ac_datarootdir_seen= 12869ac_sed_dataroot=' 12870/datarootdir/ { 12871 p 12872 q 12873} 12874/@datadir@/p 12875/@docdir@/p 12876/@infodir@/p 12877/@localedir@/p 12878/@mandir@/p' 12879case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12880*datarootdir*) ac_datarootdir_seen=yes;; 12881*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12883printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12884_ACEOF 12885cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12886 ac_datarootdir_hack=' 12887 s&@datadir@&$datadir&g 12888 s&@docdir@&$docdir&g 12889 s&@infodir@&$infodir&g 12890 s&@localedir@&$localedir&g 12891 s&@mandir@&$mandir&g 12892 s&\\\${datarootdir}&$datarootdir&g' ;; 12893esac 12894_ACEOF 12895 12896# Neutralize VPATH when '$srcdir' = '.'. 12897# Shell code in configure.ac might set extrasub. 12898# FIXME: do we really want to maintain this feature? 12899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12900ac_sed_extra="$ac_vpsub 12901$extrasub 12902_ACEOF 12903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12904:t 12905/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12906s|@configure_input@|$ac_sed_conf_input|;t t 12907s&@top_builddir@&$ac_top_builddir_sub&;t t 12908s&@top_build_prefix@&$ac_top_build_prefix&;t t 12909s&@srcdir@&$ac_srcdir&;t t 12910s&@abs_srcdir@&$ac_abs_srcdir&;t t 12911s&@top_srcdir@&$ac_top_srcdir&;t t 12912s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12913s&@builddir@&$ac_builddir&;t t 12914s&@abs_builddir@&$ac_abs_builddir&;t t 12915s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12916s&@INSTALL@&$ac_INSTALL&;t t 12917s&@MKDIR_P@&$ac_MKDIR_P&;t t 12918$ac_datarootdir_hack 12919" 12920eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12921 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12922 12923test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12924 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12925 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12926 "$ac_tmp/out"`; test -z "$ac_out"; } && 12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12928which seems to be undefined. Please make sure it is defined" >&5 12929printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 12930which seems to be undefined. Please make sure it is defined" >&2;} 12931 12932 rm -f "$ac_tmp/stdin" 12933 case $ac_file in 12934 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12935 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12936 esac \ 12937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12938 ;; 12939 :H) 12940 # 12941 # CONFIG_HEADER 12942 # 12943 if test x"$ac_file" != x-; then 12944 { 12945 printf "%s\n" "/* $configure_input */" >&1 \ 12946 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12947 } >"$ac_tmp/config.h" \ 12948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12949 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12951printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12952 else 12953 rm -f "$ac_file" 12954 mv "$ac_tmp/config.h" "$ac_file" \ 12955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12956 fi 12957 else 12958 printf "%s\n" "/* $configure_input */" >&1 \ 12959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12960 || as_fn_error $? "could not create -" "$LINENO" 5 12961 fi 12962# Compute "$ac_file"'s index in $config_headers. 12963_am_arg="$ac_file" 12964_am_stamp_count=1 12965for _am_header in $config_headers :; do 12966 case $_am_header in 12967 $_am_arg | $_am_arg:* ) 12968 break ;; 12969 * ) 12970 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12971 esac 12972done 12973echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12974$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12975 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12976 X"$_am_arg" : 'X\(//\)$' \| \ 12977 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12978printf "%s\n" X"$_am_arg" | 12979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12980 s//\1/ 12981 q 12982 } 12983 /^X\(\/\/\)[^/].*/{ 12984 s//\1/ 12985 q 12986 } 12987 /^X\(\/\/\)$/{ 12988 s//\1/ 12989 q 12990 } 12991 /^X\(\/\).*/{ 12992 s//\1/ 12993 q 12994 } 12995 s/.*/./; q'`/stamp-h$_am_stamp_count 12996 ;; 12997 12998 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12999printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 13000 ;; 13001 esac 13002 13003 13004 case $ac_file$ac_mode in 13005 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13006 # Older Autoconf quotes --file arguments for eval, but not when files 13007 # are listed without --file. Let's play safe and only enable the eval 13008 # if we detect the quoting. 13009 # TODO: see whether this extra hack can be removed once we start 13010 # requiring Autoconf 2.70 or later. 13011 case $CONFIG_FILES in #( 13012 *\'*) : 13013 eval set x "$CONFIG_FILES" ;; #( 13014 *) : 13015 set x $CONFIG_FILES ;; #( 13016 *) : 13017 ;; 13018esac 13019 shift 13020 # Used to flag and report bootstrapping failures. 13021 am_rc=0 13022 for am_mf 13023 do 13024 # Strip MF so we end up with the name of the file. 13025 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 13026 # Check whether this is an Automake generated Makefile which includes 13027 # dependency-tracking related rules and includes. 13028 # Grep'ing the whole file directly is not great: AIX grep has a line 13029 # limit of 2048, but all sed's we know have understand at least 4000. 13030 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 13031 || continue 13032 am_dirpart=`$as_dirname -- "$am_mf" || 13033$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13034 X"$am_mf" : 'X\(//\)[^/]' \| \ 13035 X"$am_mf" : 'X\(//\)$' \| \ 13036 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13037printf "%s\n" X"$am_mf" | 13038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13039 s//\1/ 13040 q 13041 } 13042 /^X\(\/\/\)[^/].*/{ 13043 s//\1/ 13044 q 13045 } 13046 /^X\(\/\/\)$/{ 13047 s//\1/ 13048 q 13049 } 13050 /^X\(\/\).*/{ 13051 s//\1/ 13052 q 13053 } 13054 s/.*/./; q'` 13055 am_filepart=`$as_basename -- "$am_mf" || 13056$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 13057 X"$am_mf" : 'X\(//\)$' \| \ 13058 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 13059printf "%s\n" X/"$am_mf" | 13060 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13061 s//\1/ 13062 q 13063 } 13064 /^X\/\(\/\/\)$/{ 13065 s//\1/ 13066 q 13067 } 13068 /^X\/\(\/\).*/{ 13069 s//\1/ 13070 q 13071 } 13072 s/.*/./; q'` 13073 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 13074 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13075 | $MAKE -f - am--depfiles" >&5 13076 (cd "$am_dirpart" \ 13077 && sed -e '/# am--include-marker/d' "$am_filepart" \ 13078 | $MAKE -f - am--depfiles) >&5 2>&5 13079 ac_status=$? 13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13081 (exit $ac_status); } || am_rc=$? 13082 done 13083 if test $am_rc -ne 0; then 13084 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 13085printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 13086as_fn_error $? "Something went wrong bootstrapping makefile fragments 13087 for automatic dependency tracking. If GNU make was not used, consider 13088 re-running the configure script with MAKE=\"gmake\" (or whatever is 13089 necessary). You can also try re-running configure with the 13090 '--disable-dependency-tracking' option to at least be able to build 13091 the package (albeit without support for automatic dependency tracking). 13092See 'config.log' for more details" "$LINENO" 5; } 13093 fi 13094 { am_dirpart=; unset am_dirpart;} 13095 { am_filepart=; unset am_filepart;} 13096 { am_mf=; unset am_mf;} 13097 { am_rc=; unset am_rc;} 13098 rm -f conftest-deps.mk 13099} 13100 ;; 13101 13102 esac 13103done # for ac_tag 13104 13105 13106as_fn_exit 0 13107_ACEOF 13108ac_clean_files=$ac_clean_files_save 13109 13110test $ac_write_fail = 0 || 13111 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13112 13113 13114# configure is writing to config.log, and then calls config.status. 13115# config.status does its own redirection, appending to config.log. 13116# Unfortunately, on DOS this fails, as config.log is still kept open 13117# by configure, so config.status won't be able to write to it; its 13118# output is simply discarded. So we exec the FD to /dev/null, 13119# effectively closing config.log, so it can be properly (re)opened and 13120# appended to by config.status. When coming back to configure, we 13121# need to make the FD available again. 13122if test "$no_create" != yes; then 13123 ac_cs_success=: 13124 ac_config_status_args= 13125 test "$silent" = yes && 13126 ac_config_status_args="$ac_config_status_args --quiet" 13127 exec 5>/dev/null 13128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13129 exec 5>>config.log 13130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13131 # would make configure fail if this is the last instruction. 13132 $ac_cs_success || as_fn_exit 1 13133fi 13134if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13136printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13137fi 13138 13139 13140