1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for xcalc 1.1.2. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcalc/-/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: https://gitlab.freedesktop.org/xorg/app/xcalc/-/issues 272$0: about your system, including any error possibly output 273$0: before this message. Then install a modern shell, or 274$0: manually run the script under such a shell if you do 275$0: have one." 276 fi 277 exit 1 278fi 279fi 280fi 281SHELL=${CONFIG_SHELL-/bin/sh} 282export SHELL 283# Unset more variables known to interfere with behavior of common tools. 284CLICOLOR_FORCE= GREP_OPTIONS= 285unset CLICOLOR_FORCE GREP_OPTIONS 286 287## --------------------- ## 288## M4sh Shell Functions. ## 289## --------------------- ## 290# as_fn_unset VAR 291# --------------- 292# Portably unset VAR. 293as_fn_unset () 294{ 295 { eval $1=; unset $1;} 296} 297as_unset=as_fn_unset 298 299 300# as_fn_set_status STATUS 301# ----------------------- 302# Set $? to STATUS, without forking. 303as_fn_set_status () 304{ 305 return $1 306} # as_fn_set_status 307 308# as_fn_exit STATUS 309# ----------------- 310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 311as_fn_exit () 312{ 313 set +e 314 as_fn_set_status $1 315 exit $1 316} # as_fn_exit 317# as_fn_nop 318# --------- 319# Do nothing but, unlike ":", preserve the value of $?. 320as_fn_nop () 321{ 322 return $? 323} 324as_nop=as_fn_nop 325 326# as_fn_mkdir_p 327# ------------- 328# Create "$as_dir" as a directory, including parents if necessary. 329as_fn_mkdir_p () 330{ 331 332 case $as_dir in #( 333 -*) as_dir=./$as_dir;; 334 esac 335 test -d "$as_dir" || eval $as_mkdir_p || { 336 as_dirs= 337 while :; do 338 case $as_dir in #( 339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 340 *) as_qdir=$as_dir;; 341 esac 342 as_dirs="'$as_qdir' $as_dirs" 343 as_dir=`$as_dirname -- "$as_dir" || 344$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 346 X"$as_dir" : 'X\(//\)$' \| \ 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 348printf "%s\n" X"$as_dir" | 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 350 s//\1/ 351 q 352 } 353 /^X\(\/\/\)[^/].*/{ 354 s//\1/ 355 q 356 } 357 /^X\(\/\/\)$/{ 358 s//\1/ 359 q 360 } 361 /^X\(\/\).*/{ 362 s//\1/ 363 q 364 } 365 s/.*/./; q'` 366 test -d "$as_dir" && break 367 done 368 test -z "$as_dirs" || eval "mkdir $as_dirs" 369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 370 371 372} # as_fn_mkdir_p 373 374# as_fn_executable_p FILE 375# ----------------------- 376# Test if FILE is an executable regular file. 377as_fn_executable_p () 378{ 379 test -f "$1" && test -x "$1" 380} # as_fn_executable_p 381# as_fn_append VAR VALUE 382# ---------------------- 383# Append the text in VALUE to the end of the definition contained in VAR. Take 384# advantage of any shell optimizations that allow amortized linear growth over 385# repeated appends, instead of the typical quadratic growth present in naive 386# implementations. 387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388then : 389 eval 'as_fn_append () 390 { 391 eval $1+=\$2 392 }' 393else $as_nop 394 as_fn_append () 395 { 396 eval $1=\$$1\$2 397 } 398fi # as_fn_append 399 400# as_fn_arith ARG... 401# ------------------ 402# Perform arithmetic evaluation on the ARGs, and store the result in the 403# global $as_val. Take advantage of shells that can avoid forks. The arguments 404# must be portable across $(()) and expr. 405if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406then : 407 eval 'as_fn_arith () 408 { 409 as_val=$(( $* )) 410 }' 411else $as_nop 412 as_fn_arith () 413 { 414 as_val=`expr "$@" || test $? -eq 1` 415 } 416fi # as_fn_arith 417 418# as_fn_nop 419# --------- 420# Do nothing but, unlike ":", preserve the value of $?. 421as_fn_nop () 422{ 423 return $? 424} 425as_nop=as_fn_nop 426 427# as_fn_error STATUS ERROR [LINENO LOG_FD] 428# ---------------------------------------- 429# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 430# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 431# script with STATUS, using 1 if that was 0. 432as_fn_error () 433{ 434 as_status=$1; test $as_status -eq 0 && as_status=1 435 if test "$4"; then 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 438 fi 439 printf "%s\n" "$as_me: error: $2" >&2 440 as_fn_exit $as_status 441} # as_fn_error 442 443if expr a : '\(a\)' >/dev/null 2>&1 && 444 test "X`expr 00001 : '.*\(...\)'`" = X001; then 445 as_expr=expr 446else 447 as_expr=false 448fi 449 450if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 451 as_basename=basename 452else 453 as_basename=false 454fi 455 456if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 457 as_dirname=dirname 458else 459 as_dirname=false 460fi 461 462as_me=`$as_basename -- "$0" || 463$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 464 X"$0" : 'X\(//\)$' \| \ 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 466printf "%s\n" X/"$0" | 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 468 s//\1/ 469 q 470 } 471 /^X\/\(\/\/\)$/{ 472 s//\1/ 473 q 474 } 475 /^X\/\(\/\).*/{ 476 s//\1/ 477 q 478 } 479 s/.*/./; q'` 480 481# Avoid depending upon Character Ranges. 482as_cr_letters='abcdefghijklmnopqrstuvwxyz' 483as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 484as_cr_Letters=$as_cr_letters$as_cr_LETTERS 485as_cr_digits='0123456789' 486as_cr_alnum=$as_cr_Letters$as_cr_digits 487 488 489 as_lineno_1=$LINENO as_lineno_1a=$LINENO 490 as_lineno_2=$LINENO as_lineno_2a=$LINENO 491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 494 sed -n ' 495 p 496 /[$]LINENO/= 497 ' <$as_myself | 498 sed ' 499 s/[$]LINENO.*/&-/ 500 t lineno 501 b 502 :lineno 503 N 504 :loop 505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 506 t loop 507 s/-\n.*// 508 ' >$as_me.lineno && 509 chmod +x "$as_me.lineno" || 510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 511 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 513 # already done that, so ensure we don't try to do so again and fall 514 # in an infinite loop. This has already happened in practice. 515 _as_can_reexec=no; export _as_can_reexec 516 # Don't try to exec as it changes $[0], causing all sort of problems 517 # (the dirname of $[0] is not the place where we might find the 518 # original and so on. Autoconf is especially sensitive to this). 519 . "./$as_me.lineno" 520 # Exit status is that of the last command. 521 exit 522} 523 524 525# Determine whether it's possible to make 'echo' print without a newline. 526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527# for compatibility with existing Makefiles. 528ECHO_C= ECHO_N= ECHO_T= 529case `echo -n x` in #((((( 530-n*) 531 case `echo 'xy\c'` in 532 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 533 xy) ECHO_C='\c';; 534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 535 ECHO_T=' ';; 536 esac;; 537*) 538 ECHO_N='-n';; 539esac 540 541# For backward compatibility with old third-party macros, we provide 542# the shell variables $as_echo and $as_echo_n. New code should use 543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544as_echo='printf %s\n' 545as_echo_n='printf %s' 546 547 548rm -f conf$$ conf$$.exe conf$$.file 549if test -d conf$$.dir; then 550 rm -f conf$$.dir/conf$$.file 551else 552 rm -f conf$$.dir 553 mkdir conf$$.dir 2>/dev/null 554fi 555if (echo >conf$$.file) 2>/dev/null; then 556 if ln -s conf$$.file conf$$ 2>/dev/null; then 557 as_ln_s='ln -s' 558 # ... but there are two gotchas: 559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 561 # In both cases, we have to default to `cp -pR'. 562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 563 as_ln_s='cp -pR' 564 elif ln conf$$.file conf$$ 2>/dev/null; then 565 as_ln_s=ln 566 else 567 as_ln_s='cp -pR' 568 fi 569else 570 as_ln_s='cp -pR' 571fi 572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 573rmdir conf$$.dir 2>/dev/null 574 575if mkdir -p . 2>/dev/null; then 576 as_mkdir_p='mkdir -p "$as_dir"' 577else 578 test -d ./-p && rmdir ./-p 579 as_mkdir_p=false 580fi 581 582as_test_x='test -x' 583as_executable_p=as_fn_executable_p 584 585# Sed expression to map a string onto a valid CPP name. 586as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 587 588# Sed expression to map a string onto a valid variable name. 589as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 590 591 592test -n "$DJDIR" || exec 7<&0 </dev/null 593exec 6>&1 594 595# Name of the host. 596# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 597# so uname gets run too. 598ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 599 600# 601# Initializations. 602# 603ac_default_prefix=/usr/local 604ac_clean_files= 605ac_config_libobj_dir=. 606LIBOBJS= 607cross_compiling=no 608subdirs= 609MFLAGS= 610MAKEFLAGS= 611 612# Identity of this package. 613PACKAGE_NAME='xcalc' 614PACKAGE_TARNAME='xcalc' 615PACKAGE_VERSION='1.1.2' 616PACKAGE_STRING='xcalc 1.1.2' 617PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xcalc/-/issues' 618PACKAGE_URL='' 619 620ac_unique_file="Makefile.am" 621# Factoring default headers for most tests. 622ac_includes_default="\ 623#include <stddef.h> 624#ifdef HAVE_STDIO_H 625# include <stdio.h> 626#endif 627#ifdef HAVE_STDLIB_H 628# include <stdlib.h> 629#endif 630#ifdef HAVE_STRING_H 631# include <string.h> 632#endif 633#ifdef HAVE_INTTYPES_H 634# include <inttypes.h> 635#endif 636#ifdef HAVE_STDINT_H 637# include <stdint.h> 638#endif 639#ifdef HAVE_STRINGS_H 640# include <strings.h> 641#endif 642#ifdef HAVE_SYS_TYPES_H 643# include <sys/types.h> 644#endif 645#ifdef HAVE_SYS_STAT_H 646# include <sys/stat.h> 647#endif 648#ifdef HAVE_UNISTD_H 649# include <unistd.h> 650#endif" 651 652ac_header_c_list= 653ac_subst_vars='am__EXEEXT_FALSE 654am__EXEEXT_TRUE 655LTLIBOBJS 656LIBOBJS 657appdefaultdir 658APPDEFS_LIBS 659APPDEFS_CFLAGS 660XCALC_LIBS 661XCALC_CFLAGS 662MAN_SUBSTS 663XORG_MAN_PAGE 664ADMIN_MAN_DIR 665DRIVER_MAN_DIR 666MISC_MAN_DIR 667FILE_MAN_DIR 668LIB_MAN_DIR 669APP_MAN_DIR 670ADMIN_MAN_SUFFIX 671DRIVER_MAN_SUFFIX 672MISC_MAN_SUFFIX 673FILE_MAN_SUFFIX 674LIB_MAN_SUFFIX 675APP_MAN_SUFFIX 676SED 677host_os 678host_vendor 679host_cpu 680host 681build_os 682build_vendor 683build_cpu 684build 685INSTALL_CMD 686PKG_CONFIG_LIBDIR 687PKG_CONFIG_PATH 688PKG_CONFIG 689CHANGELOG_CMD 690STRICT_CFLAGS 691CWARNFLAGS 692BASE_CFLAGS 693am__fastdepCC_FALSE 694am__fastdepCC_TRUE 695CCDEPMODE 696am__nodep 697AMDEPBACKSLASH 698AMDEP_FALSE 699AMDEP_TRUE 700am__include 701DEPDIR 702OBJEXT 703EXEEXT 704ac_ct_CC 705CPPFLAGS 706LDFLAGS 707CFLAGS 708CC 709AM_BACKSLASH 710AM_DEFAULT_VERBOSITY 711AM_DEFAULT_V 712AM_V 713CSCOPE 714ETAGS 715CTAGS 716am__untar 717am__tar 718AMTAR 719am__leading_dot 720SET_MAKE 721AWK 722mkdir_p 723MKDIR_P 724INSTALL_STRIP_PROGRAM 725STRIP 726install_sh 727MAKEINFO 728AUTOHEADER 729AUTOMAKE 730AUTOCONF 731ACLOCAL 732VERSION 733PACKAGE 734CYGPATH_W 735am__isrc 736INSTALL_DATA 737INSTALL_SCRIPT 738INSTALL_PROGRAM 739target_alias 740host_alias 741build_alias 742LIBS 743ECHO_T 744ECHO_N 745ECHO_C 746DEFS 747mandir 748localedir 749libdir 750psdir 751pdfdir 752dvidir 753htmldir 754infodir 755docdir 756oldincludedir 757includedir 758runstatedir 759localstatedir 760sharedstatedir 761sysconfdir 762datadir 763datarootdir 764libexecdir 765sbindir 766bindir 767program_transform_name 768prefix 769exec_prefix 770PACKAGE_URL 771PACKAGE_BUGREPORT 772PACKAGE_STRING 773PACKAGE_VERSION 774PACKAGE_TARNAME 775PACKAGE_NAME 776PATH_SEPARATOR 777SHELL 778am__quote' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782enable_silent_rules 783enable_dependency_tracking 784enable_selective_werror 785enable_strict_compilation 786with_appdefaultdir 787' 788 ac_precious_vars='build_alias 789host_alias 790target_alias 791CC 792CFLAGS 793LDFLAGS 794LIBS 795CPPFLAGS 796PKG_CONFIG 797PKG_CONFIG_PATH 798PKG_CONFIG_LIBDIR 799XCALC_CFLAGS 800XCALC_LIBS 801APPDEFS_CFLAGS 802APPDEFS_LIBS' 803 804 805# Initialize some variables set by options. 806ac_init_help= 807ac_init_version=false 808ac_unrecognized_opts= 809ac_unrecognized_sep= 810# The variables have the same names as the options, with 811# dashes changed to underlines. 812cache_file=/dev/null 813exec_prefix=NONE 814no_create= 815no_recursion= 816prefix=NONE 817program_prefix=NONE 818program_suffix=NONE 819program_transform_name=s,x,x, 820silent= 821site= 822srcdir= 823verbose= 824x_includes=NONE 825x_libraries=NONE 826 827# Installation directory options. 828# These are left unexpanded so users can "make install exec_prefix=/foo" 829# and all the variables that are supposed to be based on exec_prefix 830# by default will actually change. 831# Use braces instead of parens because sh, perl, etc. also accept them. 832# (The list follows the same order as the GNU Coding Standards.) 833bindir='${exec_prefix}/bin' 834sbindir='${exec_prefix}/sbin' 835libexecdir='${exec_prefix}/libexec' 836datarootdir='${prefix}/share' 837datadir='${datarootdir}' 838sysconfdir='${prefix}/etc' 839sharedstatedir='${prefix}/com' 840localstatedir='${prefix}/var' 841runstatedir='${localstatedir}/run' 842includedir='${prefix}/include' 843oldincludedir='/usr/include' 844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 845infodir='${datarootdir}/info' 846htmldir='${docdir}' 847dvidir='${docdir}' 848pdfdir='${docdir}' 849psdir='${docdir}' 850libdir='${exec_prefix}/lib' 851localedir='${datarootdir}/locale' 852mandir='${datarootdir}/man' 853 854ac_prev= 855ac_dashdash= 856for ac_option 857do 858 # If the previous option needs an argument, assign it. 859 if test -n "$ac_prev"; then 860 eval $ac_prev=\$ac_option 861 ac_prev= 862 continue 863 fi 864 865 case $ac_option in 866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 867 *=) ac_optarg= ;; 868 *) ac_optarg=yes ;; 869 esac 870 871 case $ac_dashdash$ac_option in 872 --) 873 ac_dashdash=yes ;; 874 875 -bindir | --bindir | --bindi | --bind | --bin | --bi) 876 ac_prev=bindir ;; 877 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 878 bindir=$ac_optarg ;; 879 880 -build | --build | --buil | --bui | --bu) 881 ac_prev=build_alias ;; 882 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 883 build_alias=$ac_optarg ;; 884 885 -cache-file | --cache-file | --cache-fil | --cache-fi \ 886 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 887 ac_prev=cache_file ;; 888 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 889 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 890 cache_file=$ac_optarg ;; 891 892 --config-cache | -C) 893 cache_file=config.cache ;; 894 895 -datadir | --datadir | --datadi | --datad) 896 ac_prev=datadir ;; 897 -datadir=* | --datadir=* | --datadi=* | --datad=*) 898 datadir=$ac_optarg ;; 899 900 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 901 | --dataroo | --dataro | --datar) 902 ac_prev=datarootdir ;; 903 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 904 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 905 datarootdir=$ac_optarg ;; 906 907 -disable-* | --disable-*) 908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 909 # Reject names that are not valid shell variable names. 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 911 as_fn_error $? "invalid feature name: \`$ac_useropt'" 912 ac_useropt_orig=$ac_useropt 913 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 914 case $ac_user_opts in 915 *" 916"enable_$ac_useropt" 917"*) ;; 918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 919 ac_unrecognized_sep=', ';; 920 esac 921 eval enable_$ac_useropt=no ;; 922 923 -docdir | --docdir | --docdi | --doc | --do) 924 ac_prev=docdir ;; 925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 926 docdir=$ac_optarg ;; 927 928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 929 ac_prev=dvidir ;; 930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 931 dvidir=$ac_optarg ;; 932 933 -enable-* | --enable-*) 934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 935 # Reject names that are not valid shell variable names. 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 937 as_fn_error $? "invalid feature name: \`$ac_useropt'" 938 ac_useropt_orig=$ac_useropt 939 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 940 case $ac_user_opts in 941 *" 942"enable_$ac_useropt" 943"*) ;; 944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 945 ac_unrecognized_sep=', ';; 946 esac 947 eval enable_$ac_useropt=\$ac_optarg ;; 948 949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 951 | --exec | --exe | --ex) 952 ac_prev=exec_prefix ;; 953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 955 | --exec=* | --exe=* | --ex=*) 956 exec_prefix=$ac_optarg ;; 957 958 -gas | --gas | --ga | --g) 959 # Obsolete; use --with-gas. 960 with_gas=yes ;; 961 962 -help | --help | --hel | --he | -h) 963 ac_init_help=long ;; 964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 965 ac_init_help=recursive ;; 966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 967 ac_init_help=short ;; 968 969 -host | --host | --hos | --ho) 970 ac_prev=host_alias ;; 971 -host=* | --host=* | --hos=* | --ho=*) 972 host_alias=$ac_optarg ;; 973 974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 975 ac_prev=htmldir ;; 976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 977 | --ht=*) 978 htmldir=$ac_optarg ;; 979 980 -includedir | --includedir | --includedi | --included | --include \ 981 | --includ | --inclu | --incl | --inc) 982 ac_prev=includedir ;; 983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 984 | --includ=* | --inclu=* | --incl=* | --inc=*) 985 includedir=$ac_optarg ;; 986 987 -infodir | --infodir | --infodi | --infod | --info | --inf) 988 ac_prev=infodir ;; 989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 990 infodir=$ac_optarg ;; 991 992 -libdir | --libdir | --libdi | --libd) 993 ac_prev=libdir ;; 994 -libdir=* | --libdir=* | --libdi=* | --libd=*) 995 libdir=$ac_optarg ;; 996 997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 998 | --libexe | --libex | --libe) 999 ac_prev=libexecdir ;; 1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1001 | --libexe=* | --libex=* | --libe=*) 1002 libexecdir=$ac_optarg ;; 1003 1004 -localedir | --localedir | --localedi | --localed | --locale) 1005 ac_prev=localedir ;; 1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1007 localedir=$ac_optarg ;; 1008 1009 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1010 | --localstate | --localstat | --localsta | --localst | --locals) 1011 ac_prev=localstatedir ;; 1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1014 localstatedir=$ac_optarg ;; 1015 1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1017 ac_prev=mandir ;; 1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1019 mandir=$ac_optarg ;; 1020 1021 -nfp | --nfp | --nf) 1022 # Obsolete; use --without-fp. 1023 with_fp=no ;; 1024 1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1026 | --no-cr | --no-c | -n) 1027 no_create=yes ;; 1028 1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1031 no_recursion=yes ;; 1032 1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1035 | --oldin | --oldi | --old | --ol | --o) 1036 ac_prev=oldincludedir ;; 1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1040 oldincludedir=$ac_optarg ;; 1041 1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1043 ac_prev=prefix ;; 1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1045 prefix=$ac_optarg ;; 1046 1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1048 | --program-pre | --program-pr | --program-p) 1049 ac_prev=program_prefix ;; 1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1052 program_prefix=$ac_optarg ;; 1053 1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1055 | --program-suf | --program-su | --program-s) 1056 ac_prev=program_suffix ;; 1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1059 program_suffix=$ac_optarg ;; 1060 1061 -program-transform-name | --program-transform-name \ 1062 | --program-transform-nam | --program-transform-na \ 1063 | --program-transform-n | --program-transform- \ 1064 | --program-transform | --program-transfor \ 1065 | --program-transfo | --program-transf \ 1066 | --program-trans | --program-tran \ 1067 | --progr-tra | --program-tr | --program-t) 1068 ac_prev=program_transform_name ;; 1069 -program-transform-name=* | --program-transform-name=* \ 1070 | --program-transform-nam=* | --program-transform-na=* \ 1071 | --program-transform-n=* | --program-transform-=* \ 1072 | --program-transform=* | --program-transfor=* \ 1073 | --program-transfo=* | --program-transf=* \ 1074 | --program-trans=* | --program-tran=* \ 1075 | --progr-tra=* | --program-tr=* | --program-t=*) 1076 program_transform_name=$ac_optarg ;; 1077 1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1079 ac_prev=pdfdir ;; 1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1081 pdfdir=$ac_optarg ;; 1082 1083 -psdir | --psdir | --psdi | --psd | --ps) 1084 ac_prev=psdir ;; 1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1086 psdir=$ac_optarg ;; 1087 1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1089 | -silent | --silent | --silen | --sile | --sil) 1090 silent=yes ;; 1091 1092 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1093 | --runstate | --runstat | --runsta | --runst | --runs \ 1094 | --run | --ru | --r) 1095 ac_prev=runstatedir ;; 1096 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1097 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1098 | --run=* | --ru=* | --r=*) 1099 runstatedir=$ac_optarg ;; 1100 1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1102 ac_prev=sbindir ;; 1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1104 | --sbi=* | --sb=*) 1105 sbindir=$ac_optarg ;; 1106 1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1109 | --sharedst | --shareds | --shared | --share | --shar \ 1110 | --sha | --sh) 1111 ac_prev=sharedstatedir ;; 1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1115 | --sha=* | --sh=*) 1116 sharedstatedir=$ac_optarg ;; 1117 1118 -site | --site | --sit) 1119 ac_prev=site ;; 1120 -site=* | --site=* | --sit=*) 1121 site=$ac_optarg ;; 1122 1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1124 ac_prev=srcdir ;; 1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1126 srcdir=$ac_optarg ;; 1127 1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1129 | --syscon | --sysco | --sysc | --sys | --sy) 1130 ac_prev=sysconfdir ;; 1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1133 sysconfdir=$ac_optarg ;; 1134 1135 -target | --target | --targe | --targ | --tar | --ta | --t) 1136 ac_prev=target_alias ;; 1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1138 target_alias=$ac_optarg ;; 1139 1140 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1141 verbose=yes ;; 1142 1143 -version | --version | --versio | --versi | --vers | -V) 1144 ac_init_version=: ;; 1145 1146 -with-* | --with-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: \`$ac_useropt'" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=\$ac_optarg ;; 1161 1162 -without-* | --without-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error $? "invalid package name: \`$ac_useropt'" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"with_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=no ;; 1177 1178 --x) 1179 # Obsolete; use --with-x. 1180 with_x=yes ;; 1181 1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1183 | --x-incl | --x-inc | --x-in | --x-i) 1184 ac_prev=x_includes ;; 1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1187 x_includes=$ac_optarg ;; 1188 1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1191 ac_prev=x_libraries ;; 1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1194 x_libraries=$ac_optarg ;; 1195 1196 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1197Try \`$0 --help' for more information" 1198 ;; 1199 1200 *=*) 1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1202 # Reject names that are not valid shell variable names. 1203 case $ac_envvar in #( 1204 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1206 esac 1207 eval $ac_envvar=\$ac_optarg 1208 export $ac_envvar ;; 1209 1210 *) 1211 # FIXME: should be removed in autoconf 3.0. 1212 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1214 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1216 ;; 1217 1218 esac 1219done 1220 1221if test -n "$ac_prev"; then 1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1223 as_fn_error $? "missing argument to $ac_option" 1224fi 1225 1226if test -n "$ac_unrecognized_opts"; then 1227 case $enable_option_checking in 1228 no) ;; 1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1230 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1231 esac 1232fi 1233 1234# Check all directory arguments for consistency. 1235for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1236 datadir sysconfdir sharedstatedir localstatedir includedir \ 1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1238 libdir localedir mandir runstatedir 1239do 1240 eval ac_val=\$$ac_var 1241 # Remove trailing slashes. 1242 case $ac_val in 1243 */ ) 1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1245 eval $ac_var=\$ac_val;; 1246 esac 1247 # Be sure to have absolute directory names. 1248 case $ac_val in 1249 [\\/$]* | ?:[\\/]* ) continue;; 1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1251 esac 1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1253done 1254 1255# There might be people who depend on the old broken behavior: `$host' 1256# used to hold the argument of --host etc. 1257# FIXME: To remove some day. 1258build=$build_alias 1259host=$host_alias 1260target=$target_alias 1261 1262# FIXME: To remove some day. 1263if test "x$host_alias" != x; then 1264 if test "x$build_alias" = x; then 1265 cross_compiling=maybe 1266 elif test "x$build_alias" != "x$host_alias"; then 1267 cross_compiling=yes 1268 fi 1269fi 1270 1271ac_tool_prefix= 1272test -n "$host_alias" && ac_tool_prefix=$host_alias- 1273 1274test "$silent" = yes && exec 6>/dev/null 1275 1276 1277ac_pwd=`pwd` && test -n "$ac_pwd" && 1278ac_ls_di=`ls -di .` && 1279ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1280 as_fn_error $? "working directory cannot be determined" 1281test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1282 as_fn_error $? "pwd does not report name of working directory" 1283 1284 1285# Find the source files, if location was not specified. 1286if test -z "$srcdir"; then 1287 ac_srcdir_defaulted=yes 1288 # Try the directory containing this script, then the parent directory. 1289 ac_confdir=`$as_dirname -- "$as_myself" || 1290$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1291 X"$as_myself" : 'X\(//\)[^/]' \| \ 1292 X"$as_myself" : 'X\(//\)$' \| \ 1293 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1294printf "%s\n" X"$as_myself" | 1295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)[^/].*/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\/\)$/{ 1304 s//\1/ 1305 q 1306 } 1307 /^X\(\/\).*/{ 1308 s//\1/ 1309 q 1310 } 1311 s/.*/./; q'` 1312 srcdir=$ac_confdir 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 srcdir=.. 1315 fi 1316else 1317 ac_srcdir_defaulted=no 1318fi 1319if test ! -r "$srcdir/$ac_unique_file"; then 1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1321 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1322fi 1323ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1324ac_abs_confdir=`( 1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1326 pwd)` 1327# When building in place, set srcdir=. 1328if test "$ac_abs_confdir" = "$ac_pwd"; then 1329 srcdir=. 1330fi 1331# Remove unnecessary trailing slashes from srcdir. 1332# Double slashes in file names in object file debugging info 1333# mess up M-x gdb in Emacs. 1334case $srcdir in 1335*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1336esac 1337for ac_var in $ac_precious_vars; do 1338 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1339 eval ac_env_${ac_var}_value=\$${ac_var} 1340 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1341 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1342done 1343 1344# 1345# Report the --help message. 1346# 1347if test "$ac_init_help" = "long"; then 1348 # Omit some internal or obsolete options to make the list less imposing. 1349 # This message is too long to be a string in the A/UX 3.1 sh. 1350 cat <<_ACEOF 1351\`configure' configures xcalc 1.1.2 to adapt to many kinds of systems. 1352 1353Usage: $0 [OPTION]... [VAR=VALUE]... 1354 1355To assign environment variables (e.g., CC, CFLAGS...), specify them as 1356VAR=VALUE. See below for descriptions of some of the useful variables. 1357 1358Defaults for the options are specified in brackets. 1359 1360Configuration: 1361 -h, --help display this help and exit 1362 --help=short display options specific to this package 1363 --help=recursive display the short help of all the included packages 1364 -V, --version display version information and exit 1365 -q, --quiet, --silent do not print \`checking ...' messages 1366 --cache-file=FILE cache test results in FILE [disabled] 1367 -C, --config-cache alias for \`--cache-file=config.cache' 1368 -n, --no-create do not create output files 1369 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1370 1371Installation directories: 1372 --prefix=PREFIX install architecture-independent files in PREFIX 1373 [$ac_default_prefix] 1374 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1375 [PREFIX] 1376 1377By default, \`make install' will install all the files in 1378\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1379an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1380for instance \`--prefix=\$HOME'. 1381 1382For better control, use the options below. 1383 1384Fine tuning of the installation directories: 1385 --bindir=DIR user executables [EPREFIX/bin] 1386 --sbindir=DIR system admin executables [EPREFIX/sbin] 1387 --libexecdir=DIR program executables [EPREFIX/libexec] 1388 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1389 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1390 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1391 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1392 --libdir=DIR object code libraries [EPREFIX/lib] 1393 --includedir=DIR C header files [PREFIX/include] 1394 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397 --infodir=DIR info documentation [DATAROOTDIR/info] 1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399 --mandir=DIR man documentation [DATAROOTDIR/man] 1400 --docdir=DIR documentation root [DATAROOTDIR/doc/xcalc] 1401 --htmldir=DIR html documentation [DOCDIR] 1402 --dvidir=DIR dvi documentation [DOCDIR] 1403 --pdfdir=DIR pdf documentation [DOCDIR] 1404 --psdir=DIR ps documentation [DOCDIR] 1405_ACEOF 1406 1407 cat <<\_ACEOF 1408 1409Program names: 1410 --program-prefix=PREFIX prepend PREFIX to installed program names 1411 --program-suffix=SUFFIX append SUFFIX to installed program names 1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1413 1414System types: 1415 --build=BUILD configure for building on BUILD [guessed] 1416 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1417_ACEOF 1418fi 1419 1420if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of xcalc 1.1.2:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --enable-silent-rules less verbose build output (undo: "make V=1") 1431 --disable-silent-rules verbose build output (undo: "make V=0") 1432 --enable-dependency-tracking 1433 do not reject slow dependency extractors 1434 --disable-dependency-tracking 1435 speeds up one-time build 1436 --disable-selective-werror 1437 Turn off selective compiler errors. (default: 1438 enabled) 1439 --enable-strict-compilation 1440 Enable all warnings from compiler and make them 1441 errors (default: disabled) 1442 1443Optional Packages: 1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1446 --with-appdefaultdir=<pathname> 1447 specify directory for app-defaults files (default is 1448 autodetected) 1449 1450Some influential environment variables: 1451 CC C compiler command 1452 CFLAGS C compiler flags 1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1454 nonstandard directory <lib dir> 1455 LIBS libraries to pass to the linker, e.g. -l<library> 1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1457 you have headers in a nonstandard directory <include dir> 1458 PKG_CONFIG path to pkg-config utility 1459 PKG_CONFIG_PATH 1460 directories to add to pkg-config's search path 1461 PKG_CONFIG_LIBDIR 1462 path overriding pkg-config's built-in search path 1463 XCALC_CFLAGS 1464 C compiler flags for XCALC, overriding pkg-config 1465 XCALC_LIBS linker flags for XCALC, overriding pkg-config 1466 APPDEFS_CFLAGS 1467 C compiler flags for APPDEFS, overriding pkg-config 1468 APPDEFS_LIBS 1469 linker flags for APPDEFS, overriding pkg-config 1470 1471Use these variables to override the choices made by `configure' or to help 1472it to find libraries and programs with nonstandard names/locations. 1473 1474Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcalc/-/issues>. 1475_ACEOF 1476ac_status=$? 1477fi 1478 1479if test "$ac_init_help" = "recursive"; then 1480 # If there are subdirs, report their specific --help. 1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1482 test -d "$ac_dir" || 1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1484 continue 1485 ac_builddir=. 1486 1487case "$ac_dir" in 1488.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1489*) 1490 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1491 # A ".." for each directory in $ac_dir_suffix. 1492 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1493 case $ac_top_builddir_sub in 1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1496 esac ;; 1497esac 1498ac_abs_top_builddir=$ac_pwd 1499ac_abs_builddir=$ac_pwd$ac_dir_suffix 1500# for backward compatibility: 1501ac_top_builddir=$ac_top_build_prefix 1502 1503case $srcdir in 1504 .) # We are building in place. 1505 ac_srcdir=. 1506 ac_top_srcdir=$ac_top_builddir_sub 1507 ac_abs_top_srcdir=$ac_pwd ;; 1508 [\\/]* | ?:[\\/]* ) # Absolute name. 1509 ac_srcdir=$srcdir$ac_dir_suffix; 1510 ac_top_srcdir=$srcdir 1511 ac_abs_top_srcdir=$srcdir ;; 1512 *) # Relative name. 1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1514 ac_top_srcdir=$ac_top_build_prefix$srcdir 1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1516esac 1517ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1518 1519 cd "$ac_dir" || { ac_status=$?; continue; } 1520 # Check for configure.gnu first; this name is used for a wrapper for 1521 # Metaconfig's "Configure" on case-insensitive file systems. 1522 if test -f "$ac_srcdir/configure.gnu"; then 1523 echo && 1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1525 elif test -f "$ac_srcdir/configure"; then 1526 echo && 1527 $SHELL "$ac_srcdir/configure" --help=recursive 1528 else 1529 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1530 fi || ac_status=$? 1531 cd "$ac_pwd" || { ac_status=$?; break; } 1532 done 1533fi 1534 1535test -n "$ac_init_help" && exit $ac_status 1536if $ac_init_version; then 1537 cat <<\_ACEOF 1538xcalc configure 1.1.2 1539generated by GNU Autoconf 2.71 1540 1541Copyright (C) 2021 Free Software Foundation, Inc. 1542This configure script is free software; the Free Software Foundation 1543gives unlimited permission to copy, distribute and modify it. 1544_ACEOF 1545 exit 1546fi 1547 1548## ------------------------ ## 1549## Autoconf initialization. ## 1550## ------------------------ ## 1551 1552# ac_fn_c_try_compile LINENO 1553# -------------------------- 1554# Try to compile conftest.$ac_ext, and return whether this succeeded. 1555ac_fn_c_try_compile () 1556{ 1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1558 rm -f conftest.$ac_objext conftest.beam 1559 if { { ac_try="$ac_compile" 1560case "(($ac_try" in 1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1562 *) ac_try_echo=$ac_try;; 1563esac 1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1565printf "%s\n" "$ac_try_echo"; } >&5 1566 (eval "$ac_compile") 2>conftest.err 1567 ac_status=$? 1568 if test -s conftest.err; then 1569 grep -v '^ *+' conftest.err >conftest.er1 1570 cat conftest.er1 >&5 1571 mv -f conftest.er1 conftest.err 1572 fi 1573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1574 test $ac_status = 0; } && { 1575 test -z "$ac_c_werror_flag" || 1576 test ! -s conftest.err 1577 } && test -s conftest.$ac_objext 1578then : 1579 ac_retval=0 1580else $as_nop 1581 printf "%s\n" "$as_me: failed program was:" >&5 1582sed 's/^/| /' conftest.$ac_ext >&5 1583 1584 ac_retval=1 1585fi 1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1587 as_fn_set_status $ac_retval 1588 1589} # ac_fn_c_try_compile 1590 1591# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1592# ------------------------------------------------------------------ 1593# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1594# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1595ac_fn_check_decl () 1596{ 1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1598 as_decl_name=`echo $2|sed 's/ *(.*//'` 1599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1600printf %s "checking whether $as_decl_name is declared... " >&6; } 1601if eval test \${$3+y} 1602then : 1603 printf %s "(cached) " >&6 1604else $as_nop 1605 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1606 eval ac_save_FLAGS=\$$6 1607 as_fn_append $6 " $5" 1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1609/* end confdefs.h. */ 1610$4 1611int 1612main (void) 1613{ 1614#ifndef $as_decl_name 1615#ifdef __cplusplus 1616 (void) $as_decl_use; 1617#else 1618 (void) $as_decl_name; 1619#endif 1620#endif 1621 1622 ; 1623 return 0; 1624} 1625_ACEOF 1626if ac_fn_c_try_compile "$LINENO" 1627then : 1628 eval "$3=yes" 1629else $as_nop 1630 eval "$3=no" 1631fi 1632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1633 eval $6=\$ac_save_FLAGS 1634 1635fi 1636eval ac_res=\$$3 1637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1638printf "%s\n" "$ac_res" >&6; } 1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1640 1641} # ac_fn_check_decl 1642 1643# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1644# ------------------------------------------------------- 1645# Tests whether HEADER exists and can be compiled using the include files in 1646# INCLUDES, setting the cache variable VAR accordingly. 1647ac_fn_c_check_header_compile () 1648{ 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1651printf %s "checking for $2... " >&6; } 1652if eval test \${$3+y} 1653then : 1654 printf %s "(cached) " >&6 1655else $as_nop 1656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1657/* end confdefs.h. */ 1658$4 1659#include <$2> 1660_ACEOF 1661if ac_fn_c_try_compile "$LINENO" 1662then : 1663 eval "$3=yes" 1664else $as_nop 1665 eval "$3=no" 1666fi 1667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1668fi 1669eval ac_res=\$$3 1670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1671printf "%s\n" "$ac_res" >&6; } 1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1673 1674} # ac_fn_c_check_header_compile 1675 1676# ac_fn_c_try_link LINENO 1677# ----------------------- 1678# Try to link conftest.$ac_ext, and return whether this succeeded. 1679ac_fn_c_try_link () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1683 if { { ac_try="$ac_link" 1684case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689printf "%s\n" "$ac_try_echo"; } >&5 1690 (eval "$ac_link") 2>conftest.err 1691 ac_status=$? 1692 if test -s conftest.err; then 1693 grep -v '^ *+' conftest.err >conftest.er1 1694 cat conftest.er1 >&5 1695 mv -f conftest.er1 conftest.err 1696 fi 1697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1698 test $ac_status = 0; } && { 1699 test -z "$ac_c_werror_flag" || 1700 test ! -s conftest.err 1701 } && test -s conftest$ac_exeext && { 1702 test "$cross_compiling" = yes || 1703 test -x conftest$ac_exeext 1704 } 1705then : 1706 ac_retval=0 1707else $as_nop 1708 printf "%s\n" "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1715 # interfere with the next link command; also delete a directory that is 1716 # left behind by Apple's compiler. We do this before executing the actions. 1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721} # ac_fn_c_try_link 1722 1723# ac_fn_c_check_func LINENO FUNC VAR 1724# ---------------------------------- 1725# Tests whether FUNC exists, setting the cache variable VAR accordingly 1726ac_fn_c_check_func () 1727{ 1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730printf %s "checking for $2... " >&6; } 1731if eval test \${$3+y} 1732then : 1733 printf %s "(cached) " >&6 1734else $as_nop 1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1736/* end confdefs.h. */ 1737/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1739#define $2 innocuous_$2 1740 1741/* System header to define __stub macros and hopefully few prototypes, 1742 which can conflict with char $2 (); below. */ 1743 1744#include <limits.h> 1745#undef $2 1746 1747/* Override any GCC internal prototype to avoid an error. 1748 Use char because int might match the return type of a GCC 1749 builtin and then its argument prototype would still apply. */ 1750#ifdef __cplusplus 1751extern "C" 1752#endif 1753char $2 (); 1754/* The GNU C library defines this for functions which it implements 1755 to always fail with ENOSYS. Some functions are actually named 1756 something starting with __ and the normal name is an alias. */ 1757#if defined __stub_$2 || defined __stub___$2 1758choke me 1759#endif 1760 1761int 1762main (void) 1763{ 1764return $2 (); 1765 ; 1766 return 0; 1767} 1768_ACEOF 1769if ac_fn_c_try_link "$LINENO" 1770then : 1771 eval "$3=yes" 1772else $as_nop 1773 eval "$3=no" 1774fi 1775rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1776 conftest$ac_exeext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780printf "%s\n" "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_func 1784ac_configure_args_raw= 1785for ac_arg 1786do 1787 case $ac_arg in 1788 *\'*) 1789 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1790 esac 1791 as_fn_append ac_configure_args_raw " '$ac_arg'" 1792done 1793 1794case $ac_configure_args_raw in 1795 *$as_nl*) 1796 ac_safe_unquote= ;; 1797 *) 1798 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1799 ac_unsafe_a="$ac_unsafe_z#~" 1800 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1801 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1802esac 1803 1804cat >config.log <<_ACEOF 1805This file contains any messages produced by compilers while 1806running configure, to aid debugging if configure makes a mistake. 1807 1808It was created by xcalc $as_me 1.1.2, which was 1809generated by GNU Autoconf 2.71. Invocation command line was 1810 1811 $ $0$ac_configure_args_raw 1812 1813_ACEOF 1814exec 5>>config.log 1815{ 1816cat <<_ASUNAME 1817## --------- ## 1818## Platform. ## 1819## --------- ## 1820 1821hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1822uname -m = `(uname -m) 2>/dev/null || echo unknown` 1823uname -r = `(uname -r) 2>/dev/null || echo unknown` 1824uname -s = `(uname -s) 2>/dev/null || echo unknown` 1825uname -v = `(uname -v) 2>/dev/null || echo unknown` 1826 1827/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1828/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1829 1830/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1831/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1832/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1833/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1834/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1835/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1836/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1837 1838_ASUNAME 1839 1840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1841for as_dir in $PATH 1842do 1843 IFS=$as_save_IFS 1844 case $as_dir in #((( 1845 '') as_dir=./ ;; 1846 */) ;; 1847 *) as_dir=$as_dir/ ;; 1848 esac 1849 printf "%s\n" "PATH: $as_dir" 1850 done 1851IFS=$as_save_IFS 1852 1853} >&5 1854 1855cat >&5 <<_ACEOF 1856 1857 1858## ----------- ## 1859## Core tests. ## 1860## ----------- ## 1861 1862_ACEOF 1863 1864 1865# Keep a trace of the command line. 1866# Strip out --no-create and --no-recursion so they do not pile up. 1867# Strip out --silent because we don't want to record it for future runs. 1868# Also quote any args containing shell meta-characters. 1869# Make two passes to allow for proper duplicate-argument suppression. 1870ac_configure_args= 1871ac_configure_args0= 1872ac_configure_args1= 1873ac_must_keep_next=false 1874for ac_pass in 1 2 1875do 1876 for ac_arg 1877 do 1878 case $ac_arg in 1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1881 | -silent | --silent | --silen | --sile | --sil) 1882 continue ;; 1883 *\'*) 1884 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1885 esac 1886 case $ac_pass in 1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1888 2) 1889 as_fn_append ac_configure_args1 " '$ac_arg'" 1890 if test $ac_must_keep_next = true; then 1891 ac_must_keep_next=false # Got value, back to normal. 1892 else 1893 case $ac_arg in 1894 *=* | --config-cache | -C | -disable-* | --disable-* \ 1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1897 | -with-* | --with-* | -without-* | --without-* | --x) 1898 case "$ac_configure_args0 " in 1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1900 esac 1901 ;; 1902 -* ) ac_must_keep_next=true ;; 1903 esac 1904 fi 1905 as_fn_append ac_configure_args " '$ac_arg'" 1906 ;; 1907 esac 1908 done 1909done 1910{ ac_configure_args0=; unset ac_configure_args0;} 1911{ ac_configure_args1=; unset ac_configure_args1;} 1912 1913# When interrupted or exit'd, cleanup temporary files, and complete 1914# config.log. We remove comments because anyway the quotes in there 1915# would cause problems or look ugly. 1916# WARNING: Use '\'' to represent an apostrophe within the trap. 1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1918trap 'exit_status=$? 1919 # Sanitize IFS. 1920 IFS=" "" $as_nl" 1921 # Save into config.log some information that might help in debugging. 1922 { 1923 echo 1924 1925 printf "%s\n" "## ---------------- ## 1926## Cache variables. ## 1927## ---------------- ##" 1928 echo 1929 # The following way of writing the cache mishandles newlines in values, 1930( 1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1932 eval ac_val=\$$ac_var 1933 case $ac_val in #( 1934 *${as_nl}*) 1935 case $ac_var in #( 1936 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1937printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1938 esac 1939 case $ac_var in #( 1940 _ | IFS | as_nl) ;; #( 1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1942 *) { eval $ac_var=; unset $ac_var;} ;; 1943 esac ;; 1944 esac 1945 done 1946 (set) 2>&1 | 1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1948 *${as_nl}ac_space=\ *) 1949 sed -n \ 1950 "s/'\''/'\''\\\\'\'''\''/g; 1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1952 ;; #( 1953 *) 1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1955 ;; 1956 esac | 1957 sort 1958) 1959 echo 1960 1961 printf "%s\n" "## ----------------- ## 1962## Output variables. ## 1963## ----------------- ##" 1964 echo 1965 for ac_var in $ac_subst_vars 1966 do 1967 eval ac_val=\$$ac_var 1968 case $ac_val in 1969 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1970 esac 1971 printf "%s\n" "$ac_var='\''$ac_val'\''" 1972 done | sort 1973 echo 1974 1975 if test -n "$ac_subst_files"; then 1976 printf "%s\n" "## ------------------- ## 1977## File substitutions. ## 1978## ------------------- ##" 1979 echo 1980 for ac_var in $ac_subst_files 1981 do 1982 eval ac_val=\$$ac_var 1983 case $ac_val in 1984 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1985 esac 1986 printf "%s\n" "$ac_var='\''$ac_val'\''" 1987 done | sort 1988 echo 1989 fi 1990 1991 if test -s confdefs.h; then 1992 printf "%s\n" "## ----------- ## 1993## confdefs.h. ## 1994## ----------- ##" 1995 echo 1996 cat confdefs.h 1997 echo 1998 fi 1999 test "$ac_signal" != 0 && 2000 printf "%s\n" "$as_me: caught signal $ac_signal" 2001 printf "%s\n" "$as_me: exit $exit_status" 2002 } >&5 2003 rm -f core *.core core.conftest.* && 2004 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2005 exit $exit_status 2006' 0 2007for ac_signal in 1 2 13 15; do 2008 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2009done 2010ac_signal=0 2011 2012# confdefs.h avoids OS command line length limits that DEFS can exceed. 2013rm -f -r conftest* confdefs.h 2014 2015printf "%s\n" "/* confdefs.h */" > confdefs.h 2016 2017# Predefined preprocessor variables. 2018 2019printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2020 2021printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2022 2023printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2024 2025printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2026 2027printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2028 2029printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2030 2031 2032# Let the site file select an alternate cache file if it wants to. 2033# Prefer an explicitly selected file to automatically selected ones. 2034if test -n "$CONFIG_SITE"; then 2035 ac_site_files="$CONFIG_SITE" 2036elif test "x$prefix" != xNONE; then 2037 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2038else 2039 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2040fi 2041 2042for ac_site_file in $ac_site_files 2043do 2044 case $ac_site_file in #( 2045 */*) : 2046 ;; #( 2047 *) : 2048 ac_site_file=./$ac_site_file ;; 2049esac 2050 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2052printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2053 sed 's/^/| /' "$ac_site_file" >&5 2054 . "$ac_site_file" \ 2055 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2056printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2057as_fn_error $? "failed to load site script $ac_site_file 2058See \`config.log' for more details" "$LINENO" 5; } 2059 fi 2060done 2061 2062if test -r "$cache_file"; then 2063 # Some versions of bash will fail to source /dev/null (special files 2064 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2065 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2067printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2068 case $cache_file in 2069 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2070 *) . "./$cache_file";; 2071 esac 2072 fi 2073else 2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2075printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2076 >$cache_file 2077fi 2078 2079# Test code for whether the C compiler supports C89 (global declarations) 2080ac_c_conftest_c89_globals=' 2081/* Does the compiler advertise C89 conformance? 2082 Do not test the value of __STDC__, because some compilers set it to 0 2083 while being otherwise adequately conformant. */ 2084#if !defined __STDC__ 2085# error "Compiler does not advertise C89 conformance" 2086#endif 2087 2088#include <stddef.h> 2089#include <stdarg.h> 2090struct stat; 2091/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2092struct buf { int x; }; 2093struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2094static char *e (p, i) 2095 char **p; 2096 int i; 2097{ 2098 return p[i]; 2099} 2100static char *f (char * (*g) (char **, int), char **p, ...) 2101{ 2102 char *s; 2103 va_list v; 2104 va_start (v,p); 2105 s = g (p, va_arg (v,int)); 2106 va_end (v); 2107 return s; 2108} 2109 2110/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2111 function prototypes and stuff, but not \xHH hex character constants. 2112 These do not provoke an error unfortunately, instead are silently treated 2113 as an "x". The following induces an error, until -std is added to get 2114 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2115 array size at least. It is necessary to write \x00 == 0 to get something 2116 that is true only with -std. */ 2117int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2118 2119/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2120 inside strings and character constants. */ 2121#define FOO(x) '\''x'\'' 2122int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2123 2124int test (int i, double x); 2125struct s1 {int (*f) (int a);}; 2126struct s2 {int (*f) (double a);}; 2127int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2128 int, int);' 2129 2130# Test code for whether the C compiler supports C89 (body of main). 2131ac_c_conftest_c89_main=' 2132ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2133' 2134 2135# Test code for whether the C compiler supports C99 (global declarations) 2136ac_c_conftest_c99_globals=' 2137// Does the compiler advertise C99 conformance? 2138#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2139# error "Compiler does not advertise C99 conformance" 2140#endif 2141 2142#include <stdbool.h> 2143extern int puts (const char *); 2144extern int printf (const char *, ...); 2145extern int dprintf (int, const char *, ...); 2146extern void *malloc (size_t); 2147 2148// Check varargs macros. These examples are taken from C99 6.10.3.5. 2149// dprintf is used instead of fprintf to avoid needing to declare 2150// FILE and stderr. 2151#define debug(...) dprintf (2, __VA_ARGS__) 2152#define showlist(...) puts (#__VA_ARGS__) 2153#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2154static void 2155test_varargs_macros (void) 2156{ 2157 int x = 1234; 2158 int y = 5678; 2159 debug ("Flag"); 2160 debug ("X = %d\n", x); 2161 showlist (The first, second, and third items.); 2162 report (x>y, "x is %d but y is %d", x, y); 2163} 2164 2165// Check long long types. 2166#define BIG64 18446744073709551615ull 2167#define BIG32 4294967295ul 2168#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2169#if !BIG_OK 2170 #error "your preprocessor is broken" 2171#endif 2172#if BIG_OK 2173#else 2174 #error "your preprocessor is broken" 2175#endif 2176static long long int bignum = -9223372036854775807LL; 2177static unsigned long long int ubignum = BIG64; 2178 2179struct incomplete_array 2180{ 2181 int datasize; 2182 double data[]; 2183}; 2184 2185struct named_init { 2186 int number; 2187 const wchar_t *name; 2188 double average; 2189}; 2190 2191typedef const char *ccp; 2192 2193static inline int 2194test_restrict (ccp restrict text) 2195{ 2196 // See if C++-style comments work. 2197 // Iterate through items via the restricted pointer. 2198 // Also check for declarations in for loops. 2199 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2200 continue; 2201 return 0; 2202} 2203 2204// Check varargs and va_copy. 2205static bool 2206test_varargs (const char *format, ...) 2207{ 2208 va_list args; 2209 va_start (args, format); 2210 va_list args_copy; 2211 va_copy (args_copy, args); 2212 2213 const char *str = ""; 2214 int number = 0; 2215 float fnumber = 0; 2216 2217 while (*format) 2218 { 2219 switch (*format++) 2220 { 2221 case '\''s'\'': // string 2222 str = va_arg (args_copy, const char *); 2223 break; 2224 case '\''d'\'': // int 2225 number = va_arg (args_copy, int); 2226 break; 2227 case '\''f'\'': // float 2228 fnumber = va_arg (args_copy, double); 2229 break; 2230 default: 2231 break; 2232 } 2233 } 2234 va_end (args_copy); 2235 va_end (args); 2236 2237 return *str && number && fnumber; 2238} 2239' 2240 2241# Test code for whether the C compiler supports C99 (body of main). 2242ac_c_conftest_c99_main=' 2243 // Check bool. 2244 _Bool success = false; 2245 success |= (argc != 0); 2246 2247 // Check restrict. 2248 if (test_restrict ("String literal") == 0) 2249 success = true; 2250 char *restrict newvar = "Another string"; 2251 2252 // Check varargs. 2253 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2254 test_varargs_macros (); 2255 2256 // Check flexible array members. 2257 struct incomplete_array *ia = 2258 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2259 ia->datasize = 10; 2260 for (int i = 0; i < ia->datasize; ++i) 2261 ia->data[i] = i * 1.234; 2262 2263 // Check named initializers. 2264 struct named_init ni = { 2265 .number = 34, 2266 .name = L"Test wide string", 2267 .average = 543.34343, 2268 }; 2269 2270 ni.number = 58; 2271 2272 int dynamic_array[ni.number]; 2273 dynamic_array[0] = argv[0][0]; 2274 dynamic_array[ni.number - 1] = 543; 2275 2276 // work around unused variable warnings 2277 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2278 || dynamic_array[ni.number - 1] != 543); 2279' 2280 2281# Test code for whether the C compiler supports C11 (global declarations) 2282ac_c_conftest_c11_globals=' 2283// Does the compiler advertise C11 conformance? 2284#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2285# error "Compiler does not advertise C11 conformance" 2286#endif 2287 2288// Check _Alignas. 2289char _Alignas (double) aligned_as_double; 2290char _Alignas (0) no_special_alignment; 2291extern char aligned_as_int; 2292char _Alignas (0) _Alignas (int) aligned_as_int; 2293 2294// Check _Alignof. 2295enum 2296{ 2297 int_alignment = _Alignof (int), 2298 int_array_alignment = _Alignof (int[100]), 2299 char_alignment = _Alignof (char) 2300}; 2301_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2302 2303// Check _Noreturn. 2304int _Noreturn does_not_return (void) { for (;;) continue; } 2305 2306// Check _Static_assert. 2307struct test_static_assert 2308{ 2309 int x; 2310 _Static_assert (sizeof (int) <= sizeof (long int), 2311 "_Static_assert does not work in struct"); 2312 long int y; 2313}; 2314 2315// Check UTF-8 literals. 2316#define u8 syntax error! 2317char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2318 2319// Check duplicate typedefs. 2320typedef long *long_ptr; 2321typedef long int *long_ptr; 2322typedef long_ptr long_ptr; 2323 2324// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2325struct anonymous 2326{ 2327 union { 2328 struct { int i; int j; }; 2329 struct { int k; long int l; } w; 2330 }; 2331 int m; 2332} v1; 2333' 2334 2335# Test code for whether the C compiler supports C11 (body of main). 2336ac_c_conftest_c11_main=' 2337 _Static_assert ((offsetof (struct anonymous, i) 2338 == offsetof (struct anonymous, w.k)), 2339 "Anonymous union alignment botch"); 2340 v1.i = 2; 2341 v1.w.k = 5; 2342 ok |= v1.i != 5; 2343' 2344 2345# Test code for whether the C compiler supports C11 (complete). 2346ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2347${ac_c_conftest_c99_globals} 2348${ac_c_conftest_c11_globals} 2349 2350int 2351main (int argc, char **argv) 2352{ 2353 int ok = 0; 2354 ${ac_c_conftest_c89_main} 2355 ${ac_c_conftest_c99_main} 2356 ${ac_c_conftest_c11_main} 2357 return ok; 2358} 2359" 2360 2361# Test code for whether the C compiler supports C99 (complete). 2362ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2363${ac_c_conftest_c99_globals} 2364 2365int 2366main (int argc, char **argv) 2367{ 2368 int ok = 0; 2369 ${ac_c_conftest_c89_main} 2370 ${ac_c_conftest_c99_main} 2371 return ok; 2372} 2373" 2374 2375# Test code for whether the C compiler supports C89 (complete). 2376ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2377 2378int 2379main (int argc, char **argv) 2380{ 2381 int ok = 0; 2382 ${ac_c_conftest_c89_main} 2383 return ok; 2384} 2385" 2386 2387as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2388as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2389as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2390as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2391as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2392as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2393as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2394as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2395as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2396 2397# Auxiliary files required by this configure script. 2398ac_aux_files="config.guess config.sub compile missing install-sh" 2399 2400# Locations in which to look for auxiliary files. 2401ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2402 2403# Search for a directory containing all of the required auxiliary files, 2404# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2405# If we don't find one directory that contains all the files we need, 2406# we report the set of missing files from the *first* directory in 2407# $ac_aux_dir_candidates and give up. 2408ac_missing_aux_files="" 2409ac_first_candidate=: 2410printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412as_found=false 2413for as_dir in $ac_aux_dir_candidates 2414do 2415 IFS=$as_save_IFS 2416 case $as_dir in #((( 2417 '') as_dir=./ ;; 2418 */) ;; 2419 *) as_dir=$as_dir/ ;; 2420 esac 2421 as_found=: 2422 2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2424 ac_aux_dir_found=yes 2425 ac_install_sh= 2426 for ac_aux in $ac_aux_files 2427 do 2428 # As a special case, if "install-sh" is required, that requirement 2429 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2430 # and $ac_install_sh is set appropriately for whichever one is found. 2431 if test x"$ac_aux" = x"install-sh" 2432 then 2433 if test -f "${as_dir}install-sh"; then 2434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2435 ac_install_sh="${as_dir}install-sh -c" 2436 elif test -f "${as_dir}install.sh"; then 2437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2438 ac_install_sh="${as_dir}install.sh -c" 2439 elif test -f "${as_dir}shtool"; then 2440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2441 ac_install_sh="${as_dir}shtool install -c" 2442 else 2443 ac_aux_dir_found=no 2444 if $ac_first_candidate; then 2445 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2446 else 2447 break 2448 fi 2449 fi 2450 else 2451 if test -f "${as_dir}${ac_aux}"; then 2452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2453 else 2454 ac_aux_dir_found=no 2455 if $ac_first_candidate; then 2456 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2457 else 2458 break 2459 fi 2460 fi 2461 fi 2462 done 2463 if test "$ac_aux_dir_found" = yes; then 2464 ac_aux_dir="$as_dir" 2465 break 2466 fi 2467 ac_first_candidate=false 2468 2469 as_found=false 2470done 2471IFS=$as_save_IFS 2472if $as_found 2473then : 2474 2475else $as_nop 2476 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2477fi 2478 2479 2480# These three variables are undocumented and unsupported, 2481# and are intended to be withdrawn in a future Autoconf release. 2482# They can cause serious problems if a builder's source tree is in a directory 2483# whose full name contains unusual characters. 2484if test -f "${ac_aux_dir}config.guess"; then 2485 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2486fi 2487if test -f "${ac_aux_dir}config.sub"; then 2488 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2489fi 2490if test -f "$ac_aux_dir/configure"; then 2491 ac_configure="$SHELL ${ac_aux_dir}configure" 2492fi 2493 2494# Check that the precious variables saved in the cache have kept the same 2495# value. 2496ac_cache_corrupted=false 2497for ac_var in $ac_precious_vars; do 2498 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2499 eval ac_new_set=\$ac_env_${ac_var}_set 2500 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2501 eval ac_new_val=\$ac_env_${ac_var}_value 2502 case $ac_old_set,$ac_new_set in 2503 set,) 2504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2505printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2506 ac_cache_corrupted=: ;; 2507 ,set) 2508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2509printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2510 ac_cache_corrupted=: ;; 2511 ,);; 2512 *) 2513 if test "x$ac_old_val" != "x$ac_new_val"; then 2514 # differences in whitespace do not lead to failure. 2515 ac_old_val_w=`echo x $ac_old_val` 2516 ac_new_val_w=`echo x $ac_new_val` 2517 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2519printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2520 ac_cache_corrupted=: 2521 else 2522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2523printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2524 eval $ac_var=\$ac_old_val 2525 fi 2526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2527printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2529printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2530 fi;; 2531 esac 2532 # Pass precious variables to config.status. 2533 if test "$ac_new_set" = set; then 2534 case $ac_new_val in 2535 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2536 *) ac_arg=$ac_var=$ac_new_val ;; 2537 esac 2538 case " $ac_configure_args " in 2539 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2540 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2541 esac 2542 fi 2543done 2544if $ac_cache_corrupted; then 2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2546printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2548printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2549 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2550 and start over" "$LINENO" 5 2551fi 2552## -------------------- ## 2553## Main body of script. ## 2554## -------------------- ## 2555 2556ac_ext=c 2557ac_cpp='$CPP $CPPFLAGS' 2558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2560ac_compiler_gnu=$ac_cv_c_compiler_gnu 2561 2562 2563 2564ac_config_headers="$ac_config_headers config.h" 2565 2566 2567# Initialize Automake 2568am__api_version='1.16' 2569 2570 2571 2572 # Find a good install program. We prefer a C program (faster), 2573# so one script is as good as another. But avoid the broken or 2574# incompatible versions: 2575# SysV /etc/install, /usr/sbin/install 2576# SunOS /usr/etc/install 2577# IRIX /sbin/install 2578# AIX /bin/install 2579# AmigaOS /C/install, which installs bootblocks on floppy discs 2580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2581# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2583# OS/2's system install, which has a completely different semantic 2584# ./install, which can be erroneously created by make from ./install.sh. 2585# Reject install programs that cannot install multiple files. 2586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2587printf %s "checking for a BSD-compatible install... " >&6; } 2588if test -z "$INSTALL"; then 2589if test ${ac_cv_path_install+y} 2590then : 2591 printf %s "(cached) " >&6 2592else $as_nop 2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2594for as_dir in $PATH 2595do 2596 IFS=$as_save_IFS 2597 case $as_dir in #((( 2598 '') as_dir=./ ;; 2599 */) ;; 2600 *) as_dir=$as_dir/ ;; 2601 esac 2602 # Account for fact that we put trailing slashes in our PATH walk. 2603case $as_dir in #(( 2604 ./ | /[cC]/* | \ 2605 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2606 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2607 /usr/ucb/* ) ;; 2608 *) 2609 # OSF1 and SCO ODT 3.0 have their own names for install. 2610 # Don't use installbsd from OSF since it installs stuff as root 2611 # by default. 2612 for ac_prog in ginstall scoinst install; do 2613 for ac_exec_ext in '' $ac_executable_extensions; do 2614 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2615 if test $ac_prog = install && 2616 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2617 # AIX install. It has an incompatible calling convention. 2618 : 2619 elif test $ac_prog = install && 2620 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2621 # program-specific install script used by HP pwplus--don't use. 2622 : 2623 else 2624 rm -rf conftest.one conftest.two conftest.dir 2625 echo one > conftest.one 2626 echo two > conftest.two 2627 mkdir conftest.dir 2628 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2629 test -s conftest.one && test -s conftest.two && 2630 test -s conftest.dir/conftest.one && 2631 test -s conftest.dir/conftest.two 2632 then 2633 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2634 break 3 2635 fi 2636 fi 2637 fi 2638 done 2639 done 2640 ;; 2641esac 2642 2643 done 2644IFS=$as_save_IFS 2645 2646rm -rf conftest.one conftest.two conftest.dir 2647 2648fi 2649 if test ${ac_cv_path_install+y}; then 2650 INSTALL=$ac_cv_path_install 2651 else 2652 # As a last resort, use the slow shell script. Don't cache a 2653 # value for INSTALL within a source directory, because that will 2654 # break other packages using the cache if that directory is 2655 # removed, or if the value is a relative name. 2656 INSTALL=$ac_install_sh 2657 fi 2658fi 2659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2660printf "%s\n" "$INSTALL" >&6; } 2661 2662# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2663# It thinks the first close brace ends the variable substitution. 2664test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2665 2666test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2667 2668test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2669 2670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2671printf %s "checking whether build environment is sane... " >&6; } 2672# Reject unsafe characters in $srcdir or the absolute working directory 2673# name. Accept space and tab only in the latter. 2674am_lf=' 2675' 2676case `pwd` in 2677 *[\\\"\#\$\&\'\`$am_lf]*) 2678 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2679esac 2680case $srcdir in 2681 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2682 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2683esac 2684 2685# Do 'set' in a subshell so we don't clobber the current shell's 2686# arguments. Must try -L first in case configure is actually a 2687# symlink; some systems play weird games with the mod time of symlinks 2688# (eg FreeBSD returns the mod time of the symlink's containing 2689# directory). 2690if ( 2691 am_has_slept=no 2692 for am_try in 1 2; do 2693 echo "timestamp, slept: $am_has_slept" > conftest.file 2694 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2695 if test "$*" = "X"; then 2696 # -L didn't work. 2697 set X `ls -t "$srcdir/configure" conftest.file` 2698 fi 2699 if test "$*" != "X $srcdir/configure conftest.file" \ 2700 && test "$*" != "X conftest.file $srcdir/configure"; then 2701 2702 # If neither matched, then we have a broken ls. This can happen 2703 # if, for instance, CONFIG_SHELL is bash and it inherits a 2704 # broken ls alias from the environment. This has actually 2705 # happened. Such a system could not be considered "sane". 2706 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2707 alias in your environment" "$LINENO" 5 2708 fi 2709 if test "$2" = conftest.file || test $am_try -eq 2; then 2710 break 2711 fi 2712 # Just in case. 2713 sleep 1 2714 am_has_slept=yes 2715 done 2716 test "$2" = conftest.file 2717 ) 2718then 2719 # Ok. 2720 : 2721else 2722 as_fn_error $? "newly created file is older than distributed files! 2723Check your system clock" "$LINENO" 5 2724fi 2725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2726printf "%s\n" "yes" >&6; } 2727# If we didn't sleep, we still need to ensure time stamps of config.status and 2728# generated files are strictly newer. 2729am_sleep_pid= 2730if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2731 ( sleep 1 ) & 2732 am_sleep_pid=$! 2733fi 2734 2735rm -f conftest.file 2736 2737test "$program_prefix" != NONE && 2738 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2739# Use a double $ so make ignores it. 2740test "$program_suffix" != NONE && 2741 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2742# Double any \ or $. 2743# By default was `s,x,x', remove it if useless. 2744ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2745program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2746 2747 2748# Expand $ac_aux_dir to an absolute path. 2749am_aux_dir=`cd "$ac_aux_dir" && pwd` 2750 2751 2752 if test x"${MISSING+set}" != xset; then 2753 MISSING="\${SHELL} '$am_aux_dir/missing'" 2754fi 2755# Use eval to expand $SHELL 2756if eval "$MISSING --is-lightweight"; then 2757 am_missing_run="$MISSING " 2758else 2759 am_missing_run= 2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2761printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2762fi 2763 2764if test x"${install_sh+set}" != xset; then 2765 case $am_aux_dir in 2766 *\ * | *\ *) 2767 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2768 *) 2769 install_sh="\${SHELL} $am_aux_dir/install-sh" 2770 esac 2771fi 2772 2773# Installed binaries are usually stripped using 'strip' when the user 2774# run "make install-strip". However 'strip' might not be the right 2775# tool to use in cross-compilation environments, therefore Automake 2776# will honor the 'STRIP' environment variable to overrule this program. 2777if test "$cross_compiling" != no; then 2778 if test -n "$ac_tool_prefix"; then 2779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2780set dummy ${ac_tool_prefix}strip; ac_word=$2 2781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2782printf %s "checking for $ac_word... " >&6; } 2783if test ${ac_cv_prog_STRIP+y} 2784then : 2785 printf %s "(cached) " >&6 2786else $as_nop 2787 if test -n "$STRIP"; then 2788 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2789else 2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2791for as_dir in $PATH 2792do 2793 IFS=$as_save_IFS 2794 case $as_dir in #((( 2795 '') as_dir=./ ;; 2796 */) ;; 2797 *) as_dir=$as_dir/ ;; 2798 esac 2799 for ac_exec_ext in '' $ac_executable_extensions; do 2800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2801 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2803 break 2 2804 fi 2805done 2806 done 2807IFS=$as_save_IFS 2808 2809fi 2810fi 2811STRIP=$ac_cv_prog_STRIP 2812if test -n "$STRIP"; then 2813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2814printf "%s\n" "$STRIP" >&6; } 2815else 2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2817printf "%s\n" "no" >&6; } 2818fi 2819 2820 2821fi 2822if test -z "$ac_cv_prog_STRIP"; then 2823 ac_ct_STRIP=$STRIP 2824 # Extract the first word of "strip", so it can be a program name with args. 2825set dummy strip; ac_word=$2 2826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2827printf %s "checking for $ac_word... " >&6; } 2828if test ${ac_cv_prog_ac_ct_STRIP+y} 2829then : 2830 printf %s "(cached) " >&6 2831else $as_nop 2832 if test -n "$ac_ct_STRIP"; then 2833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2834else 2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2836for as_dir in $PATH 2837do 2838 IFS=$as_save_IFS 2839 case $as_dir in #((( 2840 '') as_dir=./ ;; 2841 */) ;; 2842 *) as_dir=$as_dir/ ;; 2843 esac 2844 for ac_exec_ext in '' $ac_executable_extensions; do 2845 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2846 ac_cv_prog_ac_ct_STRIP="strip" 2847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2848 break 2 2849 fi 2850done 2851 done 2852IFS=$as_save_IFS 2853 2854fi 2855fi 2856ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2857if test -n "$ac_ct_STRIP"; then 2858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2859printf "%s\n" "$ac_ct_STRIP" >&6; } 2860else 2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2862printf "%s\n" "no" >&6; } 2863fi 2864 2865 if test "x$ac_ct_STRIP" = x; then 2866 STRIP=":" 2867 else 2868 case $cross_compiling:$ac_tool_warned in 2869yes:) 2870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2871printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2872ac_tool_warned=yes ;; 2873esac 2874 STRIP=$ac_ct_STRIP 2875 fi 2876else 2877 STRIP="$ac_cv_prog_STRIP" 2878fi 2879 2880fi 2881INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2882 2883 2884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2885printf %s "checking for a race-free mkdir -p... " >&6; } 2886if test -z "$MKDIR_P"; then 2887 if test ${ac_cv_path_mkdir+y} 2888then : 2889 printf %s "(cached) " >&6 2890else $as_nop 2891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2892for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2893do 2894 IFS=$as_save_IFS 2895 case $as_dir in #((( 2896 '') as_dir=./ ;; 2897 */) ;; 2898 *) as_dir=$as_dir/ ;; 2899 esac 2900 for ac_prog in mkdir gmkdir; do 2901 for ac_exec_ext in '' $ac_executable_extensions; do 2902 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2903 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2904 'mkdir ('*'coreutils) '* | \ 2905 'BusyBox '* | \ 2906 'mkdir (fileutils) '4.1*) 2907 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2908 break 3;; 2909 esac 2910 done 2911 done 2912 done 2913IFS=$as_save_IFS 2914 2915fi 2916 2917 test -d ./--version && rmdir ./--version 2918 if test ${ac_cv_path_mkdir+y}; then 2919 MKDIR_P="$ac_cv_path_mkdir -p" 2920 else 2921 # As a last resort, use the slow shell script. Don't cache a 2922 # value for MKDIR_P within a source directory, because that will 2923 # break other packages using the cache if that directory is 2924 # removed, or if the value is a relative name. 2925 MKDIR_P="$ac_install_sh -d" 2926 fi 2927fi 2928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2929printf "%s\n" "$MKDIR_P" >&6; } 2930 2931for ac_prog in gawk mawk nawk awk 2932do 2933 # Extract the first word of "$ac_prog", so it can be a program name with args. 2934set dummy $ac_prog; ac_word=$2 2935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2936printf %s "checking for $ac_word... " >&6; } 2937if test ${ac_cv_prog_AWK+y} 2938then : 2939 printf %s "(cached) " >&6 2940else $as_nop 2941 if test -n "$AWK"; then 2942 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2943else 2944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2945for as_dir in $PATH 2946do 2947 IFS=$as_save_IFS 2948 case $as_dir in #((( 2949 '') as_dir=./ ;; 2950 */) ;; 2951 *) as_dir=$as_dir/ ;; 2952 esac 2953 for ac_exec_ext in '' $ac_executable_extensions; do 2954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2955 ac_cv_prog_AWK="$ac_prog" 2956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2957 break 2 2958 fi 2959done 2960 done 2961IFS=$as_save_IFS 2962 2963fi 2964fi 2965AWK=$ac_cv_prog_AWK 2966if test -n "$AWK"; then 2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2968printf "%s\n" "$AWK" >&6; } 2969else 2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2971printf "%s\n" "no" >&6; } 2972fi 2973 2974 2975 test -n "$AWK" && break 2976done 2977 2978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2979printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2980set x ${MAKE-make} 2981ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2982if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2983then : 2984 printf %s "(cached) " >&6 2985else $as_nop 2986 cat >conftest.make <<\_ACEOF 2987SHELL = /bin/sh 2988all: 2989 @echo '@@@%%%=$(MAKE)=@@@%%%' 2990_ACEOF 2991# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2992case `${MAKE-make} -f conftest.make 2>/dev/null` in 2993 *@@@%%%=?*=@@@%%%*) 2994 eval ac_cv_prog_make_${ac_make}_set=yes;; 2995 *) 2996 eval ac_cv_prog_make_${ac_make}_set=no;; 2997esac 2998rm -f conftest.make 2999fi 3000if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3002printf "%s\n" "yes" >&6; } 3003 SET_MAKE= 3004else 3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3006printf "%s\n" "no" >&6; } 3007 SET_MAKE="MAKE=${MAKE-make}" 3008fi 3009 3010rm -rf .tst 2>/dev/null 3011mkdir .tst 2>/dev/null 3012if test -d .tst; then 3013 am__leading_dot=. 3014else 3015 am__leading_dot=_ 3016fi 3017rmdir .tst 2>/dev/null 3018 3019# Check whether --enable-silent-rules was given. 3020if test ${enable_silent_rules+y} 3021then : 3022 enableval=$enable_silent_rules; 3023fi 3024 3025case $enable_silent_rules in # ((( 3026 yes) AM_DEFAULT_VERBOSITY=0;; 3027 no) AM_DEFAULT_VERBOSITY=1;; 3028 *) AM_DEFAULT_VERBOSITY=1;; 3029esac 3030am_make=${MAKE-make} 3031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3032printf %s "checking whether $am_make supports nested variables... " >&6; } 3033if test ${am_cv_make_support_nested_variables+y} 3034then : 3035 printf %s "(cached) " >&6 3036else $as_nop 3037 if printf "%s\n" 'TRUE=$(BAR$(V)) 3038BAR0=false 3039BAR1=true 3040V=1 3041am__doit: 3042 @$(TRUE) 3043.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3044 am_cv_make_support_nested_variables=yes 3045else 3046 am_cv_make_support_nested_variables=no 3047fi 3048fi 3049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3050printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3051if test $am_cv_make_support_nested_variables = yes; then 3052 AM_V='$(V)' 3053 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3054else 3055 AM_V=$AM_DEFAULT_VERBOSITY 3056 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3057fi 3058AM_BACKSLASH='\' 3059 3060if test "`cd $srcdir && pwd`" != "`pwd`"; then 3061 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3062 # is not polluted with repeated "-I." 3063 am__isrc=' -I$(srcdir)' 3064 # test to see if srcdir already configured 3065 if test -f $srcdir/config.status; then 3066 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3067 fi 3068fi 3069 3070# test whether we have cygpath 3071if test -z "$CYGPATH_W"; then 3072 if (cygpath --version) >/dev/null 2>/dev/null; then 3073 CYGPATH_W='cygpath -w' 3074 else 3075 CYGPATH_W=echo 3076 fi 3077fi 3078 3079 3080# Define the identity of the package. 3081 PACKAGE='xcalc' 3082 VERSION='1.1.2' 3083 3084 3085printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3086 3087 3088printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3089 3090# Some tools Automake needs. 3091 3092ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3093 3094 3095AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3096 3097 3098AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3099 3100 3101AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3102 3103 3104MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3105 3106# For better backward compatibility. To be removed once Automake 1.9.x 3107# dies out for good. For more background, see: 3108# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3109# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3110mkdir_p='$(MKDIR_P)' 3111 3112# We need awk for the "check" target (and possibly the TAP driver). The 3113# system "awk" is bad on some platforms. 3114# Always define AMTAR for backward compatibility. Yes, it's still used 3115# in the wild :-( We should find a proper way to deprecate it ... 3116AMTAR='$${TAR-tar}' 3117 3118 3119# We'll loop over all known methods to create a tar archive until one works. 3120_am_tools='gnutar pax cpio none' 3121 3122am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3123 3124 3125 3126 3127 3128# Variables for tags utilities; see am/tags.am 3129if test -z "$CTAGS"; then 3130 CTAGS=ctags 3131fi 3132 3133if test -z "$ETAGS"; then 3134 ETAGS=etags 3135fi 3136 3137if test -z "$CSCOPE"; then 3138 CSCOPE=cscope 3139fi 3140 3141 3142 3143# POSIX will say in a future version that running "rm -f" with no argument 3144# is OK; and we want to be able to make that assumption in our Makefile 3145# recipes. So use an aggressive probe to check that the usage we want is 3146# actually supported "in the wild" to an acceptable degree. 3147# See automake bug#10828. 3148# To make any issue more visible, cause the running configure to be aborted 3149# by default if the 'rm' program in use doesn't match our expectations; the 3150# user can still override this though. 3151if rm -f && rm -fr && rm -rf; then : OK; else 3152 cat >&2 <<'END' 3153Oops! 3154 3155Your 'rm' program seems unable to run without file operands specified 3156on the command line, even when the '-f' option is present. This is contrary 3157to the behaviour of most rm programs out there, and not conforming with 3158the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3159 3160Please tell bug-automake@gnu.org about your system, including the value 3161of your $PATH and any error possibly output before this message. This 3162can help us improve future automake versions. 3163 3164END 3165 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3166 echo 'Configuration will proceed anyway, since you have set the' >&2 3167 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3168 echo >&2 3169 else 3170 cat >&2 <<'END' 3171Aborting the configuration process, to ensure you take notice of the issue. 3172 3173You can download and install GNU coreutils to get an 'rm' implementation 3174that behaves properly: <https://www.gnu.org/software/coreutils/>. 3175 3176If you want to complete the configuration process using your problematic 3177'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3178to "yes", and re-run configure. 3179 3180END 3181 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3182 fi 3183fi 3184 3185 3186# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207DEPDIR="${am__leading_dot}deps" 3208 3209ac_config_commands="$ac_config_commands depfiles" 3210 3211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3212printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 3213cat > confinc.mk << 'END' 3214am__doit: 3215 @echo this is the am__doit target >confinc.out 3216.PHONY: am__doit 3217END 3218am__include="#" 3219am__quote= 3220# BSD make does it like this. 3221echo '.include "confinc.mk" # ignored' > confmf.BSD 3222# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3223echo 'include confinc.mk # ignored' > confmf.GNU 3224_am_result=no 3225for s in GNU BSD; do 3226 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3227 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3228 ac_status=$? 3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); } 3231 case $?:`cat confinc.out 2>/dev/null` in #( 3232 '0:this is the am__doit target') : 3233 case $s in #( 3234 BSD) : 3235 am__include='.include' am__quote='"' ;; #( 3236 *) : 3237 am__include='include' am__quote='' ;; 3238esac ;; #( 3239 *) : 3240 ;; 3241esac 3242 if test "$am__include" != "#"; then 3243 _am_result="yes ($s style)" 3244 break 3245 fi 3246done 3247rm -f confinc.* confmf.* 3248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3249printf "%s\n" "${_am_result}" >&6; } 3250 3251# Check whether --enable-dependency-tracking was given. 3252if test ${enable_dependency_tracking+y} 3253then : 3254 enableval=$enable_dependency_tracking; 3255fi 3256 3257if test "x$enable_dependency_tracking" != xno; then 3258 am_depcomp="$ac_aux_dir/depcomp" 3259 AMDEPBACKSLASH='\' 3260 am__nodep='_no' 3261fi 3262 if test "x$enable_dependency_tracking" != xno; then 3263 AMDEP_TRUE= 3264 AMDEP_FALSE='#' 3265else 3266 AMDEP_TRUE='#' 3267 AMDEP_FALSE= 3268fi 3269 3270 3271ac_ext=c 3272ac_cpp='$CPP $CPPFLAGS' 3273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3275ac_compiler_gnu=$ac_cv_c_compiler_gnu 3276if test -n "$ac_tool_prefix"; then 3277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3278set dummy ${ac_tool_prefix}gcc; ac_word=$2 3279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3280printf %s "checking for $ac_word... " >&6; } 3281if test ${ac_cv_prog_CC+y} 3282then : 3283 printf %s "(cached) " >&6 3284else $as_nop 3285 if test -n "$CC"; then 3286 ac_cv_prog_CC="$CC" # Let the user override the test. 3287else 3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3289for as_dir in $PATH 3290do 3291 IFS=$as_save_IFS 3292 case $as_dir in #((( 3293 '') as_dir=./ ;; 3294 */) ;; 3295 *) as_dir=$as_dir/ ;; 3296 esac 3297 for ac_exec_ext in '' $ac_executable_extensions; do 3298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3299 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3301 break 2 3302 fi 3303done 3304 done 3305IFS=$as_save_IFS 3306 3307fi 3308fi 3309CC=$ac_cv_prog_CC 3310if test -n "$CC"; then 3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3312printf "%s\n" "$CC" >&6; } 3313else 3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3315printf "%s\n" "no" >&6; } 3316fi 3317 3318 3319fi 3320if test -z "$ac_cv_prog_CC"; then 3321 ac_ct_CC=$CC 3322 # Extract the first word of "gcc", so it can be a program name with args. 3323set dummy gcc; ac_word=$2 3324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3325printf %s "checking for $ac_word... " >&6; } 3326if test ${ac_cv_prog_ac_ct_CC+y} 3327then : 3328 printf %s "(cached) " >&6 3329else $as_nop 3330 if test -n "$ac_ct_CC"; then 3331 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3332else 3333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3334for as_dir in $PATH 3335do 3336 IFS=$as_save_IFS 3337 case $as_dir in #((( 3338 '') as_dir=./ ;; 3339 */) ;; 3340 *) as_dir=$as_dir/ ;; 3341 esac 3342 for ac_exec_ext in '' $ac_executable_extensions; do 3343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3344 ac_cv_prog_ac_ct_CC="gcc" 3345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3346 break 2 3347 fi 3348done 3349 done 3350IFS=$as_save_IFS 3351 3352fi 3353fi 3354ac_ct_CC=$ac_cv_prog_ac_ct_CC 3355if test -n "$ac_ct_CC"; then 3356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3357printf "%s\n" "$ac_ct_CC" >&6; } 3358else 3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3360printf "%s\n" "no" >&6; } 3361fi 3362 3363 if test "x$ac_ct_CC" = x; then 3364 CC="" 3365 else 3366 case $cross_compiling:$ac_tool_warned in 3367yes:) 3368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3369printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3370ac_tool_warned=yes ;; 3371esac 3372 CC=$ac_ct_CC 3373 fi 3374else 3375 CC="$ac_cv_prog_CC" 3376fi 3377 3378if test -z "$CC"; then 3379 if test -n "$ac_tool_prefix"; then 3380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3381set dummy ${ac_tool_prefix}cc; 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 $as_nop 3388 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}cc" 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 3411fi 3412CC=$ac_cv_prog_CC 3413if test -n "$CC"; then 3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3415printf "%s\n" "$CC" >&6; } 3416else 3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3418printf "%s\n" "no" >&6; } 3419fi 3420 3421 3422 fi 3423fi 3424if test -z "$CC"; then 3425 # Extract the first word of "cc", so it can be a program name with args. 3426set dummy cc; ac_word=$2 3427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3428printf %s "checking for $ac_word... " >&6; } 3429if test ${ac_cv_prog_CC+y} 3430then : 3431 printf %s "(cached) " >&6 3432else $as_nop 3433 if test -n "$CC"; then 3434 ac_cv_prog_CC="$CC" # Let the user override the test. 3435else 3436 ac_prog_rejected=no 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 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3449 ac_prog_rejected=yes 3450 continue 3451 fi 3452 ac_cv_prog_CC="cc" 3453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3454 break 2 3455 fi 3456done 3457 done 3458IFS=$as_save_IFS 3459 3460if test $ac_prog_rejected = yes; then 3461 # We found a bogon in the path, so make sure we never use it. 3462 set dummy $ac_cv_prog_CC 3463 shift 3464 if test $# != 0; then 3465 # We chose a different compiler from the bogus one. 3466 # However, it has the same basename, so the bogon will be chosen 3467 # first if we set CC to just the basename; use the full file name. 3468 shift 3469 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 3470 fi 3471fi 3472fi 3473fi 3474CC=$ac_cv_prog_CC 3475if test -n "$CC"; then 3476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3477printf "%s\n" "$CC" >&6; } 3478else 3479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3480printf "%s\n" "no" >&6; } 3481fi 3482 3483 3484fi 3485if test -z "$CC"; then 3486 if test -n "$ac_tool_prefix"; then 3487 for ac_prog in cl.exe 3488 do 3489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3490set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3492printf %s "checking for $ac_word... " >&6; } 3493if test ${ac_cv_prog_CC+y} 3494then : 3495 printf %s "(cached) " >&6 3496else $as_nop 3497 if test -n "$CC"; then 3498 ac_cv_prog_CC="$CC" # Let the user override the test. 3499else 3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3501for as_dir in $PATH 3502do 3503 IFS=$as_save_IFS 3504 case $as_dir in #((( 3505 '') as_dir=./ ;; 3506 */) ;; 3507 *) as_dir=$as_dir/ ;; 3508 esac 3509 for ac_exec_ext in '' $ac_executable_extensions; do 3510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3513 break 2 3514 fi 3515done 3516 done 3517IFS=$as_save_IFS 3518 3519fi 3520fi 3521CC=$ac_cv_prog_CC 3522if test -n "$CC"; then 3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3524printf "%s\n" "$CC" >&6; } 3525else 3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3527printf "%s\n" "no" >&6; } 3528fi 3529 3530 3531 test -n "$CC" && break 3532 done 3533fi 3534if test -z "$CC"; then 3535 ac_ct_CC=$CC 3536 for ac_prog in cl.exe 3537do 3538 # Extract the first word of "$ac_prog", so it can be a program name with args. 3539set dummy $ac_prog; ac_word=$2 3540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3541printf %s "checking for $ac_word... " >&6; } 3542if test ${ac_cv_prog_ac_ct_CC+y} 3543then : 3544 printf %s "(cached) " >&6 3545else $as_nop 3546 if test -n "$ac_ct_CC"; then 3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3548else 3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3550for as_dir in $PATH 3551do 3552 IFS=$as_save_IFS 3553 case $as_dir in #((( 3554 '') as_dir=./ ;; 3555 */) ;; 3556 *) as_dir=$as_dir/ ;; 3557 esac 3558 for ac_exec_ext in '' $ac_executable_extensions; do 3559 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3560 ac_cv_prog_ac_ct_CC="$ac_prog" 3561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3562 break 2 3563 fi 3564done 3565 done 3566IFS=$as_save_IFS 3567 3568fi 3569fi 3570ac_ct_CC=$ac_cv_prog_ac_ct_CC 3571if test -n "$ac_ct_CC"; then 3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3573printf "%s\n" "$ac_ct_CC" >&6; } 3574else 3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3576printf "%s\n" "no" >&6; } 3577fi 3578 3579 3580 test -n "$ac_ct_CC" && break 3581done 3582 3583 if test "x$ac_ct_CC" = x; then 3584 CC="" 3585 else 3586 case $cross_compiling:$ac_tool_warned in 3587yes:) 3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3589printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3590ac_tool_warned=yes ;; 3591esac 3592 CC=$ac_ct_CC 3593 fi 3594fi 3595 3596fi 3597if test -z "$CC"; then 3598 if test -n "$ac_tool_prefix"; then 3599 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3600set dummy ${ac_tool_prefix}clang; ac_word=$2 3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3602printf %s "checking for $ac_word... " >&6; } 3603if test ${ac_cv_prog_CC+y} 3604then : 3605 printf %s "(cached) " >&6 3606else $as_nop 3607 if test -n "$CC"; then 3608 ac_cv_prog_CC="$CC" # Let the user override the test. 3609else 3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3611for as_dir in $PATH 3612do 3613 IFS=$as_save_IFS 3614 case $as_dir in #((( 3615 '') as_dir=./ ;; 3616 */) ;; 3617 *) as_dir=$as_dir/ ;; 3618 esac 3619 for ac_exec_ext in '' $ac_executable_extensions; do 3620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3621 ac_cv_prog_CC="${ac_tool_prefix}clang" 3622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3623 break 2 3624 fi 3625done 3626 done 3627IFS=$as_save_IFS 3628 3629fi 3630fi 3631CC=$ac_cv_prog_CC 3632if test -n "$CC"; then 3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3634printf "%s\n" "$CC" >&6; } 3635else 3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3637printf "%s\n" "no" >&6; } 3638fi 3639 3640 3641fi 3642if test -z "$ac_cv_prog_CC"; then 3643 ac_ct_CC=$CC 3644 # Extract the first word of "clang", so it can be a program name with args. 3645set dummy clang; ac_word=$2 3646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3647printf %s "checking for $ac_word... " >&6; } 3648if test ${ac_cv_prog_ac_ct_CC+y} 3649then : 3650 printf %s "(cached) " >&6 3651else $as_nop 3652 if test -n "$ac_ct_CC"; then 3653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3654else 3655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3656for as_dir in $PATH 3657do 3658 IFS=$as_save_IFS 3659 case $as_dir in #((( 3660 '') as_dir=./ ;; 3661 */) ;; 3662 *) as_dir=$as_dir/ ;; 3663 esac 3664 for ac_exec_ext in '' $ac_executable_extensions; do 3665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3666 ac_cv_prog_ac_ct_CC="clang" 3667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3668 break 2 3669 fi 3670done 3671 done 3672IFS=$as_save_IFS 3673 3674fi 3675fi 3676ac_ct_CC=$ac_cv_prog_ac_ct_CC 3677if test -n "$ac_ct_CC"; then 3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3679printf "%s\n" "$ac_ct_CC" >&6; } 3680else 3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3682printf "%s\n" "no" >&6; } 3683fi 3684 3685 if test "x$ac_ct_CC" = x; then 3686 CC="" 3687 else 3688 case $cross_compiling:$ac_tool_warned in 3689yes:) 3690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3691printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3692ac_tool_warned=yes ;; 3693esac 3694 CC=$ac_ct_CC 3695 fi 3696else 3697 CC="$ac_cv_prog_CC" 3698fi 3699 3700fi 3701 3702 3703test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3704printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3705as_fn_error $? "no acceptable C compiler found in \$PATH 3706See \`config.log' for more details" "$LINENO" 5; } 3707 3708# Provide some information about the compiler. 3709printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3710set X $ac_compile 3711ac_compiler=$2 3712for ac_option in --version -v -V -qversion -version; do 3713 { { ac_try="$ac_compiler $ac_option >&5" 3714case "(($ac_try" in 3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3716 *) ac_try_echo=$ac_try;; 3717esac 3718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3719printf "%s\n" "$ac_try_echo"; } >&5 3720 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3721 ac_status=$? 3722 if test -s conftest.err; then 3723 sed '10a\ 3724... rest of stderr output deleted ... 3725 10q' conftest.err >conftest.er1 3726 cat conftest.er1 >&5 3727 fi 3728 rm -f conftest.er1 conftest.err 3729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3730 test $ac_status = 0; } 3731done 3732 3733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3734/* end confdefs.h. */ 3735 3736int 3737main (void) 3738{ 3739 3740 ; 3741 return 0; 3742} 3743_ACEOF 3744ac_clean_files_save=$ac_clean_files 3745ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3746# Try to create an executable without -o first, disregard a.out. 3747# It will help us diagnose broken compilers, and finding out an intuition 3748# of exeext. 3749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3750printf %s "checking whether the C compiler works... " >&6; } 3751ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3752 3753# The possible output files: 3754ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3755 3756ac_rmfiles= 3757for ac_file in $ac_files 3758do 3759 case $ac_file in 3760 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3761 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3762 esac 3763done 3764rm -f $ac_rmfiles 3765 3766if { { ac_try="$ac_link_default" 3767case "(($ac_try" in 3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3769 *) ac_try_echo=$ac_try;; 3770esac 3771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3772printf "%s\n" "$ac_try_echo"; } >&5 3773 (eval "$ac_link_default") 2>&5 3774 ac_status=$? 3775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3776 test $ac_status = 0; } 3777then : 3778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3779# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3780# in a Makefile. We should not override ac_cv_exeext if it was cached, 3781# so that the user can short-circuit this test for compilers unknown to 3782# Autoconf. 3783for ac_file in $ac_files '' 3784do 3785 test -f "$ac_file" || continue 3786 case $ac_file in 3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3788 ;; 3789 [ab].out ) 3790 # We found the default executable, but exeext='' is most 3791 # certainly right. 3792 break;; 3793 *.* ) 3794 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3795 then :; else 3796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3797 fi 3798 # We set ac_cv_exeext here because the later test for it is not 3799 # safe: cross compilers may not add the suffix if given an `-o' 3800 # argument, so we may need to know it at that point already. 3801 # Even if this section looks crufty: it has the advantage of 3802 # actually working. 3803 break;; 3804 * ) 3805 break;; 3806 esac 3807done 3808test "$ac_cv_exeext" = no && ac_cv_exeext= 3809 3810else $as_nop 3811 ac_file='' 3812fi 3813if test -z "$ac_file" 3814then : 3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3816printf "%s\n" "no" >&6; } 3817printf "%s\n" "$as_me: failed program was:" >&5 3818sed 's/^/| /' conftest.$ac_ext >&5 3819 3820{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3821printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3822as_fn_error 77 "C compiler cannot create executables 3823See \`config.log' for more details" "$LINENO" 5; } 3824else $as_nop 3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3826printf "%s\n" "yes" >&6; } 3827fi 3828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3829printf %s "checking for C compiler default output file name... " >&6; } 3830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3831printf "%s\n" "$ac_file" >&6; } 3832ac_exeext=$ac_cv_exeext 3833 3834rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3835ac_clean_files=$ac_clean_files_save 3836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3837printf %s "checking for suffix of executables... " >&6; } 3838if { { ac_try="$ac_link" 3839case "(($ac_try" in 3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3841 *) ac_try_echo=$ac_try;; 3842esac 3843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3844printf "%s\n" "$ac_try_echo"; } >&5 3845 (eval "$ac_link") 2>&5 3846 ac_status=$? 3847 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3848 test $ac_status = 0; } 3849then : 3850 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3851# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3852# work properly (i.e., refer to `conftest.exe'), while it won't with 3853# `rm'. 3854for ac_file in conftest.exe conftest conftest.*; do 3855 test -f "$ac_file" || continue 3856 case $ac_file in 3857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3858 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3859 break;; 3860 * ) break;; 3861 esac 3862done 3863else $as_nop 3864 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3865printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3866as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3867See \`config.log' for more details" "$LINENO" 5; } 3868fi 3869rm -f conftest conftest$ac_cv_exeext 3870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3871printf "%s\n" "$ac_cv_exeext" >&6; } 3872 3873rm -f conftest.$ac_ext 3874EXEEXT=$ac_cv_exeext 3875ac_exeext=$EXEEXT 3876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3877/* end confdefs.h. */ 3878#include <stdio.h> 3879int 3880main (void) 3881{ 3882FILE *f = fopen ("conftest.out", "w"); 3883 return ferror (f) || fclose (f) != 0; 3884 3885 ; 3886 return 0; 3887} 3888_ACEOF 3889ac_clean_files="$ac_clean_files conftest.out" 3890# Check that the compiler produces executables we can run. If not, either 3891# the compiler is broken, or we cross compile. 3892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3893printf %s "checking whether we are cross compiling... " >&6; } 3894if test "$cross_compiling" != yes; then 3895 { { ac_try="$ac_link" 3896case "(($ac_try" in 3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3898 *) ac_try_echo=$ac_try;; 3899esac 3900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3901printf "%s\n" "$ac_try_echo"; } >&5 3902 (eval "$ac_link") 2>&5 3903 ac_status=$? 3904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3905 test $ac_status = 0; } 3906 if { ac_try='./conftest$ac_cv_exeext' 3907 { { case "(($ac_try" in 3908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3909 *) ac_try_echo=$ac_try;; 3910esac 3911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3912printf "%s\n" "$ac_try_echo"; } >&5 3913 (eval "$ac_try") 2>&5 3914 ac_status=$? 3915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3916 test $ac_status = 0; }; }; then 3917 cross_compiling=no 3918 else 3919 if test "$cross_compiling" = maybe; then 3920 cross_compiling=yes 3921 else 3922 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3923printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3924as_fn_error 77 "cannot run C compiled programs. 3925If you meant to cross compile, use \`--host'. 3926See \`config.log' for more details" "$LINENO" 5; } 3927 fi 3928 fi 3929fi 3930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3931printf "%s\n" "$cross_compiling" >&6; } 3932 3933rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3934ac_clean_files=$ac_clean_files_save 3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3936printf %s "checking for suffix of object files... " >&6; } 3937if test ${ac_cv_objext+y} 3938then : 3939 printf %s "(cached) " >&6 3940else $as_nop 3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3942/* end confdefs.h. */ 3943 3944int 3945main (void) 3946{ 3947 3948 ; 3949 return 0; 3950} 3951_ACEOF 3952rm -f conftest.o conftest.obj 3953if { { ac_try="$ac_compile" 3954case "(($ac_try" in 3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3956 *) ac_try_echo=$ac_try;; 3957esac 3958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3959printf "%s\n" "$ac_try_echo"; } >&5 3960 (eval "$ac_compile") 2>&5 3961 ac_status=$? 3962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3963 test $ac_status = 0; } 3964then : 3965 for ac_file in conftest.o conftest.obj conftest.*; do 3966 test -f "$ac_file" || continue; 3967 case $ac_file in 3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3970 break;; 3971 esac 3972done 3973else $as_nop 3974 printf "%s\n" "$as_me: failed program was:" >&5 3975sed 's/^/| /' conftest.$ac_ext >&5 3976 3977{ { 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 object files: cannot compile 3980See \`config.log' for more details" "$LINENO" 5; } 3981fi 3982rm -f conftest.$ac_cv_objext conftest.$ac_ext 3983fi 3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3985printf "%s\n" "$ac_cv_objext" >&6; } 3986OBJEXT=$ac_cv_objext 3987ac_objext=$OBJEXT 3988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3989printf %s "checking whether the compiler supports GNU C... " >&6; } 3990if test ${ac_cv_c_compiler_gnu+y} 3991then : 3992 printf %s "(cached) " >&6 3993else $as_nop 3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3995/* end confdefs.h. */ 3996 3997int 3998main (void) 3999{ 4000#ifndef __GNUC__ 4001 choke me 4002#endif 4003 4004 ; 4005 return 0; 4006} 4007_ACEOF 4008if ac_fn_c_try_compile "$LINENO" 4009then : 4010 ac_compiler_gnu=yes 4011else $as_nop 4012 ac_compiler_gnu=no 4013fi 4014rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4015ac_cv_c_compiler_gnu=$ac_compiler_gnu 4016 4017fi 4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4019printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4020ac_compiler_gnu=$ac_cv_c_compiler_gnu 4021 4022if test $ac_compiler_gnu = yes; then 4023 GCC=yes 4024else 4025 GCC= 4026fi 4027ac_test_CFLAGS=${CFLAGS+y} 4028ac_save_CFLAGS=$CFLAGS 4029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4030printf %s "checking whether $CC accepts -g... " >&6; } 4031if test ${ac_cv_prog_cc_g+y} 4032then : 4033 printf %s "(cached) " >&6 4034else $as_nop 4035 ac_save_c_werror_flag=$ac_c_werror_flag 4036 ac_c_werror_flag=yes 4037 ac_cv_prog_cc_g=no 4038 CFLAGS="-g" 4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4040/* end confdefs.h. */ 4041 4042int 4043main (void) 4044{ 4045 4046 ; 4047 return 0; 4048} 4049_ACEOF 4050if ac_fn_c_try_compile "$LINENO" 4051then : 4052 ac_cv_prog_cc_g=yes 4053else $as_nop 4054 CFLAGS="" 4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4056/* end confdefs.h. */ 4057 4058int 4059main (void) 4060{ 4061 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066if ac_fn_c_try_compile "$LINENO" 4067then : 4068 4069else $as_nop 4070 ac_c_werror_flag=$ac_save_c_werror_flag 4071 CFLAGS="-g" 4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4073/* end confdefs.h. */ 4074 4075int 4076main (void) 4077{ 4078 4079 ; 4080 return 0; 4081} 4082_ACEOF 4083if ac_fn_c_try_compile "$LINENO" 4084then : 4085 ac_cv_prog_cc_g=yes 4086fi 4087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4088fi 4089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4090fi 4091rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4092 ac_c_werror_flag=$ac_save_c_werror_flag 4093fi 4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4095printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4096if test $ac_test_CFLAGS; then 4097 CFLAGS=$ac_save_CFLAGS 4098elif test $ac_cv_prog_cc_g = yes; then 4099 if test "$GCC" = yes; then 4100 CFLAGS="-g -O2" 4101 else 4102 CFLAGS="-g" 4103 fi 4104else 4105 if test "$GCC" = yes; then 4106 CFLAGS="-O2" 4107 else 4108 CFLAGS= 4109 fi 4110fi 4111ac_prog_cc_stdc=no 4112if test x$ac_prog_cc_stdc = xno 4113then : 4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4115printf %s "checking for $CC option to enable C11 features... " >&6; } 4116if test ${ac_cv_prog_cc_c11+y} 4117then : 4118 printf %s "(cached) " >&6 4119else $as_nop 4120 ac_cv_prog_cc_c11=no 4121ac_save_CC=$CC 4122cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4123/* end confdefs.h. */ 4124$ac_c_conftest_c11_program 4125_ACEOF 4126for ac_arg in '' -std=gnu11 4127do 4128 CC="$ac_save_CC $ac_arg" 4129 if ac_fn_c_try_compile "$LINENO" 4130then : 4131 ac_cv_prog_cc_c11=$ac_arg 4132fi 4133rm -f core conftest.err conftest.$ac_objext conftest.beam 4134 test "x$ac_cv_prog_cc_c11" != "xno" && break 4135done 4136rm -f conftest.$ac_ext 4137CC=$ac_save_CC 4138fi 4139 4140if test "x$ac_cv_prog_cc_c11" = xno 4141then : 4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4143printf "%s\n" "unsupported" >&6; } 4144else $as_nop 4145 if test "x$ac_cv_prog_cc_c11" = x 4146then : 4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4148printf "%s\n" "none needed" >&6; } 4149else $as_nop 4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4151printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4152 CC="$CC $ac_cv_prog_cc_c11" 4153fi 4154 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4155 ac_prog_cc_stdc=c11 4156fi 4157fi 4158if test x$ac_prog_cc_stdc = xno 4159then : 4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4161printf %s "checking for $CC option to enable C99 features... " >&6; } 4162if test ${ac_cv_prog_cc_c99+y} 4163then : 4164 printf %s "(cached) " >&6 4165else $as_nop 4166 ac_cv_prog_cc_c99=no 4167ac_save_CC=$CC 4168cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4169/* end confdefs.h. */ 4170$ac_c_conftest_c99_program 4171_ACEOF 4172for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4173do 4174 CC="$ac_save_CC $ac_arg" 4175 if ac_fn_c_try_compile "$LINENO" 4176then : 4177 ac_cv_prog_cc_c99=$ac_arg 4178fi 4179rm -f core conftest.err conftest.$ac_objext conftest.beam 4180 test "x$ac_cv_prog_cc_c99" != "xno" && break 4181done 4182rm -f conftest.$ac_ext 4183CC=$ac_save_CC 4184fi 4185 4186if test "x$ac_cv_prog_cc_c99" = xno 4187then : 4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4189printf "%s\n" "unsupported" >&6; } 4190else $as_nop 4191 if test "x$ac_cv_prog_cc_c99" = x 4192then : 4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4194printf "%s\n" "none needed" >&6; } 4195else $as_nop 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4197printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4198 CC="$CC $ac_cv_prog_cc_c99" 4199fi 4200 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4201 ac_prog_cc_stdc=c99 4202fi 4203fi 4204if test x$ac_prog_cc_stdc = xno 4205then : 4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4207printf %s "checking for $CC option to enable C89 features... " >&6; } 4208if test ${ac_cv_prog_cc_c89+y} 4209then : 4210 printf %s "(cached) " >&6 4211else $as_nop 4212 ac_cv_prog_cc_c89=no 4213ac_save_CC=$CC 4214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4215/* end confdefs.h. */ 4216$ac_c_conftest_c89_program 4217_ACEOF 4218for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4219do 4220 CC="$ac_save_CC $ac_arg" 4221 if ac_fn_c_try_compile "$LINENO" 4222then : 4223 ac_cv_prog_cc_c89=$ac_arg 4224fi 4225rm -f core conftest.err conftest.$ac_objext conftest.beam 4226 test "x$ac_cv_prog_cc_c89" != "xno" && break 4227done 4228rm -f conftest.$ac_ext 4229CC=$ac_save_CC 4230fi 4231 4232if test "x$ac_cv_prog_cc_c89" = xno 4233then : 4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4235printf "%s\n" "unsupported" >&6; } 4236else $as_nop 4237 if test "x$ac_cv_prog_cc_c89" = x 4238then : 4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4240printf "%s\n" "none needed" >&6; } 4241else $as_nop 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4243printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4244 CC="$CC $ac_cv_prog_cc_c89" 4245fi 4246 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4247 ac_prog_cc_stdc=c89 4248fi 4249fi 4250 4251ac_ext=c 4252ac_cpp='$CPP $CPPFLAGS' 4253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4255ac_compiler_gnu=$ac_cv_c_compiler_gnu 4256 4257 4258 ac_ext=c 4259ac_cpp='$CPP $CPPFLAGS' 4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4262ac_compiler_gnu=$ac_cv_c_compiler_gnu 4263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4264printf %s "checking whether $CC understands -c and -o together... " >&6; } 4265if test ${am_cv_prog_cc_c_o+y} 4266then : 4267 printf %s "(cached) " >&6 4268else $as_nop 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271 4272int 4273main (void) 4274{ 4275 4276 ; 4277 return 0; 4278} 4279_ACEOF 4280 # Make sure it works both with $CC and with simple cc. 4281 # Following AC_PROG_CC_C_O, we do the test twice because some 4282 # compilers refuse to overwrite an existing .o file with -o, 4283 # though they will create one. 4284 am_cv_prog_cc_c_o=yes 4285 for am_i in 1 2; do 4286 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4287 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4288 ac_status=$? 4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4290 (exit $ac_status); } \ 4291 && test -f conftest2.$ac_objext; then 4292 : OK 4293 else 4294 am_cv_prog_cc_c_o=no 4295 break 4296 fi 4297 done 4298 rm -f core conftest* 4299 unset am_i 4300fi 4301{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4302printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4303if test "$am_cv_prog_cc_c_o" != yes; then 4304 # Losing compiler, so override with the script. 4305 # FIXME: It is wrong to rewrite CC. 4306 # But if we don't then we get into trouble of one sort or another. 4307 # A longer-term fix would be to have automake use am__CC in this case, 4308 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4309 CC="$am_aux_dir/compile $CC" 4310fi 4311ac_ext=c 4312ac_cpp='$CPP $CPPFLAGS' 4313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4315ac_compiler_gnu=$ac_cv_c_compiler_gnu 4316 4317 4318depcc="$CC" am_compiler_list= 4319 4320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4321printf %s "checking dependency style of $depcc... " >&6; } 4322if test ${am_cv_CC_dependencies_compiler_type+y} 4323then : 4324 printf %s "(cached) " >&6 4325else $as_nop 4326 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4327 # We make a subdir and do the tests there. Otherwise we can end up 4328 # making bogus files that we don't know about and never remove. For 4329 # instance it was reported that on HP-UX the gcc test will end up 4330 # making a dummy file named 'D' -- because '-MD' means "put the output 4331 # in D". 4332 rm -rf conftest.dir 4333 mkdir conftest.dir 4334 # Copy depcomp to subdir because otherwise we won't find it if we're 4335 # using a relative directory. 4336 cp "$am_depcomp" conftest.dir 4337 cd conftest.dir 4338 # We will build objects and dependencies in a subdirectory because 4339 # it helps to detect inapplicable dependency modes. For instance 4340 # both Tru64's cc and ICC support -MD to output dependencies as a 4341 # side effect of compilation, but ICC will put the dependencies in 4342 # the current directory while Tru64 will put them in the object 4343 # directory. 4344 mkdir sub 4345 4346 am_cv_CC_dependencies_compiler_type=none 4347 if test "$am_compiler_list" = ""; then 4348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4349 fi 4350 am__universal=false 4351 case " $depcc " in #( 4352 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4353 esac 4354 4355 for depmode in $am_compiler_list; do 4356 # Setup a source with many dependencies, because some compilers 4357 # like to wrap large dependency lists on column 80 (with \), and 4358 # we should not choose a depcomp mode which is confused by this. 4359 # 4360 # We need to recreate these files for each test, as the compiler may 4361 # overwrite some of them when testing with obscure command lines. 4362 # This happens at least with the AIX C compiler. 4363 : > sub/conftest.c 4364 for i in 1 2 3 4 5 6; do 4365 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4366 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4367 # Solaris 10 /bin/sh. 4368 echo '/* dummy */' > sub/conftst$i.h 4369 done 4370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4371 4372 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4373 # mode. It turns out that the SunPro C++ compiler does not properly 4374 # handle '-M -o', and we need to detect this. Also, some Intel 4375 # versions had trouble with output in subdirs. 4376 am__obj=sub/conftest.${OBJEXT-o} 4377 am__minus_obj="-o $am__obj" 4378 case $depmode in 4379 gcc) 4380 # This depmode causes a compiler race in universal mode. 4381 test "$am__universal" = false || continue 4382 ;; 4383 nosideeffect) 4384 # After this tag, mechanisms are not by side-effect, so they'll 4385 # only be used when explicitly requested. 4386 if test "x$enable_dependency_tracking" = xyes; then 4387 continue 4388 else 4389 break 4390 fi 4391 ;; 4392 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4393 # This compiler won't grok '-c -o', but also, the minuso test has 4394 # not run yet. These depmodes are late enough in the game, and 4395 # so weak that their functioning should not be impacted. 4396 am__obj=conftest.${OBJEXT-o} 4397 am__minus_obj= 4398 ;; 4399 none) break ;; 4400 esac 4401 if depmode=$depmode \ 4402 source=sub/conftest.c object=$am__obj \ 4403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4405 >/dev/null 2>conftest.err && 4406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4410 # icc doesn't choke on unknown options, it will just issue warnings 4411 # or remarks (even with -Werror). So we grep stderr for any message 4412 # that says an option was ignored or not supported. 4413 # When given -MP, icc 7.0 and 7.1 complain thusly: 4414 # icc: Command line warning: ignoring option '-M'; no argument required 4415 # The diagnosis changed in icc 8.0: 4416 # icc: Command line remark: option '-MP' not supported 4417 if (grep 'ignoring option' conftest.err || 4418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4419 am_cv_CC_dependencies_compiler_type=$depmode 4420 break 4421 fi 4422 fi 4423 done 4424 4425 cd .. 4426 rm -rf conftest.dir 4427else 4428 am_cv_CC_dependencies_compiler_type=none 4429fi 4430 4431fi 4432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4433printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 4434CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4435 4436 if 4437 test "x$enable_dependency_tracking" != xno \ 4438 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4439 am__fastdepCC_TRUE= 4440 am__fastdepCC_FALSE='#' 4441else 4442 am__fastdepCC_TRUE='#' 4443 am__fastdepCC_FALSE= 4444fi 4445 4446 4447 4448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4449printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4450if test ${ac_cv_c_undeclared_builtin_options+y} 4451then : 4452 printf %s "(cached) " >&6 4453else $as_nop 4454 ac_save_CFLAGS=$CFLAGS 4455 ac_cv_c_undeclared_builtin_options='cannot detect' 4456 for ac_arg in '' -fno-builtin; do 4457 CFLAGS="$ac_save_CFLAGS $ac_arg" 4458 # This test program should *not* compile successfully. 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460/* end confdefs.h. */ 4461 4462int 4463main (void) 4464{ 4465(void) strchr; 4466 ; 4467 return 0; 4468} 4469_ACEOF 4470if ac_fn_c_try_compile "$LINENO" 4471then : 4472 4473else $as_nop 4474 # This test program should compile successfully. 4475 # No library function is consistently available on 4476 # freestanding implementations, so test against a dummy 4477 # declaration. Include always-available headers on the 4478 # off chance that they somehow elicit warnings. 4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4480/* end confdefs.h. */ 4481#include <float.h> 4482#include <limits.h> 4483#include <stdarg.h> 4484#include <stddef.h> 4485extern void ac_decl (int, char *); 4486 4487int 4488main (void) 4489{ 4490(void) ac_decl (0, (char *) 0); 4491 (void) ac_decl; 4492 4493 ; 4494 return 0; 4495} 4496_ACEOF 4497if ac_fn_c_try_compile "$LINENO" 4498then : 4499 if test x"$ac_arg" = x 4500then : 4501 ac_cv_c_undeclared_builtin_options='none needed' 4502else $as_nop 4503 ac_cv_c_undeclared_builtin_options=$ac_arg 4504fi 4505 break 4506fi 4507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4508fi 4509rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4510 done 4511 CFLAGS=$ac_save_CFLAGS 4512 4513fi 4514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4515printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4516 case $ac_cv_c_undeclared_builtin_options in #( 4517 'cannot detect') : 4518 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4519printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4520as_fn_error $? "cannot make $CC report undeclared builtins 4521See \`config.log' for more details" "$LINENO" 5; } ;; #( 4522 'none needed') : 4523 ac_c_undeclared_builtin_options='' ;; #( 4524 *) : 4525 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4526esac 4527 4528ac_header= ac_cache= 4529for ac_item in $ac_header_c_list 4530do 4531 if test $ac_cache; then 4532 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4533 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4534 printf "%s\n" "#define $ac_item 1" >> confdefs.h 4535 fi 4536 ac_header= ac_cache= 4537 elif test $ac_header; then 4538 ac_cache=$ac_item 4539 else 4540 ac_header=$ac_item 4541 fi 4542done 4543 4544 4545 4546 4547 4548 4549 4550 4551if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4552then : 4553 4554printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4555 4556fi 4557 4558 4559 4560 4561ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4562if test "x$ac_cv_have_decl___clang__" = xyes 4563then : 4564 CLANGCC="yes" 4565else $as_nop 4566 CLANGCC="no" 4567fi 4568ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4569if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4570then : 4571 INTELCC="yes" 4572else $as_nop 4573 INTELCC="no" 4574fi 4575ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4576if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4577then : 4578 SUNCC="yes" 4579else $as_nop 4580 SUNCC="no" 4581fi 4582 4583 4584 4585 4586 4587 4588 4589 4590if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4591 if test -n "$ac_tool_prefix"; then 4592 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4593set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4595printf %s "checking for $ac_word... " >&6; } 4596if test ${ac_cv_path_PKG_CONFIG+y} 4597then : 4598 printf %s "(cached) " >&6 4599else $as_nop 4600 case $PKG_CONFIG in 4601 [\\/]* | ?:[\\/]*) 4602 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4603 ;; 4604 *) 4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4606for as_dir in $PATH 4607do 4608 IFS=$as_save_IFS 4609 case $as_dir in #((( 4610 '') as_dir=./ ;; 4611 */) ;; 4612 *) as_dir=$as_dir/ ;; 4613 esac 4614 for ac_exec_ext in '' $ac_executable_extensions; do 4615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4616 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4618 break 2 4619 fi 4620done 4621 done 4622IFS=$as_save_IFS 4623 4624 ;; 4625esac 4626fi 4627PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4628if test -n "$PKG_CONFIG"; then 4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4630printf "%s\n" "$PKG_CONFIG" >&6; } 4631else 4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4633printf "%s\n" "no" >&6; } 4634fi 4635 4636 4637fi 4638if test -z "$ac_cv_path_PKG_CONFIG"; then 4639 ac_pt_PKG_CONFIG=$PKG_CONFIG 4640 # Extract the first word of "pkg-config", so it can be a program name with args. 4641set dummy pkg-config; ac_word=$2 4642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4643printf %s "checking for $ac_word... " >&6; } 4644if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4645then : 4646 printf %s "(cached) " >&6 4647else $as_nop 4648 case $ac_pt_PKG_CONFIG in 4649 [\\/]* | ?:[\\/]*) 4650 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4651 ;; 4652 *) 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654for as_dir in $PATH 4655do 4656 IFS=$as_save_IFS 4657 case $as_dir in #((( 4658 '') as_dir=./ ;; 4659 */) ;; 4660 *) as_dir=$as_dir/ ;; 4661 esac 4662 for ac_exec_ext in '' $ac_executable_extensions; do 4663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4664 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4666 break 2 4667 fi 4668done 4669 done 4670IFS=$as_save_IFS 4671 4672 ;; 4673esac 4674fi 4675ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4676if test -n "$ac_pt_PKG_CONFIG"; then 4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4678printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4679else 4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4681printf "%s\n" "no" >&6; } 4682fi 4683 4684 if test "x$ac_pt_PKG_CONFIG" = x; then 4685 PKG_CONFIG="" 4686 else 4687 case $cross_compiling:$ac_tool_warned in 4688yes:) 4689{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4690printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4691ac_tool_warned=yes ;; 4692esac 4693 PKG_CONFIG=$ac_pt_PKG_CONFIG 4694 fi 4695else 4696 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4697fi 4698 4699fi 4700if test -n "$PKG_CONFIG"; then 4701 _pkg_min_version=0.9.0 4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4703printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4704 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4706printf "%s\n" "yes" >&6; } 4707 else 4708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4709printf "%s\n" "no" >&6; } 4710 PKG_CONFIG="" 4711 fi 4712fi 4713 4714 4715 # Make sure we can run config.sub. 4716$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4717 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4718 4719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4720printf %s "checking build system type... " >&6; } 4721if test ${ac_cv_build+y} 4722then : 4723 printf %s "(cached) " >&6 4724else $as_nop 4725 ac_build_alias=$build_alias 4726test "x$ac_build_alias" = x && 4727 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4728test "x$ac_build_alias" = x && 4729 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4730ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4731 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4732 4733fi 4734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4735printf "%s\n" "$ac_cv_build" >&6; } 4736case $ac_cv_build in 4737*-*-*) ;; 4738*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4739esac 4740build=$ac_cv_build 4741ac_save_IFS=$IFS; IFS='-' 4742set x $ac_cv_build 4743shift 4744build_cpu=$1 4745build_vendor=$2 4746shift; shift 4747# Remember, the first character of IFS is used to create $*, 4748# except with old shells: 4749build_os=$* 4750IFS=$ac_save_IFS 4751case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4752 4753 4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4755printf %s "checking host system type... " >&6; } 4756if test ${ac_cv_host+y} 4757then : 4758 printf %s "(cached) " >&6 4759else $as_nop 4760 if test "x$host_alias" = x; then 4761 ac_cv_host=$ac_cv_build 4762else 4763 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4764 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4765fi 4766 4767fi 4768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4769printf "%s\n" "$ac_cv_host" >&6; } 4770case $ac_cv_host in 4771*-*-*) ;; 4772*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4773esac 4774host=$ac_cv_host 4775ac_save_IFS=$IFS; IFS='-' 4776set x $ac_cv_host 4777shift 4778host_cpu=$1 4779host_vendor=$2 4780shift; shift 4781# Remember, the first character of IFS is used to create $*, 4782# except with old shells: 4783host_os=$* 4784IFS=$ac_save_IFS 4785case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4786 4787 4788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4789printf %s "checking for a sed that does not truncate output... " >&6; } 4790if test ${ac_cv_path_SED+y} 4791then : 4792 printf %s "(cached) " >&6 4793else $as_nop 4794 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4795 for ac_i in 1 2 3 4 5 6 7; do 4796 ac_script="$ac_script$as_nl$ac_script" 4797 done 4798 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4799 { ac_script=; unset ac_script;} 4800 if test -z "$SED"; then 4801 ac_path_SED_found=false 4802 # Loop through the user's path and test for each of PROGNAME-LIST 4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4804for as_dir in $PATH 4805do 4806 IFS=$as_save_IFS 4807 case $as_dir in #((( 4808 '') as_dir=./ ;; 4809 */) ;; 4810 *) as_dir=$as_dir/ ;; 4811 esac 4812 for ac_prog in sed gsed 4813 do 4814 for ac_exec_ext in '' $ac_executable_extensions; do 4815 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4816 as_fn_executable_p "$ac_path_SED" || continue 4817# Check for GNU ac_path_SED and select it if it is found. 4818 # Check for GNU $ac_path_SED 4819case `"$ac_path_SED" --version 2>&1` in 4820*GNU*) 4821 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4822*) 4823 ac_count=0 4824 printf %s 0123456789 >"conftest.in" 4825 while : 4826 do 4827 cat "conftest.in" "conftest.in" >"conftest.tmp" 4828 mv "conftest.tmp" "conftest.in" 4829 cp "conftest.in" "conftest.nl" 4830 printf "%s\n" '' >> "conftest.nl" 4831 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4833 as_fn_arith $ac_count + 1 && ac_count=$as_val 4834 if test $ac_count -gt ${ac_path_SED_max-0}; then 4835 # Best one so far, save it but keep looking for a better one 4836 ac_cv_path_SED="$ac_path_SED" 4837 ac_path_SED_max=$ac_count 4838 fi 4839 # 10*(2^10) chars as input seems more than enough 4840 test $ac_count -gt 10 && break 4841 done 4842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4843esac 4844 4845 $ac_path_SED_found && break 3 4846 done 4847 done 4848 done 4849IFS=$as_save_IFS 4850 if test -z "$ac_cv_path_SED"; then 4851 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4852 fi 4853else 4854 ac_cv_path_SED=$SED 4855fi 4856 4857fi 4858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4859printf "%s\n" "$ac_cv_path_SED" >&6; } 4860 SED="$ac_cv_path_SED" 4861 rm -f conftest.sed 4862 4863 4864 4865 4866 4867 4868# Check whether --enable-selective-werror was given. 4869if test ${enable_selective_werror+y} 4870then : 4871 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4872else $as_nop 4873 SELECTIVE_WERROR=yes 4874fi 4875 4876 4877 4878 4879 4880# -v is too short to test reliably with XORG_TESTSET_CFLAG 4881if test "x$SUNCC" = "xyes"; then 4882 BASE_CFLAGS="-v" 4883else 4884 BASE_CFLAGS="" 4885fi 4886 4887# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901xorg_testset_save_CFLAGS="$CFLAGS" 4902 4903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4904 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4907if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4908then : 4909 printf %s "(cached) " >&6 4910else $as_nop 4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912/* end confdefs.h. */ 4913int i; 4914_ACEOF 4915if ac_fn_c_try_compile "$LINENO" 4916then : 4917 xorg_cv_cc_flag_unknown_warning_option=yes 4918else $as_nop 4919 xorg_cv_cc_flag_unknown_warning_option=no 4920fi 4921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4922fi 4923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4924printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4926 CFLAGS="$xorg_testset_save_CFLAGS" 4927fi 4928 4929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4932 fi 4933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4935printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4936if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4937then : 4938 printf %s "(cached) " >&6 4939else $as_nop 4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4941/* end confdefs.h. */ 4942int i; 4943_ACEOF 4944if ac_fn_c_try_compile "$LINENO" 4945then : 4946 xorg_cv_cc_flag_unused_command_line_argument=yes 4947else $as_nop 4948 xorg_cv_cc_flag_unused_command_line_argument=no 4949fi 4950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4951fi 4952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4953printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4954 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4955 CFLAGS="$xorg_testset_save_CFLAGS" 4956fi 4957 4958found="no" 4959 4960 if test $found = "no" ; then 4961 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4963 fi 4964 4965 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4967 fi 4968 4969 CFLAGS="$CFLAGS -Wall" 4970 4971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4972printf %s "checking if $CC supports -Wall... " >&6; } 4973 cacheid=xorg_cv_cc_flag__Wall 4974 if eval test \${$cacheid+y} 4975then : 4976 printf %s "(cached) " >&6 4977else $as_nop 4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4979/* end confdefs.h. */ 4980int i; 4981int 4982main (void) 4983{ 4984 4985 ; 4986 return 0; 4987} 4988_ACEOF 4989if ac_fn_c_try_link "$LINENO" 4990then : 4991 eval $cacheid=yes 4992else $as_nop 4993 eval $cacheid=no 4994fi 4995rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4996 conftest$ac_exeext conftest.$ac_ext 4997fi 4998 4999 5000 CFLAGS="$xorg_testset_save_CFLAGS" 5001 5002 eval supported=\$$cacheid 5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5004printf "%s\n" "$supported" >&6; } 5005 if test "$supported" = "yes" ; then 5006 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5007 found="yes" 5008 fi 5009 fi 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025xorg_testset_save_CFLAGS="$CFLAGS" 5026 5027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5028 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5031if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5032then : 5033 printf %s "(cached) " >&6 5034else $as_nop 5035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5036/* end confdefs.h. */ 5037int i; 5038_ACEOF 5039if ac_fn_c_try_compile "$LINENO" 5040then : 5041 xorg_cv_cc_flag_unknown_warning_option=yes 5042else $as_nop 5043 xorg_cv_cc_flag_unknown_warning_option=no 5044fi 5045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5046fi 5047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5048printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5050 CFLAGS="$xorg_testset_save_CFLAGS" 5051fi 5052 5053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5055 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5056 fi 5057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5059printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5060if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5061then : 5062 printf %s "(cached) " >&6 5063else $as_nop 5064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5065/* end confdefs.h. */ 5066int i; 5067_ACEOF 5068if ac_fn_c_try_compile "$LINENO" 5069then : 5070 xorg_cv_cc_flag_unused_command_line_argument=yes 5071else $as_nop 5072 xorg_cv_cc_flag_unused_command_line_argument=no 5073fi 5074rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5075fi 5076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5077printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5079 CFLAGS="$xorg_testset_save_CFLAGS" 5080fi 5081 5082found="no" 5083 5084 if test $found = "no" ; then 5085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5087 fi 5088 5089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5091 fi 5092 5093 CFLAGS="$CFLAGS -Wpointer-arith" 5094 5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5096printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 5097 cacheid=xorg_cv_cc_flag__Wpointer_arith 5098 if eval test \${$cacheid+y} 5099then : 5100 printf %s "(cached) " >&6 5101else $as_nop 5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5103/* end confdefs.h. */ 5104int i; 5105int 5106main (void) 5107{ 5108 5109 ; 5110 return 0; 5111} 5112_ACEOF 5113if ac_fn_c_try_link "$LINENO" 5114then : 5115 eval $cacheid=yes 5116else $as_nop 5117 eval $cacheid=no 5118fi 5119rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5120 conftest$ac_exeext conftest.$ac_ext 5121fi 5122 5123 5124 CFLAGS="$xorg_testset_save_CFLAGS" 5125 5126 eval supported=\$$cacheid 5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5128printf "%s\n" "$supported" >&6; } 5129 if test "$supported" = "yes" ; then 5130 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5131 found="yes" 5132 fi 5133 fi 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149xorg_testset_save_CFLAGS="$CFLAGS" 5150 5151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5154printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5155if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5156then : 5157 printf %s "(cached) " >&6 5158else $as_nop 5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5160/* end confdefs.h. */ 5161int i; 5162_ACEOF 5163if ac_fn_c_try_compile "$LINENO" 5164then : 5165 xorg_cv_cc_flag_unknown_warning_option=yes 5166else $as_nop 5167 xorg_cv_cc_flag_unknown_warning_option=no 5168fi 5169rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5170fi 5171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5172printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5174 CFLAGS="$xorg_testset_save_CFLAGS" 5175fi 5176 5177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5180 fi 5181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5183printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5184if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5185then : 5186 printf %s "(cached) " >&6 5187else $as_nop 5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5189/* end confdefs.h. */ 5190int i; 5191_ACEOF 5192if ac_fn_c_try_compile "$LINENO" 5193then : 5194 xorg_cv_cc_flag_unused_command_line_argument=yes 5195else $as_nop 5196 xorg_cv_cc_flag_unused_command_line_argument=no 5197fi 5198rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5199fi 5200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5201printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5203 CFLAGS="$xorg_testset_save_CFLAGS" 5204fi 5205 5206found="no" 5207 5208 if test $found = "no" ; then 5209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5211 fi 5212 5213 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5215 fi 5216 5217 CFLAGS="$CFLAGS -Wmissing-declarations" 5218 5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5220printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 5221 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5222 if eval test \${$cacheid+y} 5223then : 5224 printf %s "(cached) " >&6 5225else $as_nop 5226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5227/* end confdefs.h. */ 5228int i; 5229int 5230main (void) 5231{ 5232 5233 ; 5234 return 0; 5235} 5236_ACEOF 5237if ac_fn_c_try_link "$LINENO" 5238then : 5239 eval $cacheid=yes 5240else $as_nop 5241 eval $cacheid=no 5242fi 5243rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5244 conftest$ac_exeext conftest.$ac_ext 5245fi 5246 5247 5248 CFLAGS="$xorg_testset_save_CFLAGS" 5249 5250 eval supported=\$$cacheid 5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5252printf "%s\n" "$supported" >&6; } 5253 if test "$supported" = "yes" ; then 5254 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5255 found="yes" 5256 fi 5257 fi 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273xorg_testset_save_CFLAGS="$CFLAGS" 5274 5275if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5278printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5279if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5280then : 5281 printf %s "(cached) " >&6 5282else $as_nop 5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5284/* end confdefs.h. */ 5285int i; 5286_ACEOF 5287if ac_fn_c_try_compile "$LINENO" 5288then : 5289 xorg_cv_cc_flag_unknown_warning_option=yes 5290else $as_nop 5291 xorg_cv_cc_flag_unknown_warning_option=no 5292fi 5293rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5294fi 5295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5296printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5298 CFLAGS="$xorg_testset_save_CFLAGS" 5299fi 5300 5301if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5304 fi 5305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5307printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5308if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5309then : 5310 printf %s "(cached) " >&6 5311else $as_nop 5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5313/* end confdefs.h. */ 5314int i; 5315_ACEOF 5316if ac_fn_c_try_compile "$LINENO" 5317then : 5318 xorg_cv_cc_flag_unused_command_line_argument=yes 5319else $as_nop 5320 xorg_cv_cc_flag_unused_command_line_argument=no 5321fi 5322rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5323fi 5324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5325printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5327 CFLAGS="$xorg_testset_save_CFLAGS" 5328fi 5329 5330found="no" 5331 5332 if test $found = "no" ; then 5333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5335 fi 5336 5337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5339 fi 5340 5341 CFLAGS="$CFLAGS -Wformat=2" 5342 5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5344printf %s "checking if $CC supports -Wformat=2... " >&6; } 5345 cacheid=xorg_cv_cc_flag__Wformat_2 5346 if eval test \${$cacheid+y} 5347then : 5348 printf %s "(cached) " >&6 5349else $as_nop 5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5351/* end confdefs.h. */ 5352int i; 5353int 5354main (void) 5355{ 5356 5357 ; 5358 return 0; 5359} 5360_ACEOF 5361if ac_fn_c_try_link "$LINENO" 5362then : 5363 eval $cacheid=yes 5364else $as_nop 5365 eval $cacheid=no 5366fi 5367rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5368 conftest$ac_exeext conftest.$ac_ext 5369fi 5370 5371 5372 CFLAGS="$xorg_testset_save_CFLAGS" 5373 5374 eval supported=\$$cacheid 5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5376printf "%s\n" "$supported" >&6; } 5377 if test "$supported" = "yes" ; then 5378 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5379 found="yes" 5380 fi 5381 fi 5382 5383 if test $found = "no" ; then 5384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5386 fi 5387 5388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5390 fi 5391 5392 CFLAGS="$CFLAGS -Wformat" 5393 5394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5395printf %s "checking if $CC supports -Wformat... " >&6; } 5396 cacheid=xorg_cv_cc_flag__Wformat 5397 if eval test \${$cacheid+y} 5398then : 5399 printf %s "(cached) " >&6 5400else $as_nop 5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5402/* end confdefs.h. */ 5403int i; 5404int 5405main (void) 5406{ 5407 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412if ac_fn_c_try_link "$LINENO" 5413then : 5414 eval $cacheid=yes 5415else $as_nop 5416 eval $cacheid=no 5417fi 5418rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5419 conftest$ac_exeext conftest.$ac_ext 5420fi 5421 5422 5423 CFLAGS="$xorg_testset_save_CFLAGS" 5424 5425 eval supported=\$$cacheid 5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5427printf "%s\n" "$supported" >&6; } 5428 if test "$supported" = "yes" ; then 5429 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5430 found="yes" 5431 fi 5432 fi 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450xorg_testset_save_CFLAGS="$CFLAGS" 5451 5452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5455printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5456if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5457then : 5458 printf %s "(cached) " >&6 5459else $as_nop 5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5461/* end confdefs.h. */ 5462int i; 5463_ACEOF 5464if ac_fn_c_try_compile "$LINENO" 5465then : 5466 xorg_cv_cc_flag_unknown_warning_option=yes 5467else $as_nop 5468 xorg_cv_cc_flag_unknown_warning_option=no 5469fi 5470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5471fi 5472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5473printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5474 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5475 CFLAGS="$xorg_testset_save_CFLAGS" 5476fi 5477 5478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5480 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5481 fi 5482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5484printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5485if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5486then : 5487 printf %s "(cached) " >&6 5488else $as_nop 5489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5490/* end confdefs.h. */ 5491int i; 5492_ACEOF 5493if ac_fn_c_try_compile "$LINENO" 5494then : 5495 xorg_cv_cc_flag_unused_command_line_argument=yes 5496else $as_nop 5497 xorg_cv_cc_flag_unused_command_line_argument=no 5498fi 5499rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5500fi 5501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5502printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5504 CFLAGS="$xorg_testset_save_CFLAGS" 5505fi 5506 5507found="no" 5508 5509 if test $found = "no" ; then 5510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5512 fi 5513 5514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5516 fi 5517 5518 CFLAGS="$CFLAGS -Wstrict-prototypes" 5519 5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5521printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5522 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5523 if eval test \${$cacheid+y} 5524then : 5525 printf %s "(cached) " >&6 5526else $as_nop 5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5528/* end confdefs.h. */ 5529int i; 5530int 5531main (void) 5532{ 5533 5534 ; 5535 return 0; 5536} 5537_ACEOF 5538if ac_fn_c_try_link "$LINENO" 5539then : 5540 eval $cacheid=yes 5541else $as_nop 5542 eval $cacheid=no 5543fi 5544rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5545 conftest$ac_exeext conftest.$ac_ext 5546fi 5547 5548 5549 CFLAGS="$xorg_testset_save_CFLAGS" 5550 5551 eval supported=\$$cacheid 5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5553printf "%s\n" "$supported" >&6; } 5554 if test "$supported" = "yes" ; then 5555 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5556 found="yes" 5557 fi 5558 fi 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574xorg_testset_save_CFLAGS="$CFLAGS" 5575 5576if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5579printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5580if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5581then : 5582 printf %s "(cached) " >&6 5583else $as_nop 5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5585/* end confdefs.h. */ 5586int i; 5587_ACEOF 5588if ac_fn_c_try_compile "$LINENO" 5589then : 5590 xorg_cv_cc_flag_unknown_warning_option=yes 5591else $as_nop 5592 xorg_cv_cc_flag_unknown_warning_option=no 5593fi 5594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5595fi 5596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5597printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5599 CFLAGS="$xorg_testset_save_CFLAGS" 5600fi 5601 5602if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5605 fi 5606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5608printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5609if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5610then : 5611 printf %s "(cached) " >&6 5612else $as_nop 5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5614/* end confdefs.h. */ 5615int i; 5616_ACEOF 5617if ac_fn_c_try_compile "$LINENO" 5618then : 5619 xorg_cv_cc_flag_unused_command_line_argument=yes 5620else $as_nop 5621 xorg_cv_cc_flag_unused_command_line_argument=no 5622fi 5623rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5624fi 5625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5626printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5628 CFLAGS="$xorg_testset_save_CFLAGS" 5629fi 5630 5631found="no" 5632 5633 if test $found = "no" ; then 5634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5635 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5636 fi 5637 5638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5640 fi 5641 5642 CFLAGS="$CFLAGS -Wmissing-prototypes" 5643 5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5645printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5646 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5647 if eval test \${$cacheid+y} 5648then : 5649 printf %s "(cached) " >&6 5650else $as_nop 5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5652/* end confdefs.h. */ 5653int i; 5654int 5655main (void) 5656{ 5657 5658 ; 5659 return 0; 5660} 5661_ACEOF 5662if ac_fn_c_try_link "$LINENO" 5663then : 5664 eval $cacheid=yes 5665else $as_nop 5666 eval $cacheid=no 5667fi 5668rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5669 conftest$ac_exeext conftest.$ac_ext 5670fi 5671 5672 5673 CFLAGS="$xorg_testset_save_CFLAGS" 5674 5675 eval supported=\$$cacheid 5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5677printf "%s\n" "$supported" >&6; } 5678 if test "$supported" = "yes" ; then 5679 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5680 found="yes" 5681 fi 5682 fi 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698xorg_testset_save_CFLAGS="$CFLAGS" 5699 5700if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5703printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5704if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5705then : 5706 printf %s "(cached) " >&6 5707else $as_nop 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5709/* end confdefs.h. */ 5710int i; 5711_ACEOF 5712if ac_fn_c_try_compile "$LINENO" 5713then : 5714 xorg_cv_cc_flag_unknown_warning_option=yes 5715else $as_nop 5716 xorg_cv_cc_flag_unknown_warning_option=no 5717fi 5718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5719fi 5720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5721printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5723 CFLAGS="$xorg_testset_save_CFLAGS" 5724fi 5725 5726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5729 fi 5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5732printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5733if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5734then : 5735 printf %s "(cached) " >&6 5736else $as_nop 5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5738/* end confdefs.h. */ 5739int i; 5740_ACEOF 5741if ac_fn_c_try_compile "$LINENO" 5742then : 5743 xorg_cv_cc_flag_unused_command_line_argument=yes 5744else $as_nop 5745 xorg_cv_cc_flag_unused_command_line_argument=no 5746fi 5747rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5748fi 5749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5750printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5752 CFLAGS="$xorg_testset_save_CFLAGS" 5753fi 5754 5755found="no" 5756 5757 if test $found = "no" ; then 5758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5760 fi 5761 5762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5764 fi 5765 5766 CFLAGS="$CFLAGS -Wnested-externs" 5767 5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5769printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5770 cacheid=xorg_cv_cc_flag__Wnested_externs 5771 if eval test \${$cacheid+y} 5772then : 5773 printf %s "(cached) " >&6 5774else $as_nop 5775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5776/* end confdefs.h. */ 5777int i; 5778int 5779main (void) 5780{ 5781 5782 ; 5783 return 0; 5784} 5785_ACEOF 5786if ac_fn_c_try_link "$LINENO" 5787then : 5788 eval $cacheid=yes 5789else $as_nop 5790 eval $cacheid=no 5791fi 5792rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5793 conftest$ac_exeext conftest.$ac_ext 5794fi 5795 5796 5797 CFLAGS="$xorg_testset_save_CFLAGS" 5798 5799 eval supported=\$$cacheid 5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5801printf "%s\n" "$supported" >&6; } 5802 if test "$supported" = "yes" ; then 5803 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5804 found="yes" 5805 fi 5806 fi 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822xorg_testset_save_CFLAGS="$CFLAGS" 5823 5824if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5827printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5828if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5829then : 5830 printf %s "(cached) " >&6 5831else $as_nop 5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5833/* end confdefs.h. */ 5834int i; 5835_ACEOF 5836if ac_fn_c_try_compile "$LINENO" 5837then : 5838 xorg_cv_cc_flag_unknown_warning_option=yes 5839else $as_nop 5840 xorg_cv_cc_flag_unknown_warning_option=no 5841fi 5842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5843fi 5844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5845printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5847 CFLAGS="$xorg_testset_save_CFLAGS" 5848fi 5849 5850if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5852 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5853 fi 5854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5856printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5857if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5858then : 5859 printf %s "(cached) " >&6 5860else $as_nop 5861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862/* end confdefs.h. */ 5863int i; 5864_ACEOF 5865if ac_fn_c_try_compile "$LINENO" 5866then : 5867 xorg_cv_cc_flag_unused_command_line_argument=yes 5868else $as_nop 5869 xorg_cv_cc_flag_unused_command_line_argument=no 5870fi 5871rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5872fi 5873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5874printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5875 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5876 CFLAGS="$xorg_testset_save_CFLAGS" 5877fi 5878 5879found="no" 5880 5881 if test $found = "no" ; then 5882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5884 fi 5885 5886 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5888 fi 5889 5890 CFLAGS="$CFLAGS -Wbad-function-cast" 5891 5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5893printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5894 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5895 if eval test \${$cacheid+y} 5896then : 5897 printf %s "(cached) " >&6 5898else $as_nop 5899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5900/* end confdefs.h. */ 5901int i; 5902int 5903main (void) 5904{ 5905 5906 ; 5907 return 0; 5908} 5909_ACEOF 5910if ac_fn_c_try_link "$LINENO" 5911then : 5912 eval $cacheid=yes 5913else $as_nop 5914 eval $cacheid=no 5915fi 5916rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5917 conftest$ac_exeext conftest.$ac_ext 5918fi 5919 5920 5921 CFLAGS="$xorg_testset_save_CFLAGS" 5922 5923 eval supported=\$$cacheid 5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5925printf "%s\n" "$supported" >&6; } 5926 if test "$supported" = "yes" ; then 5927 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5928 found="yes" 5929 fi 5930 fi 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946xorg_testset_save_CFLAGS="$CFLAGS" 5947 5948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5949 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5951printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5952if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5953then : 5954 printf %s "(cached) " >&6 5955else $as_nop 5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5957/* end confdefs.h. */ 5958int i; 5959_ACEOF 5960if ac_fn_c_try_compile "$LINENO" 5961then : 5962 xorg_cv_cc_flag_unknown_warning_option=yes 5963else $as_nop 5964 xorg_cv_cc_flag_unknown_warning_option=no 5965fi 5966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5967fi 5968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5969printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5971 CFLAGS="$xorg_testset_save_CFLAGS" 5972fi 5973 5974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5977 fi 5978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5980printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5981if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5982then : 5983 printf %s "(cached) " >&6 5984else $as_nop 5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5986/* end confdefs.h. */ 5987int i; 5988_ACEOF 5989if ac_fn_c_try_compile "$LINENO" 5990then : 5991 xorg_cv_cc_flag_unused_command_line_argument=yes 5992else $as_nop 5993 xorg_cv_cc_flag_unused_command_line_argument=no 5994fi 5995rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5996fi 5997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5999 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6000 CFLAGS="$xorg_testset_save_CFLAGS" 6001fi 6002 6003found="no" 6004 6005 if test $found = "no" ; then 6006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6008 fi 6009 6010 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6011 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6012 fi 6013 6014 CFLAGS="$CFLAGS -Wold-style-definition" 6015 6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 6017printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 6018 cacheid=xorg_cv_cc_flag__Wold_style_definition 6019 if eval test \${$cacheid+y} 6020then : 6021 printf %s "(cached) " >&6 6022else $as_nop 6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6024/* end confdefs.h. */ 6025int i; 6026int 6027main (void) 6028{ 6029 6030 ; 6031 return 0; 6032} 6033_ACEOF 6034if ac_fn_c_try_link "$LINENO" 6035then : 6036 eval $cacheid=yes 6037else $as_nop 6038 eval $cacheid=no 6039fi 6040rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6041 conftest$ac_exeext conftest.$ac_ext 6042fi 6043 6044 6045 CFLAGS="$xorg_testset_save_CFLAGS" 6046 6047 eval supported=\$$cacheid 6048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6049printf "%s\n" "$supported" >&6; } 6050 if test "$supported" = "yes" ; then 6051 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6052 found="yes" 6053 fi 6054 fi 6055 6056 if test $found = "no" ; then 6057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6059 fi 6060 6061 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6063 fi 6064 6065 CFLAGS="$CFLAGS -fd" 6066 6067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6068printf %s "checking if $CC supports -fd... " >&6; } 6069 cacheid=xorg_cv_cc_flag__fd 6070 if eval test \${$cacheid+y} 6071then : 6072 printf %s "(cached) " >&6 6073else $as_nop 6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6075/* end confdefs.h. */ 6076int i; 6077int 6078main (void) 6079{ 6080 6081 ; 6082 return 0; 6083} 6084_ACEOF 6085if ac_fn_c_try_link "$LINENO" 6086then : 6087 eval $cacheid=yes 6088else $as_nop 6089 eval $cacheid=no 6090fi 6091rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6092 conftest$ac_exeext conftest.$ac_ext 6093fi 6094 6095 6096 CFLAGS="$xorg_testset_save_CFLAGS" 6097 6098 eval supported=\$$cacheid 6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6100printf "%s\n" "$supported" >&6; } 6101 if test "$supported" = "yes" ; then 6102 BASE_CFLAGS="$BASE_CFLAGS -fd" 6103 found="yes" 6104 fi 6105 fi 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121xorg_testset_save_CFLAGS="$CFLAGS" 6122 6123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6127if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6128then : 6129 printf %s "(cached) " >&6 6130else $as_nop 6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6132/* end confdefs.h. */ 6133int i; 6134_ACEOF 6135if ac_fn_c_try_compile "$LINENO" 6136then : 6137 xorg_cv_cc_flag_unknown_warning_option=yes 6138else $as_nop 6139 xorg_cv_cc_flag_unknown_warning_option=no 6140fi 6141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6142fi 6143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6144printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6146 CFLAGS="$xorg_testset_save_CFLAGS" 6147fi 6148 6149if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6151 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6152 fi 6153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6155printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6156if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6157then : 6158 printf %s "(cached) " >&6 6159else $as_nop 6160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6161/* end confdefs.h. */ 6162int i; 6163_ACEOF 6164if ac_fn_c_try_compile "$LINENO" 6165then : 6166 xorg_cv_cc_flag_unused_command_line_argument=yes 6167else $as_nop 6168 xorg_cv_cc_flag_unused_command_line_argument=no 6169fi 6170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6171fi 6172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6173printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6175 CFLAGS="$xorg_testset_save_CFLAGS" 6176fi 6177 6178found="no" 6179 6180 if test $found = "no" ; then 6181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6183 fi 6184 6185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6187 fi 6188 6189 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6190 6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6192printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6193 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6194 if eval test \${$cacheid+y} 6195then : 6196 printf %s "(cached) " >&6 6197else $as_nop 6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6199/* end confdefs.h. */ 6200int i; 6201int 6202main (void) 6203{ 6204 6205 ; 6206 return 0; 6207} 6208_ACEOF 6209if ac_fn_c_try_link "$LINENO" 6210then : 6211 eval $cacheid=yes 6212else $as_nop 6213 eval $cacheid=no 6214fi 6215rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6216 conftest$ac_exeext conftest.$ac_ext 6217fi 6218 6219 6220 CFLAGS="$xorg_testset_save_CFLAGS" 6221 6222 eval supported=\$$cacheid 6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6224printf "%s\n" "$supported" >&6; } 6225 if test "$supported" = "yes" ; then 6226 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6227 found="yes" 6228 fi 6229 fi 6230 6231 6232 6233 6234 6235# This chunk adds additional warnings that could catch undesired effects. 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249xorg_testset_save_CFLAGS="$CFLAGS" 6250 6251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6254printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6255if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6256then : 6257 printf %s "(cached) " >&6 6258else $as_nop 6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260/* end confdefs.h. */ 6261int i; 6262_ACEOF 6263if ac_fn_c_try_compile "$LINENO" 6264then : 6265 xorg_cv_cc_flag_unknown_warning_option=yes 6266else $as_nop 6267 xorg_cv_cc_flag_unknown_warning_option=no 6268fi 6269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6270fi 6271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6272printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6274 CFLAGS="$xorg_testset_save_CFLAGS" 6275fi 6276 6277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6280 fi 6281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6283printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6284if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6285then : 6286 printf %s "(cached) " >&6 6287else $as_nop 6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6289/* end confdefs.h. */ 6290int i; 6291_ACEOF 6292if ac_fn_c_try_compile "$LINENO" 6293then : 6294 xorg_cv_cc_flag_unused_command_line_argument=yes 6295else $as_nop 6296 xorg_cv_cc_flag_unused_command_line_argument=no 6297fi 6298rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6299fi 6300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6301printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6303 CFLAGS="$xorg_testset_save_CFLAGS" 6304fi 6305 6306found="no" 6307 6308 if test $found = "no" ; then 6309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6311 fi 6312 6313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6315 fi 6316 6317 CFLAGS="$CFLAGS -Wunused" 6318 6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6320printf %s "checking if $CC supports -Wunused... " >&6; } 6321 cacheid=xorg_cv_cc_flag__Wunused 6322 if eval test \${$cacheid+y} 6323then : 6324 printf %s "(cached) " >&6 6325else $as_nop 6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6327/* end confdefs.h. */ 6328int i; 6329int 6330main (void) 6331{ 6332 6333 ; 6334 return 0; 6335} 6336_ACEOF 6337if ac_fn_c_try_link "$LINENO" 6338then : 6339 eval $cacheid=yes 6340else $as_nop 6341 eval $cacheid=no 6342fi 6343rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6344 conftest$ac_exeext conftest.$ac_ext 6345fi 6346 6347 6348 CFLAGS="$xorg_testset_save_CFLAGS" 6349 6350 eval supported=\$$cacheid 6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6352printf "%s\n" "$supported" >&6; } 6353 if test "$supported" = "yes" ; then 6354 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6355 found="yes" 6356 fi 6357 fi 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373xorg_testset_save_CFLAGS="$CFLAGS" 6374 6375if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6376 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6378printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6379if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6380then : 6381 printf %s "(cached) " >&6 6382else $as_nop 6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6384/* end confdefs.h. */ 6385int i; 6386_ACEOF 6387if ac_fn_c_try_compile "$LINENO" 6388then : 6389 xorg_cv_cc_flag_unknown_warning_option=yes 6390else $as_nop 6391 xorg_cv_cc_flag_unknown_warning_option=no 6392fi 6393rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6394fi 6395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6398 CFLAGS="$xorg_testset_save_CFLAGS" 6399fi 6400 6401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6404 fi 6405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6408if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6409then : 6410 printf %s "(cached) " >&6 6411else $as_nop 6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6413/* end confdefs.h. */ 6414int i; 6415_ACEOF 6416if ac_fn_c_try_compile "$LINENO" 6417then : 6418 xorg_cv_cc_flag_unused_command_line_argument=yes 6419else $as_nop 6420 xorg_cv_cc_flag_unused_command_line_argument=no 6421fi 6422rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6423fi 6424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6425printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6426 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6427 CFLAGS="$xorg_testset_save_CFLAGS" 6428fi 6429 6430found="no" 6431 6432 if test $found = "no" ; then 6433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 fi 6436 6437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6439 fi 6440 6441 CFLAGS="$CFLAGS -Wuninitialized" 6442 6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6444printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6445 cacheid=xorg_cv_cc_flag__Wuninitialized 6446 if eval test \${$cacheid+y} 6447then : 6448 printf %s "(cached) " >&6 6449else $as_nop 6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6451/* end confdefs.h. */ 6452int i; 6453int 6454main (void) 6455{ 6456 6457 ; 6458 return 0; 6459} 6460_ACEOF 6461if ac_fn_c_try_link "$LINENO" 6462then : 6463 eval $cacheid=yes 6464else $as_nop 6465 eval $cacheid=no 6466fi 6467rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6468 conftest$ac_exeext conftest.$ac_ext 6469fi 6470 6471 6472 CFLAGS="$xorg_testset_save_CFLAGS" 6473 6474 eval supported=\$$cacheid 6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6476printf "%s\n" "$supported" >&6; } 6477 if test "$supported" = "yes" ; then 6478 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6479 found="yes" 6480 fi 6481 fi 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497xorg_testset_save_CFLAGS="$CFLAGS" 6498 6499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6502printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6503if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6504then : 6505 printf %s "(cached) " >&6 6506else $as_nop 6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6508/* end confdefs.h. */ 6509int i; 6510_ACEOF 6511if ac_fn_c_try_compile "$LINENO" 6512then : 6513 xorg_cv_cc_flag_unknown_warning_option=yes 6514else $as_nop 6515 xorg_cv_cc_flag_unknown_warning_option=no 6516fi 6517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6518fi 6519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6520printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6522 CFLAGS="$xorg_testset_save_CFLAGS" 6523fi 6524 6525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6527 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6528 fi 6529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6531printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6532if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6533then : 6534 printf %s "(cached) " >&6 6535else $as_nop 6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6537/* end confdefs.h. */ 6538int i; 6539_ACEOF 6540if ac_fn_c_try_compile "$LINENO" 6541then : 6542 xorg_cv_cc_flag_unused_command_line_argument=yes 6543else $as_nop 6544 xorg_cv_cc_flag_unused_command_line_argument=no 6545fi 6546rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6547fi 6548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6551 CFLAGS="$xorg_testset_save_CFLAGS" 6552fi 6553 6554found="no" 6555 6556 if test $found = "no" ; then 6557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6559 fi 6560 6561 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6563 fi 6564 6565 CFLAGS="$CFLAGS -Wshadow" 6566 6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6568printf %s "checking if $CC supports -Wshadow... " >&6; } 6569 cacheid=xorg_cv_cc_flag__Wshadow 6570 if eval test \${$cacheid+y} 6571then : 6572 printf %s "(cached) " >&6 6573else $as_nop 6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575/* end confdefs.h. */ 6576int i; 6577int 6578main (void) 6579{ 6580 6581 ; 6582 return 0; 6583} 6584_ACEOF 6585if ac_fn_c_try_link "$LINENO" 6586then : 6587 eval $cacheid=yes 6588else $as_nop 6589 eval $cacheid=no 6590fi 6591rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6592 conftest$ac_exeext conftest.$ac_ext 6593fi 6594 6595 6596 CFLAGS="$xorg_testset_save_CFLAGS" 6597 6598 eval supported=\$$cacheid 6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6600printf "%s\n" "$supported" >&6; } 6601 if test "$supported" = "yes" ; then 6602 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6603 found="yes" 6604 fi 6605 fi 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621xorg_testset_save_CFLAGS="$CFLAGS" 6622 6623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6626printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6627if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6628then : 6629 printf %s "(cached) " >&6 6630else $as_nop 6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6632/* end confdefs.h. */ 6633int i; 6634_ACEOF 6635if ac_fn_c_try_compile "$LINENO" 6636then : 6637 xorg_cv_cc_flag_unknown_warning_option=yes 6638else $as_nop 6639 xorg_cv_cc_flag_unknown_warning_option=no 6640fi 6641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6642fi 6643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6644printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6646 CFLAGS="$xorg_testset_save_CFLAGS" 6647fi 6648 6649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6652 fi 6653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6655printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6656if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6657then : 6658 printf %s "(cached) " >&6 6659else $as_nop 6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6661/* end confdefs.h. */ 6662int i; 6663_ACEOF 6664if ac_fn_c_try_compile "$LINENO" 6665then : 6666 xorg_cv_cc_flag_unused_command_line_argument=yes 6667else $as_nop 6668 xorg_cv_cc_flag_unused_command_line_argument=no 6669fi 6670rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6671fi 6672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6674 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6675 CFLAGS="$xorg_testset_save_CFLAGS" 6676fi 6677 6678found="no" 6679 6680 if test $found = "no" ; then 6681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6682 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6683 fi 6684 6685 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6686 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6687 fi 6688 6689 CFLAGS="$CFLAGS -Wmissing-noreturn" 6690 6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6692printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6693 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6694 if eval test \${$cacheid+y} 6695then : 6696 printf %s "(cached) " >&6 6697else $as_nop 6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6699/* end confdefs.h. */ 6700int i; 6701int 6702main (void) 6703{ 6704 6705 ; 6706 return 0; 6707} 6708_ACEOF 6709if ac_fn_c_try_link "$LINENO" 6710then : 6711 eval $cacheid=yes 6712else $as_nop 6713 eval $cacheid=no 6714fi 6715rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6716 conftest$ac_exeext conftest.$ac_ext 6717fi 6718 6719 6720 CFLAGS="$xorg_testset_save_CFLAGS" 6721 6722 eval supported=\$$cacheid 6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6724printf "%s\n" "$supported" >&6; } 6725 if test "$supported" = "yes" ; then 6726 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6727 found="yes" 6728 fi 6729 fi 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745xorg_testset_save_CFLAGS="$CFLAGS" 6746 6747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6750printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6751if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6752then : 6753 printf %s "(cached) " >&6 6754else $as_nop 6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6756/* end confdefs.h. */ 6757int i; 6758_ACEOF 6759if ac_fn_c_try_compile "$LINENO" 6760then : 6761 xorg_cv_cc_flag_unknown_warning_option=yes 6762else $as_nop 6763 xorg_cv_cc_flag_unknown_warning_option=no 6764fi 6765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6766fi 6767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6768printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6770 CFLAGS="$xorg_testset_save_CFLAGS" 6771fi 6772 6773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6776 fi 6777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6779printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6780if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6781then : 6782 printf %s "(cached) " >&6 6783else $as_nop 6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6785/* end confdefs.h. */ 6786int i; 6787_ACEOF 6788if ac_fn_c_try_compile "$LINENO" 6789then : 6790 xorg_cv_cc_flag_unused_command_line_argument=yes 6791else $as_nop 6792 xorg_cv_cc_flag_unused_command_line_argument=no 6793fi 6794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6795fi 6796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6797printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6798 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6799 CFLAGS="$xorg_testset_save_CFLAGS" 6800fi 6801 6802found="no" 6803 6804 if test $found = "no" ; then 6805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6806 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6807 fi 6808 6809 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6811 fi 6812 6813 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6814 6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6816printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6817 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6818 if eval test \${$cacheid+y} 6819then : 6820 printf %s "(cached) " >&6 6821else $as_nop 6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6823/* end confdefs.h. */ 6824int i; 6825int 6826main (void) 6827{ 6828 6829 ; 6830 return 0; 6831} 6832_ACEOF 6833if ac_fn_c_try_link "$LINENO" 6834then : 6835 eval $cacheid=yes 6836else $as_nop 6837 eval $cacheid=no 6838fi 6839rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6840 conftest$ac_exeext conftest.$ac_ext 6841fi 6842 6843 6844 CFLAGS="$xorg_testset_save_CFLAGS" 6845 6846 eval supported=\$$cacheid 6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6848printf "%s\n" "$supported" >&6; } 6849 if test "$supported" = "yes" ; then 6850 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6851 found="yes" 6852 fi 6853 fi 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869xorg_testset_save_CFLAGS="$CFLAGS" 6870 6871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6872 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6874printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6875if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6876then : 6877 printf %s "(cached) " >&6 6878else $as_nop 6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6880/* end confdefs.h. */ 6881int i; 6882_ACEOF 6883if ac_fn_c_try_compile "$LINENO" 6884then : 6885 xorg_cv_cc_flag_unknown_warning_option=yes 6886else $as_nop 6887 xorg_cv_cc_flag_unknown_warning_option=no 6888fi 6889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6890fi 6891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6892printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6894 CFLAGS="$xorg_testset_save_CFLAGS" 6895fi 6896 6897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6900 fi 6901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6903printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6904if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6905then : 6906 printf %s "(cached) " >&6 6907else $as_nop 6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6909/* end confdefs.h. */ 6910int i; 6911_ACEOF 6912if ac_fn_c_try_compile "$LINENO" 6913then : 6914 xorg_cv_cc_flag_unused_command_line_argument=yes 6915else $as_nop 6916 xorg_cv_cc_flag_unused_command_line_argument=no 6917fi 6918rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6919fi 6920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6921printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6922 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6923 CFLAGS="$xorg_testset_save_CFLAGS" 6924fi 6925 6926found="no" 6927 6928 if test $found = "no" ; then 6929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6931 fi 6932 6933 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6935 fi 6936 6937 CFLAGS="$CFLAGS -Wredundant-decls" 6938 6939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6940printf %s "checking if $CC supports -Wredundant-decls... " >&6; } 6941 cacheid=xorg_cv_cc_flag__Wredundant_decls 6942 if eval test \${$cacheid+y} 6943then : 6944 printf %s "(cached) " >&6 6945else $as_nop 6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6947/* end confdefs.h. */ 6948int i; 6949int 6950main (void) 6951{ 6952 6953 ; 6954 return 0; 6955} 6956_ACEOF 6957if ac_fn_c_try_link "$LINENO" 6958then : 6959 eval $cacheid=yes 6960else $as_nop 6961 eval $cacheid=no 6962fi 6963rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6964 conftest$ac_exeext conftest.$ac_ext 6965fi 6966 6967 6968 CFLAGS="$xorg_testset_save_CFLAGS" 6969 6970 eval supported=\$$cacheid 6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6972printf "%s\n" "$supported" >&6; } 6973 if test "$supported" = "yes" ; then 6974 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6975 found="yes" 6976 fi 6977 fi 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993xorg_testset_save_CFLAGS="$CFLAGS" 6994 6995if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6998printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6999if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7000then : 7001 printf %s "(cached) " >&6 7002else $as_nop 7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004/* end confdefs.h. */ 7005int i; 7006_ACEOF 7007if ac_fn_c_try_compile "$LINENO" 7008then : 7009 xorg_cv_cc_flag_unknown_warning_option=yes 7010else $as_nop 7011 xorg_cv_cc_flag_unknown_warning_option=no 7012fi 7013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7014fi 7015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7016printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7018 CFLAGS="$xorg_testset_save_CFLAGS" 7019fi 7020 7021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7024 fi 7025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7027printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7028if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7029then : 7030 printf %s "(cached) " >&6 7031else $as_nop 7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7033/* end confdefs.h. */ 7034int i; 7035_ACEOF 7036if ac_fn_c_try_compile "$LINENO" 7037then : 7038 xorg_cv_cc_flag_unused_command_line_argument=yes 7039else $as_nop 7040 xorg_cv_cc_flag_unused_command_line_argument=no 7041fi 7042rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7043fi 7044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7045printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7047 CFLAGS="$xorg_testset_save_CFLAGS" 7048fi 7049 7050found="no" 7051 7052 if test $found = "no" ; then 7053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7055 fi 7056 7057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7059 fi 7060 7061 CFLAGS="$CFLAGS -Wlogical-op" 7062 7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 7064printf %s "checking if $CC supports -Wlogical-op... " >&6; } 7065 cacheid=xorg_cv_cc_flag__Wlogical_op 7066 if eval test \${$cacheid+y} 7067then : 7068 printf %s "(cached) " >&6 7069else $as_nop 7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7071/* end confdefs.h. */ 7072int i; 7073int 7074main (void) 7075{ 7076 7077 ; 7078 return 0; 7079} 7080_ACEOF 7081if ac_fn_c_try_link "$LINENO" 7082then : 7083 eval $cacheid=yes 7084else $as_nop 7085 eval $cacheid=no 7086fi 7087rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7088 conftest$ac_exeext conftest.$ac_ext 7089fi 7090 7091 7092 CFLAGS="$xorg_testset_save_CFLAGS" 7093 7094 eval supported=\$$cacheid 7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7096printf "%s\n" "$supported" >&6; } 7097 if test "$supported" = "yes" ; then 7098 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7099 found="yes" 7100 fi 7101 fi 7102 7103 7104 7105# These are currently disabled because they are noisy. They will be enabled 7106# in the future once the codebase is sufficiently modernized to silence 7107# them. For now, I don't want them to drown out the other warnings. 7108# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7109# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7110# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7111 7112# Turn some warnings into errors, so we don't accidentally get successful builds 7113# when there are problems that should be fixed. 7114 7115if test "x$SELECTIVE_WERROR" = "xyes" ; then 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129xorg_testset_save_CFLAGS="$CFLAGS" 7130 7131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7134printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7135if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7136then : 7137 printf %s "(cached) " >&6 7138else $as_nop 7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7140/* end confdefs.h. */ 7141int i; 7142_ACEOF 7143if ac_fn_c_try_compile "$LINENO" 7144then : 7145 xorg_cv_cc_flag_unknown_warning_option=yes 7146else $as_nop 7147 xorg_cv_cc_flag_unknown_warning_option=no 7148fi 7149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7150fi 7151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7152printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7154 CFLAGS="$xorg_testset_save_CFLAGS" 7155fi 7156 7157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7160 fi 7161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7163printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7164if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7165then : 7166 printf %s "(cached) " >&6 7167else $as_nop 7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169/* end confdefs.h. */ 7170int i; 7171_ACEOF 7172if ac_fn_c_try_compile "$LINENO" 7173then : 7174 xorg_cv_cc_flag_unused_command_line_argument=yes 7175else $as_nop 7176 xorg_cv_cc_flag_unused_command_line_argument=no 7177fi 7178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7179fi 7180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7181printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7183 CFLAGS="$xorg_testset_save_CFLAGS" 7184fi 7185 7186found="no" 7187 7188 if test $found = "no" ; then 7189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7191 fi 7192 7193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7195 fi 7196 7197 CFLAGS="$CFLAGS -Werror=implicit" 7198 7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7200printf %s "checking if $CC supports -Werror=implicit... " >&6; } 7201 cacheid=xorg_cv_cc_flag__Werror_implicit 7202 if eval test \${$cacheid+y} 7203then : 7204 printf %s "(cached) " >&6 7205else $as_nop 7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7207/* end confdefs.h. */ 7208int i; 7209int 7210main (void) 7211{ 7212 7213 ; 7214 return 0; 7215} 7216_ACEOF 7217if ac_fn_c_try_link "$LINENO" 7218then : 7219 eval $cacheid=yes 7220else $as_nop 7221 eval $cacheid=no 7222fi 7223rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7224 conftest$ac_exeext conftest.$ac_ext 7225fi 7226 7227 7228 CFLAGS="$xorg_testset_save_CFLAGS" 7229 7230 eval supported=\$$cacheid 7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7232printf "%s\n" "$supported" >&6; } 7233 if test "$supported" = "yes" ; then 7234 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7235 found="yes" 7236 fi 7237 fi 7238 7239 if test $found = "no" ; then 7240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7242 fi 7243 7244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7246 fi 7247 7248 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7249 7250 { 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 7251printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7252 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7253 if eval test \${$cacheid+y} 7254then : 7255 printf %s "(cached) " >&6 7256else $as_nop 7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7258/* end confdefs.h. */ 7259int i; 7260int 7261main (void) 7262{ 7263 7264 ; 7265 return 0; 7266} 7267_ACEOF 7268if ac_fn_c_try_link "$LINENO" 7269then : 7270 eval $cacheid=yes 7271else $as_nop 7272 eval $cacheid=no 7273fi 7274rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7275 conftest$ac_exeext conftest.$ac_ext 7276fi 7277 7278 7279 CFLAGS="$xorg_testset_save_CFLAGS" 7280 7281 eval supported=\$$cacheid 7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7283printf "%s\n" "$supported" >&6; } 7284 if test "$supported" = "yes" ; then 7285 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7286 found="yes" 7287 fi 7288 fi 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304xorg_testset_save_CFLAGS="$CFLAGS" 7305 7306if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7307 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7309printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7310if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7311then : 7312 printf %s "(cached) " >&6 7313else $as_nop 7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7315/* end confdefs.h. */ 7316int i; 7317_ACEOF 7318if ac_fn_c_try_compile "$LINENO" 7319then : 7320 xorg_cv_cc_flag_unknown_warning_option=yes 7321else $as_nop 7322 xorg_cv_cc_flag_unknown_warning_option=no 7323fi 7324rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7325fi 7326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7327printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7328 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7329 CFLAGS="$xorg_testset_save_CFLAGS" 7330fi 7331 7332if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7335 fi 7336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7338printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7339if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7340then : 7341 printf %s "(cached) " >&6 7342else $as_nop 7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7344/* end confdefs.h. */ 7345int i; 7346_ACEOF 7347if ac_fn_c_try_compile "$LINENO" 7348then : 7349 xorg_cv_cc_flag_unused_command_line_argument=yes 7350else $as_nop 7351 xorg_cv_cc_flag_unused_command_line_argument=no 7352fi 7353rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7354fi 7355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7356printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7358 CFLAGS="$xorg_testset_save_CFLAGS" 7359fi 7360 7361found="no" 7362 7363 if test $found = "no" ; then 7364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7366 fi 7367 7368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7370 fi 7371 7372 CFLAGS="$CFLAGS -Werror=nonnull" 7373 7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7375printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 7376 cacheid=xorg_cv_cc_flag__Werror_nonnull 7377 if eval test \${$cacheid+y} 7378then : 7379 printf %s "(cached) " >&6 7380else $as_nop 7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7382/* end confdefs.h. */ 7383int i; 7384int 7385main (void) 7386{ 7387 7388 ; 7389 return 0; 7390} 7391_ACEOF 7392if ac_fn_c_try_link "$LINENO" 7393then : 7394 eval $cacheid=yes 7395else $as_nop 7396 eval $cacheid=no 7397fi 7398rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7399 conftest$ac_exeext conftest.$ac_ext 7400fi 7401 7402 7403 CFLAGS="$xorg_testset_save_CFLAGS" 7404 7405 eval supported=\$$cacheid 7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7407printf "%s\n" "$supported" >&6; } 7408 if test "$supported" = "yes" ; then 7409 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7410 found="yes" 7411 fi 7412 fi 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428xorg_testset_save_CFLAGS="$CFLAGS" 7429 7430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7433printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7434if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7435then : 7436 printf %s "(cached) " >&6 7437else $as_nop 7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7439/* end confdefs.h. */ 7440int i; 7441_ACEOF 7442if ac_fn_c_try_compile "$LINENO" 7443then : 7444 xorg_cv_cc_flag_unknown_warning_option=yes 7445else $as_nop 7446 xorg_cv_cc_flag_unknown_warning_option=no 7447fi 7448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7449fi 7450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7451printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7452 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7453 CFLAGS="$xorg_testset_save_CFLAGS" 7454fi 7455 7456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7458 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7459 fi 7460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7462printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7463if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7464then : 7465 printf %s "(cached) " >&6 7466else $as_nop 7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7468/* end confdefs.h. */ 7469int i; 7470_ACEOF 7471if ac_fn_c_try_compile "$LINENO" 7472then : 7473 xorg_cv_cc_flag_unused_command_line_argument=yes 7474else $as_nop 7475 xorg_cv_cc_flag_unused_command_line_argument=no 7476fi 7477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7478fi 7479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7480printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7482 CFLAGS="$xorg_testset_save_CFLAGS" 7483fi 7484 7485found="no" 7486 7487 if test $found = "no" ; then 7488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7490 fi 7491 7492 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7494 fi 7495 7496 CFLAGS="$CFLAGS -Werror=init-self" 7497 7498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7499printf %s "checking if $CC supports -Werror=init-self... " >&6; } 7500 cacheid=xorg_cv_cc_flag__Werror_init_self 7501 if eval test \${$cacheid+y} 7502then : 7503 printf %s "(cached) " >&6 7504else $as_nop 7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7506/* end confdefs.h. */ 7507int i; 7508int 7509main (void) 7510{ 7511 7512 ; 7513 return 0; 7514} 7515_ACEOF 7516if ac_fn_c_try_link "$LINENO" 7517then : 7518 eval $cacheid=yes 7519else $as_nop 7520 eval $cacheid=no 7521fi 7522rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7523 conftest$ac_exeext conftest.$ac_ext 7524fi 7525 7526 7527 CFLAGS="$xorg_testset_save_CFLAGS" 7528 7529 eval supported=\$$cacheid 7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7531printf "%s\n" "$supported" >&6; } 7532 if test "$supported" = "yes" ; then 7533 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7534 found="yes" 7535 fi 7536 fi 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552xorg_testset_save_CFLAGS="$CFLAGS" 7553 7554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7558if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7559then : 7560 printf %s "(cached) " >&6 7561else $as_nop 7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7563/* end confdefs.h. */ 7564int i; 7565_ACEOF 7566if ac_fn_c_try_compile "$LINENO" 7567then : 7568 xorg_cv_cc_flag_unknown_warning_option=yes 7569else $as_nop 7570 xorg_cv_cc_flag_unknown_warning_option=no 7571fi 7572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7573fi 7574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7575printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7577 CFLAGS="$xorg_testset_save_CFLAGS" 7578fi 7579 7580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7583 fi 7584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7586printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7587if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7588then : 7589 printf %s "(cached) " >&6 7590else $as_nop 7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7592/* end confdefs.h. */ 7593int i; 7594_ACEOF 7595if ac_fn_c_try_compile "$LINENO" 7596then : 7597 xorg_cv_cc_flag_unused_command_line_argument=yes 7598else $as_nop 7599 xorg_cv_cc_flag_unused_command_line_argument=no 7600fi 7601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7602fi 7603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7604printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7606 CFLAGS="$xorg_testset_save_CFLAGS" 7607fi 7608 7609found="no" 7610 7611 if test $found = "no" ; then 7612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7614 fi 7615 7616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7618 fi 7619 7620 CFLAGS="$CFLAGS -Werror=main" 7621 7622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7623printf %s "checking if $CC supports -Werror=main... " >&6; } 7624 cacheid=xorg_cv_cc_flag__Werror_main 7625 if eval test \${$cacheid+y} 7626then : 7627 printf %s "(cached) " >&6 7628else $as_nop 7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7630/* end confdefs.h. */ 7631int i; 7632int 7633main (void) 7634{ 7635 7636 ; 7637 return 0; 7638} 7639_ACEOF 7640if ac_fn_c_try_link "$LINENO" 7641then : 7642 eval $cacheid=yes 7643else $as_nop 7644 eval $cacheid=no 7645fi 7646rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7647 conftest$ac_exeext conftest.$ac_ext 7648fi 7649 7650 7651 CFLAGS="$xorg_testset_save_CFLAGS" 7652 7653 eval supported=\$$cacheid 7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7655printf "%s\n" "$supported" >&6; } 7656 if test "$supported" = "yes" ; then 7657 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7658 found="yes" 7659 fi 7660 fi 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676xorg_testset_save_CFLAGS="$CFLAGS" 7677 7678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7679 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7682if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7683then : 7684 printf %s "(cached) " >&6 7685else $as_nop 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687/* end confdefs.h. */ 7688int i; 7689_ACEOF 7690if ac_fn_c_try_compile "$LINENO" 7691then : 7692 xorg_cv_cc_flag_unknown_warning_option=yes 7693else $as_nop 7694 xorg_cv_cc_flag_unknown_warning_option=no 7695fi 7696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7697fi 7698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7699printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7701 CFLAGS="$xorg_testset_save_CFLAGS" 7702fi 7703 7704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7707 fi 7708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7710printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7711if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7712then : 7713 printf %s "(cached) " >&6 7714else $as_nop 7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7716/* end confdefs.h. */ 7717int i; 7718_ACEOF 7719if ac_fn_c_try_compile "$LINENO" 7720then : 7721 xorg_cv_cc_flag_unused_command_line_argument=yes 7722else $as_nop 7723 xorg_cv_cc_flag_unused_command_line_argument=no 7724fi 7725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7726fi 7727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7728printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7730 CFLAGS="$xorg_testset_save_CFLAGS" 7731fi 7732 7733found="no" 7734 7735 if test $found = "no" ; then 7736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7738 fi 7739 7740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7742 fi 7743 7744 CFLAGS="$CFLAGS -Werror=missing-braces" 7745 7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7747printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7748 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7749 if eval test \${$cacheid+y} 7750then : 7751 printf %s "(cached) " >&6 7752else $as_nop 7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7754/* end confdefs.h. */ 7755int i; 7756int 7757main (void) 7758{ 7759 7760 ; 7761 return 0; 7762} 7763_ACEOF 7764if ac_fn_c_try_link "$LINENO" 7765then : 7766 eval $cacheid=yes 7767else $as_nop 7768 eval $cacheid=no 7769fi 7770rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7771 conftest$ac_exeext conftest.$ac_ext 7772fi 7773 7774 7775 CFLAGS="$xorg_testset_save_CFLAGS" 7776 7777 eval supported=\$$cacheid 7778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7779printf "%s\n" "$supported" >&6; } 7780 if test "$supported" = "yes" ; then 7781 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7782 found="yes" 7783 fi 7784 fi 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800xorg_testset_save_CFLAGS="$CFLAGS" 7801 7802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7805printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7806if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7807then : 7808 printf %s "(cached) " >&6 7809else $as_nop 7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7811/* end confdefs.h. */ 7812int i; 7813_ACEOF 7814if ac_fn_c_try_compile "$LINENO" 7815then : 7816 xorg_cv_cc_flag_unknown_warning_option=yes 7817else $as_nop 7818 xorg_cv_cc_flag_unknown_warning_option=no 7819fi 7820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7821fi 7822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7823printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7825 CFLAGS="$xorg_testset_save_CFLAGS" 7826fi 7827 7828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7831 fi 7832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7834printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7835if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7836then : 7837 printf %s "(cached) " >&6 7838else $as_nop 7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840/* end confdefs.h. */ 7841int i; 7842_ACEOF 7843if ac_fn_c_try_compile "$LINENO" 7844then : 7845 xorg_cv_cc_flag_unused_command_line_argument=yes 7846else $as_nop 7847 xorg_cv_cc_flag_unused_command_line_argument=no 7848fi 7849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7850fi 7851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7852printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7854 CFLAGS="$xorg_testset_save_CFLAGS" 7855fi 7856 7857found="no" 7858 7859 if test $found = "no" ; then 7860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7861 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7862 fi 7863 7864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7866 fi 7867 7868 CFLAGS="$CFLAGS -Werror=sequence-point" 7869 7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7871printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7872 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7873 if eval test \${$cacheid+y} 7874then : 7875 printf %s "(cached) " >&6 7876else $as_nop 7877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7878/* end confdefs.h. */ 7879int i; 7880int 7881main (void) 7882{ 7883 7884 ; 7885 return 0; 7886} 7887_ACEOF 7888if ac_fn_c_try_link "$LINENO" 7889then : 7890 eval $cacheid=yes 7891else $as_nop 7892 eval $cacheid=no 7893fi 7894rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7895 conftest$ac_exeext conftest.$ac_ext 7896fi 7897 7898 7899 CFLAGS="$xorg_testset_save_CFLAGS" 7900 7901 eval supported=\$$cacheid 7902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7903printf "%s\n" "$supported" >&6; } 7904 if test "$supported" = "yes" ; then 7905 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7906 found="yes" 7907 fi 7908 fi 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924xorg_testset_save_CFLAGS="$CFLAGS" 7925 7926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7929printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7930if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7931then : 7932 printf %s "(cached) " >&6 7933else $as_nop 7934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7935/* end confdefs.h. */ 7936int i; 7937_ACEOF 7938if ac_fn_c_try_compile "$LINENO" 7939then : 7940 xorg_cv_cc_flag_unknown_warning_option=yes 7941else $as_nop 7942 xorg_cv_cc_flag_unknown_warning_option=no 7943fi 7944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7945fi 7946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7947printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7949 CFLAGS="$xorg_testset_save_CFLAGS" 7950fi 7951 7952if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7955 fi 7956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7958printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7959if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7960then : 7961 printf %s "(cached) " >&6 7962else $as_nop 7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7964/* end confdefs.h. */ 7965int i; 7966_ACEOF 7967if ac_fn_c_try_compile "$LINENO" 7968then : 7969 xorg_cv_cc_flag_unused_command_line_argument=yes 7970else $as_nop 7971 xorg_cv_cc_flag_unused_command_line_argument=no 7972fi 7973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7974fi 7975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7976printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7978 CFLAGS="$xorg_testset_save_CFLAGS" 7979fi 7980 7981found="no" 7982 7983 if test $found = "no" ; then 7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7986 fi 7987 7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7990 fi 7991 7992 CFLAGS="$CFLAGS -Werror=return-type" 7993 7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7995printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7996 cacheid=xorg_cv_cc_flag__Werror_return_type 7997 if eval test \${$cacheid+y} 7998then : 7999 printf %s "(cached) " >&6 8000else $as_nop 8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002/* end confdefs.h. */ 8003int i; 8004int 8005main (void) 8006{ 8007 8008 ; 8009 return 0; 8010} 8011_ACEOF 8012if ac_fn_c_try_link "$LINENO" 8013then : 8014 eval $cacheid=yes 8015else $as_nop 8016 eval $cacheid=no 8017fi 8018rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8019 conftest$ac_exeext conftest.$ac_ext 8020fi 8021 8022 8023 CFLAGS="$xorg_testset_save_CFLAGS" 8024 8025 eval supported=\$$cacheid 8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8027printf "%s\n" "$supported" >&6; } 8028 if test "$supported" = "yes" ; then 8029 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 8030 found="yes" 8031 fi 8032 fi 8033 8034 if test $found = "no" ; then 8035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8037 fi 8038 8039 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8041 fi 8042 8043 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8044 8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 8046printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 8047 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 8048 if eval test \${$cacheid+y} 8049then : 8050 printf %s "(cached) " >&6 8051else $as_nop 8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8053/* end confdefs.h. */ 8054int i; 8055int 8056main (void) 8057{ 8058 8059 ; 8060 return 0; 8061} 8062_ACEOF 8063if ac_fn_c_try_link "$LINENO" 8064then : 8065 eval $cacheid=yes 8066else $as_nop 8067 eval $cacheid=no 8068fi 8069rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8070 conftest$ac_exeext conftest.$ac_ext 8071fi 8072 8073 8074 CFLAGS="$xorg_testset_save_CFLAGS" 8075 8076 eval supported=\$$cacheid 8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8078printf "%s\n" "$supported" >&6; } 8079 if test "$supported" = "yes" ; then 8080 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 8081 found="yes" 8082 fi 8083 fi 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099xorg_testset_save_CFLAGS="$CFLAGS" 8100 8101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8104printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8105if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8106then : 8107 printf %s "(cached) " >&6 8108else $as_nop 8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8110/* end confdefs.h. */ 8111int i; 8112_ACEOF 8113if ac_fn_c_try_compile "$LINENO" 8114then : 8115 xorg_cv_cc_flag_unknown_warning_option=yes 8116else $as_nop 8117 xorg_cv_cc_flag_unknown_warning_option=no 8118fi 8119rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8120fi 8121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8122printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8124 CFLAGS="$xorg_testset_save_CFLAGS" 8125fi 8126 8127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8130 fi 8131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8133printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8134if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8135then : 8136 printf %s "(cached) " >&6 8137else $as_nop 8138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8139/* end confdefs.h. */ 8140int i; 8141_ACEOF 8142if ac_fn_c_try_compile "$LINENO" 8143then : 8144 xorg_cv_cc_flag_unused_command_line_argument=yes 8145else $as_nop 8146 xorg_cv_cc_flag_unused_command_line_argument=no 8147fi 8148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8149fi 8150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8151printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8152 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8153 CFLAGS="$xorg_testset_save_CFLAGS" 8154fi 8155 8156found="no" 8157 8158 if test $found = "no" ; then 8159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8160 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8161 fi 8162 8163 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8165 fi 8166 8167 CFLAGS="$CFLAGS -Werror=trigraphs" 8168 8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8170printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 8171 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8172 if eval test \${$cacheid+y} 8173then : 8174 printf %s "(cached) " >&6 8175else $as_nop 8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8177/* end confdefs.h. */ 8178int i; 8179int 8180main (void) 8181{ 8182 8183 ; 8184 return 0; 8185} 8186_ACEOF 8187if ac_fn_c_try_link "$LINENO" 8188then : 8189 eval $cacheid=yes 8190else $as_nop 8191 eval $cacheid=no 8192fi 8193rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8194 conftest$ac_exeext conftest.$ac_ext 8195fi 8196 8197 8198 CFLAGS="$xorg_testset_save_CFLAGS" 8199 8200 eval supported=\$$cacheid 8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8202printf "%s\n" "$supported" >&6; } 8203 if test "$supported" = "yes" ; then 8204 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8205 found="yes" 8206 fi 8207 fi 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223xorg_testset_save_CFLAGS="$CFLAGS" 8224 8225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8228printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8229if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8230then : 8231 printf %s "(cached) " >&6 8232else $as_nop 8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8234/* end confdefs.h. */ 8235int i; 8236_ACEOF 8237if ac_fn_c_try_compile "$LINENO" 8238then : 8239 xorg_cv_cc_flag_unknown_warning_option=yes 8240else $as_nop 8241 xorg_cv_cc_flag_unknown_warning_option=no 8242fi 8243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8244fi 8245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8246printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8248 CFLAGS="$xorg_testset_save_CFLAGS" 8249fi 8250 8251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8253 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8254 fi 8255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8257printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8258if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8259then : 8260 printf %s "(cached) " >&6 8261else $as_nop 8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8263/* end confdefs.h. */ 8264int i; 8265_ACEOF 8266if ac_fn_c_try_compile "$LINENO" 8267then : 8268 xorg_cv_cc_flag_unused_command_line_argument=yes 8269else $as_nop 8270 xorg_cv_cc_flag_unused_command_line_argument=no 8271fi 8272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8273fi 8274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8275printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8276 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8277 CFLAGS="$xorg_testset_save_CFLAGS" 8278fi 8279 8280found="no" 8281 8282 if test $found = "no" ; then 8283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8285 fi 8286 8287 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8289 fi 8290 8291 CFLAGS="$CFLAGS -Werror=array-bounds" 8292 8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8294printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 8295 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8296 if eval test \${$cacheid+y} 8297then : 8298 printf %s "(cached) " >&6 8299else $as_nop 8300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8301/* end confdefs.h. */ 8302int i; 8303int 8304main (void) 8305{ 8306 8307 ; 8308 return 0; 8309} 8310_ACEOF 8311if ac_fn_c_try_link "$LINENO" 8312then : 8313 eval $cacheid=yes 8314else $as_nop 8315 eval $cacheid=no 8316fi 8317rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8318 conftest$ac_exeext conftest.$ac_ext 8319fi 8320 8321 8322 CFLAGS="$xorg_testset_save_CFLAGS" 8323 8324 eval supported=\$$cacheid 8325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8326printf "%s\n" "$supported" >&6; } 8327 if test "$supported" = "yes" ; then 8328 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8329 found="yes" 8330 fi 8331 fi 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347xorg_testset_save_CFLAGS="$CFLAGS" 8348 8349if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8352printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8353if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8354then : 8355 printf %s "(cached) " >&6 8356else $as_nop 8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8358/* end confdefs.h. */ 8359int i; 8360_ACEOF 8361if ac_fn_c_try_compile "$LINENO" 8362then : 8363 xorg_cv_cc_flag_unknown_warning_option=yes 8364else $as_nop 8365 xorg_cv_cc_flag_unknown_warning_option=no 8366fi 8367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8368fi 8369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8370printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8372 CFLAGS="$xorg_testset_save_CFLAGS" 8373fi 8374 8375if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8378 fi 8379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8381printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8382if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8383then : 8384 printf %s "(cached) " >&6 8385else $as_nop 8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8387/* end confdefs.h. */ 8388int i; 8389_ACEOF 8390if ac_fn_c_try_compile "$LINENO" 8391then : 8392 xorg_cv_cc_flag_unused_command_line_argument=yes 8393else $as_nop 8394 xorg_cv_cc_flag_unused_command_line_argument=no 8395fi 8396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8397fi 8398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8399printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8401 CFLAGS="$xorg_testset_save_CFLAGS" 8402fi 8403 8404found="no" 8405 8406 if test $found = "no" ; then 8407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8409 fi 8410 8411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8413 fi 8414 8415 CFLAGS="$CFLAGS -Werror=write-strings" 8416 8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8418printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 8419 cacheid=xorg_cv_cc_flag__Werror_write_strings 8420 if eval test \${$cacheid+y} 8421then : 8422 printf %s "(cached) " >&6 8423else $as_nop 8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8425/* end confdefs.h. */ 8426int i; 8427int 8428main (void) 8429{ 8430 8431 ; 8432 return 0; 8433} 8434_ACEOF 8435if ac_fn_c_try_link "$LINENO" 8436then : 8437 eval $cacheid=yes 8438else $as_nop 8439 eval $cacheid=no 8440fi 8441rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8442 conftest$ac_exeext conftest.$ac_ext 8443fi 8444 8445 8446 CFLAGS="$xorg_testset_save_CFLAGS" 8447 8448 eval supported=\$$cacheid 8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8450printf "%s\n" "$supported" >&6; } 8451 if test "$supported" = "yes" ; then 8452 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8453 found="yes" 8454 fi 8455 fi 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471xorg_testset_save_CFLAGS="$CFLAGS" 8472 8473if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8476printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8477if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8478then : 8479 printf %s "(cached) " >&6 8480else $as_nop 8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8482/* end confdefs.h. */ 8483int i; 8484_ACEOF 8485if ac_fn_c_try_compile "$LINENO" 8486then : 8487 xorg_cv_cc_flag_unknown_warning_option=yes 8488else $as_nop 8489 xorg_cv_cc_flag_unknown_warning_option=no 8490fi 8491rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8492fi 8493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8494printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8496 CFLAGS="$xorg_testset_save_CFLAGS" 8497fi 8498 8499if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8502 fi 8503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8505printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8506if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8507then : 8508 printf %s "(cached) " >&6 8509else $as_nop 8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8511/* end confdefs.h. */ 8512int i; 8513_ACEOF 8514if ac_fn_c_try_compile "$LINENO" 8515then : 8516 xorg_cv_cc_flag_unused_command_line_argument=yes 8517else $as_nop 8518 xorg_cv_cc_flag_unused_command_line_argument=no 8519fi 8520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8521fi 8522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8523printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8525 CFLAGS="$xorg_testset_save_CFLAGS" 8526fi 8527 8528found="no" 8529 8530 if test $found = "no" ; then 8531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8533 fi 8534 8535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8537 fi 8538 8539 CFLAGS="$CFLAGS -Werror=address" 8540 8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8542printf %s "checking if $CC supports -Werror=address... " >&6; } 8543 cacheid=xorg_cv_cc_flag__Werror_address 8544 if eval test \${$cacheid+y} 8545then : 8546 printf %s "(cached) " >&6 8547else $as_nop 8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8549/* end confdefs.h. */ 8550int i; 8551int 8552main (void) 8553{ 8554 8555 ; 8556 return 0; 8557} 8558_ACEOF 8559if ac_fn_c_try_link "$LINENO" 8560then : 8561 eval $cacheid=yes 8562else $as_nop 8563 eval $cacheid=no 8564fi 8565rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8566 conftest$ac_exeext conftest.$ac_ext 8567fi 8568 8569 8570 CFLAGS="$xorg_testset_save_CFLAGS" 8571 8572 eval supported=\$$cacheid 8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8574printf "%s\n" "$supported" >&6; } 8575 if test "$supported" = "yes" ; then 8576 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8577 found="yes" 8578 fi 8579 fi 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595xorg_testset_save_CFLAGS="$CFLAGS" 8596 8597if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8600printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8601if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8602then : 8603 printf %s "(cached) " >&6 8604else $as_nop 8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8606/* end confdefs.h. */ 8607int i; 8608_ACEOF 8609if ac_fn_c_try_compile "$LINENO" 8610then : 8611 xorg_cv_cc_flag_unknown_warning_option=yes 8612else $as_nop 8613 xorg_cv_cc_flag_unknown_warning_option=no 8614fi 8615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8616fi 8617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8618printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8620 CFLAGS="$xorg_testset_save_CFLAGS" 8621fi 8622 8623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8625 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8626 fi 8627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8629printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8630if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8631then : 8632 printf %s "(cached) " >&6 8633else $as_nop 8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8635/* end confdefs.h. */ 8636int i; 8637_ACEOF 8638if ac_fn_c_try_compile "$LINENO" 8639then : 8640 xorg_cv_cc_flag_unused_command_line_argument=yes 8641else $as_nop 8642 xorg_cv_cc_flag_unused_command_line_argument=no 8643fi 8644rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8645fi 8646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8647printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8649 CFLAGS="$xorg_testset_save_CFLAGS" 8650fi 8651 8652found="no" 8653 8654 if test $found = "no" ; then 8655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8656 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8657 fi 8658 8659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8661 fi 8662 8663 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8664 8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8666printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8667 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8668 if eval test \${$cacheid+y} 8669then : 8670 printf %s "(cached) " >&6 8671else $as_nop 8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8673/* end confdefs.h. */ 8674int i; 8675int 8676main (void) 8677{ 8678 8679 ; 8680 return 0; 8681} 8682_ACEOF 8683if ac_fn_c_try_link "$LINENO" 8684then : 8685 eval $cacheid=yes 8686else $as_nop 8687 eval $cacheid=no 8688fi 8689rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8690 conftest$ac_exeext conftest.$ac_ext 8691fi 8692 8693 8694 CFLAGS="$xorg_testset_save_CFLAGS" 8695 8696 eval supported=\$$cacheid 8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8698printf "%s\n" "$supported" >&6; } 8699 if test "$supported" = "yes" ; then 8700 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8701 found="yes" 8702 fi 8703 fi 8704 8705 if test $found = "no" ; then 8706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8708 fi 8709 8710 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8712 fi 8713 8714 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8715 8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8717printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8718 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8719 if eval test \${$cacheid+y} 8720then : 8721 printf %s "(cached) " >&6 8722else $as_nop 8723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8724/* end confdefs.h. */ 8725int i; 8726int 8727main (void) 8728{ 8729 8730 ; 8731 return 0; 8732} 8733_ACEOF 8734if ac_fn_c_try_link "$LINENO" 8735then : 8736 eval $cacheid=yes 8737else $as_nop 8738 eval $cacheid=no 8739fi 8740rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8741 conftest$ac_exeext conftest.$ac_ext 8742fi 8743 8744 8745 CFLAGS="$xorg_testset_save_CFLAGS" 8746 8747 eval supported=\$$cacheid 8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8749printf "%s\n" "$supported" >&6; } 8750 if test "$supported" = "yes" ; then 8751 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8752 found="yes" 8753 fi 8754 fi 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770xorg_testset_save_CFLAGS="$CFLAGS" 8771 8772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8775printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8776if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8777then : 8778 printf %s "(cached) " >&6 8779else $as_nop 8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8781/* end confdefs.h. */ 8782int i; 8783_ACEOF 8784if ac_fn_c_try_compile "$LINENO" 8785then : 8786 xorg_cv_cc_flag_unknown_warning_option=yes 8787else $as_nop 8788 xorg_cv_cc_flag_unknown_warning_option=no 8789fi 8790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8791fi 8792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8793printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8795 CFLAGS="$xorg_testset_save_CFLAGS" 8796fi 8797 8798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8801 fi 8802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8804printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8805if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8806then : 8807 printf %s "(cached) " >&6 8808else $as_nop 8809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8810/* end confdefs.h. */ 8811int i; 8812_ACEOF 8813if ac_fn_c_try_compile "$LINENO" 8814then : 8815 xorg_cv_cc_flag_unused_command_line_argument=yes 8816else $as_nop 8817 xorg_cv_cc_flag_unused_command_line_argument=no 8818fi 8819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8820fi 8821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8822printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8824 CFLAGS="$xorg_testset_save_CFLAGS" 8825fi 8826 8827found="no" 8828 8829 if test $found = "no" ; then 8830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8831 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8832 fi 8833 8834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8836 fi 8837 8838 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8839 8840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8841printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8842 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8843 if eval test \${$cacheid+y} 8844then : 8845 printf %s "(cached) " >&6 8846else $as_nop 8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8848/* end confdefs.h. */ 8849int i; 8850int 8851main (void) 8852{ 8853 8854 ; 8855 return 0; 8856} 8857_ACEOF 8858if ac_fn_c_try_link "$LINENO" 8859then : 8860 eval $cacheid=yes 8861else $as_nop 8862 eval $cacheid=no 8863fi 8864rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8865 conftest$ac_exeext conftest.$ac_ext 8866fi 8867 8868 8869 CFLAGS="$xorg_testset_save_CFLAGS" 8870 8871 eval supported=\$$cacheid 8872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8873printf "%s\n" "$supported" >&6; } 8874 if test "$supported" = "yes" ; then 8875 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8876 found="yes" 8877 fi 8878 fi 8879 8880 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8881else 8882{ 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 8883printf "%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;} 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897xorg_testset_save_CFLAGS="$CFLAGS" 8898 8899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8903if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8904then : 8905 printf %s "(cached) " >&6 8906else $as_nop 8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8908/* end confdefs.h. */ 8909int i; 8910_ACEOF 8911if ac_fn_c_try_compile "$LINENO" 8912then : 8913 xorg_cv_cc_flag_unknown_warning_option=yes 8914else $as_nop 8915 xorg_cv_cc_flag_unknown_warning_option=no 8916fi 8917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8918fi 8919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8922 CFLAGS="$xorg_testset_save_CFLAGS" 8923fi 8924 8925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8928 fi 8929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8932if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8933then : 8934 printf %s "(cached) " >&6 8935else $as_nop 8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8937/* end confdefs.h. */ 8938int i; 8939_ACEOF 8940if ac_fn_c_try_compile "$LINENO" 8941then : 8942 xorg_cv_cc_flag_unused_command_line_argument=yes 8943else $as_nop 8944 xorg_cv_cc_flag_unused_command_line_argument=no 8945fi 8946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8947fi 8948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8951 CFLAGS="$xorg_testset_save_CFLAGS" 8952fi 8953 8954found="no" 8955 8956 if test $found = "no" ; then 8957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8959 fi 8960 8961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8963 fi 8964 8965 CFLAGS="$CFLAGS -Wimplicit" 8966 8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8968printf %s "checking if $CC supports -Wimplicit... " >&6; } 8969 cacheid=xorg_cv_cc_flag__Wimplicit 8970 if eval test \${$cacheid+y} 8971then : 8972 printf %s "(cached) " >&6 8973else $as_nop 8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8975/* end confdefs.h. */ 8976int i; 8977int 8978main (void) 8979{ 8980 8981 ; 8982 return 0; 8983} 8984_ACEOF 8985if ac_fn_c_try_link "$LINENO" 8986then : 8987 eval $cacheid=yes 8988else $as_nop 8989 eval $cacheid=no 8990fi 8991rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8992 conftest$ac_exeext conftest.$ac_ext 8993fi 8994 8995 8996 CFLAGS="$xorg_testset_save_CFLAGS" 8997 8998 eval supported=\$$cacheid 8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9000printf "%s\n" "$supported" >&6; } 9001 if test "$supported" = "yes" ; then 9002 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 9003 found="yes" 9004 fi 9005 fi 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021xorg_testset_save_CFLAGS="$CFLAGS" 9022 9023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9027if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9028then : 9029 printf %s "(cached) " >&6 9030else $as_nop 9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9032/* end confdefs.h. */ 9033int i; 9034_ACEOF 9035if ac_fn_c_try_compile "$LINENO" 9036then : 9037 xorg_cv_cc_flag_unknown_warning_option=yes 9038else $as_nop 9039 xorg_cv_cc_flag_unknown_warning_option=no 9040fi 9041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9042fi 9043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9045 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9046 CFLAGS="$xorg_testset_save_CFLAGS" 9047fi 9048 9049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9050 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9051 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9052 fi 9053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9056if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9057then : 9058 printf %s "(cached) " >&6 9059else $as_nop 9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9061/* end confdefs.h. */ 9062int i; 9063_ACEOF 9064if ac_fn_c_try_compile "$LINENO" 9065then : 9066 xorg_cv_cc_flag_unused_command_line_argument=yes 9067else $as_nop 9068 xorg_cv_cc_flag_unused_command_line_argument=no 9069fi 9070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9071fi 9072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9074 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9075 CFLAGS="$xorg_testset_save_CFLAGS" 9076fi 9077 9078found="no" 9079 9080 if test $found = "no" ; then 9081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9082 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9083 fi 9084 9085 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9087 fi 9088 9089 CFLAGS="$CFLAGS -Wnonnull" 9090 9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 9092printf %s "checking if $CC supports -Wnonnull... " >&6; } 9093 cacheid=xorg_cv_cc_flag__Wnonnull 9094 if eval test \${$cacheid+y} 9095then : 9096 printf %s "(cached) " >&6 9097else $as_nop 9098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9099/* end confdefs.h. */ 9100int i; 9101int 9102main (void) 9103{ 9104 9105 ; 9106 return 0; 9107} 9108_ACEOF 9109if ac_fn_c_try_link "$LINENO" 9110then : 9111 eval $cacheid=yes 9112else $as_nop 9113 eval $cacheid=no 9114fi 9115rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9116 conftest$ac_exeext conftest.$ac_ext 9117fi 9118 9119 9120 CFLAGS="$xorg_testset_save_CFLAGS" 9121 9122 eval supported=\$$cacheid 9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9124printf "%s\n" "$supported" >&6; } 9125 if test "$supported" = "yes" ; then 9126 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 9127 found="yes" 9128 fi 9129 fi 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145xorg_testset_save_CFLAGS="$CFLAGS" 9146 9147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9148 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9151if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9152then : 9153 printf %s "(cached) " >&6 9154else $as_nop 9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9156/* end confdefs.h. */ 9157int i; 9158_ACEOF 9159if ac_fn_c_try_compile "$LINENO" 9160then : 9161 xorg_cv_cc_flag_unknown_warning_option=yes 9162else $as_nop 9163 xorg_cv_cc_flag_unknown_warning_option=no 9164fi 9165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9166fi 9167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9170 CFLAGS="$xorg_testset_save_CFLAGS" 9171fi 9172 9173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9176 fi 9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9180if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9181then : 9182 printf %s "(cached) " >&6 9183else $as_nop 9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9185/* end confdefs.h. */ 9186int i; 9187_ACEOF 9188if ac_fn_c_try_compile "$LINENO" 9189then : 9190 xorg_cv_cc_flag_unused_command_line_argument=yes 9191else $as_nop 9192 xorg_cv_cc_flag_unused_command_line_argument=no 9193fi 9194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9195fi 9196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9199 CFLAGS="$xorg_testset_save_CFLAGS" 9200fi 9201 9202found="no" 9203 9204 if test $found = "no" ; then 9205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9206 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9207 fi 9208 9209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9211 fi 9212 9213 CFLAGS="$CFLAGS -Winit-self" 9214 9215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9216printf %s "checking if $CC supports -Winit-self... " >&6; } 9217 cacheid=xorg_cv_cc_flag__Winit_self 9218 if eval test \${$cacheid+y} 9219then : 9220 printf %s "(cached) " >&6 9221else $as_nop 9222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9223/* end confdefs.h. */ 9224int i; 9225int 9226main (void) 9227{ 9228 9229 ; 9230 return 0; 9231} 9232_ACEOF 9233if ac_fn_c_try_link "$LINENO" 9234then : 9235 eval $cacheid=yes 9236else $as_nop 9237 eval $cacheid=no 9238fi 9239rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9240 conftest$ac_exeext conftest.$ac_ext 9241fi 9242 9243 9244 CFLAGS="$xorg_testset_save_CFLAGS" 9245 9246 eval supported=\$$cacheid 9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9248printf "%s\n" "$supported" >&6; } 9249 if test "$supported" = "yes" ; then 9250 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9251 found="yes" 9252 fi 9253 fi 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269xorg_testset_save_CFLAGS="$CFLAGS" 9270 9271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9275if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9276then : 9277 printf %s "(cached) " >&6 9278else $as_nop 9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9280/* end confdefs.h. */ 9281int i; 9282_ACEOF 9283if ac_fn_c_try_compile "$LINENO" 9284then : 9285 xorg_cv_cc_flag_unknown_warning_option=yes 9286else $as_nop 9287 xorg_cv_cc_flag_unknown_warning_option=no 9288fi 9289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9290fi 9291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9294 CFLAGS="$xorg_testset_save_CFLAGS" 9295fi 9296 9297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9299 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9300 fi 9301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9304if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9305then : 9306 printf %s "(cached) " >&6 9307else $as_nop 9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9309/* end confdefs.h. */ 9310int i; 9311_ACEOF 9312if ac_fn_c_try_compile "$LINENO" 9313then : 9314 xorg_cv_cc_flag_unused_command_line_argument=yes 9315else $as_nop 9316 xorg_cv_cc_flag_unused_command_line_argument=no 9317fi 9318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9319fi 9320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9322 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9323 CFLAGS="$xorg_testset_save_CFLAGS" 9324fi 9325 9326found="no" 9327 9328 if test $found = "no" ; then 9329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9331 fi 9332 9333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9335 fi 9336 9337 CFLAGS="$CFLAGS -Wmain" 9338 9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9340printf %s "checking if $CC supports -Wmain... " >&6; } 9341 cacheid=xorg_cv_cc_flag__Wmain 9342 if eval test \${$cacheid+y} 9343then : 9344 printf %s "(cached) " >&6 9345else $as_nop 9346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9347/* end confdefs.h. */ 9348int i; 9349int 9350main (void) 9351{ 9352 9353 ; 9354 return 0; 9355} 9356_ACEOF 9357if ac_fn_c_try_link "$LINENO" 9358then : 9359 eval $cacheid=yes 9360else $as_nop 9361 eval $cacheid=no 9362fi 9363rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9364 conftest$ac_exeext conftest.$ac_ext 9365fi 9366 9367 9368 CFLAGS="$xorg_testset_save_CFLAGS" 9369 9370 eval supported=\$$cacheid 9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9372printf "%s\n" "$supported" >&6; } 9373 if test "$supported" = "yes" ; then 9374 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9375 found="yes" 9376 fi 9377 fi 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393xorg_testset_save_CFLAGS="$CFLAGS" 9394 9395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9396 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9399if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9400then : 9401 printf %s "(cached) " >&6 9402else $as_nop 9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9404/* end confdefs.h. */ 9405int i; 9406_ACEOF 9407if ac_fn_c_try_compile "$LINENO" 9408then : 9409 xorg_cv_cc_flag_unknown_warning_option=yes 9410else $as_nop 9411 xorg_cv_cc_flag_unknown_warning_option=no 9412fi 9413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9414fi 9415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9417 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9418 CFLAGS="$xorg_testset_save_CFLAGS" 9419fi 9420 9421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9423 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9424 fi 9425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9428if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9429then : 9430 printf %s "(cached) " >&6 9431else $as_nop 9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9433/* end confdefs.h. */ 9434int i; 9435_ACEOF 9436if ac_fn_c_try_compile "$LINENO" 9437then : 9438 xorg_cv_cc_flag_unused_command_line_argument=yes 9439else $as_nop 9440 xorg_cv_cc_flag_unused_command_line_argument=no 9441fi 9442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9443fi 9444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9446 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9447 CFLAGS="$xorg_testset_save_CFLAGS" 9448fi 9449 9450found="no" 9451 9452 if test $found = "no" ; then 9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9455 fi 9456 9457 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9459 fi 9460 9461 CFLAGS="$CFLAGS -Wmissing-braces" 9462 9463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9464printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 9465 cacheid=xorg_cv_cc_flag__Wmissing_braces 9466 if eval test \${$cacheid+y} 9467then : 9468 printf %s "(cached) " >&6 9469else $as_nop 9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9471/* end confdefs.h. */ 9472int i; 9473int 9474main (void) 9475{ 9476 9477 ; 9478 return 0; 9479} 9480_ACEOF 9481if ac_fn_c_try_link "$LINENO" 9482then : 9483 eval $cacheid=yes 9484else $as_nop 9485 eval $cacheid=no 9486fi 9487rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9488 conftest$ac_exeext conftest.$ac_ext 9489fi 9490 9491 9492 CFLAGS="$xorg_testset_save_CFLAGS" 9493 9494 eval supported=\$$cacheid 9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9496printf "%s\n" "$supported" >&6; } 9497 if test "$supported" = "yes" ; then 9498 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9499 found="yes" 9500 fi 9501 fi 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517xorg_testset_save_CFLAGS="$CFLAGS" 9518 9519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9522printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9523if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9524then : 9525 printf %s "(cached) " >&6 9526else $as_nop 9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9528/* end confdefs.h. */ 9529int i; 9530_ACEOF 9531if ac_fn_c_try_compile "$LINENO" 9532then : 9533 xorg_cv_cc_flag_unknown_warning_option=yes 9534else $as_nop 9535 xorg_cv_cc_flag_unknown_warning_option=no 9536fi 9537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9538fi 9539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9540printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9541 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9542 CFLAGS="$xorg_testset_save_CFLAGS" 9543fi 9544 9545if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9548 fi 9549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9551printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9552if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9553then : 9554 printf %s "(cached) " >&6 9555else $as_nop 9556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9557/* end confdefs.h. */ 9558int i; 9559_ACEOF 9560if ac_fn_c_try_compile "$LINENO" 9561then : 9562 xorg_cv_cc_flag_unused_command_line_argument=yes 9563else $as_nop 9564 xorg_cv_cc_flag_unused_command_line_argument=no 9565fi 9566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9567fi 9568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9569printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9571 CFLAGS="$xorg_testset_save_CFLAGS" 9572fi 9573 9574found="no" 9575 9576 if test $found = "no" ; then 9577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9578 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9579 fi 9580 9581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9583 fi 9584 9585 CFLAGS="$CFLAGS -Wsequence-point" 9586 9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9588printf %s "checking if $CC supports -Wsequence-point... " >&6; } 9589 cacheid=xorg_cv_cc_flag__Wsequence_point 9590 if eval test \${$cacheid+y} 9591then : 9592 printf %s "(cached) " >&6 9593else $as_nop 9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9595/* end confdefs.h. */ 9596int i; 9597int 9598main (void) 9599{ 9600 9601 ; 9602 return 0; 9603} 9604_ACEOF 9605if ac_fn_c_try_link "$LINENO" 9606then : 9607 eval $cacheid=yes 9608else $as_nop 9609 eval $cacheid=no 9610fi 9611rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9612 conftest$ac_exeext conftest.$ac_ext 9613fi 9614 9615 9616 CFLAGS="$xorg_testset_save_CFLAGS" 9617 9618 eval supported=\$$cacheid 9619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9620printf "%s\n" "$supported" >&6; } 9621 if test "$supported" = "yes" ; then 9622 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9623 found="yes" 9624 fi 9625 fi 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641xorg_testset_save_CFLAGS="$CFLAGS" 9642 9643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9646printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9647if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9648then : 9649 printf %s "(cached) " >&6 9650else $as_nop 9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9652/* end confdefs.h. */ 9653int i; 9654_ACEOF 9655if ac_fn_c_try_compile "$LINENO" 9656then : 9657 xorg_cv_cc_flag_unknown_warning_option=yes 9658else $as_nop 9659 xorg_cv_cc_flag_unknown_warning_option=no 9660fi 9661rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9662fi 9663{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9664printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9665 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9666 CFLAGS="$xorg_testset_save_CFLAGS" 9667fi 9668 9669if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9671 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9672 fi 9673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9675printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9676if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9677then : 9678 printf %s "(cached) " >&6 9679else $as_nop 9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9681/* end confdefs.h. */ 9682int i; 9683_ACEOF 9684if ac_fn_c_try_compile "$LINENO" 9685then : 9686 xorg_cv_cc_flag_unused_command_line_argument=yes 9687else $as_nop 9688 xorg_cv_cc_flag_unused_command_line_argument=no 9689fi 9690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9691fi 9692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9693printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9694 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9695 CFLAGS="$xorg_testset_save_CFLAGS" 9696fi 9697 9698found="no" 9699 9700 if test $found = "no" ; then 9701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9703 fi 9704 9705 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9707 fi 9708 9709 CFLAGS="$CFLAGS -Wreturn-type" 9710 9711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9712printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9713 cacheid=xorg_cv_cc_flag__Wreturn_type 9714 if eval test \${$cacheid+y} 9715then : 9716 printf %s "(cached) " >&6 9717else $as_nop 9718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9719/* end confdefs.h. */ 9720int i; 9721int 9722main (void) 9723{ 9724 9725 ; 9726 return 0; 9727} 9728_ACEOF 9729if ac_fn_c_try_link "$LINENO" 9730then : 9731 eval $cacheid=yes 9732else $as_nop 9733 eval $cacheid=no 9734fi 9735rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9736 conftest$ac_exeext conftest.$ac_ext 9737fi 9738 9739 9740 CFLAGS="$xorg_testset_save_CFLAGS" 9741 9742 eval supported=\$$cacheid 9743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9744printf "%s\n" "$supported" >&6; } 9745 if test "$supported" = "yes" ; then 9746 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9747 found="yes" 9748 fi 9749 fi 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765xorg_testset_save_CFLAGS="$CFLAGS" 9766 9767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9768 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9770printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9771if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9772then : 9773 printf %s "(cached) " >&6 9774else $as_nop 9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9776/* end confdefs.h. */ 9777int i; 9778_ACEOF 9779if ac_fn_c_try_compile "$LINENO" 9780then : 9781 xorg_cv_cc_flag_unknown_warning_option=yes 9782else $as_nop 9783 xorg_cv_cc_flag_unknown_warning_option=no 9784fi 9785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9786fi 9787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9788printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9789 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9790 CFLAGS="$xorg_testset_save_CFLAGS" 9791fi 9792 9793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9796 fi 9797 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9799printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9800if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9801then : 9802 printf %s "(cached) " >&6 9803else $as_nop 9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9805/* end confdefs.h. */ 9806int i; 9807_ACEOF 9808if ac_fn_c_try_compile "$LINENO" 9809then : 9810 xorg_cv_cc_flag_unused_command_line_argument=yes 9811else $as_nop 9812 xorg_cv_cc_flag_unused_command_line_argument=no 9813fi 9814rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9815fi 9816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9817printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9819 CFLAGS="$xorg_testset_save_CFLAGS" 9820fi 9821 9822found="no" 9823 9824 if test $found = "no" ; then 9825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9827 fi 9828 9829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9831 fi 9832 9833 CFLAGS="$CFLAGS -Wtrigraphs" 9834 9835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9836printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9837 cacheid=xorg_cv_cc_flag__Wtrigraphs 9838 if eval test \${$cacheid+y} 9839then : 9840 printf %s "(cached) " >&6 9841else $as_nop 9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9843/* end confdefs.h. */ 9844int i; 9845int 9846main (void) 9847{ 9848 9849 ; 9850 return 0; 9851} 9852_ACEOF 9853if ac_fn_c_try_link "$LINENO" 9854then : 9855 eval $cacheid=yes 9856else $as_nop 9857 eval $cacheid=no 9858fi 9859rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9860 conftest$ac_exeext conftest.$ac_ext 9861fi 9862 9863 9864 CFLAGS="$xorg_testset_save_CFLAGS" 9865 9866 eval supported=\$$cacheid 9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9868printf "%s\n" "$supported" >&6; } 9869 if test "$supported" = "yes" ; then 9870 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9871 found="yes" 9872 fi 9873 fi 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889xorg_testset_save_CFLAGS="$CFLAGS" 9890 9891if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9894printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9895if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9896then : 9897 printf %s "(cached) " >&6 9898else $as_nop 9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9900/* end confdefs.h. */ 9901int i; 9902_ACEOF 9903if ac_fn_c_try_compile "$LINENO" 9904then : 9905 xorg_cv_cc_flag_unknown_warning_option=yes 9906else $as_nop 9907 xorg_cv_cc_flag_unknown_warning_option=no 9908fi 9909rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9910fi 9911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9912printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9914 CFLAGS="$xorg_testset_save_CFLAGS" 9915fi 9916 9917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9919 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9920 fi 9921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9923printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9924if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9925then : 9926 printf %s "(cached) " >&6 9927else $as_nop 9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9929/* end confdefs.h. */ 9930int i; 9931_ACEOF 9932if ac_fn_c_try_compile "$LINENO" 9933then : 9934 xorg_cv_cc_flag_unused_command_line_argument=yes 9935else $as_nop 9936 xorg_cv_cc_flag_unused_command_line_argument=no 9937fi 9938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 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 -Warray-bounds" 9958 9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9960printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9961 cacheid=xorg_cv_cc_flag__Warray_bounds 9962 if eval test \${$cacheid+y} 9963then : 9964 printf %s "(cached) " >&6 9965else $as_nop 9966 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 $as_nop 9981 eval $cacheid=no 9982fi 9983rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9984 conftest$ac_exeext conftest.$ac_ext 9985fi 9986 9987 9988 CFLAGS="$xorg_testset_save_CFLAGS" 9989 9990 eval supported=\$$cacheid 9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9992printf "%s\n" "$supported" >&6; } 9993 if test "$supported" = "yes" ; then 9994 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9995 found="yes" 9996 fi 9997 fi 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013xorg_testset_save_CFLAGS="$CFLAGS" 10014 10015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10018printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10019if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10020then : 10021 printf %s "(cached) " >&6 10022else $as_nop 10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10024/* end confdefs.h. */ 10025int i; 10026_ACEOF 10027if ac_fn_c_try_compile "$LINENO" 10028then : 10029 xorg_cv_cc_flag_unknown_warning_option=yes 10030else $as_nop 10031 xorg_cv_cc_flag_unknown_warning_option=no 10032fi 10033rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10034fi 10035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10036printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039fi 10040 10041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10044 fi 10045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10047printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10048if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10049then : 10050 printf %s "(cached) " >&6 10051else $as_nop 10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10053/* end confdefs.h. */ 10054int i; 10055_ACEOF 10056if ac_fn_c_try_compile "$LINENO" 10057then : 10058 xorg_cv_cc_flag_unused_command_line_argument=yes 10059else $as_nop 10060 xorg_cv_cc_flag_unused_command_line_argument=no 10061fi 10062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10063fi 10064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10065printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10067 CFLAGS="$xorg_testset_save_CFLAGS" 10068fi 10069 10070found="no" 10071 10072 if test $found = "no" ; then 10073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10075 fi 10076 10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10079 fi 10080 10081 CFLAGS="$CFLAGS -Wwrite-strings" 10082 10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 10084printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 10085 cacheid=xorg_cv_cc_flag__Wwrite_strings 10086 if eval test \${$cacheid+y} 10087then : 10088 printf %s "(cached) " >&6 10089else $as_nop 10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10091/* end confdefs.h. */ 10092int i; 10093int 10094main (void) 10095{ 10096 10097 ; 10098 return 0; 10099} 10100_ACEOF 10101if ac_fn_c_try_link "$LINENO" 10102then : 10103 eval $cacheid=yes 10104else $as_nop 10105 eval $cacheid=no 10106fi 10107rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10108 conftest$ac_exeext conftest.$ac_ext 10109fi 10110 10111 10112 CFLAGS="$xorg_testset_save_CFLAGS" 10113 10114 eval supported=\$$cacheid 10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10116printf "%s\n" "$supported" >&6; } 10117 if test "$supported" = "yes" ; then 10118 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 10119 found="yes" 10120 fi 10121 fi 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137xorg_testset_save_CFLAGS="$CFLAGS" 10138 10139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10140 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10142printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10143if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10144then : 10145 printf %s "(cached) " >&6 10146else $as_nop 10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10148/* end confdefs.h. */ 10149int i; 10150_ACEOF 10151if ac_fn_c_try_compile "$LINENO" 10152then : 10153 xorg_cv_cc_flag_unknown_warning_option=yes 10154else $as_nop 10155 xorg_cv_cc_flag_unknown_warning_option=no 10156fi 10157rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10158fi 10159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10160printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10162 CFLAGS="$xorg_testset_save_CFLAGS" 10163fi 10164 10165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10168 fi 10169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10171printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10172if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10173then : 10174 printf %s "(cached) " >&6 10175else $as_nop 10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10177/* end confdefs.h. */ 10178int i; 10179_ACEOF 10180if ac_fn_c_try_compile "$LINENO" 10181then : 10182 xorg_cv_cc_flag_unused_command_line_argument=yes 10183else $as_nop 10184 xorg_cv_cc_flag_unused_command_line_argument=no 10185fi 10186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10187fi 10188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10189printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10191 CFLAGS="$xorg_testset_save_CFLAGS" 10192fi 10193 10194found="no" 10195 10196 if test $found = "no" ; then 10197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10199 fi 10200 10201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10203 fi 10204 10205 CFLAGS="$CFLAGS -Waddress" 10206 10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 10208printf %s "checking if $CC supports -Waddress... " >&6; } 10209 cacheid=xorg_cv_cc_flag__Waddress 10210 if eval test \${$cacheid+y} 10211then : 10212 printf %s "(cached) " >&6 10213else $as_nop 10214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10215/* end confdefs.h. */ 10216int i; 10217int 10218main (void) 10219{ 10220 10221 ; 10222 return 0; 10223} 10224_ACEOF 10225if ac_fn_c_try_link "$LINENO" 10226then : 10227 eval $cacheid=yes 10228else $as_nop 10229 eval $cacheid=no 10230fi 10231rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10232 conftest$ac_exeext conftest.$ac_ext 10233fi 10234 10235 10236 CFLAGS="$xorg_testset_save_CFLAGS" 10237 10238 eval supported=\$$cacheid 10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10240printf "%s\n" "$supported" >&6; } 10241 if test "$supported" = "yes" ; then 10242 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 10243 found="yes" 10244 fi 10245 fi 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261xorg_testset_save_CFLAGS="$CFLAGS" 10262 10263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10266printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10267if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10268then : 10269 printf %s "(cached) " >&6 10270else $as_nop 10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10272/* end confdefs.h. */ 10273int i; 10274_ACEOF 10275if ac_fn_c_try_compile "$LINENO" 10276then : 10277 xorg_cv_cc_flag_unknown_warning_option=yes 10278else $as_nop 10279 xorg_cv_cc_flag_unknown_warning_option=no 10280fi 10281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10282fi 10283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10284printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10286 CFLAGS="$xorg_testset_save_CFLAGS" 10287fi 10288 10289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10292 fi 10293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10295printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10296if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10297then : 10298 printf %s "(cached) " >&6 10299else $as_nop 10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10301/* end confdefs.h. */ 10302int i; 10303_ACEOF 10304if ac_fn_c_try_compile "$LINENO" 10305then : 10306 xorg_cv_cc_flag_unused_command_line_argument=yes 10307else $as_nop 10308 xorg_cv_cc_flag_unused_command_line_argument=no 10309fi 10310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10311fi 10312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10313printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10315 CFLAGS="$xorg_testset_save_CFLAGS" 10316fi 10317 10318found="no" 10319 10320 if test $found = "no" ; then 10321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10323 fi 10324 10325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10327 fi 10328 10329 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10330 10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10332printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10333 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10334 if eval test \${$cacheid+y} 10335then : 10336 printf %s "(cached) " >&6 10337else $as_nop 10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10339/* end confdefs.h. */ 10340int i; 10341int 10342main (void) 10343{ 10344 10345 ; 10346 return 0; 10347} 10348_ACEOF 10349if ac_fn_c_try_link "$LINENO" 10350then : 10351 eval $cacheid=yes 10352else $as_nop 10353 eval $cacheid=no 10354fi 10355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10356 conftest$ac_exeext conftest.$ac_ext 10357fi 10358 10359 10360 CFLAGS="$xorg_testset_save_CFLAGS" 10361 10362 eval supported=\$$cacheid 10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10364printf "%s\n" "$supported" >&6; } 10365 if test "$supported" = "yes" ; then 10366 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10367 found="yes" 10368 fi 10369 fi 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385xorg_testset_save_CFLAGS="$CFLAGS" 10386 10387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10390printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10391if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10392then : 10393 printf %s "(cached) " >&6 10394else $as_nop 10395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10396/* end confdefs.h. */ 10397int i; 10398_ACEOF 10399if ac_fn_c_try_compile "$LINENO" 10400then : 10401 xorg_cv_cc_flag_unknown_warning_option=yes 10402else $as_nop 10403 xorg_cv_cc_flag_unknown_warning_option=no 10404fi 10405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10406fi 10407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10408printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10410 CFLAGS="$xorg_testset_save_CFLAGS" 10411fi 10412 10413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10416 fi 10417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10419printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10420if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10421then : 10422 printf %s "(cached) " >&6 10423else $as_nop 10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10425/* end confdefs.h. */ 10426int i; 10427_ACEOF 10428if ac_fn_c_try_compile "$LINENO" 10429then : 10430 xorg_cv_cc_flag_unused_command_line_argument=yes 10431else $as_nop 10432 xorg_cv_cc_flag_unused_command_line_argument=no 10433fi 10434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10435fi 10436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10439 CFLAGS="$xorg_testset_save_CFLAGS" 10440fi 10441 10442found="no" 10443 10444 if test $found = "no" ; then 10445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10447 fi 10448 10449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10451 fi 10452 10453 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10454 10455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10456printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10457 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10458 if eval test \${$cacheid+y} 10459then : 10460 printf %s "(cached) " >&6 10461else $as_nop 10462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10463/* end confdefs.h. */ 10464int i; 10465int 10466main (void) 10467{ 10468 10469 ; 10470 return 0; 10471} 10472_ACEOF 10473if ac_fn_c_try_link "$LINENO" 10474then : 10475 eval $cacheid=yes 10476else $as_nop 10477 eval $cacheid=no 10478fi 10479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10480 conftest$ac_exeext conftest.$ac_ext 10481fi 10482 10483 10484 CFLAGS="$xorg_testset_save_CFLAGS" 10485 10486 eval supported=\$$cacheid 10487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10488printf "%s\n" "$supported" >&6; } 10489 if test "$supported" = "yes" ; then 10490 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10491 found="yes" 10492 fi 10493 fi 10494 10495 10496fi 10497 10498 10499 10500 10501 10502 10503 10504 CWARNFLAGS="$BASE_CFLAGS" 10505 if test "x$GCC" = xyes ; then 10506 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10507 fi 10508 10509 10510 10511 10512 10513 10514 10515 10516# Check whether --enable-strict-compilation was given. 10517if test ${enable_strict_compilation+y} 10518then : 10519 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10520else $as_nop 10521 STRICT_COMPILE=no 10522fi 10523 10524 10525 10526 10527 10528 10529STRICT_CFLAGS="" 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543xorg_testset_save_CFLAGS="$CFLAGS" 10544 10545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10548printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10549if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10550then : 10551 printf %s "(cached) " >&6 10552else $as_nop 10553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10554/* end confdefs.h. */ 10555int i; 10556_ACEOF 10557if ac_fn_c_try_compile "$LINENO" 10558then : 10559 xorg_cv_cc_flag_unknown_warning_option=yes 10560else $as_nop 10561 xorg_cv_cc_flag_unknown_warning_option=no 10562fi 10563rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10564fi 10565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10566printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10568 CFLAGS="$xorg_testset_save_CFLAGS" 10569fi 10570 10571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10574 fi 10575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10577printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10578if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10579then : 10580 printf %s "(cached) " >&6 10581else $as_nop 10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10583/* end confdefs.h. */ 10584int i; 10585_ACEOF 10586if ac_fn_c_try_compile "$LINENO" 10587then : 10588 xorg_cv_cc_flag_unused_command_line_argument=yes 10589else $as_nop 10590 xorg_cv_cc_flag_unused_command_line_argument=no 10591fi 10592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10593fi 10594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10596 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10597 CFLAGS="$xorg_testset_save_CFLAGS" 10598fi 10599 10600found="no" 10601 10602 if test $found = "no" ; then 10603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10605 fi 10606 10607 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10608 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10609 fi 10610 10611 CFLAGS="$CFLAGS -pedantic" 10612 10613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10614printf %s "checking if $CC supports -pedantic... " >&6; } 10615 cacheid=xorg_cv_cc_flag__pedantic 10616 if eval test \${$cacheid+y} 10617then : 10618 printf %s "(cached) " >&6 10619else $as_nop 10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10621/* end confdefs.h. */ 10622int i; 10623int 10624main (void) 10625{ 10626 10627 ; 10628 return 0; 10629} 10630_ACEOF 10631if ac_fn_c_try_link "$LINENO" 10632then : 10633 eval $cacheid=yes 10634else $as_nop 10635 eval $cacheid=no 10636fi 10637rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10638 conftest$ac_exeext conftest.$ac_ext 10639fi 10640 10641 10642 CFLAGS="$xorg_testset_save_CFLAGS" 10643 10644 eval supported=\$$cacheid 10645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10646printf "%s\n" "$supported" >&6; } 10647 if test "$supported" = "yes" ; then 10648 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10649 found="yes" 10650 fi 10651 fi 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667xorg_testset_save_CFLAGS="$CFLAGS" 10668 10669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10672printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10673if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10674then : 10675 printf %s "(cached) " >&6 10676else $as_nop 10677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10678/* end confdefs.h. */ 10679int i; 10680_ACEOF 10681if ac_fn_c_try_compile "$LINENO" 10682then : 10683 xorg_cv_cc_flag_unknown_warning_option=yes 10684else $as_nop 10685 xorg_cv_cc_flag_unknown_warning_option=no 10686fi 10687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 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 $as_nop 10706 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 $as_nop 10714 xorg_cv_cc_flag_unused_command_line_argument=no 10715fi 10716rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10717fi 10718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10719printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10721 CFLAGS="$xorg_testset_save_CFLAGS" 10722fi 10723 10724found="no" 10725 10726 if test $found = "no" ; then 10727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10728 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10729 fi 10730 10731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10733 fi 10734 10735 CFLAGS="$CFLAGS -Werror" 10736 10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10738printf %s "checking if $CC supports -Werror... " >&6; } 10739 cacheid=xorg_cv_cc_flag__Werror 10740 if eval test \${$cacheid+y} 10741then : 10742 printf %s "(cached) " >&6 10743else $as_nop 10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10745/* end confdefs.h. */ 10746int i; 10747int 10748main (void) 10749{ 10750 10751 ; 10752 return 0; 10753} 10754_ACEOF 10755if ac_fn_c_try_link "$LINENO" 10756then : 10757 eval $cacheid=yes 10758else $as_nop 10759 eval $cacheid=no 10760fi 10761rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10762 conftest$ac_exeext conftest.$ac_ext 10763fi 10764 10765 10766 CFLAGS="$xorg_testset_save_CFLAGS" 10767 10768 eval supported=\$$cacheid 10769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10770printf "%s\n" "$supported" >&6; } 10771 if test "$supported" = "yes" ; then 10772 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10773 found="yes" 10774 fi 10775 fi 10776 10777 if test $found = "no" ; then 10778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10779 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10780 fi 10781 10782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10784 fi 10785 10786 CFLAGS="$CFLAGS -errwarn" 10787 10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10789printf %s "checking if $CC supports -errwarn... " >&6; } 10790 cacheid=xorg_cv_cc_flag__errwarn 10791 if eval test \${$cacheid+y} 10792then : 10793 printf %s "(cached) " >&6 10794else $as_nop 10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10796/* end confdefs.h. */ 10797int i; 10798int 10799main (void) 10800{ 10801 10802 ; 10803 return 0; 10804} 10805_ACEOF 10806if ac_fn_c_try_link "$LINENO" 10807then : 10808 eval $cacheid=yes 10809else $as_nop 10810 eval $cacheid=no 10811fi 10812rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10813 conftest$ac_exeext conftest.$ac_ext 10814fi 10815 10816 10817 CFLAGS="$xorg_testset_save_CFLAGS" 10818 10819 eval supported=\$$cacheid 10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10821printf "%s\n" "$supported" >&6; } 10822 if test "$supported" = "yes" ; then 10823 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10824 found="yes" 10825 fi 10826 fi 10827 10828 10829 10830# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10831# activate it with -Werror, so we add it here explicitly. 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845xorg_testset_save_CFLAGS="$CFLAGS" 10846 10847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10848 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10850printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10851if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10852then : 10853 printf %s "(cached) " >&6 10854else $as_nop 10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10856/* end confdefs.h. */ 10857int i; 10858_ACEOF 10859if ac_fn_c_try_compile "$LINENO" 10860then : 10861 xorg_cv_cc_flag_unknown_warning_option=yes 10862else $as_nop 10863 xorg_cv_cc_flag_unknown_warning_option=no 10864fi 10865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10866fi 10867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10870 CFLAGS="$xorg_testset_save_CFLAGS" 10871fi 10872 10873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10875 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10876 fi 10877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10880if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10881then : 10882 printf %s "(cached) " >&6 10883else $as_nop 10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10885/* end confdefs.h. */ 10886int i; 10887_ACEOF 10888if ac_fn_c_try_compile "$LINENO" 10889then : 10890 xorg_cv_cc_flag_unused_command_line_argument=yes 10891else $as_nop 10892 xorg_cv_cc_flag_unused_command_line_argument=no 10893fi 10894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10895fi 10896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10897printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10899 CFLAGS="$xorg_testset_save_CFLAGS" 10900fi 10901 10902found="no" 10903 10904 if test $found = "no" ; then 10905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10907 fi 10908 10909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10911 fi 10912 10913 CFLAGS="$CFLAGS -Werror=attributes" 10914 10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10916printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10917 cacheid=xorg_cv_cc_flag__Werror_attributes 10918 if eval test \${$cacheid+y} 10919then : 10920 printf %s "(cached) " >&6 10921else $as_nop 10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10923/* end confdefs.h. */ 10924int i; 10925int 10926main (void) 10927{ 10928 10929 ; 10930 return 0; 10931} 10932_ACEOF 10933if ac_fn_c_try_link "$LINENO" 10934then : 10935 eval $cacheid=yes 10936else $as_nop 10937 eval $cacheid=no 10938fi 10939rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10940 conftest$ac_exeext conftest.$ac_ext 10941fi 10942 10943 10944 CFLAGS="$xorg_testset_save_CFLAGS" 10945 10946 eval supported=\$$cacheid 10947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10948printf "%s\n" "$supported" >&6; } 10949 if test "$supported" = "yes" ; then 10950 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10951 found="yes" 10952 fi 10953 fi 10954 10955 10956 10957if test "x$STRICT_COMPILE" = "xyes"; then 10958 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10959 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10960fi 10961 10962 10963 10964 10965 10966 10967 10968 10969cat >>confdefs.h <<_ACEOF 10970#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10971_ACEOF 10972 10973 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10974 if test "x$PVM" = "x"; then 10975 PVM="0" 10976 fi 10977 10978printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10979 10980 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10981 if test "x$PVP" = "x"; then 10982 PVP="0" 10983 fi 10984 10985printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10986 10987 10988 10989CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 10990mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10991|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 10992touch \$(top_srcdir)/ChangeLog; \ 10993echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 10994 10995 10996 10997 10998macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10999INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11000mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11001|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 11002touch \$(top_srcdir)/INSTALL; \ 11003echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 11004 11005 11006 11007 11008 11009 11010case $host_os in 11011 solaris*) 11012 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 11013 # check for a man page file found in later versions that use 11014 # traditional section numbers instead 11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 11016printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 11017if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 11018then : 11019 printf %s "(cached) " >&6 11020else $as_nop 11021 test "$cross_compiling" = yes && 11022 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 11023if test -r "/usr/share/man/man7/attributes.7"; then 11024 ac_cv_file__usr_share_man_man7_attributes_7=yes 11025else 11026 ac_cv_file__usr_share_man_man7_attributes_7=no 11027fi 11028fi 11029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 11030printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 11031if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 11032then : 11033 SYSV_MAN_SECTIONS=false 11034else $as_nop 11035 SYSV_MAN_SECTIONS=true 11036fi 11037 11038 ;; 11039 *) SYSV_MAN_SECTIONS=false ;; 11040esac 11041 11042if test x$APP_MAN_SUFFIX = x ; then 11043 APP_MAN_SUFFIX=1 11044fi 11045if test x$APP_MAN_DIR = x ; then 11046 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11047fi 11048 11049if test x$LIB_MAN_SUFFIX = x ; then 11050 LIB_MAN_SUFFIX=3 11051fi 11052if test x$LIB_MAN_DIR = x ; then 11053 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11054fi 11055 11056if test x$FILE_MAN_SUFFIX = x ; then 11057 case $SYSV_MAN_SECTIONS in 11058 true) FILE_MAN_SUFFIX=4 ;; 11059 *) FILE_MAN_SUFFIX=5 ;; 11060 esac 11061fi 11062if test x$FILE_MAN_DIR = x ; then 11063 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11064fi 11065 11066if test x$MISC_MAN_SUFFIX = x ; then 11067 case $SYSV_MAN_SECTIONS in 11068 true) MISC_MAN_SUFFIX=5 ;; 11069 *) MISC_MAN_SUFFIX=7 ;; 11070 esac 11071fi 11072if test x$MISC_MAN_DIR = x ; then 11073 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11074fi 11075 11076if test x$DRIVER_MAN_SUFFIX = x ; then 11077 case $SYSV_MAN_SECTIONS in 11078 true) DRIVER_MAN_SUFFIX=7 ;; 11079 *) DRIVER_MAN_SUFFIX=4 ;; 11080 esac 11081fi 11082if test x$DRIVER_MAN_DIR = x ; then 11083 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11084fi 11085 11086if test x$ADMIN_MAN_SUFFIX = x ; then 11087 case $SYSV_MAN_SECTIONS in 11088 true) ADMIN_MAN_SUFFIX=1m ;; 11089 *) ADMIN_MAN_SUFFIX=8 ;; 11090 esac 11091fi 11092if test x$ADMIN_MAN_DIR = x ; then 11093 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11094fi 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110XORG_MAN_PAGE="X Version 11" 11111 11112MAN_SUBSTS="\ 11113 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11114 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11115 -e 's|__xservername__|Xorg|g' \ 11116 -e 's|__xconfigfile__|xorg.conf|g' \ 11117 -e 's|__projectroot__|\$(prefix)|g' \ 11118 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11119 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11120 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11121 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11122 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11123 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11124 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11125 11126 11127 11128# Check whether --enable-silent-rules was given. 11129if test ${enable_silent_rules+y} 11130then : 11131 enableval=$enable_silent_rules; 11132fi 11133 11134case $enable_silent_rules in # ((( 11135 yes) AM_DEFAULT_VERBOSITY=0;; 11136 no) AM_DEFAULT_VERBOSITY=1;; 11137 *) AM_DEFAULT_VERBOSITY=0;; 11138esac 11139am_make=${MAKE-make} 11140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11141printf %s "checking whether $am_make supports nested variables... " >&6; } 11142if test ${am_cv_make_support_nested_variables+y} 11143then : 11144 printf %s "(cached) " >&6 11145else $as_nop 11146 if printf "%s\n" 'TRUE=$(BAR$(V)) 11147BAR0=false 11148BAR1=true 11149V=1 11150am__doit: 11151 @$(TRUE) 11152.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11153 am_cv_make_support_nested_variables=yes 11154else 11155 am_cv_make_support_nested_variables=no 11156fi 11157fi 11158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11159printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 11160if test $am_cv_make_support_nested_variables = yes; then 11161 AM_V='$(V)' 11162 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11163else 11164 AM_V=$AM_DEFAULT_VERBOSITY 11165 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11166fi 11167AM_BACKSLASH='\' 11168 11169 11170 11171 11172ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 11173if test "x$ac_cv_func_strlcpy" = xyes 11174then : 11175 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 11176 11177fi 11178 11179 11180# Checks for pkg-config packages 11181 11182pkg_failed=no 11183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCALC" >&5 11184printf %s "checking for XCALC... " >&6; } 11185 11186if test -n "$XCALC_CFLAGS"; then 11187 pkg_cv_XCALC_CFLAGS="$XCALC_CFLAGS" 11188 elif test -n "$PKG_CONFIG"; then 11189 if test -n "$PKG_CONFIG" && \ 11190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5 11191 ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5 11192 ac_status=$? 11193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11194 test $ac_status = 0; }; then 11195 pkg_cv_XCALC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null` 11196 test "x$?" != "x0" && pkg_failed=yes 11197else 11198 pkg_failed=yes 11199fi 11200 else 11201 pkg_failed=untried 11202fi 11203if test -n "$XCALC_LIBS"; then 11204 pkg_cv_XCALC_LIBS="$XCALC_LIBS" 11205 elif test -n "$PKG_CONFIG"; then 11206 if test -n "$PKG_CONFIG" && \ 11207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt x11 xproto >= 7.0.17\""; } >&5 11208 ($PKG_CONFIG --exists --print-errors "xaw7 xt x11 xproto >= 7.0.17") 2>&5 11209 ac_status=$? 11210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11211 test $ac_status = 0; }; then 11212 pkg_cv_XCALC_LIBS=`$PKG_CONFIG --libs "xaw7 xt x11 xproto >= 7.0.17" 2>/dev/null` 11213 test "x$?" != "x0" && pkg_failed=yes 11214else 11215 pkg_failed=yes 11216fi 11217 else 11218 pkg_failed=untried 11219fi 11220 11221 11222 11223if test $pkg_failed = yes; then 11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11225printf "%s\n" "no" >&6; } 11226 11227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11228 _pkg_short_errors_supported=yes 11229else 11230 _pkg_short_errors_supported=no 11231fi 11232 if test $_pkg_short_errors_supported = yes; then 11233 XCALC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xt x11 xproto >= 7.0.17" 2>&1` 11234 else 11235 XCALC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xt x11 xproto >= 7.0.17" 2>&1` 11236 fi 11237 # Put the nasty error message in config.log where it belongs 11238 echo "$XCALC_PKG_ERRORS" >&5 11239 11240 as_fn_error $? "Package requirements (xaw7 xt x11 xproto >= 7.0.17) were not met: 11241 11242$XCALC_PKG_ERRORS 11243 11244Consider adjusting the PKG_CONFIG_PATH environment variable if you 11245installed software in a non-standard prefix. 11246 11247Alternatively, you may set the environment variables XCALC_CFLAGS 11248and XCALC_LIBS to avoid the need to call pkg-config. 11249See the pkg-config man page for more details." "$LINENO" 5 11250elif test $pkg_failed = untried; then 11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11252printf "%s\n" "no" >&6; } 11253 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11254printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11255as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11256is in your PATH or set the PKG_CONFIG environment variable to the full 11257path to pkg-config. 11258 11259Alternatively, you may set the environment variables XCALC_CFLAGS 11260and XCALC_LIBS to avoid the need to call pkg-config. 11261See the pkg-config man page for more details. 11262 11263To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11264See \`config.log' for more details" "$LINENO" 5; } 11265else 11266 XCALC_CFLAGS=$pkg_cv_XCALC_CFLAGS 11267 XCALC_LIBS=$pkg_cv_XCALC_LIBS 11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11269printf "%s\n" "yes" >&6; } 11270 11271fi 11272 11273 11274pkg_failed=no 11275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5 11276printf %s "checking for APPDEFS... " >&6; } 11277 11278if test -n "$APPDEFS_CFLAGS"; then 11279 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 11280 elif test -n "$PKG_CONFIG"; then 11281 if test -n "$PKG_CONFIG" && \ 11282 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11283 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11284 ac_status=$? 11285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11286 test $ac_status = 0; }; then 11287 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 11288 test "x$?" != "x0" && pkg_failed=yes 11289else 11290 pkg_failed=yes 11291fi 11292 else 11293 pkg_failed=untried 11294fi 11295if test -n "$APPDEFS_LIBS"; then 11296 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 11297 elif test -n "$PKG_CONFIG"; then 11298 if test -n "$PKG_CONFIG" && \ 11299 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 11300 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 11301 ac_status=$? 11302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11303 test $ac_status = 0; }; then 11304 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 11305 test "x$?" != "x0" && pkg_failed=yes 11306else 11307 pkg_failed=yes 11308fi 11309 else 11310 pkg_failed=untried 11311fi 11312 11313 11314 11315if test $pkg_failed = yes; then 11316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11317printf "%s\n" "no" >&6; } 11318 11319if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11320 _pkg_short_errors_supported=yes 11321else 11322 _pkg_short_errors_supported=no 11323fi 11324 if test $_pkg_short_errors_supported = yes; then 11325 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1` 11326 else 11327 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1` 11328 fi 11329 # Put the nasty error message in config.log where it belongs 11330 echo "$APPDEFS_PKG_ERRORS" >&5 11331 11332 as_fn_error $? "Package requirements (xt) were not met: 11333 11334$APPDEFS_PKG_ERRORS 11335 11336Consider adjusting the PKG_CONFIG_PATH environment variable if you 11337installed software in a non-standard prefix. 11338 11339Alternatively, you may set the environment variables APPDEFS_CFLAGS 11340and APPDEFS_LIBS to avoid the need to call pkg-config. 11341See the pkg-config man page for more details." "$LINENO" 5 11342elif test $pkg_failed = untried; then 11343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11344printf "%s\n" "no" >&6; } 11345 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11346printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11347as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11348is in your PATH or set the PKG_CONFIG environment variable to the full 11349path to pkg-config. 11350 11351Alternatively, you may set the environment variables APPDEFS_CFLAGS 11352and APPDEFS_LIBS to avoid the need to call pkg-config. 11353See the pkg-config man page for more details. 11354 11355To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11356See \`config.log' for more details" "$LINENO" 5; } 11357else 11358 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 11359 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 11360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11361printf "%s\n" "yes" >&6; } 11362 11363fi 11364xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 11365 11366# Check whether --with-appdefaultdir was given. 11367if test ${with_appdefaultdir+y} 11368then : 11369 withval=$with_appdefaultdir; appdefaultdir="$withval" 11370else $as_nop 11371 appdefaultdir="${xt_appdefaultdir}" 11372fi 11373 11374 11375 11376 11377ac_config_files="$ac_config_files Makefile man/Makefile" 11378 11379cat >confcache <<\_ACEOF 11380# This file is a shell script that caches the results of configure 11381# tests run on this system so they can be shared between configure 11382# scripts and configure runs, see configure's option --config-cache. 11383# It is not useful on other systems. If it contains results you don't 11384# want to keep, you may remove or edit it. 11385# 11386# config.status only pays attention to the cache file if you give it 11387# the --recheck option to rerun configure. 11388# 11389# `ac_cv_env_foo' variables (set or unset) will be overridden when 11390# loading this file, other *unset* `ac_cv_foo' will be assigned the 11391# following values. 11392 11393_ACEOF 11394 11395# The following way of writing the cache mishandles newlines in values, 11396# but we know of no workaround that is simple, portable, and efficient. 11397# So, we kill variables containing newlines. 11398# Ultrix sh set writes to stderr and can't be redirected directly, 11399# and sets the high bit in the cache file unless we assign to the vars. 11400( 11401 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11402 eval ac_val=\$$ac_var 11403 case $ac_val in #( 11404 *${as_nl}*) 11405 case $ac_var in #( 11406 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11407printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11408 esac 11409 case $ac_var in #( 11410 _ | IFS | as_nl) ;; #( 11411 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11412 *) { eval $ac_var=; unset $ac_var;} ;; 11413 esac ;; 11414 esac 11415 done 11416 11417 (set) 2>&1 | 11418 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11419 *${as_nl}ac_space=\ *) 11420 # `set' does not quote correctly, so add quotes: double-quote 11421 # substitution turns \\\\ into \\, and sed turns \\ into \. 11422 sed -n \ 11423 "s/'/'\\\\''/g; 11424 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11425 ;; #( 11426 *) 11427 # `set' quotes correctly as required by POSIX, so do not add quotes. 11428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11429 ;; 11430 esac | 11431 sort 11432) | 11433 sed ' 11434 /^ac_cv_env_/b end 11435 t clear 11436 :clear 11437 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 11438 t end 11439 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11440 :end' >>confcache 11441if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11442 if test -w "$cache_file"; then 11443 if test "x$cache_file" != "x/dev/null"; then 11444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11445printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 11446 if test ! -f "$cache_file" || test -h "$cache_file"; then 11447 cat confcache >"$cache_file" 11448 else 11449 case $cache_file in #( 11450 */* | ?:*) 11451 mv -f confcache "$cache_file"$$ && 11452 mv -f "$cache_file"$$ "$cache_file" ;; #( 11453 *) 11454 mv -f confcache "$cache_file" ;; 11455 esac 11456 fi 11457 fi 11458 else 11459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11460printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 11461 fi 11462fi 11463rm -f confcache 11464 11465test "x$prefix" = xNONE && prefix=$ac_default_prefix 11466# Let make expand exec_prefix. 11467test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11468 11469DEFS=-DHAVE_CONFIG_H 11470 11471ac_libobjs= 11472ac_ltlibobjs= 11473U= 11474for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11475 # 1. Remove the extension, and $U if already installed. 11476 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11477 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 11478 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11479 # will be set to the directory where LIBOBJS objects are built. 11480 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11481 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11482done 11483LIBOBJS=$ac_libobjs 11484 11485LTLIBOBJS=$ac_ltlibobjs 11486 11487 11488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11489printf %s "checking that generated files are newer than configure... " >&6; } 11490 if test -n "$am_sleep_pid"; then 11491 # Hide warnings about reused PIDs. 11492 wait $am_sleep_pid 2>/dev/null 11493 fi 11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11495printf "%s\n" "done" >&6; } 11496 if test -n "$EXEEXT"; then 11497 am__EXEEXT_TRUE= 11498 am__EXEEXT_FALSE='#' 11499else 11500 am__EXEEXT_TRUE='#' 11501 am__EXEEXT_FALSE= 11502fi 11503 11504if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11505 as_fn_error $? "conditional \"AMDEP\" was never defined. 11506Usually this means the macro was only invoked conditionally." "$LINENO" 5 11507fi 11508if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11509 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11510Usually this means the macro was only invoked conditionally." "$LINENO" 5 11511fi 11512 11513: "${CONFIG_STATUS=./config.status}" 11514ac_write_fail=0 11515ac_clean_files_save=$ac_clean_files 11516ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11518printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 11519as_write_fail=0 11520cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11521#! $SHELL 11522# Generated by $as_me. 11523# Run this file to recreate the current configuration. 11524# Compiler output produced by configure, useful for debugging 11525# configure, is in config.log if it exists. 11526 11527debug=false 11528ac_cs_recheck=false 11529ac_cs_silent=false 11530 11531SHELL=\${CONFIG_SHELL-$SHELL} 11532export SHELL 11533_ASEOF 11534cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11535## -------------------- ## 11536## M4sh Initialization. ## 11537## -------------------- ## 11538 11539# Be more Bourne compatible 11540DUALCASE=1; export DUALCASE # for MKS sh 11541as_nop=: 11542if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11543then : 11544 emulate sh 11545 NULLCMD=: 11546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11547 # is contrary to our usage. Disable this feature. 11548 alias -g '${1+"$@"}'='"$@"' 11549 setopt NO_GLOB_SUBST 11550else $as_nop 11551 case `(set -o) 2>/dev/null` in #( 11552 *posix*) : 11553 set -o posix ;; #( 11554 *) : 11555 ;; 11556esac 11557fi 11558 11559 11560 11561# Reset variables that may have inherited troublesome values from 11562# the environment. 11563 11564# IFS needs to be set, to space, tab, and newline, in precisely that order. 11565# (If _AS_PATH_WALK were called with IFS unset, it would have the 11566# side effect of setting IFS to empty, thus disabling word splitting.) 11567# Quoting is to prevent editors from complaining about space-tab. 11568as_nl=' 11569' 11570export as_nl 11571IFS=" "" $as_nl" 11572 11573PS1='$ ' 11574PS2='> ' 11575PS4='+ ' 11576 11577# Ensure predictable behavior from utilities with locale-dependent output. 11578LC_ALL=C 11579export LC_ALL 11580LANGUAGE=C 11581export LANGUAGE 11582 11583# We cannot yet rely on "unset" to work, but we need these variables 11584# to be unset--not just set to an empty or harmless value--now, to 11585# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11586# also avoids known problems related to "unset" and subshell syntax 11587# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11588for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11589do eval test \${$as_var+y} \ 11590 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11591done 11592 11593# Ensure that fds 0, 1, and 2 are open. 11594if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11595if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11596if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 11597 11598# The user is always right. 11599if ${PATH_SEPARATOR+false} :; then 11600 PATH_SEPARATOR=: 11601 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11602 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11603 PATH_SEPARATOR=';' 11604 } 11605fi 11606 11607 11608# Find who we are. Look in the path if we contain no directory separator. 11609as_myself= 11610case $0 in #(( 11611 *[\\/]* ) as_myself=$0 ;; 11612 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11613for as_dir in $PATH 11614do 11615 IFS=$as_save_IFS 11616 case $as_dir in #((( 11617 '') as_dir=./ ;; 11618 */) ;; 11619 *) as_dir=$as_dir/ ;; 11620 esac 11621 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 11622 done 11623IFS=$as_save_IFS 11624 11625 ;; 11626esac 11627# We did not find ourselves, most probably we were run as `sh COMMAND' 11628# in which case we are not to be found in the path. 11629if test "x$as_myself" = x; then 11630 as_myself=$0 11631fi 11632if test ! -f "$as_myself"; then 11633 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11634 exit 1 11635fi 11636 11637 11638 11639# as_fn_error STATUS ERROR [LINENO LOG_FD] 11640# ---------------------------------------- 11641# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11642# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11643# script with STATUS, using 1 if that was 0. 11644as_fn_error () 11645{ 11646 as_status=$1; test $as_status -eq 0 && as_status=1 11647 if test "$4"; then 11648 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11650 fi 11651 printf "%s\n" "$as_me: error: $2" >&2 11652 as_fn_exit $as_status 11653} # as_fn_error 11654 11655 11656 11657# as_fn_set_status STATUS 11658# ----------------------- 11659# Set $? to STATUS, without forking. 11660as_fn_set_status () 11661{ 11662 return $1 11663} # as_fn_set_status 11664 11665# as_fn_exit STATUS 11666# ----------------- 11667# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11668as_fn_exit () 11669{ 11670 set +e 11671 as_fn_set_status $1 11672 exit $1 11673} # as_fn_exit 11674 11675# as_fn_unset VAR 11676# --------------- 11677# Portably unset VAR. 11678as_fn_unset () 11679{ 11680 { eval $1=; unset $1;} 11681} 11682as_unset=as_fn_unset 11683 11684# as_fn_append VAR VALUE 11685# ---------------------- 11686# Append the text in VALUE to the end of the definition contained in VAR. Take 11687# advantage of any shell optimizations that allow amortized linear growth over 11688# repeated appends, instead of the typical quadratic growth present in naive 11689# implementations. 11690if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11691then : 11692 eval 'as_fn_append () 11693 { 11694 eval $1+=\$2 11695 }' 11696else $as_nop 11697 as_fn_append () 11698 { 11699 eval $1=\$$1\$2 11700 } 11701fi # as_fn_append 11702 11703# as_fn_arith ARG... 11704# ------------------ 11705# Perform arithmetic evaluation on the ARGs, and store the result in the 11706# global $as_val. Take advantage of shells that can avoid forks. The arguments 11707# must be portable across $(()) and expr. 11708if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11709then : 11710 eval 'as_fn_arith () 11711 { 11712 as_val=$(( $* )) 11713 }' 11714else $as_nop 11715 as_fn_arith () 11716 { 11717 as_val=`expr "$@" || test $? -eq 1` 11718 } 11719fi # as_fn_arith 11720 11721 11722if expr a : '\(a\)' >/dev/null 2>&1 && 11723 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11724 as_expr=expr 11725else 11726 as_expr=false 11727fi 11728 11729if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11730 as_basename=basename 11731else 11732 as_basename=false 11733fi 11734 11735if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11736 as_dirname=dirname 11737else 11738 as_dirname=false 11739fi 11740 11741as_me=`$as_basename -- "$0" || 11742$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11743 X"$0" : 'X\(//\)$' \| \ 11744 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11745printf "%s\n" X/"$0" | 11746 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11747 s//\1/ 11748 q 11749 } 11750 /^X\/\(\/\/\)$/{ 11751 s//\1/ 11752 q 11753 } 11754 /^X\/\(\/\).*/{ 11755 s//\1/ 11756 q 11757 } 11758 s/.*/./; q'` 11759 11760# Avoid depending upon Character Ranges. 11761as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11762as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11763as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11764as_cr_digits='0123456789' 11765as_cr_alnum=$as_cr_Letters$as_cr_digits 11766 11767 11768# Determine whether it's possible to make 'echo' print without a newline. 11769# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11770# for compatibility with existing Makefiles. 11771ECHO_C= ECHO_N= ECHO_T= 11772case `echo -n x` in #((((( 11773-n*) 11774 case `echo 'xy\c'` in 11775 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11776 xy) ECHO_C='\c';; 11777 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11778 ECHO_T=' ';; 11779 esac;; 11780*) 11781 ECHO_N='-n';; 11782esac 11783 11784# For backward compatibility with old third-party macros, we provide 11785# the shell variables $as_echo and $as_echo_n. New code should use 11786# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11787as_echo='printf %s\n' 11788as_echo_n='printf %s' 11789 11790rm -f conf$$ conf$$.exe conf$$.file 11791if test -d conf$$.dir; then 11792 rm -f conf$$.dir/conf$$.file 11793else 11794 rm -f conf$$.dir 11795 mkdir conf$$.dir 2>/dev/null 11796fi 11797if (echo >conf$$.file) 2>/dev/null; then 11798 if ln -s conf$$.file conf$$ 2>/dev/null; then 11799 as_ln_s='ln -s' 11800 # ... but there are two gotchas: 11801 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11802 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11803 # In both cases, we have to default to `cp -pR'. 11804 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11805 as_ln_s='cp -pR' 11806 elif ln conf$$.file conf$$ 2>/dev/null; then 11807 as_ln_s=ln 11808 else 11809 as_ln_s='cp -pR' 11810 fi 11811else 11812 as_ln_s='cp -pR' 11813fi 11814rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11815rmdir conf$$.dir 2>/dev/null 11816 11817 11818# as_fn_mkdir_p 11819# ------------- 11820# Create "$as_dir" as a directory, including parents if necessary. 11821as_fn_mkdir_p () 11822{ 11823 11824 case $as_dir in #( 11825 -*) as_dir=./$as_dir;; 11826 esac 11827 test -d "$as_dir" || eval $as_mkdir_p || { 11828 as_dirs= 11829 while :; do 11830 case $as_dir in #( 11831 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11832 *) as_qdir=$as_dir;; 11833 esac 11834 as_dirs="'$as_qdir' $as_dirs" 11835 as_dir=`$as_dirname -- "$as_dir" || 11836$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11837 X"$as_dir" : 'X\(//\)[^/]' \| \ 11838 X"$as_dir" : 'X\(//\)$' \| \ 11839 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11840printf "%s\n" X"$as_dir" | 11841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11842 s//\1/ 11843 q 11844 } 11845 /^X\(\/\/\)[^/].*/{ 11846 s//\1/ 11847 q 11848 } 11849 /^X\(\/\/\)$/{ 11850 s//\1/ 11851 q 11852 } 11853 /^X\(\/\).*/{ 11854 s//\1/ 11855 q 11856 } 11857 s/.*/./; q'` 11858 test -d "$as_dir" && break 11859 done 11860 test -z "$as_dirs" || eval "mkdir $as_dirs" 11861 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11862 11863 11864} # as_fn_mkdir_p 11865if mkdir -p . 2>/dev/null; then 11866 as_mkdir_p='mkdir -p "$as_dir"' 11867else 11868 test -d ./-p && rmdir ./-p 11869 as_mkdir_p=false 11870fi 11871 11872 11873# as_fn_executable_p FILE 11874# ----------------------- 11875# Test if FILE is an executable regular file. 11876as_fn_executable_p () 11877{ 11878 test -f "$1" && test -x "$1" 11879} # as_fn_executable_p 11880as_test_x='test -x' 11881as_executable_p=as_fn_executable_p 11882 11883# Sed expression to map a string onto a valid CPP name. 11884as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11885 11886# Sed expression to map a string onto a valid variable name. 11887as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11888 11889 11890exec 6>&1 11891## ----------------------------------- ## 11892## Main body of $CONFIG_STATUS script. ## 11893## ----------------------------------- ## 11894_ASEOF 11895test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11896 11897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11898# Save the log message, to keep $0 and so on meaningful, and to 11899# report actual input values of CONFIG_FILES etc. instead of their 11900# values after options handling. 11901ac_log=" 11902This file was extended by xcalc $as_me 1.1.2, which was 11903generated by GNU Autoconf 2.71. Invocation command line was 11904 11905 CONFIG_FILES = $CONFIG_FILES 11906 CONFIG_HEADERS = $CONFIG_HEADERS 11907 CONFIG_LINKS = $CONFIG_LINKS 11908 CONFIG_COMMANDS = $CONFIG_COMMANDS 11909 $ $0 $@ 11910 11911on `(hostname || uname -n) 2>/dev/null | sed 1q` 11912" 11913 11914_ACEOF 11915 11916case $ac_config_files in *" 11917"*) set x $ac_config_files; shift; ac_config_files=$*;; 11918esac 11919 11920case $ac_config_headers in *" 11921"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11922esac 11923 11924 11925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11926# Files that config.status was made for. 11927config_files="$ac_config_files" 11928config_headers="$ac_config_headers" 11929config_commands="$ac_config_commands" 11930 11931_ACEOF 11932 11933cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11934ac_cs_usage="\ 11935\`$as_me' instantiates files and other configuration actions 11936from templates according to the current configuration. Unless the files 11937and actions are specified as TAGs, all are instantiated by default. 11938 11939Usage: $0 [OPTION]... [TAG]... 11940 11941 -h, --help print this help, then exit 11942 -V, --version print version number and configuration settings, then exit 11943 --config print configuration, then exit 11944 -q, --quiet, --silent 11945 do not print progress messages 11946 -d, --debug don't remove temporary files 11947 --recheck update $as_me by reconfiguring in the same conditions 11948 --file=FILE[:TEMPLATE] 11949 instantiate the configuration file FILE 11950 --header=FILE[:TEMPLATE] 11951 instantiate the configuration header FILE 11952 11953Configuration files: 11954$config_files 11955 11956Configuration headers: 11957$config_headers 11958 11959Configuration commands: 11960$config_commands 11961 11962Report bugs to <https://gitlab.freedesktop.org/xorg/app/xcalc/-/issues>." 11963 11964_ACEOF 11965ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11966ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11968ac_cs_config='$ac_cs_config_escaped' 11969ac_cs_version="\\ 11970xcalc config.status 1.1.2 11971configured by $0, generated by GNU Autoconf 2.71, 11972 with options \\"\$ac_cs_config\\" 11973 11974Copyright (C) 2021 Free Software Foundation, Inc. 11975This config.status script is free software; the Free Software Foundation 11976gives unlimited permission to copy, distribute and modify it." 11977 11978ac_pwd='$ac_pwd' 11979srcdir='$srcdir' 11980INSTALL='$INSTALL' 11981MKDIR_P='$MKDIR_P' 11982AWK='$AWK' 11983test -n "\$AWK" || AWK=awk 11984_ACEOF 11985 11986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11987# The default lists apply if the user does not specify any file. 11988ac_need_defaults=: 11989while test $# != 0 11990do 11991 case $1 in 11992 --*=?*) 11993 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11994 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11995 ac_shift=: 11996 ;; 11997 --*=) 11998 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11999 ac_optarg= 12000 ac_shift=: 12001 ;; 12002 *) 12003 ac_option=$1 12004 ac_optarg=$2 12005 ac_shift=shift 12006 ;; 12007 esac 12008 12009 case $ac_option in 12010 # Handling of the options. 12011 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12012 ac_cs_recheck=: ;; 12013 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12014 printf "%s\n" "$ac_cs_version"; exit ;; 12015 --config | --confi | --conf | --con | --co | --c ) 12016 printf "%s\n" "$ac_cs_config"; exit ;; 12017 --debug | --debu | --deb | --de | --d | -d ) 12018 debug=: ;; 12019 --file | --fil | --fi | --f ) 12020 $ac_shift 12021 case $ac_optarg in 12022 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12023 '') as_fn_error $? "missing file argument" ;; 12024 esac 12025 as_fn_append CONFIG_FILES " '$ac_optarg'" 12026 ac_need_defaults=false;; 12027 --header | --heade | --head | --hea ) 12028 $ac_shift 12029 case $ac_optarg in 12030 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12031 esac 12032 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12033 ac_need_defaults=false;; 12034 --he | --h) 12035 # Conflict between --help and --header 12036 as_fn_error $? "ambiguous option: \`$1' 12037Try \`$0 --help' for more information.";; 12038 --help | --hel | -h ) 12039 printf "%s\n" "$ac_cs_usage"; exit ;; 12040 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12041 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12042 ac_cs_silent=: ;; 12043 12044 # This is an error. 12045 -*) as_fn_error $? "unrecognized option: \`$1' 12046Try \`$0 --help' for more information." ;; 12047 12048 *) as_fn_append ac_config_targets " $1" 12049 ac_need_defaults=false ;; 12050 12051 esac 12052 shift 12053done 12054 12055ac_configure_extra_args= 12056 12057if $ac_cs_silent; then 12058 exec 6>/dev/null 12059 ac_configure_extra_args="$ac_configure_extra_args --silent" 12060fi 12061 12062_ACEOF 12063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12064if \$ac_cs_recheck; then 12065 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12066 shift 12067 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 12068 CONFIG_SHELL='$SHELL' 12069 export CONFIG_SHELL 12070 exec "\$@" 12071fi 12072 12073_ACEOF 12074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12075exec 5>>config.log 12076{ 12077 echo 12078 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12079## Running $as_me. ## 12080_ASBOX 12081 printf "%s\n" "$ac_log" 12082} >&5 12083 12084_ACEOF 12085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12086# 12087# INIT-COMMANDS 12088# 12089AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 12090 12091_ACEOF 12092 12093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12094 12095# Handling of arguments. 12096for ac_config_target in $ac_config_targets 12097do 12098 case $ac_config_target in 12099 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12100 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12101 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12102 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12103 12104 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12105 esac 12106done 12107 12108 12109# If the user did not use the arguments to specify the items to instantiate, 12110# then the envvar interface is used. Set only those that are not. 12111# We use the long form for the default assignment because of an extremely 12112# bizarre bug on SunOS 4.1.3. 12113if $ac_need_defaults; then 12114 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 12115 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 12116 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 12117fi 12118 12119# Have a temporary directory for convenience. Make it in the build tree 12120# simply because there is no reason against having it here, and in addition, 12121# creating and moving files from /tmp can sometimes cause problems. 12122# Hook for its removal unless debugging. 12123# Note that there is a small window in which the directory will not be cleaned: 12124# after its creation but before its name has been assigned to `$tmp'. 12125$debug || 12126{ 12127 tmp= ac_tmp= 12128 trap 'exit_status=$? 12129 : "${ac_tmp:=$tmp}" 12130 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12131' 0 12132 trap 'as_fn_exit 1' 1 2 13 15 12133} 12134# Create a (secure) tmp directory for tmp files. 12135 12136{ 12137 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12138 test -d "$tmp" 12139} || 12140{ 12141 tmp=./conf$$-$RANDOM 12142 (umask 077 && mkdir "$tmp") 12143} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12144ac_tmp=$tmp 12145 12146# Set up the scripts for CONFIG_FILES section. 12147# No need to generate them if there are no CONFIG_FILES. 12148# This happens for instance with `./config.status config.h'. 12149if test -n "$CONFIG_FILES"; then 12150 12151 12152ac_cr=`echo X | tr X '\015'` 12153# On cygwin, bash can eat \r inside `` if the user requested igncr. 12154# But we know of no other shell where ac_cr would be empty at this 12155# point, so we can use a bashism as a fallback. 12156if test "x$ac_cr" = x; then 12157 eval ac_cr=\$\'\\r\' 12158fi 12159ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12160if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12161 ac_cs_awk_cr='\\r' 12162else 12163 ac_cs_awk_cr=$ac_cr 12164fi 12165 12166echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12167_ACEOF 12168 12169 12170{ 12171 echo "cat >conf$$subs.awk <<_ACEOF" && 12172 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12173 echo "_ACEOF" 12174} >conf$$subs.sh || 12175 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12176ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12177ac_delim='%!_!# ' 12178for ac_last_try in false false false false false :; do 12179 . ./conf$$subs.sh || 12180 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12181 12182 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12183 if test $ac_delim_n = $ac_delim_num; then 12184 break 12185 elif $ac_last_try; then 12186 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12187 else 12188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12189 fi 12190done 12191rm -f conf$$subs.sh 12192 12193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12194cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12195_ACEOF 12196sed -n ' 12197h 12198s/^/S["/; s/!.*/"]=/ 12199p 12200g 12201s/^[^!]*!// 12202:repl 12203t repl 12204s/'"$ac_delim"'$// 12205t delim 12206:nl 12207h 12208s/\(.\{148\}\)..*/\1/ 12209t more1 12210s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12211p 12212n 12213b repl 12214:more1 12215s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12216p 12217g 12218s/.\{148\}// 12219t nl 12220:delim 12221h 12222s/\(.\{148\}\)..*/\1/ 12223t more2 12224s/["\\]/\\&/g; s/^/"/; s/$/"/ 12225p 12226b 12227:more2 12228s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12229p 12230g 12231s/.\{148\}// 12232t delim 12233' <conf$$subs.awk | sed ' 12234/^[^""]/{ 12235 N 12236 s/\n// 12237} 12238' >>$CONFIG_STATUS || ac_write_fail=1 12239rm -f conf$$subs.awk 12240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12241_ACAWK 12242cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12243 for (key in S) S_is_set[key] = 1 12244 FS = "" 12245 12246} 12247{ 12248 line = $ 0 12249 nfields = split(line, field, "@") 12250 substed = 0 12251 len = length(field[1]) 12252 for (i = 2; i < nfields; i++) { 12253 key = field[i] 12254 keylen = length(key) 12255 if (S_is_set[key]) { 12256 value = S[key] 12257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12258 len += length(value) + length(field[++i]) 12259 substed = 1 12260 } else 12261 len += 1 + keylen 12262 } 12263 12264 print line 12265} 12266 12267_ACAWK 12268_ACEOF 12269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12270if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12271 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12272else 12273 cat 12274fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12275 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12276_ACEOF 12277 12278# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12279# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12280# trailing colons and then remove the whole line if VPATH becomes empty 12281# (actually we leave an empty line to preserve line numbers). 12282if test "x$srcdir" = x.; then 12283 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12284h 12285s/// 12286s/^/:/ 12287s/[ ]*$/:/ 12288s/:\$(srcdir):/:/g 12289s/:\${srcdir}:/:/g 12290s/:@srcdir@:/:/g 12291s/^:*// 12292s/:*$// 12293x 12294s/\(=[ ]*\).*/\1/ 12295G 12296s/\n// 12297s/^[^=]*=[ ]*$// 12298}' 12299fi 12300 12301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12302fi # test -n "$CONFIG_FILES" 12303 12304# Set up the scripts for CONFIG_HEADERS section. 12305# No need to generate them if there are no CONFIG_HEADERS. 12306# This happens for instance with `./config.status Makefile'. 12307if test -n "$CONFIG_HEADERS"; then 12308cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12309BEGIN { 12310_ACEOF 12311 12312# Transform confdefs.h into an awk script `defines.awk', embedded as 12313# here-document in config.status, that substitutes the proper values into 12314# config.h.in to produce config.h. 12315 12316# Create a delimiter string that does not exist in confdefs.h, to ease 12317# handling of long lines. 12318ac_delim='%!_!# ' 12319for ac_last_try in false false :; do 12320 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12321 if test -z "$ac_tt"; then 12322 break 12323 elif $ac_last_try; then 12324 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12325 else 12326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12327 fi 12328done 12329 12330# For the awk script, D is an array of macro values keyed by name, 12331# likewise P contains macro parameters if any. Preserve backslash 12332# newline sequences. 12333 12334ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12335sed -n ' 12336s/.\{148\}/&'"$ac_delim"'/g 12337t rset 12338:rset 12339s/^[ ]*#[ ]*define[ ][ ]*/ / 12340t def 12341d 12342:def 12343s/\\$// 12344t bsnl 12345s/["\\]/\\&/g 12346s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12347D["\1"]=" \3"/p 12348s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12349d 12350:bsnl 12351s/["\\]/\\&/g 12352s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12353D["\1"]=" \3\\\\\\n"\\/p 12354t cont 12355s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12356t cont 12357d 12358:cont 12359n 12360s/.\{148\}/&'"$ac_delim"'/g 12361t clear 12362:clear 12363s/\\$// 12364t bsnlc 12365s/["\\]/\\&/g; s/^/"/; s/$/"/p 12366d 12367:bsnlc 12368s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12369b cont 12370' <confdefs.h | sed ' 12371s/'"$ac_delim"'/"\\\ 12372"/g' >>$CONFIG_STATUS || ac_write_fail=1 12373 12374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12375 for (key in D) D_is_set[key] = 1 12376 FS = "" 12377} 12378/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12379 line = \$ 0 12380 split(line, arg, " ") 12381 if (arg[1] == "#") { 12382 defundef = arg[2] 12383 mac1 = arg[3] 12384 } else { 12385 defundef = substr(arg[1], 2) 12386 mac1 = arg[2] 12387 } 12388 split(mac1, mac2, "(") #) 12389 macro = mac2[1] 12390 prefix = substr(line, 1, index(line, defundef) - 1) 12391 if (D_is_set[macro]) { 12392 # Preserve the white space surrounding the "#". 12393 print prefix "define", macro P[macro] D[macro] 12394 next 12395 } else { 12396 # Replace #undef with comments. This is necessary, for example, 12397 # in the case of _POSIX_SOURCE, which is predefined and required 12398 # on some systems where configure will not decide to define it. 12399 if (defundef == "undef") { 12400 print "/*", prefix defundef, macro, "*/" 12401 next 12402 } 12403 } 12404} 12405{ print } 12406_ACAWK 12407_ACEOF 12408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12409 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12410fi # test -n "$CONFIG_HEADERS" 12411 12412 12413eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12414shift 12415for ac_tag 12416do 12417 case $ac_tag in 12418 :[FHLC]) ac_mode=$ac_tag; continue;; 12419 esac 12420 case $ac_mode$ac_tag in 12421 :[FHL]*:*);; 12422 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12423 :[FH]-) ac_tag=-:-;; 12424 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12425 esac 12426 ac_save_IFS=$IFS 12427 IFS=: 12428 set x $ac_tag 12429 IFS=$ac_save_IFS 12430 shift 12431 ac_file=$1 12432 shift 12433 12434 case $ac_mode in 12435 :L) ac_source=$1;; 12436 :[FH]) 12437 ac_file_inputs= 12438 for ac_f 12439 do 12440 case $ac_f in 12441 -) ac_f="$ac_tmp/stdin";; 12442 *) # Look for the file first in the build tree, then in the source tree 12443 # (if the path is not absolute). The absolute path cannot be DOS-style, 12444 # because $ac_f cannot contain `:'. 12445 test -f "$ac_f" || 12446 case $ac_f in 12447 [\\/$]*) false;; 12448 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12449 esac || 12450 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12451 esac 12452 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12453 as_fn_append ac_file_inputs " '$ac_f'" 12454 done 12455 12456 # Let's still pretend it is `configure' which instantiates (i.e., don't 12457 # use $as_me), people would be surprised to read: 12458 # /* config.h. Generated by config.status. */ 12459 configure_input='Generated from '` 12460 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12461 `' by configure.' 12462 if test x"$ac_file" != x-; then 12463 configure_input="$ac_file. $configure_input" 12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12465printf "%s\n" "$as_me: creating $ac_file" >&6;} 12466 fi 12467 # Neutralize special characters interpreted by sed in replacement strings. 12468 case $configure_input in #( 12469 *\&* | *\|* | *\\* ) 12470 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 12471 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12472 *) ac_sed_conf_input=$configure_input;; 12473 esac 12474 12475 case $ac_tag in 12476 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12478 esac 12479 ;; 12480 esac 12481 12482 ac_dir=`$as_dirname -- "$ac_file" || 12483$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12484 X"$ac_file" : 'X\(//\)[^/]' \| \ 12485 X"$ac_file" : 'X\(//\)$' \| \ 12486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12487printf "%s\n" X"$ac_file" | 12488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12489 s//\1/ 12490 q 12491 } 12492 /^X\(\/\/\)[^/].*/{ 12493 s//\1/ 12494 q 12495 } 12496 /^X\(\/\/\)$/{ 12497 s//\1/ 12498 q 12499 } 12500 /^X\(\/\).*/{ 12501 s//\1/ 12502 q 12503 } 12504 s/.*/./; q'` 12505 as_dir="$ac_dir"; as_fn_mkdir_p 12506 ac_builddir=. 12507 12508case "$ac_dir" in 12509.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12510*) 12511 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 12512 # A ".." for each directory in $ac_dir_suffix. 12513 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12514 case $ac_top_builddir_sub in 12515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12517 esac ;; 12518esac 12519ac_abs_top_builddir=$ac_pwd 12520ac_abs_builddir=$ac_pwd$ac_dir_suffix 12521# for backward compatibility: 12522ac_top_builddir=$ac_top_build_prefix 12523 12524case $srcdir in 12525 .) # We are building in place. 12526 ac_srcdir=. 12527 ac_top_srcdir=$ac_top_builddir_sub 12528 ac_abs_top_srcdir=$ac_pwd ;; 12529 [\\/]* | ?:[\\/]* ) # Absolute name. 12530 ac_srcdir=$srcdir$ac_dir_suffix; 12531 ac_top_srcdir=$srcdir 12532 ac_abs_top_srcdir=$srcdir ;; 12533 *) # Relative name. 12534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12535 ac_top_srcdir=$ac_top_build_prefix$srcdir 12536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12537esac 12538ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12539 12540 12541 case $ac_mode in 12542 :F) 12543 # 12544 # CONFIG_FILE 12545 # 12546 12547 case $INSTALL in 12548 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12549 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12550 esac 12551 ac_MKDIR_P=$MKDIR_P 12552 case $MKDIR_P in 12553 [\\/$]* | ?:[\\/]* ) ;; 12554 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12555 esac 12556_ACEOF 12557 12558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12559# If the template does not know about datarootdir, expand it. 12560# FIXME: This hack should be removed a few years after 2.60. 12561ac_datarootdir_hack=; ac_datarootdir_seen= 12562ac_sed_dataroot=' 12563/datarootdir/ { 12564 p 12565 q 12566} 12567/@datadir@/p 12568/@docdir@/p 12569/@infodir@/p 12570/@localedir@/p 12571/@mandir@/p' 12572case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12573*datarootdir*) ac_datarootdir_seen=yes;; 12574*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12576printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12577_ACEOF 12578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12579 ac_datarootdir_hack=' 12580 s&@datadir@&$datadir&g 12581 s&@docdir@&$docdir&g 12582 s&@infodir@&$infodir&g 12583 s&@localedir@&$localedir&g 12584 s&@mandir@&$mandir&g 12585 s&\\\${datarootdir}&$datarootdir&g' ;; 12586esac 12587_ACEOF 12588 12589# Neutralize VPATH when `$srcdir' = `.'. 12590# Shell code in configure.ac might set extrasub. 12591# FIXME: do we really want to maintain this feature? 12592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12593ac_sed_extra="$ac_vpsub 12594$extrasub 12595_ACEOF 12596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12597:t 12598/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12599s|@configure_input@|$ac_sed_conf_input|;t t 12600s&@top_builddir@&$ac_top_builddir_sub&;t t 12601s&@top_build_prefix@&$ac_top_build_prefix&;t t 12602s&@srcdir@&$ac_srcdir&;t t 12603s&@abs_srcdir@&$ac_abs_srcdir&;t t 12604s&@top_srcdir@&$ac_top_srcdir&;t t 12605s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12606s&@builddir@&$ac_builddir&;t t 12607s&@abs_builddir@&$ac_abs_builddir&;t t 12608s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12609s&@INSTALL@&$ac_INSTALL&;t t 12610s&@MKDIR_P@&$ac_MKDIR_P&;t t 12611$ac_datarootdir_hack 12612" 12613eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12614 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12615 12616test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12617 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12618 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12619 "$ac_tmp/out"`; test -z "$ac_out"; } && 12620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12621which seems to be undefined. Please make sure it is defined" >&5 12622printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12623which seems to be undefined. Please make sure it is defined" >&2;} 12624 12625 rm -f "$ac_tmp/stdin" 12626 case $ac_file in 12627 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12628 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12629 esac \ 12630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12631 ;; 12632 :H) 12633 # 12634 # CONFIG_HEADER 12635 # 12636 if test x"$ac_file" != x-; then 12637 { 12638 printf "%s\n" "/* $configure_input */" >&1 \ 12639 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12640 } >"$ac_tmp/config.h" \ 12641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12642 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12644printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 12645 else 12646 rm -f "$ac_file" 12647 mv "$ac_tmp/config.h" "$ac_file" \ 12648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12649 fi 12650 else 12651 printf "%s\n" "/* $configure_input */" >&1 \ 12652 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12653 || as_fn_error $? "could not create -" "$LINENO" 5 12654 fi 12655# Compute "$ac_file"'s index in $config_headers. 12656_am_arg="$ac_file" 12657_am_stamp_count=1 12658for _am_header in $config_headers :; do 12659 case $_am_header in 12660 $_am_arg | $_am_arg:* ) 12661 break ;; 12662 * ) 12663 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12664 esac 12665done 12666echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12667$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12668 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12669 X"$_am_arg" : 'X\(//\)$' \| \ 12670 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12671printf "%s\n" X"$_am_arg" | 12672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12673 s//\1/ 12674 q 12675 } 12676 /^X\(\/\/\)[^/].*/{ 12677 s//\1/ 12678 q 12679 } 12680 /^X\(\/\/\)$/{ 12681 s//\1/ 12682 q 12683 } 12684 /^X\(\/\).*/{ 12685 s//\1/ 12686 q 12687 } 12688 s/.*/./; q'`/stamp-h$_am_stamp_count 12689 ;; 12690 12691 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12692printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 12693 ;; 12694 esac 12695 12696 12697 case $ac_file$ac_mode in 12698 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12699 # Older Autoconf quotes --file arguments for eval, but not when files 12700 # are listed without --file. Let's play safe and only enable the eval 12701 # if we detect the quoting. 12702 # TODO: see whether this extra hack can be removed once we start 12703 # requiring Autoconf 2.70 or later. 12704 case $CONFIG_FILES in #( 12705 *\'*) : 12706 eval set x "$CONFIG_FILES" ;; #( 12707 *) : 12708 set x $CONFIG_FILES ;; #( 12709 *) : 12710 ;; 12711esac 12712 shift 12713 # Used to flag and report bootstrapping failures. 12714 am_rc=0 12715 for am_mf 12716 do 12717 # Strip MF so we end up with the name of the file. 12718 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 12719 # Check whether this is an Automake generated Makefile which includes 12720 # dependency-tracking related rules and includes. 12721 # Grep'ing the whole file directly is not great: AIX grep has a line 12722 # limit of 2048, but all sed's we know have understand at least 4000. 12723 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 12724 || continue 12725 am_dirpart=`$as_dirname -- "$am_mf" || 12726$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12727 X"$am_mf" : 'X\(//\)[^/]' \| \ 12728 X"$am_mf" : 'X\(//\)$' \| \ 12729 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12730printf "%s\n" X"$am_mf" | 12731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12732 s//\1/ 12733 q 12734 } 12735 /^X\(\/\/\)[^/].*/{ 12736 s//\1/ 12737 q 12738 } 12739 /^X\(\/\/\)$/{ 12740 s//\1/ 12741 q 12742 } 12743 /^X\(\/\).*/{ 12744 s//\1/ 12745 q 12746 } 12747 s/.*/./; q'` 12748 am_filepart=`$as_basename -- "$am_mf" || 12749$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 12750 X"$am_mf" : 'X\(//\)$' \| \ 12751 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 12752printf "%s\n" X/"$am_mf" | 12753 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12754 s//\1/ 12755 q 12756 } 12757 /^X\/\(\/\/\)$/{ 12758 s//\1/ 12759 q 12760 } 12761 /^X\/\(\/\).*/{ 12762 s//\1/ 12763 q 12764 } 12765 s/.*/./; q'` 12766 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 12767 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12768 | $MAKE -f - am--depfiles" >&5 12769 (cd "$am_dirpart" \ 12770 && sed -e '/# am--include-marker/d' "$am_filepart" \ 12771 | $MAKE -f - am--depfiles) >&5 2>&5 12772 ac_status=$? 12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12774 (exit $ac_status); } || am_rc=$? 12775 done 12776 if test $am_rc -ne 0; then 12777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12778printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12779as_fn_error $? "Something went wrong bootstrapping makefile fragments 12780 for automatic dependency tracking. If GNU make was not used, consider 12781 re-running the configure script with MAKE=\"gmake\" (or whatever is 12782 necessary). You can also try re-running configure with the 12783 '--disable-dependency-tracking' option to at least be able to build 12784 the package (albeit without support for automatic dependency tracking). 12785See \`config.log' for more details" "$LINENO" 5; } 12786 fi 12787 { am_dirpart=; unset am_dirpart;} 12788 { am_filepart=; unset am_filepart;} 12789 { am_mf=; unset am_mf;} 12790 { am_rc=; unset am_rc;} 12791 rm -f conftest-deps.mk 12792} 12793 ;; 12794 12795 esac 12796done # for ac_tag 12797 12798 12799as_fn_exit 0 12800_ACEOF 12801ac_clean_files=$ac_clean_files_save 12802 12803test $ac_write_fail = 0 || 12804 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12805 12806 12807# configure is writing to config.log, and then calls config.status. 12808# config.status does its own redirection, appending to config.log. 12809# Unfortunately, on DOS this fails, as config.log is still kept open 12810# by configure, so config.status won't be able to write to it; its 12811# output is simply discarded. So we exec the FD to /dev/null, 12812# effectively closing config.log, so it can be properly (re)opened and 12813# appended to by config.status. When coming back to configure, we 12814# need to make the FD available again. 12815if test "$no_create" != yes; then 12816 ac_cs_success=: 12817 ac_config_status_args= 12818 test "$silent" = yes && 12819 ac_config_status_args="$ac_config_status_args --quiet" 12820 exec 5>/dev/null 12821 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12822 exec 5>>config.log 12823 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12824 # would make configure fail if this is the last instruction. 12825 $ac_cs_success || as_fn_exit 1 12826fi 12827if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12829printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12830fi 12831 12832 12833